@adyen/kyc-components 3.4.1 → 3.5.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/es/adyen-kyc-components.es.js +1364 -1104
- package/dist/style.css +1933 -72
- package/dist/types/components/BankDocument/component/BankDocumentComponent.d.ts +6 -0
- package/dist/types/components/BankDocument/component/BankDocumentRequirements.d.ts +10 -0
- package/dist/types/components/BankDocument/component/validate.d.ts +3 -0
- package/dist/types/components/BankDocument/index.d.ts +2 -0
- package/dist/types/components/BankDocument/types.d.ts +47 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +4 -3
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +5 -1
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +6 -5
- package/dist/types/components/PayoutDetails/types.d.ts +3 -2
- package/dist/types/components/ProofOfResidency/types.d.ts +1 -1
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +2 -2
- package/dist/types/components/internal/List/ListItem.d.ts +1 -1
- package/dist/types/components/internal/List/types.d.ts +2 -2
- package/dist/types/components/internal/PhoneInput/types.d.ts +2 -4
- package/dist/types/components/internal/PhoneInput/validate.d.ts +2 -4
- package/dist/types/core/Context/SettingsContext/{SettingsContextProvider.d.ts → SettingsProvider.d.ts} +1 -1
- package/dist/types/core/Context/SettingsContext/types.d.ts +26 -5
- package/dist/types/core/Context/SettingsContext/useSetting.d.ts +2 -0
- package/dist/types/core/Services/componentApi/index.d.ts +0 -1
- package/dist/types/core/Services/utils.d.ts +2 -2
- package/dist/types/core/errorMapping.d.ts +10 -0
- package/dist/types/core/hooks/useAssociatedLegalArrangement.d.ts +11 -0
- package/dist/types/core/models/api/data-set.d.ts +1 -1
- package/dist/types/core/models/api/onboarding-redirect.d.ts +2 -2
- package/dist/types/core/models/api/remediating-action.d.ts +1 -1
- package/dist/types/core/models/api/verification-error.d.ts +3 -3
- package/dist/types/core/models/errors/validation-error.d.ts +2 -2
- package/dist/types/language/config.d.ts +23 -11
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
- package/dist/types/utils/entity-status-util.d.ts +1 -1
- package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -2
- package/dist/types/utils/mapping/mapping.d.ts +2 -2
- package/dist/types/utils/perCountry.d.ts +3 -0
- package/package.json +17 -18
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +0 -9
- package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +0 -6
- package/dist/types/components/PayoutBankStatement/component/validate.d.ts +0 -3
- package/dist/types/components/PayoutBankStatement/types.d.ts +0 -33
- package/dist/types/core/Services/componentApi/get-bankVerification-providers.d.ts +0 -3
- /package/dist/es/{AD-670c62c0.mjs → AD-rNM7cqE8.mjs} +0 -0
- /package/dist/es/{AE-24bbc749.mjs → AE-DoU2c3CQ.mjs} +0 -0
- /package/dist/es/{AI-2f8eb3e4.mjs → AI-BQBZ2VVt.mjs} +0 -0
- /package/dist/es/{AL-dee818f3.mjs → AL-s4ei1ra4.mjs} +0 -0
- /package/dist/es/{AR-ddb2f621.mjs → AR-DDR8RTlN.mjs} +0 -0
- /package/dist/es/{AS-d857591e.mjs → AS-CvpjtIPo.mjs} +0 -0
- /package/dist/es/{AT-0d286d50.mjs → AT-Du3jf0QK.mjs} +0 -0
- /package/dist/es/{AU-e3d4ecff.mjs → AU-CaRlRNzq.mjs} +0 -0
- /package/dist/es/{AX-acf0cb07.mjs → AX-DL2IpBlq.mjs} +0 -0
- /package/dist/es/{AZ-febcbba9.mjs → AZ-DgnKHqSW.mjs} +0 -0
- /package/dist/es/{BA-36553325.mjs → BA-DbzAHDbo.mjs} +0 -0
- /package/dist/es/{BE-01b309e9.mjs → BE-B8RVrEa-.mjs} +0 -0
- /package/dist/es/{BG-b141efc4.mjs → BG-BAU_RbNU.mjs} +0 -0
- /package/dist/es/{BH-4252606c.mjs → BH-zzl3Aicz.mjs} +0 -0
- /package/dist/es/{BM-9d017537.mjs → BM-Bx0QpJE_.mjs} +0 -0
- /package/dist/es/{BR-afb9b585.mjs → BR-CcE5GVb_.mjs} +0 -0
- /package/dist/es/{BS-71942f8a.mjs → BS-C5xv5epf.mjs} +0 -0
- /package/dist/es/{BV-7c089d21.mjs → BV-BO7Uhvet.mjs} +0 -0
- /package/dist/es/{BY-b3362481.mjs → BY-Dn7i3b4O.mjs} +0 -0
- /package/dist/es/{CA-75a34c71.mjs → CA-BzjyYlZe.mjs} +0 -0
- /package/dist/es/{CH-b8cf24c1.mjs → CH-BvlOBUqB.mjs} +0 -0
- /package/dist/es/{CN-ebbef145.mjs → CN-y0BC6iBw.mjs} +0 -0
- /package/dist/es/{CR-8bf65073.mjs → CR-tTzdtq6M.mjs} +0 -0
- /package/dist/es/{CY-3e2ed850.mjs → CY-Bjyj7q7k.mjs} +0 -0
- /package/dist/es/{CZ-7ac97b54.mjs → CZ-DdsXQiz6.mjs} +0 -0
- /package/dist/es/{DE-2322162a.mjs → DE-k6sF_Z8P.mjs} +0 -0
- /package/dist/es/{DK-7cebcff6.mjs → DK-CUWikATU.mjs} +0 -0
- /package/dist/es/{DO-bfe9604e.mjs → DO-DpDyoh4y.mjs} +0 -0
- /package/dist/es/{EC-3ab33540.mjs → EC--TPKDJme.mjs} +0 -0
- /package/dist/es/{EE-cbb695a1.mjs → EE-o0O1NAuh.mjs} +0 -0
- /package/dist/es/{ES-094cb641.mjs → ES-8DboqUrj.mjs} +0 -0
- /package/dist/es/{FI-a1653669.mjs → FI-CwVBRBBQ.mjs} +0 -0
- /package/dist/es/{FJ-3b91f5c9.mjs → FJ-DkKmOAd6.mjs} +0 -0
- /package/dist/es/{FO-f647fb1e.mjs → FO-BCZCVxXR.mjs} +0 -0
- /package/dist/es/{FR-ea366f1a.mjs → FR-NtJ3QSfd.mjs} +0 -0
- /package/dist/es/{GB-a45c6caa.mjs → GB-BhRiUVO6.mjs} +0 -0
- /package/dist/es/{GE-ac5fdc42.mjs → GE--9n2R8_p.mjs} +0 -0
- /package/dist/es/{GF-6273f16b.mjs → GF-BeND08-O.mjs} +0 -0
- /package/dist/es/{GG-bad391fd.mjs → GG-DcYzHlYO.mjs} +0 -0
- /package/dist/es/{GI-757caa3a.mjs → GI-BWXRySSY.mjs} +0 -0
- /package/dist/es/{GL-226ffa9f.mjs → GL-Cu7M9Xnx.mjs} +0 -0
- /package/dist/es/{GP-473e593a.mjs → GP-Dm3WhONm.mjs} +0 -0
- /package/dist/es/{GR-3bcff231.mjs → GR-C0snveYS.mjs} +0 -0
- /package/dist/es/{GT-db5da0a4.mjs → GT-BykjfmEK.mjs} +0 -0
- /package/dist/es/{GU-ca4f557c.mjs → GU-oom5Ehbd.mjs} +0 -0
- /package/dist/es/{HK-40526878.mjs → HK-Dr5b-SwK.mjs} +0 -0
- /package/dist/es/{HR-29a95014.mjs → HR-DKAQpsSV.mjs} +0 -0
- /package/dist/es/{HU-80af7974.mjs → HU-DJWWX_5P.mjs} +0 -0
- /package/dist/es/{ID-506578fe.mjs → ID-BWJvoyJo.mjs} +0 -0
- /package/dist/es/{IE-32cbd0f3.mjs → IE-BPh0CHaO.mjs} +0 -0
- /package/dist/es/{IL-373dafad.mjs → IL-B8E0HdBj.mjs} +0 -0
- /package/dist/es/{IM-891b32c5.mjs → IM-ClrsAYLm.mjs} +0 -0
- /package/dist/es/{IN-bec55b74.mjs → IN-CVsYzQzI.mjs} +0 -0
- /package/dist/es/{IS-3a5d33d3.mjs → IS-BkDwjQHz.mjs} +0 -0
- /package/dist/es/{IT-4ff08cfe.mjs → IT-B3cLskCx.mjs} +0 -0
- /package/dist/es/{JE-307987ba.mjs → JE-C8HBNrJn.mjs} +0 -0
- /package/dist/es/{JM-3ce8fbab.mjs → JM-CH_LXMnd.mjs} +0 -0
- /package/dist/es/{JO-42a19672.mjs → JO-CD_uH_Uk.mjs} +0 -0
- /package/dist/es/{JP-0077f7b5.mjs → JP-DtK_xb_Y.mjs} +0 -0
- /package/dist/es/{KR-95fa1426.mjs → KR-DBPY5awJ.mjs} +0 -0
- /package/dist/es/{KW-a98f9b4c.mjs → KW-CiSCIyPm.mjs} +0 -0
- /package/dist/es/{KY-1aaca646.mjs → KY-FU9AuEMz.mjs} +0 -0
- /package/dist/es/{KZ-7daadd7e.mjs → KZ-CMFj-_rM.mjs} +0 -0
- /package/dist/es/{LB-1c59787b.mjs → LB-BRGM3Yl3.mjs} +0 -0
- /package/dist/es/{LI-77d06f2d.mjs → LI-DlCX-3GD.mjs} +0 -0
- /package/dist/es/{LT-f3ad2e3e.mjs → LT-XRkygwh8.mjs} +0 -0
- /package/dist/es/{LU-e8eedd03.mjs → LU-CV14IXAu.mjs} +0 -0
- /package/dist/es/{LV-6971017f.mjs → LV-ByV8yuF8.mjs} +0 -0
- /package/dist/es/{MC-ee5965bb.mjs → MC-CwHePfdt.mjs} +0 -0
- /package/dist/es/{MD-8041437f.mjs → MD-_IIMR66Q.mjs} +0 -0
- /package/dist/es/{ME-d9f4c3da.mjs → ME-Cfx8llkg.mjs} +0 -0
- /package/dist/es/{MK-8c45a314.mjs → MK-CEzz7Z_a.mjs} +0 -0
- /package/dist/es/{MP-093ac455.mjs → MP-C5acK0KC.mjs} +0 -0
- /package/dist/es/{MQ-f9c253cc.mjs → MQ-BEZo6wPU.mjs} +0 -0
- /package/dist/es/{MR-2f01df5c.mjs → MR-BoFyF5R-.mjs} +0 -0
- /package/dist/es/{MT-32167278.mjs → MT-C_-lQGuI.mjs} +0 -0
- /package/dist/es/{MU-e04facaa.mjs → MU-_tM1ai_B.mjs} +0 -0
- /package/dist/es/{MX-1d1a9644.mjs → MX-eayygS1f.mjs} +0 -0
- /package/dist/es/{MY-392e074a.mjs → MY-CsKpuB-w.mjs} +0 -0
- /package/dist/es/{NC-3b4b0260.mjs → NC-Bel2A-Fk.mjs} +0 -0
- /package/dist/es/{NL-b9bcb702.mjs → NL-C3LxWTQ7.mjs} +0 -0
- /package/dist/es/{NO-6809e6fd.mjs → NO-CjZgx8a-.mjs} +0 -0
- /package/dist/es/{NZ-43e49467.mjs → NZ-CG-hMfLg.mjs} +0 -0
- /package/dist/es/{PE-0c1072d7.mjs → PE-DvMRqGF_.mjs} +0 -0
- /package/dist/es/{PF-fb6bd5d0.mjs → PF-f7fSMI_4.mjs} +0 -0
- /package/dist/es/{PH-8ef2049d.mjs → PH-CjFT8xMY.mjs} +0 -0
- /package/dist/es/{PK-a445458d.mjs → PK-wMg8N3zK.mjs} +0 -0
- /package/dist/es/{PL-620a9ca4.mjs → PL-WpWUBPgN.mjs} +0 -0
- /package/dist/es/{PM-d4c0464a.mjs → PM-D4sBI2Px.mjs} +0 -0
- /package/dist/es/{PR-ad22b592.mjs → PR-BJ09dEXF.mjs} +0 -0
- /package/dist/es/{PS-cabe03e5.mjs → PS-CWFZXVi8.mjs} +0 -0
- /package/dist/es/{PT-33451f8d.mjs → PT-BarBZmwW.mjs} +0 -0
- /package/dist/es/{QA-3d255e2d.mjs → QA-CtUmYTKA.mjs} +0 -0
- /package/dist/es/{RE-8b1c7cc1.mjs → RE-DfaVzCe-.mjs} +0 -0
- /package/dist/es/{RO-2bfa665c.mjs → RO-DmWLrUu-.mjs} +0 -0
- /package/dist/es/{RS-3347a703.mjs → RS-DilO913f.mjs} +0 -0
- /package/dist/es/{RU-e3e01124.mjs → RU-B83Fu7c3.mjs} +0 -0
- /package/dist/es/{SA-91a0ead5.mjs → SA-BpimyQxp.mjs} +0 -0
- /package/dist/es/{SE-cb13f129.mjs → SE-BXNcwTPQ.mjs} +0 -0
- /package/dist/es/{SG-6086848e.mjs → SG-Uyk6Nl41.mjs} +0 -0
- /package/dist/es/{SI-2865f1da.mjs → SI-B5ALffDQ.mjs} +0 -0
- /package/dist/es/{SJ-598eb05e.mjs → SJ-BrJofAMz.mjs} +0 -0
- /package/dist/es/{SK-95af17ba.mjs → SK-DOE_fS4w.mjs} +0 -0
- /package/dist/es/{SM-4dd69f38.mjs → SM-BBQZf4DZ.mjs} +0 -0
- /package/dist/es/{TF-ea5a687e.mjs → TF-BDwH1us-.mjs} +0 -0
- /package/dist/es/{TH-567ec66c.mjs → TH-BxFJXEcZ.mjs} +0 -0
- /package/dist/es/{TL-9c45dea1.mjs → TL-BzbQs-FD.mjs} +0 -0
- /package/dist/es/{TN-40f39700.mjs → TN-Dc91A3rb.mjs} +0 -0
- /package/dist/es/{TR-17aaedbd.mjs → TR-BBxkpnZQ.mjs} +0 -0
- /package/dist/es/{TT-80575a0d.mjs → TT-D-FKOmmE.mjs} +0 -0
- /package/dist/es/{TW-8104c581.mjs → TW-r3G_Qs5B.mjs} +0 -0
- /package/dist/es/{UA-9a09a2fe.mjs → UA-vpfj8SEN.mjs} +0 -0
- /package/dist/es/{US-48190122.mjs → US-CFOdL8kt.mjs} +0 -0
- /package/dist/es/{UY-ede97218.mjs → UY-CUwq2MHm.mjs} +0 -0
- /package/dist/es/{VA-193042b9.mjs → VA-DlPtJwY9.mjs} +0 -0
- /package/dist/es/{VG-71c752e9.mjs → VG-yM0HOg57.mjs} +0 -0
- /package/dist/es/{VI-caa740af.mjs → VI-I7ADXxNd.mjs} +0 -0
- /package/dist/es/{VN-5a6450ab.mjs → VN-0gy1H7YD.mjs} +0 -0
- /package/dist/es/{WF-6ee9803f.mjs → WF-BlzFGDgv.mjs} +0 -0
- /package/dist/es/{YT-e12497c8.mjs → YT-17mSpzMD.mjs} +0 -0
- /package/dist/es/{ZA-77011c5b.mjs → ZA-BcxFTdWL.mjs} +0 -0
- /package/dist/es/{ad-e09b987a.mjs → ad-DT4vRaBJ.mjs} +0 -0
- /package/dist/es/{ae-8ca1be27.mjs → ae-BOcuAHGY.mjs} +0 -0
- /package/dist/es/{af-342e1bf5.mjs → af-CoKzErRW.mjs} +0 -0
- /package/dist/es/{ag-997e3f88.mjs → ag-g4DXUCrU.mjs} +0 -0
- /package/dist/es/{ai-402dc201.mjs → ai-CI-B0R9i.mjs} +0 -0
- /package/dist/es/{al-38b31dad.mjs → al-COFkJ5Ca.mjs} +0 -0
- /package/dist/es/{am-bc1403ea.mjs → am-Dra-uz-8.mjs} +0 -0
- /package/dist/es/{an-70336f96.mjs → an-BGvLoFME.mjs} +0 -0
- /package/dist/es/{ao-eedf3279.mjs → ao-DxG-ywGM.mjs} +0 -0
- /package/dist/es/{aq-2220e7e0.mjs → aq-D6KJELrz.mjs} +0 -0
- /package/dist/es/{ar-87abe42d.mjs → ar-D1__sXLf.mjs} +0 -0
- /package/dist/es/{arrow-left-3d6cd330.mjs → arrow-left-CCxYxfCP.mjs} +0 -0
- /package/dist/es/{arrow-right-994e40f8.mjs → arrow-right-DF4Qe-8E.mjs} +0 -0
- /package/dist/es/{as-6e35c5ec.mjs → as-CO1cnzQr.mjs} +0 -0
- /package/dist/es/{at-4310d424.mjs → at-DJ-_JUEF.mjs} +0 -0
- /package/dist/es/{au-50f94ba8.mjs → au-DQ7hwYxQ.mjs} +0 -0
- /package/dist/es/{aw-97918c9f.mjs → aw-DsF55GZp.mjs} +0 -0
- /package/dist/es/{ax-567f3585.mjs → ax-B7xGO2vL.mjs} +0 -0
- /package/dist/es/{az-85dbb96d.mjs → az-Bn_p9CvJ.mjs} +0 -0
- /package/dist/es/{ba-8afe4a33.mjs → ba-BoJK_mQe.mjs} +0 -0
- /package/dist/es/{bb-c4d79528.mjs → bb-Pm_QT_Dl.mjs} +0 -0
- /package/dist/es/{bd-0f87f359.mjs → bd-D7_YREZy.mjs} +0 -0
- /package/dist/es/{be-63be2126.mjs → be-CZxtblLB.mjs} +0 -0
- /package/dist/es/{bf-621f8737.mjs → bf-Dpx2xJ7g.mjs} +0 -0
- /package/dist/es/{bg-30061757.mjs → bg-GwVUUSOM.mjs} +0 -0
- /package/dist/es/{bh-a858ad79.mjs → bh-JbZUrPJw.mjs} +0 -0
- /package/dist/es/{bi-c08e68ba.mjs → bi-BltG81ar.mjs} +0 -0
- /package/dist/es/{bin-191739de.mjs → bin-CGwewvcn.mjs} +0 -0
- /package/dist/es/{bj-8e17226d.mjs → bj-zQUv2SQa.mjs} +0 -0
- /package/dist/es/{bl-b7b32ae6.mjs → bl-BUtmusIM.mjs} +0 -0
- /package/dist/es/{bm-b728ab56.mjs → bm-D_illE8L.mjs} +0 -0
- /package/dist/es/{bn-c706c05b.mjs → bn-1XDJa4lE.mjs} +0 -0
- /package/dist/es/{bo-1fad8399.mjs → bo-DlmVbV9z.mjs} +0 -0
- /package/dist/es/{br-11b9980d.mjs → br-DLB6QJZk.mjs} +0 -0
- /package/dist/es/{bs-090f5bd7.mjs → bs-8dBnGYPj.mjs} +0 -0
- /package/dist/es/{bt-c56334d3.mjs → bt-D9SHS-Ak.mjs} +0 -0
- /package/dist/es/{bv-570dcd11.mjs → bv-ahmv_jU3.mjs} +0 -0
- /package/dist/es/{bw-5de93ae1.mjs → bw-DzLl7TuC.mjs} +0 -0
- /package/dist/es/{by-e2457131.mjs → by-BztFrg5-.mjs} +0 -0
- /package/dist/es/{bz-30bbd0de.mjs → bz-DkyxrcWx.mjs} +0 -0
- /package/dist/es/{ca-39c0e436.mjs → ca-Bika55Ha.mjs} +0 -0
- /package/dist/es/{cc-ddc2a1db.mjs → cc-CFZz_AYg.mjs} +0 -0
- /package/dist/es/{cd-eab01270.mjs → cd-CgybrxtQ.mjs} +0 -0
- /package/dist/es/{cf-50f7241b.mjs → cf-D23Pv9G5.mjs} +0 -0
- /package/dist/es/{cg-e87aa981.mjs → cg-CfZbcFMO.mjs} +0 -0
- /package/dist/es/{ch-9637f347.mjs → ch-mKEGRNZY.mjs} +0 -0
- /package/dist/es/{check-b5a70376.mjs → check-CeSLN4_9.mjs} +0 -0
- /package/dist/es/{checkmark-fd78da6f.mjs → checkmark-DEh9MPYR.mjs} +0 -0
- /package/dist/es/{checkmark-small-bf41309f.mjs → checkmark-small-D_9HLctx.mjs} +0 -0
- /package/dist/es/{chevron-down-df0a3ac6.mjs → chevron-down-BzENwYSf.mjs} +0 -0
- /package/dist/es/{chevron-right-23ff6e47.mjs → chevron-right-DczMHcvL.mjs} +0 -0
- /package/dist/es/{chevron-up-abfe0e90.mjs → chevron-up-BLtnROd5.mjs} +0 -0
- /package/dist/es/{ci-41814a2b.mjs → ci-BJ-L2p8Z.mjs} +0 -0
- /package/dist/es/{ck-60b0d769.mjs → ck-j69yRZOc.mjs} +0 -0
- /package/dist/es/{cl-931fd7da.mjs → cl-C6BytT6S.mjs} +0 -0
- /package/dist/es/{cm-55c02792.mjs → cm-CUzrX5VK.mjs} +0 -0
- /package/dist/es/{cn-1526dac5.mjs → cn-De5mx48S.mjs} +0 -0
- /package/dist/es/{co-c7ada338.mjs → co-D1tfX-Rj.mjs} +0 -0
- /package/dist/es/{company-4f71e406.mjs → company-D5_F_6SW.mjs} +0 -0
- /package/dist/es/{contract-5bc99018.mjs → contract-C6wDy9zU.mjs} +0 -0
- /package/dist/es/{controlling-person-88da578f.mjs → controlling-person-C4KoSyi2.mjs} +0 -0
- /package/dist/es/{cr-bac1e451.mjs → cr-zUnaQPg8.mjs} +0 -0
- /package/dist/es/{cross-c2431982.mjs → cross-BadGfrgB.mjs} +0 -0
- /package/dist/es/{cu-af98b602.mjs → cu-DaGswOf0.mjs} +0 -0
- /package/dist/es/{cv-575fe55b.mjs → cv-C4-jr8vq.mjs} +0 -0
- /package/dist/es/{cw-6f1c60ce.mjs → cw-D-6419Qt.mjs} +0 -0
- /package/dist/es/{cx-7687e3a9.mjs → cx-DfNBgtwc.mjs} +0 -0
- /package/dist/es/{cy-eeff5dbd.mjs → cy-BRABzapK.mjs} +0 -0
- /package/dist/es/{cz-24eff96c.mjs → cz-DzosVcuo.mjs} +0 -0
- /package/dist/es/{de-8e2b6f6c.mjs → de-DRcIm1Ma.mjs} +0 -0
- /package/dist/es/{decision-maker-a2182544.mjs → decision-maker-Cef3-OzY.mjs} +0 -0
- /package/dist/es/{dj-e0f41411.mjs → dj-Da7LmapC.mjs} +0 -0
- /package/dist/es/{dk-a5073c43.mjs → dk-pty9O1pD.mjs} +0 -0
- /package/dist/es/{dm-9a3ee195.mjs → dm-GPioKBpx.mjs} +0 -0
- /package/dist/es/{do-5aa635df.mjs → do-k8Aqzhu5.mjs} +0 -0
- /package/dist/es/{document-88abec41.mjs → document-Cg4kZHpA.mjs} +0 -0
- /package/dist/es/{download-54b1a163.mjs → download-DGC5_Bxe.mjs} +0 -0
- /package/dist/es/{dz-7452e74d.mjs → dz-0w5shCtT.mjs} +0 -0
- /package/dist/es/{ec-c68c940e.mjs → ec-hp0Ygj0Y.mjs} +0 -0
- /package/dist/es/{edit-e3629680.mjs → edit--fDhojib.mjs} +0 -0
- /package/dist/es/{ee-1dbd9a40.mjs → ee-Dpf_R8jm.mjs} +0 -0
- /package/dist/es/{eg-40f9b2b5.mjs → eg-BgVS1lzb.mjs} +0 -0
- /package/dist/es/{eh-51f4bae2.mjs → eh-CEZasM8H.mjs} +0 -0
- /package/dist/es/{er-61cda111.mjs → er-RK3foPBe.mjs} +0 -0
- /package/dist/es/{es-78250575.mjs → es-CNey9Ibr.mjs} +0 -0
- /package/dist/es/{et-63dc8d1e.mjs → et-cNmj57xA.mjs} +0 -0
- /package/dist/es/{fi-e2d1f3df.mjs → fi-Ds4M7qRF.mjs} +0 -0
- /package/dist/es/{field-error-620e1903.mjs → field-error-WElEN1mN.mjs} +0 -0
- /package/dist/es/{fj-02f497c5.mjs → fj-D1q87nq5.mjs} +0 -0
- /package/dist/es/{fk-56af40af.mjs → fk-Y2rCs5DH.mjs} +0 -0
- /package/dist/es/{fm-0292f2ce.mjs → fm-BZKPOICq.mjs} +0 -0
- /package/dist/es/{fo-5063373c.mjs → fo-sSr8Xnvb.mjs} +0 -0
- /package/dist/es/{fr-fb20da2b.mjs → fr-BWzaj6Yw.mjs} +0 -0
- /package/dist/es/{fx-ca4da212.mjs → fx-DR2GRTdn.mjs} +0 -0
- /package/dist/es/{ga-31f5afca.mjs → ga-9LhduROZ.mjs} +0 -0
- /package/dist/es/{gb-4ae48840.mjs → gb-DA-V5Xdu.mjs} +0 -0
- /package/dist/es/{gd-25e40717.mjs → gd-JWdzcsNM.mjs} +0 -0
- /package/dist/es/{ge-939c150e.mjs → ge-Zw0skRye.mjs} +0 -0
- /package/dist/es/{gf-b8736c20.mjs → gf-Bq_uV48f.mjs} +0 -0
- /package/dist/es/{gg-4c532713.mjs → gg-CNzs8gF-.mjs} +0 -0
- /package/dist/es/{gh-7b187c5f.mjs → gh-2VT5yAxo.mjs} +0 -0
- /package/dist/es/{gi-e59b72be.mjs → gi-jPgXNb1L.mjs} +0 -0
- /package/dist/es/{gl-31e9b8e5.mjs → gl-c6mjlUME.mjs} +0 -0
- /package/dist/es/{gm-975999b2.mjs → gm-BgeXyCUQ.mjs} +0 -0
- /package/dist/es/{gn-3701984d.mjs → gn-CyyMcNZ3.mjs} +0 -0
- /package/dist/es/{gp-40fbae20.mjs → gp-D2PIp9tB.mjs} +0 -0
- /package/dist/es/{gq-86021eca.mjs → gq-BT6Gd3M4.mjs} +0 -0
- /package/dist/es/{gr-3b0c7597.mjs → gr-B5MQUSuL.mjs} +0 -0
- /package/dist/es/{gs-00bc8674.mjs → gs-6VXnGQzD.mjs} +0 -0
- /package/dist/es/{gt-05eb5f87.mjs → gt-4DSSuHgq.mjs} +0 -0
- /package/dist/es/{gu-497f9b0b.mjs → gu-Dxf1inL8.mjs} +0 -0
- /package/dist/es/{gw-b54f1365.mjs → gw-R5Dl09OL.mjs} +0 -0
- /package/dist/es/{gy-e917fca1.mjs → gy-CHx6kck0.mjs} +0 -0
- /package/dist/es/{hk-ddd60484.mjs → hk-DLy2j4QA.mjs} +0 -0
- /package/dist/es/{hm-03a2df0b.mjs → hm-CoK7Z2cg.mjs} +0 -0
- /package/dist/es/{hn-1748eed1.mjs → hn-DxQ71v08.mjs} +0 -0
- /package/dist/es/{hr-6b1bd9c8.mjs → hr-B6Zc8qZS.mjs} +0 -0
- /package/dist/es/{ht-13a1ab82.mjs → ht-DCMkLse8.mjs} +0 -0
- /package/dist/es/{hu-81872148.mjs → hu-JEoUAdpx.mjs} +0 -0
- /package/dist/es/{id-2c9c4235.mjs → id-D1C_2HvG.mjs} +0 -0
- /package/dist/es/{ie-ef96fd76.mjs → ie-d3bapQx-.mjs} +0 -0
- /package/dist/es/{il-20c3ccd4.mjs → il-CxVm0b2J.mjs} +0 -0
- /package/dist/es/{im-eb7a7143.mjs → im-BN_uhDka.mjs} +0 -0
- /package/dist/es/{in-67c16223.mjs → in-BGdmDROr.mjs} +0 -0
- /package/dist/es/{info-circle-3d2e7ba8.mjs → info-circle-DkHN1ugA.mjs} +0 -0
- /package/dist/es/{io-9adeb690.mjs → io-DYCJpAKf.mjs} +0 -0
- /package/dist/es/{iq-61ffc408.mjs → iq-BlsI9EWN.mjs} +0 -0
- /package/dist/es/{ir-bc3341c2.mjs → ir-DdOj6IVV.mjs} +0 -0
- /package/dist/es/{is-7c19d0ff.mjs → is-DN52KJKG.mjs} +0 -0
- /package/dist/es/{it-fa0dd04c.mjs → it-D6Y8tXt3.mjs} +0 -0
- /package/dist/es/{je-a29e157d.mjs → je-DR82slj4.mjs} +0 -0
- /package/dist/es/{jm-53f8ddb8.mjs → jm-LqaENrl9.mjs} +0 -0
- /package/dist/es/{jo-89d49ef8.mjs → jo-yLc64Rmj.mjs} +0 -0
- /package/dist/es/{jp-f97d7972.mjs → jp-Bb5uIw0H.mjs} +0 -0
- /package/dist/es/{ke-545eb9cb.mjs → ke-BK1BjkeR.mjs} +0 -0
- /package/dist/es/{kg-066a524e.mjs → kg-wlEuBvxO.mjs} +0 -0
- /package/dist/es/{kh-39620e7b.mjs → kh-DsvqlHLy.mjs} +0 -0
- /package/dist/es/{ki-900be23e.mjs → ki-Byta-OFo.mjs} +0 -0
- /package/dist/es/{km-b4e8c8ba.mjs → km-RNbmgGL_.mjs} +0 -0
- /package/dist/es/{kn-8ec9ee75.mjs → kn-CsHNi3Qt.mjs} +0 -0
- /package/dist/es/{kp-1cdc64be.mjs → kp-DskyYlvx.mjs} +0 -0
- /package/dist/es/{kr-53eac37f.mjs → kr-DlF6eJVr.mjs} +0 -0
- /package/dist/es/{kw-c4347b38.mjs → kw-BiQAd6j1.mjs} +0 -0
- /package/dist/es/{ky-a104dc86.mjs → ky-BvPeTNcl.mjs} +0 -0
- /package/dist/es/{kz-d64ba71d.mjs → kz-BQCcz0Va.mjs} +0 -0
- /package/dist/es/{la-04577eb2.mjs → la-COyntyzl.mjs} +0 -0
- /package/dist/es/{lb-c2470dd0.mjs → lb-CzTzggHc.mjs} +0 -0
- /package/dist/es/{lc-58fb8706.mjs → lc-CRL2hV6d.mjs} +0 -0
- /package/dist/es/{li-c887f5b7.mjs → li-BN-LWzEm.mjs} +0 -0
- /package/dist/es/{light-bulb-d403fe24.mjs → light-bulb-DEUhbRWP.mjs} +0 -0
- /package/dist/es/{lk-d10f8746.mjs → lk-Dh6uTZcH.mjs} +0 -0
- /package/dist/es/{location-e7c2a8f5.mjs → location-B1Til-7Q.mjs} +0 -0
- /package/dist/es/{lr-8422af8e.mjs → lr-CoVvhAhL.mjs} +0 -0
- /package/dist/es/{ls-bdcefbbc.mjs → ls-BFhv4OAc.mjs} +0 -0
- /package/dist/es/{lt-07e70fec.mjs → lt-C9w-Id1S.mjs} +0 -0
- /package/dist/es/{lu-b7c93ece.mjs → lu-Ccpxa0yN.mjs} +0 -0
- /package/dist/es/{lv-97900494.mjs → lv-Di5Y7vBC.mjs} +0 -0
- /package/dist/es/{ly-86ceab07.mjs → ly-BKgB-CvV.mjs} +0 -0
- /package/dist/es/{ma-21b21bdf.mjs → ma-gJj5XCI-.mjs} +0 -0
- /package/dist/es/{mc-f23b73f0.mjs → mc-BPN5JfTO.mjs} +0 -0
- /package/dist/es/{md-82ed1b49.mjs → md-aCqyKOgl.mjs} +0 -0
- /package/dist/es/{me-c45ff596.mjs → me-C6-JkhFA.mjs} +0 -0
- /package/dist/es/{mf-11563bd1.mjs → mf-jpyKjgsU.mjs} +0 -0
- /package/dist/es/{mg-f5f0546b.mjs → mg-TS1IwqtI.mjs} +0 -0
- /package/dist/es/{mh-06a860ed.mjs → mh-yHLgOFiA.mjs} +0 -0
- /package/dist/es/{mk-91356e13.mjs → mk-CaRVDngZ.mjs} +0 -0
- /package/dist/es/{ml-c3f2014e.mjs → ml-CUUHxg1j.mjs} +0 -0
- /package/dist/es/{mm-d138bd76.mjs → mm-CYK7VHSP.mjs} +0 -0
- /package/dist/es/{mn-9c4664d8.mjs → mn-D2S-h2WN.mjs} +0 -0
- /package/dist/es/{mo-54bd2fbe.mjs → mo-D1RG60zF.mjs} +0 -0
- /package/dist/es/{more-horiz-0ca4ec23.mjs → more-horiz-BieZKfy3.mjs} +0 -0
- /package/dist/es/{mp-796516e8.mjs → mp-DzztXSh1.mjs} +0 -0
- /package/dist/es/{mq-3511a92a.mjs → mq-Gsmz5_5j.mjs} +0 -0
- /package/dist/es/{mr-a4b18b6d.mjs → mr-C_s5K8p5.mjs} +0 -0
- /package/dist/es/{ms-91e4dcef.mjs → ms-Cgov7p4h.mjs} +0 -0
- /package/dist/es/{mt-9b58b6a6.mjs → mt-B9vsNjSx.mjs} +0 -0
- /package/dist/es/{mu-2307760c.mjs → mu-DeH79Hcd.mjs} +0 -0
- /package/dist/es/{mv-32c9699b.mjs → mv-CS9OGWK4.mjs} +0 -0
- /package/dist/es/{mw-2b9505ac.mjs → mw-BvDfO_4m.mjs} +0 -0
- /package/dist/es/{mx-98a49b74.mjs → mx-ByC0ZmOn.mjs} +0 -0
- /package/dist/es/{my-217f9384.mjs → my-BtbjhaSG.mjs} +0 -0
- /package/dist/es/{mz-92e1e39c.mjs → mz-BuZty0IX.mjs} +0 -0
- /package/dist/es/{na-3c30775f.mjs → na-BMRoTc_5.mjs} +0 -0
- /package/dist/es/{nc-c80aff50.mjs → nc-TfmJ1_PR.mjs} +0 -0
- /package/dist/es/{ne-b38208ab.mjs → ne-e6jU7Ta4.mjs} +0 -0
- /package/dist/es/{new-document-cfa14b7f.mjs → new-document-BEAJnXCG.mjs} +0 -0
- /package/dist/es/{nf-780a37dd.mjs → nf-DEApE1l7.mjs} +0 -0
- /package/dist/es/{ng-f5ea4118.mjs → ng-C481SfES.mjs} +0 -0
- /package/dist/es/{ni-60b41460.mjs → ni-DoG4DYn_.mjs} +0 -0
- /package/dist/es/{nl-975a8624.mjs → nl-Cmbofdv4.mjs} +0 -0
- /package/dist/es/{no-952bf512.mjs → no-CVO81I1l.mjs} +0 -0
- /package/dist/es/{np-5135aa90.mjs → np-zRmg82Re.mjs} +0 -0
- /package/dist/es/{nr-cecf1f05.mjs → nr-B5qQQRjH.mjs} +0 -0
- /package/dist/es/{nu-c1ad2dc9.mjs → nu-BI4Y-0EG.mjs} +0 -0
- /package/dist/es/{nz-70a6e29f.mjs → nz-DF7xbKn7.mjs} +0 -0
- /package/dist/es/{om-e5c99d1e.mjs → om-BjOei_ke.mjs} +0 -0
- /package/dist/es/{owners-a58a9f25.mjs → owners-D1pksb86.mjs} +0 -0
- /package/dist/es/{pa-0e401aff.mjs → pa-ZEXTGOfm.mjs} +0 -0
- /package/dist/es/{payout-575951ec.mjs → payout-BFiI--HY.mjs} +0 -0
- /package/dist/es/{pci-f4b6e5f5.mjs → pci-DMQLRoAn.mjs} +0 -0
- /package/dist/es/{pe-823d3b3f.mjs → pe-HNEmB15y.mjs} +0 -0
- /package/dist/es/{pf-5c60fe59.mjs → pf-DwCESo2k.mjs} +0 -0
- /package/dist/es/{pg-71e8aaec.mjs → pg-BhOdaLDy.mjs} +0 -0
- /package/dist/es/{ph-52f55ac4.mjs → ph-8ii4-Tq6.mjs} +0 -0
- /package/dist/es/{pk-372b07db.mjs → pk-BafoDKz5.mjs} +0 -0
- /package/dist/es/{pl-2c472f58.mjs → pl-D9b2Q58T.mjs} +0 -0
- /package/dist/es/{plus-25579839.mjs → plus-DAnbeoyS.mjs} +0 -0
- /package/dist/es/{pm-2195603b.mjs → pm-C-WvmgM4.mjs} +0 -0
- /package/dist/es/{pn-ec73a623.mjs → pn-DjnHidFS.mjs} +0 -0
- /package/dist/es/{pr-8f159ad6.mjs → pr-Dd50hA9F.mjs} +0 -0
- /package/dist/es/{ps-34dd64b7.mjs → ps-CUGb27Pq.mjs} +0 -0
- /package/dist/es/{pt-b210cd4c.mjs → pt-Qpxk-ulQ.mjs} +0 -0
- /package/dist/es/{pw-a474545d.mjs → pw-DV4RtHVX.mjs} +0 -0
- /package/dist/es/{py-e271f15f.mjs → py-eg-mtZFC.mjs} +0 -0
- /package/dist/es/{qa-a7ad70ed.mjs → qa-CHyJi5tF.mjs} +0 -0
- /package/dist/es/{re-a1440f32.mjs → re-FpArmeeM.mjs} +0 -0
- /package/dist/es/{remove-6a123f82.mjs → remove-CEmd9YX7.mjs} +0 -0
- /package/dist/es/{review-14953b30.mjs → review-CeQeKHXH.mjs} +0 -0
- /package/dist/es/{ro-8a071708.mjs → ro-ANrnebzK.mjs} +0 -0
- /package/dist/es/{rs-f3ea0f97.mjs → rs-BGbyX7Qb.mjs} +0 -0
- /package/dist/es/{ru-edd59839.mjs → ru-DtLSIa8v.mjs} +0 -0
- /package/dist/es/{rw-df210dff.mjs → rw-B1kILqpv.mjs} +0 -0
- /package/dist/es/{sa-18c28dc4.mjs → sa-CEcWBFfj.mjs} +0 -0
- /package/dist/es/{sb-35c0ab8d.mjs → sb-p9ah_4x5.mjs} +0 -0
- /package/dist/es/{sc-82eb7101.mjs → sc-2YHg9FTT.mjs} +0 -0
- /package/dist/es/{sd-dc5fb244.mjs → sd-BKzyWEE3.mjs} +0 -0
- /package/dist/es/{se-0413b6f1.mjs → se-Dq5LtCEp.mjs} +0 -0
- /package/dist/es/{search-3edfe795.mjs → search-hf3HRVbu.mjs} +0 -0
- /package/dist/es/{sg-8ff78597.mjs → sg-C752_QVl.mjs} +0 -0
- /package/dist/es/{sh-7b636341.mjs → sh-NFjaiAXX.mjs} +0 -0
- /package/dist/es/{si-2c09bba0.mjs → si-DKzVjXeV.mjs} +0 -0
- /package/dist/es/{signatory-c8417fb2.mjs → signatory-BVoLPYPu.mjs} +0 -0
- /package/dist/es/{sj-8aff2627.mjs → sj-DF7Bf8Q9.mjs} +0 -0
- /package/dist/es/{sk-8da1fee7.mjs → sk-CPmqq18S.mjs} +0 -0
- /package/dist/es/{sl-92cb9116.mjs → sl-Dx7oHjXI.mjs} +0 -0
- /package/dist/es/{sm-6fd64a6a.mjs → sm-B8bEOCx7.mjs} +0 -0
- /package/dist/es/{sn-57e8c34b.mjs → sn-tcqzwUh4.mjs} +0 -0
- /package/dist/es/{so-f2f0ac03.mjs → so-BrD8jwW8.mjs} +0 -0
- /package/dist/es/{sr-7869b748.mjs → sr-Dyy1x6sW.mjs} +0 -0
- /package/dist/es/{ss-8e9c79ca.mjs → ss-CpfhWUQL.mjs} +0 -0
- /package/dist/es/{st-6b3e911c.mjs → st-DZJqDu2d.mjs} +0 -0
- /package/dist/es/{store-9fc075e6.mjs → store-D2z639xh.mjs} +0 -0
- /package/dist/es/{sv-922ba5ea.mjs → sv-DtkfLQdf.mjs} +0 -0
- /package/dist/es/{sx-c078bfd1.mjs → sx-C1dyGLW-.mjs} +0 -0
- /package/dist/es/{sy-995ec1ee.mjs → sy-DhvBoSDL.mjs} +0 -0
- /package/dist/es/{sz-da33c6e8.mjs → sz-Co03zPL0.mjs} +0 -0
- /package/dist/es/{tc-1a465526.mjs → tc-DFY42rbc.mjs} +0 -0
- /package/dist/es/{td-a7ff3830.mjs → td-DdnMoB4B.mjs} +0 -0
- /package/dist/es/{tf-c71eed4a.mjs → tf-DtUoHxUD.mjs} +0 -0
- /package/dist/es/{tg-613f7f5a.mjs → tg-B-szBZlQ.mjs} +0 -0
- /package/dist/es/{th-f517ca34.mjs → th-hl0xD9En.mjs} +0 -0
- /package/dist/es/{tj-b99ac64f.mjs → tj-CaluHgV4.mjs} +0 -0
- /package/dist/es/{tk-c0dfeac1.mjs → tk-7WTKQA6M.mjs} +0 -0
- /package/dist/es/{tl-35cc3595.mjs → tl-DWxFj_mI.mjs} +0 -0
- /package/dist/es/{tm-0deecc32.mjs → tm-CXa44ZsQ.mjs} +0 -0
- /package/dist/es/{tn-190a49a0.mjs → tn-YGA63yhm.mjs} +0 -0
- /package/dist/es/{to-790cac18.mjs → to-D1SPhDAS.mjs} +0 -0
- /package/dist/es/{tr-1db5a437.mjs → tr-BkORBw5s.mjs} +0 -0
- /package/dist/es/{trust-0e40337d.mjs → trust-CpcaQaV7.mjs} +0 -0
- /package/dist/es/{tt-85ae901c.mjs → tt-CPiasxy9.mjs} +0 -0
- /package/dist/es/{tv-9f2b4198.mjs → tv-1UKqGnYq.mjs} +0 -0
- /package/dist/es/{tw-74aa27b3.mjs → tw-V_-9EdZA.mjs} +0 -0
- /package/dist/es/{tz-2a5cf5e6.mjs → tz-vyNQ8siG.mjs} +0 -0
- /package/dist/es/{ua-9fedceaa.mjs → ua-B36hNKIn.mjs} +0 -0
- /package/dist/es/{ug-1a8fee80.mjs → ug-DzrOv_zJ.mjs} +0 -0
- /package/dist/es/{um-d774b142.mjs → um-Xf4WHDSX.mjs} +0 -0
- /package/dist/es/{us-20ac3d88.mjs → us-VkSkiw44.mjs} +0 -0
- /package/dist/es/{uy-c22e1eb1.mjs → uy-BBVhuI0m.mjs} +0 -0
- /package/dist/es/{uz-f8be4086.mjs → uz-D4g4y6tl.mjs} +0 -0
- /package/dist/es/{va-d1f00296.mjs → va-CuiFpTCr.mjs} +0 -0
- /package/dist/es/{vc-0a06f1c2.mjs → vc-BGrc4dhk.mjs} +0 -0
- /package/dist/es/{ve-3bc33c40.mjs → ve-76O2C7rm.mjs} +0 -0
- /package/dist/es/{vg-3ad787bf.mjs → vg-DMKx8jrg.mjs} +0 -0
- /package/dist/es/{vi-5a78bf74.mjs → vi-D8PahWnh.mjs} +0 -0
- /package/dist/es/{vn-50e78ae2.mjs → vn-BnPQgCR1.mjs} +0 -0
- /package/dist/es/{vu-72d9304c.mjs → vu-B3LLAmr5.mjs} +0 -0
- /package/dist/es/{warning-bb000c6b.mjs → warning-99uFf1WU.mjs} +0 -0
- /package/dist/es/{wf-8cdbeff9.mjs → wf-qXr-xalT.mjs} +0 -0
- /package/dist/es/{wrong-652db543.mjs → wrong-1wvh7nZe.mjs} +0 -0
- /package/dist/es/{ws-745fc88c.mjs → ws-pGsAcjqz.mjs} +0 -0
- /package/dist/es/{ye-f4eaca91.mjs → ye-CII0qyBt.mjs} +0 -0
- /package/dist/es/{yt-93635c9a.mjs → yt-BoehcMko.mjs} +0 -0
- /package/dist/es/{za-42d70d0b.mjs → za-CaK3IAZP.mjs} +0 -0
- /package/dist/es/{zm-571a963f.mjs → zm-C8-RQ03K.mjs} +0 -0
- /package/dist/es/{zw-6cf765c3.mjs → zw-JWvy-vVa.mjs} +0 -0
- /package/dist/es/{zz-067ccc58.mjs → zz-CCLSDExB.mjs} +0 -0
|
@@ -391,19 +391,27 @@ const failedToUpdateDetails = "Failed to update details";
|
|
|
391
391
|
const successfullyVerifiedIdNumber = "Successfully verified %{idNumber}";
|
|
392
392
|
const failedFetchingDecisionMaker = "Failed to get decision maker details";
|
|
393
393
|
const fileUpload = "File upload";
|
|
394
|
-
const
|
|
395
|
-
const
|
|
394
|
+
const documentRequirements = "Document requirements";
|
|
395
|
+
const bankAccountNameIndividual = "Bank account must be in your name (<strong>%{individualLegalName}</strong>)";
|
|
396
|
+
const bankAccountNameOrganization = "Bank account must be in your company's name (<strong>%{companyLegalName}</strong>)";
|
|
397
|
+
const bankAccountNameWithSoleProprietor = "Bank account must be in your name (<strong>%{individualLegalName}</strong>) or sole proprietorship's name (<strong>%{soleProprietorshipName}</strong>)";
|
|
398
|
+
const bankAccountNameWithTrust = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} trading as %{trustTradingName}</strong>)";
|
|
399
|
+
const bankAccountNameWithTrust_US = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} doing business as %{trustTradingName}</strong>)";
|
|
400
|
+
const bankDocument = "Bank document";
|
|
401
|
+
const bankDocumentHeader = "Upload a bank document";
|
|
402
|
+
const bankDocumentHeaderOptional = "Upload a bank document (optional)";
|
|
403
|
+
const bankDocumentDescription = "We need an official document to verify your bank account details.";
|
|
404
|
+
const bankDocumentFileDescription = "Add a description for this bank account (optional)";
|
|
405
|
+
const accountNumberOrIbanVisible = "Includes your account number or IBAN";
|
|
406
|
+
const accountNumberVisible = "Includes your account number";
|
|
407
|
+
const routingNumberVisible = "Includes your routing number";
|
|
408
|
+
const showsCountryOfBankAccount = "Includes the country/region of the bank account";
|
|
409
|
+
const hasBankStampOrBankSignature = "Includes a bank stamp or signature";
|
|
410
|
+
const hasToBeOfficialDocumentFromBank = "Includes the bank logo, bank name, or bank-specific font";
|
|
411
|
+
const issuedInTheLastXMonths = "Issued in the last %{number} months";
|
|
396
412
|
const bankAccountVerification = "Bank account verification";
|
|
397
413
|
const bankStatementDocument = "Bank statement";
|
|
398
|
-
const bankStatementDocumentTypeLabel = "Upload a document to confirm your bank account information. We need to see this document so we can set up your payouts.";
|
|
399
414
|
const requirements = "Requirements:";
|
|
400
|
-
const accountHolderNameMatchesWithBusinessOrTradingName = "Account holder name on the document has to match the legal business or trading name of your company";
|
|
401
|
-
const accountNumberOrIbanVisible = "Visible account number or IBAN";
|
|
402
|
-
const accountNumberVisible = "The account number needs to be visible";
|
|
403
|
-
const routingNumberVisible = "The routing number should be visible";
|
|
404
|
-
const showsCountryOfBankAccount = "Shows the country where the bank account is located (for banks in the EU, the country is included in the IBAN)";
|
|
405
|
-
const hasToBeOfficialDocumentFromBank = "Must be an official bank document that shows the bank logo, the bank name, or a bank-specific font";
|
|
406
|
-
const hasBankStampOrBankSignature = "Must have a bank stamp or bank signature";
|
|
407
415
|
const ifDocumentMoreThan12months = "If your document is older than 12 months, then it should contain a statement with the company’s assets and liabilities. You will need to have it signed and dated by someone with decision-making or signing power within the company. Make sure the date, title, and legal entity name are included.";
|
|
408
416
|
const whyDoINeedToFillInThisInformation = "Why do I need to fill in this information?";
|
|
409
417
|
const reasonForFillingCompanyRegistrationDetails = "We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we’ll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.";
|
|
@@ -419,11 +427,10 @@ const signatoryGuideDescription = "A <strong>signatory</strong> has been given a
|
|
|
419
427
|
const directorGuideDescription = "A <strong>director</strong> is someone appointed to manage a company's business and affairs. Who your directors are can be found on the companies register.";
|
|
420
428
|
const someoneAppointedToManageACompanysBusinessAndAffairs = "Someone appointed to manage a company's business and affairs.";
|
|
421
429
|
const whatIfDocumentIsMoreThan12MonthsOld = "What if my document is more than 12 months old?";
|
|
422
|
-
const
|
|
423
|
-
const depositTicket = "Deposit ticket / deposit form";
|
|
430
|
+
const depositSlip = "Deposit slip";
|
|
424
431
|
const screenshotOfOnlineBankingEnviroment = "Screenshot of online banking environment";
|
|
425
432
|
const officialEmailOrALetterFromYourBank = "Official email or a letter from your bank";
|
|
426
|
-
const
|
|
433
|
+
const check = "Check";
|
|
427
434
|
const releveDidentiteBancaire = "Relevé d'Identité Bancaire (RIB)";
|
|
428
435
|
const successFullyRemovedDecisionMaker = "Successfully removed a decision maker";
|
|
429
436
|
const failedToRemoveDecisionMaker = "Failed to remove a decision maker";
|
|
@@ -1029,6 +1036,7 @@ const errorMessage_1_5050 = "The affiliation document was not official.";
|
|
|
1029
1036
|
const errorMessage_1_5051 = "Signing person on the affiliation document could not be verified";
|
|
1030
1037
|
const errorMessage_1_5052 = "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.";
|
|
1031
1038
|
const errorMessage_1_5053 = "The affiliation document was not issued within the last 6 months";
|
|
1039
|
+
const errorMessage_1_5067 = "The legal name didn't match the one on the VAT registry.";
|
|
1032
1040
|
const errorMessage_1_6000 = "The legal name couldn't be verified.";
|
|
1033
1041
|
const errorMessage_1_6001 = "The legal name didn't match the registration number.";
|
|
1034
1042
|
const errorMessage_1_6002 = "The registration number couldn't be verified.";
|
|
@@ -1103,6 +1111,8 @@ const errorMessage_1_7021 = "The bank document didn't show an official bank logo
|
|
|
1103
1111
|
const errorMessage_1_7022 = "The bank document didn't show an official bank stamp.";
|
|
1104
1112
|
const errorMessage_2_8064 = "UBO through ownership was missing.";
|
|
1105
1113
|
const errorMessage_2_8067 = "Signatory was missing.";
|
|
1114
|
+
const errorMessage_2_8141 = "Registration document was missing.";
|
|
1115
|
+
const errorMessage_2_8162 = "proofOfOrganizationTaxInfo was missing.";
|
|
1106
1116
|
const errorMessage_2_8189 = "UBO through control was missing.";
|
|
1107
1117
|
const errorMessage_2_8193 = "Director was missing.";
|
|
1108
1118
|
const errorMessage_3_10 = "Review of data is required";
|
|
@@ -1133,6 +1143,8 @@ const remediationMessage_1_508 = "Upload a proof of ownership";
|
|
|
1133
1143
|
const remediationMessage_1_509 = "Upload a different affiliation document";
|
|
1134
1144
|
const remediationMessage_1_510 = "Ensure signing person has the rights to represent the organization or is a listed professional member (lawyer, accountant) in your country of business and upload the right document";
|
|
1135
1145
|
const remediationMessage_1_511 = "Upload a document that proves the payout entity is 100% affiliated with the legal entity";
|
|
1146
|
+
const remediationMessage_1_512 = "Upload a VAT document";
|
|
1147
|
+
const remediationMessage_1_513 = "Upload a different VAT document";
|
|
1136
1148
|
const remediationMessage_1_600 = "Update legal entity details";
|
|
1137
1149
|
const remediationMessage_1_601 = "Upload a constitutional document";
|
|
1138
1150
|
const remediationMessage_1_602 = "Upload a different constitutional document";
|
|
@@ -1621,19 +1633,27 @@ const defaultTrans = {
|
|
|
1621
1633
|
successfullyVerifiedIdNumber,
|
|
1622
1634
|
failedFetchingDecisionMaker,
|
|
1623
1635
|
fileUpload,
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1636
|
+
documentRequirements,
|
|
1637
|
+
bankAccountNameIndividual,
|
|
1638
|
+
bankAccountNameOrganization,
|
|
1639
|
+
bankAccountNameWithSoleProprietor,
|
|
1640
|
+
bankAccountNameWithTrust,
|
|
1641
|
+
bankAccountNameWithTrust_US,
|
|
1642
|
+
bankDocument,
|
|
1643
|
+
bankDocumentHeader,
|
|
1644
|
+
bankDocumentHeaderOptional,
|
|
1645
|
+
bankDocumentDescription,
|
|
1646
|
+
bankDocumentFileDescription,
|
|
1631
1647
|
accountNumberOrIbanVisible,
|
|
1632
1648
|
accountNumberVisible,
|
|
1633
1649
|
routingNumberVisible,
|
|
1634
1650
|
showsCountryOfBankAccount,
|
|
1635
|
-
hasToBeOfficialDocumentFromBank,
|
|
1636
1651
|
hasBankStampOrBankSignature,
|
|
1652
|
+
hasToBeOfficialDocumentFromBank,
|
|
1653
|
+
issuedInTheLastXMonths,
|
|
1654
|
+
bankAccountVerification,
|
|
1655
|
+
bankStatementDocument,
|
|
1656
|
+
requirements,
|
|
1637
1657
|
ifDocumentMoreThan12months,
|
|
1638
1658
|
whyDoINeedToFillInThisInformation,
|
|
1639
1659
|
reasonForFillingCompanyRegistrationDetails,
|
|
@@ -1649,11 +1669,10 @@ const defaultTrans = {
|
|
|
1649
1669
|
directorGuideDescription,
|
|
1650
1670
|
someoneAppointedToManageACompanysBusinessAndAffairs,
|
|
1651
1671
|
whatIfDocumentIsMoreThan12MonthsOld,
|
|
1652
|
-
|
|
1653
|
-
depositTicket,
|
|
1672
|
+
depositSlip,
|
|
1654
1673
|
screenshotOfOnlineBankingEnviroment,
|
|
1655
1674
|
officialEmailOrALetterFromYourBank,
|
|
1656
|
-
|
|
1675
|
+
check,
|
|
1657
1676
|
releveDidentiteBancaire,
|
|
1658
1677
|
successFullyRemovedDecisionMaker,
|
|
1659
1678
|
failedToRemoveDecisionMaker,
|
|
@@ -2267,6 +2286,7 @@ const defaultTrans = {
|
|
|
2267
2286
|
errorMessage_1_5051,
|
|
2268
2287
|
errorMessage_1_5052,
|
|
2269
2288
|
errorMessage_1_5053,
|
|
2289
|
+
errorMessage_1_5067,
|
|
2270
2290
|
errorMessage_1_6000,
|
|
2271
2291
|
errorMessage_1_6001,
|
|
2272
2292
|
errorMessage_1_6002,
|
|
@@ -2341,6 +2361,8 @@ const defaultTrans = {
|
|
|
2341
2361
|
errorMessage_1_7022,
|
|
2342
2362
|
errorMessage_2_8064,
|
|
2343
2363
|
errorMessage_2_8067,
|
|
2364
|
+
errorMessage_2_8141,
|
|
2365
|
+
errorMessage_2_8162,
|
|
2344
2366
|
errorMessage_2_8189,
|
|
2345
2367
|
errorMessage_2_8193,
|
|
2346
2368
|
errorMessage_3_10,
|
|
@@ -2371,6 +2393,8 @@ const defaultTrans = {
|
|
|
2371
2393
|
remediationMessage_1_509,
|
|
2372
2394
|
remediationMessage_1_510,
|
|
2373
2395
|
remediationMessage_1_511,
|
|
2396
|
+
remediationMessage_1_512,
|
|
2397
|
+
remediationMessage_1_513,
|
|
2374
2398
|
remediationMessage_1_600,
|
|
2375
2399
|
remediationMessage_1_601,
|
|
2376
2400
|
remediationMessage_1_602,
|
|
@@ -2654,9 +2678,7 @@ const defaultI18n = {
|
|
|
2654
2678
|
};
|
|
2655
2679
|
const I18nContext = createContext(defaultI18n);
|
|
2656
2680
|
const useI18nContext = () => useContext(I18nContext);
|
|
2657
|
-
const SettingsContext = createContext(
|
|
2658
|
-
isSettingEnabled: () => false
|
|
2659
|
-
});
|
|
2681
|
+
const SettingsContext = createContext(void 0);
|
|
2660
2682
|
function useSettingsContext() {
|
|
2661
2683
|
const context = useContext(SettingsContext);
|
|
2662
2684
|
if (context === void 0) {
|
|
@@ -2704,6 +2726,7 @@ function useExperimentsContext() {
|
|
|
2704
2726
|
return context;
|
|
2705
2727
|
}
|
|
2706
2728
|
var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
|
|
2729
|
+
SettingNames2["AcceptedCountries"] = "acceptedCountries";
|
|
2707
2730
|
SettingNames2["AllowBankAccountFormatSelection"] = "allowBankAccountFormatSelection";
|
|
2708
2731
|
SettingNames2["AllowIntraRegionCrossBorderPayout"] = "allowIntraRegionCrossBorderPayout";
|
|
2709
2732
|
SettingNames2["AllowLegalEntityTypeChange"] = "changeLegalEntityType";
|
|
@@ -2728,7 +2751,6 @@ const useEnableNewEntryFlow = () => {
|
|
|
2728
2751
|
} = useExperimentsContext();
|
|
2729
2752
|
return isSettingEnabled(SettingNames.AllowLegalEntityTypeChange) && isExperimentEnabled("EnableNewEntryFlow");
|
|
2730
2753
|
};
|
|
2731
|
-
const Summary$1 = "";
|
|
2732
2754
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
2733
2755
|
a[c] = obj[c];
|
|
2734
2756
|
return a;
|
|
@@ -2924,9 +2946,6 @@ const exactLength = (input, length) => {
|
|
|
2924
2946
|
return input.length === length;
|
|
2925
2947
|
};
|
|
2926
2948
|
const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
|
|
2927
|
-
const _button_component = "";
|
|
2928
|
-
const _link_component = "";
|
|
2929
|
-
const Icon$1 = "";
|
|
2930
2949
|
let suppressed = false;
|
|
2931
2950
|
const consoleMethodsPrefixable = Object.freeze(["debug", "info", "log", "warn", "error", "trace"]);
|
|
2932
2951
|
const stringSubstitutionRegex = /%([soOc]|(\.\d)?[dif])/;
|
|
@@ -2948,43 +2967,43 @@ const createLogger = (namespace) => {
|
|
|
2948
2967
|
return methods;
|
|
2949
2968
|
};
|
|
2950
2969
|
const icons = {
|
|
2951
|
-
"arrow-left": lazy(() => import("./arrow-left-
|
|
2952
|
-
"arrow-right": lazy(() => import("./arrow-right-
|
|
2953
|
-
bin: lazy(() => import("./bin-
|
|
2954
|
-
check: lazy(() => import("./check-
|
|
2955
|
-
checkmark: lazy(() => import("./checkmark-
|
|
2956
|
-
"checkmark-small": lazy(() => import("./checkmark-small-
|
|
2957
|
-
"chevron-down": lazy(() => import("./chevron-down-
|
|
2958
|
-
"chevron-right": lazy(() => import("./chevron-right-
|
|
2959
|
-
"chevron-up": lazy(() => import("./chevron-up-
|
|
2960
|
-
company: lazy(() => import("./company-
|
|
2961
|
-
contract: lazy(() => import("./contract-
|
|
2962
|
-
"controlling-person": lazy(() => import("./controlling-person-
|
|
2963
|
-
cross: lazy(() => import("./cross-
|
|
2964
|
-
"decision-maker": lazy(() => import("./decision-maker-
|
|
2965
|
-
document: lazy(() => import("./document-
|
|
2966
|
-
download: lazy(() => import("./download-
|
|
2967
|
-
edit: lazy(() => import("./edit
|
|
2968
|
-
"field-error": lazy(() => import("./field-error-
|
|
2969
|
-
"info-circle": lazy(() => import("./info-circle-
|
|
2970
|
-
"light-bulb": lazy(() => import("./light-bulb-
|
|
2971
|
-
location: lazy(() => import("./location-
|
|
2972
|
-
"more-horiz": lazy(() => import("./more-horiz-
|
|
2973
|
-
"new-document": lazy(() => import("./new-document-
|
|
2974
|
-
owners: lazy(() => import("./owners-
|
|
2975
|
-
payout: lazy(() => import("./payout-
|
|
2976
|
-
pci: lazy(() => import("./pci-
|
|
2977
|
-
plus: lazy(() => import("./plus-
|
|
2978
|
-
remove: lazy(() => import("./remove-
|
|
2979
|
-
review: lazy(() => import("./review-
|
|
2980
|
-
search: lazy(() => import("./search-
|
|
2981
|
-
signatory: lazy(() => import("./signatory-
|
|
2982
|
-
store: lazy(() => import("./store-
|
|
2983
|
-
trust: lazy(() => import("./trust-
|
|
2984
|
-
warning: lazy(() => import("./warning-
|
|
2985
|
-
wrong: lazy(() => import("./wrong-
|
|
2986
|
-
};
|
|
2987
|
-
const logger$
|
|
2970
|
+
"arrow-left": lazy(() => import("./arrow-left-CCxYxfCP.mjs")),
|
|
2971
|
+
"arrow-right": lazy(() => import("./arrow-right-DF4Qe-8E.mjs")),
|
|
2972
|
+
bin: lazy(() => import("./bin-CGwewvcn.mjs")),
|
|
2973
|
+
check: lazy(() => import("./check-CeSLN4_9.mjs")),
|
|
2974
|
+
checkmark: lazy(() => import("./checkmark-DEh9MPYR.mjs")),
|
|
2975
|
+
"checkmark-small": lazy(() => import("./checkmark-small-D_9HLctx.mjs")),
|
|
2976
|
+
"chevron-down": lazy(() => import("./chevron-down-BzENwYSf.mjs")),
|
|
2977
|
+
"chevron-right": lazy(() => import("./chevron-right-DczMHcvL.mjs")),
|
|
2978
|
+
"chevron-up": lazy(() => import("./chevron-up-BLtnROd5.mjs")),
|
|
2979
|
+
company: lazy(() => import("./company-D5_F_6SW.mjs")),
|
|
2980
|
+
contract: lazy(() => import("./contract-C6wDy9zU.mjs")),
|
|
2981
|
+
"controlling-person": lazy(() => import("./controlling-person-C4KoSyi2.mjs")),
|
|
2982
|
+
cross: lazy(() => import("./cross-BadGfrgB.mjs")),
|
|
2983
|
+
"decision-maker": lazy(() => import("./decision-maker-Cef3-OzY.mjs")),
|
|
2984
|
+
document: lazy(() => import("./document-Cg4kZHpA.mjs")),
|
|
2985
|
+
download: lazy(() => import("./download-DGC5_Bxe.mjs")),
|
|
2986
|
+
edit: lazy(() => import("./edit--fDhojib.mjs")),
|
|
2987
|
+
"field-error": lazy(() => import("./field-error-WElEN1mN.mjs")),
|
|
2988
|
+
"info-circle": lazy(() => import("./info-circle-DkHN1ugA.mjs")),
|
|
2989
|
+
"light-bulb": lazy(() => import("./light-bulb-DEUhbRWP.mjs")),
|
|
2990
|
+
location: lazy(() => import("./location-B1Til-7Q.mjs")),
|
|
2991
|
+
"more-horiz": lazy(() => import("./more-horiz-BieZKfy3.mjs")),
|
|
2992
|
+
"new-document": lazy(() => import("./new-document-BEAJnXCG.mjs")),
|
|
2993
|
+
owners: lazy(() => import("./owners-D1pksb86.mjs")),
|
|
2994
|
+
payout: lazy(() => import("./payout-BFiI--HY.mjs")),
|
|
2995
|
+
pci: lazy(() => import("./pci-DMQLRoAn.mjs")),
|
|
2996
|
+
plus: lazy(() => import("./plus-DAnbeoyS.mjs")),
|
|
2997
|
+
remove: lazy(() => import("./remove-CEmd9YX7.mjs")),
|
|
2998
|
+
review: lazy(() => import("./review-CeQeKHXH.mjs")),
|
|
2999
|
+
search: lazy(() => import("./search-hf3HRVbu.mjs")),
|
|
3000
|
+
signatory: lazy(() => import("./signatory-BVoLPYPu.mjs")),
|
|
3001
|
+
store: lazy(() => import("./store-D2z639xh.mjs")),
|
|
3002
|
+
trust: lazy(() => import("./trust-CpcaQaV7.mjs")),
|
|
3003
|
+
warning: lazy(() => import("./warning-99uFf1WU.mjs")),
|
|
3004
|
+
wrong: lazy(() => import("./wrong-1wvh7nZe.mjs"))
|
|
3005
|
+
};
|
|
3006
|
+
const logger$x = createLogger("Icon");
|
|
2988
3007
|
const Icon = ({
|
|
2989
3008
|
className,
|
|
2990
3009
|
name,
|
|
@@ -2992,7 +3011,7 @@ const Icon = ({
|
|
|
2992
3011
|
}) => {
|
|
2993
3012
|
const LazyLoadedIcon = icons[name];
|
|
2994
3013
|
if (!LazyLoadedIcon) {
|
|
2995
|
-
logger$
|
|
3014
|
+
logger$x.error(`No such icon: "${name}"`);
|
|
2996
3015
|
return null;
|
|
2997
3016
|
}
|
|
2998
3017
|
return jsx("span", {
|
|
@@ -3006,7 +3025,6 @@ const Icon = ({
|
|
|
3006
3025
|
})
|
|
3007
3026
|
});
|
|
3008
3027
|
};
|
|
3009
|
-
const Spinner$1 = "";
|
|
3010
3028
|
const Spinner = ({
|
|
3011
3029
|
inline = false,
|
|
3012
3030
|
size = "large"
|
|
@@ -3103,8 +3121,6 @@ const Button = ({
|
|
|
3103
3121
|
children: buttonText
|
|
3104
3122
|
});
|
|
3105
3123
|
};
|
|
3106
|
-
const ErrorPanel$1 = "";
|
|
3107
|
-
const _alert = "";
|
|
3108
3124
|
var AlertTypes = /* @__PURE__ */ ((AlertTypes2) => {
|
|
3109
3125
|
AlertTypes2[AlertTypes2["BASIC"] = 0] = "BASIC";
|
|
3110
3126
|
AlertTypes2[AlertTypes2["INFO"] = 1] = "INFO";
|
|
@@ -3199,7 +3215,7 @@ function useFormRouterContext() {
|
|
|
3199
3215
|
}
|
|
3200
3216
|
return context;
|
|
3201
3217
|
}
|
|
3202
|
-
const logger$
|
|
3218
|
+
const logger$w = createLogger("Link");
|
|
3203
3219
|
const getIconClass = (icon, external) => {
|
|
3204
3220
|
if (external) {
|
|
3205
3221
|
return "adl-link__icon adyen-kyc-icon-external-link";
|
|
@@ -3211,7 +3227,7 @@ const getIconClass = (icon, external) => {
|
|
|
3211
3227
|
};
|
|
3212
3228
|
const isValidLink = (href) => {
|
|
3213
3229
|
if (href === "#") {
|
|
3214
|
-
logger$
|
|
3230
|
+
logger$w.error('Links must include a valid href. If your href is "#", consider using a Button instead');
|
|
3215
3231
|
return false;
|
|
3216
3232
|
}
|
|
3217
3233
|
return true;
|
|
@@ -3312,7 +3328,6 @@ function ServerValidationErrors({
|
|
|
3312
3328
|
})
|
|
3313
3329
|
});
|
|
3314
3330
|
}
|
|
3315
|
-
const CompanyComponent$1 = "";
|
|
3316
3331
|
function StateContextWatcher({
|
|
3317
3332
|
onChange
|
|
3318
3333
|
}) {
|
|
@@ -3490,15 +3505,28 @@ function useResetGlobalData(caller) {
|
|
|
3490
3505
|
}
|
|
3491
3506
|
}), [dispatch, caller]);
|
|
3492
3507
|
}
|
|
3493
|
-
const
|
|
3508
|
+
const useSetting = (settingName) => {
|
|
3509
|
+
const context = useContext(SettingsContext);
|
|
3510
|
+
if (context === void 0) {
|
|
3511
|
+
throw new Error("useSetting must be used within a SettingsProvider");
|
|
3512
|
+
}
|
|
3513
|
+
const {
|
|
3514
|
+
getSetting
|
|
3515
|
+
} = context;
|
|
3516
|
+
return getSetting(settingName);
|
|
3517
|
+
};
|
|
3518
|
+
const logger$v = createLogger("useAllowedCountries");
|
|
3494
3519
|
const useAllowedCountries = () => {
|
|
3520
|
+
const acceptedCountries = useSetting("acceptedCountries");
|
|
3495
3521
|
const {
|
|
3496
3522
|
getAllowedCountries: getAllowedCountries2
|
|
3497
3523
|
} = useConfigurationApi();
|
|
3498
|
-
const [allowedCountries, setAllowedCountries] = useState();
|
|
3524
|
+
const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
|
|
3499
3525
|
useEffect(() => {
|
|
3500
|
-
|
|
3501
|
-
|
|
3526
|
+
if (acceptedCountries !== void 0)
|
|
3527
|
+
return;
|
|
3528
|
+
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$v.error);
|
|
3529
|
+
}, [acceptedCountries]);
|
|
3502
3530
|
return allowedCountries;
|
|
3503
3531
|
};
|
|
3504
3532
|
const processField = ({
|
|
@@ -3836,7 +3864,7 @@ class ValidationResult {
|
|
|
3836
3864
|
return this.validationResults.filter((result) => result.hasError);
|
|
3837
3865
|
}
|
|
3838
3866
|
}
|
|
3839
|
-
const logger$
|
|
3867
|
+
const logger$u = createLogger("useAsyncValidator");
|
|
3840
3868
|
const useAsyncValidator = (asyncRules) => {
|
|
3841
3869
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
3842
3870
|
const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
|
|
@@ -3859,7 +3887,7 @@ const useAsyncValidator = (asyncRules) => {
|
|
|
3859
3887
|
hasError: !isValid
|
|
3860
3888
|
}])
|
|
3861
3889
|
});
|
|
3862
|
-
}).catch(logger$
|
|
3890
|
+
}).catch(logger$u.error);
|
|
3863
3891
|
}, [asyncRules, clearAsyncValidationResults]);
|
|
3864
3892
|
return {
|
|
3865
3893
|
asyncValidationResults,
|
|
@@ -4117,7 +4145,6 @@ function datasetUtilities(locale) {
|
|
|
4117
4145
|
getDatasetKey: (identifier) => createDatasetKey(identifier, locale)
|
|
4118
4146
|
};
|
|
4119
4147
|
}
|
|
4120
|
-
const Field$1 = "";
|
|
4121
4148
|
const useStateFromProp = ({
|
|
4122
4149
|
initialValue,
|
|
4123
4150
|
passedValue,
|
|
@@ -4259,7 +4286,6 @@ const Field = ({
|
|
|
4259
4286
|
})
|
|
4260
4287
|
});
|
|
4261
4288
|
};
|
|
4262
|
-
const Select$1 = "";
|
|
4263
4289
|
const getScrollParent = (node) => {
|
|
4264
4290
|
if (!node)
|
|
4265
4291
|
return null;
|
|
@@ -4276,7 +4302,6 @@ function uuidv4() {
|
|
|
4276
4302
|
return v.toString(16);
|
|
4277
4303
|
});
|
|
4278
4304
|
}
|
|
4279
|
-
const _loader = "";
|
|
4280
4305
|
const Loader = ({
|
|
4281
4306
|
inline = false,
|
|
4282
4307
|
size = "large",
|
|
@@ -4289,7 +4314,6 @@ const Loader = ({
|
|
|
4289
4314
|
})
|
|
4290
4315
|
})
|
|
4291
4316
|
});
|
|
4292
|
-
const _tag_component = "";
|
|
4293
4317
|
const Tag = ({
|
|
4294
4318
|
className,
|
|
4295
4319
|
isBasic = false,
|
|
@@ -4885,7 +4909,6 @@ const SelectButtonContentMulti = ({
|
|
|
4885
4909
|
className: "adyen-kyc-dropdown-button__text adyen-kyc-dropdown-button__text--placeholder",
|
|
4886
4910
|
children: placeholder
|
|
4887
4911
|
});
|
|
4888
|
-
const Checkbox$1 = "";
|
|
4889
4912
|
function Checkbox({
|
|
4890
4913
|
classNameModifiers = [],
|
|
4891
4914
|
label,
|
|
@@ -5274,7 +5297,6 @@ const Select = ({
|
|
|
5274
5297
|
})]
|
|
5275
5298
|
});
|
|
5276
5299
|
};
|
|
5277
|
-
const Flag$1 = "";
|
|
5278
5300
|
const isIntersectionObserverSupported = typeof IntersectionObserver === "function";
|
|
5279
5301
|
function useIsElementVisible(ref, fallback = true) {
|
|
5280
5302
|
const [isOnScreen, setIsOnScreen] = useState(isIntersectionObserverSupported ? false : fallback);
|
|
@@ -5296,264 +5318,264 @@ function useIsElementVisible(ref, fallback = true) {
|
|
|
5296
5318
|
}, [ref]);
|
|
5297
5319
|
return isOnScreen;
|
|
5298
5320
|
}
|
|
5299
|
-
const logger$
|
|
5321
|
+
const logger$t = createLogger("Flag");
|
|
5300
5322
|
const flagImports = /* @__PURE__ */ Object.assign({
|
|
5301
|
-
"../../../../assets/flags/ad.svg": () => import("./ad-
|
|
5302
|
-
"../../../../assets/flags/ae.svg": () => import("./ae-
|
|
5303
|
-
"../../../../assets/flags/af.svg": () => import("./af-
|
|
5304
|
-
"../../../../assets/flags/ag.svg": () => import("./ag-
|
|
5305
|
-
"../../../../assets/flags/ai.svg": () => import("./ai-
|
|
5306
|
-
"../../../../assets/flags/al.svg": () => import("./al-
|
|
5307
|
-
"../../../../assets/flags/am.svg": () => import("./am-
|
|
5308
|
-
"../../../../assets/flags/an.svg": () => import("./an-
|
|
5309
|
-
"../../../../assets/flags/ao.svg": () => import("./ao-
|
|
5310
|
-
"../../../../assets/flags/aq.svg": () => import("./aq-
|
|
5311
|
-
"../../../../assets/flags/ar.svg": () => import("./ar-
|
|
5312
|
-
"../../../../assets/flags/as.svg": () => import("./as-
|
|
5313
|
-
"../../../../assets/flags/at.svg": () => import("./at-
|
|
5314
|
-
"../../../../assets/flags/au.svg": () => import("./au-
|
|
5315
|
-
"../../../../assets/flags/aw.svg": () => import("./aw-
|
|
5316
|
-
"../../../../assets/flags/ax.svg": () => import("./ax-
|
|
5317
|
-
"../../../../assets/flags/az.svg": () => import("./az-
|
|
5318
|
-
"../../../../assets/flags/ba.svg": () => import("./ba-
|
|
5319
|
-
"../../../../assets/flags/bb.svg": () => import("./bb-
|
|
5320
|
-
"../../../../assets/flags/bd.svg": () => import("./bd-
|
|
5321
|
-
"../../../../assets/flags/be.svg": () => import("./be-
|
|
5322
|
-
"../../../../assets/flags/bf.svg": () => import("./bf-
|
|
5323
|
-
"../../../../assets/flags/bg.svg": () => import("./bg-
|
|
5324
|
-
"../../../../assets/flags/bh.svg": () => import("./bh-
|
|
5325
|
-
"../../../../assets/flags/bi.svg": () => import("./bi-
|
|
5326
|
-
"../../../../assets/flags/bj.svg": () => import("./bj-
|
|
5327
|
-
"../../../../assets/flags/bl.svg": () => import("./bl-
|
|
5328
|
-
"../../../../assets/flags/bm.svg": () => import("./bm-
|
|
5329
|
-
"../../../../assets/flags/bn.svg": () => import("./bn-
|
|
5330
|
-
"../../../../assets/flags/bo.svg": () => import("./bo-
|
|
5331
|
-
"../../../../assets/flags/br.svg": () => import("./br-
|
|
5332
|
-
"../../../../assets/flags/bs.svg": () => import("./bs-
|
|
5333
|
-
"../../../../assets/flags/bt.svg": () => import("./bt-
|
|
5334
|
-
"../../../../assets/flags/bv.svg": () => import("./bv-
|
|
5335
|
-
"../../../../assets/flags/bw.svg": () => import("./bw-
|
|
5336
|
-
"../../../../assets/flags/by.svg": () => import("./by-
|
|
5337
|
-
"../../../../assets/flags/bz.svg": () => import("./bz-
|
|
5338
|
-
"../../../../assets/flags/ca.svg": () => import("./ca-
|
|
5339
|
-
"../../../../assets/flags/cc.svg": () => import("./cc-
|
|
5340
|
-
"../../../../assets/flags/cd.svg": () => import("./cd-
|
|
5341
|
-
"../../../../assets/flags/cf.svg": () => import("./cf-
|
|
5342
|
-
"../../../../assets/flags/cg.svg": () => import("./cg-
|
|
5343
|
-
"../../../../assets/flags/ch.svg": () => import("./ch-
|
|
5344
|
-
"../../../../assets/flags/ci.svg": () => import("./ci-
|
|
5345
|
-
"../../../../assets/flags/ck.svg": () => import("./ck-
|
|
5346
|
-
"../../../../assets/flags/cl.svg": () => import("./cl-
|
|
5347
|
-
"../../../../assets/flags/cm.svg": () => import("./cm-
|
|
5348
|
-
"../../../../assets/flags/cn.svg": () => import("./cn-
|
|
5349
|
-
"../../../../assets/flags/co.svg": () => import("./co-
|
|
5350
|
-
"../../../../assets/flags/cr.svg": () => import("./cr-
|
|
5351
|
-
"../../../../assets/flags/cu.svg": () => import("./cu-
|
|
5352
|
-
"../../../../assets/flags/cv.svg": () => import("./cv-
|
|
5353
|
-
"../../../../assets/flags/cw.svg": () => import("./cw-
|
|
5354
|
-
"../../../../assets/flags/cx.svg": () => import("./cx-
|
|
5355
|
-
"../../../../assets/flags/cy.svg": () => import("./cy-
|
|
5356
|
-
"../../../../assets/flags/cz.svg": () => import("./cz-
|
|
5357
|
-
"../../../../assets/flags/de.svg": () => import("./de-
|
|
5358
|
-
"../../../../assets/flags/dj.svg": () => import("./dj-
|
|
5359
|
-
"../../../../assets/flags/dk.svg": () => import("./dk-
|
|
5360
|
-
"../../../../assets/flags/dm.svg": () => import("./dm-
|
|
5361
|
-
"../../../../assets/flags/do.svg": () => import("./do-
|
|
5362
|
-
"../../../../assets/flags/dz.svg": () => import("./dz-
|
|
5363
|
-
"../../../../assets/flags/ec.svg": () => import("./ec-
|
|
5364
|
-
"../../../../assets/flags/ee.svg": () => import("./ee-
|
|
5365
|
-
"../../../../assets/flags/eg.svg": () => import("./eg-
|
|
5366
|
-
"../../../../assets/flags/eh.svg": () => import("./eh-
|
|
5367
|
-
"../../../../assets/flags/er.svg": () => import("./er-
|
|
5368
|
-
"../../../../assets/flags/es.svg": () => import("./es-
|
|
5369
|
-
"../../../../assets/flags/et.svg": () => import("./et-
|
|
5370
|
-
"../../../../assets/flags/fi.svg": () => import("./fi-
|
|
5371
|
-
"../../../../assets/flags/fj.svg": () => import("./fj-
|
|
5372
|
-
"../../../../assets/flags/fk.svg": () => import("./fk-
|
|
5373
|
-
"../../../../assets/flags/fm.svg": () => import("./fm-
|
|
5374
|
-
"../../../../assets/flags/fo.svg": () => import("./fo-
|
|
5375
|
-
"../../../../assets/flags/fr.svg": () => import("./fr-
|
|
5376
|
-
"../../../../assets/flags/fx.svg": () => import("./fx-
|
|
5377
|
-
"../../../../assets/flags/ga.svg": () => import("./ga-
|
|
5378
|
-
"../../../../assets/flags/gb.svg": () => import("./gb-
|
|
5379
|
-
"../../../../assets/flags/gd.svg": () => import("./gd-
|
|
5380
|
-
"../../../../assets/flags/ge.svg": () => import("./ge-
|
|
5381
|
-
"../../../../assets/flags/gf.svg": () => import("./gf-
|
|
5382
|
-
"../../../../assets/flags/gg.svg": () => import("./gg-
|
|
5383
|
-
"../../../../assets/flags/gh.svg": () => import("./gh-
|
|
5384
|
-
"../../../../assets/flags/gi.svg": () => import("./gi-
|
|
5385
|
-
"../../../../assets/flags/gl.svg": () => import("./gl-
|
|
5386
|
-
"../../../../assets/flags/gm.svg": () => import("./gm-
|
|
5387
|
-
"../../../../assets/flags/gn.svg": () => import("./gn-
|
|
5388
|
-
"../../../../assets/flags/gp.svg": () => import("./gp-
|
|
5389
|
-
"../../../../assets/flags/gq.svg": () => import("./gq-
|
|
5390
|
-
"../../../../assets/flags/gr.svg": () => import("./gr-
|
|
5391
|
-
"../../../../assets/flags/gs.svg": () => import("./gs-
|
|
5392
|
-
"../../../../assets/flags/gt.svg": () => import("./gt-
|
|
5393
|
-
"../../../../assets/flags/gu.svg": () => import("./gu-
|
|
5394
|
-
"../../../../assets/flags/gw.svg": () => import("./gw-
|
|
5395
|
-
"../../../../assets/flags/gy.svg": () => import("./gy-
|
|
5396
|
-
"../../../../assets/flags/hk.svg": () => import("./hk-
|
|
5397
|
-
"../../../../assets/flags/hm.svg": () => import("./hm-
|
|
5398
|
-
"../../../../assets/flags/hn.svg": () => import("./hn-
|
|
5399
|
-
"../../../../assets/flags/hr.svg": () => import("./hr-
|
|
5400
|
-
"../../../../assets/flags/ht.svg": () => import("./ht-
|
|
5401
|
-
"../../../../assets/flags/hu.svg": () => import("./hu-
|
|
5402
|
-
"../../../../assets/flags/id.svg": () => import("./id-
|
|
5403
|
-
"../../../../assets/flags/ie.svg": () => import("./ie-
|
|
5404
|
-
"../../../../assets/flags/il.svg": () => import("./il-
|
|
5405
|
-
"../../../../assets/flags/im.svg": () => import("./im-
|
|
5406
|
-
"../../../../assets/flags/in.svg": () => import("./in-
|
|
5407
|
-
"../../../../assets/flags/io.svg": () => import("./io-
|
|
5408
|
-
"../../../../assets/flags/iq.svg": () => import("./iq-
|
|
5409
|
-
"../../../../assets/flags/ir.svg": () => import("./ir-
|
|
5410
|
-
"../../../../assets/flags/is.svg": () => import("./is-
|
|
5411
|
-
"../../../../assets/flags/it.svg": () => import("./it-
|
|
5412
|
-
"../../../../assets/flags/je.svg": () => import("./je-
|
|
5413
|
-
"../../../../assets/flags/jm.svg": () => import("./jm-
|
|
5414
|
-
"../../../../assets/flags/jo.svg": () => import("./jo-
|
|
5415
|
-
"../../../../assets/flags/jp.svg": () => import("./jp-
|
|
5416
|
-
"../../../../assets/flags/ke.svg": () => import("./ke-
|
|
5417
|
-
"../../../../assets/flags/kg.svg": () => import("./kg-
|
|
5418
|
-
"../../../../assets/flags/kh.svg": () => import("./kh-
|
|
5419
|
-
"../../../../assets/flags/ki.svg": () => import("./ki-
|
|
5420
|
-
"../../../../assets/flags/km.svg": () => import("./km-
|
|
5421
|
-
"../../../../assets/flags/kn.svg": () => import("./kn-
|
|
5422
|
-
"../../../../assets/flags/kp.svg": () => import("./kp-
|
|
5423
|
-
"../../../../assets/flags/kr.svg": () => import("./kr-
|
|
5424
|
-
"../../../../assets/flags/kw.svg": () => import("./kw-
|
|
5425
|
-
"../../../../assets/flags/ky.svg": () => import("./ky-
|
|
5426
|
-
"../../../../assets/flags/kz.svg": () => import("./kz-
|
|
5427
|
-
"../../../../assets/flags/la.svg": () => import("./la-
|
|
5428
|
-
"../../../../assets/flags/lb.svg": () => import("./lb-
|
|
5429
|
-
"../../../../assets/flags/lc.svg": () => import("./lc-
|
|
5430
|
-
"../../../../assets/flags/li.svg": () => import("./li-
|
|
5431
|
-
"../../../../assets/flags/lk.svg": () => import("./lk-
|
|
5432
|
-
"../../../../assets/flags/lr.svg": () => import("./lr-
|
|
5433
|
-
"../../../../assets/flags/ls.svg": () => import("./ls-
|
|
5434
|
-
"../../../../assets/flags/lt.svg": () => import("./lt-
|
|
5435
|
-
"../../../../assets/flags/lu.svg": () => import("./lu-
|
|
5436
|
-
"../../../../assets/flags/lv.svg": () => import("./lv-
|
|
5437
|
-
"../../../../assets/flags/ly.svg": () => import("./ly-
|
|
5438
|
-
"../../../../assets/flags/ma.svg": () => import("./ma-
|
|
5439
|
-
"../../../../assets/flags/mc.svg": () => import("./mc-
|
|
5440
|
-
"../../../../assets/flags/md.svg": () => import("./md-
|
|
5441
|
-
"../../../../assets/flags/me.svg": () => import("./me-
|
|
5442
|
-
"../../../../assets/flags/mf.svg": () => import("./mf-
|
|
5443
|
-
"../../../../assets/flags/mg.svg": () => import("./mg-
|
|
5444
|
-
"../../../../assets/flags/mh.svg": () => import("./mh-
|
|
5445
|
-
"../../../../assets/flags/mk.svg": () => import("./mk-
|
|
5446
|
-
"../../../../assets/flags/ml.svg": () => import("./ml-
|
|
5447
|
-
"../../../../assets/flags/mm.svg": () => import("./mm-
|
|
5448
|
-
"../../../../assets/flags/mn.svg": () => import("./mn-
|
|
5449
|
-
"../../../../assets/flags/mo.svg": () => import("./mo-
|
|
5450
|
-
"../../../../assets/flags/mp.svg": () => import("./mp-
|
|
5451
|
-
"../../../../assets/flags/mq.svg": () => import("./mq-
|
|
5452
|
-
"../../../../assets/flags/mr.svg": () => import("./mr-
|
|
5453
|
-
"../../../../assets/flags/ms.svg": () => import("./ms-
|
|
5454
|
-
"../../../../assets/flags/mt.svg": () => import("./mt-
|
|
5455
|
-
"../../../../assets/flags/mu.svg": () => import("./mu-
|
|
5456
|
-
"../../../../assets/flags/mv.svg": () => import("./mv-
|
|
5457
|
-
"../../../../assets/flags/mw.svg": () => import("./mw-
|
|
5458
|
-
"../../../../assets/flags/mx.svg": () => import("./mx-
|
|
5459
|
-
"../../../../assets/flags/my.svg": () => import("./my-
|
|
5460
|
-
"../../../../assets/flags/mz.svg": () => import("./mz-
|
|
5461
|
-
"../../../../assets/flags/na.svg": () => import("./na-
|
|
5462
|
-
"../../../../assets/flags/nc.svg": () => import("./nc-
|
|
5463
|
-
"../../../../assets/flags/ne.svg": () => import("./ne-
|
|
5464
|
-
"../../../../assets/flags/nf.svg": () => import("./nf-
|
|
5465
|
-
"../../../../assets/flags/ng.svg": () => import("./ng-
|
|
5466
|
-
"../../../../assets/flags/ni.svg": () => import("./ni-
|
|
5467
|
-
"../../../../assets/flags/nl.svg": () => import("./nl-
|
|
5468
|
-
"../../../../assets/flags/no.svg": () => import("./no-
|
|
5469
|
-
"../../../../assets/flags/np.svg": () => import("./np-
|
|
5470
|
-
"../../../../assets/flags/nr.svg": () => import("./nr-
|
|
5471
|
-
"../../../../assets/flags/nu.svg": () => import("./nu-
|
|
5472
|
-
"../../../../assets/flags/nz.svg": () => import("./nz-
|
|
5473
|
-
"../../../../assets/flags/om.svg": () => import("./om-
|
|
5474
|
-
"../../../../assets/flags/pa.svg": () => import("./pa-
|
|
5475
|
-
"../../../../assets/flags/pe.svg": () => import("./pe-
|
|
5476
|
-
"../../../../assets/flags/pf.svg": () => import("./pf-
|
|
5477
|
-
"../../../../assets/flags/pg.svg": () => import("./pg-
|
|
5478
|
-
"../../../../assets/flags/ph.svg": () => import("./ph-
|
|
5479
|
-
"../../../../assets/flags/pk.svg": () => import("./pk-
|
|
5480
|
-
"../../../../assets/flags/pl.svg": () => import("./pl-
|
|
5481
|
-
"../../../../assets/flags/pm.svg": () => import("./pm-
|
|
5482
|
-
"../../../../assets/flags/pn.svg": () => import("./pn-
|
|
5483
|
-
"../../../../assets/flags/pr.svg": () => import("./pr-
|
|
5484
|
-
"../../../../assets/flags/ps.svg": () => import("./ps-
|
|
5485
|
-
"../../../../assets/flags/pt.svg": () => import("./pt-
|
|
5486
|
-
"../../../../assets/flags/pw.svg": () => import("./pw-
|
|
5487
|
-
"../../../../assets/flags/py.svg": () => import("./py-
|
|
5488
|
-
"../../../../assets/flags/qa.svg": () => import("./qa-
|
|
5489
|
-
"../../../../assets/flags/re.svg": () => import("./re-
|
|
5490
|
-
"../../../../assets/flags/ro.svg": () => import("./ro-
|
|
5491
|
-
"../../../../assets/flags/rs.svg": () => import("./rs-
|
|
5492
|
-
"../../../../assets/flags/ru.svg": () => import("./ru-
|
|
5493
|
-
"../../../../assets/flags/rw.svg": () => import("./rw-
|
|
5494
|
-
"../../../../assets/flags/sa.svg": () => import("./sa-
|
|
5495
|
-
"../../../../assets/flags/sb.svg": () => import("./sb-
|
|
5496
|
-
"../../../../assets/flags/sc.svg": () => import("./sc-
|
|
5497
|
-
"../../../../assets/flags/sd.svg": () => import("./sd-
|
|
5498
|
-
"../../../../assets/flags/se.svg": () => import("./se-
|
|
5499
|
-
"../../../../assets/flags/sg.svg": () => import("./sg-
|
|
5500
|
-
"../../../../assets/flags/sh.svg": () => import("./sh-
|
|
5501
|
-
"../../../../assets/flags/si.svg": () => import("./si-
|
|
5502
|
-
"../../../../assets/flags/sj.svg": () => import("./sj-
|
|
5503
|
-
"../../../../assets/flags/sk.svg": () => import("./sk-
|
|
5504
|
-
"../../../../assets/flags/sl.svg": () => import("./sl-
|
|
5505
|
-
"../../../../assets/flags/sm.svg": () => import("./sm-
|
|
5506
|
-
"../../../../assets/flags/sn.svg": () => import("./sn-
|
|
5507
|
-
"../../../../assets/flags/so.svg": () => import("./so-
|
|
5508
|
-
"../../../../assets/flags/sr.svg": () => import("./sr-
|
|
5509
|
-
"../../../../assets/flags/ss.svg": () => import("./ss-
|
|
5510
|
-
"../../../../assets/flags/st.svg": () => import("./st-
|
|
5511
|
-
"../../../../assets/flags/sv.svg": () => import("./sv-
|
|
5512
|
-
"../../../../assets/flags/sx.svg": () => import("./sx-
|
|
5513
|
-
"../../../../assets/flags/sy.svg": () => import("./sy-
|
|
5514
|
-
"../../../../assets/flags/sz.svg": () => import("./sz-
|
|
5515
|
-
"../../../../assets/flags/tc.svg": () => import("./tc-
|
|
5516
|
-
"../../../../assets/flags/td.svg": () => import("./td-
|
|
5517
|
-
"../../../../assets/flags/tf.svg": () => import("./tf-
|
|
5518
|
-
"../../../../assets/flags/tg.svg": () => import("./tg-
|
|
5519
|
-
"../../../../assets/flags/th.svg": () => import("./th-
|
|
5520
|
-
"../../../../assets/flags/tj.svg": () => import("./tj-
|
|
5521
|
-
"../../../../assets/flags/tk.svg": () => import("./tk-
|
|
5522
|
-
"../../../../assets/flags/tl.svg": () => import("./tl-
|
|
5523
|
-
"../../../../assets/flags/tm.svg": () => import("./tm-
|
|
5524
|
-
"../../../../assets/flags/tn.svg": () => import("./tn-
|
|
5525
|
-
"../../../../assets/flags/to.svg": () => import("./to-
|
|
5526
|
-
"../../../../assets/flags/tr.svg": () => import("./tr-
|
|
5527
|
-
"../../../../assets/flags/tt.svg": () => import("./tt-
|
|
5528
|
-
"../../../../assets/flags/tv.svg": () => import("./tv-
|
|
5529
|
-
"../../../../assets/flags/tw.svg": () => import("./tw-
|
|
5530
|
-
"../../../../assets/flags/tz.svg": () => import("./tz-
|
|
5531
|
-
"../../../../assets/flags/ua.svg": () => import("./ua-
|
|
5532
|
-
"../../../../assets/flags/ug.svg": () => import("./ug-
|
|
5533
|
-
"../../../../assets/flags/um.svg": () => import("./um-
|
|
5534
|
-
"../../../../assets/flags/us.svg": () => import("./us-
|
|
5535
|
-
"../../../../assets/flags/uy.svg": () => import("./uy-
|
|
5536
|
-
"../../../../assets/flags/uz.svg": () => import("./uz-
|
|
5537
|
-
"../../../../assets/flags/va.svg": () => import("./va-
|
|
5538
|
-
"../../../../assets/flags/vc.svg": () => import("./vc-
|
|
5539
|
-
"../../../../assets/flags/ve.svg": () => import("./ve-
|
|
5540
|
-
"../../../../assets/flags/vg.svg": () => import("./vg-
|
|
5541
|
-
"../../../../assets/flags/vi.svg": () => import("./vi-
|
|
5542
|
-
"../../../../assets/flags/vn.svg": () => import("./vn-
|
|
5543
|
-
"../../../../assets/flags/vu.svg": () => import("./vu-
|
|
5544
|
-
"../../../../assets/flags/wf.svg": () => import("./wf-
|
|
5545
|
-
"../../../../assets/flags/ws.svg": () => import("./ws-
|
|
5546
|
-
"../../../../assets/flags/ye.svg": () => import("./ye-
|
|
5547
|
-
"../../../../assets/flags/yt.svg": () => import("./yt-
|
|
5548
|
-
"../../../../assets/flags/za.svg": () => import("./za-
|
|
5549
|
-
"../../../../assets/flags/zm.svg": () => import("./zm-
|
|
5550
|
-
"../../../../assets/flags/zw.svg": () => import("./zw-
|
|
5551
|
-
"../../../../assets/flags/zz.svg": () => import("./zz-
|
|
5323
|
+
"../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.mjs"),
|
|
5324
|
+
"../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.mjs"),
|
|
5325
|
+
"../../../../assets/flags/af.svg": () => import("./af-CoKzErRW.mjs"),
|
|
5326
|
+
"../../../../assets/flags/ag.svg": () => import("./ag-g4DXUCrU.mjs"),
|
|
5327
|
+
"../../../../assets/flags/ai.svg": () => import("./ai-CI-B0R9i.mjs"),
|
|
5328
|
+
"../../../../assets/flags/al.svg": () => import("./al-COFkJ5Ca.mjs"),
|
|
5329
|
+
"../../../../assets/flags/am.svg": () => import("./am-Dra-uz-8.mjs"),
|
|
5330
|
+
"../../../../assets/flags/an.svg": () => import("./an-BGvLoFME.mjs"),
|
|
5331
|
+
"../../../../assets/flags/ao.svg": () => import("./ao-DxG-ywGM.mjs"),
|
|
5332
|
+
"../../../../assets/flags/aq.svg": () => import("./aq-D6KJELrz.mjs"),
|
|
5333
|
+
"../../../../assets/flags/ar.svg": () => import("./ar-D1__sXLf.mjs"),
|
|
5334
|
+
"../../../../assets/flags/as.svg": () => import("./as-CO1cnzQr.mjs"),
|
|
5335
|
+
"../../../../assets/flags/at.svg": () => import("./at-DJ-_JUEF.mjs"),
|
|
5336
|
+
"../../../../assets/flags/au.svg": () => import("./au-DQ7hwYxQ.mjs"),
|
|
5337
|
+
"../../../../assets/flags/aw.svg": () => import("./aw-DsF55GZp.mjs"),
|
|
5338
|
+
"../../../../assets/flags/ax.svg": () => import("./ax-B7xGO2vL.mjs"),
|
|
5339
|
+
"../../../../assets/flags/az.svg": () => import("./az-Bn_p9CvJ.mjs"),
|
|
5340
|
+
"../../../../assets/flags/ba.svg": () => import("./ba-BoJK_mQe.mjs"),
|
|
5341
|
+
"../../../../assets/flags/bb.svg": () => import("./bb-Pm_QT_Dl.mjs"),
|
|
5342
|
+
"../../../../assets/flags/bd.svg": () => import("./bd-D7_YREZy.mjs"),
|
|
5343
|
+
"../../../../assets/flags/be.svg": () => import("./be-CZxtblLB.mjs"),
|
|
5344
|
+
"../../../../assets/flags/bf.svg": () => import("./bf-Dpx2xJ7g.mjs"),
|
|
5345
|
+
"../../../../assets/flags/bg.svg": () => import("./bg-GwVUUSOM.mjs"),
|
|
5346
|
+
"../../../../assets/flags/bh.svg": () => import("./bh-JbZUrPJw.mjs"),
|
|
5347
|
+
"../../../../assets/flags/bi.svg": () => import("./bi-BltG81ar.mjs"),
|
|
5348
|
+
"../../../../assets/flags/bj.svg": () => import("./bj-zQUv2SQa.mjs"),
|
|
5349
|
+
"../../../../assets/flags/bl.svg": () => import("./bl-BUtmusIM.mjs"),
|
|
5350
|
+
"../../../../assets/flags/bm.svg": () => import("./bm-D_illE8L.mjs"),
|
|
5351
|
+
"../../../../assets/flags/bn.svg": () => import("./bn-1XDJa4lE.mjs"),
|
|
5352
|
+
"../../../../assets/flags/bo.svg": () => import("./bo-DlmVbV9z.mjs"),
|
|
5353
|
+
"../../../../assets/flags/br.svg": () => import("./br-DLB6QJZk.mjs"),
|
|
5354
|
+
"../../../../assets/flags/bs.svg": () => import("./bs-8dBnGYPj.mjs"),
|
|
5355
|
+
"../../../../assets/flags/bt.svg": () => import("./bt-D9SHS-Ak.mjs"),
|
|
5356
|
+
"../../../../assets/flags/bv.svg": () => import("./bv-ahmv_jU3.mjs"),
|
|
5357
|
+
"../../../../assets/flags/bw.svg": () => import("./bw-DzLl7TuC.mjs"),
|
|
5358
|
+
"../../../../assets/flags/by.svg": () => import("./by-BztFrg5-.mjs"),
|
|
5359
|
+
"../../../../assets/flags/bz.svg": () => import("./bz-DkyxrcWx.mjs"),
|
|
5360
|
+
"../../../../assets/flags/ca.svg": () => import("./ca-Bika55Ha.mjs"),
|
|
5361
|
+
"../../../../assets/flags/cc.svg": () => import("./cc-CFZz_AYg.mjs"),
|
|
5362
|
+
"../../../../assets/flags/cd.svg": () => import("./cd-CgybrxtQ.mjs"),
|
|
5363
|
+
"../../../../assets/flags/cf.svg": () => import("./cf-D23Pv9G5.mjs"),
|
|
5364
|
+
"../../../../assets/flags/cg.svg": () => import("./cg-CfZbcFMO.mjs"),
|
|
5365
|
+
"../../../../assets/flags/ch.svg": () => import("./ch-mKEGRNZY.mjs"),
|
|
5366
|
+
"../../../../assets/flags/ci.svg": () => import("./ci-BJ-L2p8Z.mjs"),
|
|
5367
|
+
"../../../../assets/flags/ck.svg": () => import("./ck-j69yRZOc.mjs"),
|
|
5368
|
+
"../../../../assets/flags/cl.svg": () => import("./cl-C6BytT6S.mjs"),
|
|
5369
|
+
"../../../../assets/flags/cm.svg": () => import("./cm-CUzrX5VK.mjs"),
|
|
5370
|
+
"../../../../assets/flags/cn.svg": () => import("./cn-De5mx48S.mjs"),
|
|
5371
|
+
"../../../../assets/flags/co.svg": () => import("./co-D1tfX-Rj.mjs"),
|
|
5372
|
+
"../../../../assets/flags/cr.svg": () => import("./cr-zUnaQPg8.mjs"),
|
|
5373
|
+
"../../../../assets/flags/cu.svg": () => import("./cu-DaGswOf0.mjs"),
|
|
5374
|
+
"../../../../assets/flags/cv.svg": () => import("./cv-C4-jr8vq.mjs"),
|
|
5375
|
+
"../../../../assets/flags/cw.svg": () => import("./cw-D-6419Qt.mjs"),
|
|
5376
|
+
"../../../../assets/flags/cx.svg": () => import("./cx-DfNBgtwc.mjs"),
|
|
5377
|
+
"../../../../assets/flags/cy.svg": () => import("./cy-BRABzapK.mjs"),
|
|
5378
|
+
"../../../../assets/flags/cz.svg": () => import("./cz-DzosVcuo.mjs"),
|
|
5379
|
+
"../../../../assets/flags/de.svg": () => import("./de-DRcIm1Ma.mjs"),
|
|
5380
|
+
"../../../../assets/flags/dj.svg": () => import("./dj-Da7LmapC.mjs"),
|
|
5381
|
+
"../../../../assets/flags/dk.svg": () => import("./dk-pty9O1pD.mjs"),
|
|
5382
|
+
"../../../../assets/flags/dm.svg": () => import("./dm-GPioKBpx.mjs"),
|
|
5383
|
+
"../../../../assets/flags/do.svg": () => import("./do-k8Aqzhu5.mjs"),
|
|
5384
|
+
"../../../../assets/flags/dz.svg": () => import("./dz-0w5shCtT.mjs"),
|
|
5385
|
+
"../../../../assets/flags/ec.svg": () => import("./ec-hp0Ygj0Y.mjs"),
|
|
5386
|
+
"../../../../assets/flags/ee.svg": () => import("./ee-Dpf_R8jm.mjs"),
|
|
5387
|
+
"../../../../assets/flags/eg.svg": () => import("./eg-BgVS1lzb.mjs"),
|
|
5388
|
+
"../../../../assets/flags/eh.svg": () => import("./eh-CEZasM8H.mjs"),
|
|
5389
|
+
"../../../../assets/flags/er.svg": () => import("./er-RK3foPBe.mjs"),
|
|
5390
|
+
"../../../../assets/flags/es.svg": () => import("./es-CNey9Ibr.mjs"),
|
|
5391
|
+
"../../../../assets/flags/et.svg": () => import("./et-cNmj57xA.mjs"),
|
|
5392
|
+
"../../../../assets/flags/fi.svg": () => import("./fi-Ds4M7qRF.mjs"),
|
|
5393
|
+
"../../../../assets/flags/fj.svg": () => import("./fj-D1q87nq5.mjs"),
|
|
5394
|
+
"../../../../assets/flags/fk.svg": () => import("./fk-Y2rCs5DH.mjs"),
|
|
5395
|
+
"../../../../assets/flags/fm.svg": () => import("./fm-BZKPOICq.mjs"),
|
|
5396
|
+
"../../../../assets/flags/fo.svg": () => import("./fo-sSr8Xnvb.mjs"),
|
|
5397
|
+
"../../../../assets/flags/fr.svg": () => import("./fr-BWzaj6Yw.mjs"),
|
|
5398
|
+
"../../../../assets/flags/fx.svg": () => import("./fx-DR2GRTdn.mjs"),
|
|
5399
|
+
"../../../../assets/flags/ga.svg": () => import("./ga-9LhduROZ.mjs"),
|
|
5400
|
+
"../../../../assets/flags/gb.svg": () => import("./gb-DA-V5Xdu.mjs"),
|
|
5401
|
+
"../../../../assets/flags/gd.svg": () => import("./gd-JWdzcsNM.mjs"),
|
|
5402
|
+
"../../../../assets/flags/ge.svg": () => import("./ge-Zw0skRye.mjs"),
|
|
5403
|
+
"../../../../assets/flags/gf.svg": () => import("./gf-Bq_uV48f.mjs"),
|
|
5404
|
+
"../../../../assets/flags/gg.svg": () => import("./gg-CNzs8gF-.mjs"),
|
|
5405
|
+
"../../../../assets/flags/gh.svg": () => import("./gh-2VT5yAxo.mjs"),
|
|
5406
|
+
"../../../../assets/flags/gi.svg": () => import("./gi-jPgXNb1L.mjs"),
|
|
5407
|
+
"../../../../assets/flags/gl.svg": () => import("./gl-c6mjlUME.mjs"),
|
|
5408
|
+
"../../../../assets/flags/gm.svg": () => import("./gm-BgeXyCUQ.mjs"),
|
|
5409
|
+
"../../../../assets/flags/gn.svg": () => import("./gn-CyyMcNZ3.mjs"),
|
|
5410
|
+
"../../../../assets/flags/gp.svg": () => import("./gp-D2PIp9tB.mjs"),
|
|
5411
|
+
"../../../../assets/flags/gq.svg": () => import("./gq-BT6Gd3M4.mjs"),
|
|
5412
|
+
"../../../../assets/flags/gr.svg": () => import("./gr-B5MQUSuL.mjs"),
|
|
5413
|
+
"../../../../assets/flags/gs.svg": () => import("./gs-6VXnGQzD.mjs"),
|
|
5414
|
+
"../../../../assets/flags/gt.svg": () => import("./gt-4DSSuHgq.mjs"),
|
|
5415
|
+
"../../../../assets/flags/gu.svg": () => import("./gu-Dxf1inL8.mjs"),
|
|
5416
|
+
"../../../../assets/flags/gw.svg": () => import("./gw-R5Dl09OL.mjs"),
|
|
5417
|
+
"../../../../assets/flags/gy.svg": () => import("./gy-CHx6kck0.mjs"),
|
|
5418
|
+
"../../../../assets/flags/hk.svg": () => import("./hk-DLy2j4QA.mjs"),
|
|
5419
|
+
"../../../../assets/flags/hm.svg": () => import("./hm-CoK7Z2cg.mjs"),
|
|
5420
|
+
"../../../../assets/flags/hn.svg": () => import("./hn-DxQ71v08.mjs"),
|
|
5421
|
+
"../../../../assets/flags/hr.svg": () => import("./hr-B6Zc8qZS.mjs"),
|
|
5422
|
+
"../../../../assets/flags/ht.svg": () => import("./ht-DCMkLse8.mjs"),
|
|
5423
|
+
"../../../../assets/flags/hu.svg": () => import("./hu-JEoUAdpx.mjs"),
|
|
5424
|
+
"../../../../assets/flags/id.svg": () => import("./id-D1C_2HvG.mjs"),
|
|
5425
|
+
"../../../../assets/flags/ie.svg": () => import("./ie-d3bapQx-.mjs"),
|
|
5426
|
+
"../../../../assets/flags/il.svg": () => import("./il-CxVm0b2J.mjs"),
|
|
5427
|
+
"../../../../assets/flags/im.svg": () => import("./im-BN_uhDka.mjs"),
|
|
5428
|
+
"../../../../assets/flags/in.svg": () => import("./in-BGdmDROr.mjs"),
|
|
5429
|
+
"../../../../assets/flags/io.svg": () => import("./io-DYCJpAKf.mjs"),
|
|
5430
|
+
"../../../../assets/flags/iq.svg": () => import("./iq-BlsI9EWN.mjs"),
|
|
5431
|
+
"../../../../assets/flags/ir.svg": () => import("./ir-DdOj6IVV.mjs"),
|
|
5432
|
+
"../../../../assets/flags/is.svg": () => import("./is-DN52KJKG.mjs"),
|
|
5433
|
+
"../../../../assets/flags/it.svg": () => import("./it-D6Y8tXt3.mjs"),
|
|
5434
|
+
"../../../../assets/flags/je.svg": () => import("./je-DR82slj4.mjs"),
|
|
5435
|
+
"../../../../assets/flags/jm.svg": () => import("./jm-LqaENrl9.mjs"),
|
|
5436
|
+
"../../../../assets/flags/jo.svg": () => import("./jo-yLc64Rmj.mjs"),
|
|
5437
|
+
"../../../../assets/flags/jp.svg": () => import("./jp-Bb5uIw0H.mjs"),
|
|
5438
|
+
"../../../../assets/flags/ke.svg": () => import("./ke-BK1BjkeR.mjs"),
|
|
5439
|
+
"../../../../assets/flags/kg.svg": () => import("./kg-wlEuBvxO.mjs"),
|
|
5440
|
+
"../../../../assets/flags/kh.svg": () => import("./kh-DsvqlHLy.mjs"),
|
|
5441
|
+
"../../../../assets/flags/ki.svg": () => import("./ki-Byta-OFo.mjs"),
|
|
5442
|
+
"../../../../assets/flags/km.svg": () => import("./km-RNbmgGL_.mjs"),
|
|
5443
|
+
"../../../../assets/flags/kn.svg": () => import("./kn-CsHNi3Qt.mjs"),
|
|
5444
|
+
"../../../../assets/flags/kp.svg": () => import("./kp-DskyYlvx.mjs"),
|
|
5445
|
+
"../../../../assets/flags/kr.svg": () => import("./kr-DlF6eJVr.mjs"),
|
|
5446
|
+
"../../../../assets/flags/kw.svg": () => import("./kw-BiQAd6j1.mjs"),
|
|
5447
|
+
"../../../../assets/flags/ky.svg": () => import("./ky-BvPeTNcl.mjs"),
|
|
5448
|
+
"../../../../assets/flags/kz.svg": () => import("./kz-BQCcz0Va.mjs"),
|
|
5449
|
+
"../../../../assets/flags/la.svg": () => import("./la-COyntyzl.mjs"),
|
|
5450
|
+
"../../../../assets/flags/lb.svg": () => import("./lb-CzTzggHc.mjs"),
|
|
5451
|
+
"../../../../assets/flags/lc.svg": () => import("./lc-CRL2hV6d.mjs"),
|
|
5452
|
+
"../../../../assets/flags/li.svg": () => import("./li-BN-LWzEm.mjs"),
|
|
5453
|
+
"../../../../assets/flags/lk.svg": () => import("./lk-Dh6uTZcH.mjs"),
|
|
5454
|
+
"../../../../assets/flags/lr.svg": () => import("./lr-CoVvhAhL.mjs"),
|
|
5455
|
+
"../../../../assets/flags/ls.svg": () => import("./ls-BFhv4OAc.mjs"),
|
|
5456
|
+
"../../../../assets/flags/lt.svg": () => import("./lt-C9w-Id1S.mjs"),
|
|
5457
|
+
"../../../../assets/flags/lu.svg": () => import("./lu-Ccpxa0yN.mjs"),
|
|
5458
|
+
"../../../../assets/flags/lv.svg": () => import("./lv-Di5Y7vBC.mjs"),
|
|
5459
|
+
"../../../../assets/flags/ly.svg": () => import("./ly-BKgB-CvV.mjs"),
|
|
5460
|
+
"../../../../assets/flags/ma.svg": () => import("./ma-gJj5XCI-.mjs"),
|
|
5461
|
+
"../../../../assets/flags/mc.svg": () => import("./mc-BPN5JfTO.mjs"),
|
|
5462
|
+
"../../../../assets/flags/md.svg": () => import("./md-aCqyKOgl.mjs"),
|
|
5463
|
+
"../../../../assets/flags/me.svg": () => import("./me-C6-JkhFA.mjs"),
|
|
5464
|
+
"../../../../assets/flags/mf.svg": () => import("./mf-jpyKjgsU.mjs"),
|
|
5465
|
+
"../../../../assets/flags/mg.svg": () => import("./mg-TS1IwqtI.mjs"),
|
|
5466
|
+
"../../../../assets/flags/mh.svg": () => import("./mh-yHLgOFiA.mjs"),
|
|
5467
|
+
"../../../../assets/flags/mk.svg": () => import("./mk-CaRVDngZ.mjs"),
|
|
5468
|
+
"../../../../assets/flags/ml.svg": () => import("./ml-CUUHxg1j.mjs"),
|
|
5469
|
+
"../../../../assets/flags/mm.svg": () => import("./mm-CYK7VHSP.mjs"),
|
|
5470
|
+
"../../../../assets/flags/mn.svg": () => import("./mn-D2S-h2WN.mjs"),
|
|
5471
|
+
"../../../../assets/flags/mo.svg": () => import("./mo-D1RG60zF.mjs"),
|
|
5472
|
+
"../../../../assets/flags/mp.svg": () => import("./mp-DzztXSh1.mjs"),
|
|
5473
|
+
"../../../../assets/flags/mq.svg": () => import("./mq-Gsmz5_5j.mjs"),
|
|
5474
|
+
"../../../../assets/flags/mr.svg": () => import("./mr-C_s5K8p5.mjs"),
|
|
5475
|
+
"../../../../assets/flags/ms.svg": () => import("./ms-Cgov7p4h.mjs"),
|
|
5476
|
+
"../../../../assets/flags/mt.svg": () => import("./mt-B9vsNjSx.mjs"),
|
|
5477
|
+
"../../../../assets/flags/mu.svg": () => import("./mu-DeH79Hcd.mjs"),
|
|
5478
|
+
"../../../../assets/flags/mv.svg": () => import("./mv-CS9OGWK4.mjs"),
|
|
5479
|
+
"../../../../assets/flags/mw.svg": () => import("./mw-BvDfO_4m.mjs"),
|
|
5480
|
+
"../../../../assets/flags/mx.svg": () => import("./mx-ByC0ZmOn.mjs"),
|
|
5481
|
+
"../../../../assets/flags/my.svg": () => import("./my-BtbjhaSG.mjs"),
|
|
5482
|
+
"../../../../assets/flags/mz.svg": () => import("./mz-BuZty0IX.mjs"),
|
|
5483
|
+
"../../../../assets/flags/na.svg": () => import("./na-BMRoTc_5.mjs"),
|
|
5484
|
+
"../../../../assets/flags/nc.svg": () => import("./nc-TfmJ1_PR.mjs"),
|
|
5485
|
+
"../../../../assets/flags/ne.svg": () => import("./ne-e6jU7Ta4.mjs"),
|
|
5486
|
+
"../../../../assets/flags/nf.svg": () => import("./nf-DEApE1l7.mjs"),
|
|
5487
|
+
"../../../../assets/flags/ng.svg": () => import("./ng-C481SfES.mjs"),
|
|
5488
|
+
"../../../../assets/flags/ni.svg": () => import("./ni-DoG4DYn_.mjs"),
|
|
5489
|
+
"../../../../assets/flags/nl.svg": () => import("./nl-Cmbofdv4.mjs"),
|
|
5490
|
+
"../../../../assets/flags/no.svg": () => import("./no-CVO81I1l.mjs"),
|
|
5491
|
+
"../../../../assets/flags/np.svg": () => import("./np-zRmg82Re.mjs"),
|
|
5492
|
+
"../../../../assets/flags/nr.svg": () => import("./nr-B5qQQRjH.mjs"),
|
|
5493
|
+
"../../../../assets/flags/nu.svg": () => import("./nu-BI4Y-0EG.mjs"),
|
|
5494
|
+
"../../../../assets/flags/nz.svg": () => import("./nz-DF7xbKn7.mjs"),
|
|
5495
|
+
"../../../../assets/flags/om.svg": () => import("./om-BjOei_ke.mjs"),
|
|
5496
|
+
"../../../../assets/flags/pa.svg": () => import("./pa-ZEXTGOfm.mjs"),
|
|
5497
|
+
"../../../../assets/flags/pe.svg": () => import("./pe-HNEmB15y.mjs"),
|
|
5498
|
+
"../../../../assets/flags/pf.svg": () => import("./pf-DwCESo2k.mjs"),
|
|
5499
|
+
"../../../../assets/flags/pg.svg": () => import("./pg-BhOdaLDy.mjs"),
|
|
5500
|
+
"../../../../assets/flags/ph.svg": () => import("./ph-8ii4-Tq6.mjs"),
|
|
5501
|
+
"../../../../assets/flags/pk.svg": () => import("./pk-BafoDKz5.mjs"),
|
|
5502
|
+
"../../../../assets/flags/pl.svg": () => import("./pl-D9b2Q58T.mjs"),
|
|
5503
|
+
"../../../../assets/flags/pm.svg": () => import("./pm-C-WvmgM4.mjs"),
|
|
5504
|
+
"../../../../assets/flags/pn.svg": () => import("./pn-DjnHidFS.mjs"),
|
|
5505
|
+
"../../../../assets/flags/pr.svg": () => import("./pr-Dd50hA9F.mjs"),
|
|
5506
|
+
"../../../../assets/flags/ps.svg": () => import("./ps-CUGb27Pq.mjs"),
|
|
5507
|
+
"../../../../assets/flags/pt.svg": () => import("./pt-Qpxk-ulQ.mjs"),
|
|
5508
|
+
"../../../../assets/flags/pw.svg": () => import("./pw-DV4RtHVX.mjs"),
|
|
5509
|
+
"../../../../assets/flags/py.svg": () => import("./py-eg-mtZFC.mjs"),
|
|
5510
|
+
"../../../../assets/flags/qa.svg": () => import("./qa-CHyJi5tF.mjs"),
|
|
5511
|
+
"../../../../assets/flags/re.svg": () => import("./re-FpArmeeM.mjs"),
|
|
5512
|
+
"../../../../assets/flags/ro.svg": () => import("./ro-ANrnebzK.mjs"),
|
|
5513
|
+
"../../../../assets/flags/rs.svg": () => import("./rs-BGbyX7Qb.mjs"),
|
|
5514
|
+
"../../../../assets/flags/ru.svg": () => import("./ru-DtLSIa8v.mjs"),
|
|
5515
|
+
"../../../../assets/flags/rw.svg": () => import("./rw-B1kILqpv.mjs"),
|
|
5516
|
+
"../../../../assets/flags/sa.svg": () => import("./sa-CEcWBFfj.mjs"),
|
|
5517
|
+
"../../../../assets/flags/sb.svg": () => import("./sb-p9ah_4x5.mjs"),
|
|
5518
|
+
"../../../../assets/flags/sc.svg": () => import("./sc-2YHg9FTT.mjs"),
|
|
5519
|
+
"../../../../assets/flags/sd.svg": () => import("./sd-BKzyWEE3.mjs"),
|
|
5520
|
+
"../../../../assets/flags/se.svg": () => import("./se-Dq5LtCEp.mjs"),
|
|
5521
|
+
"../../../../assets/flags/sg.svg": () => import("./sg-C752_QVl.mjs"),
|
|
5522
|
+
"../../../../assets/flags/sh.svg": () => import("./sh-NFjaiAXX.mjs"),
|
|
5523
|
+
"../../../../assets/flags/si.svg": () => import("./si-DKzVjXeV.mjs"),
|
|
5524
|
+
"../../../../assets/flags/sj.svg": () => import("./sj-DF7Bf8Q9.mjs"),
|
|
5525
|
+
"../../../../assets/flags/sk.svg": () => import("./sk-CPmqq18S.mjs"),
|
|
5526
|
+
"../../../../assets/flags/sl.svg": () => import("./sl-Dx7oHjXI.mjs"),
|
|
5527
|
+
"../../../../assets/flags/sm.svg": () => import("./sm-B8bEOCx7.mjs"),
|
|
5528
|
+
"../../../../assets/flags/sn.svg": () => import("./sn-tcqzwUh4.mjs"),
|
|
5529
|
+
"../../../../assets/flags/so.svg": () => import("./so-BrD8jwW8.mjs"),
|
|
5530
|
+
"../../../../assets/flags/sr.svg": () => import("./sr-Dyy1x6sW.mjs"),
|
|
5531
|
+
"../../../../assets/flags/ss.svg": () => import("./ss-CpfhWUQL.mjs"),
|
|
5532
|
+
"../../../../assets/flags/st.svg": () => import("./st-DZJqDu2d.mjs"),
|
|
5533
|
+
"../../../../assets/flags/sv.svg": () => import("./sv-DtkfLQdf.mjs"),
|
|
5534
|
+
"../../../../assets/flags/sx.svg": () => import("./sx-C1dyGLW-.mjs"),
|
|
5535
|
+
"../../../../assets/flags/sy.svg": () => import("./sy-DhvBoSDL.mjs"),
|
|
5536
|
+
"../../../../assets/flags/sz.svg": () => import("./sz-Co03zPL0.mjs"),
|
|
5537
|
+
"../../../../assets/flags/tc.svg": () => import("./tc-DFY42rbc.mjs"),
|
|
5538
|
+
"../../../../assets/flags/td.svg": () => import("./td-DdnMoB4B.mjs"),
|
|
5539
|
+
"../../../../assets/flags/tf.svg": () => import("./tf-DtUoHxUD.mjs"),
|
|
5540
|
+
"../../../../assets/flags/tg.svg": () => import("./tg-B-szBZlQ.mjs"),
|
|
5541
|
+
"../../../../assets/flags/th.svg": () => import("./th-hl0xD9En.mjs"),
|
|
5542
|
+
"../../../../assets/flags/tj.svg": () => import("./tj-CaluHgV4.mjs"),
|
|
5543
|
+
"../../../../assets/flags/tk.svg": () => import("./tk-7WTKQA6M.mjs"),
|
|
5544
|
+
"../../../../assets/flags/tl.svg": () => import("./tl-DWxFj_mI.mjs"),
|
|
5545
|
+
"../../../../assets/flags/tm.svg": () => import("./tm-CXa44ZsQ.mjs"),
|
|
5546
|
+
"../../../../assets/flags/tn.svg": () => import("./tn-YGA63yhm.mjs"),
|
|
5547
|
+
"../../../../assets/flags/to.svg": () => import("./to-D1SPhDAS.mjs"),
|
|
5548
|
+
"../../../../assets/flags/tr.svg": () => import("./tr-BkORBw5s.mjs"),
|
|
5549
|
+
"../../../../assets/flags/tt.svg": () => import("./tt-CPiasxy9.mjs"),
|
|
5550
|
+
"../../../../assets/flags/tv.svg": () => import("./tv-1UKqGnYq.mjs"),
|
|
5551
|
+
"../../../../assets/flags/tw.svg": () => import("./tw-V_-9EdZA.mjs"),
|
|
5552
|
+
"../../../../assets/flags/tz.svg": () => import("./tz-vyNQ8siG.mjs"),
|
|
5553
|
+
"../../../../assets/flags/ua.svg": () => import("./ua-B36hNKIn.mjs"),
|
|
5554
|
+
"../../../../assets/flags/ug.svg": () => import("./ug-DzrOv_zJ.mjs"),
|
|
5555
|
+
"../../../../assets/flags/um.svg": () => import("./um-Xf4WHDSX.mjs"),
|
|
5556
|
+
"../../../../assets/flags/us.svg": () => import("./us-VkSkiw44.mjs"),
|
|
5557
|
+
"../../../../assets/flags/uy.svg": () => import("./uy-BBVhuI0m.mjs"),
|
|
5558
|
+
"../../../../assets/flags/uz.svg": () => import("./uz-D4g4y6tl.mjs"),
|
|
5559
|
+
"../../../../assets/flags/va.svg": () => import("./va-CuiFpTCr.mjs"),
|
|
5560
|
+
"../../../../assets/flags/vc.svg": () => import("./vc-BGrc4dhk.mjs"),
|
|
5561
|
+
"../../../../assets/flags/ve.svg": () => import("./ve-76O2C7rm.mjs"),
|
|
5562
|
+
"../../../../assets/flags/vg.svg": () => import("./vg-DMKx8jrg.mjs"),
|
|
5563
|
+
"../../../../assets/flags/vi.svg": () => import("./vi-D8PahWnh.mjs"),
|
|
5564
|
+
"../../../../assets/flags/vn.svg": () => import("./vn-BnPQgCR1.mjs"),
|
|
5565
|
+
"../../../../assets/flags/vu.svg": () => import("./vu-B3LLAmr5.mjs"),
|
|
5566
|
+
"../../../../assets/flags/wf.svg": () => import("./wf-qXr-xalT.mjs"),
|
|
5567
|
+
"../../../../assets/flags/ws.svg": () => import("./ws-pGsAcjqz.mjs"),
|
|
5568
|
+
"../../../../assets/flags/ye.svg": () => import("./ye-CII0qyBt.mjs"),
|
|
5569
|
+
"../../../../assets/flags/yt.svg": () => import("./yt-BoehcMko.mjs"),
|
|
5570
|
+
"../../../../assets/flags/za.svg": () => import("./za-CaK3IAZP.mjs"),
|
|
5571
|
+
"../../../../assets/flags/zm.svg": () => import("./zm-C8-RQ03K.mjs"),
|
|
5572
|
+
"../../../../assets/flags/zw.svg": () => import("./zw-JWvy-vVa.mjs"),
|
|
5573
|
+
"../../../../assets/flags/zz.svg": () => import("./zz-CCLSDExB.mjs")
|
|
5552
5574
|
});
|
|
5553
5575
|
const getLazyLoadedSvgComponent = (country2) => {
|
|
5554
5576
|
const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
|
|
5555
5577
|
if (!importForCountry) {
|
|
5556
|
-
logger$
|
|
5578
|
+
logger$t.error(`No flag available for ${country2}`);
|
|
5557
5579
|
return void 0;
|
|
5558
5580
|
}
|
|
5559
5581
|
return lazy(importForCountry);
|
|
@@ -5618,7 +5640,6 @@ function CountryField({
|
|
|
5618
5640
|
})
|
|
5619
5641
|
});
|
|
5620
5642
|
}
|
|
5621
|
-
const FormHeader$1 = "";
|
|
5622
5643
|
function FormHeader({
|
|
5623
5644
|
heading,
|
|
5624
5645
|
description: description2,
|
|
@@ -5658,7 +5679,6 @@ const useForwardedRef = (forwardedRef) => {
|
|
|
5658
5679
|
const backupRef = useRef();
|
|
5659
5680
|
return forwardedRef ?? backupRef;
|
|
5660
5681
|
};
|
|
5661
|
-
const FormFields = "";
|
|
5662
5682
|
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
5663
5683
|
const InputBase = forwardRef((props, ref) => {
|
|
5664
5684
|
const {
|
|
@@ -5782,7 +5802,6 @@ function LegalCompanyNameField({
|
|
|
5782
5802
|
})
|
|
5783
5803
|
});
|
|
5784
5804
|
}
|
|
5785
|
-
const Disclaimer$1 = "";
|
|
5786
5805
|
const Disclaimer = ({
|
|
5787
5806
|
title,
|
|
5788
5807
|
children
|
|
@@ -5898,7 +5917,6 @@ const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, n
|
|
|
5898
5917
|
var _a, _b;
|
|
5899
5918
|
return objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && ((_a = prevProps.data) == null ? void 0 : _a.country) === ((_b = nextProps.data) == null ? void 0 : _b.country) && prevProps.shouldValidate === nextProps.shouldValidate;
|
|
5900
5919
|
});
|
|
5901
|
-
const CompanyRegistrationDetailsComponent$1 = "";
|
|
5902
5920
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
5903
5921
|
ExperimentNames2["EnableCompanySearchFlow"] = "EnableCompanySearchFlow";
|
|
5904
5922
|
ExperimentNames2["EnableNewEntryFlow"] = "EnableNewEntryFlow";
|
|
@@ -6197,7 +6215,6 @@ const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
|
6197
6215
|
}
|
|
6198
6216
|
return defaultMetadata;
|
|
6199
6217
|
};
|
|
6200
|
-
const MaskedInputText$1 = "";
|
|
6201
6218
|
const cachedStripPatterns = /* @__PURE__ */ new Map();
|
|
6202
6219
|
const makeStripPattern = (mask) => {
|
|
6203
6220
|
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
@@ -6355,7 +6372,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
|
|
|
6355
6372
|
};
|
|
6356
6373
|
};
|
|
6357
6374
|
const MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
6358
|
-
const logger$
|
|
6375
|
+
const logger$s = createLogger("MaskedInputText");
|
|
6359
6376
|
const MaskedInputText = ({
|
|
6360
6377
|
value,
|
|
6361
6378
|
onInput,
|
|
@@ -6397,7 +6414,7 @@ const MaskedInputText = ({
|
|
|
6397
6414
|
};
|
|
6398
6415
|
useEffect(() => {
|
|
6399
6416
|
if (!mask) {
|
|
6400
|
-
logger$
|
|
6417
|
+
logger$s.warn("`mask` is undefined. No masking of input will take place.");
|
|
6401
6418
|
}
|
|
6402
6419
|
}, [mask]);
|
|
6403
6420
|
const getMaskResult = useCallback((pureValue) => {
|
|
@@ -6424,7 +6441,7 @@ const MaskedInputText = ({
|
|
|
6424
6441
|
return;
|
|
6425
6442
|
}
|
|
6426
6443
|
const fallback = displayValueToPure(maskResult.partialDisplayValue);
|
|
6427
|
-
logger$
|
|
6444
|
+
logger$s.warn(`Value received "${value}" does not match mask`, maskResult, `
|
|
6428
6445
|
Falling back to partially valid value "${fallback}"`);
|
|
6429
6446
|
onInput(fallback);
|
|
6430
6447
|
}
|
|
@@ -6645,7 +6662,9 @@ const businessRegistrationNumberMasks = {
|
|
|
6645
6662
|
},
|
|
6646
6663
|
[CountryCodes.Finland]: {
|
|
6647
6664
|
default: {
|
|
6648
|
-
mask: makeMask(...numericInputs(7), ...nonInputs("
|
|
6665
|
+
mask: makeMask(...numericInputs(7), spacer, ...nonInputs("-", {
|
|
6666
|
+
includeInValue: true
|
|
6667
|
+
}), spacer, ...numericInputs(1))
|
|
6649
6668
|
}
|
|
6650
6669
|
},
|
|
6651
6670
|
[CountryCodes.France]: {
|
|
@@ -6893,7 +6912,7 @@ const businessRegistrationNumberPatterns = {
|
|
|
6893
6912
|
default: /^\d{8}$/
|
|
6894
6913
|
},
|
|
6895
6914
|
[CountryCodes.Finland]: {
|
|
6896
|
-
default: /^\d{
|
|
6915
|
+
default: /^\d{7}-?\d$/
|
|
6897
6916
|
},
|
|
6898
6917
|
[CountryCodes.France]: {
|
|
6899
6918
|
SIRET: /^\d{9}-?\d{5}$/,
|
|
@@ -7904,7 +7923,6 @@ class UserEvents {
|
|
|
7904
7923
|
}
|
|
7905
7924
|
}
|
|
7906
7925
|
const userEvents = new UserEvents();
|
|
7907
|
-
const _accordion_component = "";
|
|
7908
7926
|
const AccordionContext = createContext(null);
|
|
7909
7927
|
function Accordion({
|
|
7910
7928
|
children,
|
|
@@ -7937,13 +7955,11 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
|
7937
7955
|
Placement2[Placement2["Right"] = 1] = "Right";
|
|
7938
7956
|
return Placement2;
|
|
7939
7957
|
})(Placement || {});
|
|
7940
|
-
const _accordionItem_component = "";
|
|
7941
7958
|
let idCounter = Date.now();
|
|
7942
7959
|
const getUniqueId = (prefix = "id") => {
|
|
7943
7960
|
idCounter += 1;
|
|
7944
7961
|
return `${prefix}-${idCounter}`;
|
|
7945
7962
|
};
|
|
7946
|
-
const CollapsibleContainer$1 = "";
|
|
7947
7963
|
function CollapsibleContainer({
|
|
7948
7964
|
children,
|
|
7949
7965
|
collapsed = false,
|
|
@@ -8144,8 +8160,6 @@ function InputDate(props) {
|
|
|
8144
8160
|
maxLength: 10
|
|
8145
8161
|
});
|
|
8146
8162
|
}
|
|
8147
|
-
const RadioGroup$1 = "";
|
|
8148
|
-
const _inputRadio = "";
|
|
8149
8163
|
const InputRadio = ({
|
|
8150
8164
|
className,
|
|
8151
8165
|
...props
|
|
@@ -8461,12 +8475,12 @@ const defaultFieldConfig$7 = {
|
|
|
8461
8475
|
label: "employerIdentificationNumber",
|
|
8462
8476
|
validators: validatePatternOnBlur(/^\d{9}$/),
|
|
8463
8477
|
mask: {
|
|
8464
|
-
mask: makeMask(...numericInputs(
|
|
8478
|
+
mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7))
|
|
8465
8479
|
},
|
|
8466
8480
|
guidanceText: {
|
|
8467
8481
|
key: "validationPleaseEnterAValidTaxIdNumberWithFormat",
|
|
8468
8482
|
values: {
|
|
8469
|
-
format: "
|
|
8483
|
+
format: "XX-XXXXXXX"
|
|
8470
8484
|
}
|
|
8471
8485
|
}
|
|
8472
8486
|
};
|
|
@@ -9709,7 +9723,6 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9709
9723
|
})]
|
|
9710
9724
|
});
|
|
9711
9725
|
}
|
|
9712
|
-
const CompanyTypeComponent$1 = "";
|
|
9713
9726
|
const companyBase = {
|
|
9714
9727
|
accountHolder: {
|
|
9715
9728
|
rule: "accountHolderIfCustomer"
|
|
@@ -10518,7 +10531,7 @@ const accountHolderValidationRules = {
|
|
|
10518
10531
|
}
|
|
10519
10532
|
};
|
|
10520
10533
|
const accountHolderFields = ["accountHolder"];
|
|
10521
|
-
const logger$
|
|
10534
|
+
const logger$r = createLogger("AccountHolder");
|
|
10522
10535
|
function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
|
|
10523
10536
|
switch (legalEntityType) {
|
|
10524
10537
|
case LegalEntityType.ORGANIZATION: {
|
|
@@ -10528,7 +10541,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
|
|
|
10528
10541
|
return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
|
|
10529
10542
|
}
|
|
10530
10543
|
default:
|
|
10531
|
-
logger$
|
|
10544
|
+
logger$r.error(`No available account holder options for legal entity type '${legalEntityType}'`);
|
|
10532
10545
|
return [];
|
|
10533
10546
|
}
|
|
10534
10547
|
}
|
|
@@ -10620,7 +10633,6 @@ function AccountHolder(props) {
|
|
|
10620
10633
|
}) : null]
|
|
10621
10634
|
});
|
|
10622
10635
|
}
|
|
10623
|
-
const RadioCard$1 = "";
|
|
10624
10636
|
const RadioCard = ({
|
|
10625
10637
|
optionId,
|
|
10626
10638
|
optionName,
|
|
@@ -10691,7 +10703,6 @@ const RadioCard = ({
|
|
|
10691
10703
|
})]
|
|
10692
10704
|
}, optionId);
|
|
10693
10705
|
};
|
|
10694
|
-
const RadioGroupCard$1 = "";
|
|
10695
10706
|
function RadioCardSelect({
|
|
10696
10707
|
options,
|
|
10697
10708
|
name,
|
|
@@ -10875,7 +10886,6 @@ const getDocumentGuidancePrefix = (documentType2, isIcon = false, isFront = true
|
|
|
10875
10886
|
return "generic-document";
|
|
10876
10887
|
}
|
|
10877
10888
|
};
|
|
10878
|
-
const _documentGuidance_component = "";
|
|
10879
10889
|
function DocumentGuidance({
|
|
10880
10890
|
type,
|
|
10881
10891
|
className
|
|
@@ -10962,7 +10972,6 @@ function DocumentGuidance({
|
|
|
10962
10972
|
})
|
|
10963
10973
|
});
|
|
10964
10974
|
}
|
|
10965
|
-
const Dropzone$1 = "";
|
|
10966
10975
|
function bytesToSize(bytes) {
|
|
10967
10976
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
10968
10977
|
if (bytes === 0)
|
|
@@ -10972,7 +10981,6 @@ function bytesToSize(bytes) {
|
|
|
10972
10981
|
return `${bytes} ${sizes[i]}`;
|
|
10973
10982
|
return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
|
|
10974
10983
|
}
|
|
10975
|
-
const DropzoneFile$1 = "";
|
|
10976
10984
|
const isExistingFile = (file) => "existing" in file && file.existing;
|
|
10977
10985
|
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
10978
10986
|
function DropzoneFile(props) {
|
|
@@ -11276,7 +11284,7 @@ function Dropzone(props) {
|
|
|
11276
11284
|
})]
|
|
11277
11285
|
});
|
|
11278
11286
|
}
|
|
11279
|
-
const logger$
|
|
11287
|
+
const logger$q = createLogger("TextArea");
|
|
11280
11288
|
function TextArea(props) {
|
|
11281
11289
|
const {
|
|
11282
11290
|
classNameModifiers,
|
|
@@ -11297,7 +11305,7 @@ function TextArea(props) {
|
|
|
11297
11305
|
} = useI18nContext();
|
|
11298
11306
|
const [value, setValue] = useState("");
|
|
11299
11307
|
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
11300
|
-
logger$
|
|
11308
|
+
logger$q.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
11301
11309
|
}
|
|
11302
11310
|
const handleInput = (e) => {
|
|
11303
11311
|
var _a;
|
|
@@ -11459,7 +11467,6 @@ function DocumentUploadComponent({
|
|
|
11459
11467
|
}), formUtils.isRequiredField("description") && jsx(Field, {
|
|
11460
11468
|
name: "description",
|
|
11461
11469
|
label: formUtils.getLabel("descriptionOptional"),
|
|
11462
|
-
helper: i18n.get("descriptionHelper"),
|
|
11463
11470
|
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
11464
11471
|
isValid: valid.description,
|
|
11465
11472
|
children: (childProps) => jsx(TextArea, {
|
|
@@ -11476,7 +11483,6 @@ function DocumentUploadComponent({
|
|
|
11476
11483
|
});
|
|
11477
11484
|
}
|
|
11478
11485
|
const DocumentUpload = memo(DocumentUploadComponent, (prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name);
|
|
11479
|
-
const _list_component = "";
|
|
11480
11486
|
function List({
|
|
11481
11487
|
className,
|
|
11482
11488
|
nested,
|
|
@@ -11493,15 +11499,16 @@ function List({
|
|
|
11493
11499
|
function ListItem({
|
|
11494
11500
|
className,
|
|
11495
11501
|
children,
|
|
11496
|
-
noMarkers
|
|
11502
|
+
noMarkers,
|
|
11503
|
+
...props
|
|
11497
11504
|
}) {
|
|
11498
11505
|
const classNames = cx(["adl-list__item", noMarkers && "adl-list__item--no-markers", className]);
|
|
11499
11506
|
return jsx("li", {
|
|
11507
|
+
...props,
|
|
11500
11508
|
className: classNames,
|
|
11501
11509
|
children
|
|
11502
11510
|
});
|
|
11503
11511
|
}
|
|
11504
|
-
const Address$1 = "";
|
|
11505
11512
|
const ADDRESS_SCHEMA = ["address", "otherAddressInformation", "postalCode", "city", "stateOrProvince", "country"];
|
|
11506
11513
|
const [ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE, COUNTRY] = ADDRESS_SCHEMA;
|
|
11507
11514
|
const COUNTRIES_WITH_STATES_DATASET = [CountryCodes.Australia, CountryCodes.Brazil, CountryCodes.Canada, CountryCodes.NewZealand, CountryCodes.UnitedStates];
|
|
@@ -11711,7 +11718,7 @@ function FieldContainer(props) {
|
|
|
11711
11718
|
}
|
|
11712
11719
|
return renderField(fieldName);
|
|
11713
11720
|
}
|
|
11714
|
-
const logger$
|
|
11721
|
+
const logger$p = createLogger("SearchAddress");
|
|
11715
11722
|
const SearchAddress = ({
|
|
11716
11723
|
data,
|
|
11717
11724
|
legalEntityId,
|
|
@@ -11754,7 +11761,7 @@ const SearchAddress = ({
|
|
|
11754
11761
|
const response = await handleFindAddress(selectedAddressId);
|
|
11755
11762
|
autocompleteAddressForm(response);
|
|
11756
11763
|
} catch (e) {
|
|
11757
|
-
logger$
|
|
11764
|
+
logger$p.error(e);
|
|
11758
11765
|
}
|
|
11759
11766
|
};
|
|
11760
11767
|
const onDrilldown = async (selectedAddress) => {
|
|
@@ -11766,7 +11773,7 @@ const SearchAddress = ({
|
|
|
11766
11773
|
}, legalEntityId);
|
|
11767
11774
|
setItems((response == null ? void 0 : response.results) || []);
|
|
11768
11775
|
} catch (e) {
|
|
11769
|
-
logger$
|
|
11776
|
+
logger$p.error(e);
|
|
11770
11777
|
}
|
|
11771
11778
|
};
|
|
11772
11779
|
const onChange = (e) => {
|
|
@@ -11821,7 +11828,7 @@ const SearchAddress = ({
|
|
|
11821
11828
|
setItems([]);
|
|
11822
11829
|
}
|
|
11823
11830
|
} catch (e) {
|
|
11824
|
-
logger$
|
|
11831
|
+
logger$p.error(e);
|
|
11825
11832
|
}
|
|
11826
11833
|
setLoading(false);
|
|
11827
11834
|
}
|
|
@@ -12773,7 +12780,7 @@ function CompanyComponent(props) {
|
|
|
12773
12780
|
children: jsx(DocumentUpload, {
|
|
12774
12781
|
...companyTaxDocumentFormProps,
|
|
12775
12782
|
documentField: "taxDocument",
|
|
12776
|
-
documentType: DocumentType.VAT_DOCUMENT,
|
|
12783
|
+
documentType: props.country === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
|
|
12777
12784
|
heading: i18n.get("taxDocument"),
|
|
12778
12785
|
guidanceContent: jsxs(Fragment, {
|
|
12779
12786
|
children: [jsx("div", {
|
|
@@ -12798,8 +12805,6 @@ function CompanyComponent(props) {
|
|
|
12798
12805
|
})]
|
|
12799
12806
|
});
|
|
12800
12807
|
}
|
|
12801
|
-
const Individual = "";
|
|
12802
|
-
const IdDocumentUploadComponent$1 = "";
|
|
12803
12808
|
const idDocumentTypeOptions = [{
|
|
12804
12809
|
id: DocumentType.DRIVERS_LICENSE,
|
|
12805
12810
|
name: "driversLicense",
|
|
@@ -13503,13 +13508,15 @@ const remediationCompanyApiKeyMapping = {
|
|
|
13503
13508
|
...companyApiKeyMapping,
|
|
13504
13509
|
"organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
|
|
13505
13510
|
[DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
|
|
13506
|
-
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
|
|
13511
|
+
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
|
|
13512
|
+
[DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
|
|
13507
13513
|
};
|
|
13508
13514
|
const remediationCompanySearchApiKeyMapping = {
|
|
13509
13515
|
...companySearchApiKeyMapping,
|
|
13510
13516
|
"organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
|
|
13511
13517
|
[DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
|
|
13512
|
-
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
|
|
13518
|
+
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
|
|
13519
|
+
[DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
|
|
13513
13520
|
};
|
|
13514
13521
|
const remediationIndividualApiKeyMapping = {
|
|
13515
13522
|
...individualApiKeyMapping,
|
|
@@ -14066,10 +14073,10 @@ const mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
|
14066
14073
|
return document2;
|
|
14067
14074
|
};
|
|
14068
14075
|
const mapApiDocumentToPayoutDocuments = (entityId) => {
|
|
14069
|
-
const
|
|
14076
|
+
const bankStatement = getDocument$1(entityId, DocumentType.BANK_STATEMENT) || null;
|
|
14070
14077
|
return {
|
|
14071
|
-
bankStatementDocument:
|
|
14072
|
-
description:
|
|
14078
|
+
bankStatementDocument: bankStatement ? [mapExistingFile(getPageName(bankStatement))] : null,
|
|
14079
|
+
description: bankStatement.description
|
|
14073
14080
|
};
|
|
14074
14081
|
};
|
|
14075
14082
|
const mapWith = (obj, mapping) => {
|
|
@@ -14275,7 +14282,6 @@ function IdDocumentManualUploadComponent(props) {
|
|
|
14275
14282
|
});
|
|
14276
14283
|
}
|
|
14277
14284
|
const IdDocumentManualUpload = memo(IdDocumentManualUploadComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.name === nextProps.name);
|
|
14278
|
-
const IdVerificationComponent$1 = "";
|
|
14279
14285
|
const useIdVerificationToken = ({
|
|
14280
14286
|
userDetails,
|
|
14281
14287
|
legalEntityId,
|
|
@@ -14855,7 +14861,7 @@ const initOnfido = async ({
|
|
|
14855
14861
|
language: getOnfidoLocaleConfig(i18n)
|
|
14856
14862
|
});
|
|
14857
14863
|
};
|
|
14858
|
-
const logger$
|
|
14864
|
+
const logger$o = createLogger("IdVerificationComponent");
|
|
14859
14865
|
function IdVerificationComponent({
|
|
14860
14866
|
userDetails,
|
|
14861
14867
|
legalEntityId,
|
|
@@ -14888,7 +14894,7 @@ function IdVerificationComponent({
|
|
|
14888
14894
|
onIdVerificationError,
|
|
14889
14895
|
onIdVerificationComplete
|
|
14890
14896
|
});
|
|
14891
|
-
})().catch(logger$
|
|
14897
|
+
})().catch(logger$o.error);
|
|
14892
14898
|
return () => {
|
|
14893
14899
|
if (onfidoSdk.current)
|
|
14894
14900
|
onfidoSdk.current.tearDown();
|
|
@@ -14940,7 +14946,7 @@ function IdDocumentAlreadyUpload(props) {
|
|
|
14940
14946
|
})]
|
|
14941
14947
|
});
|
|
14942
14948
|
}
|
|
14943
|
-
const logger$
|
|
14949
|
+
const logger$n = createLogger("IdDocumentInstantVerificationComponent");
|
|
14944
14950
|
const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
|
|
14945
14951
|
const documentTypeValidationRules = {
|
|
14946
14952
|
instantIdVerificationData: {
|
|
@@ -15022,7 +15028,7 @@ function IdDocumentInstantVerificationComponent(props) {
|
|
|
15022
15028
|
userDetails: props.userDetails,
|
|
15023
15029
|
legalEntityId: props.legalEntityId,
|
|
15024
15030
|
onIdVerificationComplete: handleIdVerificationComplete,
|
|
15025
|
-
onIdVerificationError: logger$
|
|
15031
|
+
onIdVerificationError: logger$n.error
|
|
15026
15032
|
}), jsxs("div", {
|
|
15027
15033
|
className: "adyen-kyc-document-upload__manual-upload",
|
|
15028
15034
|
children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
|
|
@@ -15050,7 +15056,6 @@ function IdDocumentUploadComponent(props) {
|
|
|
15050
15056
|
...props
|
|
15051
15057
|
});
|
|
15052
15058
|
}
|
|
15053
|
-
const IdVerificationMethod = "";
|
|
15054
15059
|
const layoutBreakpointClassnames = {
|
|
15055
15060
|
xsOnly: "adyen-layout-xs-only",
|
|
15056
15061
|
md: "adyen-layout-md",
|
|
@@ -15597,7 +15602,6 @@ const ContactDetailsComp = memo(ContactDetailsComponent, (prevProps, nextProps)
|
|
|
15597
15602
|
ContactDetailsComponent.defaultProps = {
|
|
15598
15603
|
data: {}
|
|
15599
15604
|
};
|
|
15600
|
-
const IdentityNumber = "";
|
|
15601
15605
|
const defaultFieldMetadata$5 = {
|
|
15602
15606
|
label: "idNumber"
|
|
15603
15607
|
};
|
|
@@ -16100,9 +16104,7 @@ function IdentityNumberComponent(props) {
|
|
|
16100
16104
|
}
|
|
16101
16105
|
}, [propErrors]);
|
|
16102
16106
|
useEffect(() => {
|
|
16103
|
-
|
|
16104
|
-
triggerValidation(["idNumber"]);
|
|
16105
|
-
}
|
|
16107
|
+
triggerValidation(["idNumber"]);
|
|
16106
16108
|
}, [country2, idNumberType]);
|
|
16107
16109
|
useEffect(() => {
|
|
16108
16110
|
const dataHasChanged = !objectsDeepEqual(data, formData);
|
|
@@ -17495,7 +17497,7 @@ var ProofOfResidenceDocumentTypes = /* @__PURE__ */ ((ProofOfResidenceDocumentTy
|
|
|
17495
17497
|
})(ProofOfResidenceDocumentTypes || {});
|
|
17496
17498
|
const proofOfResidenceDocumentOptions = [{
|
|
17497
17499
|
id: "bankStatement",
|
|
17498
|
-
name: "
|
|
17500
|
+
name: "bankStatementDocument"
|
|
17499
17501
|
}, {
|
|
17500
17502
|
id: "utilityBill",
|
|
17501
17503
|
name: "utilityBill"
|
|
@@ -17779,7 +17781,6 @@ function IndividualComponent(props) {
|
|
|
17779
17781
|
children: renderActiveForm(props.activeForm)
|
|
17780
17782
|
});
|
|
17781
17783
|
}
|
|
17782
|
-
const PayoutDetails = "";
|
|
17783
17784
|
const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccountNumberMasked2) => {
|
|
17784
17785
|
const {
|
|
17785
17786
|
accountIdentification: accountIdentification2
|
|
@@ -17803,7 +17804,535 @@ const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccou
|
|
|
17803
17804
|
}, [accountIdentification2, hasEmptyFields2, payload]);
|
|
17804
17805
|
return accountValidationData;
|
|
17805
17806
|
};
|
|
17806
|
-
const
|
|
17807
|
+
const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
|
|
17808
|
+
var _a, _b, _c, _d, _e;
|
|
17809
|
+
if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
|
|
17810
|
+
return `${((_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.name) == null ? void 0 : _b.firstName) ?? ""} ${((_d = (_c = legalEntityResponse.individual) == null ? void 0 : _c.name) == null ? void 0 : _d.lastName) ?? ""}`;
|
|
17811
|
+
}
|
|
17812
|
+
return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
|
|
17813
|
+
};
|
|
17814
|
+
const getPayoutAccountHolderName = (legalEntity, i18n) => {
|
|
17815
|
+
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
17816
|
+
const trustAssociation = ownAssociations.find(({
|
|
17817
|
+
type
|
|
17818
|
+
}) => type === LegalEntityType.TRUST);
|
|
17819
|
+
if (trustAssociation == null ? void 0 : trustAssociation.name) {
|
|
17820
|
+
const trustName = trustAssociation.name;
|
|
17821
|
+
const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
|
|
17822
|
+
return i18n.get("trusteeAsTrusteeForTrust", {
|
|
17823
|
+
values: {
|
|
17824
|
+
trustName,
|
|
17825
|
+
trusteeName
|
|
17826
|
+
}
|
|
17827
|
+
});
|
|
17828
|
+
}
|
|
17829
|
+
const solePropAssociation = ownAssociations.find(({
|
|
17830
|
+
type
|
|
17831
|
+
}) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
|
|
17832
|
+
if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
|
|
17833
|
+
return solePropAssociation.name;
|
|
17834
|
+
}
|
|
17835
|
+
return getLegalEntityNameBasedOnType(legalEntity);
|
|
17836
|
+
};
|
|
17837
|
+
function FilePicker({
|
|
17838
|
+
files,
|
|
17839
|
+
setFiles,
|
|
17840
|
+
isValid,
|
|
17841
|
+
errorMessage,
|
|
17842
|
+
multiple = false,
|
|
17843
|
+
label,
|
|
17844
|
+
iconPrefix = "generic-document",
|
|
17845
|
+
// file validation options
|
|
17846
|
+
allowedFileTypes,
|
|
17847
|
+
maxSize,
|
|
17848
|
+
isOptional,
|
|
17849
|
+
maxNumberOfFiles
|
|
17850
|
+
}) {
|
|
17851
|
+
const {
|
|
17852
|
+
i18n
|
|
17853
|
+
} = useI18nContext();
|
|
17854
|
+
const fileInput = useRef(null);
|
|
17855
|
+
const [dragged, setDragged] = useState(false);
|
|
17856
|
+
const hasRequiredError = errorMessage === "fieldIsRequired";
|
|
17857
|
+
const showDropzone = files.length < maxNumberOfFiles;
|
|
17858
|
+
const openFilePicker = () => {
|
|
17859
|
+
var _a;
|
|
17860
|
+
return (_a = fileInput.current) == null ? void 0 : _a.click();
|
|
17861
|
+
};
|
|
17862
|
+
const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
|
|
17863
|
+
const handleDragEnter = (e) => {
|
|
17864
|
+
e.preventDefault();
|
|
17865
|
+
e.stopPropagation();
|
|
17866
|
+
};
|
|
17867
|
+
const handleDragLeave = (e) => {
|
|
17868
|
+
e.preventDefault();
|
|
17869
|
+
e.stopPropagation();
|
|
17870
|
+
setDragged(false);
|
|
17871
|
+
};
|
|
17872
|
+
const handleDragOver = (e) => {
|
|
17873
|
+
e.preventDefault();
|
|
17874
|
+
e.stopPropagation();
|
|
17875
|
+
setDragged(true);
|
|
17876
|
+
};
|
|
17877
|
+
const handleDrop = (e) => {
|
|
17878
|
+
e.preventDefault();
|
|
17879
|
+
e.stopPropagation();
|
|
17880
|
+
if (e.dataTransfer)
|
|
17881
|
+
addFiles(e.dataTransfer.files);
|
|
17882
|
+
setDragged(false);
|
|
17883
|
+
};
|
|
17884
|
+
const handleFilesChosen = (e) => {
|
|
17885
|
+
const fileInput2 = e.target;
|
|
17886
|
+
if (fileInput2.files)
|
|
17887
|
+
addFiles(fileInput2.files);
|
|
17888
|
+
};
|
|
17889
|
+
const addFiles = (newFiles) => {
|
|
17890
|
+
setFiles([...newFiles, ...files]);
|
|
17891
|
+
};
|
|
17892
|
+
const allowedFileTypesString = allowedFileTypes.join(", ");
|
|
17893
|
+
return jsxs("div", {
|
|
17894
|
+
children: [label && jsx("div", {
|
|
17895
|
+
className: cx("adyen-kyc-label__text", {
|
|
17896
|
+
"adyen-kyc-label__text--error": hasRequiredError
|
|
17897
|
+
}),
|
|
17898
|
+
children: label
|
|
17899
|
+
}), files.map((file) => jsx(DropzoneFile, {
|
|
17900
|
+
file,
|
|
17901
|
+
onDelete: () => handleFileDelete(file),
|
|
17902
|
+
errorMessage,
|
|
17903
|
+
iconPrefix
|
|
17904
|
+
}, file)), showDropzone && jsxs("div", {
|
|
17905
|
+
role: "region",
|
|
17906
|
+
className: cx("adyen-kyc-dropzone", {
|
|
17907
|
+
"adyen-kyc-dropzone--dragged": dragged,
|
|
17908
|
+
"adyen-kyc-dropzone--error": !dragged && hasRequiredError
|
|
17909
|
+
}),
|
|
17910
|
+
onDrop: handleDrop,
|
|
17911
|
+
onDragOver: handleDragOver,
|
|
17912
|
+
onDragEnter: handleDragEnter,
|
|
17913
|
+
onDragLeave: handleDragLeave,
|
|
17914
|
+
children: [jsx("div", {
|
|
17915
|
+
className: "adyen-kyc-dropzone__icon",
|
|
17916
|
+
children: jsx("svg", {
|
|
17917
|
+
height: "100%",
|
|
17918
|
+
width: "100%",
|
|
17919
|
+
children: jsx("use", {
|
|
17920
|
+
href: `#adl-${iconPrefix}-icon`
|
|
17921
|
+
})
|
|
17922
|
+
})
|
|
17923
|
+
}), jsxs("div", {
|
|
17924
|
+
className: "adyen-kyc-dropzone__labels",
|
|
17925
|
+
children: [jsxs("div", {
|
|
17926
|
+
className: "adyen-kyc-dropzone__drag-text",
|
|
17927
|
+
children: [jsxs("span", {
|
|
17928
|
+
children: [i18n.get("dragYourFilesHereOr"), " "]
|
|
17929
|
+
}), jsx("button", {
|
|
17930
|
+
className: "adyen-kyc-dropzone__button",
|
|
17931
|
+
type: "button",
|
|
17932
|
+
onClick: openFilePicker,
|
|
17933
|
+
children: i18n.get("browse")
|
|
17934
|
+
})]
|
|
17935
|
+
}), jsx("div", {
|
|
17936
|
+
className: "adyen-kyc-dropzone__supports-text",
|
|
17937
|
+
children: i18n.get("supports", {
|
|
17938
|
+
values: {
|
|
17939
|
+
fileTypes: allowedFileTypesString,
|
|
17940
|
+
maxSize: bytesToSize(maxSize),
|
|
17941
|
+
maxFiles: maxNumberOfFiles
|
|
17942
|
+
}
|
|
17943
|
+
})
|
|
17944
|
+
})]
|
|
17945
|
+
}), jsx("input", {
|
|
17946
|
+
className: "adyen-kyc-dropzone__input",
|
|
17947
|
+
ref: fileInput,
|
|
17948
|
+
multiple,
|
|
17949
|
+
accept: allowedFileTypesString,
|
|
17950
|
+
onChange: handleFilesChosen,
|
|
17951
|
+
type: "file",
|
|
17952
|
+
"aria-required": !isOptional,
|
|
17953
|
+
"aria-label": label,
|
|
17954
|
+
"aria-invalid": !isValid
|
|
17955
|
+
})]
|
|
17956
|
+
}), hasRequiredError && jsx("div", {
|
|
17957
|
+
className: "adyen-kyc-error-text",
|
|
17958
|
+
children: i18n.get("fieldIsRequired")
|
|
17959
|
+
})]
|
|
17960
|
+
});
|
|
17961
|
+
}
|
|
17962
|
+
var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
|
|
17963
|
+
BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
|
|
17964
|
+
BankDocumentTypes2["DEPOSIT_SLIP"] = "depositSlip";
|
|
17965
|
+
BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
|
|
17966
|
+
BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
|
|
17967
|
+
BankDocumentTypes2["CHECK"] = "check";
|
|
17968
|
+
BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
|
|
17969
|
+
return BankDocumentTypes2;
|
|
17970
|
+
})(BankDocumentTypes || {});
|
|
17971
|
+
const bankDocumentOptions = [{
|
|
17972
|
+
id: "bankStatement",
|
|
17973
|
+
name: "bankStatementDocument"
|
|
17974
|
+
}, {
|
|
17975
|
+
id: "depositSlip",
|
|
17976
|
+
name: "depositSlip"
|
|
17977
|
+
}, {
|
|
17978
|
+
id: "screenshotOfOnlineBankingEnviroment",
|
|
17979
|
+
name: "screenshotOfOnlineBankingEnviroment"
|
|
17980
|
+
}, {
|
|
17981
|
+
id: "officialEmailOrALetterFromYourBank",
|
|
17982
|
+
name: "officialEmailOrALetterFromYourBank"
|
|
17983
|
+
}, {
|
|
17984
|
+
id: "check",
|
|
17985
|
+
name: "check"
|
|
17986
|
+
}, {
|
|
17987
|
+
id: "releveDidentiteBancaire",
|
|
17988
|
+
name: "releveDidentiteBancaire"
|
|
17989
|
+
}];
|
|
17990
|
+
var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
|
|
17991
|
+
BankDocumentRequirement2["ACCOUNT_NAME_INDIVIDUAL"] = "bankAccountNameIndividual";
|
|
17992
|
+
BankDocumentRequirement2["ACCOUNT_NAME_ORGANIZATION"] = "bankAccountNameOrganization";
|
|
17993
|
+
BankDocumentRequirement2["ACCOUNT_NAME_WITH_SOLE_PROP"] = "bankAccountNameWithSoleProprietor";
|
|
17994
|
+
BankDocumentRequirement2["ACCOUNT_NAME_WITH_TRUST"] = "bankAccountNameWithTrust";
|
|
17995
|
+
BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
|
|
17996
|
+
BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
|
|
17997
|
+
BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
|
|
17998
|
+
BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "issuedInTheLastXMonths";
|
|
17999
|
+
BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
|
|
18000
|
+
BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
|
|
18001
|
+
BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
|
|
18002
|
+
return BankDocumentRequirement2;
|
|
18003
|
+
})(BankDocumentRequirement || {});
|
|
18004
|
+
const accountNameRequirement = {
|
|
18005
|
+
[LegalEntityType.INDIVIDUAL]: {
|
|
18006
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_INDIVIDUAL
|
|
18007
|
+
},
|
|
18008
|
+
[LegalEntityType.ORGANIZATION]: {
|
|
18009
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_ORGANIZATION
|
|
18010
|
+
}
|
|
18011
|
+
};
|
|
18012
|
+
const accountNameRequirementWithLegalArrangement = {
|
|
18013
|
+
[LegalEntityType.INDIVIDUAL]: {
|
|
18014
|
+
[LegalEntityType.SOLE_PROPRIETORSHIP]: {
|
|
18015
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_SOLE_PROP
|
|
18016
|
+
},
|
|
18017
|
+
[LegalEntityType.TRUST]: {
|
|
18018
|
+
[CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
|
|
18019
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
|
|
18020
|
+
}
|
|
18021
|
+
},
|
|
18022
|
+
[LegalEntityType.ORGANIZATION]: {
|
|
18023
|
+
[LegalEntityType.TRUST]: {
|
|
18024
|
+
[CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
|
|
18025
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
|
|
18026
|
+
}
|
|
18027
|
+
}
|
|
18028
|
+
};
|
|
18029
|
+
const applyNamedModifiers = (country2, documentModifiers) => {
|
|
18030
|
+
var _a, _b, _c, _d, _e;
|
|
18031
|
+
if (!documentModifiers.associatedEntityType || !documentModifiers.associatedEntityLegalName) {
|
|
18032
|
+
switch (documentModifiers.rootEntityType) {
|
|
18033
|
+
case LegalEntityType.INDIVIDUAL:
|
|
18034
|
+
return {
|
|
18035
|
+
key: accountNameRequirement[LegalEntityType.INDIVIDUAL].default,
|
|
18036
|
+
options: {
|
|
18037
|
+
values: {
|
|
18038
|
+
individualLegalName: documentModifiers.rootEntityLegalName
|
|
18039
|
+
}
|
|
18040
|
+
}
|
|
18041
|
+
};
|
|
18042
|
+
case LegalEntityType.ORGANIZATION:
|
|
18043
|
+
default:
|
|
18044
|
+
return {
|
|
18045
|
+
key: accountNameRequirement[LegalEntityType.ORGANIZATION].default,
|
|
18046
|
+
options: {
|
|
18047
|
+
values: {
|
|
18048
|
+
companyLegalName: documentModifiers.rootEntityLegalName
|
|
18049
|
+
}
|
|
18050
|
+
}
|
|
18051
|
+
};
|
|
18052
|
+
}
|
|
18053
|
+
}
|
|
18054
|
+
switch (documentModifiers.rootEntityType) {
|
|
18055
|
+
case LegalEntityType.INDIVIDUAL:
|
|
18056
|
+
switch (documentModifiers.associatedEntityType) {
|
|
18057
|
+
case LegalEntityType.TRUST:
|
|
18058
|
+
return {
|
|
18059
|
+
key: ((_a = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _a[country2]) ?? ((_b = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _b.default),
|
|
18060
|
+
options: {
|
|
18061
|
+
values: {
|
|
18062
|
+
trusteeName: documentModifiers.rootEntityLegalName,
|
|
18063
|
+
trustLegalName: documentModifiers.associatedEntityLegalName,
|
|
18064
|
+
trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
|
|
18065
|
+
}
|
|
18066
|
+
}
|
|
18067
|
+
};
|
|
18068
|
+
case LegalEntityType.SOLE_PROPRIETORSHIP:
|
|
18069
|
+
default:
|
|
18070
|
+
return {
|
|
18071
|
+
key: (_c = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.SOLE_PROPRIETORSHIP]) == null ? void 0 : _c.default,
|
|
18072
|
+
options: {
|
|
18073
|
+
values: {
|
|
18074
|
+
individualLegalName: documentModifiers.rootEntityLegalName,
|
|
18075
|
+
soleProprietorshipName: documentModifiers.associatedEntityLegalName
|
|
18076
|
+
}
|
|
18077
|
+
}
|
|
18078
|
+
};
|
|
18079
|
+
}
|
|
18080
|
+
case LegalEntityType.ORGANIZATION:
|
|
18081
|
+
default:
|
|
18082
|
+
switch (documentModifiers.associatedEntityType) {
|
|
18083
|
+
case LegalEntityType.TRUST:
|
|
18084
|
+
return {
|
|
18085
|
+
key: ((_d = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _d[country2]) ?? ((_e = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _e.default),
|
|
18086
|
+
options: {
|
|
18087
|
+
values: {
|
|
18088
|
+
trusteeName: documentModifiers.rootEntityLegalName,
|
|
18089
|
+
trustLegalName: documentModifiers.associatedEntityLegalName,
|
|
18090
|
+
trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
|
|
18091
|
+
}
|
|
18092
|
+
}
|
|
18093
|
+
};
|
|
18094
|
+
default:
|
|
18095
|
+
return {
|
|
18096
|
+
key: accountNameRequirement[LegalEntityType.ORGANIZATION].default
|
|
18097
|
+
};
|
|
18098
|
+
}
|
|
18099
|
+
}
|
|
18100
|
+
};
|
|
18101
|
+
const getBankDocumentRequirements = (country2, documentType2, documentModifiers) => {
|
|
18102
|
+
const baseRequirements = [{
|
|
18103
|
+
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
18104
|
+
}, {
|
|
18105
|
+
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
18106
|
+
}];
|
|
18107
|
+
const accountNumberRequirement = country2 === "US" ? [{
|
|
18108
|
+
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
18109
|
+
}, {
|
|
18110
|
+
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
18111
|
+
}] : [{
|
|
18112
|
+
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
18113
|
+
}];
|
|
18114
|
+
const requireLast12Months = documentType2 !== BankDocumentTypes.SCREENSHOT_OF_BANK;
|
|
18115
|
+
const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_SLIP || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
|
|
18116
|
+
const requirements2 = [applyNamedModifiers(country2, documentModifiers), ...accountNumberRequirement, ...baseRequirements];
|
|
18117
|
+
if (requireLast12Months) {
|
|
18118
|
+
requirements2.push({
|
|
18119
|
+
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
18120
|
+
options: {
|
|
18121
|
+
values: {
|
|
18122
|
+
number: 12
|
|
18123
|
+
}
|
|
18124
|
+
}
|
|
18125
|
+
});
|
|
18126
|
+
}
|
|
18127
|
+
if (requireStampOrSignature) {
|
|
18128
|
+
requirements2.push({
|
|
18129
|
+
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
18130
|
+
});
|
|
18131
|
+
}
|
|
18132
|
+
return requirements2;
|
|
18133
|
+
};
|
|
18134
|
+
const BankDocumentRequirements = ({
|
|
18135
|
+
country: country2,
|
|
18136
|
+
documentType: documentType2,
|
|
18137
|
+
documentModifiers
|
|
18138
|
+
}) => {
|
|
18139
|
+
const {
|
|
18140
|
+
i18n
|
|
18141
|
+
} = useI18nContext();
|
|
18142
|
+
return jsxs("div", {
|
|
18143
|
+
className: "adyen-kyc-document-requirements",
|
|
18144
|
+
children: [jsx("strong", {
|
|
18145
|
+
className: "adyen-kyc-document-requirements__subtitle",
|
|
18146
|
+
children: i18n.get("documentRequirements")
|
|
18147
|
+
}), jsx(List, {
|
|
18148
|
+
children: getBankDocumentRequirements(country2, documentType2, documentModifiers).map(({
|
|
18149
|
+
key,
|
|
18150
|
+
options
|
|
18151
|
+
}) => jsx(ListItem, {
|
|
18152
|
+
"data-testid": key,
|
|
18153
|
+
dangerouslySetInnerHTML: {
|
|
18154
|
+
__html: i18n.get(key, options)
|
|
18155
|
+
}
|
|
18156
|
+
}, key))
|
|
18157
|
+
})]
|
|
18158
|
+
});
|
|
18159
|
+
};
|
|
18160
|
+
const bankDocumentValidationRules = {
|
|
18161
|
+
description: {
|
|
18162
|
+
modes: ["blur"],
|
|
18163
|
+
validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
|
|
18164
|
+
errorMessage: "invalidFormatBankStatementDescription"
|
|
18165
|
+
}
|
|
18166
|
+
};
|
|
18167
|
+
const CHARACTERS_LIMIT$1 = 200;
|
|
18168
|
+
const bankDocumentFields = ["bankStatementDocument", "description"];
|
|
18169
|
+
function BankDocument(props) {
|
|
18170
|
+
var _a, _b;
|
|
18171
|
+
const {
|
|
18172
|
+
legalEntity,
|
|
18173
|
+
associatedLegalArrangement,
|
|
18174
|
+
country: country2,
|
|
18175
|
+
optionalFields
|
|
18176
|
+
} = props;
|
|
18177
|
+
const {
|
|
18178
|
+
i18n
|
|
18179
|
+
} = useI18nContext();
|
|
18180
|
+
const [documentType2, setDocumentType] = useState();
|
|
18181
|
+
const stateRef = useRef({
|
|
18182
|
+
setState: null
|
|
18183
|
+
});
|
|
18184
|
+
const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
|
|
18185
|
+
const formUtils = formUtilities(props, i18n);
|
|
18186
|
+
const bankStatementValidationOptions = useMemo(() => ({
|
|
18187
|
+
...defaultFileValidationOptions,
|
|
18188
|
+
isOptional: isBankStatementOptional
|
|
18189
|
+
}), [isBankStatementOptional]);
|
|
18190
|
+
const rules2 = useMemo(() => ({
|
|
18191
|
+
...props.validators || bankDocumentValidationRules,
|
|
18192
|
+
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
18193
|
+
}), [bankStatementValidationOptions, props.validators]);
|
|
18194
|
+
const {
|
|
18195
|
+
handleChangeFor,
|
|
18196
|
+
data,
|
|
18197
|
+
setData,
|
|
18198
|
+
valid,
|
|
18199
|
+
fieldProblems,
|
|
18200
|
+
errors,
|
|
18201
|
+
triggerValidation
|
|
18202
|
+
} = useForm({
|
|
18203
|
+
...props,
|
|
18204
|
+
schema: bankDocumentFields,
|
|
18205
|
+
defaultData: props.data,
|
|
18206
|
+
rules: rules2,
|
|
18207
|
+
fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
|
|
18208
|
+
shouldValidate: props == null ? void 0 : props.shouldValidate
|
|
18209
|
+
});
|
|
18210
|
+
const alreadyUploadedDocuments = useMemo(() => {
|
|
18211
|
+
var _a2;
|
|
18212
|
+
return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
|
|
18213
|
+
}, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
|
|
18214
|
+
const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
|
|
18215
|
+
const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
|
|
18216
|
+
useEffect(() => {
|
|
18217
|
+
var _a2;
|
|
18218
|
+
if (hasAlreadyUploadedDocuments) {
|
|
18219
|
+
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
18220
|
+
if ((_a2 = props.data) == null ? void 0 : _a2.description)
|
|
18221
|
+
setData("description", props.data.description);
|
|
18222
|
+
triggerValidation();
|
|
18223
|
+
}
|
|
18224
|
+
}, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
|
|
18225
|
+
useEffect(() => {
|
|
18226
|
+
var _a2, _b2;
|
|
18227
|
+
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
18228
|
+
type: "addToState",
|
|
18229
|
+
value: {
|
|
18230
|
+
data,
|
|
18231
|
+
valid,
|
|
18232
|
+
errors,
|
|
18233
|
+
fieldProblems,
|
|
18234
|
+
caller: props.id,
|
|
18235
|
+
dataStoreId: props.id,
|
|
18236
|
+
schema: bankDocumentFields
|
|
18237
|
+
}
|
|
18238
|
+
});
|
|
18239
|
+
}, [data, valid, errors, fieldProblems]);
|
|
18240
|
+
const getBankDocumentOptions = () => {
|
|
18241
|
+
let options = bankDocumentOptions;
|
|
18242
|
+
if (country2 !== "FR") {
|
|
18243
|
+
options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
|
|
18244
|
+
}
|
|
18245
|
+
return options.map(({
|
|
18246
|
+
id: id2,
|
|
18247
|
+
name
|
|
18248
|
+
}) => ({
|
|
18249
|
+
id: id2,
|
|
18250
|
+
name: i18n.get(name)
|
|
18251
|
+
}));
|
|
18252
|
+
};
|
|
18253
|
+
const documentsModifiers = useMemo(() => {
|
|
18254
|
+
var _a2, _b2;
|
|
18255
|
+
return {
|
|
18256
|
+
rootEntityType: legalEntity.type,
|
|
18257
|
+
rootEntityLegalName: getLegalEntityNameBasedOnType(legalEntity),
|
|
18258
|
+
associatedEntityType: associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type,
|
|
18259
|
+
associatedEntityLegalName: (_a2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _a2.name,
|
|
18260
|
+
associatedEntityTradingName: (_b2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _b2.doingBusinessAs
|
|
18261
|
+
};
|
|
18262
|
+
}, [legalEntity, associatedLegalArrangement]);
|
|
18263
|
+
return jsxs("form", {
|
|
18264
|
+
className: "adyen-kyc-bank-document",
|
|
18265
|
+
children: [jsx(StateContextSetter, {
|
|
18266
|
+
owner: props.id,
|
|
18267
|
+
stateRef
|
|
18268
|
+
}), jsx(FormHeader, {
|
|
18269
|
+
heading: props.heading,
|
|
18270
|
+
description: props.description
|
|
18271
|
+
}), jsx(ErrorPanel, {
|
|
18272
|
+
verificationErrors: props == null ? void 0 : props.formVerificationErrors,
|
|
18273
|
+
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
18274
|
+
formUtils,
|
|
18275
|
+
id: "ariaErrorField"
|
|
18276
|
+
}), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
|
|
18277
|
+
children: [!usingExistingUploadedDocuments && jsx(Field, {
|
|
18278
|
+
name: "documentType",
|
|
18279
|
+
label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
|
|
18280
|
+
className: "adyen-kyc-bank-document__document-type",
|
|
18281
|
+
children: (childProps) => jsx(Select, {
|
|
18282
|
+
...childProps,
|
|
18283
|
+
onChange: (e) => setDocumentType(e.target.value),
|
|
18284
|
+
name: "documentType",
|
|
18285
|
+
placeholder: i18n.get("selectDocument"),
|
|
18286
|
+
isInvalid: false,
|
|
18287
|
+
items: getBankDocumentOptions(),
|
|
18288
|
+
selected: documentType2
|
|
18289
|
+
})
|
|
18290
|
+
}), documentType2 ? jsxs(Fragment, {
|
|
18291
|
+
children: [country2 ? jsx(BankDocumentRequirements, {
|
|
18292
|
+
country: country2,
|
|
18293
|
+
documentType: documentType2,
|
|
18294
|
+
documentModifiers: documentsModifiers
|
|
18295
|
+
}) : void 0, jsx(DocumentGuidance, {
|
|
18296
|
+
type: DocumentType.BANK_STATEMENT,
|
|
18297
|
+
className: "adl-u-margin-y-24"
|
|
18298
|
+
})]
|
|
18299
|
+
}) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
18300
|
+
className: "adyen-kyc-bank-document__document-upload adyen-kyc-upload-field",
|
|
18301
|
+
name: "bankStatementDocument",
|
|
18302
|
+
isValid: valid.bankStatementDocument,
|
|
18303
|
+
children: (childProps) => {
|
|
18304
|
+
var _a2;
|
|
18305
|
+
return jsx(FilePicker, {
|
|
18306
|
+
...childProps,
|
|
18307
|
+
files: data.bankStatementDocument ?? [],
|
|
18308
|
+
setFiles: handleChangeFor("bankStatementDocument"),
|
|
18309
|
+
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
18310
|
+
errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
|
|
18311
|
+
iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
|
|
18312
|
+
...bankStatementValidationOptions
|
|
18313
|
+
});
|
|
18314
|
+
}
|
|
18315
|
+
}) : null]
|
|
18316
|
+
}), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
18317
|
+
className: "adyen-kyc-bank-document__document-description",
|
|
18318
|
+
name: "description",
|
|
18319
|
+
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
18320
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
18321
|
+
isValid: valid.description,
|
|
18322
|
+
children: (childProps) => jsx(TextArea, {
|
|
18323
|
+
...childProps,
|
|
18324
|
+
name: "description",
|
|
18325
|
+
value: data.description,
|
|
18326
|
+
classNameModifiers: ["description"],
|
|
18327
|
+
maxLength: CHARACTERS_LIMIT$1,
|
|
18328
|
+
onInput: handleChangeFor("description"),
|
|
18329
|
+
"aria-label": formUtils.getLabel("description"),
|
|
18330
|
+
"aria-invalid": !valid.description
|
|
18331
|
+
})
|
|
18332
|
+
}) : null]
|
|
18333
|
+
});
|
|
18334
|
+
}
|
|
18335
|
+
const BankDocumentComponent = memo(BankDocument, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading);
|
|
17807
18336
|
const AuthContext = createContext(void 0);
|
|
17808
18337
|
const useAuthContext = () => {
|
|
17809
18338
|
const authContext = useContext(AuthContext);
|
|
@@ -17812,7 +18341,6 @@ const useAuthContext = () => {
|
|
|
17812
18341
|
}
|
|
17813
18342
|
return authContext;
|
|
17814
18343
|
};
|
|
17815
|
-
const _actionBar_component = "";
|
|
17816
18344
|
const ActionBar = ({
|
|
17817
18345
|
onNext,
|
|
17818
18346
|
onBack,
|
|
@@ -17952,7 +18480,6 @@ const bankVerificationValidationRules = {
|
|
|
17952
18480
|
errorMessage: "fieldIsRequired"
|
|
17953
18481
|
}
|
|
17954
18482
|
};
|
|
17955
|
-
const BankVerificationWidget$1 = "";
|
|
17956
18483
|
class AdyenKycSdkError extends Error {
|
|
17957
18484
|
constructor(message, sourceError) {
|
|
17958
18485
|
super(message);
|
|
@@ -17972,7 +18499,7 @@ class AdyenKycSdkError extends Error {
|
|
|
17972
18499
|
}
|
|
17973
18500
|
let sdkToken;
|
|
17974
18501
|
let fetchSdkToken;
|
|
17975
|
-
const logger$
|
|
18502
|
+
const logger$m = createLogger("Session");
|
|
17976
18503
|
const setSdkToken = (token) => {
|
|
17977
18504
|
sdkToken = token;
|
|
17978
18505
|
};
|
|
@@ -17990,7 +18517,7 @@ const refreshSession = async () => {
|
|
|
17990
18517
|
} = await fetchSdkToken();
|
|
17991
18518
|
setSdkToken(token);
|
|
17992
18519
|
} catch (e) {
|
|
17993
|
-
logger$
|
|
18520
|
+
logger$m.error("Failed to fetch sdk token", e);
|
|
17994
18521
|
}
|
|
17995
18522
|
};
|
|
17996
18523
|
const addAnimationStartListener = (element, listener) => {
|
|
@@ -17999,7 +18526,7 @@ const addAnimationStartListener = (element, listener) => {
|
|
|
17999
18526
|
const removeAnimationStartListener = (element, listener) => {
|
|
18000
18527
|
element.removeEventListener("animationstart", listener, false);
|
|
18001
18528
|
};
|
|
18002
|
-
const logger$
|
|
18529
|
+
const logger$l = createLogger("Fetch");
|
|
18003
18530
|
const getRequestObject = (options, data) => {
|
|
18004
18531
|
const {
|
|
18005
18532
|
headers = [],
|
|
@@ -18046,10 +18573,10 @@ const logFetchError = (message, level) => {
|
|
|
18046
18573
|
case "info":
|
|
18047
18574
|
case "warn":
|
|
18048
18575
|
case "error":
|
|
18049
|
-
logger$
|
|
18576
|
+
logger$l[level](message);
|
|
18050
18577
|
break;
|
|
18051
18578
|
default:
|
|
18052
|
-
logger$
|
|
18579
|
+
logger$l.error(message);
|
|
18053
18580
|
}
|
|
18054
18581
|
};
|
|
18055
18582
|
const handleFetchResponse = async (response, responseType) => {
|
|
@@ -18147,7 +18674,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
|
|
|
18147
18674
|
const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
|
|
18148
18675
|
const MOUNT_TIMEOUT = 10 * 1e3;
|
|
18149
18676
|
const TINK_VENDOR = "Tink";
|
|
18150
|
-
const logger$
|
|
18677
|
+
const logger$k = createLogger("iframeWidget");
|
|
18151
18678
|
const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
|
|
18152
18679
|
const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
|
|
18153
18680
|
const parseMessageJson = (message) => {
|
|
@@ -18166,7 +18693,7 @@ const callbackErrorHandler = async (response) => {
|
|
|
18166
18693
|
try {
|
|
18167
18694
|
await response;
|
|
18168
18695
|
} catch (ex) {
|
|
18169
|
-
logger$
|
|
18696
|
+
logger$k.error(ex);
|
|
18170
18697
|
}
|
|
18171
18698
|
return {
|
|
18172
18699
|
error: "UNKNOWN_ERROR",
|
|
@@ -18275,7 +18802,7 @@ class IFrameWidget {
|
|
|
18275
18802
|
message = responseData.errorMessage;
|
|
18276
18803
|
}
|
|
18277
18804
|
} catch (ex) {
|
|
18278
|
-
logger$
|
|
18805
|
+
logger$k.error(ex);
|
|
18279
18806
|
}
|
|
18280
18807
|
throw new AdyenKycSdkError(reason, jsonData.error);
|
|
18281
18808
|
}
|
|
@@ -18463,7 +18990,7 @@ function BankVerificationWidget({
|
|
|
18463
18990
|
ref: widgetContainerRef
|
|
18464
18991
|
});
|
|
18465
18992
|
}
|
|
18466
|
-
const logger$
|
|
18993
|
+
const logger$j = createLogger("BankVerification");
|
|
18467
18994
|
const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
|
|
18468
18995
|
const InstantVerificationErrorContext = createContext(null);
|
|
18469
18996
|
const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
|
|
@@ -18497,7 +19024,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
|
|
|
18497
19024
|
const vendor = vendors[0];
|
|
18498
19025
|
setPreferredVendor(vendor.name ? vendor : void 0);
|
|
18499
19026
|
};
|
|
18500
|
-
getPreferredVendor().catch(logger$
|
|
19027
|
+
getPreferredVendor().catch(logger$j.error);
|
|
18501
19028
|
}, [country2, getBankVerificationVendors]);
|
|
18502
19029
|
return preferredVendor;
|
|
18503
19030
|
};
|
|
@@ -18698,7 +19225,6 @@ function BankVerification(props) {
|
|
|
18698
19225
|
});
|
|
18699
19226
|
}
|
|
18700
19227
|
const BankVerification$1 = memo(BankVerification);
|
|
18701
|
-
const PayoutAccount$1 = "";
|
|
18702
19228
|
const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bulgaria, CountryCodes.Canada, CountryCodes.Croatia, CountryCodes.CzechRepublic, CountryCodes.Hungary, CountryCodes.Romania, CountryCodes.Switzerland]);
|
|
18703
19229
|
const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
|
|
18704
19230
|
const payoutCurrencySupport = {
|
|
@@ -19272,70 +19798,70 @@ function BranchCode(props) {
|
|
|
19272
19798
|
}
|
|
19273
19799
|
const currencyFields = ["currency"];
|
|
19274
19800
|
const bbanPatternsByCountry = {
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19302
|
-
|
|
19303
|
-
|
|
19304
|
-
|
|
19305
|
-
|
|
19306
|
-
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
|
|
19311
|
-
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19801
|
+
[CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
|
|
19802
|
+
[CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
|
|
19803
|
+
[CountryCodes.Austria]: /\d{16}/,
|
|
19804
|
+
[CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
|
|
19805
|
+
[CountryCodes.Belgium]: /\d{12}/,
|
|
19806
|
+
[CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
|
|
19807
|
+
[CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
|
|
19808
|
+
[CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
|
|
19809
|
+
[CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
|
|
19810
|
+
[CountryCodes.CostaRica]: /\d{17}/,
|
|
19811
|
+
[CountryCodes.Croatia]: /\d{17}/,
|
|
19812
|
+
[CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
|
|
19813
|
+
[CountryCodes.CzechRepublic]: /\d{20}/,
|
|
19814
|
+
[CountryCodes.Denmark]: /\d{14}/,
|
|
19815
|
+
[CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
|
|
19816
|
+
[CountryCodes.Estonia]: /\d{16}/,
|
|
19817
|
+
[CountryCodes.FaroeIslands]: /\d{14}/,
|
|
19818
|
+
[CountryCodes.Finland]: /\d{14}/,
|
|
19819
|
+
[CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
19820
|
+
[CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
|
|
19821
|
+
[CountryCodes.Germany]: /\d{18}/,
|
|
19822
|
+
[CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
|
|
19823
|
+
[CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
|
|
19824
|
+
[CountryCodes.Greenland]: /\d{14}/,
|
|
19825
|
+
[CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
|
|
19826
|
+
[CountryCodes.Hungary]: /\d{24}/,
|
|
19827
|
+
[CountryCodes.Iceland]: /\d{22}/,
|
|
19828
|
+
[CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
|
|
19829
|
+
[CountryCodes.Israel]: /\d{19}/,
|
|
19830
|
+
[CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
19831
|
+
[CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
|
|
19832
|
+
[CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
|
|
19833
|
+
[CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
|
|
19834
|
+
[CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
|
|
19835
|
+
[CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
|
|
19836
|
+
[CountryCodes.Lithuania]: /\d{16}/,
|
|
19837
|
+
[CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
|
|
19838
|
+
[CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
|
|
19839
|
+
[CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
|
|
19840
|
+
[CountryCodes.Mauritania]: /\d{23}/,
|
|
19841
|
+
[CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
|
|
19842
|
+
[CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
19843
|
+
[CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
|
|
19844
|
+
[CountryCodes.Montenegro]: /\d{18}/,
|
|
19845
|
+
[CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
|
|
19846
|
+
[CountryCodes.Norway]: /\d{11}/,
|
|
19847
|
+
[CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
|
|
19848
|
+
[CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
|
|
19849
|
+
[CountryCodes.Poland]: /\d{24}/,
|
|
19850
|
+
[CountryCodes.Portugal]: /\d{21}/,
|
|
19851
|
+
[CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
|
|
19852
|
+
[CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
19853
|
+
[CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
|
|
19854
|
+
[CountryCodes.Serbia]: /\d{18}/,
|
|
19855
|
+
[CountryCodes.Slovakia]: /\d{20}/,
|
|
19856
|
+
[CountryCodes.Slovenia]: /\d{15}/,
|
|
19857
|
+
[CountryCodes.Spain]: /\d{20}/,
|
|
19858
|
+
[CountryCodes.Sweden]: /\d{20}/,
|
|
19859
|
+
[CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
|
|
19860
|
+
[CountryCodes.Tunisia]: /\d{20}/,
|
|
19861
|
+
[CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
|
|
19862
|
+
[CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
|
|
19863
|
+
[CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
|
|
19864
|
+
[CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
|
|
19339
19865
|
};
|
|
19340
19866
|
const customPrefixByCountry = {
|
|
19341
19867
|
[CountryCodes.Guernsey]: "GB",
|
|
@@ -19394,29 +19920,26 @@ const validateIbanOnBlurAndInput = (country2) => ({
|
|
|
19394
19920
|
return typeof result === "boolean" ? void 0 : result;
|
|
19395
19921
|
}
|
|
19396
19922
|
});
|
|
19397
|
-
const ibanMask = (country2, inputLength,
|
|
19923
|
+
const ibanMask = (country2, inputLength, allowLettersInBban) => {
|
|
19398
19924
|
const tokens = [];
|
|
19399
19925
|
tokens.push(...nonInputs(country2, {
|
|
19400
19926
|
includeInValue: true
|
|
19401
19927
|
}), ...numericInputs(2));
|
|
19402
19928
|
inputLength -= 2;
|
|
19403
|
-
|
|
19404
|
-
tokens.push(spacer, ...alphaInputs(4));
|
|
19405
|
-
inputLength -= 4;
|
|
19406
|
-
}
|
|
19929
|
+
const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
|
|
19407
19930
|
const numGroups = Math.floor(inputLength / 4);
|
|
19408
19931
|
const remainder = inputLength % 4;
|
|
19409
19932
|
for (let i = 0; i < numGroups; i += 1) {
|
|
19410
|
-
tokens.push(spacer, ...
|
|
19933
|
+
tokens.push(spacer, ...inputToken(4));
|
|
19411
19934
|
}
|
|
19412
19935
|
if (remainder > 0) {
|
|
19413
|
-
tokens.push(spacer, ...
|
|
19936
|
+
tokens.push(spacer, ...inputToken(remainder));
|
|
19414
19937
|
}
|
|
19415
19938
|
return {
|
|
19416
19939
|
mask: {
|
|
19417
19940
|
tokens
|
|
19418
19941
|
},
|
|
19419
|
-
transformOnType:
|
|
19942
|
+
transformOnType: allowLettersInBban ? uppercase : void 0
|
|
19420
19943
|
};
|
|
19421
19944
|
};
|
|
19422
19945
|
const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
|
|
@@ -19432,11 +19955,11 @@ const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
|
|
|
19432
19955
|
example
|
|
19433
19956
|
}
|
|
19434
19957
|
};
|
|
19435
|
-
const ibanMetadata = (country2, inputLength, example,
|
|
19958
|
+
const ibanMetadata = (country2, inputLength, example, allowLettersInBban) => ({
|
|
19436
19959
|
label: "iban",
|
|
19437
19960
|
validators: validateIbanOnBlurAndInput(country2),
|
|
19438
|
-
mask: ibanMask(country2, inputLength,
|
|
19439
|
-
guidanceText: ibanGuidance(
|
|
19961
|
+
mask: ibanMask(country2, inputLength, allowLettersInBban),
|
|
19962
|
+
guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
|
|
19440
19963
|
});
|
|
19441
19964
|
const gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
|
|
19442
19965
|
const defaultFieldMetadata$1 = {
|
|
@@ -19464,65 +19987,24 @@ const defaultFieldConfig$1 = {
|
|
|
19464
19987
|
[CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
|
|
19465
19988
|
[CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
|
|
19466
19989
|
[CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
|
|
19467
|
-
|
|
19468
|
-
// These include 4-letter bank codes
|
|
19990
|
+
// These include letters in the BBAN (bank account number)
|
|
19469
19991
|
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
|
|
19992
|
+
[CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
|
|
19470
19993
|
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
|
|
19471
19994
|
[CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
|
|
19995
|
+
[CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
|
|
19472
19996
|
[CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
|
|
19997
|
+
[CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
|
|
19473
19998
|
[CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
|
|
19999
|
+
[CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
|
|
19474
20000
|
[CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
|
|
19475
20001
|
[CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
|
|
20002
|
+
[CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
|
|
19476
20003
|
[CountryCodes.UnitedKingdom]: gbIbanMetadata,
|
|
19477
20004
|
// IBANs for Guernsey, Jersey, and Isle of Man also use United Kingdom's format (starting with `GB`)
|
|
19478
20005
|
[CountryCodes.Guernsey]: gbIbanMetadata,
|
|
19479
20006
|
[CountryCodes.Jersey]: gbIbanMetadata,
|
|
19480
|
-
[CountryCodes.IsleOfMan]: gbIbanMetadata
|
|
19481
|
-
// These are a little bit different
|
|
19482
|
-
[CountryCodes.France]: {
|
|
19483
|
-
label: "iban",
|
|
19484
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.France),
|
|
19485
|
-
mask: {
|
|
19486
|
-
mask: makeMask(...nonInputs("FR", {
|
|
19487
|
-
includeInValue: true
|
|
19488
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19489
|
-
transformOnType: uppercase
|
|
19490
|
-
},
|
|
19491
|
-
guidanceText: ibanGuidance("characters", 25, "FR64 1009 6000 4035 3425 9742 Y90")
|
|
19492
|
-
},
|
|
19493
|
-
[CountryCodes.Italy]: {
|
|
19494
|
-
label: "iban",
|
|
19495
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Italy),
|
|
19496
|
-
mask: {
|
|
19497
|
-
mask: makeMask(...nonInputs("IT", {
|
|
19498
|
-
includeInValue: true
|
|
19499
|
-
}), ...numericInputs(2), spacer, ...alphaInputs(1), ...numericInputs(3), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(3)),
|
|
19500
|
-
transformOnType: uppercase
|
|
19501
|
-
},
|
|
19502
|
-
guidanceText: ibanGuidance("characters", 25, "IT06 L030 0203 2809 8485 8934 882")
|
|
19503
|
-
},
|
|
19504
|
-
[CountryCodes.Liechtenstein]: {
|
|
19505
|
-
label: "iban",
|
|
19506
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Liechtenstein),
|
|
19507
|
-
mask: {
|
|
19508
|
-
mask: makeMask(...nonInputs("LI", {
|
|
19509
|
-
includeInValue: true
|
|
19510
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(1), ...alphanumericInputs(3), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(3), ...alphanumericInputs(1), spacer, ...alphanumericInputs(1)),
|
|
19511
|
-
transformOnType: uppercase
|
|
19512
|
-
},
|
|
19513
|
-
guidanceText: ibanGuidance("characters", 19, "LI21 0881 0000 2324 013A A")
|
|
19514
|
-
},
|
|
19515
|
-
[CountryCodes.Monaco]: {
|
|
19516
|
-
label: "iban",
|
|
19517
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Monaco),
|
|
19518
|
-
mask: {
|
|
19519
|
-
mask: makeMask(...nonInputs("MC", {
|
|
19520
|
-
includeInValue: true
|
|
19521
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19522
|
-
transformOnType: uppercase
|
|
19523
|
-
},
|
|
19524
|
-
guidanceText: ibanGuidance("characters", 25, "MC58 1122 2000 0101 2345 6789 030")
|
|
19525
|
-
}
|
|
20007
|
+
[CountryCodes.IsleOfMan]: gbIbanMetadata
|
|
19526
20008
|
};
|
|
19527
20009
|
const ibanFields = ["iban"];
|
|
19528
20010
|
function Iban(props) {
|
|
@@ -19788,432 +20270,6 @@ function PayoutAccountComponent(props) {
|
|
|
19788
20270
|
});
|
|
19789
20271
|
}
|
|
19790
20272
|
const PayoutAccount = memo(PayoutAccountComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.arePayoutAccountDetailsInvalid === nextProps.arePayoutAccountDetailsInvalid && prevProps.invalidFieldNames === nextProps.invalidFieldNames);
|
|
19791
|
-
const PayoutBankStatement$1 = "";
|
|
19792
|
-
function FilePicker({
|
|
19793
|
-
files,
|
|
19794
|
-
setFiles,
|
|
19795
|
-
isValid,
|
|
19796
|
-
errorMessage,
|
|
19797
|
-
multiple = false,
|
|
19798
|
-
label,
|
|
19799
|
-
iconPrefix = "generic-document",
|
|
19800
|
-
// file validation options
|
|
19801
|
-
allowedFileTypes,
|
|
19802
|
-
maxSize,
|
|
19803
|
-
isOptional,
|
|
19804
|
-
maxNumberOfFiles
|
|
19805
|
-
}) {
|
|
19806
|
-
const {
|
|
19807
|
-
i18n
|
|
19808
|
-
} = useI18nContext();
|
|
19809
|
-
const fileInput = useRef(null);
|
|
19810
|
-
const [dragged, setDragged] = useState(false);
|
|
19811
|
-
const hasRequiredError = errorMessage === "fieldIsRequired";
|
|
19812
|
-
const showDropzone = files.length < maxNumberOfFiles;
|
|
19813
|
-
const openFilePicker = () => {
|
|
19814
|
-
var _a;
|
|
19815
|
-
return (_a = fileInput.current) == null ? void 0 : _a.click();
|
|
19816
|
-
};
|
|
19817
|
-
const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
|
|
19818
|
-
const handleDragEnter = (e) => {
|
|
19819
|
-
e.preventDefault();
|
|
19820
|
-
e.stopPropagation();
|
|
19821
|
-
};
|
|
19822
|
-
const handleDragLeave = (e) => {
|
|
19823
|
-
e.preventDefault();
|
|
19824
|
-
e.stopPropagation();
|
|
19825
|
-
setDragged(false);
|
|
19826
|
-
};
|
|
19827
|
-
const handleDragOver = (e) => {
|
|
19828
|
-
e.preventDefault();
|
|
19829
|
-
e.stopPropagation();
|
|
19830
|
-
setDragged(true);
|
|
19831
|
-
};
|
|
19832
|
-
const handleDrop = (e) => {
|
|
19833
|
-
e.preventDefault();
|
|
19834
|
-
e.stopPropagation();
|
|
19835
|
-
if (e.dataTransfer)
|
|
19836
|
-
addFiles(e.dataTransfer.files);
|
|
19837
|
-
setDragged(false);
|
|
19838
|
-
};
|
|
19839
|
-
const handleFilesChosen = (e) => {
|
|
19840
|
-
const fileInput2 = e.target;
|
|
19841
|
-
if (fileInput2.files)
|
|
19842
|
-
addFiles(fileInput2.files);
|
|
19843
|
-
};
|
|
19844
|
-
const addFiles = (newFiles) => {
|
|
19845
|
-
setFiles([...newFiles, ...files]);
|
|
19846
|
-
};
|
|
19847
|
-
const allowedFileTypesString = allowedFileTypes.join(", ");
|
|
19848
|
-
return jsxs("div", {
|
|
19849
|
-
children: [label && jsx("div", {
|
|
19850
|
-
className: cx("adyen-kyc-label__text", {
|
|
19851
|
-
"adyen-kyc-label__text--error": hasRequiredError
|
|
19852
|
-
}),
|
|
19853
|
-
children: label
|
|
19854
|
-
}), files.map((file) => jsx(DropzoneFile, {
|
|
19855
|
-
file,
|
|
19856
|
-
onDelete: () => handleFileDelete(file),
|
|
19857
|
-
errorMessage,
|
|
19858
|
-
iconPrefix
|
|
19859
|
-
}, file)), showDropzone && jsxs("div", {
|
|
19860
|
-
role: "region",
|
|
19861
|
-
className: cx("adyen-kyc-dropzone", {
|
|
19862
|
-
"adyen-kyc-dropzone--dragged": dragged,
|
|
19863
|
-
"adyen-kyc-dropzone--error": !dragged && hasRequiredError
|
|
19864
|
-
}),
|
|
19865
|
-
onDrop: handleDrop,
|
|
19866
|
-
onDragOver: handleDragOver,
|
|
19867
|
-
onDragEnter: handleDragEnter,
|
|
19868
|
-
onDragLeave: handleDragLeave,
|
|
19869
|
-
children: [jsx("div", {
|
|
19870
|
-
className: "adyen-kyc-dropzone__icon",
|
|
19871
|
-
children: jsx("svg", {
|
|
19872
|
-
height: "100%",
|
|
19873
|
-
width: "100%",
|
|
19874
|
-
children: jsx("use", {
|
|
19875
|
-
href: `#adl-${iconPrefix}-icon`
|
|
19876
|
-
})
|
|
19877
|
-
})
|
|
19878
|
-
}), jsxs("div", {
|
|
19879
|
-
className: "adyen-kyc-dropzone__labels",
|
|
19880
|
-
children: [jsxs("div", {
|
|
19881
|
-
className: "adyen-kyc-dropzone__drag-text",
|
|
19882
|
-
children: [jsxs("span", {
|
|
19883
|
-
children: [i18n.get("dragYourFilesHereOr"), " "]
|
|
19884
|
-
}), jsx("button", {
|
|
19885
|
-
className: "adyen-kyc-dropzone__button",
|
|
19886
|
-
type: "button",
|
|
19887
|
-
onClick: openFilePicker,
|
|
19888
|
-
children: i18n.get("browse")
|
|
19889
|
-
})]
|
|
19890
|
-
}), jsx("div", {
|
|
19891
|
-
className: "adyen-kyc-dropzone__supports-text",
|
|
19892
|
-
children: i18n.get("supports", {
|
|
19893
|
-
values: {
|
|
19894
|
-
fileTypes: allowedFileTypesString,
|
|
19895
|
-
maxSize: bytesToSize(maxSize),
|
|
19896
|
-
maxFiles: maxNumberOfFiles
|
|
19897
|
-
}
|
|
19898
|
-
})
|
|
19899
|
-
})]
|
|
19900
|
-
}), jsx("input", {
|
|
19901
|
-
className: "adyen-kyc-dropzone__input",
|
|
19902
|
-
ref: fileInput,
|
|
19903
|
-
multiple,
|
|
19904
|
-
accept: allowedFileTypesString,
|
|
19905
|
-
onChange: handleFilesChosen,
|
|
19906
|
-
type: "file",
|
|
19907
|
-
"aria-required": !isOptional,
|
|
19908
|
-
"aria-label": label,
|
|
19909
|
-
"aria-invalid": !isValid
|
|
19910
|
-
})]
|
|
19911
|
-
}), hasRequiredError && jsx("div", {
|
|
19912
|
-
className: "adyen-kyc-error-text",
|
|
19913
|
-
children: i18n.get("fieldIsRequired")
|
|
19914
|
-
})]
|
|
19915
|
-
});
|
|
19916
|
-
}
|
|
19917
|
-
var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
|
|
19918
|
-
BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
|
|
19919
|
-
BankDocumentTypes2["DEPOSIT_TICKET"] = "depositTicket";
|
|
19920
|
-
BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
|
|
19921
|
-
BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
|
|
19922
|
-
BankDocumentTypes2["CHEQUES"] = "cheques";
|
|
19923
|
-
BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
|
|
19924
|
-
return BankDocumentTypes2;
|
|
19925
|
-
})(BankDocumentTypes || {});
|
|
19926
|
-
const bankDocumentOptions = [{
|
|
19927
|
-
id: "bankStatement",
|
|
19928
|
-
name: "bankStatement"
|
|
19929
|
-
}, {
|
|
19930
|
-
id: "depositTicket",
|
|
19931
|
-
name: "depositTicket"
|
|
19932
|
-
}, {
|
|
19933
|
-
id: "screenshotOfOnlineBankingEnviroment",
|
|
19934
|
-
name: "screenshotOfOnlineBankingEnviroment"
|
|
19935
|
-
}, {
|
|
19936
|
-
id: "officialEmailOrALetterFromYourBank",
|
|
19937
|
-
name: "officialEmailOrALetterFromYourBank"
|
|
19938
|
-
}, {
|
|
19939
|
-
id: "cheques",
|
|
19940
|
-
name: "cheques"
|
|
19941
|
-
}, {
|
|
19942
|
-
id: "releveDidentiteBancaire",
|
|
19943
|
-
name: "releveDidentiteBancaire"
|
|
19944
|
-
}];
|
|
19945
|
-
var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
|
|
19946
|
-
BankDocumentRequirement2["ACCOUNT_HOLDER"] = "accountHolderNameMatchesWithBusinessOrTradingName";
|
|
19947
|
-
BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
|
|
19948
|
-
BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
|
|
19949
|
-
BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
|
|
19950
|
-
BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "dateOnDocumentNoOlderThanXMonths";
|
|
19951
|
-
BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
|
|
19952
|
-
BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
|
|
19953
|
-
BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
|
|
19954
|
-
return BankDocumentRequirement2;
|
|
19955
|
-
})(BankDocumentRequirement || {});
|
|
19956
|
-
const getBankDocumentRequirements = (country2, documentType2) => {
|
|
19957
|
-
const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_TICKET || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
|
|
19958
|
-
switch (country2) {
|
|
19959
|
-
case CountryCodes.UnitedStates:
|
|
19960
|
-
return requireStampOrSignature ? [{
|
|
19961
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19962
|
-
}, {
|
|
19963
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
19964
|
-
}, {
|
|
19965
|
-
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
19966
|
-
}, {
|
|
19967
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19968
|
-
options: {
|
|
19969
|
-
values: {
|
|
19970
|
-
numberOfMonths: 12
|
|
19971
|
-
}
|
|
19972
|
-
}
|
|
19973
|
-
}, {
|
|
19974
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19975
|
-
}, {
|
|
19976
|
-
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
19977
|
-
}] : [{
|
|
19978
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19979
|
-
}, {
|
|
19980
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
19981
|
-
}, {
|
|
19982
|
-
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
19983
|
-
}, {
|
|
19984
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19985
|
-
options: {
|
|
19986
|
-
values: {
|
|
19987
|
-
numberOfMonths: 12
|
|
19988
|
-
}
|
|
19989
|
-
}
|
|
19990
|
-
}, {
|
|
19991
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19992
|
-
}];
|
|
19993
|
-
default:
|
|
19994
|
-
return requireStampOrSignature ? [{
|
|
19995
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19996
|
-
}, {
|
|
19997
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
19998
|
-
}, {
|
|
19999
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
20000
|
-
options: {
|
|
20001
|
-
values: {
|
|
20002
|
-
numberOfMonths: 12
|
|
20003
|
-
}
|
|
20004
|
-
}
|
|
20005
|
-
}, {
|
|
20006
|
-
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
20007
|
-
}, {
|
|
20008
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
20009
|
-
}, {
|
|
20010
|
-
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
20011
|
-
}] : [{
|
|
20012
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
20013
|
-
}, {
|
|
20014
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
20015
|
-
}, {
|
|
20016
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
20017
|
-
options: {
|
|
20018
|
-
values: {
|
|
20019
|
-
numberOfMonths: 12
|
|
20020
|
-
}
|
|
20021
|
-
}
|
|
20022
|
-
}, {
|
|
20023
|
-
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
20024
|
-
}, {
|
|
20025
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
20026
|
-
}];
|
|
20027
|
-
}
|
|
20028
|
-
};
|
|
20029
|
-
const BankDocumentRequirements = ({
|
|
20030
|
-
country: country2,
|
|
20031
|
-
documentType: documentType2
|
|
20032
|
-
}) => {
|
|
20033
|
-
const {
|
|
20034
|
-
i18n
|
|
20035
|
-
} = useI18nContext();
|
|
20036
|
-
return jsxs(Fragment, {
|
|
20037
|
-
children: [jsxs("div", {
|
|
20038
|
-
className: "adyen-kyc-upload-field__subtitle",
|
|
20039
|
-
children: [" ", i18n.get("requirements")]
|
|
20040
|
-
}), jsx(List, {
|
|
20041
|
-
className: "adyen-kyc-upload-field__requirements",
|
|
20042
|
-
children: getBankDocumentRequirements(country2, documentType2).map(({
|
|
20043
|
-
key,
|
|
20044
|
-
options
|
|
20045
|
-
}) => jsx(ListItem, {
|
|
20046
|
-
children: i18n.get(key, options)
|
|
20047
|
-
}, key))
|
|
20048
|
-
})]
|
|
20049
|
-
});
|
|
20050
|
-
};
|
|
20051
|
-
const payoutBankStatementValidationRules = {
|
|
20052
|
-
description: {
|
|
20053
|
-
modes: ["blur"],
|
|
20054
|
-
validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
|
|
20055
|
-
errorMessage: "invalidFormatBankStatementDescription"
|
|
20056
|
-
}
|
|
20057
|
-
};
|
|
20058
|
-
const CHARACTERS_LIMIT$1 = 200;
|
|
20059
|
-
const bankStatementFields = ["bankStatementDocument", "description"];
|
|
20060
|
-
function PayoutBankStatementComponent(props) {
|
|
20061
|
-
var _a, _b;
|
|
20062
|
-
const {
|
|
20063
|
-
country: country2,
|
|
20064
|
-
optionalFields
|
|
20065
|
-
} = props;
|
|
20066
|
-
const {
|
|
20067
|
-
i18n
|
|
20068
|
-
} = useI18nContext();
|
|
20069
|
-
const [documentType2, setDocumentType] = useState();
|
|
20070
|
-
const stateRef = useRef({
|
|
20071
|
-
setState: null
|
|
20072
|
-
});
|
|
20073
|
-
const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
|
|
20074
|
-
const formUtils = formUtilities(props, i18n);
|
|
20075
|
-
const bankStatementValidationOptions = useMemo(() => ({
|
|
20076
|
-
...defaultFileValidationOptions,
|
|
20077
|
-
isOptional: isBankStatementOptional
|
|
20078
|
-
}), [isBankStatementOptional]);
|
|
20079
|
-
const rules2 = useMemo(() => ({
|
|
20080
|
-
...props.validators || payoutBankStatementValidationRules,
|
|
20081
|
-
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
20082
|
-
}), [bankStatementValidationOptions, props.validators]);
|
|
20083
|
-
const {
|
|
20084
|
-
handleChangeFor,
|
|
20085
|
-
data,
|
|
20086
|
-
setData,
|
|
20087
|
-
valid,
|
|
20088
|
-
fieldProblems,
|
|
20089
|
-
errors,
|
|
20090
|
-
triggerValidation
|
|
20091
|
-
} = useForm({
|
|
20092
|
-
...props,
|
|
20093
|
-
schema: bankStatementFields,
|
|
20094
|
-
defaultData: props.data,
|
|
20095
|
-
rules: rules2,
|
|
20096
|
-
fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
|
|
20097
|
-
shouldValidate: props == null ? void 0 : props.shouldValidate
|
|
20098
|
-
});
|
|
20099
|
-
const alreadyUploadedDocuments = useMemo(() => {
|
|
20100
|
-
var _a2;
|
|
20101
|
-
return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
|
|
20102
|
-
}, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
|
|
20103
|
-
const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
|
|
20104
|
-
const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
|
|
20105
|
-
useEffect(() => {
|
|
20106
|
-
var _a2;
|
|
20107
|
-
if (hasAlreadyUploadedDocuments) {
|
|
20108
|
-
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
20109
|
-
if ((_a2 = props.data) == null ? void 0 : _a2.description)
|
|
20110
|
-
setData("description", props.data.description);
|
|
20111
|
-
triggerValidation();
|
|
20112
|
-
}
|
|
20113
|
-
}, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
|
|
20114
|
-
useEffect(() => {
|
|
20115
|
-
var _a2, _b2;
|
|
20116
|
-
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
20117
|
-
type: "addToState",
|
|
20118
|
-
value: {
|
|
20119
|
-
data,
|
|
20120
|
-
valid,
|
|
20121
|
-
errors,
|
|
20122
|
-
fieldProblems,
|
|
20123
|
-
caller: props.id,
|
|
20124
|
-
dataStoreId: props.id,
|
|
20125
|
-
schema: bankStatementFields
|
|
20126
|
-
}
|
|
20127
|
-
});
|
|
20128
|
-
}, [data, valid, errors, fieldProblems]);
|
|
20129
|
-
const getBankDocumentOptions = () => {
|
|
20130
|
-
let options = bankDocumentOptions;
|
|
20131
|
-
if (country2 !== "FR") {
|
|
20132
|
-
options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
|
|
20133
|
-
}
|
|
20134
|
-
return options.map(({
|
|
20135
|
-
id: id2,
|
|
20136
|
-
name
|
|
20137
|
-
}) => ({
|
|
20138
|
-
id: id2,
|
|
20139
|
-
name: i18n.get(name)
|
|
20140
|
-
}));
|
|
20141
|
-
};
|
|
20142
|
-
return jsxs("form", {
|
|
20143
|
-
className: "adyen-kyc-payout__bank-statement",
|
|
20144
|
-
children: [jsx(StateContextSetter, {
|
|
20145
|
-
owner: props.id,
|
|
20146
|
-
stateRef
|
|
20147
|
-
}), jsx(FormHeader, {
|
|
20148
|
-
heading: props.heading
|
|
20149
|
-
}), jsx(ErrorPanel, {
|
|
20150
|
-
verificationErrors: props == null ? void 0 : props.formVerificationErrors,
|
|
20151
|
-
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
20152
|
-
formUtils,
|
|
20153
|
-
id: "ariaErrorField"
|
|
20154
|
-
}), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
|
|
20155
|
-
children: [jsx("div", {
|
|
20156
|
-
className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
|
|
20157
|
-
children: i18n.get("bankStatementDocumentTypeLabel")
|
|
20158
|
-
}), !usingExistingUploadedDocuments && jsx(Field, {
|
|
20159
|
-
name: "documentType",
|
|
20160
|
-
label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
|
|
20161
|
-
className: "adyen-kyc-field--bankStatementDocumentType",
|
|
20162
|
-
children: (childProps) => jsx(Select, {
|
|
20163
|
-
...childProps,
|
|
20164
|
-
onChange: (e) => setDocumentType(e.target.value),
|
|
20165
|
-
name: "documentType",
|
|
20166
|
-
placeholder: i18n.get("selectDocument"),
|
|
20167
|
-
isInvalid: false,
|
|
20168
|
-
items: getBankDocumentOptions(),
|
|
20169
|
-
selected: documentType2
|
|
20170
|
-
})
|
|
20171
|
-
}), documentType2 ? jsxs(Fragment, {
|
|
20172
|
-
children: [country2 ? jsx(BankDocumentRequirements, {
|
|
20173
|
-
country: country2,
|
|
20174
|
-
documentType: documentType2
|
|
20175
|
-
}) : void 0, jsx(DocumentGuidance, {
|
|
20176
|
-
type: DocumentType.BANK_STATEMENT,
|
|
20177
|
-
className: "adl-u-margin-y-24"
|
|
20178
|
-
})]
|
|
20179
|
-
}) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
20180
|
-
className: "adyen-kyc-field--bankStatementDocument adyen-kyc-upload-field",
|
|
20181
|
-
name: "bankStatementDocument",
|
|
20182
|
-
isValid: valid.bankStatementDocument,
|
|
20183
|
-
children: (childProps) => {
|
|
20184
|
-
var _a2;
|
|
20185
|
-
return jsx(FilePicker, {
|
|
20186
|
-
...childProps,
|
|
20187
|
-
files: data.bankStatementDocument ?? [],
|
|
20188
|
-
setFiles: handleChangeFor("bankStatementDocument"),
|
|
20189
|
-
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
20190
|
-
errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
|
|
20191
|
-
iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
|
|
20192
|
-
...bankStatementValidationOptions
|
|
20193
|
-
});
|
|
20194
|
-
}
|
|
20195
|
-
}) : null]
|
|
20196
|
-
}), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
20197
|
-
name: "description",
|
|
20198
|
-
label: formUtils.getLabel("descriptionOptional"),
|
|
20199
|
-
helper: i18n.get("descriptionHelper"),
|
|
20200
|
-
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
20201
|
-
isValid: valid.description,
|
|
20202
|
-
children: (childProps) => jsx(TextArea, {
|
|
20203
|
-
...childProps,
|
|
20204
|
-
name: "description",
|
|
20205
|
-
value: data.description,
|
|
20206
|
-
classNameModifiers: ["description"],
|
|
20207
|
-
maxLength: CHARACTERS_LIMIT$1,
|
|
20208
|
-
onInput: handleChangeFor("description"),
|
|
20209
|
-
"aria-label": formUtils.getLabel("description"),
|
|
20210
|
-
"aria-invalid": !valid.description
|
|
20211
|
-
})
|
|
20212
|
-
}) : null]
|
|
20213
|
-
});
|
|
20214
|
-
}
|
|
20215
|
-
const PayoutBankStatement = memo(PayoutBankStatementComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading);
|
|
20216
|
-
const VerificationMethod = "";
|
|
20217
20273
|
const hasLoaded = (loadedValue) => loadedValue !== "loading";
|
|
20218
20274
|
const eeaCountries = [CountryCodes.Austria, CountryCodes.Belgium, CountryCodes.Bulgaria, CountryCodes.Croatia, CountryCodes.Cyprus, CountryCodes.CzechRepublic, CountryCodes.Denmark, CountryCodes.Estonia, CountryCodes.Finland, CountryCodes.France, CountryCodes.Germany, CountryCodes.Greece, CountryCodes.Hungary, CountryCodes.Ireland, CountryCodes.Italy, CountryCodes.Latvia, CountryCodes.Liechtenstein, CountryCodes.Lithuania, CountryCodes.Luxembourg, CountryCodes.Malta, CountryCodes.Netherlands, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Portugal, CountryCodes.Romania, CountryCodes.Slovakia, CountryCodes.Slovenia, CountryCodes.Spain, CountryCodes.Sweden];
|
|
20219
20275
|
const regions = {
|
|
@@ -20242,7 +20298,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
|
|
|
20242
20298
|
}
|
|
20243
20299
|
});
|
|
20244
20300
|
const payoutVerificationMethods = ["instantVerification", "manualVerification"];
|
|
20245
|
-
const logger$
|
|
20301
|
+
const logger$i = createLogger("useLocalStorage");
|
|
20246
20302
|
const useLocalStorage = (key, defaultValue, options) => {
|
|
20247
20303
|
const {
|
|
20248
20304
|
serializer,
|
|
@@ -20263,7 +20319,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20263
20319
|
const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
|
|
20264
20320
|
return res;
|
|
20265
20321
|
} catch (err) {
|
|
20266
|
-
logger$
|
|
20322
|
+
logger$i.error(err);
|
|
20267
20323
|
return defaultValue;
|
|
20268
20324
|
}
|
|
20269
20325
|
});
|
|
@@ -20295,7 +20351,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20295
20351
|
try {
|
|
20296
20352
|
updateLocalStorage();
|
|
20297
20353
|
} catch (err) {
|
|
20298
|
-
logger$
|
|
20354
|
+
logger$i.error(err);
|
|
20299
20355
|
}
|
|
20300
20356
|
}, [value]);
|
|
20301
20357
|
useEffect(() => {
|
|
@@ -20310,7 +20366,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20310
20366
|
setValue(event.newValue ? parser(event.newValue) : void 0);
|
|
20311
20367
|
}
|
|
20312
20368
|
} catch (err) {
|
|
20313
|
-
logger$
|
|
20369
|
+
logger$i.error(err);
|
|
20314
20370
|
}
|
|
20315
20371
|
};
|
|
20316
20372
|
if (typeof window === "undefined")
|
|
@@ -20687,8 +20743,10 @@ const payoutSteps = {
|
|
|
20687
20743
|
}),
|
|
20688
20744
|
payoutAccountDocuments: {
|
|
20689
20745
|
formId: "payoutAccountDocuments",
|
|
20690
|
-
formName: "
|
|
20691
|
-
|
|
20746
|
+
formName: "bankDocument",
|
|
20747
|
+
formHeader: "bankDocumentHeader",
|
|
20748
|
+
formDescription: "bankDocumentDescription",
|
|
20749
|
+
fields: bankDocumentFields
|
|
20692
20750
|
},
|
|
20693
20751
|
payoutAccountVerification: {
|
|
20694
20752
|
formId: "payoutAccountVerification",
|
|
@@ -20719,6 +20777,7 @@ function PayoutDetailsComponent(props) {
|
|
|
20719
20777
|
activeForm,
|
|
20720
20778
|
taskType = TaskTypes.PAYOUT,
|
|
20721
20779
|
legalEntityResponse,
|
|
20780
|
+
associatedLegalArrangement,
|
|
20722
20781
|
handleGetBankVerificationVendors,
|
|
20723
20782
|
setHideDropinLayout,
|
|
20724
20783
|
setHideOnHomeButton,
|
|
@@ -20736,9 +20795,9 @@ function PayoutDetailsComponent(props) {
|
|
|
20736
20795
|
const verificationMethodFormProps = getFormProps(props, payoutSteps.payoutVerificationMethod.formId);
|
|
20737
20796
|
const accountVerificationFormProps = getFormProps(props, payoutSteps.payoutAccountVerification.formId);
|
|
20738
20797
|
const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails(taskType, isExperimentEnabled("EnableNewEntryFlow")).formId);
|
|
20739
|
-
const
|
|
20798
|
+
const bankDocumentFormProps = getFormProps(props, payoutSteps.payoutAccountDocuments.formId);
|
|
20740
20799
|
const taskHeading = isExperimentEnabled("EnableNewEntryFlow") ? i18n.get("addAndVerifyYourBankDetails") : i18n.get(taskType === TaskTypes.PAYOUT ? "payoutAccount" : "payinAccount");
|
|
20741
|
-
const isBankStatementDocumentOptional = formUtilities(
|
|
20800
|
+
const isBankStatementDocumentOptional = formUtilities(bankDocumentFormProps ?? {}, i18n).isOptionalField("bankStatementDocument");
|
|
20742
20801
|
const globalData = useGlobalData();
|
|
20743
20802
|
const data = isEmpty(globalData) ? propData : globalData;
|
|
20744
20803
|
const resetData = useResetGlobalData();
|
|
@@ -20824,10 +20883,13 @@ function PayoutDetailsComponent(props) {
|
|
|
20824
20883
|
})
|
|
20825
20884
|
}), !verifyInstantly && jsx("div", {
|
|
20826
20885
|
className: (activeForm == null ? void 0 : activeForm.formId) !== payoutSteps.payoutAccountDocuments.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
20827
|
-
children: jsx(
|
|
20828
|
-
...
|
|
20829
|
-
heading: i18n.get(isBankStatementDocumentOptional ? "
|
|
20886
|
+
children: jsx(BankDocumentComponent, {
|
|
20887
|
+
...bankDocumentFormProps,
|
|
20888
|
+
heading: i18n.get(isBankStatementDocumentOptional ? "bankDocumentHeaderOptional" : "bankDocumentHeader"),
|
|
20889
|
+
description: i18n.get("bankDocumentDescription"),
|
|
20830
20890
|
id: payoutSteps.payoutAccountDocuments.formId,
|
|
20891
|
+
legalEntity: legalEntityResponse,
|
|
20892
|
+
associatedLegalArrangement,
|
|
20831
20893
|
country: bankCountry2
|
|
20832
20894
|
})
|
|
20833
20895
|
})]
|
|
@@ -21038,7 +21100,6 @@ function SolePropComponent(props) {
|
|
|
21038
21100
|
children: renderActiveForm(props.activeForm || solePropForms.solePropNameAndCountry)
|
|
21039
21101
|
});
|
|
21040
21102
|
}
|
|
21041
|
-
const Trust = "";
|
|
21042
21103
|
var TrustTypes = /* @__PURE__ */ ((TrustTypes2) => {
|
|
21043
21104
|
TrustTypes2["BUSINESS_TRUST"] = "businessTrust";
|
|
21044
21105
|
TrustTypes2["CASH_MANAGEMENT_TRUST"] = "cashManagementTrust";
|
|
@@ -21360,7 +21421,6 @@ const getCountrySpecificTrustTypeOptions = (country2) => {
|
|
|
21360
21421
|
return countrySpecificTrustTypeOption;
|
|
21361
21422
|
});
|
|
21362
21423
|
};
|
|
21363
|
-
const ContextHelper$1 = "";
|
|
21364
21424
|
const ContextHelper = ({
|
|
21365
21425
|
content
|
|
21366
21426
|
}) => jsx("div", {
|
|
@@ -21625,6 +21685,14 @@ function TrustComponent(props) {
|
|
|
21625
21685
|
children: renderActiveForm(props.activeForm || trustForms.trustRegistrationDetails)
|
|
21626
21686
|
});
|
|
21627
21687
|
}
|
|
21688
|
+
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
21689
|
+
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
21690
|
+
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
21691
|
+
VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
|
|
21692
|
+
VerificationErrorType2["DATA_REVIEW"] = "dataReview";
|
|
21693
|
+
VerificationErrorType2["REJECTED"] = "rejected";
|
|
21694
|
+
return VerificationErrorType2;
|
|
21695
|
+
})(VerificationErrorType || {});
|
|
21628
21696
|
const invalidInputRemediationActionMappings = {
|
|
21629
21697
|
"1_100": [],
|
|
21630
21698
|
"1_101": [],
|
|
@@ -21705,6 +21773,8 @@ const invalidInputRemediationActionMappings = {
|
|
|
21705
21773
|
"1_502": [{
|
|
21706
21774
|
key: DocumentType.REGISTRATION_DOCUMENT
|
|
21707
21775
|
}],
|
|
21776
|
+
// '1_503': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // TODO: These are the correct mappings according to the API. We've done various bandaid fixes on both sides for this
|
|
21777
|
+
// '1_504': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // These will be corrected in a later ticket. see https://docs.adyen.com/platforms/kyc-verification-codes/remediating-actions/#1_503
|
|
21708
21778
|
"1_503": [{
|
|
21709
21779
|
key: DocumentType.VAT_DOCUMENT
|
|
21710
21780
|
}],
|
|
@@ -21763,6 +21833,8 @@ const invalidInputRemediationActionMappings = {
|
|
|
21763
21833
|
};
|
|
21764
21834
|
const dataMissingRemediationsToFieldsMap = {
|
|
21765
21835
|
"1_501": [DocumentType.REGISTRATION_DOCUMENT],
|
|
21836
|
+
"1_503": [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO],
|
|
21837
|
+
"1_512": [DocumentType.VAT_DOCUMENT],
|
|
21766
21838
|
"2_158": ["vatNumber", "exemptedFromVat", "vatAbsenceReason"]
|
|
21767
21839
|
};
|
|
21768
21840
|
const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
|
|
@@ -21775,19 +21847,158 @@ const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
|
|
|
21775
21847
|
"2_8193": "2_185"
|
|
21776
21848
|
// Director
|
|
21777
21849
|
};
|
|
21850
|
+
const OVERRIDE_REMEDIATION_CODE = {
|
|
21851
|
+
// 1_501: Upload a registration document
|
|
21852
|
+
"1_501": {
|
|
21853
|
+
code: "1_503",
|
|
21854
|
+
message: "Upload a tax document"
|
|
21855
|
+
},
|
|
21856
|
+
// 1_502: Upload a different registration document
|
|
21857
|
+
"1_502": {
|
|
21858
|
+
code: "1_504",
|
|
21859
|
+
message: "Upload a different tax document"
|
|
21860
|
+
}
|
|
21861
|
+
};
|
|
21862
|
+
const OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS = {
|
|
21863
|
+
"1_5012": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21864
|
+
code: "1_500",
|
|
21865
|
+
message: "Update organization details"
|
|
21866
|
+
}],
|
|
21867
|
+
"1_5013": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21868
|
+
code: "1_500",
|
|
21869
|
+
message: "Update organization details"
|
|
21870
|
+
}],
|
|
21871
|
+
"1_5015": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21872
|
+
code: "1_500",
|
|
21873
|
+
message: "Update organization details"
|
|
21874
|
+
}],
|
|
21875
|
+
"1_5017": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21876
|
+
code: "1_500",
|
|
21877
|
+
message: "Update organization details"
|
|
21878
|
+
}],
|
|
21879
|
+
"1_5020": [OVERRIDE_REMEDIATION_CODE["1_501"]],
|
|
21880
|
+
"1_5021": [OVERRIDE_REMEDIATION_CODE["1_502"]],
|
|
21881
|
+
"1_5022": [OVERRIDE_REMEDIATION_CODE["1_502"]],
|
|
21882
|
+
"1_5024": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
|
|
21883
|
+
code: "1_500",
|
|
21884
|
+
message: "Update organization details"
|
|
21885
|
+
}],
|
|
21886
|
+
"1_5035": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
|
|
21887
|
+
code: "1_500",
|
|
21888
|
+
message: "Update organization details"
|
|
21889
|
+
}]
|
|
21890
|
+
};
|
|
21891
|
+
const OVERRIDE_SUB_ERROR = {
|
|
21892
|
+
// 1_5012: The submitted company type didn't match the one on the registry
|
|
21893
|
+
"1_5012": {
|
|
21894
|
+
code: "1_5012",
|
|
21895
|
+
message: "The submitted company type didn't match the one on the registry",
|
|
21896
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21897
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5012"]
|
|
21898
|
+
},
|
|
21899
|
+
// 1_5013: The company was not found in the database
|
|
21900
|
+
"1_5013": {
|
|
21901
|
+
code: "1_5013",
|
|
21902
|
+
message: "The company was not found in the database",
|
|
21903
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21904
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5013"]
|
|
21905
|
+
},
|
|
21906
|
+
// 1_5015: The registration number didn't match the legal business name
|
|
21907
|
+
"1_5015": {
|
|
21908
|
+
code: "1_5017",
|
|
21909
|
+
message: "The tax ID number didn't match the legal business name",
|
|
21910
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21911
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5015"]
|
|
21912
|
+
},
|
|
21913
|
+
// 1_5017: The tax ID number didn't match the legal business name
|
|
21914
|
+
"1_5017": {
|
|
21915
|
+
code: "1_5017",
|
|
21916
|
+
message: "The tax ID number didn't match the legal business name",
|
|
21917
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21918
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5017"]
|
|
21919
|
+
},
|
|
21920
|
+
// 1_5020: Registration document is missing.
|
|
21921
|
+
"1_5020": {
|
|
21922
|
+
code: "1_5036",
|
|
21923
|
+
message: "Tax document is missing.",
|
|
21924
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21925
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5020"]
|
|
21926
|
+
},
|
|
21927
|
+
// 1_5021: The registration document was too low quality.
|
|
21928
|
+
"1_5021": {
|
|
21929
|
+
code: "1_5039",
|
|
21930
|
+
message: "The tax document was too low quality.",
|
|
21931
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21932
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5021"]
|
|
21933
|
+
},
|
|
21934
|
+
// 1_5022: The registration document was too old.
|
|
21935
|
+
"1_5022": {
|
|
21936
|
+
code: "1_5040",
|
|
21937
|
+
message: "The tax document was too old.",
|
|
21938
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21939
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5022"]
|
|
21940
|
+
},
|
|
21941
|
+
// 1_5024: The registration document did not show the company type
|
|
21942
|
+
"1_5024": {
|
|
21943
|
+
code: "1_5024",
|
|
21944
|
+
message: "The registration document did not show the company type",
|
|
21945
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21946
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5024"]
|
|
21947
|
+
},
|
|
21948
|
+
// 1_5035: The company registration document is not supported.
|
|
21949
|
+
"1_5035": {
|
|
21950
|
+
code: "1_5038",
|
|
21951
|
+
message: "The tax document wasn't a supported document type.",
|
|
21952
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21953
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5035"]
|
|
21954
|
+
}
|
|
21955
|
+
};
|
|
21956
|
+
const OVERRIDE_DATA_MISSING_ERROR = {
|
|
21957
|
+
// "'Registration document' was missing."
|
|
21958
|
+
"2_8141": {
|
|
21959
|
+
code: "2_8162",
|
|
21960
|
+
message: "'proofOfOrganizationTaxInfo' was missing",
|
|
21961
|
+
type: VerificationErrorType.DATA_MISSING,
|
|
21962
|
+
remediatingActions: [OVERRIDE_REMEDIATION_CODE["1_501"]]
|
|
21963
|
+
}
|
|
21964
|
+
};
|
|
21965
|
+
const overrideError = (verificationError) => {
|
|
21966
|
+
var _a, _b, _c;
|
|
21967
|
+
switch (verificationError.type) {
|
|
21968
|
+
case VerificationErrorType.DATA_MISSING:
|
|
21969
|
+
switch (verificationError.code) {
|
|
21970
|
+
case "2_8141":
|
|
21971
|
+
return OVERRIDE_DATA_MISSING_ERROR["2_8141"];
|
|
21972
|
+
default:
|
|
21973
|
+
return verificationError;
|
|
21974
|
+
}
|
|
21975
|
+
case VerificationErrorType.INVALID_INPUT:
|
|
21976
|
+
switch (verificationError.code) {
|
|
21977
|
+
case "1_50":
|
|
21978
|
+
return {
|
|
21979
|
+
...verificationError,
|
|
21980
|
+
subErrors: (_a = verificationError.subErrors) == null ? void 0 : _a.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
|
|
21981
|
+
};
|
|
21982
|
+
case "1_52":
|
|
21983
|
+
return {
|
|
21984
|
+
...verificationError,
|
|
21985
|
+
code: "1_53",
|
|
21986
|
+
message: "Tax document didn't meet requirements",
|
|
21987
|
+
remediatingActions: (_b = verificationError.remediatingActions) == null ? void 0 : _b.map((remediation) => OVERRIDE_REMEDIATION_CODE[remediation.code] ?? remediation),
|
|
21988
|
+
subErrors: (_c = verificationError.subErrors) == null ? void 0 : _c.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
|
|
21989
|
+
};
|
|
21990
|
+
default:
|
|
21991
|
+
return verificationError;
|
|
21992
|
+
}
|
|
21993
|
+
default:
|
|
21994
|
+
return verificationError;
|
|
21995
|
+
}
|
|
21996
|
+
};
|
|
21778
21997
|
var EntityType = /* @__PURE__ */ ((EntityType2) => {
|
|
21779
21998
|
EntityType2["BANK_ACCOUNT"] = "BankAccount";
|
|
21780
21999
|
EntityType2["LEGAL_ENTITY"] = "LegalEntity";
|
|
21781
22000
|
return EntityType2;
|
|
21782
22001
|
})(EntityType || {});
|
|
21783
|
-
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
21784
|
-
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
21785
|
-
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
21786
|
-
VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
|
|
21787
|
-
VerificationErrorType2["DATA_REVIEW"] = "dataReview";
|
|
21788
|
-
VerificationErrorType2["REJECTED"] = "rejected";
|
|
21789
|
-
return VerificationErrorType2;
|
|
21790
|
-
})(VerificationErrorType || {});
|
|
21791
22002
|
const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036", "2_8064", "2_8067", "2_8189"];
|
|
21792
22003
|
const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
|
|
21793
22004
|
const getComponentMappingFromLEFieldPath = (context, entityType2, isExperimentEnabled) => {
|
|
@@ -21992,7 +22203,13 @@ const aggregateProblemsByEntity = (problems, entity) => problems.reduce((errorsB
|
|
|
21992
22203
|
return aggregatedErrors;
|
|
21993
22204
|
}
|
|
21994
22205
|
}, {});
|
|
21995
|
-
|
|
22206
|
+
const overrideVerificationErrors = (verificationErrors, country2) => verificationErrors.map((verificationError) => {
|
|
22207
|
+
if (country2 === "US") {
|
|
22208
|
+
return overrideError(verificationError);
|
|
22209
|
+
}
|
|
22210
|
+
return verificationError;
|
|
22211
|
+
});
|
|
22212
|
+
function getCapabilityProblems(entity, country2, isExperimentEnabled) {
|
|
21996
22213
|
const problems = entity.problems ?? [];
|
|
21997
22214
|
const aggregatedErrorsByEntity = aggregateProblemsByEntity(problems, entity);
|
|
21998
22215
|
return entriesOf(aggregatedErrorsByEntity).reduce((capabilityProblems, [entityId, {
|
|
@@ -22003,7 +22220,7 @@ function getCapabilityProblems(entity, isExperimentEnabled) {
|
|
|
22003
22220
|
...capabilityProblems,
|
|
22004
22221
|
[baseEntityType]: {
|
|
22005
22222
|
...capabilityProblems[baseEntityType],
|
|
22006
|
-
[entityId]: getEntityProblems(verificationErrors, exactEntityType, isExperimentEnabled)
|
|
22223
|
+
[entityId]: getEntityProblems(overrideVerificationErrors(verificationErrors, country2), exactEntityType, isExperimentEnabled)
|
|
22007
22224
|
}
|
|
22008
22225
|
}), {});
|
|
22009
22226
|
}
|
|
@@ -22512,7 +22729,7 @@ const defaultPayoutAccountFormat = {
|
|
|
22512
22729
|
[CountryCodes.Sweden]: "local",
|
|
22513
22730
|
[CountryCodes.UnitedKingdom]: "local"
|
|
22514
22731
|
};
|
|
22515
|
-
const logger$
|
|
22732
|
+
const logger$h = createLogger("useScenarioConfiguration");
|
|
22516
22733
|
const useScenarioConfiguration = ({
|
|
22517
22734
|
getConfigurationData,
|
|
22518
22735
|
getPayoutAccountFormatData,
|
|
@@ -22535,12 +22752,12 @@ const useScenarioConfiguration = ({
|
|
|
22535
22752
|
const response = await getConfigurationData();
|
|
22536
22753
|
setConfigurationResponse(response);
|
|
22537
22754
|
} catch (err) {
|
|
22538
|
-
logger$
|
|
22755
|
+
logger$h.warn("WARNING: Configuration request failed - error:", err);
|
|
22539
22756
|
} finally {
|
|
22540
22757
|
setLoadingStatus("success");
|
|
22541
22758
|
}
|
|
22542
22759
|
};
|
|
22543
|
-
makeConfigCallAndSave().catch(logger$
|
|
22760
|
+
makeConfigCallAndSave().catch(logger$h.error);
|
|
22544
22761
|
}, [getConfigurationData, setLoadingStatus]);
|
|
22545
22762
|
useEffect(() => {
|
|
22546
22763
|
setLoadingStatus("loading");
|
|
@@ -22559,12 +22776,12 @@ const useScenarioConfiguration = ({
|
|
|
22559
22776
|
const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
|
|
22560
22777
|
setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
|
|
22561
22778
|
} catch (err) {
|
|
22562
|
-
logger$
|
|
22779
|
+
logger$h.warn("WARNING: Payout format request failed - error:", err);
|
|
22563
22780
|
} finally {
|
|
22564
22781
|
setLoadingStatus("success");
|
|
22565
22782
|
}
|
|
22566
22783
|
};
|
|
22567
|
-
makePayoutFormatCallAndSave().catch(logger$
|
|
22784
|
+
makePayoutFormatCallAndSave().catch(logger$h.error);
|
|
22568
22785
|
}, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
|
|
22569
22786
|
const {
|
|
22570
22787
|
fieldConfigurations,
|
|
@@ -23032,7 +23249,12 @@ const showRemediationField = (field, remediationActions) => remediationActions.s
|
|
|
23032
23249
|
var _a;
|
|
23033
23250
|
return ((_a = rem.fields) == null ? void 0 : _a.includes(field)) && remediationHasFileUploadField(rem);
|
|
23034
23251
|
});
|
|
23035
|
-
const makeTLDSFieldName = (formId, fieldName) =>
|
|
23252
|
+
const makeTLDSFieldName = (formId, fieldName) => {
|
|
23253
|
+
if (fieldName === DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO) {
|
|
23254
|
+
return `${formId}.taxDocument`;
|
|
23255
|
+
}
|
|
23256
|
+
return `${formId}.${fieldName}`;
|
|
23257
|
+
};
|
|
23036
23258
|
const isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
|
|
23037
23259
|
const dataMissingRemediations = dataMissingErrors.flatMap((error) => error.remediatingActions).filter((remediatingAction) => remediatingAction.code in dataMissingRemediationsToFieldsMap);
|
|
23038
23260
|
const missingFields = dataMissingRemediations.flatMap((remediatingAction) => dataMissingRemediationsToFieldsMap[remediatingAction.code]).map((missingField) => makeTLDSFieldName(formId, missingField));
|
|
@@ -23169,8 +23391,6 @@ const getFieldsWithExistingData = (legalEntity, isExperimentEnabled) => {
|
|
|
23169
23391
|
}
|
|
23170
23392
|
return nonDocumentFields;
|
|
23171
23393
|
};
|
|
23172
|
-
const _businessTypeSelection_component = "";
|
|
23173
|
-
const _heading_component = "";
|
|
23174
23394
|
const headingTypes = {
|
|
23175
23395
|
1: ({
|
|
23176
23396
|
children,
|
|
@@ -23220,7 +23440,6 @@ function Heading({
|
|
|
23220
23440
|
children
|
|
23221
23441
|
});
|
|
23222
23442
|
}
|
|
23223
|
-
const _toast = "";
|
|
23224
23443
|
var ToastType = /* @__PURE__ */ ((ToastType2) => {
|
|
23225
23444
|
ToastType2["LOADING"] = "loading";
|
|
23226
23445
|
ToastType2["SUCCESS"] = "success";
|
|
@@ -23767,8 +23986,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
|
|
|
23767
23986
|
}
|
|
23768
23987
|
return currentLegalEntityType;
|
|
23769
23988
|
};
|
|
23770
|
-
const
|
|
23771
|
-
const logger$f = createLogger("FormRouterContextProvider");
|
|
23989
|
+
const logger$g = createLogger("FormRouterContextProvider");
|
|
23772
23990
|
function FormRouterContextProvider({
|
|
23773
23991
|
children,
|
|
23774
23992
|
forms: forms2,
|
|
@@ -23788,7 +24006,7 @@ function FormRouterContextProvider({
|
|
|
23788
24006
|
if (formIndex > -1) {
|
|
23789
24007
|
setFormIndex(formIndex);
|
|
23790
24008
|
} else {
|
|
23791
|
-
logger$
|
|
24009
|
+
logger$g.error("No form was found to have that field so form navigation failed.");
|
|
23792
24010
|
}
|
|
23793
24011
|
}
|
|
23794
24012
|
}), [forms2, handleGetIdVerificationToken, setFormIndex]);
|
|
@@ -23797,7 +24015,6 @@ function FormRouterContextProvider({
|
|
|
23797
24015
|
children
|
|
23798
24016
|
});
|
|
23799
24017
|
}
|
|
23800
|
-
const DropinLayout$1 = "";
|
|
23801
24018
|
const DropinLayout = (props) => {
|
|
23802
24019
|
const {
|
|
23803
24020
|
content,
|
|
@@ -23817,8 +24034,6 @@ const DropinLayout = (props) => {
|
|
|
23817
24034
|
})]
|
|
23818
24035
|
});
|
|
23819
24036
|
};
|
|
23820
|
-
const FormNavigation$1 = "";
|
|
23821
|
-
const FormNavigationItem$1 = "";
|
|
23822
24037
|
const FormNavigationItem = ({
|
|
23823
24038
|
form,
|
|
23824
24039
|
isActive,
|
|
@@ -24390,9 +24605,7 @@ function CompanyDropinComponent({
|
|
|
24390
24605
|
})
|
|
24391
24606
|
});
|
|
24392
24607
|
}
|
|
24393
|
-
const
|
|
24394
|
-
const CompanyLookupComponent$1 = "";
|
|
24395
|
-
const logger$e = createLogger("useCompanySearch");
|
|
24608
|
+
const logger$f = createLogger("useCompanySearch");
|
|
24396
24609
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
24397
24610
|
function useCompanySearch({
|
|
24398
24611
|
defaultData,
|
|
@@ -24531,7 +24744,7 @@ function useCompanySearch({
|
|
|
24531
24744
|
state: companyData.state ?? stateOrProvince2
|
|
24532
24745
|
});
|
|
24533
24746
|
} catch (e) {
|
|
24534
|
-
logger$
|
|
24747
|
+
logger$f.error(e);
|
|
24535
24748
|
setError(e);
|
|
24536
24749
|
setStatus("error");
|
|
24537
24750
|
} finally {
|
|
@@ -24564,7 +24777,7 @@ function useCompanySearch({
|
|
|
24564
24777
|
indexSearch: handleCompanyIndexSearch,
|
|
24565
24778
|
deepSearch: handleCompanyDeepSearch,
|
|
24566
24779
|
resultsLimit: limit
|
|
24567
|
-
})) == null ? void 0 : _a.catch((e) => logger$
|
|
24780
|
+
})) == null ? void 0 : _a.catch((e) => logger$f.error(e));
|
|
24568
24781
|
}
|
|
24569
24782
|
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
|
|
24570
24783
|
useEffect(() => {
|
|
@@ -24665,7 +24878,6 @@ const CompanyLookupResultsHeader = ({
|
|
|
24665
24878
|
})]
|
|
24666
24879
|
});
|
|
24667
24880
|
};
|
|
24668
|
-
const LookupResult$1 = "";
|
|
24669
24881
|
const LookupResultBody = ({
|
|
24670
24882
|
registrationNumber: registrationNumber2,
|
|
24671
24883
|
address: address2
|
|
@@ -25301,7 +25513,6 @@ function CompanyBasics({
|
|
|
25301
25513
|
});
|
|
25302
25514
|
}
|
|
25303
25515
|
const CompanyBasicsComponent = memo(CompanyBasics, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.labels, nextProps.labels) && objectsDeepEqual(prevProps.placeholders, nextProps.placeholders) && objectsDeepEqual(prevProps.helperText, nextProps.helperText) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.heading === nextProps.heading && prevProps.description === nextProps.description && prevProps.readOnly === nextProps.readOnly && prevProps.requiredFields === nextProps.requiredFields && prevProps.obscuredFields === nextProps.obscuredFields && prevProps.optionalFields === nextProps.optionalFields && prevProps.readOnlyFields === nextProps.readOnlyFields && prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.kompanyVerifiedData, nextProps.kompanyVerifiedData));
|
|
25304
|
-
const CompanyOtherDetailsComponent$1 = "";
|
|
25305
25516
|
const BUSINESS_REGISTRATION_NUMBER_FIELD = ["registrationNumber", "exemptedFromRegistrationNumber"];
|
|
25306
25517
|
function BusinessRegistrationNumberField({
|
|
25307
25518
|
data,
|
|
@@ -25868,7 +26079,6 @@ function CompanyOtherDetails({
|
|
|
25868
26079
|
});
|
|
25869
26080
|
}
|
|
25870
26081
|
const CompanyOtherDetailsComponent = memo(CompanyOtherDetails, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.labels, nextProps.labels) && objectsDeepEqual(prevProps.placeholders, nextProps.placeholders) && objectsDeepEqual(prevProps.helperText, nextProps.helperText) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.heading === nextProps.heading && prevProps.description === nextProps.description && prevProps.requiredFields === nextProps.requiredFields && prevProps.obscuredFields === nextProps.obscuredFields && prevProps.optionalFields === nextProps.optionalFields && prevProps.readOnlyFields === nextProps.readOnlyFields && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.readOnly === nextProps.readOnly && prevProps.country === nextProps.country && prevProps.legalCompanyName === nextProps.legalCompanyName && prevProps.companyType === nextProps.companyType && prevProps.kompanyVerifiedData === nextProps.kompanyVerifiedData);
|
|
25871
|
-
const CompanyStructureComponent$1 = "";
|
|
25872
26082
|
const CompanyStructureValidation = {
|
|
25873
26083
|
entityType: {
|
|
25874
26084
|
modes: ["blur"],
|
|
@@ -26210,7 +26420,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
|
|
|
26210
26420
|
}
|
|
26211
26421
|
}, {});
|
|
26212
26422
|
};
|
|
26213
|
-
const logger$
|
|
26423
|
+
const logger$e = createLogger("useFormTaskSubmit");
|
|
26214
26424
|
function useCompanySearchTaskSubmit({
|
|
26215
26425
|
task,
|
|
26216
26426
|
forms: forms2,
|
|
@@ -26256,7 +26466,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26256
26466
|
});
|
|
26257
26467
|
}
|
|
26258
26468
|
} catch (e) {
|
|
26259
|
-
logger$
|
|
26469
|
+
logger$e.error(e);
|
|
26260
26470
|
}
|
|
26261
26471
|
}, [baseTrackingPayload, documentUtils]);
|
|
26262
26472
|
const submit2 = useCallback(async ({
|
|
@@ -26300,7 +26510,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26300
26510
|
...trackingPayload
|
|
26301
26511
|
}
|
|
26302
26512
|
});
|
|
26303
|
-
logger$
|
|
26513
|
+
logger$e.log(submittedLegalEntity);
|
|
26304
26514
|
setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
|
|
26305
26515
|
clearToasts();
|
|
26306
26516
|
onExternalSubmit == null ? void 0 : onExternalSubmit(data);
|
|
@@ -26325,7 +26535,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26325
26535
|
type: ToastType.ERROR
|
|
26326
26536
|
});
|
|
26327
26537
|
}
|
|
26328
|
-
logger$
|
|
26538
|
+
logger$e.error(e);
|
|
26329
26539
|
userEvents.addEvent("Encountered error company details", {
|
|
26330
26540
|
segmentation: {
|
|
26331
26541
|
...baseTrackingPayload,
|
|
@@ -26462,7 +26672,7 @@ function CompanySearchComponent(props) {
|
|
|
26462
26672
|
heading: i18n.get(forms.companyTaxDocument.formName),
|
|
26463
26673
|
description: i18n.get(forms.companyTaxDocument.formDescription),
|
|
26464
26674
|
documentField: "taxDocument",
|
|
26465
|
-
documentType: country2
|
|
26675
|
+
documentType: country2 === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
|
|
26466
26676
|
guidanceContent: jsxs(Fragment, {
|
|
26467
26677
|
children: [jsx("div", {
|
|
26468
26678
|
className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
|
|
@@ -26537,11 +26747,11 @@ function CompanySearchDropinComponent({
|
|
|
26537
26747
|
} = useExperimentsContext();
|
|
26538
26748
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
26539
26749
|
const [initialData, setInitialData] = useState(mapLegalEntityToCompanySearchSchema(legalEntityResponse));
|
|
26540
|
-
const [problems, setProblems] = useState(propProblems ?? ((_b = (_a = getCapabilityProblems(legalEntityResponse, isExperimentEnabled)) == null ? void 0 : _a.LegalEntity) == null ? void 0 : _b[legalEntityResponse.id]));
|
|
26541
26750
|
const country2 = useMemo(() => {
|
|
26542
26751
|
var _a2;
|
|
26543
26752
|
return ((_a2 = currentState.data.companyBasics) == null ? void 0 : _a2.country) ?? parentCountry;
|
|
26544
|
-
}, [(
|
|
26753
|
+
}, [(_a = currentState.data.companyBasics) == null ? void 0 : _a.country, parentCountry]);
|
|
26754
|
+
const [problems, setProblems] = useState(propProblems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, country2, isExperimentEnabled)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id]));
|
|
26545
26755
|
const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
|
|
26546
26756
|
useEffect(() => {
|
|
26547
26757
|
var _a2;
|
|
@@ -26754,6 +26964,24 @@ const useShouldShowIntroduction = ({
|
|
|
26754
26964
|
});
|
|
26755
26965
|
return canSeeIntroduction && !hasSeenIntroduction;
|
|
26756
26966
|
};
|
|
26967
|
+
const logger$d = createLogger("useAssociatedLegalArrangement");
|
|
26968
|
+
function useAssociatedLegalArrangement({
|
|
26969
|
+
rootLegalEntity,
|
|
26970
|
+
getLegalEntity: getLegalEntity2
|
|
26971
|
+
}) {
|
|
26972
|
+
const [associatedLegalArrangement, setAssociatedLegalArrangement] = useState();
|
|
26973
|
+
const getAssociatedEntity = useCallback(async (entityId) => getLegalEntity2 == null ? void 0 : getLegalEntity2(entityId), [getLegalEntity2]);
|
|
26974
|
+
useEffect(() => {
|
|
26975
|
+
var _a;
|
|
26976
|
+
const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
|
|
26977
|
+
if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
|
|
26978
|
+
getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$d.error);
|
|
26979
|
+
}
|
|
26980
|
+
}, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
|
|
26981
|
+
return {
|
|
26982
|
+
associatedLegalArrangement
|
|
26983
|
+
};
|
|
26984
|
+
}
|
|
26757
26985
|
const useShouldShowBusinessTypeSelection = (accountHolder2) => {
|
|
26758
26986
|
const {
|
|
26759
26987
|
isExperimentEnabled
|
|
@@ -26831,36 +27059,6 @@ const saveBlobAsFile = (fileData, filename) => {
|
|
|
26831
27059
|
window.URL.revokeObjectURL(blobUrl);
|
|
26832
27060
|
}
|
|
26833
27061
|
};
|
|
26834
|
-
const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
|
|
26835
|
-
var _a, _b, _c, _d, _e;
|
|
26836
|
-
if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
|
|
26837
|
-
return `${((_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.name) == null ? void 0 : _b.firstName) ?? ""} ${((_d = (_c = legalEntityResponse.individual) == null ? void 0 : _c.name) == null ? void 0 : _d.lastName) ?? ""}`;
|
|
26838
|
-
}
|
|
26839
|
-
return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
|
|
26840
|
-
};
|
|
26841
|
-
const getPayoutAccountHolderName = (legalEntity, i18n) => {
|
|
26842
|
-
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
26843
|
-
const trustAssociation = ownAssociations.find(({
|
|
26844
|
-
type
|
|
26845
|
-
}) => type === LegalEntityType.TRUST);
|
|
26846
|
-
if (trustAssociation == null ? void 0 : trustAssociation.name) {
|
|
26847
|
-
const trustName = trustAssociation.name;
|
|
26848
|
-
const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
|
|
26849
|
-
return i18n.get("trusteeAsTrusteeForTrust", {
|
|
26850
|
-
values: {
|
|
26851
|
-
trustName,
|
|
26852
|
-
trusteeName
|
|
26853
|
-
}
|
|
26854
|
-
});
|
|
26855
|
-
}
|
|
26856
|
-
const solePropAssociation = ownAssociations.find(({
|
|
26857
|
-
type
|
|
26858
|
-
}) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
|
|
26859
|
-
if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
|
|
26860
|
-
return solePropAssociation.name;
|
|
26861
|
-
}
|
|
26862
|
-
return getLegalEntityNameBasedOnType(legalEntity);
|
|
26863
|
-
};
|
|
26864
27062
|
const isNewEntity = Symbol("isNewEntity");
|
|
26865
27063
|
const splitAtFirstOccurrence = (str, separator) => {
|
|
26866
27064
|
const firstOccurrence = str.indexOf(separator);
|
|
@@ -27136,7 +27334,6 @@ function AccountSetupRejected() {
|
|
|
27136
27334
|
content
|
|
27137
27335
|
});
|
|
27138
27336
|
}
|
|
27139
|
-
const DecisionMakers = "";
|
|
27140
27337
|
function useDataMissingRemediations({
|
|
27141
27338
|
legalEntityId,
|
|
27142
27339
|
problems
|
|
@@ -27180,7 +27377,6 @@ const iconStatus = (current, min, max) => {
|
|
|
27180
27377
|
return isWithinConditionalRange ? "conditionalFinished" : "conditionalEmpty";
|
|
27181
27378
|
};
|
|
27182
27379
|
const getEntityStatusRuleDescription = (country2, currentTask, entityLabel) => currentTask === TaskTypes.TRUST_MEMBER_OVERVIEW ? TRUST_DEFAULT_DESCRIPTIONS_MAP[entityLabel] : getDecisionMakerDescriptionMap(country2)[entityLabel];
|
|
27183
|
-
const _cardGroup_component = "";
|
|
27184
27380
|
function CardGroup({
|
|
27185
27381
|
className,
|
|
27186
27382
|
children
|
|
@@ -27190,8 +27386,6 @@ function CardGroup({
|
|
|
27190
27386
|
children
|
|
27191
27387
|
});
|
|
27192
27388
|
}
|
|
27193
|
-
const _entityAssociation_component = "";
|
|
27194
|
-
const Status$1 = "";
|
|
27195
27389
|
const Status = ({
|
|
27196
27390
|
text,
|
|
27197
27391
|
className,
|
|
@@ -27354,7 +27548,6 @@ const VerificationErrorAlert = ({
|
|
|
27354
27548
|
children
|
|
27355
27549
|
});
|
|
27356
27550
|
};
|
|
27357
|
-
const _card_component = "";
|
|
27358
27551
|
function Card({
|
|
27359
27552
|
className,
|
|
27360
27553
|
children,
|
|
@@ -27407,7 +27600,6 @@ function Card({
|
|
|
27407
27600
|
})]
|
|
27408
27601
|
});
|
|
27409
27602
|
}
|
|
27410
|
-
const ActionsMenu$1 = "";
|
|
27411
27603
|
function useClickAwayListener(ref, onClickAway) {
|
|
27412
27604
|
const handleClickAway = useCallback((event) => {
|
|
27413
27605
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -27617,7 +27809,6 @@ const EntityAssociation = ({
|
|
|
27617
27809
|
}), infoContent]
|
|
27618
27810
|
});
|
|
27619
27811
|
};
|
|
27620
|
-
const EntityGuidanceStatus$1 = "";
|
|
27621
27812
|
const EntityStatusIcon = ({
|
|
27622
27813
|
status
|
|
27623
27814
|
}) => {
|
|
@@ -27884,7 +28075,6 @@ const DecisionMakersComponent = ({
|
|
|
27884
28075
|
})
|
|
27885
28076
|
});
|
|
27886
28077
|
};
|
|
27887
|
-
const Shimmer$1 = "";
|
|
27888
28078
|
function Shimmer() {
|
|
27889
28079
|
return jsxs("div", {
|
|
27890
28080
|
children: [jsx("div", {
|
|
@@ -27898,7 +28088,6 @@ function Shimmer() {
|
|
|
27898
28088
|
})]
|
|
27899
28089
|
});
|
|
27900
28090
|
}
|
|
27901
|
-
const _introduction_component = "";
|
|
27902
28091
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
27903
28092
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
27904
28093
|
IntroductionScreens2[IntroductionScreens2["COMPANY"] = TaskTypes.COMPANY] = "COMPANY";
|
|
@@ -27944,7 +28133,6 @@ const useIntroductionScreens = ({
|
|
|
27944
28133
|
}) : [], [legalEntityType, tasks]);
|
|
27945
28134
|
return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
|
|
27946
28135
|
};
|
|
27947
|
-
const StepProgressIndicator$1 = "";
|
|
27948
28136
|
const StepProgressIndicator = ({
|
|
27949
28137
|
activeStepIndex,
|
|
27950
28138
|
stepsCount
|
|
@@ -28223,7 +28411,6 @@ function ReviewComponent({
|
|
|
28223
28411
|
footer
|
|
28224
28412
|
});
|
|
28225
28413
|
}
|
|
28226
|
-
const TaskList = "";
|
|
28227
28414
|
const businessTypeMapping = {
|
|
28228
28415
|
myName: {
|
|
28229
28416
|
[LegalEntityType.INDIVIDUAL]: "individual"
|
|
@@ -28270,7 +28457,6 @@ const hasPayoutAccount = (legalEntityResponse) => {
|
|
|
28270
28457
|
var _a;
|
|
28271
28458
|
return Boolean((_a = legalEntityResponse.transferInstruments) == null ? void 0 : _a.length);
|
|
28272
28459
|
};
|
|
28273
|
-
const TaskListItem$1 = "";
|
|
28274
28460
|
const TaskListItem = ({
|
|
28275
28461
|
title,
|
|
28276
28462
|
tagline,
|
|
@@ -28395,7 +28581,6 @@ const PayoutAccountTaskListItem = ({
|
|
|
28395
28581
|
handleIsRemoveDisabled: setIsRemoveDisabled
|
|
28396
28582
|
});
|
|
28397
28583
|
};
|
|
28398
|
-
const TaskListGroup$1 = "";
|
|
28399
28584
|
const TaskListGroup = ({
|
|
28400
28585
|
title,
|
|
28401
28586
|
children
|
|
@@ -28640,7 +28825,6 @@ function TaskListComponent({
|
|
|
28640
28825
|
})]
|
|
28641
28826
|
});
|
|
28642
28827
|
}
|
|
28643
|
-
const TrustMembersOverview$1 = "";
|
|
28644
28828
|
const CompanyTrustMemberTaskItem = ({
|
|
28645
28829
|
companyTrustMember,
|
|
28646
28830
|
taskStatus,
|
|
@@ -29486,7 +29670,7 @@ const useBankConfigurationHandlers = ({
|
|
|
29486
29670
|
getBankVerificationVendorsHandler
|
|
29487
29671
|
};
|
|
29488
29672
|
};
|
|
29489
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-
|
|
29673
|
+
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-rNM7cqE8.mjs"), "./AE.json": () => import("./AE-DoU2c3CQ.mjs"), "./AI.json": () => import("./AI-BQBZ2VVt.mjs"), "./AL.json": () => import("./AL-s4ei1ra4.mjs"), "./AR.json": () => import("./AR-DDR8RTlN.mjs"), "./AS.json": () => import("./AS-CvpjtIPo.mjs"), "./AT.json": () => import("./AT-Du3jf0QK.mjs"), "./AU.json": () => import("./AU-CaRlRNzq.mjs"), "./AX.json": () => import("./AX-DL2IpBlq.mjs"), "./AZ.json": () => import("./AZ-DgnKHqSW.mjs"), "./BA.json": () => import("./BA-DbzAHDbo.mjs"), "./BE.json": () => import("./BE-B8RVrEa-.mjs"), "./BG.json": () => import("./BG-BAU_RbNU.mjs"), "./BH.json": () => import("./BH-zzl3Aicz.mjs"), "./BM.json": () => import("./BM-Bx0QpJE_.mjs"), "./BR.json": () => import("./BR-CcE5GVb_.mjs"), "./BS.json": () => import("./BS-C5xv5epf.mjs"), "./BV.json": () => import("./BV-BO7Uhvet.mjs"), "./BY.json": () => import("./BY-Dn7i3b4O.mjs"), "./CA.json": () => import("./CA-BzjyYlZe.mjs"), "./CH.json": () => import("./CH-BvlOBUqB.mjs"), "./CN.json": () => import("./CN-y0BC6iBw.mjs"), "./CR.json": () => import("./CR-tTzdtq6M.mjs"), "./CY.json": () => import("./CY-Bjyj7q7k.mjs"), "./CZ.json": () => import("./CZ-DdsXQiz6.mjs"), "./DE.json": () => import("./DE-k6sF_Z8P.mjs"), "./DK.json": () => import("./DK-CUWikATU.mjs"), "./DO.json": () => import("./DO-DpDyoh4y.mjs"), "./EC.json": () => import("./EC--TPKDJme.mjs"), "./EE.json": () => import("./EE-o0O1NAuh.mjs"), "./ES.json": () => import("./ES-8DboqUrj.mjs"), "./FI.json": () => import("./FI-CwVBRBBQ.mjs"), "./FJ.json": () => import("./FJ-DkKmOAd6.mjs"), "./FO.json": () => import("./FO-BCZCVxXR.mjs"), "./FR.json": () => import("./FR-NtJ3QSfd.mjs"), "./GB.json": () => import("./GB-BhRiUVO6.mjs"), "./GE.json": () => import("./GE--9n2R8_p.mjs"), "./GF.json": () => import("./GF-BeND08-O.mjs"), "./GG.json": () => import("./GG-DcYzHlYO.mjs"), "./GI.json": () => import("./GI-BWXRySSY.mjs"), "./GL.json": () => import("./GL-Cu7M9Xnx.mjs"), "./GP.json": () => import("./GP-Dm3WhONm.mjs"), "./GR.json": () => import("./GR-C0snveYS.mjs"), "./GT.json": () => import("./GT-BykjfmEK.mjs"), "./GU.json": () => import("./GU-oom5Ehbd.mjs"), "./HK.json": () => import("./HK-Dr5b-SwK.mjs"), "./HR.json": () => import("./HR-DKAQpsSV.mjs"), "./HU.json": () => import("./HU-DJWWX_5P.mjs"), "./ID.json": () => import("./ID-BWJvoyJo.mjs"), "./IE.json": () => import("./IE-BPh0CHaO.mjs"), "./IL.json": () => import("./IL-B8E0HdBj.mjs"), "./IM.json": () => import("./IM-ClrsAYLm.mjs"), "./IN.json": () => import("./IN-CVsYzQzI.mjs"), "./IS.json": () => import("./IS-BkDwjQHz.mjs"), "./IT.json": () => import("./IT-B3cLskCx.mjs"), "./JE.json": () => import("./JE-C8HBNrJn.mjs"), "./JM.json": () => import("./JM-CH_LXMnd.mjs"), "./JO.json": () => import("./JO-CD_uH_Uk.mjs"), "./JP.json": () => import("./JP-DtK_xb_Y.mjs"), "./KR.json": () => import("./KR-DBPY5awJ.mjs"), "./KW.json": () => import("./KW-CiSCIyPm.mjs"), "./KY.json": () => import("./KY-FU9AuEMz.mjs"), "./KZ.json": () => import("./KZ-CMFj-_rM.mjs"), "./LB.json": () => import("./LB-BRGM3Yl3.mjs"), "./LI.json": () => import("./LI-DlCX-3GD.mjs"), "./LT.json": () => import("./LT-XRkygwh8.mjs"), "./LU.json": () => import("./LU-CV14IXAu.mjs"), "./LV.json": () => import("./LV-ByV8yuF8.mjs"), "./MC.json": () => import("./MC-CwHePfdt.mjs"), "./MD.json": () => import("./MD-_IIMR66Q.mjs"), "./ME.json": () => import("./ME-Cfx8llkg.mjs"), "./MK.json": () => import("./MK-CEzz7Z_a.mjs"), "./MP.json": () => import("./MP-C5acK0KC.mjs"), "./MQ.json": () => import("./MQ-BEZo6wPU.mjs"), "./MR.json": () => import("./MR-BoFyF5R-.mjs"), "./MT.json": () => import("./MT-C_-lQGuI.mjs"), "./MU.json": () => import("./MU-_tM1ai_B.mjs"), "./MX.json": () => import("./MX-eayygS1f.mjs"), "./MY.json": () => import("./MY-CsKpuB-w.mjs"), "./NC.json": () => import("./NC-Bel2A-Fk.mjs"), "./NL.json": () => import("./NL-C3LxWTQ7.mjs"), "./NO.json": () => import("./NO-CjZgx8a-.mjs"), "./NZ.json": () => import("./NZ-CG-hMfLg.mjs"), "./PE.json": () => import("./PE-DvMRqGF_.mjs"), "./PF.json": () => import("./PF-f7fSMI_4.mjs"), "./PH.json": () => import("./PH-CjFT8xMY.mjs"), "./PK.json": () => import("./PK-wMg8N3zK.mjs"), "./PL.json": () => import("./PL-WpWUBPgN.mjs"), "./PM.json": () => import("./PM-D4sBI2Px.mjs"), "./PR.json": () => import("./PR-BJ09dEXF.mjs"), "./PS.json": () => import("./PS-CWFZXVi8.mjs"), "./PT.json": () => import("./PT-BarBZmwW.mjs"), "./QA.json": () => import("./QA-CtUmYTKA.mjs"), "./RE.json": () => import("./RE-DfaVzCe-.mjs"), "./RO.json": () => import("./RO-DmWLrUu-.mjs"), "./RS.json": () => import("./RS-DilO913f.mjs"), "./RU.json": () => import("./RU-B83Fu7c3.mjs"), "./SA.json": () => import("./SA-BpimyQxp.mjs"), "./SE.json": () => import("./SE-BXNcwTPQ.mjs"), "./SG.json": () => import("./SG-Uyk6Nl41.mjs"), "./SI.json": () => import("./SI-B5ALffDQ.mjs"), "./SJ.json": () => import("./SJ-BrJofAMz.mjs"), "./SK.json": () => import("./SK-DOE_fS4w.mjs"), "./SM.json": () => import("./SM-BBQZf4DZ.mjs"), "./TF.json": () => import("./TF-BDwH1us-.mjs"), "./TH.json": () => import("./TH-BxFJXEcZ.mjs"), "./TL.json": () => import("./TL-BzbQs-FD.mjs"), "./TN.json": () => import("./TN-Dc91A3rb.mjs"), "./TR.json": () => import("./TR-BBxkpnZQ.mjs"), "./TT.json": () => import("./TT-D-FKOmmE.mjs"), "./TW.json": () => import("./TW-r3G_Qs5B.mjs"), "./UA.json": () => import("./UA-vpfj8SEN.mjs"), "./US.json": () => import("./US-CFOdL8kt.mjs"), "./UY.json": () => import("./UY-CUwq2MHm.mjs"), "./VA.json": () => import("./VA-DlPtJwY9.mjs"), "./VG.json": () => import("./VG-yM0HOg57.mjs"), "./VI.json": () => import("./VI-I7ADXxNd.mjs"), "./VN.json": () => import("./VN-0gy1H7YD.mjs"), "./WF.json": () => import("./WF-BlzFGDgv.mjs"), "./YT.json": () => import("./YT-17mSpzMD.mjs"), "./ZA.json": () => import("./ZA-BcxFTdWL.mjs") });
|
|
29490
29674
|
const getAccountFormatsForCountry = async (country2) => {
|
|
29491
29675
|
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
29492
29676
|
if (!importForCountry) {
|
|
@@ -29567,6 +29751,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29567
29751
|
handleCreateTransferInstrument,
|
|
29568
29752
|
handleGetBankVerificationVendors,
|
|
29569
29753
|
legalEntityResponse,
|
|
29754
|
+
associatedLegalArrangement,
|
|
29570
29755
|
trackingConfig,
|
|
29571
29756
|
accountHolder: accountHolder2,
|
|
29572
29757
|
problems: propProblems,
|
|
@@ -29632,6 +29817,13 @@ function PayoutDetailsDropinComponent({
|
|
|
29632
29817
|
}
|
|
29633
29818
|
};
|
|
29634
29819
|
const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
|
|
29820
|
+
const {
|
|
29821
|
+
state: {
|
|
29822
|
+
currentState
|
|
29823
|
+
}
|
|
29824
|
+
} = useStateContext();
|
|
29825
|
+
const formValidity = currentState.validityByForm;
|
|
29826
|
+
const bankAccountCountry2 = ((_c = (_b = currentState == null ? void 0 : currentState.data) == null ? void 0 : _b.payoutVerificationMethod) == null ? void 0 : _c.bankCountry) ?? defaultPayoutCountry;
|
|
29635
29827
|
const [hideDropinLayout, setHideDropinLayout] = useState(false);
|
|
29636
29828
|
const [submitButtonLabel, setSubmitButtonLabel] = useState("submit");
|
|
29637
29829
|
const [skipSubmit, setSkipSubmit] = useState(false);
|
|
@@ -29639,9 +29831,9 @@ function PayoutDetailsDropinComponent({
|
|
|
29639
29831
|
const [hideBackButton, setHideBackButton] = useState(false);
|
|
29640
29832
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
29641
29833
|
const [data, setData] = useState(prefilledData);
|
|
29642
|
-
const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (
|
|
29834
|
+
const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_e = (_d = getCapabilityProblems(legalEntityResponse, bankAccountCountry2)) == null ? void 0 : _d.BankAccount) == null ? void 0 : _e[transferInstrument.id] : void 0));
|
|
29643
29835
|
const [accountDetailsFromInput, setAccountDetailsFromInput] = useState(prefilledData.payoutAccountDetails);
|
|
29644
|
-
const existingBankAccountFormat = transferInstrument ? ((
|
|
29836
|
+
const existingBankAccountFormat = transferInstrument ? ((_f = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _f.iban) ? "iban" : "local" : void 0;
|
|
29645
29837
|
const baseTrackingPayload = getBaseTrackingPayload({
|
|
29646
29838
|
trackingConfig,
|
|
29647
29839
|
task: taskType
|
|
@@ -29655,13 +29847,6 @@ function PayoutDetailsDropinComponent({
|
|
|
29655
29847
|
}
|
|
29656
29848
|
});
|
|
29657
29849
|
}, []);
|
|
29658
|
-
const {
|
|
29659
|
-
state: {
|
|
29660
|
-
currentState
|
|
29661
|
-
}
|
|
29662
|
-
} = useStateContext();
|
|
29663
|
-
const formValidity = currentState.validityByForm;
|
|
29664
|
-
const bankAccountCountry2 = ((_f = (_e = currentState == null ? void 0 : currentState.data) == null ? void 0 : _e.payoutVerificationMethod) == null ? void 0 : _f.bankCountry) ?? defaultPayoutCountry;
|
|
29665
29850
|
useEffect(() => {
|
|
29666
29851
|
var _a2, _b2;
|
|
29667
29852
|
setData({
|
|
@@ -29852,9 +30037,9 @@ function PayoutDetailsDropinComponent({
|
|
|
29852
30037
|
}
|
|
29853
30038
|
};
|
|
29854
30039
|
const isDocumentsRequired2 = (forms22) => forms22.some((form) => form.formId === payoutDetailsSteps.payoutAccountDocuments.formId);
|
|
29855
|
-
const formatFileSummaryData2 = (
|
|
30040
|
+
const formatFileSummaryData2 = (bankDocuments) => {
|
|
29856
30041
|
var _a2;
|
|
29857
|
-
const bankStatementDocument2 = (_a2 =
|
|
30042
|
+
const bankStatementDocument2 = (_a2 = bankDocuments == null ? void 0 : bankDocuments.bankStatementDocument) == null ? void 0 : _a2[0];
|
|
29858
30043
|
return {
|
|
29859
30044
|
...bankStatementDocument2 && {
|
|
29860
30045
|
fileName: bankStatementDocument2.name
|
|
@@ -29957,6 +30142,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29957
30142
|
setSkipSubmit,
|
|
29958
30143
|
onChange,
|
|
29959
30144
|
legalEntityResponse,
|
|
30145
|
+
associatedLegalArrangement,
|
|
29960
30146
|
handleGetBankVerificationVendors: getBankVerificationVendorsHandler,
|
|
29961
30147
|
instantVerificationEnabled,
|
|
29962
30148
|
refreshLegalEntity,
|
|
@@ -29968,7 +30154,6 @@ function PayoutDetailsDropinComponent({
|
|
|
29968
30154
|
})
|
|
29969
30155
|
});
|
|
29970
30156
|
}
|
|
29971
|
-
const ContractViewer$1 = "";
|
|
29972
30157
|
function ContractViewer({
|
|
29973
30158
|
contract,
|
|
29974
30159
|
className,
|
|
@@ -31794,6 +31979,12 @@ function DropinComposerComponent({
|
|
|
31794
31979
|
const [taskHistory, setTaskHistory] = useState([initialTask]);
|
|
31795
31980
|
const [rootLegalEntity, setRootLegalEntity] = useState(legalEntityResponse);
|
|
31796
31981
|
const [associatedLegalEntity, setAssociatedLegalEntity] = useState(null);
|
|
31982
|
+
const {
|
|
31983
|
+
associatedLegalArrangement
|
|
31984
|
+
} = useAssociatedLegalArrangement({
|
|
31985
|
+
rootLegalEntity,
|
|
31986
|
+
getLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
|
|
31987
|
+
});
|
|
31797
31988
|
const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
|
|
31798
31989
|
const [legalEntityType, setLegalEntityType] = useState(null);
|
|
31799
31990
|
const [solePropietor, setSolePropietor] = useState(null);
|
|
@@ -31808,9 +31999,9 @@ function DropinComposerComponent({
|
|
|
31808
31999
|
const [serviceAgreementTypes, setServiceAgreementTypes] = useState([]);
|
|
31809
32000
|
const [serviceAgreementAcceptanceInfos, setServiceAgreementAcceptanceInfos] = useState([]);
|
|
31810
32001
|
const [transferInstrument, setTransferInstrument] = useState(null);
|
|
31811
|
-
const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, isExperimentEnabled));
|
|
31812
|
-
const [bankVerificationVendors, setBankVerificationVendors] = useState();
|
|
31813
32002
|
const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? (_a = rootLegalEntity.individual.residentialAddress) == null ? void 0 : _a.country : (_b = rootLegalEntity.organization.registeredAddress) == null ? void 0 : _b.country;
|
|
32003
|
+
const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled));
|
|
32004
|
+
const [bankVerificationVendors, setBankVerificationVendors] = useState();
|
|
31814
32005
|
const hasTrust = accountHolder2 === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
31815
32006
|
const reviewRequired = (rootLegalEntity == null ? void 0 : rootLegalEntity.id) && ((_d = (_c = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _c[rootLegalEntity.id]) == null ? void 0 : _d.isReviewRequired);
|
|
31816
32007
|
const additionalSalesChannels = useSalesChannelsSettings();
|
|
@@ -31917,7 +32108,7 @@ function DropinComposerComponent({
|
|
|
31917
32108
|
try {
|
|
31918
32109
|
const response = await (args == null ? void 0 : args.handleGetLegalEntity(rootLegalEntity.id));
|
|
31919
32110
|
setRootLegalEntity(response);
|
|
31920
|
-
setCapabilityProblems(getCapabilityProblems(response));
|
|
32111
|
+
setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
|
|
31921
32112
|
return response;
|
|
31922
32113
|
} catch (e) {
|
|
31923
32114
|
logger$a.warn(i18n.get("failedToFetchLegalEntityDetails"));
|
|
@@ -32569,6 +32760,7 @@ function DropinComposerComponent({
|
|
|
32569
32760
|
transferInstrument,
|
|
32570
32761
|
setTransferInstrument,
|
|
32571
32762
|
legalEntityResponse: rootLegalEntity,
|
|
32763
|
+
associatedLegalArrangement,
|
|
32572
32764
|
refreshLegalEntity,
|
|
32573
32765
|
accountHolder: getPayoutAccountHolderName(rootLegalEntity, i18n),
|
|
32574
32766
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
@@ -32979,7 +33171,7 @@ const generateOnboardingLink = async (context, config) => {
|
|
|
32979
33171
|
loadingContext,
|
|
32980
33172
|
errorLevel: "warn",
|
|
32981
33173
|
errorMessage: `Fetching onboarding link was not successful`,
|
|
32982
|
-
path: `${legalEntityId}/onboardingStatus
|
|
33174
|
+
path: `${legalEntityId}/onboardingStatus`,
|
|
32983
33175
|
authentication: "jwt",
|
|
32984
33176
|
headers: {
|
|
32985
33177
|
"Content-Type": "application/json"
|
|
@@ -33242,6 +33434,12 @@ function CreateTransferInstrumentComponent({
|
|
|
33242
33434
|
const [legalEntity, setLegalEntity] = useState();
|
|
33243
33435
|
const [transferInstrument, setTransferInstrument] = useState();
|
|
33244
33436
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
33437
|
+
const {
|
|
33438
|
+
associatedLegalArrangement
|
|
33439
|
+
} = useAssociatedLegalArrangement({
|
|
33440
|
+
rootLegalEntity: legalEntity,
|
|
33441
|
+
getLegalEntity: getLegalEntity2
|
|
33442
|
+
});
|
|
33245
33443
|
const fetchLegalEntity = useCallback(async () => {
|
|
33246
33444
|
const le = await getLegalEntity2(legalEntityId);
|
|
33247
33445
|
setLegalEntity(le);
|
|
@@ -33266,6 +33464,7 @@ function CreateTransferInstrumentComponent({
|
|
|
33266
33464
|
transferInstrument,
|
|
33267
33465
|
setTransferInstrument,
|
|
33268
33466
|
legalEntityResponse: legalEntity,
|
|
33467
|
+
associatedLegalArrangement,
|
|
33269
33468
|
handleGetBankVerificationVendors: (country2) => getBankVerificationVendor2(country2, openBankingPartnerConfigId),
|
|
33270
33469
|
handleGetDocument: getDocument2,
|
|
33271
33470
|
handleCreateDocument: createDocument2,
|
|
@@ -33281,7 +33480,6 @@ function CreateTransferInstrumentComponent({
|
|
|
33281
33480
|
taskType: TaskTypes.PAYOUT
|
|
33282
33481
|
});
|
|
33283
33482
|
}
|
|
33284
|
-
const ManageTransferInstrumentComponent$1 = "";
|
|
33285
33483
|
const DEFAULT_POLLING_INTERVAL = 3e3;
|
|
33286
33484
|
const DEFAULT_POLLING_INTERVAL_RETRY_COUNT = 3;
|
|
33287
33485
|
function useInterval(callback, initialDelay = DEFAULT_POLLING_INTERVAL) {
|
|
@@ -33338,9 +33536,6 @@ function AddTransferInstrument({
|
|
|
33338
33536
|
})]
|
|
33339
33537
|
});
|
|
33340
33538
|
}
|
|
33341
|
-
const ManageTransferInstrumentOverview$1 = "";
|
|
33342
|
-
const ManageTransferInstrumentOverviewItem$1 = "";
|
|
33343
|
-
const ManageTransferInstrumentOverviewItemSummary$1 = "";
|
|
33344
33539
|
function ManageTransferInstrumentOverviewItemSummary({
|
|
33345
33540
|
transferInstrument,
|
|
33346
33541
|
accountHolderName,
|
|
@@ -33351,7 +33546,7 @@ function ManageTransferInstrumentOverviewItemSummary({
|
|
|
33351
33546
|
i18n
|
|
33352
33547
|
} = useI18nContext();
|
|
33353
33548
|
const datasetUtils = datasetUtilities(i18n.locale);
|
|
33354
|
-
const problems = transferInstrument ? getCapabilityProblems(transferInstrument) : {};
|
|
33549
|
+
const problems = transferInstrument ? getCapabilityProblems(transferInstrument, transferInstrument.bankAccount.countryCode) : {};
|
|
33355
33550
|
const formatDataForSummary2 = (data) => {
|
|
33356
33551
|
var _a2, _b2;
|
|
33357
33552
|
const summaryData = cloneObject(data);
|
|
@@ -33587,7 +33782,6 @@ function ManageTransferInstrumentComponent({
|
|
|
33587
33782
|
children: render2()
|
|
33588
33783
|
});
|
|
33589
33784
|
}
|
|
33590
|
-
const OnboardingRedirectComponent$1 = "";
|
|
33591
33785
|
var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
|
|
33592
33786
|
OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
|
|
33593
33787
|
OnboardingStatus2["PROCESSING"] = "PROCESSING";
|
|
@@ -33620,10 +33814,16 @@ const contentMap = {
|
|
|
33620
33814
|
function getContentByStatus(status) {
|
|
33621
33815
|
return contentMap[status];
|
|
33622
33816
|
}
|
|
33817
|
+
var OnboardingUrlTarget = /* @__PURE__ */ ((OnboardingUrlTarget2) => {
|
|
33818
|
+
OnboardingUrlTarget2["BLANK"] = "_blank";
|
|
33819
|
+
OnboardingUrlTarget2["SELF"] = "_self";
|
|
33820
|
+
return OnboardingUrlTarget2;
|
|
33821
|
+
})(OnboardingUrlTarget || {});
|
|
33623
33822
|
const logger$5 = createLogger("OnboardingRedirectComponent");
|
|
33624
33823
|
function OnboardingRedirectComponent({
|
|
33625
33824
|
legalEntityId,
|
|
33626
|
-
|
|
33825
|
+
returnUrl,
|
|
33826
|
+
redirectTarget,
|
|
33627
33827
|
onStatusChange,
|
|
33628
33828
|
onError,
|
|
33629
33829
|
onRedirect,
|
|
@@ -33699,13 +33899,13 @@ function OnboardingRedirectComponent({
|
|
|
33699
33899
|
setLinkLoadingStatus("loading");
|
|
33700
33900
|
const config = {
|
|
33701
33901
|
locale: i18n.locale,
|
|
33702
|
-
|
|
33902
|
+
returnUrl
|
|
33703
33903
|
};
|
|
33704
33904
|
try {
|
|
33705
33905
|
const {
|
|
33706
|
-
|
|
33906
|
+
redirectUrl
|
|
33707
33907
|
} = await generateOnboardingLink2(config);
|
|
33708
|
-
|
|
33908
|
+
openUrl(redirectUrl, config);
|
|
33709
33909
|
} catch (error) {
|
|
33710
33910
|
handleError({
|
|
33711
33911
|
trKey: "onboardingRedirectLinkError",
|
|
@@ -33715,14 +33915,15 @@ function OnboardingRedirectComponent({
|
|
|
33715
33915
|
setLinkLoadingStatus("success");
|
|
33716
33916
|
}
|
|
33717
33917
|
};
|
|
33718
|
-
const
|
|
33719
|
-
const
|
|
33918
|
+
const openUrl = (url, config) => {
|
|
33919
|
+
const target = redirectTarget && Object.values(OnboardingUrlTarget).includes(redirectTarget) ? redirectTarget : OnboardingUrlTarget.BLANK;
|
|
33920
|
+
const newTab = window.open("", target);
|
|
33720
33921
|
if (newTab) {
|
|
33721
|
-
newTab.location.href =
|
|
33922
|
+
newTab.location.href = url;
|
|
33722
33923
|
if (typeof onRedirect === "function") {
|
|
33723
33924
|
onRedirect({
|
|
33724
33925
|
...config,
|
|
33725
|
-
|
|
33926
|
+
onboardingLink: url
|
|
33726
33927
|
});
|
|
33727
33928
|
}
|
|
33728
33929
|
} else {
|
|
@@ -34268,21 +34469,33 @@ const I18nProvider = ({
|
|
|
34268
34469
|
});
|
|
34269
34470
|
};
|
|
34270
34471
|
const settingsDefaults = {
|
|
34472
|
+
acceptedCountries: void 0,
|
|
34473
|
+
allowBankAccountFormatSelection: false,
|
|
34474
|
+
allowIntraRegionCrossBorderPayout: false,
|
|
34271
34475
|
changeLegalEntityType: true,
|
|
34272
34476
|
editPrefilledCountry: true,
|
|
34477
|
+
requirePciSignEcomMoto: false,
|
|
34478
|
+
requirePciSignEcommerce: false,
|
|
34479
|
+
requirePciSignPos: false,
|
|
34480
|
+
requirePciSignPosMoto: false,
|
|
34273
34481
|
hideOnboardingIntroductionIndividual: true,
|
|
34274
34482
|
hideOnboardingIntroductionOrganization: true,
|
|
34275
34483
|
hideOnboardingIntroductionTrust: true,
|
|
34276
34484
|
hideOnboardingIntroductionSoleProprietor: true,
|
|
34277
34485
|
viewOnboardingGuidance: false
|
|
34278
34486
|
};
|
|
34279
|
-
function
|
|
34487
|
+
function SettingsProvider({
|
|
34280
34488
|
children,
|
|
34281
34489
|
settings
|
|
34282
34490
|
}) {
|
|
34491
|
+
const mergedSettings = {
|
|
34492
|
+
...settingsDefaults,
|
|
34493
|
+
...settings
|
|
34494
|
+
};
|
|
34283
34495
|
const contextValue = useMemo(() => ({
|
|
34284
34496
|
// settings is being returned from the /onboardingLinks call, if a new setting is needed it should be added both in BE and in the SettingName type
|
|
34285
|
-
isSettingEnabled: (settingName) =>
|
|
34497
|
+
isSettingEnabled: (settingName) => mergedSettings[settingName],
|
|
34498
|
+
getSetting: (settingName) => mergedSettings[settingName]
|
|
34286
34499
|
}), [settings]);
|
|
34287
34500
|
return jsx(SettingsContext.Provider, {
|
|
34288
34501
|
value: contextValue,
|
|
@@ -34584,21 +34797,21 @@ class UIElement extends BaseElement {
|
|
|
34584
34797
|
this.render = () => {
|
|
34585
34798
|
var _a;
|
|
34586
34799
|
const Component = this.props.component;
|
|
34587
|
-
return jsx(
|
|
34588
|
-
|
|
34589
|
-
|
|
34590
|
-
|
|
34591
|
-
|
|
34592
|
-
|
|
34593
|
-
|
|
34594
|
-
children: jsx(
|
|
34595
|
-
|
|
34596
|
-
|
|
34597
|
-
|
|
34598
|
-
|
|
34599
|
-
|
|
34600
|
-
|
|
34601
|
-
|
|
34800
|
+
return jsx(SettingsProvider, {
|
|
34801
|
+
settings: this.props.settings,
|
|
34802
|
+
children: jsx(AuthProvider, {
|
|
34803
|
+
sdkToken: this.props.sdkToken,
|
|
34804
|
+
getSdkToken: this.props.getSdkToken,
|
|
34805
|
+
clientKey: this.props.clientKey,
|
|
34806
|
+
loadingContext: this.props.loadingContext,
|
|
34807
|
+
children: jsx(ConfigurationApiProvider, {
|
|
34808
|
+
rootLegalEntityId: getRootLegalEntityId(this.props.componentProps),
|
|
34809
|
+
children: jsx(CoreProvider, {
|
|
34810
|
+
contextCountry: this.props.contextCountry,
|
|
34811
|
+
enableNewEntryFlowExperiment: (_a = this.props.experiments) == null ? void 0 : _a.EnableNewEntryFlow,
|
|
34812
|
+
children: jsx(I18nProvider, {
|
|
34813
|
+
locale: this.props.locale,
|
|
34814
|
+
customTranslations: this.props.customTranslations,
|
|
34602
34815
|
children: jsx(ExperimentsContextProvider, {
|
|
34603
34816
|
experiments: this.props.experiments,
|
|
34604
34817
|
children: jsx("div", {
|
|
@@ -34666,6 +34879,28 @@ const trustPropSchema = {
|
|
|
34666
34879
|
}
|
|
34667
34880
|
}
|
|
34668
34881
|
};
|
|
34882
|
+
const soleProprietorPropSchema = {
|
|
34883
|
+
type: "object",
|
|
34884
|
+
propertiesSchema: {
|
|
34885
|
+
name: {
|
|
34886
|
+
type: "string",
|
|
34887
|
+
required: true
|
|
34888
|
+
},
|
|
34889
|
+
countryOfGoverningLaw: {
|
|
34890
|
+
type: "string",
|
|
34891
|
+
required: true
|
|
34892
|
+
},
|
|
34893
|
+
registeredAddress: {
|
|
34894
|
+
type: "object",
|
|
34895
|
+
propertiesSchema: {
|
|
34896
|
+
country: {
|
|
34897
|
+
type: "string",
|
|
34898
|
+
required: true
|
|
34899
|
+
}
|
|
34900
|
+
}
|
|
34901
|
+
}
|
|
34902
|
+
}
|
|
34903
|
+
};
|
|
34669
34904
|
const individualPropSchema = {
|
|
34670
34905
|
type: "object",
|
|
34671
34906
|
propertiesSchema: {
|
|
@@ -35074,6 +35309,28 @@ const payoutAccountSchema = {
|
|
|
35074
35309
|
individual: individualPropSchema,
|
|
35075
35310
|
organization: organizationPropSchema
|
|
35076
35311
|
}
|
|
35312
|
+
},
|
|
35313
|
+
associatedLegalArrangement: {
|
|
35314
|
+
type: "object",
|
|
35315
|
+
propertiesSchema: {
|
|
35316
|
+
id: {
|
|
35317
|
+
type: "string",
|
|
35318
|
+
required: true
|
|
35319
|
+
},
|
|
35320
|
+
type: {
|
|
35321
|
+
type: "string",
|
|
35322
|
+
exactValue: [LegalEntityType.SOLE_PROPRIETORSHIP, LegalEntityType.TRUST],
|
|
35323
|
+
required: true
|
|
35324
|
+
},
|
|
35325
|
+
documentDetails: {
|
|
35326
|
+
type: "array"
|
|
35327
|
+
},
|
|
35328
|
+
capabilities: {
|
|
35329
|
+
type: "object"
|
|
35330
|
+
},
|
|
35331
|
+
soleProprietorship: soleProprietorPropSchema,
|
|
35332
|
+
trust: trustPropSchema
|
|
35333
|
+
}
|
|
35077
35334
|
}
|
|
35078
35335
|
};
|
|
35079
35336
|
const taskListSchema = {
|
|
@@ -35234,6 +35491,9 @@ const onboardingRedirectComponentSchema = {
|
|
|
35234
35491
|
type: "string",
|
|
35235
35492
|
required: true
|
|
35236
35493
|
},
|
|
35494
|
+
redirectTarget: {
|
|
35495
|
+
type: "string"
|
|
35496
|
+
},
|
|
35237
35497
|
onStatusChange: {
|
|
35238
35498
|
type: "function"
|
|
35239
35499
|
},
|
|
@@ -35243,7 +35503,7 @@ const onboardingRedirectComponentSchema = {
|
|
|
35243
35503
|
onRedirect: {
|
|
35244
35504
|
type: "function"
|
|
35245
35505
|
},
|
|
35246
|
-
|
|
35506
|
+
returnUrl: {
|
|
35247
35507
|
type: "string"
|
|
35248
35508
|
}
|
|
35249
35509
|
};
|