@adyen/kyc-components 2.30.0 → 2.31.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 +1398 -1088
- 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/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/BusinessTypeSelection/types.d.ts +2 -2
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +3 -2
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +4 -0
- 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/TaskList/component/TaskListComponent.d.ts +1 -1
- package/dist/types/components/TaskList/types.d.ts +3 -0
- 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 +1 -1
- package/dist/types/core/models/api/remediating-action.d.ts +2 -1
- package/dist/types/core/models/api/verification-error.d.ts +2 -2
- 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 -0
- 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-ccf0ea48.mjs → NZ-DiGhP2MG.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
|
@@ -387,19 +387,27 @@ const failedToUpdateDetails = "Failed to update details";
|
|
|
387
387
|
const successfullyVerifiedIdNumber = "Successfully verified %{idNumber}";
|
|
388
388
|
const failedFetchingDecisionMaker = "Failed to get decision maker details";
|
|
389
389
|
const fileUpload = "File upload";
|
|
390
|
-
const
|
|
391
|
-
const
|
|
390
|
+
const documentRequirements = "Document requirements";
|
|
391
|
+
const bankAccountNameIndividual = "Bank account must be in your name (<strong>%{individualLegalName}</strong>)";
|
|
392
|
+
const bankAccountNameOrganization = "Bank account must be in your company's name (<strong>%{companyLegalName}</strong>)";
|
|
393
|
+
const bankAccountNameWithSoleProprietor = "Bank account must be in your name (<strong>%{individualLegalName}</strong>) or sole proprietorship's name (<strong>%{soleProprietorshipName}</strong>)";
|
|
394
|
+
const bankAccountNameWithTrust = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} trading as %{trustTradingName}</strong>)";
|
|
395
|
+
const bankAccountNameWithTrust_US = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} doing business as %{trustTradingName}</strong>)";
|
|
396
|
+
const bankDocument = "Bank document";
|
|
397
|
+
const bankDocumentHeader = "Upload a bank document";
|
|
398
|
+
const bankDocumentHeaderOptional = "Upload a bank document (optional)";
|
|
399
|
+
const bankDocumentDescription = "We need an official document to verify your bank account details.";
|
|
400
|
+
const bankDocumentFileDescription = "Add a description for this bank account (optional)";
|
|
401
|
+
const accountNumberOrIbanVisible = "Includes your account number or IBAN";
|
|
402
|
+
const accountNumberVisible = "Includes your account number";
|
|
403
|
+
const routingNumberVisible = "Includes your routing number";
|
|
404
|
+
const showsCountryOfBankAccount = "Includes the country/region of the bank account";
|
|
405
|
+
const hasBankStampOrBankSignature = "Includes a bank stamp or signature";
|
|
406
|
+
const hasToBeOfficialDocumentFromBank = "Includes the bank logo, bank name, or bank-specific font";
|
|
407
|
+
const issuedInTheLastXMonths = "Issued in the last %{number} months";
|
|
392
408
|
const bankAccountVerification = "Bank account verification";
|
|
393
409
|
const bankStatementDocument = "Bank statement";
|
|
394
|
-
const bankStatementDocumentTypeLabel = "Upload a document to confirm your bank account information. We need to see this document so we can set up your payouts.";
|
|
395
410
|
const requirements = "Requirements:";
|
|
396
|
-
const accountHolderNameMatchesWithBusinessOrTradingName = "Account holder name on the document has to match the legal business or trading name of your company";
|
|
397
|
-
const accountNumberOrIbanVisible = "Visible account number or IBAN";
|
|
398
|
-
const accountNumberVisible = "The account number needs to be visible";
|
|
399
|
-
const routingNumberVisible = "The routing number should be visible";
|
|
400
|
-
const showsCountryOfBankAccount = "Shows the country where the bank account is located (for banks in the EU, the country is included in the IBAN)";
|
|
401
|
-
const hasToBeOfficialDocumentFromBank = "Must be an official bank document that shows the bank logo, the bank name, or a bank-specific font";
|
|
402
|
-
const hasBankStampOrBankSignature = "Must have a bank stamp or bank signature";
|
|
403
411
|
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.";
|
|
404
412
|
const whyDoINeedToFillInThisInformation = "Why do I need to fill in this information?";
|
|
405
413
|
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.";
|
|
@@ -415,11 +423,10 @@ const signatoryGuideDescription = "A <strong>signatory</strong> has been given a
|
|
|
415
423
|
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.";
|
|
416
424
|
const someoneAppointedToManageACompanysBusinessAndAffairs = "Someone appointed to manage a company's business and affairs.";
|
|
417
425
|
const whatIfDocumentIsMoreThan12MonthsOld = "What if my document is more than 12 months old?";
|
|
418
|
-
const
|
|
419
|
-
const depositTicket = "Deposit ticket / deposit form";
|
|
426
|
+
const depositSlip = "Deposit slip";
|
|
420
427
|
const screenshotOfOnlineBankingEnviroment = "Screenshot of online banking environment";
|
|
421
428
|
const officialEmailOrALetterFromYourBank = "Official email or a letter from your bank";
|
|
422
|
-
const
|
|
429
|
+
const check = "Check";
|
|
423
430
|
const releveDidentiteBancaire = "Relevé d'Identité Bancaire (RIB)";
|
|
424
431
|
const successFullyRemovedDecisionMaker = "Successfully removed a decision maker";
|
|
425
432
|
const failedToRemoveDecisionMaker = "Failed to remove a decision maker";
|
|
@@ -1023,6 +1030,7 @@ const errorMessage_1_5050 = "The affiliation document was not official.";
|
|
|
1023
1030
|
const errorMessage_1_5051 = "Signing person on the affiliation document could not be verified";
|
|
1024
1031
|
const errorMessage_1_5052 = "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.";
|
|
1025
1032
|
const errorMessage_1_5053 = "The affiliation document was not issued within the last 6 months";
|
|
1033
|
+
const errorMessage_1_5067 = "The legal name didn't match the one on the VAT registry.";
|
|
1026
1034
|
const errorMessage_1_6000 = "The legal name couldn't be verified.";
|
|
1027
1035
|
const errorMessage_1_6001 = "The legal name didn't match the registration number.";
|
|
1028
1036
|
const errorMessage_1_6002 = "The registration number couldn't be verified.";
|
|
@@ -1097,6 +1105,8 @@ const errorMessage_1_7021 = "The bank document didn't show an official bank logo
|
|
|
1097
1105
|
const errorMessage_1_7022 = "The bank document didn't show an official bank stamp.";
|
|
1098
1106
|
const errorMessage_2_8064 = "UBO through ownership was missing.";
|
|
1099
1107
|
const errorMessage_2_8067 = "Signatory was missing.";
|
|
1108
|
+
const errorMessage_2_8141 = "Registration document was missing.";
|
|
1109
|
+
const errorMessage_2_8162 = "proofOfOrganizationTaxInfo was missing.";
|
|
1100
1110
|
const errorMessage_2_8189 = "UBO through control was missing.";
|
|
1101
1111
|
const errorMessage_2_8193 = "Director was missing.";
|
|
1102
1112
|
const errorMessage_3_10 = "Review of data is required";
|
|
@@ -1127,6 +1137,8 @@ const remediationMessage_1_508 = "Upload a proof of ownership";
|
|
|
1127
1137
|
const remediationMessage_1_509 = "Upload a different affiliation document";
|
|
1128
1138
|
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";
|
|
1129
1139
|
const remediationMessage_1_511 = "Upload a document that proves the payout entity is 100% affiliated with the legal entity";
|
|
1140
|
+
const remediationMessage_1_512 = "Upload a VAT document";
|
|
1141
|
+
const remediationMessage_1_513 = "Upload a different VAT document";
|
|
1130
1142
|
const remediationMessage_1_600 = "Update legal entity details";
|
|
1131
1143
|
const remediationMessage_1_601 = "Upload a constitutional document";
|
|
1132
1144
|
const remediationMessage_1_602 = "Upload a different constitutional document";
|
|
@@ -1598,19 +1610,27 @@ const defaultTrans = {
|
|
|
1598
1610
|
successfullyVerifiedIdNumber,
|
|
1599
1611
|
failedFetchingDecisionMaker,
|
|
1600
1612
|
fileUpload,
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1613
|
+
documentRequirements,
|
|
1614
|
+
bankAccountNameIndividual,
|
|
1615
|
+
bankAccountNameOrganization,
|
|
1616
|
+
bankAccountNameWithSoleProprietor,
|
|
1617
|
+
bankAccountNameWithTrust,
|
|
1618
|
+
bankAccountNameWithTrust_US,
|
|
1619
|
+
bankDocument,
|
|
1620
|
+
bankDocumentHeader,
|
|
1621
|
+
bankDocumentHeaderOptional,
|
|
1622
|
+
bankDocumentDescription,
|
|
1623
|
+
bankDocumentFileDescription,
|
|
1608
1624
|
accountNumberOrIbanVisible,
|
|
1609
1625
|
accountNumberVisible,
|
|
1610
1626
|
routingNumberVisible,
|
|
1611
1627
|
showsCountryOfBankAccount,
|
|
1612
|
-
hasToBeOfficialDocumentFromBank,
|
|
1613
1628
|
hasBankStampOrBankSignature,
|
|
1629
|
+
hasToBeOfficialDocumentFromBank,
|
|
1630
|
+
issuedInTheLastXMonths,
|
|
1631
|
+
bankAccountVerification,
|
|
1632
|
+
bankStatementDocument,
|
|
1633
|
+
requirements,
|
|
1614
1634
|
ifDocumentMoreThan12months,
|
|
1615
1635
|
whyDoINeedToFillInThisInformation,
|
|
1616
1636
|
reasonForFillingCompanyRegistrationDetails,
|
|
@@ -1626,11 +1646,10 @@ const defaultTrans = {
|
|
|
1626
1646
|
directorGuideDescription,
|
|
1627
1647
|
someoneAppointedToManageACompanysBusinessAndAffairs,
|
|
1628
1648
|
whatIfDocumentIsMoreThan12MonthsOld,
|
|
1629
|
-
|
|
1630
|
-
depositTicket,
|
|
1649
|
+
depositSlip,
|
|
1631
1650
|
screenshotOfOnlineBankingEnviroment,
|
|
1632
1651
|
officialEmailOrALetterFromYourBank,
|
|
1633
|
-
|
|
1652
|
+
check,
|
|
1634
1653
|
releveDidentiteBancaire,
|
|
1635
1654
|
successFullyRemovedDecisionMaker,
|
|
1636
1655
|
failedToRemoveDecisionMaker,
|
|
@@ -2242,6 +2261,7 @@ const defaultTrans = {
|
|
|
2242
2261
|
errorMessage_1_5051,
|
|
2243
2262
|
errorMessage_1_5052,
|
|
2244
2263
|
errorMessage_1_5053,
|
|
2264
|
+
errorMessage_1_5067,
|
|
2245
2265
|
errorMessage_1_6000,
|
|
2246
2266
|
errorMessage_1_6001,
|
|
2247
2267
|
errorMessage_1_6002,
|
|
@@ -2316,6 +2336,8 @@ const defaultTrans = {
|
|
|
2316
2336
|
errorMessage_1_7022,
|
|
2317
2337
|
errorMessage_2_8064,
|
|
2318
2338
|
errorMessage_2_8067,
|
|
2339
|
+
errorMessage_2_8141,
|
|
2340
|
+
errorMessage_2_8162,
|
|
2319
2341
|
errorMessage_2_8189,
|
|
2320
2342
|
errorMessage_2_8193,
|
|
2321
2343
|
errorMessage_3_10,
|
|
@@ -2346,6 +2368,8 @@ const defaultTrans = {
|
|
|
2346
2368
|
remediationMessage_1_509,
|
|
2347
2369
|
remediationMessage_1_510,
|
|
2348
2370
|
remediationMessage_1_511,
|
|
2371
|
+
remediationMessage_1_512,
|
|
2372
|
+
remediationMessage_1_513,
|
|
2349
2373
|
remediationMessage_1_600,
|
|
2350
2374
|
remediationMessage_1_601,
|
|
2351
2375
|
remediationMessage_1_602,
|
|
@@ -2616,9 +2640,7 @@ const defaultI18n = {
|
|
|
2616
2640
|
};
|
|
2617
2641
|
const I18nContext = createContext(defaultI18n);
|
|
2618
2642
|
const useI18nContext = () => useContext(I18nContext);
|
|
2619
|
-
const SettingsContext = createContext(
|
|
2620
|
-
isSettingEnabled: () => false
|
|
2621
|
-
});
|
|
2643
|
+
const SettingsContext = createContext(void 0);
|
|
2622
2644
|
function useSettingsContext() {
|
|
2623
2645
|
const context = useContext(SettingsContext);
|
|
2624
2646
|
if (context === void 0) {
|
|
@@ -2666,6 +2688,7 @@ function useExperimentsContext() {
|
|
|
2666
2688
|
return context;
|
|
2667
2689
|
}
|
|
2668
2690
|
var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
|
|
2691
|
+
SettingNames2["AcceptedCountries"] = "acceptedCountries";
|
|
2669
2692
|
SettingNames2["AllowBankAccountFormatSelection"] = "allowBankAccountFormatSelection";
|
|
2670
2693
|
SettingNames2["AllowIntraRegionCrossBorderPayout"] = "allowIntraRegionCrossBorderPayout";
|
|
2671
2694
|
SettingNames2["AllowLegalEntityTypeChange"] = "changeLegalEntityType";
|
|
@@ -2690,7 +2713,6 @@ const useEnableNewEntryFlow = () => {
|
|
|
2690
2713
|
} = useExperimentsContext();
|
|
2691
2714
|
return isSettingEnabled(SettingNames.AllowLegalEntityTypeChange) && isExperimentEnabled("EnableNewEntryFlow");
|
|
2692
2715
|
};
|
|
2693
|
-
const Summary$1 = "";
|
|
2694
2716
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
2695
2717
|
a[c] = obj[c];
|
|
2696
2718
|
return a;
|
|
@@ -2875,9 +2897,6 @@ const exactLength = (input, length) => {
|
|
|
2875
2897
|
return input.length === length;
|
|
2876
2898
|
};
|
|
2877
2899
|
const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
|
|
2878
|
-
const _button_component = "";
|
|
2879
|
-
const _link_component = "";
|
|
2880
|
-
const Icon$1 = "";
|
|
2881
2900
|
let suppressed = false;
|
|
2882
2901
|
const consoleMethodsPrefixable = Object.freeze(["debug", "info", "log", "warn", "error", "trace"]);
|
|
2883
2902
|
const stringSubstitutionRegex = /%([soOc]|(\.\d)?[dif])/;
|
|
@@ -2899,43 +2918,43 @@ const createLogger = (namespace) => {
|
|
|
2899
2918
|
return methods;
|
|
2900
2919
|
};
|
|
2901
2920
|
const icons = {
|
|
2902
|
-
"arrow-left": lazy(() => import("./arrow-left-
|
|
2903
|
-
"arrow-right": lazy(() => import("./arrow-right-
|
|
2904
|
-
bin: lazy(() => import("./bin-
|
|
2905
|
-
check: lazy(() => import("./check-
|
|
2906
|
-
checkmark: lazy(() => import("./checkmark-
|
|
2907
|
-
"checkmark-small": lazy(() => import("./checkmark-small-
|
|
2908
|
-
"chevron-down": lazy(() => import("./chevron-down-
|
|
2909
|
-
"chevron-right": lazy(() => import("./chevron-right-
|
|
2910
|
-
"chevron-up": lazy(() => import("./chevron-up-
|
|
2911
|
-
company: lazy(() => import("./company-
|
|
2912
|
-
contract: lazy(() => import("./contract-
|
|
2913
|
-
"controlling-person": lazy(() => import("./controlling-person-
|
|
2914
|
-
cross: lazy(() => import("./cross-
|
|
2915
|
-
"decision-maker": lazy(() => import("./decision-maker-
|
|
2916
|
-
document: lazy(() => import("./document-
|
|
2917
|
-
download: lazy(() => import("./download-
|
|
2918
|
-
edit: lazy(() => import("./edit
|
|
2919
|
-
"field-error": lazy(() => import("./field-error-
|
|
2920
|
-
"info-circle": lazy(() => import("./info-circle-
|
|
2921
|
-
"light-bulb": lazy(() => import("./light-bulb-
|
|
2922
|
-
location: lazy(() => import("./location-
|
|
2923
|
-
"more-horiz": lazy(() => import("./more-horiz-
|
|
2924
|
-
"new-document": lazy(() => import("./new-document-
|
|
2925
|
-
owners: lazy(() => import("./owners-
|
|
2926
|
-
payout: lazy(() => import("./payout-
|
|
2927
|
-
pci: lazy(() => import("./pci-
|
|
2928
|
-
plus: lazy(() => import("./plus-
|
|
2929
|
-
remove: lazy(() => import("./remove-
|
|
2930
|
-
review: lazy(() => import("./review-
|
|
2931
|
-
search: lazy(() => import("./search-
|
|
2932
|
-
signatory: lazy(() => import("./signatory-
|
|
2933
|
-
store: lazy(() => import("./store-
|
|
2934
|
-
trust: lazy(() => import("./trust-
|
|
2935
|
-
warning: lazy(() => import("./warning-
|
|
2936
|
-
wrong: lazy(() => import("./wrong-
|
|
2937
|
-
};
|
|
2938
|
-
const logger$
|
|
2921
|
+
"arrow-left": lazy(() => import("./arrow-left-CCxYxfCP.mjs")),
|
|
2922
|
+
"arrow-right": lazy(() => import("./arrow-right-DF4Qe-8E.mjs")),
|
|
2923
|
+
bin: lazy(() => import("./bin-CGwewvcn.mjs")),
|
|
2924
|
+
check: lazy(() => import("./check-CeSLN4_9.mjs")),
|
|
2925
|
+
checkmark: lazy(() => import("./checkmark-DEh9MPYR.mjs")),
|
|
2926
|
+
"checkmark-small": lazy(() => import("./checkmark-small-D_9HLctx.mjs")),
|
|
2927
|
+
"chevron-down": lazy(() => import("./chevron-down-BzENwYSf.mjs")),
|
|
2928
|
+
"chevron-right": lazy(() => import("./chevron-right-DczMHcvL.mjs")),
|
|
2929
|
+
"chevron-up": lazy(() => import("./chevron-up-BLtnROd5.mjs")),
|
|
2930
|
+
company: lazy(() => import("./company-D5_F_6SW.mjs")),
|
|
2931
|
+
contract: lazy(() => import("./contract-C6wDy9zU.mjs")),
|
|
2932
|
+
"controlling-person": lazy(() => import("./controlling-person-C4KoSyi2.mjs")),
|
|
2933
|
+
cross: lazy(() => import("./cross-BadGfrgB.mjs")),
|
|
2934
|
+
"decision-maker": lazy(() => import("./decision-maker-Cef3-OzY.mjs")),
|
|
2935
|
+
document: lazy(() => import("./document-Cg4kZHpA.mjs")),
|
|
2936
|
+
download: lazy(() => import("./download-DGC5_Bxe.mjs")),
|
|
2937
|
+
edit: lazy(() => import("./edit--fDhojib.mjs")),
|
|
2938
|
+
"field-error": lazy(() => import("./field-error-WElEN1mN.mjs")),
|
|
2939
|
+
"info-circle": lazy(() => import("./info-circle-DkHN1ugA.mjs")),
|
|
2940
|
+
"light-bulb": lazy(() => import("./light-bulb-DEUhbRWP.mjs")),
|
|
2941
|
+
location: lazy(() => import("./location-B1Til-7Q.mjs")),
|
|
2942
|
+
"more-horiz": lazy(() => import("./more-horiz-BieZKfy3.mjs")),
|
|
2943
|
+
"new-document": lazy(() => import("./new-document-BEAJnXCG.mjs")),
|
|
2944
|
+
owners: lazy(() => import("./owners-D1pksb86.mjs")),
|
|
2945
|
+
payout: lazy(() => import("./payout-BFiI--HY.mjs")),
|
|
2946
|
+
pci: lazy(() => import("./pci-DMQLRoAn.mjs")),
|
|
2947
|
+
plus: lazy(() => import("./plus-DAnbeoyS.mjs")),
|
|
2948
|
+
remove: lazy(() => import("./remove-CEmd9YX7.mjs")),
|
|
2949
|
+
review: lazy(() => import("./review-CeQeKHXH.mjs")),
|
|
2950
|
+
search: lazy(() => import("./search-hf3HRVbu.mjs")),
|
|
2951
|
+
signatory: lazy(() => import("./signatory-BVoLPYPu.mjs")),
|
|
2952
|
+
store: lazy(() => import("./store-D2z639xh.mjs")),
|
|
2953
|
+
trust: lazy(() => import("./trust-CpcaQaV7.mjs")),
|
|
2954
|
+
warning: lazy(() => import("./warning-99uFf1WU.mjs")),
|
|
2955
|
+
wrong: lazy(() => import("./wrong-1wvh7nZe.mjs"))
|
|
2956
|
+
};
|
|
2957
|
+
const logger$v = createLogger("Icon");
|
|
2939
2958
|
const Icon = ({
|
|
2940
2959
|
className,
|
|
2941
2960
|
name,
|
|
@@ -2943,7 +2962,7 @@ const Icon = ({
|
|
|
2943
2962
|
}) => {
|
|
2944
2963
|
const LazyLoadedIcon = icons[name];
|
|
2945
2964
|
if (!LazyLoadedIcon) {
|
|
2946
|
-
logger$
|
|
2965
|
+
logger$v.error(`No such icon: "${name}"`);
|
|
2947
2966
|
return null;
|
|
2948
2967
|
}
|
|
2949
2968
|
return jsx("span", {
|
|
@@ -2957,7 +2976,6 @@ const Icon = ({
|
|
|
2957
2976
|
})
|
|
2958
2977
|
});
|
|
2959
2978
|
};
|
|
2960
|
-
const Spinner$1 = "";
|
|
2961
2979
|
const Spinner = ({
|
|
2962
2980
|
inline = false,
|
|
2963
2981
|
size = "large"
|
|
@@ -3054,8 +3072,6 @@ const Button = ({
|
|
|
3054
3072
|
children: buttonText
|
|
3055
3073
|
});
|
|
3056
3074
|
};
|
|
3057
|
-
const ErrorPanel$1 = "";
|
|
3058
|
-
const _alert = "";
|
|
3059
3075
|
var AlertTypes = /* @__PURE__ */ ((AlertTypes2) => {
|
|
3060
3076
|
AlertTypes2[AlertTypes2["BASIC"] = 0] = "BASIC";
|
|
3061
3077
|
AlertTypes2[AlertTypes2["INFO"] = 1] = "INFO";
|
|
@@ -3150,7 +3166,7 @@ function useFormRouterContext() {
|
|
|
3150
3166
|
}
|
|
3151
3167
|
return context;
|
|
3152
3168
|
}
|
|
3153
|
-
const logger$
|
|
3169
|
+
const logger$u = createLogger("Link");
|
|
3154
3170
|
const getIconClass = (icon, external) => {
|
|
3155
3171
|
if (external) {
|
|
3156
3172
|
return "adl-link__icon adyen-kyc-icon-external-link";
|
|
@@ -3162,7 +3178,7 @@ const getIconClass = (icon, external) => {
|
|
|
3162
3178
|
};
|
|
3163
3179
|
const isValidLink = (href) => {
|
|
3164
3180
|
if (href === "#") {
|
|
3165
|
-
logger$
|
|
3181
|
+
logger$u.error('Links must include a valid href. If your href is "#", consider using a Button instead');
|
|
3166
3182
|
return false;
|
|
3167
3183
|
}
|
|
3168
3184
|
return true;
|
|
@@ -3263,7 +3279,6 @@ function ServerValidationErrors({
|
|
|
3263
3279
|
})
|
|
3264
3280
|
});
|
|
3265
3281
|
}
|
|
3266
|
-
const CompanyComponent$1 = "";
|
|
3267
3282
|
function StateContextWatcher({
|
|
3268
3283
|
onChange
|
|
3269
3284
|
}) {
|
|
@@ -3441,15 +3456,28 @@ function useResetGlobalData(caller) {
|
|
|
3441
3456
|
}
|
|
3442
3457
|
}), [dispatch, caller]);
|
|
3443
3458
|
}
|
|
3444
|
-
const
|
|
3459
|
+
const useSetting = (settingName) => {
|
|
3460
|
+
const context = useContext(SettingsContext);
|
|
3461
|
+
if (context === void 0) {
|
|
3462
|
+
throw new Error("useSetting must be used within a SettingsProvider");
|
|
3463
|
+
}
|
|
3464
|
+
const {
|
|
3465
|
+
getSetting
|
|
3466
|
+
} = context;
|
|
3467
|
+
return getSetting(settingName);
|
|
3468
|
+
};
|
|
3469
|
+
const logger$t = createLogger("useAllowedCountries");
|
|
3445
3470
|
const useAllowedCountries = () => {
|
|
3471
|
+
const acceptedCountries = useSetting("acceptedCountries");
|
|
3446
3472
|
const {
|
|
3447
3473
|
getAllowedCountries: getAllowedCountries2
|
|
3448
3474
|
} = useConfigurationApi();
|
|
3449
|
-
const [allowedCountries, setAllowedCountries] = useState();
|
|
3475
|
+
const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
|
|
3450
3476
|
useEffect(() => {
|
|
3451
|
-
|
|
3452
|
-
|
|
3477
|
+
if (acceptedCountries !== void 0)
|
|
3478
|
+
return;
|
|
3479
|
+
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$t.error);
|
|
3480
|
+
}, [acceptedCountries]);
|
|
3453
3481
|
return allowedCountries;
|
|
3454
3482
|
};
|
|
3455
3483
|
const processField = ({
|
|
@@ -3787,7 +3815,7 @@ class ValidationResult {
|
|
|
3787
3815
|
return this.validationResults.filter((result) => result.hasError);
|
|
3788
3816
|
}
|
|
3789
3817
|
}
|
|
3790
|
-
const logger$
|
|
3818
|
+
const logger$s = createLogger("useAsyncValidator");
|
|
3791
3819
|
const useAsyncValidator = (asyncRules) => {
|
|
3792
3820
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
3793
3821
|
const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
|
|
@@ -3810,7 +3838,7 @@ const useAsyncValidator = (asyncRules) => {
|
|
|
3810
3838
|
hasError: !isValid
|
|
3811
3839
|
}])
|
|
3812
3840
|
});
|
|
3813
|
-
}).catch(logger$
|
|
3841
|
+
}).catch(logger$s.error);
|
|
3814
3842
|
}, [asyncRules, clearAsyncValidationResults]);
|
|
3815
3843
|
return {
|
|
3816
3844
|
asyncValidationResults,
|
|
@@ -4068,7 +4096,6 @@ function datasetUtilities(locale) {
|
|
|
4068
4096
|
getDatasetKey: (identifier) => createDatasetKey(identifier, locale)
|
|
4069
4097
|
};
|
|
4070
4098
|
}
|
|
4071
|
-
const Field$1 = "";
|
|
4072
4099
|
const useStateFromProp = ({
|
|
4073
4100
|
initialValue,
|
|
4074
4101
|
passedValue,
|
|
@@ -4210,7 +4237,6 @@ const Field = ({
|
|
|
4210
4237
|
})
|
|
4211
4238
|
});
|
|
4212
4239
|
};
|
|
4213
|
-
const Select$1 = "";
|
|
4214
4240
|
const getScrollParent = (node) => {
|
|
4215
4241
|
if (!node)
|
|
4216
4242
|
return null;
|
|
@@ -4227,7 +4253,6 @@ function uuidv4() {
|
|
|
4227
4253
|
return v.toString(16);
|
|
4228
4254
|
});
|
|
4229
4255
|
}
|
|
4230
|
-
const _loader = "";
|
|
4231
4256
|
const Loader = ({
|
|
4232
4257
|
inline = false,
|
|
4233
4258
|
size = "large",
|
|
@@ -4240,7 +4265,6 @@ const Loader = ({
|
|
|
4240
4265
|
})
|
|
4241
4266
|
})
|
|
4242
4267
|
});
|
|
4243
|
-
const _tag_component = "";
|
|
4244
4268
|
const Tag = ({
|
|
4245
4269
|
className,
|
|
4246
4270
|
isBasic = false,
|
|
@@ -4836,7 +4860,6 @@ const SelectButtonContentMulti = ({
|
|
|
4836
4860
|
className: "adyen-kyc-dropdown-button__text adyen-kyc-dropdown-button__text--placeholder",
|
|
4837
4861
|
children: placeholder
|
|
4838
4862
|
});
|
|
4839
|
-
const Checkbox$1 = "";
|
|
4840
4863
|
function Checkbox({
|
|
4841
4864
|
classNameModifiers = [],
|
|
4842
4865
|
label,
|
|
@@ -5225,7 +5248,6 @@ const Select = ({
|
|
|
5225
5248
|
})]
|
|
5226
5249
|
});
|
|
5227
5250
|
};
|
|
5228
|
-
const Flag$1 = "";
|
|
5229
5251
|
const isIntersectionObserverSupported = typeof IntersectionObserver === "function";
|
|
5230
5252
|
function useIsElementVisible(ref, fallback = true) {
|
|
5231
5253
|
const [isOnScreen, setIsOnScreen] = useState(isIntersectionObserverSupported ? false : fallback);
|
|
@@ -5247,264 +5269,264 @@ function useIsElementVisible(ref, fallback = true) {
|
|
|
5247
5269
|
}, [ref]);
|
|
5248
5270
|
return isOnScreen;
|
|
5249
5271
|
}
|
|
5250
|
-
const logger$
|
|
5272
|
+
const logger$r = createLogger("Flag");
|
|
5251
5273
|
const flagImports = /* @__PURE__ */ Object.assign({
|
|
5252
|
-
"../../../../assets/flags/ad.svg": () => import("./ad-
|
|
5253
|
-
"../../../../assets/flags/ae.svg": () => import("./ae-
|
|
5254
|
-
"../../../../assets/flags/af.svg": () => import("./af-
|
|
5255
|
-
"../../../../assets/flags/ag.svg": () => import("./ag-
|
|
5256
|
-
"../../../../assets/flags/ai.svg": () => import("./ai-
|
|
5257
|
-
"../../../../assets/flags/al.svg": () => import("./al-
|
|
5258
|
-
"../../../../assets/flags/am.svg": () => import("./am-
|
|
5259
|
-
"../../../../assets/flags/an.svg": () => import("./an-
|
|
5260
|
-
"../../../../assets/flags/ao.svg": () => import("./ao-
|
|
5261
|
-
"../../../../assets/flags/aq.svg": () => import("./aq-
|
|
5262
|
-
"../../../../assets/flags/ar.svg": () => import("./ar-
|
|
5263
|
-
"../../../../assets/flags/as.svg": () => import("./as-
|
|
5264
|
-
"../../../../assets/flags/at.svg": () => import("./at-
|
|
5265
|
-
"../../../../assets/flags/au.svg": () => import("./au-
|
|
5266
|
-
"../../../../assets/flags/aw.svg": () => import("./aw-
|
|
5267
|
-
"../../../../assets/flags/ax.svg": () => import("./ax-
|
|
5268
|
-
"../../../../assets/flags/az.svg": () => import("./az-
|
|
5269
|
-
"../../../../assets/flags/ba.svg": () => import("./ba-
|
|
5270
|
-
"../../../../assets/flags/bb.svg": () => import("./bb-
|
|
5271
|
-
"../../../../assets/flags/bd.svg": () => import("./bd-
|
|
5272
|
-
"../../../../assets/flags/be.svg": () => import("./be-
|
|
5273
|
-
"../../../../assets/flags/bf.svg": () => import("./bf-
|
|
5274
|
-
"../../../../assets/flags/bg.svg": () => import("./bg-
|
|
5275
|
-
"../../../../assets/flags/bh.svg": () => import("./bh-
|
|
5276
|
-
"../../../../assets/flags/bi.svg": () => import("./bi-
|
|
5277
|
-
"../../../../assets/flags/bj.svg": () => import("./bj-
|
|
5278
|
-
"../../../../assets/flags/bl.svg": () => import("./bl-
|
|
5279
|
-
"../../../../assets/flags/bm.svg": () => import("./bm-
|
|
5280
|
-
"../../../../assets/flags/bn.svg": () => import("./bn-
|
|
5281
|
-
"../../../../assets/flags/bo.svg": () => import("./bo-
|
|
5282
|
-
"../../../../assets/flags/br.svg": () => import("./br-
|
|
5283
|
-
"../../../../assets/flags/bs.svg": () => import("./bs-
|
|
5284
|
-
"../../../../assets/flags/bt.svg": () => import("./bt-
|
|
5285
|
-
"../../../../assets/flags/bv.svg": () => import("./bv-
|
|
5286
|
-
"../../../../assets/flags/bw.svg": () => import("./bw-
|
|
5287
|
-
"../../../../assets/flags/by.svg": () => import("./by-
|
|
5288
|
-
"../../../../assets/flags/bz.svg": () => import("./bz-
|
|
5289
|
-
"../../../../assets/flags/ca.svg": () => import("./ca-
|
|
5290
|
-
"../../../../assets/flags/cc.svg": () => import("./cc-
|
|
5291
|
-
"../../../../assets/flags/cd.svg": () => import("./cd-
|
|
5292
|
-
"../../../../assets/flags/cf.svg": () => import("./cf-
|
|
5293
|
-
"../../../../assets/flags/cg.svg": () => import("./cg-
|
|
5294
|
-
"../../../../assets/flags/ch.svg": () => import("./ch-
|
|
5295
|
-
"../../../../assets/flags/ci.svg": () => import("./ci-
|
|
5296
|
-
"../../../../assets/flags/ck.svg": () => import("./ck-
|
|
5297
|
-
"../../../../assets/flags/cl.svg": () => import("./cl-
|
|
5298
|
-
"../../../../assets/flags/cm.svg": () => import("./cm-
|
|
5299
|
-
"../../../../assets/flags/cn.svg": () => import("./cn-
|
|
5300
|
-
"../../../../assets/flags/co.svg": () => import("./co-
|
|
5301
|
-
"../../../../assets/flags/cr.svg": () => import("./cr-
|
|
5302
|
-
"../../../../assets/flags/cu.svg": () => import("./cu-
|
|
5303
|
-
"../../../../assets/flags/cv.svg": () => import("./cv-
|
|
5304
|
-
"../../../../assets/flags/cw.svg": () => import("./cw-
|
|
5305
|
-
"../../../../assets/flags/cx.svg": () => import("./cx-
|
|
5306
|
-
"../../../../assets/flags/cy.svg": () => import("./cy-
|
|
5307
|
-
"../../../../assets/flags/cz.svg": () => import("./cz-
|
|
5308
|
-
"../../../../assets/flags/de.svg": () => import("./de-
|
|
5309
|
-
"../../../../assets/flags/dj.svg": () => import("./dj-
|
|
5310
|
-
"../../../../assets/flags/dk.svg": () => import("./dk-
|
|
5311
|
-
"../../../../assets/flags/dm.svg": () => import("./dm-
|
|
5312
|
-
"../../../../assets/flags/do.svg": () => import("./do-
|
|
5313
|
-
"../../../../assets/flags/dz.svg": () => import("./dz-
|
|
5314
|
-
"../../../../assets/flags/ec.svg": () => import("./ec-
|
|
5315
|
-
"../../../../assets/flags/ee.svg": () => import("./ee-
|
|
5316
|
-
"../../../../assets/flags/eg.svg": () => import("./eg-
|
|
5317
|
-
"../../../../assets/flags/eh.svg": () => import("./eh-
|
|
5318
|
-
"../../../../assets/flags/er.svg": () => import("./er-
|
|
5319
|
-
"../../../../assets/flags/es.svg": () => import("./es-
|
|
5320
|
-
"../../../../assets/flags/et.svg": () => import("./et-
|
|
5321
|
-
"../../../../assets/flags/fi.svg": () => import("./fi-
|
|
5322
|
-
"../../../../assets/flags/fj.svg": () => import("./fj-
|
|
5323
|
-
"../../../../assets/flags/fk.svg": () => import("./fk-
|
|
5324
|
-
"../../../../assets/flags/fm.svg": () => import("./fm-
|
|
5325
|
-
"../../../../assets/flags/fo.svg": () => import("./fo-
|
|
5326
|
-
"../../../../assets/flags/fr.svg": () => import("./fr-
|
|
5327
|
-
"../../../../assets/flags/fx.svg": () => import("./fx-
|
|
5328
|
-
"../../../../assets/flags/ga.svg": () => import("./ga-
|
|
5329
|
-
"../../../../assets/flags/gb.svg": () => import("./gb-
|
|
5330
|
-
"../../../../assets/flags/gd.svg": () => import("./gd-
|
|
5331
|
-
"../../../../assets/flags/ge.svg": () => import("./ge-
|
|
5332
|
-
"../../../../assets/flags/gf.svg": () => import("./gf-
|
|
5333
|
-
"../../../../assets/flags/gg.svg": () => import("./gg-
|
|
5334
|
-
"../../../../assets/flags/gh.svg": () => import("./gh-
|
|
5335
|
-
"../../../../assets/flags/gi.svg": () => import("./gi-
|
|
5336
|
-
"../../../../assets/flags/gl.svg": () => import("./gl-
|
|
5337
|
-
"../../../../assets/flags/gm.svg": () => import("./gm-
|
|
5338
|
-
"../../../../assets/flags/gn.svg": () => import("./gn-
|
|
5339
|
-
"../../../../assets/flags/gp.svg": () => import("./gp-
|
|
5340
|
-
"../../../../assets/flags/gq.svg": () => import("./gq-
|
|
5341
|
-
"../../../../assets/flags/gr.svg": () => import("./gr-
|
|
5342
|
-
"../../../../assets/flags/gs.svg": () => import("./gs-
|
|
5343
|
-
"../../../../assets/flags/gt.svg": () => import("./gt-
|
|
5344
|
-
"../../../../assets/flags/gu.svg": () => import("./gu-
|
|
5345
|
-
"../../../../assets/flags/gw.svg": () => import("./gw-
|
|
5346
|
-
"../../../../assets/flags/gy.svg": () => import("./gy-
|
|
5347
|
-
"../../../../assets/flags/hk.svg": () => import("./hk-
|
|
5348
|
-
"../../../../assets/flags/hm.svg": () => import("./hm-
|
|
5349
|
-
"../../../../assets/flags/hn.svg": () => import("./hn-
|
|
5350
|
-
"../../../../assets/flags/hr.svg": () => import("./hr-
|
|
5351
|
-
"../../../../assets/flags/ht.svg": () => import("./ht-
|
|
5352
|
-
"../../../../assets/flags/hu.svg": () => import("./hu-
|
|
5353
|
-
"../../../../assets/flags/id.svg": () => import("./id-
|
|
5354
|
-
"../../../../assets/flags/ie.svg": () => import("./ie-
|
|
5355
|
-
"../../../../assets/flags/il.svg": () => import("./il-
|
|
5356
|
-
"../../../../assets/flags/im.svg": () => import("./im-
|
|
5357
|
-
"../../../../assets/flags/in.svg": () => import("./in-
|
|
5358
|
-
"../../../../assets/flags/io.svg": () => import("./io-
|
|
5359
|
-
"../../../../assets/flags/iq.svg": () => import("./iq-
|
|
5360
|
-
"../../../../assets/flags/ir.svg": () => import("./ir-
|
|
5361
|
-
"../../../../assets/flags/is.svg": () => import("./is-
|
|
5362
|
-
"../../../../assets/flags/it.svg": () => import("./it-
|
|
5363
|
-
"../../../../assets/flags/je.svg": () => import("./je-
|
|
5364
|
-
"../../../../assets/flags/jm.svg": () => import("./jm-
|
|
5365
|
-
"../../../../assets/flags/jo.svg": () => import("./jo-
|
|
5366
|
-
"../../../../assets/flags/jp.svg": () => import("./jp-
|
|
5367
|
-
"../../../../assets/flags/ke.svg": () => import("./ke-
|
|
5368
|
-
"../../../../assets/flags/kg.svg": () => import("./kg-
|
|
5369
|
-
"../../../../assets/flags/kh.svg": () => import("./kh-
|
|
5370
|
-
"../../../../assets/flags/ki.svg": () => import("./ki-
|
|
5371
|
-
"../../../../assets/flags/km.svg": () => import("./km-
|
|
5372
|
-
"../../../../assets/flags/kn.svg": () => import("./kn-
|
|
5373
|
-
"../../../../assets/flags/kp.svg": () => import("./kp-
|
|
5374
|
-
"../../../../assets/flags/kr.svg": () => import("./kr-
|
|
5375
|
-
"../../../../assets/flags/kw.svg": () => import("./kw-
|
|
5376
|
-
"../../../../assets/flags/ky.svg": () => import("./ky-
|
|
5377
|
-
"../../../../assets/flags/kz.svg": () => import("./kz-
|
|
5378
|
-
"../../../../assets/flags/la.svg": () => import("./la-
|
|
5379
|
-
"../../../../assets/flags/lb.svg": () => import("./lb-
|
|
5380
|
-
"../../../../assets/flags/lc.svg": () => import("./lc-
|
|
5381
|
-
"../../../../assets/flags/li.svg": () => import("./li-
|
|
5382
|
-
"../../../../assets/flags/lk.svg": () => import("./lk-
|
|
5383
|
-
"../../../../assets/flags/lr.svg": () => import("./lr-
|
|
5384
|
-
"../../../../assets/flags/ls.svg": () => import("./ls-
|
|
5385
|
-
"../../../../assets/flags/lt.svg": () => import("./lt-
|
|
5386
|
-
"../../../../assets/flags/lu.svg": () => import("./lu-
|
|
5387
|
-
"../../../../assets/flags/lv.svg": () => import("./lv-
|
|
5388
|
-
"../../../../assets/flags/ly.svg": () => import("./ly-
|
|
5389
|
-
"../../../../assets/flags/ma.svg": () => import("./ma-
|
|
5390
|
-
"../../../../assets/flags/mc.svg": () => import("./mc-
|
|
5391
|
-
"../../../../assets/flags/md.svg": () => import("./md-
|
|
5392
|
-
"../../../../assets/flags/me.svg": () => import("./me-
|
|
5393
|
-
"../../../../assets/flags/mf.svg": () => import("./mf-
|
|
5394
|
-
"../../../../assets/flags/mg.svg": () => import("./mg-
|
|
5395
|
-
"../../../../assets/flags/mh.svg": () => import("./mh-
|
|
5396
|
-
"../../../../assets/flags/mk.svg": () => import("./mk-
|
|
5397
|
-
"../../../../assets/flags/ml.svg": () => import("./ml-
|
|
5398
|
-
"../../../../assets/flags/mm.svg": () => import("./mm-
|
|
5399
|
-
"../../../../assets/flags/mn.svg": () => import("./mn-
|
|
5400
|
-
"../../../../assets/flags/mo.svg": () => import("./mo-
|
|
5401
|
-
"../../../../assets/flags/mp.svg": () => import("./mp-
|
|
5402
|
-
"../../../../assets/flags/mq.svg": () => import("./mq-
|
|
5403
|
-
"../../../../assets/flags/mr.svg": () => import("./mr-
|
|
5404
|
-
"../../../../assets/flags/ms.svg": () => import("./ms-
|
|
5405
|
-
"../../../../assets/flags/mt.svg": () => import("./mt-
|
|
5406
|
-
"../../../../assets/flags/mu.svg": () => import("./mu-
|
|
5407
|
-
"../../../../assets/flags/mv.svg": () => import("./mv-
|
|
5408
|
-
"../../../../assets/flags/mw.svg": () => import("./mw-
|
|
5409
|
-
"../../../../assets/flags/mx.svg": () => import("./mx-
|
|
5410
|
-
"../../../../assets/flags/my.svg": () => import("./my-
|
|
5411
|
-
"../../../../assets/flags/mz.svg": () => import("./mz-
|
|
5412
|
-
"../../../../assets/flags/na.svg": () => import("./na-
|
|
5413
|
-
"../../../../assets/flags/nc.svg": () => import("./nc-
|
|
5414
|
-
"../../../../assets/flags/ne.svg": () => import("./ne-
|
|
5415
|
-
"../../../../assets/flags/nf.svg": () => import("./nf-
|
|
5416
|
-
"../../../../assets/flags/ng.svg": () => import("./ng-
|
|
5417
|
-
"../../../../assets/flags/ni.svg": () => import("./ni-
|
|
5418
|
-
"../../../../assets/flags/nl.svg": () => import("./nl-
|
|
5419
|
-
"../../../../assets/flags/no.svg": () => import("./no-
|
|
5420
|
-
"../../../../assets/flags/np.svg": () => import("./np-
|
|
5421
|
-
"../../../../assets/flags/nr.svg": () => import("./nr-
|
|
5422
|
-
"../../../../assets/flags/nu.svg": () => import("./nu-
|
|
5423
|
-
"../../../../assets/flags/nz.svg": () => import("./nz-
|
|
5424
|
-
"../../../../assets/flags/om.svg": () => import("./om-
|
|
5425
|
-
"../../../../assets/flags/pa.svg": () => import("./pa-
|
|
5426
|
-
"../../../../assets/flags/pe.svg": () => import("./pe-
|
|
5427
|
-
"../../../../assets/flags/pf.svg": () => import("./pf-
|
|
5428
|
-
"../../../../assets/flags/pg.svg": () => import("./pg-
|
|
5429
|
-
"../../../../assets/flags/ph.svg": () => import("./ph-
|
|
5430
|
-
"../../../../assets/flags/pk.svg": () => import("./pk-
|
|
5431
|
-
"../../../../assets/flags/pl.svg": () => import("./pl-
|
|
5432
|
-
"../../../../assets/flags/pm.svg": () => import("./pm-
|
|
5433
|
-
"../../../../assets/flags/pn.svg": () => import("./pn-
|
|
5434
|
-
"../../../../assets/flags/pr.svg": () => import("./pr-
|
|
5435
|
-
"../../../../assets/flags/ps.svg": () => import("./ps-
|
|
5436
|
-
"../../../../assets/flags/pt.svg": () => import("./pt-
|
|
5437
|
-
"../../../../assets/flags/pw.svg": () => import("./pw-
|
|
5438
|
-
"../../../../assets/flags/py.svg": () => import("./py-
|
|
5439
|
-
"../../../../assets/flags/qa.svg": () => import("./qa-
|
|
5440
|
-
"../../../../assets/flags/re.svg": () => import("./re-
|
|
5441
|
-
"../../../../assets/flags/ro.svg": () => import("./ro-
|
|
5442
|
-
"../../../../assets/flags/rs.svg": () => import("./rs-
|
|
5443
|
-
"../../../../assets/flags/ru.svg": () => import("./ru-
|
|
5444
|
-
"../../../../assets/flags/rw.svg": () => import("./rw-
|
|
5445
|
-
"../../../../assets/flags/sa.svg": () => import("./sa-
|
|
5446
|
-
"../../../../assets/flags/sb.svg": () => import("./sb-
|
|
5447
|
-
"../../../../assets/flags/sc.svg": () => import("./sc-
|
|
5448
|
-
"../../../../assets/flags/sd.svg": () => import("./sd-
|
|
5449
|
-
"../../../../assets/flags/se.svg": () => import("./se-
|
|
5450
|
-
"../../../../assets/flags/sg.svg": () => import("./sg-
|
|
5451
|
-
"../../../../assets/flags/sh.svg": () => import("./sh-
|
|
5452
|
-
"../../../../assets/flags/si.svg": () => import("./si-
|
|
5453
|
-
"../../../../assets/flags/sj.svg": () => import("./sj-
|
|
5454
|
-
"../../../../assets/flags/sk.svg": () => import("./sk-
|
|
5455
|
-
"../../../../assets/flags/sl.svg": () => import("./sl-
|
|
5456
|
-
"../../../../assets/flags/sm.svg": () => import("./sm-
|
|
5457
|
-
"../../../../assets/flags/sn.svg": () => import("./sn-
|
|
5458
|
-
"../../../../assets/flags/so.svg": () => import("./so-
|
|
5459
|
-
"../../../../assets/flags/sr.svg": () => import("./sr-
|
|
5460
|
-
"../../../../assets/flags/ss.svg": () => import("./ss-
|
|
5461
|
-
"../../../../assets/flags/st.svg": () => import("./st-
|
|
5462
|
-
"../../../../assets/flags/sv.svg": () => import("./sv-
|
|
5463
|
-
"../../../../assets/flags/sx.svg": () => import("./sx-
|
|
5464
|
-
"../../../../assets/flags/sy.svg": () => import("./sy-
|
|
5465
|
-
"../../../../assets/flags/sz.svg": () => import("./sz-
|
|
5466
|
-
"../../../../assets/flags/tc.svg": () => import("./tc-
|
|
5467
|
-
"../../../../assets/flags/td.svg": () => import("./td-
|
|
5468
|
-
"../../../../assets/flags/tf.svg": () => import("./tf-
|
|
5469
|
-
"../../../../assets/flags/tg.svg": () => import("./tg-
|
|
5470
|
-
"../../../../assets/flags/th.svg": () => import("./th-
|
|
5471
|
-
"../../../../assets/flags/tj.svg": () => import("./tj-
|
|
5472
|
-
"../../../../assets/flags/tk.svg": () => import("./tk-
|
|
5473
|
-
"../../../../assets/flags/tl.svg": () => import("./tl-
|
|
5474
|
-
"../../../../assets/flags/tm.svg": () => import("./tm-
|
|
5475
|
-
"../../../../assets/flags/tn.svg": () => import("./tn-
|
|
5476
|
-
"../../../../assets/flags/to.svg": () => import("./to-
|
|
5477
|
-
"../../../../assets/flags/tr.svg": () => import("./tr-
|
|
5478
|
-
"../../../../assets/flags/tt.svg": () => import("./tt-
|
|
5479
|
-
"../../../../assets/flags/tv.svg": () => import("./tv-
|
|
5480
|
-
"../../../../assets/flags/tw.svg": () => import("./tw-
|
|
5481
|
-
"../../../../assets/flags/tz.svg": () => import("./tz-
|
|
5482
|
-
"../../../../assets/flags/ua.svg": () => import("./ua-
|
|
5483
|
-
"../../../../assets/flags/ug.svg": () => import("./ug-
|
|
5484
|
-
"../../../../assets/flags/um.svg": () => import("./um-
|
|
5485
|
-
"../../../../assets/flags/us.svg": () => import("./us-
|
|
5486
|
-
"../../../../assets/flags/uy.svg": () => import("./uy-
|
|
5487
|
-
"../../../../assets/flags/uz.svg": () => import("./uz-
|
|
5488
|
-
"../../../../assets/flags/va.svg": () => import("./va-
|
|
5489
|
-
"../../../../assets/flags/vc.svg": () => import("./vc-
|
|
5490
|
-
"../../../../assets/flags/ve.svg": () => import("./ve-
|
|
5491
|
-
"../../../../assets/flags/vg.svg": () => import("./vg-
|
|
5492
|
-
"../../../../assets/flags/vi.svg": () => import("./vi-
|
|
5493
|
-
"../../../../assets/flags/vn.svg": () => import("./vn-
|
|
5494
|
-
"../../../../assets/flags/vu.svg": () => import("./vu-
|
|
5495
|
-
"../../../../assets/flags/wf.svg": () => import("./wf-
|
|
5496
|
-
"../../../../assets/flags/ws.svg": () => import("./ws-
|
|
5497
|
-
"../../../../assets/flags/ye.svg": () => import("./ye-
|
|
5498
|
-
"../../../../assets/flags/yt.svg": () => import("./yt-
|
|
5499
|
-
"../../../../assets/flags/za.svg": () => import("./za-
|
|
5500
|
-
"../../../../assets/flags/zm.svg": () => import("./zm-
|
|
5501
|
-
"../../../../assets/flags/zw.svg": () => import("./zw-
|
|
5502
|
-
"../../../../assets/flags/zz.svg": () => import("./zz-
|
|
5274
|
+
"../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.mjs"),
|
|
5275
|
+
"../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.mjs"),
|
|
5276
|
+
"../../../../assets/flags/af.svg": () => import("./af-CoKzErRW.mjs"),
|
|
5277
|
+
"../../../../assets/flags/ag.svg": () => import("./ag-g4DXUCrU.mjs"),
|
|
5278
|
+
"../../../../assets/flags/ai.svg": () => import("./ai-CI-B0R9i.mjs"),
|
|
5279
|
+
"../../../../assets/flags/al.svg": () => import("./al-COFkJ5Ca.mjs"),
|
|
5280
|
+
"../../../../assets/flags/am.svg": () => import("./am-Dra-uz-8.mjs"),
|
|
5281
|
+
"../../../../assets/flags/an.svg": () => import("./an-BGvLoFME.mjs"),
|
|
5282
|
+
"../../../../assets/flags/ao.svg": () => import("./ao-DxG-ywGM.mjs"),
|
|
5283
|
+
"../../../../assets/flags/aq.svg": () => import("./aq-D6KJELrz.mjs"),
|
|
5284
|
+
"../../../../assets/flags/ar.svg": () => import("./ar-D1__sXLf.mjs"),
|
|
5285
|
+
"../../../../assets/flags/as.svg": () => import("./as-CO1cnzQr.mjs"),
|
|
5286
|
+
"../../../../assets/flags/at.svg": () => import("./at-DJ-_JUEF.mjs"),
|
|
5287
|
+
"../../../../assets/flags/au.svg": () => import("./au-DQ7hwYxQ.mjs"),
|
|
5288
|
+
"../../../../assets/flags/aw.svg": () => import("./aw-DsF55GZp.mjs"),
|
|
5289
|
+
"../../../../assets/flags/ax.svg": () => import("./ax-B7xGO2vL.mjs"),
|
|
5290
|
+
"../../../../assets/flags/az.svg": () => import("./az-Bn_p9CvJ.mjs"),
|
|
5291
|
+
"../../../../assets/flags/ba.svg": () => import("./ba-BoJK_mQe.mjs"),
|
|
5292
|
+
"../../../../assets/flags/bb.svg": () => import("./bb-Pm_QT_Dl.mjs"),
|
|
5293
|
+
"../../../../assets/flags/bd.svg": () => import("./bd-D7_YREZy.mjs"),
|
|
5294
|
+
"../../../../assets/flags/be.svg": () => import("./be-CZxtblLB.mjs"),
|
|
5295
|
+
"../../../../assets/flags/bf.svg": () => import("./bf-Dpx2xJ7g.mjs"),
|
|
5296
|
+
"../../../../assets/flags/bg.svg": () => import("./bg-GwVUUSOM.mjs"),
|
|
5297
|
+
"../../../../assets/flags/bh.svg": () => import("./bh-JbZUrPJw.mjs"),
|
|
5298
|
+
"../../../../assets/flags/bi.svg": () => import("./bi-BltG81ar.mjs"),
|
|
5299
|
+
"../../../../assets/flags/bj.svg": () => import("./bj-zQUv2SQa.mjs"),
|
|
5300
|
+
"../../../../assets/flags/bl.svg": () => import("./bl-BUtmusIM.mjs"),
|
|
5301
|
+
"../../../../assets/flags/bm.svg": () => import("./bm-D_illE8L.mjs"),
|
|
5302
|
+
"../../../../assets/flags/bn.svg": () => import("./bn-1XDJa4lE.mjs"),
|
|
5303
|
+
"../../../../assets/flags/bo.svg": () => import("./bo-DlmVbV9z.mjs"),
|
|
5304
|
+
"../../../../assets/flags/br.svg": () => import("./br-DLB6QJZk.mjs"),
|
|
5305
|
+
"../../../../assets/flags/bs.svg": () => import("./bs-8dBnGYPj.mjs"),
|
|
5306
|
+
"../../../../assets/flags/bt.svg": () => import("./bt-D9SHS-Ak.mjs"),
|
|
5307
|
+
"../../../../assets/flags/bv.svg": () => import("./bv-ahmv_jU3.mjs"),
|
|
5308
|
+
"../../../../assets/flags/bw.svg": () => import("./bw-DzLl7TuC.mjs"),
|
|
5309
|
+
"../../../../assets/flags/by.svg": () => import("./by-BztFrg5-.mjs"),
|
|
5310
|
+
"../../../../assets/flags/bz.svg": () => import("./bz-DkyxrcWx.mjs"),
|
|
5311
|
+
"../../../../assets/flags/ca.svg": () => import("./ca-Bika55Ha.mjs"),
|
|
5312
|
+
"../../../../assets/flags/cc.svg": () => import("./cc-CFZz_AYg.mjs"),
|
|
5313
|
+
"../../../../assets/flags/cd.svg": () => import("./cd-CgybrxtQ.mjs"),
|
|
5314
|
+
"../../../../assets/flags/cf.svg": () => import("./cf-D23Pv9G5.mjs"),
|
|
5315
|
+
"../../../../assets/flags/cg.svg": () => import("./cg-CfZbcFMO.mjs"),
|
|
5316
|
+
"../../../../assets/flags/ch.svg": () => import("./ch-mKEGRNZY.mjs"),
|
|
5317
|
+
"../../../../assets/flags/ci.svg": () => import("./ci-BJ-L2p8Z.mjs"),
|
|
5318
|
+
"../../../../assets/flags/ck.svg": () => import("./ck-j69yRZOc.mjs"),
|
|
5319
|
+
"../../../../assets/flags/cl.svg": () => import("./cl-C6BytT6S.mjs"),
|
|
5320
|
+
"../../../../assets/flags/cm.svg": () => import("./cm-CUzrX5VK.mjs"),
|
|
5321
|
+
"../../../../assets/flags/cn.svg": () => import("./cn-De5mx48S.mjs"),
|
|
5322
|
+
"../../../../assets/flags/co.svg": () => import("./co-D1tfX-Rj.mjs"),
|
|
5323
|
+
"../../../../assets/flags/cr.svg": () => import("./cr-zUnaQPg8.mjs"),
|
|
5324
|
+
"../../../../assets/flags/cu.svg": () => import("./cu-DaGswOf0.mjs"),
|
|
5325
|
+
"../../../../assets/flags/cv.svg": () => import("./cv-C4-jr8vq.mjs"),
|
|
5326
|
+
"../../../../assets/flags/cw.svg": () => import("./cw-D-6419Qt.mjs"),
|
|
5327
|
+
"../../../../assets/flags/cx.svg": () => import("./cx-DfNBgtwc.mjs"),
|
|
5328
|
+
"../../../../assets/flags/cy.svg": () => import("./cy-BRABzapK.mjs"),
|
|
5329
|
+
"../../../../assets/flags/cz.svg": () => import("./cz-DzosVcuo.mjs"),
|
|
5330
|
+
"../../../../assets/flags/de.svg": () => import("./de-DRcIm1Ma.mjs"),
|
|
5331
|
+
"../../../../assets/flags/dj.svg": () => import("./dj-Da7LmapC.mjs"),
|
|
5332
|
+
"../../../../assets/flags/dk.svg": () => import("./dk-pty9O1pD.mjs"),
|
|
5333
|
+
"../../../../assets/flags/dm.svg": () => import("./dm-GPioKBpx.mjs"),
|
|
5334
|
+
"../../../../assets/flags/do.svg": () => import("./do-k8Aqzhu5.mjs"),
|
|
5335
|
+
"../../../../assets/flags/dz.svg": () => import("./dz-0w5shCtT.mjs"),
|
|
5336
|
+
"../../../../assets/flags/ec.svg": () => import("./ec-hp0Ygj0Y.mjs"),
|
|
5337
|
+
"../../../../assets/flags/ee.svg": () => import("./ee-Dpf_R8jm.mjs"),
|
|
5338
|
+
"../../../../assets/flags/eg.svg": () => import("./eg-BgVS1lzb.mjs"),
|
|
5339
|
+
"../../../../assets/flags/eh.svg": () => import("./eh-CEZasM8H.mjs"),
|
|
5340
|
+
"../../../../assets/flags/er.svg": () => import("./er-RK3foPBe.mjs"),
|
|
5341
|
+
"../../../../assets/flags/es.svg": () => import("./es-CNey9Ibr.mjs"),
|
|
5342
|
+
"../../../../assets/flags/et.svg": () => import("./et-cNmj57xA.mjs"),
|
|
5343
|
+
"../../../../assets/flags/fi.svg": () => import("./fi-Ds4M7qRF.mjs"),
|
|
5344
|
+
"../../../../assets/flags/fj.svg": () => import("./fj-D1q87nq5.mjs"),
|
|
5345
|
+
"../../../../assets/flags/fk.svg": () => import("./fk-Y2rCs5DH.mjs"),
|
|
5346
|
+
"../../../../assets/flags/fm.svg": () => import("./fm-BZKPOICq.mjs"),
|
|
5347
|
+
"../../../../assets/flags/fo.svg": () => import("./fo-sSr8Xnvb.mjs"),
|
|
5348
|
+
"../../../../assets/flags/fr.svg": () => import("./fr-BWzaj6Yw.mjs"),
|
|
5349
|
+
"../../../../assets/flags/fx.svg": () => import("./fx-DR2GRTdn.mjs"),
|
|
5350
|
+
"../../../../assets/flags/ga.svg": () => import("./ga-9LhduROZ.mjs"),
|
|
5351
|
+
"../../../../assets/flags/gb.svg": () => import("./gb-DA-V5Xdu.mjs"),
|
|
5352
|
+
"../../../../assets/flags/gd.svg": () => import("./gd-JWdzcsNM.mjs"),
|
|
5353
|
+
"../../../../assets/flags/ge.svg": () => import("./ge-Zw0skRye.mjs"),
|
|
5354
|
+
"../../../../assets/flags/gf.svg": () => import("./gf-Bq_uV48f.mjs"),
|
|
5355
|
+
"../../../../assets/flags/gg.svg": () => import("./gg-CNzs8gF-.mjs"),
|
|
5356
|
+
"../../../../assets/flags/gh.svg": () => import("./gh-2VT5yAxo.mjs"),
|
|
5357
|
+
"../../../../assets/flags/gi.svg": () => import("./gi-jPgXNb1L.mjs"),
|
|
5358
|
+
"../../../../assets/flags/gl.svg": () => import("./gl-c6mjlUME.mjs"),
|
|
5359
|
+
"../../../../assets/flags/gm.svg": () => import("./gm-BgeXyCUQ.mjs"),
|
|
5360
|
+
"../../../../assets/flags/gn.svg": () => import("./gn-CyyMcNZ3.mjs"),
|
|
5361
|
+
"../../../../assets/flags/gp.svg": () => import("./gp-D2PIp9tB.mjs"),
|
|
5362
|
+
"../../../../assets/flags/gq.svg": () => import("./gq-BT6Gd3M4.mjs"),
|
|
5363
|
+
"../../../../assets/flags/gr.svg": () => import("./gr-B5MQUSuL.mjs"),
|
|
5364
|
+
"../../../../assets/flags/gs.svg": () => import("./gs-6VXnGQzD.mjs"),
|
|
5365
|
+
"../../../../assets/flags/gt.svg": () => import("./gt-4DSSuHgq.mjs"),
|
|
5366
|
+
"../../../../assets/flags/gu.svg": () => import("./gu-Dxf1inL8.mjs"),
|
|
5367
|
+
"../../../../assets/flags/gw.svg": () => import("./gw-R5Dl09OL.mjs"),
|
|
5368
|
+
"../../../../assets/flags/gy.svg": () => import("./gy-CHx6kck0.mjs"),
|
|
5369
|
+
"../../../../assets/flags/hk.svg": () => import("./hk-DLy2j4QA.mjs"),
|
|
5370
|
+
"../../../../assets/flags/hm.svg": () => import("./hm-CoK7Z2cg.mjs"),
|
|
5371
|
+
"../../../../assets/flags/hn.svg": () => import("./hn-DxQ71v08.mjs"),
|
|
5372
|
+
"../../../../assets/flags/hr.svg": () => import("./hr-B6Zc8qZS.mjs"),
|
|
5373
|
+
"../../../../assets/flags/ht.svg": () => import("./ht-DCMkLse8.mjs"),
|
|
5374
|
+
"../../../../assets/flags/hu.svg": () => import("./hu-JEoUAdpx.mjs"),
|
|
5375
|
+
"../../../../assets/flags/id.svg": () => import("./id-D1C_2HvG.mjs"),
|
|
5376
|
+
"../../../../assets/flags/ie.svg": () => import("./ie-d3bapQx-.mjs"),
|
|
5377
|
+
"../../../../assets/flags/il.svg": () => import("./il-CxVm0b2J.mjs"),
|
|
5378
|
+
"../../../../assets/flags/im.svg": () => import("./im-BN_uhDka.mjs"),
|
|
5379
|
+
"../../../../assets/flags/in.svg": () => import("./in-BGdmDROr.mjs"),
|
|
5380
|
+
"../../../../assets/flags/io.svg": () => import("./io-DYCJpAKf.mjs"),
|
|
5381
|
+
"../../../../assets/flags/iq.svg": () => import("./iq-BlsI9EWN.mjs"),
|
|
5382
|
+
"../../../../assets/flags/ir.svg": () => import("./ir-DdOj6IVV.mjs"),
|
|
5383
|
+
"../../../../assets/flags/is.svg": () => import("./is-DN52KJKG.mjs"),
|
|
5384
|
+
"../../../../assets/flags/it.svg": () => import("./it-D6Y8tXt3.mjs"),
|
|
5385
|
+
"../../../../assets/flags/je.svg": () => import("./je-DR82slj4.mjs"),
|
|
5386
|
+
"../../../../assets/flags/jm.svg": () => import("./jm-LqaENrl9.mjs"),
|
|
5387
|
+
"../../../../assets/flags/jo.svg": () => import("./jo-yLc64Rmj.mjs"),
|
|
5388
|
+
"../../../../assets/flags/jp.svg": () => import("./jp-Bb5uIw0H.mjs"),
|
|
5389
|
+
"../../../../assets/flags/ke.svg": () => import("./ke-BK1BjkeR.mjs"),
|
|
5390
|
+
"../../../../assets/flags/kg.svg": () => import("./kg-wlEuBvxO.mjs"),
|
|
5391
|
+
"../../../../assets/flags/kh.svg": () => import("./kh-DsvqlHLy.mjs"),
|
|
5392
|
+
"../../../../assets/flags/ki.svg": () => import("./ki-Byta-OFo.mjs"),
|
|
5393
|
+
"../../../../assets/flags/km.svg": () => import("./km-RNbmgGL_.mjs"),
|
|
5394
|
+
"../../../../assets/flags/kn.svg": () => import("./kn-CsHNi3Qt.mjs"),
|
|
5395
|
+
"../../../../assets/flags/kp.svg": () => import("./kp-DskyYlvx.mjs"),
|
|
5396
|
+
"../../../../assets/flags/kr.svg": () => import("./kr-DlF6eJVr.mjs"),
|
|
5397
|
+
"../../../../assets/flags/kw.svg": () => import("./kw-BiQAd6j1.mjs"),
|
|
5398
|
+
"../../../../assets/flags/ky.svg": () => import("./ky-BvPeTNcl.mjs"),
|
|
5399
|
+
"../../../../assets/flags/kz.svg": () => import("./kz-BQCcz0Va.mjs"),
|
|
5400
|
+
"../../../../assets/flags/la.svg": () => import("./la-COyntyzl.mjs"),
|
|
5401
|
+
"../../../../assets/flags/lb.svg": () => import("./lb-CzTzggHc.mjs"),
|
|
5402
|
+
"../../../../assets/flags/lc.svg": () => import("./lc-CRL2hV6d.mjs"),
|
|
5403
|
+
"../../../../assets/flags/li.svg": () => import("./li-BN-LWzEm.mjs"),
|
|
5404
|
+
"../../../../assets/flags/lk.svg": () => import("./lk-Dh6uTZcH.mjs"),
|
|
5405
|
+
"../../../../assets/flags/lr.svg": () => import("./lr-CoVvhAhL.mjs"),
|
|
5406
|
+
"../../../../assets/flags/ls.svg": () => import("./ls-BFhv4OAc.mjs"),
|
|
5407
|
+
"../../../../assets/flags/lt.svg": () => import("./lt-C9w-Id1S.mjs"),
|
|
5408
|
+
"../../../../assets/flags/lu.svg": () => import("./lu-Ccpxa0yN.mjs"),
|
|
5409
|
+
"../../../../assets/flags/lv.svg": () => import("./lv-Di5Y7vBC.mjs"),
|
|
5410
|
+
"../../../../assets/flags/ly.svg": () => import("./ly-BKgB-CvV.mjs"),
|
|
5411
|
+
"../../../../assets/flags/ma.svg": () => import("./ma-gJj5XCI-.mjs"),
|
|
5412
|
+
"../../../../assets/flags/mc.svg": () => import("./mc-BPN5JfTO.mjs"),
|
|
5413
|
+
"../../../../assets/flags/md.svg": () => import("./md-aCqyKOgl.mjs"),
|
|
5414
|
+
"../../../../assets/flags/me.svg": () => import("./me-C6-JkhFA.mjs"),
|
|
5415
|
+
"../../../../assets/flags/mf.svg": () => import("./mf-jpyKjgsU.mjs"),
|
|
5416
|
+
"../../../../assets/flags/mg.svg": () => import("./mg-TS1IwqtI.mjs"),
|
|
5417
|
+
"../../../../assets/flags/mh.svg": () => import("./mh-yHLgOFiA.mjs"),
|
|
5418
|
+
"../../../../assets/flags/mk.svg": () => import("./mk-CaRVDngZ.mjs"),
|
|
5419
|
+
"../../../../assets/flags/ml.svg": () => import("./ml-CUUHxg1j.mjs"),
|
|
5420
|
+
"../../../../assets/flags/mm.svg": () => import("./mm-CYK7VHSP.mjs"),
|
|
5421
|
+
"../../../../assets/flags/mn.svg": () => import("./mn-D2S-h2WN.mjs"),
|
|
5422
|
+
"../../../../assets/flags/mo.svg": () => import("./mo-D1RG60zF.mjs"),
|
|
5423
|
+
"../../../../assets/flags/mp.svg": () => import("./mp-DzztXSh1.mjs"),
|
|
5424
|
+
"../../../../assets/flags/mq.svg": () => import("./mq-Gsmz5_5j.mjs"),
|
|
5425
|
+
"../../../../assets/flags/mr.svg": () => import("./mr-C_s5K8p5.mjs"),
|
|
5426
|
+
"../../../../assets/flags/ms.svg": () => import("./ms-Cgov7p4h.mjs"),
|
|
5427
|
+
"../../../../assets/flags/mt.svg": () => import("./mt-B9vsNjSx.mjs"),
|
|
5428
|
+
"../../../../assets/flags/mu.svg": () => import("./mu-DeH79Hcd.mjs"),
|
|
5429
|
+
"../../../../assets/flags/mv.svg": () => import("./mv-CS9OGWK4.mjs"),
|
|
5430
|
+
"../../../../assets/flags/mw.svg": () => import("./mw-BvDfO_4m.mjs"),
|
|
5431
|
+
"../../../../assets/flags/mx.svg": () => import("./mx-ByC0ZmOn.mjs"),
|
|
5432
|
+
"../../../../assets/flags/my.svg": () => import("./my-BtbjhaSG.mjs"),
|
|
5433
|
+
"../../../../assets/flags/mz.svg": () => import("./mz-BuZty0IX.mjs"),
|
|
5434
|
+
"../../../../assets/flags/na.svg": () => import("./na-BMRoTc_5.mjs"),
|
|
5435
|
+
"../../../../assets/flags/nc.svg": () => import("./nc-TfmJ1_PR.mjs"),
|
|
5436
|
+
"../../../../assets/flags/ne.svg": () => import("./ne-e6jU7Ta4.mjs"),
|
|
5437
|
+
"../../../../assets/flags/nf.svg": () => import("./nf-DEApE1l7.mjs"),
|
|
5438
|
+
"../../../../assets/flags/ng.svg": () => import("./ng-C481SfES.mjs"),
|
|
5439
|
+
"../../../../assets/flags/ni.svg": () => import("./ni-DoG4DYn_.mjs"),
|
|
5440
|
+
"../../../../assets/flags/nl.svg": () => import("./nl-Cmbofdv4.mjs"),
|
|
5441
|
+
"../../../../assets/flags/no.svg": () => import("./no-CVO81I1l.mjs"),
|
|
5442
|
+
"../../../../assets/flags/np.svg": () => import("./np-zRmg82Re.mjs"),
|
|
5443
|
+
"../../../../assets/flags/nr.svg": () => import("./nr-B5qQQRjH.mjs"),
|
|
5444
|
+
"../../../../assets/flags/nu.svg": () => import("./nu-BI4Y-0EG.mjs"),
|
|
5445
|
+
"../../../../assets/flags/nz.svg": () => import("./nz-DF7xbKn7.mjs"),
|
|
5446
|
+
"../../../../assets/flags/om.svg": () => import("./om-BjOei_ke.mjs"),
|
|
5447
|
+
"../../../../assets/flags/pa.svg": () => import("./pa-ZEXTGOfm.mjs"),
|
|
5448
|
+
"../../../../assets/flags/pe.svg": () => import("./pe-HNEmB15y.mjs"),
|
|
5449
|
+
"../../../../assets/flags/pf.svg": () => import("./pf-DwCESo2k.mjs"),
|
|
5450
|
+
"../../../../assets/flags/pg.svg": () => import("./pg-BhOdaLDy.mjs"),
|
|
5451
|
+
"../../../../assets/flags/ph.svg": () => import("./ph-8ii4-Tq6.mjs"),
|
|
5452
|
+
"../../../../assets/flags/pk.svg": () => import("./pk-BafoDKz5.mjs"),
|
|
5453
|
+
"../../../../assets/flags/pl.svg": () => import("./pl-D9b2Q58T.mjs"),
|
|
5454
|
+
"../../../../assets/flags/pm.svg": () => import("./pm-C-WvmgM4.mjs"),
|
|
5455
|
+
"../../../../assets/flags/pn.svg": () => import("./pn-DjnHidFS.mjs"),
|
|
5456
|
+
"../../../../assets/flags/pr.svg": () => import("./pr-Dd50hA9F.mjs"),
|
|
5457
|
+
"../../../../assets/flags/ps.svg": () => import("./ps-CUGb27Pq.mjs"),
|
|
5458
|
+
"../../../../assets/flags/pt.svg": () => import("./pt-Qpxk-ulQ.mjs"),
|
|
5459
|
+
"../../../../assets/flags/pw.svg": () => import("./pw-DV4RtHVX.mjs"),
|
|
5460
|
+
"../../../../assets/flags/py.svg": () => import("./py-eg-mtZFC.mjs"),
|
|
5461
|
+
"../../../../assets/flags/qa.svg": () => import("./qa-CHyJi5tF.mjs"),
|
|
5462
|
+
"../../../../assets/flags/re.svg": () => import("./re-FpArmeeM.mjs"),
|
|
5463
|
+
"../../../../assets/flags/ro.svg": () => import("./ro-ANrnebzK.mjs"),
|
|
5464
|
+
"../../../../assets/flags/rs.svg": () => import("./rs-BGbyX7Qb.mjs"),
|
|
5465
|
+
"../../../../assets/flags/ru.svg": () => import("./ru-DtLSIa8v.mjs"),
|
|
5466
|
+
"../../../../assets/flags/rw.svg": () => import("./rw-B1kILqpv.mjs"),
|
|
5467
|
+
"../../../../assets/flags/sa.svg": () => import("./sa-CEcWBFfj.mjs"),
|
|
5468
|
+
"../../../../assets/flags/sb.svg": () => import("./sb-p9ah_4x5.mjs"),
|
|
5469
|
+
"../../../../assets/flags/sc.svg": () => import("./sc-2YHg9FTT.mjs"),
|
|
5470
|
+
"../../../../assets/flags/sd.svg": () => import("./sd-BKzyWEE3.mjs"),
|
|
5471
|
+
"../../../../assets/flags/se.svg": () => import("./se-Dq5LtCEp.mjs"),
|
|
5472
|
+
"../../../../assets/flags/sg.svg": () => import("./sg-C752_QVl.mjs"),
|
|
5473
|
+
"../../../../assets/flags/sh.svg": () => import("./sh-NFjaiAXX.mjs"),
|
|
5474
|
+
"../../../../assets/flags/si.svg": () => import("./si-DKzVjXeV.mjs"),
|
|
5475
|
+
"../../../../assets/flags/sj.svg": () => import("./sj-DF7Bf8Q9.mjs"),
|
|
5476
|
+
"../../../../assets/flags/sk.svg": () => import("./sk-CPmqq18S.mjs"),
|
|
5477
|
+
"../../../../assets/flags/sl.svg": () => import("./sl-Dx7oHjXI.mjs"),
|
|
5478
|
+
"../../../../assets/flags/sm.svg": () => import("./sm-B8bEOCx7.mjs"),
|
|
5479
|
+
"../../../../assets/flags/sn.svg": () => import("./sn-tcqzwUh4.mjs"),
|
|
5480
|
+
"../../../../assets/flags/so.svg": () => import("./so-BrD8jwW8.mjs"),
|
|
5481
|
+
"../../../../assets/flags/sr.svg": () => import("./sr-Dyy1x6sW.mjs"),
|
|
5482
|
+
"../../../../assets/flags/ss.svg": () => import("./ss-CpfhWUQL.mjs"),
|
|
5483
|
+
"../../../../assets/flags/st.svg": () => import("./st-DZJqDu2d.mjs"),
|
|
5484
|
+
"../../../../assets/flags/sv.svg": () => import("./sv-DtkfLQdf.mjs"),
|
|
5485
|
+
"../../../../assets/flags/sx.svg": () => import("./sx-C1dyGLW-.mjs"),
|
|
5486
|
+
"../../../../assets/flags/sy.svg": () => import("./sy-DhvBoSDL.mjs"),
|
|
5487
|
+
"../../../../assets/flags/sz.svg": () => import("./sz-Co03zPL0.mjs"),
|
|
5488
|
+
"../../../../assets/flags/tc.svg": () => import("./tc-DFY42rbc.mjs"),
|
|
5489
|
+
"../../../../assets/flags/td.svg": () => import("./td-DdnMoB4B.mjs"),
|
|
5490
|
+
"../../../../assets/flags/tf.svg": () => import("./tf-DtUoHxUD.mjs"),
|
|
5491
|
+
"../../../../assets/flags/tg.svg": () => import("./tg-B-szBZlQ.mjs"),
|
|
5492
|
+
"../../../../assets/flags/th.svg": () => import("./th-hl0xD9En.mjs"),
|
|
5493
|
+
"../../../../assets/flags/tj.svg": () => import("./tj-CaluHgV4.mjs"),
|
|
5494
|
+
"../../../../assets/flags/tk.svg": () => import("./tk-7WTKQA6M.mjs"),
|
|
5495
|
+
"../../../../assets/flags/tl.svg": () => import("./tl-DWxFj_mI.mjs"),
|
|
5496
|
+
"../../../../assets/flags/tm.svg": () => import("./tm-CXa44ZsQ.mjs"),
|
|
5497
|
+
"../../../../assets/flags/tn.svg": () => import("./tn-YGA63yhm.mjs"),
|
|
5498
|
+
"../../../../assets/flags/to.svg": () => import("./to-D1SPhDAS.mjs"),
|
|
5499
|
+
"../../../../assets/flags/tr.svg": () => import("./tr-BkORBw5s.mjs"),
|
|
5500
|
+
"../../../../assets/flags/tt.svg": () => import("./tt-CPiasxy9.mjs"),
|
|
5501
|
+
"../../../../assets/flags/tv.svg": () => import("./tv-1UKqGnYq.mjs"),
|
|
5502
|
+
"../../../../assets/flags/tw.svg": () => import("./tw-V_-9EdZA.mjs"),
|
|
5503
|
+
"../../../../assets/flags/tz.svg": () => import("./tz-vyNQ8siG.mjs"),
|
|
5504
|
+
"../../../../assets/flags/ua.svg": () => import("./ua-B36hNKIn.mjs"),
|
|
5505
|
+
"../../../../assets/flags/ug.svg": () => import("./ug-DzrOv_zJ.mjs"),
|
|
5506
|
+
"../../../../assets/flags/um.svg": () => import("./um-Xf4WHDSX.mjs"),
|
|
5507
|
+
"../../../../assets/flags/us.svg": () => import("./us-VkSkiw44.mjs"),
|
|
5508
|
+
"../../../../assets/flags/uy.svg": () => import("./uy-BBVhuI0m.mjs"),
|
|
5509
|
+
"../../../../assets/flags/uz.svg": () => import("./uz-D4g4y6tl.mjs"),
|
|
5510
|
+
"../../../../assets/flags/va.svg": () => import("./va-CuiFpTCr.mjs"),
|
|
5511
|
+
"../../../../assets/flags/vc.svg": () => import("./vc-BGrc4dhk.mjs"),
|
|
5512
|
+
"../../../../assets/flags/ve.svg": () => import("./ve-76O2C7rm.mjs"),
|
|
5513
|
+
"../../../../assets/flags/vg.svg": () => import("./vg-DMKx8jrg.mjs"),
|
|
5514
|
+
"../../../../assets/flags/vi.svg": () => import("./vi-D8PahWnh.mjs"),
|
|
5515
|
+
"../../../../assets/flags/vn.svg": () => import("./vn-BnPQgCR1.mjs"),
|
|
5516
|
+
"../../../../assets/flags/vu.svg": () => import("./vu-B3LLAmr5.mjs"),
|
|
5517
|
+
"../../../../assets/flags/wf.svg": () => import("./wf-qXr-xalT.mjs"),
|
|
5518
|
+
"../../../../assets/flags/ws.svg": () => import("./ws-pGsAcjqz.mjs"),
|
|
5519
|
+
"../../../../assets/flags/ye.svg": () => import("./ye-CII0qyBt.mjs"),
|
|
5520
|
+
"../../../../assets/flags/yt.svg": () => import("./yt-BoehcMko.mjs"),
|
|
5521
|
+
"../../../../assets/flags/za.svg": () => import("./za-CaK3IAZP.mjs"),
|
|
5522
|
+
"../../../../assets/flags/zm.svg": () => import("./zm-C8-RQ03K.mjs"),
|
|
5523
|
+
"../../../../assets/flags/zw.svg": () => import("./zw-JWvy-vVa.mjs"),
|
|
5524
|
+
"../../../../assets/flags/zz.svg": () => import("./zz-CCLSDExB.mjs")
|
|
5503
5525
|
});
|
|
5504
5526
|
const getLazyLoadedSvgComponent = (country2) => {
|
|
5505
5527
|
const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
|
|
5506
5528
|
if (!importForCountry) {
|
|
5507
|
-
logger$
|
|
5529
|
+
logger$r.error(`No flag available for ${country2}`);
|
|
5508
5530
|
return void 0;
|
|
5509
5531
|
}
|
|
5510
5532
|
return lazy(importForCountry);
|
|
@@ -5569,7 +5591,6 @@ function CountryField({
|
|
|
5569
5591
|
})
|
|
5570
5592
|
});
|
|
5571
5593
|
}
|
|
5572
|
-
const FormHeader$1 = "";
|
|
5573
5594
|
function FormHeader({
|
|
5574
5595
|
heading,
|
|
5575
5596
|
description: description2,
|
|
@@ -5609,7 +5630,6 @@ const useForwardedRef = (forwardedRef) => {
|
|
|
5609
5630
|
const backupRef = useRef();
|
|
5610
5631
|
return forwardedRef ?? backupRef;
|
|
5611
5632
|
};
|
|
5612
|
-
const FormFields = "";
|
|
5613
5633
|
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
5614
5634
|
const InputBase = forwardRef((props, ref) => {
|
|
5615
5635
|
const {
|
|
@@ -5733,7 +5753,6 @@ function LegalCompanyNameField({
|
|
|
5733
5753
|
})
|
|
5734
5754
|
});
|
|
5735
5755
|
}
|
|
5736
|
-
const Disclaimer$1 = "";
|
|
5737
5756
|
const Disclaimer = ({
|
|
5738
5757
|
title,
|
|
5739
5758
|
children
|
|
@@ -5849,7 +5868,6 @@ const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, n
|
|
|
5849
5868
|
var _a, _b;
|
|
5850
5869
|
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;
|
|
5851
5870
|
});
|
|
5852
|
-
const CompanyRegistrationDetailsComponent$1 = "";
|
|
5853
5871
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
5854
5872
|
ExperimentNames2["EnableCompanySearchFlow"] = "EnableCompanySearchFlow";
|
|
5855
5873
|
ExperimentNames2["EnableNewEntryFlow"] = "EnableNewEntryFlow";
|
|
@@ -6148,7 +6166,6 @@ const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
|
6148
6166
|
}
|
|
6149
6167
|
return defaultMetadata;
|
|
6150
6168
|
};
|
|
6151
|
-
const MaskedInputText$1 = "";
|
|
6152
6169
|
const cachedStripPatterns = /* @__PURE__ */ new Map();
|
|
6153
6170
|
const makeStripPattern = (mask) => {
|
|
6154
6171
|
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
@@ -6306,7 +6323,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
|
|
|
6306
6323
|
};
|
|
6307
6324
|
};
|
|
6308
6325
|
const MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
6309
|
-
const logger$
|
|
6326
|
+
const logger$q = createLogger("MaskedInputText");
|
|
6310
6327
|
const MaskedInputText = ({
|
|
6311
6328
|
value,
|
|
6312
6329
|
onInput,
|
|
@@ -6348,7 +6365,7 @@ const MaskedInputText = ({
|
|
|
6348
6365
|
};
|
|
6349
6366
|
useEffect(() => {
|
|
6350
6367
|
if (!mask) {
|
|
6351
|
-
logger$
|
|
6368
|
+
logger$q.warn("`mask` is undefined. No masking of input will take place.");
|
|
6352
6369
|
}
|
|
6353
6370
|
}, [mask]);
|
|
6354
6371
|
const getMaskResult = useCallback((pureValue) => {
|
|
@@ -6375,7 +6392,7 @@ const MaskedInputText = ({
|
|
|
6375
6392
|
return;
|
|
6376
6393
|
}
|
|
6377
6394
|
const fallback = displayValueToPure(maskResult.partialDisplayValue);
|
|
6378
|
-
logger$
|
|
6395
|
+
logger$q.warn(`Value received "${value}" does not match mask`, maskResult, `
|
|
6379
6396
|
Falling back to partially valid value "${fallback}"`);
|
|
6380
6397
|
onInput(fallback);
|
|
6381
6398
|
}
|
|
@@ -6977,7 +6994,7 @@ const CountryIdNumberPatterns = {
|
|
|
6977
6994
|
[CountryCodes.Italy]: /^[A-Z]{6}[0-9]{2}[ABCDEHLMPRST][0-9]{2}[A-Z][0-9]{3}[A-Z]$/,
|
|
6978
6995
|
[CountryCodes.Poland]: /^\d{11}$/,
|
|
6979
6996
|
[CountryCodes.Romania]: /^\d{13}$/,
|
|
6980
|
-
[CountryCodes.Singapore]: /^[A-Z][0-9]{
|
|
6997
|
+
[CountryCodes.Singapore]: /^[A-Z][0-9]{7}[A-Z]$/,
|
|
6981
6998
|
[CountryCodes.Spain]: {
|
|
6982
6999
|
dni: /(^[KL]?\d{8}[A-Z]$)/,
|
|
6983
7000
|
nie: /(^[MXYZ]\d{7,8}[A-Z]$)/
|
|
@@ -7857,7 +7874,6 @@ class UserEvents {
|
|
|
7857
7874
|
}
|
|
7858
7875
|
}
|
|
7859
7876
|
const userEvents = new UserEvents();
|
|
7860
|
-
const _accordion_component = "";
|
|
7861
7877
|
const AccordionContext = createContext(null);
|
|
7862
7878
|
function Accordion({
|
|
7863
7879
|
children,
|
|
@@ -7890,13 +7906,11 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
|
7890
7906
|
Placement2[Placement2["Right"] = 1] = "Right";
|
|
7891
7907
|
return Placement2;
|
|
7892
7908
|
})(Placement || {});
|
|
7893
|
-
const _accordionItem_component = "";
|
|
7894
7909
|
let idCounter = Date.now();
|
|
7895
7910
|
const getUniqueId = (prefix = "id") => {
|
|
7896
7911
|
idCounter += 1;
|
|
7897
7912
|
return `${prefix}-${idCounter}`;
|
|
7898
7913
|
};
|
|
7899
|
-
const CollapsibleContainer$1 = "";
|
|
7900
7914
|
function CollapsibleContainer({
|
|
7901
7915
|
children,
|
|
7902
7916
|
collapsed = false,
|
|
@@ -8090,8 +8104,6 @@ function InputDate(props) {
|
|
|
8090
8104
|
maxLength: 10
|
|
8091
8105
|
});
|
|
8092
8106
|
}
|
|
8093
|
-
const RadioGroup$1 = "";
|
|
8094
|
-
const _inputRadio = "";
|
|
8095
8107
|
const InputRadio = ({
|
|
8096
8108
|
className,
|
|
8097
8109
|
...props
|
|
@@ -9655,7 +9667,6 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9655
9667
|
})]
|
|
9656
9668
|
});
|
|
9657
9669
|
}
|
|
9658
|
-
const CompanyTypeComponent$1 = "";
|
|
9659
9670
|
const companyBase = {
|
|
9660
9671
|
accountHolder: {
|
|
9661
9672
|
rule: "accountHolderIfCustomer"
|
|
@@ -10464,7 +10475,7 @@ const accountHolderValidationRules = {
|
|
|
10464
10475
|
}
|
|
10465
10476
|
};
|
|
10466
10477
|
const accountHolderFields = ["accountHolder"];
|
|
10467
|
-
const logger$
|
|
10478
|
+
const logger$p = createLogger("AccountHolder");
|
|
10468
10479
|
function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
|
|
10469
10480
|
switch (legalEntityType) {
|
|
10470
10481
|
case LegalEntityType.ORGANIZATION: {
|
|
@@ -10474,7 +10485,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
|
|
|
10474
10485
|
return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
|
|
10475
10486
|
}
|
|
10476
10487
|
default:
|
|
10477
|
-
logger$
|
|
10488
|
+
logger$p.error(`No available account holder options for legal entity type '${legalEntityType}'`);
|
|
10478
10489
|
return [];
|
|
10479
10490
|
}
|
|
10480
10491
|
}
|
|
@@ -10566,7 +10577,6 @@ function AccountHolder(props) {
|
|
|
10566
10577
|
}) : null]
|
|
10567
10578
|
});
|
|
10568
10579
|
}
|
|
10569
|
-
const RadioCard$1 = "";
|
|
10570
10580
|
const RadioCard = ({
|
|
10571
10581
|
optionId,
|
|
10572
10582
|
optionName,
|
|
@@ -10637,7 +10647,6 @@ const RadioCard = ({
|
|
|
10637
10647
|
})]
|
|
10638
10648
|
}, optionId);
|
|
10639
10649
|
};
|
|
10640
|
-
const RadioGroupCard$1 = "";
|
|
10641
10650
|
function RadioCardSelect({
|
|
10642
10651
|
options,
|
|
10643
10652
|
name,
|
|
@@ -10821,7 +10830,6 @@ const getDocumentGuidancePrefix = (documentType2, isIcon = false, isFront = true
|
|
|
10821
10830
|
return "generic-document";
|
|
10822
10831
|
}
|
|
10823
10832
|
};
|
|
10824
|
-
const _documentGuidance_component = "";
|
|
10825
10833
|
function DocumentGuidance({
|
|
10826
10834
|
type,
|
|
10827
10835
|
className
|
|
@@ -10908,7 +10916,6 @@ function DocumentGuidance({
|
|
|
10908
10916
|
})
|
|
10909
10917
|
});
|
|
10910
10918
|
}
|
|
10911
|
-
const Dropzone$1 = "";
|
|
10912
10919
|
function bytesToSize(bytes) {
|
|
10913
10920
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
10914
10921
|
if (bytes === 0)
|
|
@@ -10918,7 +10925,6 @@ function bytesToSize(bytes) {
|
|
|
10918
10925
|
return `${bytes} ${sizes[i]}`;
|
|
10919
10926
|
return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
|
|
10920
10927
|
}
|
|
10921
|
-
const DropzoneFile$1 = "";
|
|
10922
10928
|
const isExistingFile = (file) => "existing" in file && file.existing;
|
|
10923
10929
|
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
10924
10930
|
function DropzoneFile(props) {
|
|
@@ -11222,7 +11228,7 @@ function Dropzone(props) {
|
|
|
11222
11228
|
})]
|
|
11223
11229
|
});
|
|
11224
11230
|
}
|
|
11225
|
-
const logger$
|
|
11231
|
+
const logger$o = createLogger("TextArea");
|
|
11226
11232
|
function TextArea(props) {
|
|
11227
11233
|
const {
|
|
11228
11234
|
classNameModifiers,
|
|
@@ -11243,7 +11249,7 @@ function TextArea(props) {
|
|
|
11243
11249
|
} = useI18nContext();
|
|
11244
11250
|
const [value, setValue] = useState("");
|
|
11245
11251
|
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
11246
|
-
logger$
|
|
11252
|
+
logger$o.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
11247
11253
|
}
|
|
11248
11254
|
const handleInput = (e) => {
|
|
11249
11255
|
var _a;
|
|
@@ -11405,7 +11411,6 @@ function DocumentUploadComponent({
|
|
|
11405
11411
|
}), formUtils.isRequiredField("description") && jsx(Field, {
|
|
11406
11412
|
name: "description",
|
|
11407
11413
|
label: formUtils.getLabel("descriptionOptional"),
|
|
11408
|
-
helper: i18n.get("descriptionHelper"),
|
|
11409
11414
|
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
11410
11415
|
isValid: valid.description,
|
|
11411
11416
|
children: (childProps) => jsx(TextArea, {
|
|
@@ -11422,7 +11427,6 @@ function DocumentUploadComponent({
|
|
|
11422
11427
|
});
|
|
11423
11428
|
}
|
|
11424
11429
|
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);
|
|
11425
|
-
const _list_component = "";
|
|
11426
11430
|
function List({
|
|
11427
11431
|
className,
|
|
11428
11432
|
nested,
|
|
@@ -11439,15 +11443,16 @@ function List({
|
|
|
11439
11443
|
function ListItem({
|
|
11440
11444
|
className,
|
|
11441
11445
|
children,
|
|
11442
|
-
noMarkers
|
|
11446
|
+
noMarkers,
|
|
11447
|
+
...props
|
|
11443
11448
|
}) {
|
|
11444
11449
|
const classNames = cx(["adl-list__item", noMarkers && "adl-list__item--no-markers", className]);
|
|
11445
11450
|
return jsx("li", {
|
|
11451
|
+
...props,
|
|
11446
11452
|
className: classNames,
|
|
11447
11453
|
children
|
|
11448
11454
|
});
|
|
11449
11455
|
}
|
|
11450
|
-
const Address$1 = "";
|
|
11451
11456
|
const ADDRESS_SCHEMA = ["address", "otherAddressInformation", "postalCode", "city", "stateOrProvince", "country"];
|
|
11452
11457
|
const [ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE, COUNTRY] = ADDRESS_SCHEMA;
|
|
11453
11458
|
const COUNTRIES_WITH_STATES_DATASET = [CountryCodes.Australia, CountryCodes.Brazil, CountryCodes.Canada, CountryCodes.NewZealand, CountryCodes.UnitedStates];
|
|
@@ -11657,7 +11662,7 @@ function FieldContainer(props) {
|
|
|
11657
11662
|
}
|
|
11658
11663
|
return renderField(fieldName);
|
|
11659
11664
|
}
|
|
11660
|
-
const logger$
|
|
11665
|
+
const logger$n = createLogger("SearchAddress");
|
|
11661
11666
|
const SearchAddress = ({
|
|
11662
11667
|
data,
|
|
11663
11668
|
legalEntityId,
|
|
@@ -11700,7 +11705,7 @@ const SearchAddress = ({
|
|
|
11700
11705
|
const response = await handleFindAddress(selectedAddressId);
|
|
11701
11706
|
autocompleteAddressForm(response);
|
|
11702
11707
|
} catch (e) {
|
|
11703
|
-
logger$
|
|
11708
|
+
logger$n.error(e);
|
|
11704
11709
|
}
|
|
11705
11710
|
};
|
|
11706
11711
|
const onDrilldown = async (selectedAddress) => {
|
|
@@ -11712,7 +11717,7 @@ const SearchAddress = ({
|
|
|
11712
11717
|
}, legalEntityId);
|
|
11713
11718
|
setItems((response == null ? void 0 : response.results) || []);
|
|
11714
11719
|
} catch (e) {
|
|
11715
|
-
logger$
|
|
11720
|
+
logger$n.error(e);
|
|
11716
11721
|
}
|
|
11717
11722
|
};
|
|
11718
11723
|
const onChange = (e) => {
|
|
@@ -11767,7 +11772,7 @@ const SearchAddress = ({
|
|
|
11767
11772
|
setItems([]);
|
|
11768
11773
|
}
|
|
11769
11774
|
} catch (e) {
|
|
11770
|
-
logger$
|
|
11775
|
+
logger$n.error(e);
|
|
11771
11776
|
}
|
|
11772
11777
|
setLoading(false);
|
|
11773
11778
|
}
|
|
@@ -12719,7 +12724,7 @@ function CompanyComponent(props) {
|
|
|
12719
12724
|
children: jsx(DocumentUpload, {
|
|
12720
12725
|
...companyTaxDocumentFormProps,
|
|
12721
12726
|
documentField: "taxDocument",
|
|
12722
|
-
documentType: DocumentType.VAT_DOCUMENT,
|
|
12727
|
+
documentType: props.country === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
|
|
12723
12728
|
heading: i18n.get("taxDocument"),
|
|
12724
12729
|
guidanceContent: jsxs(Fragment, {
|
|
12725
12730
|
children: [jsx("div", {
|
|
@@ -12744,8 +12749,6 @@ function CompanyComponent(props) {
|
|
|
12744
12749
|
})]
|
|
12745
12750
|
});
|
|
12746
12751
|
}
|
|
12747
|
-
const Individual = "";
|
|
12748
|
-
const IdDocumentUploadComponent$1 = "";
|
|
12749
12752
|
const idDocumentTypeOptions = [{
|
|
12750
12753
|
id: DocumentType.DRIVERS_LICENSE,
|
|
12751
12754
|
name: "driversLicense",
|
|
@@ -13367,13 +13370,15 @@ const remediationCompanyApiKeyMapping = {
|
|
|
13367
13370
|
...companyApiKeyMapping,
|
|
13368
13371
|
"organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
|
|
13369
13372
|
[DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
|
|
13370
|
-
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
|
|
13373
|
+
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
|
|
13374
|
+
[DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
|
|
13371
13375
|
};
|
|
13372
13376
|
const remediationCompanySearchApiKeyMapping = {
|
|
13373
13377
|
...companySearchApiKeyMapping,
|
|
13374
13378
|
"organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
|
|
13375
13379
|
[DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
|
|
13376
|
-
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
|
|
13380
|
+
[DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
|
|
13381
|
+
[DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
|
|
13377
13382
|
};
|
|
13378
13383
|
const remediationIndividualApiKeyMapping = {
|
|
13379
13384
|
...individualApiKeyMapping,
|
|
@@ -13931,10 +13936,10 @@ const mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
|
13931
13936
|
return document2;
|
|
13932
13937
|
};
|
|
13933
13938
|
const mapApiDocumentToPayoutDocuments = (entityId) => {
|
|
13934
|
-
const
|
|
13939
|
+
const bankStatement = getDocument$1(entityId, DocumentType.BANK_STATEMENT) || null;
|
|
13935
13940
|
return {
|
|
13936
|
-
bankStatementDocument:
|
|
13937
|
-
description:
|
|
13941
|
+
bankStatementDocument: bankStatement ? [mapExistingFile(getPageName(bankStatement))] : null,
|
|
13942
|
+
description: bankStatement.description
|
|
13938
13943
|
};
|
|
13939
13944
|
};
|
|
13940
13945
|
const idDocumentUploadFields = ["idDocumentType", "idFrontPage", "idBackPage", "idDocument"];
|
|
@@ -14130,7 +14135,6 @@ function IdDocumentManualUploadComponent(props) {
|
|
|
14130
14135
|
});
|
|
14131
14136
|
}
|
|
14132
14137
|
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);
|
|
14133
|
-
const IdVerificationComponent$1 = "";
|
|
14134
14138
|
const useIdVerificationToken = ({
|
|
14135
14139
|
userDetails,
|
|
14136
14140
|
legalEntityId,
|
|
@@ -14710,7 +14714,7 @@ const initOnfido = async ({
|
|
|
14710
14714
|
language: getOnfidoLocaleConfig(i18n)
|
|
14711
14715
|
});
|
|
14712
14716
|
};
|
|
14713
|
-
const logger$
|
|
14717
|
+
const logger$m = createLogger("IdVerificationComponent");
|
|
14714
14718
|
function IdVerificationComponent({
|
|
14715
14719
|
userDetails,
|
|
14716
14720
|
legalEntityId,
|
|
@@ -14743,7 +14747,7 @@ function IdVerificationComponent({
|
|
|
14743
14747
|
onIdVerificationError,
|
|
14744
14748
|
onIdVerificationComplete
|
|
14745
14749
|
});
|
|
14746
|
-
})().catch(logger$
|
|
14750
|
+
})().catch(logger$m.error);
|
|
14747
14751
|
return () => {
|
|
14748
14752
|
if (onfidoSdk.current)
|
|
14749
14753
|
onfidoSdk.current.tearDown();
|
|
@@ -14795,7 +14799,7 @@ function IdDocumentAlreadyUpload(props) {
|
|
|
14795
14799
|
})]
|
|
14796
14800
|
});
|
|
14797
14801
|
}
|
|
14798
|
-
const logger$
|
|
14802
|
+
const logger$l = createLogger("IdDocumentInstantVerificationComponent");
|
|
14799
14803
|
const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
|
|
14800
14804
|
const documentTypeValidationRules = {
|
|
14801
14805
|
instantIdVerificationData: {
|
|
@@ -14877,7 +14881,7 @@ function IdDocumentInstantVerificationComponent(props) {
|
|
|
14877
14881
|
userDetails: props.userDetails,
|
|
14878
14882
|
legalEntityId: props.legalEntityId,
|
|
14879
14883
|
onIdVerificationComplete: handleIdVerificationComplete,
|
|
14880
|
-
onIdVerificationError: logger$
|
|
14884
|
+
onIdVerificationError: logger$l.error
|
|
14881
14885
|
}), jsxs("div", {
|
|
14882
14886
|
className: "adyen-kyc-document-upload__manual-upload",
|
|
14883
14887
|
children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
|
|
@@ -14905,7 +14909,6 @@ function IdDocumentUploadComponent(props) {
|
|
|
14905
14909
|
...props
|
|
14906
14910
|
});
|
|
14907
14911
|
}
|
|
14908
|
-
const IdVerificationMethod = "";
|
|
14909
14912
|
const layoutBreakpointClassnames = {
|
|
14910
14913
|
xsOnly: "adyen-layout-xs-only",
|
|
14911
14914
|
md: "adyen-layout-md",
|
|
@@ -15452,7 +15455,6 @@ const ContactDetailsComp = memo(ContactDetailsComponent, (prevProps, nextProps)
|
|
|
15452
15455
|
ContactDetailsComponent.defaultProps = {
|
|
15453
15456
|
data: {}
|
|
15454
15457
|
};
|
|
15455
|
-
const IdentityNumber = "";
|
|
15456
15458
|
const defaultFieldMetadata$5 = {
|
|
15457
15459
|
label: "idNumber"
|
|
15458
15460
|
};
|
|
@@ -15596,15 +15598,15 @@ const defaultFieldConfig$5 = {
|
|
|
15596
15598
|
[CountryCodes.Singapore]: {
|
|
15597
15599
|
label: "nric",
|
|
15598
15600
|
mask: {
|
|
15599
|
-
mask: makeMask(...alphaInputs(1), ...numericInputs(
|
|
15601
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
|
|
15600
15602
|
transformOnType: uppercase
|
|
15601
15603
|
},
|
|
15602
15604
|
validators: validatePatternOnBlur(CountryIdNumberPatterns[CountryCodes.Singapore]),
|
|
15603
15605
|
guidanceText: {
|
|
15604
15606
|
key: "enterNCharactersWithAMixForExample",
|
|
15605
15607
|
values: {
|
|
15606
|
-
numChars: "
|
|
15607
|
-
example: "
|
|
15608
|
+
numChars: "9",
|
|
15609
|
+
example: "T9123456J"
|
|
15608
15610
|
}
|
|
15609
15611
|
}
|
|
15610
15612
|
},
|
|
@@ -17348,7 +17350,7 @@ var ProofOfResidenceDocumentTypes = /* @__PURE__ */ ((ProofOfResidenceDocumentTy
|
|
|
17348
17350
|
})(ProofOfResidenceDocumentTypes || {});
|
|
17349
17351
|
const proofOfResidenceDocumentOptions = [{
|
|
17350
17352
|
id: "bankStatement",
|
|
17351
|
-
name: "
|
|
17353
|
+
name: "bankStatementDocument"
|
|
17352
17354
|
}, {
|
|
17353
17355
|
id: "utilityBill",
|
|
17354
17356
|
name: "utilityBill"
|
|
@@ -17632,8 +17634,535 @@ function IndividualComponent(props) {
|
|
|
17632
17634
|
children: renderActiveForm(props.activeForm)
|
|
17633
17635
|
});
|
|
17634
17636
|
}
|
|
17635
|
-
const
|
|
17636
|
-
|
|
17637
|
+
const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
|
|
17638
|
+
var _a, _b, _c, _d, _e;
|
|
17639
|
+
if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
|
|
17640
|
+
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) ?? ""}`;
|
|
17641
|
+
}
|
|
17642
|
+
return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
|
|
17643
|
+
};
|
|
17644
|
+
const getPayoutAccountHolderName = (legalEntity, i18n) => {
|
|
17645
|
+
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
17646
|
+
const trustAssociation = ownAssociations.find(({
|
|
17647
|
+
type
|
|
17648
|
+
}) => type === LegalEntityType.TRUST);
|
|
17649
|
+
if (trustAssociation == null ? void 0 : trustAssociation.name) {
|
|
17650
|
+
const trustName = trustAssociation.name;
|
|
17651
|
+
const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
|
|
17652
|
+
return i18n.get("trusteeAsTrusteeForTrust", {
|
|
17653
|
+
values: {
|
|
17654
|
+
trustName,
|
|
17655
|
+
trusteeName
|
|
17656
|
+
}
|
|
17657
|
+
});
|
|
17658
|
+
}
|
|
17659
|
+
const solePropAssociation = ownAssociations.find(({
|
|
17660
|
+
type
|
|
17661
|
+
}) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
|
|
17662
|
+
if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
|
|
17663
|
+
return solePropAssociation.name;
|
|
17664
|
+
}
|
|
17665
|
+
return getLegalEntityNameBasedOnType(legalEntity);
|
|
17666
|
+
};
|
|
17667
|
+
function FilePicker({
|
|
17668
|
+
files,
|
|
17669
|
+
setFiles,
|
|
17670
|
+
isValid,
|
|
17671
|
+
errorMessage,
|
|
17672
|
+
multiple = false,
|
|
17673
|
+
label,
|
|
17674
|
+
iconPrefix = "generic-document",
|
|
17675
|
+
// file validation options
|
|
17676
|
+
allowedFileTypes,
|
|
17677
|
+
maxSize,
|
|
17678
|
+
isOptional,
|
|
17679
|
+
maxNumberOfFiles
|
|
17680
|
+
}) {
|
|
17681
|
+
const {
|
|
17682
|
+
i18n
|
|
17683
|
+
} = useI18nContext();
|
|
17684
|
+
const fileInput = useRef(null);
|
|
17685
|
+
const [dragged, setDragged] = useState(false);
|
|
17686
|
+
const hasRequiredError = errorMessage === "fieldIsRequired";
|
|
17687
|
+
const showDropzone = files.length < maxNumberOfFiles;
|
|
17688
|
+
const openFilePicker = () => {
|
|
17689
|
+
var _a;
|
|
17690
|
+
return (_a = fileInput.current) == null ? void 0 : _a.click();
|
|
17691
|
+
};
|
|
17692
|
+
const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
|
|
17693
|
+
const handleDragEnter = (e) => {
|
|
17694
|
+
e.preventDefault();
|
|
17695
|
+
e.stopPropagation();
|
|
17696
|
+
};
|
|
17697
|
+
const handleDragLeave = (e) => {
|
|
17698
|
+
e.preventDefault();
|
|
17699
|
+
e.stopPropagation();
|
|
17700
|
+
setDragged(false);
|
|
17701
|
+
};
|
|
17702
|
+
const handleDragOver = (e) => {
|
|
17703
|
+
e.preventDefault();
|
|
17704
|
+
e.stopPropagation();
|
|
17705
|
+
setDragged(true);
|
|
17706
|
+
};
|
|
17707
|
+
const handleDrop = (e) => {
|
|
17708
|
+
e.preventDefault();
|
|
17709
|
+
e.stopPropagation();
|
|
17710
|
+
if (e.dataTransfer)
|
|
17711
|
+
addFiles(e.dataTransfer.files);
|
|
17712
|
+
setDragged(false);
|
|
17713
|
+
};
|
|
17714
|
+
const handleFilesChosen = (e) => {
|
|
17715
|
+
const fileInput2 = e.target;
|
|
17716
|
+
if (fileInput2.files)
|
|
17717
|
+
addFiles(fileInput2.files);
|
|
17718
|
+
};
|
|
17719
|
+
const addFiles = (newFiles) => {
|
|
17720
|
+
setFiles([...newFiles, ...files]);
|
|
17721
|
+
};
|
|
17722
|
+
const allowedFileTypesString = allowedFileTypes.join(", ");
|
|
17723
|
+
return jsxs("div", {
|
|
17724
|
+
children: [label && jsx("div", {
|
|
17725
|
+
className: cx("adyen-kyc-label__text", {
|
|
17726
|
+
"adyen-kyc-label__text--error": hasRequiredError
|
|
17727
|
+
}),
|
|
17728
|
+
children: label
|
|
17729
|
+
}), files.map((file) => jsx(DropzoneFile, {
|
|
17730
|
+
file,
|
|
17731
|
+
onDelete: () => handleFileDelete(file),
|
|
17732
|
+
errorMessage,
|
|
17733
|
+
iconPrefix
|
|
17734
|
+
}, file)), showDropzone && jsxs("div", {
|
|
17735
|
+
role: "region",
|
|
17736
|
+
className: cx("adyen-kyc-dropzone", {
|
|
17737
|
+
"adyen-kyc-dropzone--dragged": dragged,
|
|
17738
|
+
"adyen-kyc-dropzone--error": !dragged && hasRequiredError
|
|
17739
|
+
}),
|
|
17740
|
+
onDrop: handleDrop,
|
|
17741
|
+
onDragOver: handleDragOver,
|
|
17742
|
+
onDragEnter: handleDragEnter,
|
|
17743
|
+
onDragLeave: handleDragLeave,
|
|
17744
|
+
children: [jsx("div", {
|
|
17745
|
+
className: "adyen-kyc-dropzone__icon",
|
|
17746
|
+
children: jsx("svg", {
|
|
17747
|
+
height: "100%",
|
|
17748
|
+
width: "100%",
|
|
17749
|
+
children: jsx("use", {
|
|
17750
|
+
href: `#adl-${iconPrefix}-icon`
|
|
17751
|
+
})
|
|
17752
|
+
})
|
|
17753
|
+
}), jsxs("div", {
|
|
17754
|
+
className: "adyen-kyc-dropzone__labels",
|
|
17755
|
+
children: [jsxs("div", {
|
|
17756
|
+
className: "adyen-kyc-dropzone__drag-text",
|
|
17757
|
+
children: [jsxs("span", {
|
|
17758
|
+
children: [i18n.get("dragYourFilesHereOr"), " "]
|
|
17759
|
+
}), jsx("button", {
|
|
17760
|
+
className: "adyen-kyc-dropzone__button",
|
|
17761
|
+
type: "button",
|
|
17762
|
+
onClick: openFilePicker,
|
|
17763
|
+
children: i18n.get("browse")
|
|
17764
|
+
})]
|
|
17765
|
+
}), jsx("div", {
|
|
17766
|
+
className: "adyen-kyc-dropzone__supports-text",
|
|
17767
|
+
children: i18n.get("supports", {
|
|
17768
|
+
values: {
|
|
17769
|
+
fileTypes: allowedFileTypesString,
|
|
17770
|
+
maxSize: bytesToSize(maxSize),
|
|
17771
|
+
maxFiles: maxNumberOfFiles
|
|
17772
|
+
}
|
|
17773
|
+
})
|
|
17774
|
+
})]
|
|
17775
|
+
}), jsx("input", {
|
|
17776
|
+
className: "adyen-kyc-dropzone__input",
|
|
17777
|
+
ref: fileInput,
|
|
17778
|
+
multiple,
|
|
17779
|
+
accept: allowedFileTypesString,
|
|
17780
|
+
onChange: handleFilesChosen,
|
|
17781
|
+
type: "file",
|
|
17782
|
+
"aria-required": !isOptional,
|
|
17783
|
+
"aria-label": label,
|
|
17784
|
+
"aria-invalid": !isValid
|
|
17785
|
+
})]
|
|
17786
|
+
}), hasRequiredError && jsx("div", {
|
|
17787
|
+
className: "adyen-kyc-error-text",
|
|
17788
|
+
children: i18n.get("fieldIsRequired")
|
|
17789
|
+
})]
|
|
17790
|
+
});
|
|
17791
|
+
}
|
|
17792
|
+
var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
|
|
17793
|
+
BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
|
|
17794
|
+
BankDocumentTypes2["DEPOSIT_SLIP"] = "depositSlip";
|
|
17795
|
+
BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
|
|
17796
|
+
BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
|
|
17797
|
+
BankDocumentTypes2["CHECK"] = "check";
|
|
17798
|
+
BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
|
|
17799
|
+
return BankDocumentTypes2;
|
|
17800
|
+
})(BankDocumentTypes || {});
|
|
17801
|
+
const bankDocumentOptions = [{
|
|
17802
|
+
id: "bankStatement",
|
|
17803
|
+
name: "bankStatementDocument"
|
|
17804
|
+
}, {
|
|
17805
|
+
id: "depositSlip",
|
|
17806
|
+
name: "depositSlip"
|
|
17807
|
+
}, {
|
|
17808
|
+
id: "screenshotOfOnlineBankingEnviroment",
|
|
17809
|
+
name: "screenshotOfOnlineBankingEnviroment"
|
|
17810
|
+
}, {
|
|
17811
|
+
id: "officialEmailOrALetterFromYourBank",
|
|
17812
|
+
name: "officialEmailOrALetterFromYourBank"
|
|
17813
|
+
}, {
|
|
17814
|
+
id: "check",
|
|
17815
|
+
name: "check"
|
|
17816
|
+
}, {
|
|
17817
|
+
id: "releveDidentiteBancaire",
|
|
17818
|
+
name: "releveDidentiteBancaire"
|
|
17819
|
+
}];
|
|
17820
|
+
var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
|
|
17821
|
+
BankDocumentRequirement2["ACCOUNT_NAME_INDIVIDUAL"] = "bankAccountNameIndividual";
|
|
17822
|
+
BankDocumentRequirement2["ACCOUNT_NAME_ORGANIZATION"] = "bankAccountNameOrganization";
|
|
17823
|
+
BankDocumentRequirement2["ACCOUNT_NAME_WITH_SOLE_PROP"] = "bankAccountNameWithSoleProprietor";
|
|
17824
|
+
BankDocumentRequirement2["ACCOUNT_NAME_WITH_TRUST"] = "bankAccountNameWithTrust";
|
|
17825
|
+
BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
|
|
17826
|
+
BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
|
|
17827
|
+
BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
|
|
17828
|
+
BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "issuedInTheLastXMonths";
|
|
17829
|
+
BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
|
|
17830
|
+
BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
|
|
17831
|
+
BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
|
|
17832
|
+
return BankDocumentRequirement2;
|
|
17833
|
+
})(BankDocumentRequirement || {});
|
|
17834
|
+
const accountNameRequirement = {
|
|
17835
|
+
[LegalEntityType.INDIVIDUAL]: {
|
|
17836
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_INDIVIDUAL
|
|
17837
|
+
},
|
|
17838
|
+
[LegalEntityType.ORGANIZATION]: {
|
|
17839
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_ORGANIZATION
|
|
17840
|
+
}
|
|
17841
|
+
};
|
|
17842
|
+
const accountNameRequirementWithLegalArrangement = {
|
|
17843
|
+
[LegalEntityType.INDIVIDUAL]: {
|
|
17844
|
+
[LegalEntityType.SOLE_PROPRIETORSHIP]: {
|
|
17845
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_SOLE_PROP
|
|
17846
|
+
},
|
|
17847
|
+
[LegalEntityType.TRUST]: {
|
|
17848
|
+
[CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
|
|
17849
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
|
|
17850
|
+
}
|
|
17851
|
+
},
|
|
17852
|
+
[LegalEntityType.ORGANIZATION]: {
|
|
17853
|
+
[LegalEntityType.TRUST]: {
|
|
17854
|
+
[CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
|
|
17855
|
+
default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
|
|
17856
|
+
}
|
|
17857
|
+
}
|
|
17858
|
+
};
|
|
17859
|
+
const applyNamedModifiers = (country2, documentModifiers) => {
|
|
17860
|
+
var _a, _b, _c, _d, _e;
|
|
17861
|
+
if (!documentModifiers.associatedEntityType || !documentModifiers.associatedEntityLegalName) {
|
|
17862
|
+
switch (documentModifiers.rootEntityType) {
|
|
17863
|
+
case LegalEntityType.INDIVIDUAL:
|
|
17864
|
+
return {
|
|
17865
|
+
key: accountNameRequirement[LegalEntityType.INDIVIDUAL].default,
|
|
17866
|
+
options: {
|
|
17867
|
+
values: {
|
|
17868
|
+
individualLegalName: documentModifiers.rootEntityLegalName
|
|
17869
|
+
}
|
|
17870
|
+
}
|
|
17871
|
+
};
|
|
17872
|
+
case LegalEntityType.ORGANIZATION:
|
|
17873
|
+
default:
|
|
17874
|
+
return {
|
|
17875
|
+
key: accountNameRequirement[LegalEntityType.ORGANIZATION].default,
|
|
17876
|
+
options: {
|
|
17877
|
+
values: {
|
|
17878
|
+
companyLegalName: documentModifiers.rootEntityLegalName
|
|
17879
|
+
}
|
|
17880
|
+
}
|
|
17881
|
+
};
|
|
17882
|
+
}
|
|
17883
|
+
}
|
|
17884
|
+
switch (documentModifiers.rootEntityType) {
|
|
17885
|
+
case LegalEntityType.INDIVIDUAL:
|
|
17886
|
+
switch (documentModifiers.associatedEntityType) {
|
|
17887
|
+
case LegalEntityType.TRUST:
|
|
17888
|
+
return {
|
|
17889
|
+
key: ((_a = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _a[country2]) ?? ((_b = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _b.default),
|
|
17890
|
+
options: {
|
|
17891
|
+
values: {
|
|
17892
|
+
trusteeName: documentModifiers.rootEntityLegalName,
|
|
17893
|
+
trustLegalName: documentModifiers.associatedEntityLegalName,
|
|
17894
|
+
trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
|
|
17895
|
+
}
|
|
17896
|
+
}
|
|
17897
|
+
};
|
|
17898
|
+
case LegalEntityType.SOLE_PROPRIETORSHIP:
|
|
17899
|
+
default:
|
|
17900
|
+
return {
|
|
17901
|
+
key: (_c = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.SOLE_PROPRIETORSHIP]) == null ? void 0 : _c.default,
|
|
17902
|
+
options: {
|
|
17903
|
+
values: {
|
|
17904
|
+
individualLegalName: documentModifiers.rootEntityLegalName,
|
|
17905
|
+
soleProprietorshipName: documentModifiers.associatedEntityLegalName
|
|
17906
|
+
}
|
|
17907
|
+
}
|
|
17908
|
+
};
|
|
17909
|
+
}
|
|
17910
|
+
case LegalEntityType.ORGANIZATION:
|
|
17911
|
+
default:
|
|
17912
|
+
switch (documentModifiers.associatedEntityType) {
|
|
17913
|
+
case LegalEntityType.TRUST:
|
|
17914
|
+
return {
|
|
17915
|
+
key: ((_d = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _d[country2]) ?? ((_e = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _e.default),
|
|
17916
|
+
options: {
|
|
17917
|
+
values: {
|
|
17918
|
+
trusteeName: documentModifiers.rootEntityLegalName,
|
|
17919
|
+
trustLegalName: documentModifiers.associatedEntityLegalName,
|
|
17920
|
+
trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
|
|
17921
|
+
}
|
|
17922
|
+
}
|
|
17923
|
+
};
|
|
17924
|
+
default:
|
|
17925
|
+
return {
|
|
17926
|
+
key: accountNameRequirement[LegalEntityType.ORGANIZATION].default
|
|
17927
|
+
};
|
|
17928
|
+
}
|
|
17929
|
+
}
|
|
17930
|
+
};
|
|
17931
|
+
const getBankDocumentRequirements = (country2, documentType2, documentModifiers) => {
|
|
17932
|
+
const baseRequirements = [{
|
|
17933
|
+
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
17934
|
+
}, {
|
|
17935
|
+
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
17936
|
+
}];
|
|
17937
|
+
const accountNumberRequirement = country2 === "US" ? [{
|
|
17938
|
+
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
17939
|
+
}, {
|
|
17940
|
+
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
17941
|
+
}] : [{
|
|
17942
|
+
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
17943
|
+
}];
|
|
17944
|
+
const requireLast12Months = documentType2 !== BankDocumentTypes.SCREENSHOT_OF_BANK;
|
|
17945
|
+
const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_SLIP || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
|
|
17946
|
+
const requirements2 = [applyNamedModifiers(country2, documentModifiers), ...accountNumberRequirement, ...baseRequirements];
|
|
17947
|
+
if (requireLast12Months) {
|
|
17948
|
+
requirements2.push({
|
|
17949
|
+
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
17950
|
+
options: {
|
|
17951
|
+
values: {
|
|
17952
|
+
number: 12
|
|
17953
|
+
}
|
|
17954
|
+
}
|
|
17955
|
+
});
|
|
17956
|
+
}
|
|
17957
|
+
if (requireStampOrSignature) {
|
|
17958
|
+
requirements2.push({
|
|
17959
|
+
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
17960
|
+
});
|
|
17961
|
+
}
|
|
17962
|
+
return requirements2;
|
|
17963
|
+
};
|
|
17964
|
+
const BankDocumentRequirements = ({
|
|
17965
|
+
country: country2,
|
|
17966
|
+
documentType: documentType2,
|
|
17967
|
+
documentModifiers
|
|
17968
|
+
}) => {
|
|
17969
|
+
const {
|
|
17970
|
+
i18n
|
|
17971
|
+
} = useI18nContext();
|
|
17972
|
+
return jsxs("div", {
|
|
17973
|
+
className: "adyen-kyc-document-requirements",
|
|
17974
|
+
children: [jsx("strong", {
|
|
17975
|
+
className: "adyen-kyc-document-requirements__subtitle",
|
|
17976
|
+
children: i18n.get("documentRequirements")
|
|
17977
|
+
}), jsx(List, {
|
|
17978
|
+
children: getBankDocumentRequirements(country2, documentType2, documentModifiers).map(({
|
|
17979
|
+
key,
|
|
17980
|
+
options
|
|
17981
|
+
}) => jsx(ListItem, {
|
|
17982
|
+
"data-testid": key,
|
|
17983
|
+
dangerouslySetInnerHTML: {
|
|
17984
|
+
__html: i18n.get(key, options)
|
|
17985
|
+
}
|
|
17986
|
+
}, key))
|
|
17987
|
+
})]
|
|
17988
|
+
});
|
|
17989
|
+
};
|
|
17990
|
+
const bankDocumentValidationRules = {
|
|
17991
|
+
description: {
|
|
17992
|
+
modes: ["blur"],
|
|
17993
|
+
validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
|
|
17994
|
+
errorMessage: "invalidFormatBankStatementDescription"
|
|
17995
|
+
}
|
|
17996
|
+
};
|
|
17997
|
+
const CHARACTERS_LIMIT$1 = 200;
|
|
17998
|
+
const bankDocumentFields = ["bankStatementDocument", "description"];
|
|
17999
|
+
function BankDocument(props) {
|
|
18000
|
+
var _a, _b;
|
|
18001
|
+
const {
|
|
18002
|
+
legalEntity,
|
|
18003
|
+
associatedLegalArrangement,
|
|
18004
|
+
country: country2,
|
|
18005
|
+
optionalFields
|
|
18006
|
+
} = props;
|
|
18007
|
+
const {
|
|
18008
|
+
i18n
|
|
18009
|
+
} = useI18nContext();
|
|
18010
|
+
const [documentType2, setDocumentType] = useState();
|
|
18011
|
+
const stateRef = useRef({
|
|
18012
|
+
setState: null
|
|
18013
|
+
});
|
|
18014
|
+
const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
|
|
18015
|
+
const formUtils = formUtilities(props, i18n);
|
|
18016
|
+
const bankStatementValidationOptions = useMemo(() => ({
|
|
18017
|
+
...defaultFileValidationOptions,
|
|
18018
|
+
isOptional: isBankStatementOptional
|
|
18019
|
+
}), [isBankStatementOptional]);
|
|
18020
|
+
const rules2 = useMemo(() => ({
|
|
18021
|
+
...props.validators || bankDocumentValidationRules,
|
|
18022
|
+
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
18023
|
+
}), [bankStatementValidationOptions, props.validators]);
|
|
18024
|
+
const {
|
|
18025
|
+
handleChangeFor,
|
|
18026
|
+
data,
|
|
18027
|
+
setData,
|
|
18028
|
+
valid,
|
|
18029
|
+
fieldProblems,
|
|
18030
|
+
errors,
|
|
18031
|
+
triggerValidation
|
|
18032
|
+
} = useForm({
|
|
18033
|
+
...props,
|
|
18034
|
+
schema: bankDocumentFields,
|
|
18035
|
+
defaultData: props.data,
|
|
18036
|
+
rules: rules2,
|
|
18037
|
+
fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
|
|
18038
|
+
shouldValidate: props == null ? void 0 : props.shouldValidate
|
|
18039
|
+
});
|
|
18040
|
+
const alreadyUploadedDocuments = useMemo(() => {
|
|
18041
|
+
var _a2;
|
|
18042
|
+
return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
|
|
18043
|
+
}, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
|
|
18044
|
+
const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
|
|
18045
|
+
const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
|
|
18046
|
+
useEffect(() => {
|
|
18047
|
+
var _a2;
|
|
18048
|
+
if (hasAlreadyUploadedDocuments) {
|
|
18049
|
+
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
18050
|
+
if ((_a2 = props.data) == null ? void 0 : _a2.description)
|
|
18051
|
+
setData("description", props.data.description);
|
|
18052
|
+
triggerValidation();
|
|
18053
|
+
}
|
|
18054
|
+
}, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
|
|
18055
|
+
useEffect(() => {
|
|
18056
|
+
var _a2, _b2;
|
|
18057
|
+
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
18058
|
+
type: "addToState",
|
|
18059
|
+
value: {
|
|
18060
|
+
data,
|
|
18061
|
+
valid,
|
|
18062
|
+
errors,
|
|
18063
|
+
fieldProblems,
|
|
18064
|
+
caller: props.id,
|
|
18065
|
+
dataStoreId: props.id,
|
|
18066
|
+
schema: bankDocumentFields
|
|
18067
|
+
}
|
|
18068
|
+
});
|
|
18069
|
+
}, [data, valid, errors, fieldProblems]);
|
|
18070
|
+
const getBankDocumentOptions = () => {
|
|
18071
|
+
let options = bankDocumentOptions;
|
|
18072
|
+
if (country2 !== "FR") {
|
|
18073
|
+
options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
|
|
18074
|
+
}
|
|
18075
|
+
return options.map(({
|
|
18076
|
+
id: id2,
|
|
18077
|
+
name
|
|
18078
|
+
}) => ({
|
|
18079
|
+
id: id2,
|
|
18080
|
+
name: i18n.get(name)
|
|
18081
|
+
}));
|
|
18082
|
+
};
|
|
18083
|
+
const documentsModifiers = useMemo(() => {
|
|
18084
|
+
var _a2, _b2;
|
|
18085
|
+
return {
|
|
18086
|
+
rootEntityType: legalEntity.type,
|
|
18087
|
+
rootEntityLegalName: getLegalEntityNameBasedOnType(legalEntity),
|
|
18088
|
+
associatedEntityType: associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type,
|
|
18089
|
+
associatedEntityLegalName: (_a2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _a2.name,
|
|
18090
|
+
associatedEntityTradingName: (_b2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _b2.doingBusinessAs
|
|
18091
|
+
};
|
|
18092
|
+
}, [legalEntity, associatedLegalArrangement]);
|
|
18093
|
+
return jsxs("form", {
|
|
18094
|
+
className: "adyen-kyc-bank-document",
|
|
18095
|
+
children: [jsx(StateContextSetter, {
|
|
18096
|
+
owner: props.id,
|
|
18097
|
+
stateRef
|
|
18098
|
+
}), jsx(FormHeader, {
|
|
18099
|
+
heading: props.heading,
|
|
18100
|
+
description: props.description
|
|
18101
|
+
}), jsx(ErrorPanel, {
|
|
18102
|
+
verificationErrors: props == null ? void 0 : props.formVerificationErrors,
|
|
18103
|
+
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
18104
|
+
formUtils,
|
|
18105
|
+
id: "ariaErrorField"
|
|
18106
|
+
}), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
|
|
18107
|
+
children: [!usingExistingUploadedDocuments && jsx(Field, {
|
|
18108
|
+
name: "documentType",
|
|
18109
|
+
label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
|
|
18110
|
+
className: "adyen-kyc-bank-document__document-type",
|
|
18111
|
+
children: (childProps) => jsx(Select, {
|
|
18112
|
+
...childProps,
|
|
18113
|
+
onChange: (e) => setDocumentType(e.target.value),
|
|
18114
|
+
name: "documentType",
|
|
18115
|
+
placeholder: i18n.get("selectDocument"),
|
|
18116
|
+
isInvalid: false,
|
|
18117
|
+
items: getBankDocumentOptions(),
|
|
18118
|
+
selected: documentType2
|
|
18119
|
+
})
|
|
18120
|
+
}), documentType2 ? jsxs(Fragment, {
|
|
18121
|
+
children: [country2 ? jsx(BankDocumentRequirements, {
|
|
18122
|
+
country: country2,
|
|
18123
|
+
documentType: documentType2,
|
|
18124
|
+
documentModifiers: documentsModifiers
|
|
18125
|
+
}) : void 0, jsx(DocumentGuidance, {
|
|
18126
|
+
type: DocumentType.BANK_STATEMENT,
|
|
18127
|
+
className: "adl-u-margin-y-24"
|
|
18128
|
+
})]
|
|
18129
|
+
}) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
18130
|
+
className: "adyen-kyc-bank-document__document-upload adyen-kyc-upload-field",
|
|
18131
|
+
name: "bankStatementDocument",
|
|
18132
|
+
isValid: valid.bankStatementDocument,
|
|
18133
|
+
children: (childProps) => {
|
|
18134
|
+
var _a2;
|
|
18135
|
+
return jsx(FilePicker, {
|
|
18136
|
+
...childProps,
|
|
18137
|
+
files: data.bankStatementDocument ?? [],
|
|
18138
|
+
setFiles: handleChangeFor("bankStatementDocument"),
|
|
18139
|
+
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
18140
|
+
errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
|
|
18141
|
+
iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
|
|
18142
|
+
...bankStatementValidationOptions
|
|
18143
|
+
});
|
|
18144
|
+
}
|
|
18145
|
+
}) : null]
|
|
18146
|
+
}), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
18147
|
+
className: "adyen-kyc-bank-document__document-description",
|
|
18148
|
+
name: "description",
|
|
18149
|
+
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
18150
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
18151
|
+
isValid: valid.description,
|
|
18152
|
+
children: (childProps) => jsx(TextArea, {
|
|
18153
|
+
...childProps,
|
|
18154
|
+
name: "description",
|
|
18155
|
+
value: data.description,
|
|
18156
|
+
classNameModifiers: ["description"],
|
|
18157
|
+
maxLength: CHARACTERS_LIMIT$1,
|
|
18158
|
+
onInput: handleChangeFor("description"),
|
|
18159
|
+
"aria-label": formUtils.getLabel("description"),
|
|
18160
|
+
"aria-invalid": !valid.description
|
|
18161
|
+
})
|
|
18162
|
+
}) : null]
|
|
18163
|
+
});
|
|
18164
|
+
}
|
|
18165
|
+
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);
|
|
17637
18166
|
const AuthContext = createContext(void 0);
|
|
17638
18167
|
const useAuthContext = () => {
|
|
17639
18168
|
const authContext = useContext(AuthContext);
|
|
@@ -17642,7 +18171,6 @@ const useAuthContext = () => {
|
|
|
17642
18171
|
}
|
|
17643
18172
|
return authContext;
|
|
17644
18173
|
};
|
|
17645
|
-
const _actionBar_component = "";
|
|
17646
18174
|
const ActionBar = ({
|
|
17647
18175
|
onNext,
|
|
17648
18176
|
onBack,
|
|
@@ -17782,7 +18310,6 @@ const bankVerificationValidationRules = {
|
|
|
17782
18310
|
errorMessage: "fieldIsRequired"
|
|
17783
18311
|
}
|
|
17784
18312
|
};
|
|
17785
|
-
const BankVerificationWidget$1 = "";
|
|
17786
18313
|
class AdyenKycSdkError extends Error {
|
|
17787
18314
|
constructor(message, sourceError) {
|
|
17788
18315
|
super(message);
|
|
@@ -17802,7 +18329,7 @@ class AdyenKycSdkError extends Error {
|
|
|
17802
18329
|
}
|
|
17803
18330
|
let sdkToken;
|
|
17804
18331
|
let fetchSdkToken;
|
|
17805
|
-
const logger$
|
|
18332
|
+
const logger$k = createLogger("Session");
|
|
17806
18333
|
const setSdkToken = (token) => {
|
|
17807
18334
|
sdkToken = token;
|
|
17808
18335
|
};
|
|
@@ -17820,7 +18347,7 @@ const refreshSession = async () => {
|
|
|
17820
18347
|
} = await fetchSdkToken();
|
|
17821
18348
|
setSdkToken(token);
|
|
17822
18349
|
} catch (e) {
|
|
17823
|
-
logger$
|
|
18350
|
+
logger$k.error("Failed to fetch sdk token", e);
|
|
17824
18351
|
}
|
|
17825
18352
|
};
|
|
17826
18353
|
const addAnimationStartListener = (element, listener) => {
|
|
@@ -17829,7 +18356,7 @@ const addAnimationStartListener = (element, listener) => {
|
|
|
17829
18356
|
const removeAnimationStartListener = (element, listener) => {
|
|
17830
18357
|
element.removeEventListener("animationstart", listener, false);
|
|
17831
18358
|
};
|
|
17832
|
-
const logger$
|
|
18359
|
+
const logger$j = createLogger("Fetch");
|
|
17833
18360
|
const getRequestObject = (options, data) => {
|
|
17834
18361
|
const {
|
|
17835
18362
|
headers = [],
|
|
@@ -17876,10 +18403,10 @@ const logFetchError = (message, level) => {
|
|
|
17876
18403
|
case "info":
|
|
17877
18404
|
case "warn":
|
|
17878
18405
|
case "error":
|
|
17879
|
-
logger$
|
|
18406
|
+
logger$j[level](message);
|
|
17880
18407
|
break;
|
|
17881
18408
|
default:
|
|
17882
|
-
logger$
|
|
18409
|
+
logger$j.error(message);
|
|
17883
18410
|
}
|
|
17884
18411
|
};
|
|
17885
18412
|
const handleFetchResponse = async (response, responseType) => {
|
|
@@ -17970,7 +18497,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
|
|
|
17970
18497
|
const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
|
|
17971
18498
|
const MOUNT_TIMEOUT = 10 * 1e3;
|
|
17972
18499
|
const TINK_VENDOR = "Tink";
|
|
17973
|
-
const logger$
|
|
18500
|
+
const logger$i = createLogger("iframeWidget");
|
|
17974
18501
|
const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
|
|
17975
18502
|
const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
|
|
17976
18503
|
const parseMessageJson = (message) => {
|
|
@@ -17989,7 +18516,7 @@ const callbackErrorHandler = async (response) => {
|
|
|
17989
18516
|
try {
|
|
17990
18517
|
await response;
|
|
17991
18518
|
} catch (ex) {
|
|
17992
|
-
logger$
|
|
18519
|
+
logger$i.error(ex);
|
|
17993
18520
|
}
|
|
17994
18521
|
return {
|
|
17995
18522
|
error: "UNKNOWN_ERROR",
|
|
@@ -18098,7 +18625,7 @@ class IFrameWidget {
|
|
|
18098
18625
|
message = responseData.errorMessage;
|
|
18099
18626
|
}
|
|
18100
18627
|
} catch (ex) {
|
|
18101
|
-
logger$
|
|
18628
|
+
logger$i.error(ex);
|
|
18102
18629
|
}
|
|
18103
18630
|
throw new AdyenKycSdkError(reason, jsonData.error);
|
|
18104
18631
|
}
|
|
@@ -18286,7 +18813,7 @@ function BankVerificationWidget({
|
|
|
18286
18813
|
ref: widgetContainerRef
|
|
18287
18814
|
});
|
|
18288
18815
|
}
|
|
18289
|
-
const logger$
|
|
18816
|
+
const logger$h = createLogger("BankVerification");
|
|
18290
18817
|
const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
|
|
18291
18818
|
const InstantVerificationErrorContext = createContext(null);
|
|
18292
18819
|
const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
|
|
@@ -18320,7 +18847,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
|
|
|
18320
18847
|
const vendor = vendors[0];
|
|
18321
18848
|
setPreferredVendor(vendor.name ? vendor : void 0);
|
|
18322
18849
|
};
|
|
18323
|
-
getPreferredVendor().catch(logger$
|
|
18850
|
+
getPreferredVendor().catch(logger$h.error);
|
|
18324
18851
|
}, [country2, getBankVerificationVendors]);
|
|
18325
18852
|
return preferredVendor;
|
|
18326
18853
|
};
|
|
@@ -18521,7 +19048,6 @@ function BankVerification(props) {
|
|
|
18521
19048
|
});
|
|
18522
19049
|
}
|
|
18523
19050
|
const BankVerification$1 = memo(BankVerification);
|
|
18524
|
-
const PayoutAccount$1 = "";
|
|
18525
19051
|
const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bulgaria, CountryCodes.Canada, CountryCodes.Croatia, CountryCodes.CzechRepublic, CountryCodes.Hungary, CountryCodes.Romania, CountryCodes.Switzerland]);
|
|
18526
19052
|
const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
|
|
18527
19053
|
const payoutCurrencySupport = {
|
|
@@ -19095,70 +19621,70 @@ function BranchCode(props) {
|
|
|
19095
19621
|
}
|
|
19096
19622
|
const currencyFields = ["currency"];
|
|
19097
19623
|
const bbanPatternsByCountry = {
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19138
|
-
|
|
19139
|
-
|
|
19140
|
-
|
|
19141
|
-
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19624
|
+
[CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
|
|
19625
|
+
[CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
|
|
19626
|
+
[CountryCodes.Austria]: /\d{16}/,
|
|
19627
|
+
[CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
|
|
19628
|
+
[CountryCodes.Belgium]: /\d{12}/,
|
|
19629
|
+
[CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
|
|
19630
|
+
[CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
|
|
19631
|
+
[CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
|
|
19632
|
+
[CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
|
|
19633
|
+
[CountryCodes.CostaRica]: /\d{17}/,
|
|
19634
|
+
[CountryCodes.Croatia]: /\d{17}/,
|
|
19635
|
+
[CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
|
|
19636
|
+
[CountryCodes.CzechRepublic]: /\d{20}/,
|
|
19637
|
+
[CountryCodes.Denmark]: /\d{14}/,
|
|
19638
|
+
[CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
|
|
19639
|
+
[CountryCodes.Estonia]: /\d{16}/,
|
|
19640
|
+
[CountryCodes.FaroeIslands]: /\d{14}/,
|
|
19641
|
+
[CountryCodes.Finland]: /\d{14}/,
|
|
19642
|
+
[CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
19643
|
+
[CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
|
|
19644
|
+
[CountryCodes.Germany]: /\d{18}/,
|
|
19645
|
+
[CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
|
|
19646
|
+
[CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
|
|
19647
|
+
[CountryCodes.Greenland]: /\d{14}/,
|
|
19648
|
+
[CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
|
|
19649
|
+
[CountryCodes.Hungary]: /\d{24}/,
|
|
19650
|
+
[CountryCodes.Iceland]: /\d{22}/,
|
|
19651
|
+
[CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
|
|
19652
|
+
[CountryCodes.Israel]: /\d{19}/,
|
|
19653
|
+
[CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
19654
|
+
[CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
|
|
19655
|
+
[CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
|
|
19656
|
+
[CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
|
|
19657
|
+
[CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
|
|
19658
|
+
[CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
|
|
19659
|
+
[CountryCodes.Lithuania]: /\d{16}/,
|
|
19660
|
+
[CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
|
|
19661
|
+
[CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
|
|
19662
|
+
[CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
|
|
19663
|
+
[CountryCodes.Mauritania]: /\d{23}/,
|
|
19664
|
+
[CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
|
|
19665
|
+
[CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
19666
|
+
[CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
|
|
19667
|
+
[CountryCodes.Montenegro]: /\d{18}/,
|
|
19668
|
+
[CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
|
|
19669
|
+
[CountryCodes.Norway]: /\d{11}/,
|
|
19670
|
+
[CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
|
|
19671
|
+
[CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
|
|
19672
|
+
[CountryCodes.Poland]: /\d{24}/,
|
|
19673
|
+
[CountryCodes.Portugal]: /\d{21}/,
|
|
19674
|
+
[CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
|
|
19675
|
+
[CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
19676
|
+
[CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
|
|
19677
|
+
[CountryCodes.Serbia]: /\d{18}/,
|
|
19678
|
+
[CountryCodes.Slovakia]: /\d{20}/,
|
|
19679
|
+
[CountryCodes.Slovenia]: /\d{15}/,
|
|
19680
|
+
[CountryCodes.Spain]: /\d{20}/,
|
|
19681
|
+
[CountryCodes.Sweden]: /\d{20}/,
|
|
19682
|
+
[CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
|
|
19683
|
+
[CountryCodes.Tunisia]: /\d{20}/,
|
|
19684
|
+
[CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
|
|
19685
|
+
[CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
|
|
19686
|
+
[CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
|
|
19687
|
+
[CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
|
|
19162
19688
|
};
|
|
19163
19689
|
const customPrefixByCountry = {
|
|
19164
19690
|
[CountryCodes.Guernsey]: "GB",
|
|
@@ -19217,29 +19743,26 @@ const validateIbanOnBlurAndInput = (country2) => ({
|
|
|
19217
19743
|
return typeof result === "boolean" ? void 0 : result;
|
|
19218
19744
|
}
|
|
19219
19745
|
});
|
|
19220
|
-
const ibanMask = (country2, inputLength,
|
|
19746
|
+
const ibanMask = (country2, inputLength, allowLettersInBban) => {
|
|
19221
19747
|
const tokens = [];
|
|
19222
19748
|
tokens.push(...nonInputs(country2, {
|
|
19223
19749
|
includeInValue: true
|
|
19224
19750
|
}), ...numericInputs(2));
|
|
19225
19751
|
inputLength -= 2;
|
|
19226
|
-
|
|
19227
|
-
tokens.push(spacer, ...alphaInputs(4));
|
|
19228
|
-
inputLength -= 4;
|
|
19229
|
-
}
|
|
19752
|
+
const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
|
|
19230
19753
|
const numGroups = Math.floor(inputLength / 4);
|
|
19231
19754
|
const remainder = inputLength % 4;
|
|
19232
19755
|
for (let i = 0; i < numGroups; i += 1) {
|
|
19233
|
-
tokens.push(spacer, ...
|
|
19756
|
+
tokens.push(spacer, ...inputToken(4));
|
|
19234
19757
|
}
|
|
19235
19758
|
if (remainder > 0) {
|
|
19236
|
-
tokens.push(spacer, ...
|
|
19759
|
+
tokens.push(spacer, ...inputToken(remainder));
|
|
19237
19760
|
}
|
|
19238
19761
|
return {
|
|
19239
19762
|
mask: {
|
|
19240
19763
|
tokens
|
|
19241
19764
|
},
|
|
19242
|
-
transformOnType:
|
|
19765
|
+
transformOnType: allowLettersInBban ? uppercase : void 0
|
|
19243
19766
|
};
|
|
19244
19767
|
};
|
|
19245
19768
|
const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
|
|
@@ -19255,11 +19778,11 @@ const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
|
|
|
19255
19778
|
example
|
|
19256
19779
|
}
|
|
19257
19780
|
};
|
|
19258
|
-
const ibanMetadata = (country2, inputLength, example,
|
|
19781
|
+
const ibanMetadata = (country2, inputLength, example, allowLettersInBban) => ({
|
|
19259
19782
|
label: "iban",
|
|
19260
19783
|
validators: validateIbanOnBlurAndInput(country2),
|
|
19261
|
-
mask: ibanMask(country2, inputLength,
|
|
19262
|
-
guidanceText: ibanGuidance(
|
|
19784
|
+
mask: ibanMask(country2, inputLength, allowLettersInBban),
|
|
19785
|
+
guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
|
|
19263
19786
|
});
|
|
19264
19787
|
const gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
|
|
19265
19788
|
const defaultFieldMetadata$1 = {
|
|
@@ -19287,65 +19810,24 @@ const defaultFieldConfig$1 = {
|
|
|
19287
19810
|
[CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
|
|
19288
19811
|
[CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
|
|
19289
19812
|
[CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
|
|
19290
|
-
|
|
19291
|
-
// These include 4-letter bank codes
|
|
19813
|
+
// These include letters in the BBAN (bank account number)
|
|
19292
19814
|
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
|
|
19815
|
+
[CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
|
|
19293
19816
|
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
|
|
19294
19817
|
[CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
|
|
19818
|
+
[CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
|
|
19295
19819
|
[CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
|
|
19820
|
+
[CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
|
|
19296
19821
|
[CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
|
|
19822
|
+
[CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
|
|
19297
19823
|
[CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
|
|
19298
19824
|
[CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
|
|
19825
|
+
[CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
|
|
19299
19826
|
[CountryCodes.UnitedKingdom]: gbIbanMetadata,
|
|
19300
19827
|
// IBANs for Guernsey, Jersey, and Isle of Man also use United Kingdom's format (starting with `GB`)
|
|
19301
19828
|
[CountryCodes.Guernsey]: gbIbanMetadata,
|
|
19302
19829
|
[CountryCodes.Jersey]: gbIbanMetadata,
|
|
19303
|
-
[CountryCodes.IsleOfMan]: gbIbanMetadata
|
|
19304
|
-
// These are a little bit different
|
|
19305
|
-
[CountryCodes.France]: {
|
|
19306
|
-
label: "iban",
|
|
19307
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.France),
|
|
19308
|
-
mask: {
|
|
19309
|
-
mask: makeMask(...nonInputs("FR", {
|
|
19310
|
-
includeInValue: true
|
|
19311
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19312
|
-
transformOnType: uppercase
|
|
19313
|
-
},
|
|
19314
|
-
guidanceText: ibanGuidance("characters", 25, "FR64 1009 6000 4035 3425 9742 Y90")
|
|
19315
|
-
},
|
|
19316
|
-
[CountryCodes.Italy]: {
|
|
19317
|
-
label: "iban",
|
|
19318
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Italy),
|
|
19319
|
-
mask: {
|
|
19320
|
-
mask: makeMask(...nonInputs("IT", {
|
|
19321
|
-
includeInValue: true
|
|
19322
|
-
}), ...numericInputs(2), spacer, ...alphaInputs(1), ...numericInputs(3), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(3)),
|
|
19323
|
-
transformOnType: uppercase
|
|
19324
|
-
},
|
|
19325
|
-
guidanceText: ibanGuidance("characters", 25, "IT06 L030 0203 2809 8485 8934 882")
|
|
19326
|
-
},
|
|
19327
|
-
[CountryCodes.Liechtenstein]: {
|
|
19328
|
-
label: "iban",
|
|
19329
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Liechtenstein),
|
|
19330
|
-
mask: {
|
|
19331
|
-
mask: makeMask(...nonInputs("LI", {
|
|
19332
|
-
includeInValue: true
|
|
19333
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(1), ...alphanumericInputs(3), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(3), ...alphanumericInputs(1), spacer, ...alphanumericInputs(1)),
|
|
19334
|
-
transformOnType: uppercase
|
|
19335
|
-
},
|
|
19336
|
-
guidanceText: ibanGuidance("characters", 19, "LI21 0881 0000 2324 013A A")
|
|
19337
|
-
},
|
|
19338
|
-
[CountryCodes.Monaco]: {
|
|
19339
|
-
label: "iban",
|
|
19340
|
-
validators: validateIbanOnBlurAndInput(CountryCodes.Monaco),
|
|
19341
|
-
mask: {
|
|
19342
|
-
mask: makeMask(...nonInputs("MC", {
|
|
19343
|
-
includeInValue: true
|
|
19344
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19345
|
-
transformOnType: uppercase
|
|
19346
|
-
},
|
|
19347
|
-
guidanceText: ibanGuidance("characters", 25, "MC58 1122 2000 0101 2345 6789 030")
|
|
19348
|
-
}
|
|
19830
|
+
[CountryCodes.IsleOfMan]: gbIbanMetadata
|
|
19349
19831
|
};
|
|
19350
19832
|
const ibanFields = ["iban"];
|
|
19351
19833
|
function Iban(props) {
|
|
@@ -19600,432 +20082,6 @@ function PayoutAccountComponent(props) {
|
|
|
19600
20082
|
});
|
|
19601
20083
|
}
|
|
19602
20084
|
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);
|
|
19603
|
-
const PayoutBankStatement$1 = "";
|
|
19604
|
-
function FilePicker({
|
|
19605
|
-
files,
|
|
19606
|
-
setFiles,
|
|
19607
|
-
isValid,
|
|
19608
|
-
errorMessage,
|
|
19609
|
-
multiple = false,
|
|
19610
|
-
label,
|
|
19611
|
-
iconPrefix = "generic-document",
|
|
19612
|
-
// file validation options
|
|
19613
|
-
allowedFileTypes,
|
|
19614
|
-
maxSize,
|
|
19615
|
-
isOptional,
|
|
19616
|
-
maxNumberOfFiles
|
|
19617
|
-
}) {
|
|
19618
|
-
const {
|
|
19619
|
-
i18n
|
|
19620
|
-
} = useI18nContext();
|
|
19621
|
-
const fileInput = useRef(null);
|
|
19622
|
-
const [dragged, setDragged] = useState(false);
|
|
19623
|
-
const hasRequiredError = errorMessage === "fieldIsRequired";
|
|
19624
|
-
const showDropzone = files.length < maxNumberOfFiles;
|
|
19625
|
-
const openFilePicker = () => {
|
|
19626
|
-
var _a;
|
|
19627
|
-
return (_a = fileInput.current) == null ? void 0 : _a.click();
|
|
19628
|
-
};
|
|
19629
|
-
const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
|
|
19630
|
-
const handleDragEnter = (e) => {
|
|
19631
|
-
e.preventDefault();
|
|
19632
|
-
e.stopPropagation();
|
|
19633
|
-
};
|
|
19634
|
-
const handleDragLeave = (e) => {
|
|
19635
|
-
e.preventDefault();
|
|
19636
|
-
e.stopPropagation();
|
|
19637
|
-
setDragged(false);
|
|
19638
|
-
};
|
|
19639
|
-
const handleDragOver = (e) => {
|
|
19640
|
-
e.preventDefault();
|
|
19641
|
-
e.stopPropagation();
|
|
19642
|
-
setDragged(true);
|
|
19643
|
-
};
|
|
19644
|
-
const handleDrop = (e) => {
|
|
19645
|
-
e.preventDefault();
|
|
19646
|
-
e.stopPropagation();
|
|
19647
|
-
if (e.dataTransfer)
|
|
19648
|
-
addFiles(e.dataTransfer.files);
|
|
19649
|
-
setDragged(false);
|
|
19650
|
-
};
|
|
19651
|
-
const handleFilesChosen = (e) => {
|
|
19652
|
-
const fileInput2 = e.target;
|
|
19653
|
-
if (fileInput2.files)
|
|
19654
|
-
addFiles(fileInput2.files);
|
|
19655
|
-
};
|
|
19656
|
-
const addFiles = (newFiles) => {
|
|
19657
|
-
setFiles([...newFiles, ...files]);
|
|
19658
|
-
};
|
|
19659
|
-
const allowedFileTypesString = allowedFileTypes.join(", ");
|
|
19660
|
-
return jsxs("div", {
|
|
19661
|
-
children: [label && jsx("div", {
|
|
19662
|
-
className: cx("adyen-kyc-label__text", {
|
|
19663
|
-
"adyen-kyc-label__text--error": hasRequiredError
|
|
19664
|
-
}),
|
|
19665
|
-
children: label
|
|
19666
|
-
}), files.map((file) => jsx(DropzoneFile, {
|
|
19667
|
-
file,
|
|
19668
|
-
onDelete: () => handleFileDelete(file),
|
|
19669
|
-
errorMessage,
|
|
19670
|
-
iconPrefix
|
|
19671
|
-
}, file)), showDropzone && jsxs("div", {
|
|
19672
|
-
role: "region",
|
|
19673
|
-
className: cx("adyen-kyc-dropzone", {
|
|
19674
|
-
"adyen-kyc-dropzone--dragged": dragged,
|
|
19675
|
-
"adyen-kyc-dropzone--error": !dragged && hasRequiredError
|
|
19676
|
-
}),
|
|
19677
|
-
onDrop: handleDrop,
|
|
19678
|
-
onDragOver: handleDragOver,
|
|
19679
|
-
onDragEnter: handleDragEnter,
|
|
19680
|
-
onDragLeave: handleDragLeave,
|
|
19681
|
-
children: [jsx("div", {
|
|
19682
|
-
className: "adyen-kyc-dropzone__icon",
|
|
19683
|
-
children: jsx("svg", {
|
|
19684
|
-
height: "100%",
|
|
19685
|
-
width: "100%",
|
|
19686
|
-
children: jsx("use", {
|
|
19687
|
-
href: `#adl-${iconPrefix}-icon`
|
|
19688
|
-
})
|
|
19689
|
-
})
|
|
19690
|
-
}), jsxs("div", {
|
|
19691
|
-
className: "adyen-kyc-dropzone__labels",
|
|
19692
|
-
children: [jsxs("div", {
|
|
19693
|
-
className: "adyen-kyc-dropzone__drag-text",
|
|
19694
|
-
children: [jsxs("span", {
|
|
19695
|
-
children: [i18n.get("dragYourFilesHereOr"), " "]
|
|
19696
|
-
}), jsx("button", {
|
|
19697
|
-
className: "adyen-kyc-dropzone__button",
|
|
19698
|
-
type: "button",
|
|
19699
|
-
onClick: openFilePicker,
|
|
19700
|
-
children: i18n.get("browse")
|
|
19701
|
-
})]
|
|
19702
|
-
}), jsx("div", {
|
|
19703
|
-
className: "adyen-kyc-dropzone__supports-text",
|
|
19704
|
-
children: i18n.get("supports", {
|
|
19705
|
-
values: {
|
|
19706
|
-
fileTypes: allowedFileTypesString,
|
|
19707
|
-
maxSize: bytesToSize(maxSize),
|
|
19708
|
-
maxFiles: maxNumberOfFiles
|
|
19709
|
-
}
|
|
19710
|
-
})
|
|
19711
|
-
})]
|
|
19712
|
-
}), jsx("input", {
|
|
19713
|
-
className: "adyen-kyc-dropzone__input",
|
|
19714
|
-
ref: fileInput,
|
|
19715
|
-
multiple,
|
|
19716
|
-
accept: allowedFileTypesString,
|
|
19717
|
-
onChange: handleFilesChosen,
|
|
19718
|
-
type: "file",
|
|
19719
|
-
"aria-required": !isOptional,
|
|
19720
|
-
"aria-label": label,
|
|
19721
|
-
"aria-invalid": !isValid
|
|
19722
|
-
})]
|
|
19723
|
-
}), hasRequiredError && jsx("div", {
|
|
19724
|
-
className: "adyen-kyc-error-text",
|
|
19725
|
-
children: i18n.get("fieldIsRequired")
|
|
19726
|
-
})]
|
|
19727
|
-
});
|
|
19728
|
-
}
|
|
19729
|
-
var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
|
|
19730
|
-
BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
|
|
19731
|
-
BankDocumentTypes2["DEPOSIT_TICKET"] = "depositTicket";
|
|
19732
|
-
BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
|
|
19733
|
-
BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
|
|
19734
|
-
BankDocumentTypes2["CHEQUES"] = "cheques";
|
|
19735
|
-
BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
|
|
19736
|
-
return BankDocumentTypes2;
|
|
19737
|
-
})(BankDocumentTypes || {});
|
|
19738
|
-
const bankDocumentOptions = [{
|
|
19739
|
-
id: "bankStatement",
|
|
19740
|
-
name: "bankStatement"
|
|
19741
|
-
}, {
|
|
19742
|
-
id: "depositTicket",
|
|
19743
|
-
name: "depositTicket"
|
|
19744
|
-
}, {
|
|
19745
|
-
id: "screenshotOfOnlineBankingEnviroment",
|
|
19746
|
-
name: "screenshotOfOnlineBankingEnviroment"
|
|
19747
|
-
}, {
|
|
19748
|
-
id: "officialEmailOrALetterFromYourBank",
|
|
19749
|
-
name: "officialEmailOrALetterFromYourBank"
|
|
19750
|
-
}, {
|
|
19751
|
-
id: "cheques",
|
|
19752
|
-
name: "cheques"
|
|
19753
|
-
}, {
|
|
19754
|
-
id: "releveDidentiteBancaire",
|
|
19755
|
-
name: "releveDidentiteBancaire"
|
|
19756
|
-
}];
|
|
19757
|
-
var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
|
|
19758
|
-
BankDocumentRequirement2["ACCOUNT_HOLDER"] = "accountHolderNameMatchesWithBusinessOrTradingName";
|
|
19759
|
-
BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
|
|
19760
|
-
BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
|
|
19761
|
-
BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
|
|
19762
|
-
BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "dateOnDocumentNoOlderThanXMonths";
|
|
19763
|
-
BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
|
|
19764
|
-
BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
|
|
19765
|
-
BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
|
|
19766
|
-
return BankDocumentRequirement2;
|
|
19767
|
-
})(BankDocumentRequirement || {});
|
|
19768
|
-
const getBankDocumentRequirements = (country2, documentType2) => {
|
|
19769
|
-
const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_TICKET || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
|
|
19770
|
-
switch (country2) {
|
|
19771
|
-
case CountryCodes.UnitedStates:
|
|
19772
|
-
return requireStampOrSignature ? [{
|
|
19773
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19774
|
-
}, {
|
|
19775
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
19776
|
-
}, {
|
|
19777
|
-
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
19778
|
-
}, {
|
|
19779
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19780
|
-
options: {
|
|
19781
|
-
values: {
|
|
19782
|
-
numberOfMonths: 12
|
|
19783
|
-
}
|
|
19784
|
-
}
|
|
19785
|
-
}, {
|
|
19786
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19787
|
-
}, {
|
|
19788
|
-
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
19789
|
-
}] : [{
|
|
19790
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19791
|
-
}, {
|
|
19792
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER
|
|
19793
|
-
}, {
|
|
19794
|
-
key: BankDocumentRequirement.ROUTING_NUMBER
|
|
19795
|
-
}, {
|
|
19796
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19797
|
-
options: {
|
|
19798
|
-
values: {
|
|
19799
|
-
numberOfMonths: 12
|
|
19800
|
-
}
|
|
19801
|
-
}
|
|
19802
|
-
}, {
|
|
19803
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19804
|
-
}];
|
|
19805
|
-
default:
|
|
19806
|
-
return requireStampOrSignature ? [{
|
|
19807
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19808
|
-
}, {
|
|
19809
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
19810
|
-
}, {
|
|
19811
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19812
|
-
options: {
|
|
19813
|
-
values: {
|
|
19814
|
-
numberOfMonths: 12
|
|
19815
|
-
}
|
|
19816
|
-
}
|
|
19817
|
-
}, {
|
|
19818
|
-
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
19819
|
-
}, {
|
|
19820
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19821
|
-
}, {
|
|
19822
|
-
key: BankDocumentRequirement.STAMP_OR_SIGNATURE
|
|
19823
|
-
}] : [{
|
|
19824
|
-
key: BankDocumentRequirement.ACCOUNT_HOLDER
|
|
19825
|
-
}, {
|
|
19826
|
-
key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
|
|
19827
|
-
}, {
|
|
19828
|
-
key: BankDocumentRequirement.DATE_ON_DOCUMENT,
|
|
19829
|
-
options: {
|
|
19830
|
-
values: {
|
|
19831
|
-
numberOfMonths: 12
|
|
19832
|
-
}
|
|
19833
|
-
}
|
|
19834
|
-
}, {
|
|
19835
|
-
key: BankDocumentRequirement.COUNTRY_OF_BANK
|
|
19836
|
-
}, {
|
|
19837
|
-
key: BankDocumentRequirement.OFFICIAL_DOCUMENT
|
|
19838
|
-
}];
|
|
19839
|
-
}
|
|
19840
|
-
};
|
|
19841
|
-
const BankDocumentRequirements = ({
|
|
19842
|
-
country: country2,
|
|
19843
|
-
documentType: documentType2
|
|
19844
|
-
}) => {
|
|
19845
|
-
const {
|
|
19846
|
-
i18n
|
|
19847
|
-
} = useI18nContext();
|
|
19848
|
-
return jsxs(Fragment, {
|
|
19849
|
-
children: [jsxs("div", {
|
|
19850
|
-
className: "adyen-kyc-upload-field__subtitle",
|
|
19851
|
-
children: [" ", i18n.get("requirements")]
|
|
19852
|
-
}), jsx(List, {
|
|
19853
|
-
className: "adyen-kyc-upload-field__requirements",
|
|
19854
|
-
children: getBankDocumentRequirements(country2, documentType2).map(({
|
|
19855
|
-
key,
|
|
19856
|
-
options
|
|
19857
|
-
}) => jsx(ListItem, {
|
|
19858
|
-
children: i18n.get(key, options)
|
|
19859
|
-
}, key))
|
|
19860
|
-
})]
|
|
19861
|
-
});
|
|
19862
|
-
};
|
|
19863
|
-
const payoutBankStatementValidationRules = {
|
|
19864
|
-
description: {
|
|
19865
|
-
modes: ["blur"],
|
|
19866
|
-
validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
|
|
19867
|
-
errorMessage: "invalidFormatBankStatementDescription"
|
|
19868
|
-
}
|
|
19869
|
-
};
|
|
19870
|
-
const CHARACTERS_LIMIT$1 = 200;
|
|
19871
|
-
const bankStatementFields = ["bankStatementDocument", "description"];
|
|
19872
|
-
function PayoutBankStatementComponent(props) {
|
|
19873
|
-
var _a, _b;
|
|
19874
|
-
const {
|
|
19875
|
-
country: country2,
|
|
19876
|
-
optionalFields
|
|
19877
|
-
} = props;
|
|
19878
|
-
const {
|
|
19879
|
-
i18n
|
|
19880
|
-
} = useI18nContext();
|
|
19881
|
-
const [documentType2, setDocumentType] = useState();
|
|
19882
|
-
const stateRef = useRef({
|
|
19883
|
-
setState: null
|
|
19884
|
-
});
|
|
19885
|
-
const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
|
|
19886
|
-
const formUtils = formUtilities(props, i18n);
|
|
19887
|
-
const bankStatementValidationOptions = useMemo(() => ({
|
|
19888
|
-
...defaultFileValidationOptions,
|
|
19889
|
-
isOptional: isBankStatementOptional
|
|
19890
|
-
}), [isBankStatementOptional]);
|
|
19891
|
-
const rules2 = useMemo(() => ({
|
|
19892
|
-
...props.validators || payoutBankStatementValidationRules,
|
|
19893
|
-
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
19894
|
-
}), [bankStatementValidationOptions, props.validators]);
|
|
19895
|
-
const {
|
|
19896
|
-
handleChangeFor,
|
|
19897
|
-
data,
|
|
19898
|
-
setData,
|
|
19899
|
-
valid,
|
|
19900
|
-
fieldProblems,
|
|
19901
|
-
errors,
|
|
19902
|
-
triggerValidation
|
|
19903
|
-
} = useForm({
|
|
19904
|
-
...props,
|
|
19905
|
-
schema: bankStatementFields,
|
|
19906
|
-
defaultData: props.data,
|
|
19907
|
-
rules: rules2,
|
|
19908
|
-
fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
|
|
19909
|
-
shouldValidate: props == null ? void 0 : props.shouldValidate
|
|
19910
|
-
});
|
|
19911
|
-
const alreadyUploadedDocuments = useMemo(() => {
|
|
19912
|
-
var _a2;
|
|
19913
|
-
return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
|
|
19914
|
-
}, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
|
|
19915
|
-
const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
|
|
19916
|
-
const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
|
|
19917
|
-
useEffect(() => {
|
|
19918
|
-
var _a2;
|
|
19919
|
-
if (hasAlreadyUploadedDocuments) {
|
|
19920
|
-
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
19921
|
-
if ((_a2 = props.data) == null ? void 0 : _a2.description)
|
|
19922
|
-
setData("description", props.data.description);
|
|
19923
|
-
triggerValidation();
|
|
19924
|
-
}
|
|
19925
|
-
}, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
|
|
19926
|
-
useEffect(() => {
|
|
19927
|
-
var _a2, _b2;
|
|
19928
|
-
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
19929
|
-
type: "addToState",
|
|
19930
|
-
value: {
|
|
19931
|
-
data,
|
|
19932
|
-
valid,
|
|
19933
|
-
errors,
|
|
19934
|
-
fieldProblems,
|
|
19935
|
-
caller: props.id,
|
|
19936
|
-
dataStoreId: props.id,
|
|
19937
|
-
schema: bankStatementFields
|
|
19938
|
-
}
|
|
19939
|
-
});
|
|
19940
|
-
}, [data, valid, errors, fieldProblems]);
|
|
19941
|
-
const getBankDocumentOptions = () => {
|
|
19942
|
-
let options = bankDocumentOptions;
|
|
19943
|
-
if (country2 !== "FR") {
|
|
19944
|
-
options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
|
|
19945
|
-
}
|
|
19946
|
-
return options.map(({
|
|
19947
|
-
id: id2,
|
|
19948
|
-
name
|
|
19949
|
-
}) => ({
|
|
19950
|
-
id: id2,
|
|
19951
|
-
name: i18n.get(name)
|
|
19952
|
-
}));
|
|
19953
|
-
};
|
|
19954
|
-
return jsxs("form", {
|
|
19955
|
-
className: "adyen-kyc-payout__bank-statement",
|
|
19956
|
-
children: [jsx(StateContextSetter, {
|
|
19957
|
-
owner: props.id,
|
|
19958
|
-
stateRef
|
|
19959
|
-
}), jsx(FormHeader, {
|
|
19960
|
-
heading: props.heading
|
|
19961
|
-
}), jsx(ErrorPanel, {
|
|
19962
|
-
verificationErrors: props == null ? void 0 : props.formVerificationErrors,
|
|
19963
|
-
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
19964
|
-
formUtils,
|
|
19965
|
-
id: "ariaErrorField"
|
|
19966
|
-
}), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
|
|
19967
|
-
children: [jsx("div", {
|
|
19968
|
-
className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
|
|
19969
|
-
children: i18n.get("bankStatementDocumentTypeLabel")
|
|
19970
|
-
}), !usingExistingUploadedDocuments && jsx(Field, {
|
|
19971
|
-
name: "documentType",
|
|
19972
|
-
label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
|
|
19973
|
-
className: "adyen-kyc-field--bankStatementDocumentType",
|
|
19974
|
-
children: (childProps) => jsx(Select, {
|
|
19975
|
-
...childProps,
|
|
19976
|
-
onChange: (e) => setDocumentType(e.target.value),
|
|
19977
|
-
name: "documentType",
|
|
19978
|
-
placeholder: i18n.get("selectDocument"),
|
|
19979
|
-
isInvalid: false,
|
|
19980
|
-
items: getBankDocumentOptions(),
|
|
19981
|
-
selected: documentType2
|
|
19982
|
-
})
|
|
19983
|
-
}), documentType2 ? jsxs(Fragment, {
|
|
19984
|
-
children: [country2 ? jsx(BankDocumentRequirements, {
|
|
19985
|
-
country: country2,
|
|
19986
|
-
documentType: documentType2
|
|
19987
|
-
}) : void 0, jsx(DocumentGuidance, {
|
|
19988
|
-
type: DocumentType.BANK_STATEMENT,
|
|
19989
|
-
className: "adl-u-margin-y-24"
|
|
19990
|
-
})]
|
|
19991
|
-
}) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
19992
|
-
className: "adyen-kyc-field--bankStatementDocument adyen-kyc-upload-field",
|
|
19993
|
-
name: "bankStatementDocument",
|
|
19994
|
-
isValid: valid.bankStatementDocument,
|
|
19995
|
-
children: (childProps) => {
|
|
19996
|
-
var _a2;
|
|
19997
|
-
return jsx(FilePicker, {
|
|
19998
|
-
...childProps,
|
|
19999
|
-
files: data.bankStatementDocument ?? [],
|
|
20000
|
-
setFiles: handleChangeFor("bankStatementDocument"),
|
|
20001
|
-
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
20002
|
-
errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
|
|
20003
|
-
iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
|
|
20004
|
-
...bankStatementValidationOptions
|
|
20005
|
-
});
|
|
20006
|
-
}
|
|
20007
|
-
}) : null]
|
|
20008
|
-
}), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
|
|
20009
|
-
name: "description",
|
|
20010
|
-
label: formUtils.getLabel("descriptionOptional"),
|
|
20011
|
-
helper: i18n.get("descriptionHelper"),
|
|
20012
|
-
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
20013
|
-
isValid: valid.description,
|
|
20014
|
-
children: (childProps) => jsx(TextArea, {
|
|
20015
|
-
...childProps,
|
|
20016
|
-
name: "description",
|
|
20017
|
-
value: data.description,
|
|
20018
|
-
classNameModifiers: ["description"],
|
|
20019
|
-
maxLength: CHARACTERS_LIMIT$1,
|
|
20020
|
-
onInput: handleChangeFor("description"),
|
|
20021
|
-
"aria-label": formUtils.getLabel("description"),
|
|
20022
|
-
"aria-invalid": !valid.description
|
|
20023
|
-
})
|
|
20024
|
-
}) : null]
|
|
20025
|
-
});
|
|
20026
|
-
}
|
|
20027
|
-
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);
|
|
20028
|
-
const VerificationMethod = "";
|
|
20029
20085
|
const hasLoaded = (loadedValue) => loadedValue !== "loading";
|
|
20030
20086
|
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];
|
|
20031
20087
|
const regions = {
|
|
@@ -20054,7 +20110,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
|
|
|
20054
20110
|
}
|
|
20055
20111
|
});
|
|
20056
20112
|
const payoutVerificationMethods = ["instantVerification", "manualVerification"];
|
|
20057
|
-
const logger$
|
|
20113
|
+
const logger$g = createLogger("useLocalStorage");
|
|
20058
20114
|
const useLocalStorage = (key, defaultValue, options) => {
|
|
20059
20115
|
const {
|
|
20060
20116
|
serializer,
|
|
@@ -20075,7 +20131,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20075
20131
|
const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
|
|
20076
20132
|
return res;
|
|
20077
20133
|
} catch (err) {
|
|
20078
|
-
logger$
|
|
20134
|
+
logger$g.error(err);
|
|
20079
20135
|
return defaultValue;
|
|
20080
20136
|
}
|
|
20081
20137
|
});
|
|
@@ -20107,7 +20163,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20107
20163
|
try {
|
|
20108
20164
|
updateLocalStorage();
|
|
20109
20165
|
} catch (err) {
|
|
20110
|
-
logger$
|
|
20166
|
+
logger$g.error(err);
|
|
20111
20167
|
}
|
|
20112
20168
|
}, [value]);
|
|
20113
20169
|
useEffect(() => {
|
|
@@ -20122,7 +20178,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20122
20178
|
setValue(event.newValue ? parser(event.newValue) : void 0);
|
|
20123
20179
|
}
|
|
20124
20180
|
} catch (err) {
|
|
20125
|
-
logger$
|
|
20181
|
+
logger$g.error(err);
|
|
20126
20182
|
}
|
|
20127
20183
|
};
|
|
20128
20184
|
if (typeof window === "undefined")
|
|
@@ -20499,8 +20555,10 @@ const payoutSteps = {
|
|
|
20499
20555
|
}),
|
|
20500
20556
|
payoutAccountDocuments: {
|
|
20501
20557
|
formId: "payoutAccountDocuments",
|
|
20502
|
-
formName: "
|
|
20503
|
-
|
|
20558
|
+
formName: "bankDocument",
|
|
20559
|
+
formHeader: "bankDocumentHeader",
|
|
20560
|
+
formDescription: "bankDocumentDescription",
|
|
20561
|
+
fields: bankDocumentFields
|
|
20504
20562
|
},
|
|
20505
20563
|
payoutAccountVerification: {
|
|
20506
20564
|
formId: "payoutAccountVerification",
|
|
@@ -20531,6 +20589,7 @@ function PayoutDetailsComponent(props) {
|
|
|
20531
20589
|
activeForm,
|
|
20532
20590
|
taskType = TaskTypes.PAYOUT,
|
|
20533
20591
|
legalEntityResponse,
|
|
20592
|
+
associatedLegalArrangement,
|
|
20534
20593
|
handleGetBankVerificationVendors,
|
|
20535
20594
|
setHideDropinLayout,
|
|
20536
20595
|
setHideOnHomeButton,
|
|
@@ -20547,9 +20606,9 @@ function PayoutDetailsComponent(props) {
|
|
|
20547
20606
|
const verificationMethodFormProps = getFormProps(props, payoutSteps.payoutVerificationMethod.formId);
|
|
20548
20607
|
const accountVerificationFormProps = getFormProps(props, payoutSteps.payoutAccountVerification.formId);
|
|
20549
20608
|
const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails(taskType, isExperimentEnabled("EnableNewEntryFlow")).formId);
|
|
20550
|
-
const
|
|
20609
|
+
const bankDocumentFormProps = getFormProps(props, payoutSteps.payoutAccountDocuments.formId);
|
|
20551
20610
|
const taskHeading = isExperimentEnabled("EnableNewEntryFlow") ? i18n.get("addAndVerifyYourBankDetails") : i18n.get(taskType === TaskTypes.PAYOUT ? "payoutAccount" : "payinAccount");
|
|
20552
|
-
const isBankStatementDocumentOptional = formUtilities(
|
|
20611
|
+
const isBankStatementDocumentOptional = formUtilities(bankDocumentFormProps ?? {}, i18n).isOptionalField("bankStatementDocument");
|
|
20553
20612
|
const globalData = useGlobalData();
|
|
20554
20613
|
const data = isEmpty(globalData) ? propData : globalData;
|
|
20555
20614
|
const resetData = useResetGlobalData();
|
|
@@ -20613,10 +20672,13 @@ function PayoutDetailsComponent(props) {
|
|
|
20613
20672
|
})
|
|
20614
20673
|
}), !verifyInstantly && jsx("div", {
|
|
20615
20674
|
className: (activeForm == null ? void 0 : activeForm.formId) !== payoutSteps.payoutAccountDocuments.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
20616
|
-
children: jsx(
|
|
20617
|
-
...
|
|
20618
|
-
heading: i18n.get(isBankStatementDocumentOptional ? "
|
|
20675
|
+
children: jsx(BankDocumentComponent, {
|
|
20676
|
+
...bankDocumentFormProps,
|
|
20677
|
+
heading: i18n.get(isBankStatementDocumentOptional ? "bankDocumentHeaderOptional" : "bankDocumentHeader"),
|
|
20678
|
+
description: i18n.get("bankDocumentDescription"),
|
|
20619
20679
|
id: payoutSteps.payoutAccountDocuments.formId,
|
|
20680
|
+
legalEntity: legalEntityResponse,
|
|
20681
|
+
associatedLegalArrangement,
|
|
20620
20682
|
country: bankCountry2
|
|
20621
20683
|
})
|
|
20622
20684
|
})]
|
|
@@ -20827,7 +20889,6 @@ function SolePropComponent(props) {
|
|
|
20827
20889
|
children: renderActiveForm(props.activeForm || solePropForms.solePropNameAndCountry)
|
|
20828
20890
|
});
|
|
20829
20891
|
}
|
|
20830
|
-
const Trust = "";
|
|
20831
20892
|
var TrustTypes = /* @__PURE__ */ ((TrustTypes2) => {
|
|
20832
20893
|
TrustTypes2["BUSINESS_TRUST"] = "businessTrust";
|
|
20833
20894
|
TrustTypes2["CASH_MANAGEMENT_TRUST"] = "cashManagementTrust";
|
|
@@ -21149,7 +21210,6 @@ const getCountrySpecificTrustTypeOptions = (country2) => {
|
|
|
21149
21210
|
return countrySpecificTrustTypeOption;
|
|
21150
21211
|
});
|
|
21151
21212
|
};
|
|
21152
|
-
const ContextHelper$1 = "";
|
|
21153
21213
|
const ContextHelper = ({
|
|
21154
21214
|
content
|
|
21155
21215
|
}) => jsx("div", {
|
|
@@ -21414,6 +21474,13 @@ function TrustComponent(props) {
|
|
|
21414
21474
|
children: renderActiveForm(props.activeForm || trustForms.trustRegistrationDetails)
|
|
21415
21475
|
});
|
|
21416
21476
|
}
|
|
21477
|
+
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
21478
|
+
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
21479
|
+
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
21480
|
+
VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
|
|
21481
|
+
VerificationErrorType2["DATA_REVIEW"] = "dataReview";
|
|
21482
|
+
return VerificationErrorType2;
|
|
21483
|
+
})(VerificationErrorType || {});
|
|
21417
21484
|
const invalidInputRemediationActionMappings = {
|
|
21418
21485
|
"1_100": [],
|
|
21419
21486
|
"1_101": [],
|
|
@@ -21494,6 +21561,8 @@ const invalidInputRemediationActionMappings = {
|
|
|
21494
21561
|
"1_502": [{
|
|
21495
21562
|
key: DocumentType.REGISTRATION_DOCUMENT
|
|
21496
21563
|
}],
|
|
21564
|
+
// '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
|
|
21565
|
+
// '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
|
|
21497
21566
|
"1_503": [{
|
|
21498
21567
|
key: DocumentType.VAT_DOCUMENT
|
|
21499
21568
|
}],
|
|
@@ -21552,6 +21621,8 @@ const invalidInputRemediationActionMappings = {
|
|
|
21552
21621
|
};
|
|
21553
21622
|
const dataMissingRemediationsToFieldsMap = {
|
|
21554
21623
|
"1_501": [DocumentType.REGISTRATION_DOCUMENT],
|
|
21624
|
+
"1_503": [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO],
|
|
21625
|
+
"1_512": [DocumentType.VAT_DOCUMENT],
|
|
21555
21626
|
"2_158": ["vatNumber", "exemptedFromVat", "vatAbsenceReason"]
|
|
21556
21627
|
};
|
|
21557
21628
|
const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
|
|
@@ -21564,18 +21635,158 @@ const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
|
|
|
21564
21635
|
"2_8193": "2_185"
|
|
21565
21636
|
// Director
|
|
21566
21637
|
};
|
|
21638
|
+
const OVERRIDE_REMEDIATION_CODE = {
|
|
21639
|
+
// 1_501: Upload a registration document
|
|
21640
|
+
"1_501": {
|
|
21641
|
+
code: "1_503",
|
|
21642
|
+
message: "Upload a tax document"
|
|
21643
|
+
},
|
|
21644
|
+
// 1_502: Upload a different registration document
|
|
21645
|
+
"1_502": {
|
|
21646
|
+
code: "1_504",
|
|
21647
|
+
message: "Upload a different tax document"
|
|
21648
|
+
}
|
|
21649
|
+
};
|
|
21650
|
+
const OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS = {
|
|
21651
|
+
"1_5012": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21652
|
+
code: "1_500",
|
|
21653
|
+
message: "Update organization details"
|
|
21654
|
+
}],
|
|
21655
|
+
"1_5013": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21656
|
+
code: "1_500",
|
|
21657
|
+
message: "Update organization details"
|
|
21658
|
+
}],
|
|
21659
|
+
"1_5015": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21660
|
+
code: "1_500",
|
|
21661
|
+
message: "Update organization details"
|
|
21662
|
+
}],
|
|
21663
|
+
"1_5017": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
|
|
21664
|
+
code: "1_500",
|
|
21665
|
+
message: "Update organization details"
|
|
21666
|
+
}],
|
|
21667
|
+
"1_5020": [OVERRIDE_REMEDIATION_CODE["1_501"]],
|
|
21668
|
+
"1_5021": [OVERRIDE_REMEDIATION_CODE["1_502"]],
|
|
21669
|
+
"1_5022": [OVERRIDE_REMEDIATION_CODE["1_502"]],
|
|
21670
|
+
"1_5024": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
|
|
21671
|
+
code: "1_500",
|
|
21672
|
+
message: "Update organization details"
|
|
21673
|
+
}],
|
|
21674
|
+
"1_5035": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
|
|
21675
|
+
code: "1_500",
|
|
21676
|
+
message: "Update organization details"
|
|
21677
|
+
}]
|
|
21678
|
+
};
|
|
21679
|
+
const OVERRIDE_SUB_ERROR = {
|
|
21680
|
+
// 1_5012: The submitted company type didn't match the one on the registry
|
|
21681
|
+
"1_5012": {
|
|
21682
|
+
code: "1_5012",
|
|
21683
|
+
message: "The submitted company type didn't match the one on the registry",
|
|
21684
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21685
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5012"]
|
|
21686
|
+
},
|
|
21687
|
+
// 1_5013: The company was not found in the database
|
|
21688
|
+
"1_5013": {
|
|
21689
|
+
code: "1_5013",
|
|
21690
|
+
message: "The company was not found in the database",
|
|
21691
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21692
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5013"]
|
|
21693
|
+
},
|
|
21694
|
+
// 1_5015: The registration number didn't match the legal business name
|
|
21695
|
+
"1_5015": {
|
|
21696
|
+
code: "1_5017",
|
|
21697
|
+
message: "The tax ID number didn't match the legal business name",
|
|
21698
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21699
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5015"]
|
|
21700
|
+
},
|
|
21701
|
+
// 1_5017: The tax ID number didn't match the legal business name
|
|
21702
|
+
"1_5017": {
|
|
21703
|
+
code: "1_5017",
|
|
21704
|
+
message: "The tax ID number didn't match the legal business name",
|
|
21705
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21706
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5017"]
|
|
21707
|
+
},
|
|
21708
|
+
// 1_5020: Registration document is missing.
|
|
21709
|
+
"1_5020": {
|
|
21710
|
+
code: "1_5036",
|
|
21711
|
+
message: "Tax document is missing.",
|
|
21712
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21713
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5020"]
|
|
21714
|
+
},
|
|
21715
|
+
// 1_5021: The registration document was too low quality.
|
|
21716
|
+
"1_5021": {
|
|
21717
|
+
code: "1_5039",
|
|
21718
|
+
message: "The tax document was too low quality.",
|
|
21719
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21720
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5021"]
|
|
21721
|
+
},
|
|
21722
|
+
// 1_5022: The registration document was too old.
|
|
21723
|
+
"1_5022": {
|
|
21724
|
+
code: "1_5040",
|
|
21725
|
+
message: "The tax document was too old.",
|
|
21726
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21727
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5022"]
|
|
21728
|
+
},
|
|
21729
|
+
// 1_5024: The registration document did not show the company type
|
|
21730
|
+
"1_5024": {
|
|
21731
|
+
code: "1_5024",
|
|
21732
|
+
message: "The registration document did not show the company type",
|
|
21733
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21734
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5024"]
|
|
21735
|
+
},
|
|
21736
|
+
// 1_5035: The company registration document is not supported.
|
|
21737
|
+
"1_5035": {
|
|
21738
|
+
code: "1_5038",
|
|
21739
|
+
message: "The tax document wasn't a supported document type.",
|
|
21740
|
+
type: VerificationErrorType.INVALID_INPUT,
|
|
21741
|
+
remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5035"]
|
|
21742
|
+
}
|
|
21743
|
+
};
|
|
21744
|
+
const OVERRIDE_DATA_MISSING_ERROR = {
|
|
21745
|
+
// "'Registration document' was missing."
|
|
21746
|
+
"2_8141": {
|
|
21747
|
+
code: "2_8162",
|
|
21748
|
+
message: "'proofOfOrganizationTaxInfo' was missing",
|
|
21749
|
+
type: VerificationErrorType.DATA_MISSING,
|
|
21750
|
+
remediatingActions: [OVERRIDE_REMEDIATION_CODE["1_501"]]
|
|
21751
|
+
}
|
|
21752
|
+
};
|
|
21753
|
+
const overrideError = (verificationError) => {
|
|
21754
|
+
var _a, _b, _c;
|
|
21755
|
+
switch (verificationError.type) {
|
|
21756
|
+
case VerificationErrorType.DATA_MISSING:
|
|
21757
|
+
switch (verificationError.code) {
|
|
21758
|
+
case "2_8141":
|
|
21759
|
+
return OVERRIDE_DATA_MISSING_ERROR["2_8141"];
|
|
21760
|
+
default:
|
|
21761
|
+
return verificationError;
|
|
21762
|
+
}
|
|
21763
|
+
case VerificationErrorType.INVALID_INPUT:
|
|
21764
|
+
switch (verificationError.code) {
|
|
21765
|
+
case "1_50":
|
|
21766
|
+
return {
|
|
21767
|
+
...verificationError,
|
|
21768
|
+
subErrors: (_a = verificationError.subErrors) == null ? void 0 : _a.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
|
|
21769
|
+
};
|
|
21770
|
+
case "1_52":
|
|
21771
|
+
return {
|
|
21772
|
+
...verificationError,
|
|
21773
|
+
code: "1_53",
|
|
21774
|
+
message: "Tax document didn't meet requirements",
|
|
21775
|
+
remediatingActions: (_b = verificationError.remediatingActions) == null ? void 0 : _b.map((remediation) => OVERRIDE_REMEDIATION_CODE[remediation.code] ?? remediation),
|
|
21776
|
+
subErrors: (_c = verificationError.subErrors) == null ? void 0 : _c.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
|
|
21777
|
+
};
|
|
21778
|
+
default:
|
|
21779
|
+
return verificationError;
|
|
21780
|
+
}
|
|
21781
|
+
default:
|
|
21782
|
+
return verificationError;
|
|
21783
|
+
}
|
|
21784
|
+
};
|
|
21567
21785
|
var EntityType = /* @__PURE__ */ ((EntityType2) => {
|
|
21568
21786
|
EntityType2["BANK_ACCOUNT"] = "BankAccount";
|
|
21569
21787
|
EntityType2["LEGAL_ENTITY"] = "LegalEntity";
|
|
21570
21788
|
return EntityType2;
|
|
21571
21789
|
})(EntityType || {});
|
|
21572
|
-
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
21573
|
-
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
21574
|
-
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
21575
|
-
VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
|
|
21576
|
-
VerificationErrorType2["DATA_REVIEW"] = "dataReview";
|
|
21577
|
-
return VerificationErrorType2;
|
|
21578
|
-
})(VerificationErrorType || {});
|
|
21579
21790
|
const entityProblemInitialState = {
|
|
21580
21791
|
verificationErrors: {},
|
|
21581
21792
|
remediationActions: {},
|
|
@@ -21586,7 +21797,7 @@ const entityProblemInitialState = {
|
|
|
21586
21797
|
};
|
|
21587
21798
|
const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036", "2_8064", "2_8067", "2_8189"];
|
|
21588
21799
|
const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
|
|
21589
|
-
function getCapabilityProblems(response, isExperimentEnabled) {
|
|
21800
|
+
function getCapabilityProblems(response, country2, isExperimentEnabled) {
|
|
21590
21801
|
const capabilities = (response == null ? void 0 : response.capabilities) || {};
|
|
21591
21802
|
const capabilityProblems = {};
|
|
21592
21803
|
Object.values(capabilities).forEach(({
|
|
@@ -21601,17 +21812,23 @@ function getCapabilityProblems(response, isExperimentEnabled) {
|
|
|
21601
21812
|
} = problem.entity;
|
|
21602
21813
|
capabilityProblems[entityType2] = capabilityProblems[entityType2] || {};
|
|
21603
21814
|
capabilityProblems[entityType2][entityId] = capabilityProblems[entityType2][entityId] ?? getInitialProblemState(entityType2, entityId, response);
|
|
21604
|
-
setProblem(problem, capabilityProblems[entityType2][entityId], isExperimentEnabled);
|
|
21815
|
+
setProblem(problem, capabilityProblems[entityType2][entityId], country2, isExperimentEnabled);
|
|
21605
21816
|
}
|
|
21606
21817
|
});
|
|
21607
21818
|
}
|
|
21608
21819
|
});
|
|
21609
21820
|
return capabilityProblems;
|
|
21610
21821
|
}
|
|
21611
|
-
|
|
21822
|
+
const overrideVerificationErrors = (verificationErrors, country2) => verificationErrors.map((verificationError) => {
|
|
21823
|
+
if (country2 === "US") {
|
|
21824
|
+
return overrideError(verificationError);
|
|
21825
|
+
}
|
|
21826
|
+
return verificationError;
|
|
21827
|
+
});
|
|
21828
|
+
function setProblem(problem, entityProblems, country2, isExperimentEnabled) {
|
|
21612
21829
|
var _a;
|
|
21613
21830
|
if ((_a = problem.verificationErrors) == null ? void 0 : _a.length) {
|
|
21614
|
-
problem.verificationErrors.forEach((error) => {
|
|
21831
|
+
overrideVerificationErrors(problem.verificationErrors, country2).forEach((error) => {
|
|
21615
21832
|
setVerificationError(error, entityProblems, isExperimentEnabled);
|
|
21616
21833
|
});
|
|
21617
21834
|
}
|
|
@@ -22249,7 +22466,7 @@ const defaultPayoutAccountFormat = {
|
|
|
22249
22466
|
[CountryCodes.Sweden]: "local",
|
|
22250
22467
|
[CountryCodes.UnitedKingdom]: "local"
|
|
22251
22468
|
};
|
|
22252
|
-
const logger$
|
|
22469
|
+
const logger$f = createLogger("useScenarioConfiguration");
|
|
22253
22470
|
const useScenarioConfiguration = ({
|
|
22254
22471
|
getConfigurationData,
|
|
22255
22472
|
getPayoutAccountFormatData,
|
|
@@ -22272,12 +22489,12 @@ const useScenarioConfiguration = ({
|
|
|
22272
22489
|
const response = await getConfigurationData();
|
|
22273
22490
|
setConfigurationResponse(response);
|
|
22274
22491
|
} catch (err) {
|
|
22275
|
-
logger$
|
|
22492
|
+
logger$f.warn("WARNING: Configuration request failed - error:", err);
|
|
22276
22493
|
} finally {
|
|
22277
22494
|
setLoadingStatus("success");
|
|
22278
22495
|
}
|
|
22279
22496
|
};
|
|
22280
|
-
makeConfigCallAndSave().catch(logger$
|
|
22497
|
+
makeConfigCallAndSave().catch(logger$f.error);
|
|
22281
22498
|
}, [getConfigurationData, setLoadingStatus]);
|
|
22282
22499
|
useEffect(() => {
|
|
22283
22500
|
setLoadingStatus("loading");
|
|
@@ -22296,12 +22513,12 @@ const useScenarioConfiguration = ({
|
|
|
22296
22513
|
const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
|
|
22297
22514
|
setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
|
|
22298
22515
|
} catch (err) {
|
|
22299
|
-
logger$
|
|
22516
|
+
logger$f.warn("WARNING: Payout format request failed - error:", err);
|
|
22300
22517
|
} finally {
|
|
22301
22518
|
setLoadingStatus("success");
|
|
22302
22519
|
}
|
|
22303
22520
|
};
|
|
22304
|
-
makePayoutFormatCallAndSave().catch(logger$
|
|
22521
|
+
makePayoutFormatCallAndSave().catch(logger$f.error);
|
|
22305
22522
|
}, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
|
|
22306
22523
|
const {
|
|
22307
22524
|
fieldConfigurations,
|
|
@@ -22769,7 +22986,12 @@ const showRemediationField = (field, remediationActions) => remediationActions.s
|
|
|
22769
22986
|
var _a;
|
|
22770
22987
|
return ((_a = rem.fields) == null ? void 0 : _a.includes(field)) && remediationHasFileUploadField(rem);
|
|
22771
22988
|
});
|
|
22772
|
-
const makeTLDSFieldName = (formId, fieldName) =>
|
|
22989
|
+
const makeTLDSFieldName = (formId, fieldName) => {
|
|
22990
|
+
if (fieldName === DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO) {
|
|
22991
|
+
return `${formId}.taxDocument`;
|
|
22992
|
+
}
|
|
22993
|
+
return `${formId}.${fieldName}`;
|
|
22994
|
+
};
|
|
22773
22995
|
const isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
|
|
22774
22996
|
const dataMissingRemediations = dataMissingErrors.flatMap((error) => error.remediatingActions).filter((remediatingAction) => remediatingAction.code in dataMissingRemediationsToFieldsMap);
|
|
22775
22997
|
const missingFields = dataMissingRemediations.flatMap((remediatingAction) => dataMissingRemediationsToFieldsMap[remediatingAction.code]).map((missingField) => makeTLDSFieldName(formId, missingField));
|
|
@@ -22900,8 +23122,6 @@ const getFieldsWithExistingData = (legalEntity, isExperimentEnabled) => {
|
|
|
22900
23122
|
}
|
|
22901
23123
|
return nonDocumentFields;
|
|
22902
23124
|
};
|
|
22903
|
-
const _businessTypeSelection_component = "";
|
|
22904
|
-
const _heading_component = "";
|
|
22905
23125
|
const headingTypes = {
|
|
22906
23126
|
1: ({
|
|
22907
23127
|
children,
|
|
@@ -22951,7 +23171,6 @@ function Heading({
|
|
|
22951
23171
|
children
|
|
22952
23172
|
});
|
|
22953
23173
|
}
|
|
22954
|
-
const _toast = "";
|
|
22955
23174
|
var ToastType = /* @__PURE__ */ ((ToastType2) => {
|
|
22956
23175
|
ToastType2["LOADING"] = "loading";
|
|
22957
23176
|
ToastType2["SUCCESS"] = "success";
|
|
@@ -23143,7 +23362,8 @@ const BusinessTypeSelection = ({
|
|
|
23143
23362
|
handleUpdateLegalEntity,
|
|
23144
23363
|
taskHistory,
|
|
23145
23364
|
setTaskHistory,
|
|
23146
|
-
onNavigateTo
|
|
23365
|
+
onNavigateTo,
|
|
23366
|
+
baseTrackingPayload
|
|
23147
23367
|
}) => {
|
|
23148
23368
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
23149
23369
|
const {
|
|
@@ -23196,6 +23416,26 @@ const BusinessTypeSelection = ({
|
|
|
23196
23416
|
var _a2, _b2;
|
|
23197
23417
|
setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
|
|
23198
23418
|
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
23419
|
+
useEffect(() => {
|
|
23420
|
+
userEvents.addPageView("Entity Selection");
|
|
23421
|
+
const startDropOffTrackingEvent = () => {
|
|
23422
|
+
userEvents.addEvent("Started legal entity selection", {
|
|
23423
|
+
segmentation: baseTrackingPayload
|
|
23424
|
+
});
|
|
23425
|
+
};
|
|
23426
|
+
const stopDropOffTrackingEvent = () => {
|
|
23427
|
+
userEvents.addEvent("Drop off at legal entity selection", {
|
|
23428
|
+
segmentation: baseTrackingPayload
|
|
23429
|
+
});
|
|
23430
|
+
};
|
|
23431
|
+
startDropOffTrackingEvent();
|
|
23432
|
+
window.addEventListener("focus", startDropOffTrackingEvent);
|
|
23433
|
+
window.addEventListener("blur", stopDropOffTrackingEvent);
|
|
23434
|
+
return () => {
|
|
23435
|
+
window.removeEventListener("focus", startDropOffTrackingEvent);
|
|
23436
|
+
window.removeEventListener("blur", stopDropOffTrackingEvent);
|
|
23437
|
+
};
|
|
23438
|
+
}, []);
|
|
23199
23439
|
const handleNextClick = async () => {
|
|
23200
23440
|
var _a2;
|
|
23201
23441
|
if (loadingStatus === "loading")
|
|
@@ -23227,11 +23467,17 @@ const BusinessTypeSelection = ({
|
|
|
23227
23467
|
return;
|
|
23228
23468
|
}
|
|
23229
23469
|
await updateLegalEntityAndSelectAccountHolder();
|
|
23470
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
23471
|
+
segmentation: baseTrackingPayload
|
|
23472
|
+
});
|
|
23230
23473
|
} else {
|
|
23231
23474
|
onAccountHolderSelect(newAccountHolder);
|
|
23232
23475
|
}
|
|
23233
23476
|
if (isLegalArrangementChanging) {
|
|
23234
23477
|
await updateLegalEntityAndSelectAccountHolder();
|
|
23478
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
23479
|
+
segmentation: baseTrackingPayload
|
|
23480
|
+
});
|
|
23235
23481
|
}
|
|
23236
23482
|
}
|
|
23237
23483
|
};
|
|
@@ -23471,8 +23717,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
|
|
|
23471
23717
|
}
|
|
23472
23718
|
return currentLegalEntityType;
|
|
23473
23719
|
};
|
|
23474
|
-
const
|
|
23475
|
-
const logger$d = createLogger("FormRouterContextProvider");
|
|
23720
|
+
const logger$e = createLogger("FormRouterContextProvider");
|
|
23476
23721
|
function FormRouterContextProvider({
|
|
23477
23722
|
children,
|
|
23478
23723
|
forms: forms2,
|
|
@@ -23492,7 +23737,7 @@ function FormRouterContextProvider({
|
|
|
23492
23737
|
if (formIndex > -1) {
|
|
23493
23738
|
setFormIndex(formIndex);
|
|
23494
23739
|
} else {
|
|
23495
|
-
logger$
|
|
23740
|
+
logger$e.error("No form was found to have that field so form navigation failed.");
|
|
23496
23741
|
}
|
|
23497
23742
|
}
|
|
23498
23743
|
}), [forms2, handleGetIdVerificationToken, setFormIndex]);
|
|
@@ -23501,7 +23746,6 @@ function FormRouterContextProvider({
|
|
|
23501
23746
|
children
|
|
23502
23747
|
});
|
|
23503
23748
|
}
|
|
23504
|
-
const DropinLayout$1 = "";
|
|
23505
23749
|
const DropinLayout = (props) => {
|
|
23506
23750
|
const {
|
|
23507
23751
|
content,
|
|
@@ -23521,8 +23765,6 @@ const DropinLayout = (props) => {
|
|
|
23521
23765
|
})]
|
|
23522
23766
|
});
|
|
23523
23767
|
};
|
|
23524
|
-
const FormNavigation$1 = "";
|
|
23525
|
-
const FormNavigationItem$1 = "";
|
|
23526
23768
|
const FormNavigationItem = ({
|
|
23527
23769
|
form,
|
|
23528
23770
|
isActive,
|
|
@@ -24094,9 +24336,7 @@ function CompanyDropinComponent({
|
|
|
24094
24336
|
})
|
|
24095
24337
|
});
|
|
24096
24338
|
}
|
|
24097
|
-
const
|
|
24098
|
-
const CompanyLookupComponent$1 = "";
|
|
24099
|
-
const logger$c = createLogger("useCompanySearch");
|
|
24339
|
+
const logger$d = createLogger("useCompanySearch");
|
|
24100
24340
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
24101
24341
|
function useCompanySearch({
|
|
24102
24342
|
defaultData,
|
|
@@ -24235,7 +24475,7 @@ function useCompanySearch({
|
|
|
24235
24475
|
state: companyData.state ?? stateOrProvince2
|
|
24236
24476
|
});
|
|
24237
24477
|
} catch (e) {
|
|
24238
|
-
logger$
|
|
24478
|
+
logger$d.error(e);
|
|
24239
24479
|
setError(e);
|
|
24240
24480
|
setStatus("error");
|
|
24241
24481
|
} finally {
|
|
@@ -24268,7 +24508,7 @@ function useCompanySearch({
|
|
|
24268
24508
|
indexSearch: handleCompanyIndexSearch,
|
|
24269
24509
|
deepSearch: handleCompanyDeepSearch,
|
|
24270
24510
|
resultsLimit: limit
|
|
24271
|
-
})) == null ? void 0 : _a.catch((e) => logger$
|
|
24511
|
+
})) == null ? void 0 : _a.catch((e) => logger$d.error(e));
|
|
24272
24512
|
}
|
|
24273
24513
|
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
|
|
24274
24514
|
useEffect(() => {
|
|
@@ -24369,7 +24609,6 @@ const CompanyLookupResultsHeader = ({
|
|
|
24369
24609
|
})]
|
|
24370
24610
|
});
|
|
24371
24611
|
};
|
|
24372
|
-
const LookupResult$1 = "";
|
|
24373
24612
|
const LookupResultBody = ({
|
|
24374
24613
|
registrationNumber: registrationNumber2,
|
|
24375
24614
|
address: address2
|
|
@@ -25005,7 +25244,6 @@ function CompanyBasics({
|
|
|
25005
25244
|
});
|
|
25006
25245
|
}
|
|
25007
25246
|
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));
|
|
25008
|
-
const CompanyOtherDetailsComponent$1 = "";
|
|
25009
25247
|
const BUSINESS_REGISTRATION_NUMBER_FIELD = ["registrationNumber", "exemptedFromRegistrationNumber"];
|
|
25010
25248
|
function BusinessRegistrationNumberField({
|
|
25011
25249
|
data,
|
|
@@ -25572,7 +25810,6 @@ function CompanyOtherDetails({
|
|
|
25572
25810
|
});
|
|
25573
25811
|
}
|
|
25574
25812
|
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);
|
|
25575
|
-
const CompanyStructureComponent$1 = "";
|
|
25576
25813
|
const CompanyStructureValidation = {
|
|
25577
25814
|
entityType: {
|
|
25578
25815
|
modes: ["blur"],
|
|
@@ -25914,7 +26151,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
|
|
|
25914
26151
|
}
|
|
25915
26152
|
}, {});
|
|
25916
26153
|
};
|
|
25917
|
-
const logger$
|
|
26154
|
+
const logger$c = createLogger("useFormTaskSubmit");
|
|
25918
26155
|
function useCompanySearchTaskSubmit({
|
|
25919
26156
|
task,
|
|
25920
26157
|
forms: forms2,
|
|
@@ -25960,7 +26197,7 @@ function useCompanySearchTaskSubmit({
|
|
|
25960
26197
|
});
|
|
25961
26198
|
}
|
|
25962
26199
|
} catch (e) {
|
|
25963
|
-
logger$
|
|
26200
|
+
logger$c.error(e);
|
|
25964
26201
|
}
|
|
25965
26202
|
}, [baseTrackingPayload, documentUtils]);
|
|
25966
26203
|
const submit2 = useCallback(async ({
|
|
@@ -26004,7 +26241,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26004
26241
|
...trackingPayload
|
|
26005
26242
|
}
|
|
26006
26243
|
});
|
|
26007
|
-
logger$
|
|
26244
|
+
logger$c.log(submittedLegalEntity);
|
|
26008
26245
|
setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
|
|
26009
26246
|
clearToasts();
|
|
26010
26247
|
onExternalSubmit == null ? void 0 : onExternalSubmit(data);
|
|
@@ -26029,7 +26266,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26029
26266
|
type: ToastType.ERROR
|
|
26030
26267
|
});
|
|
26031
26268
|
}
|
|
26032
|
-
logger$
|
|
26269
|
+
logger$c.error(e);
|
|
26033
26270
|
userEvents.addEvent("Encountered error company details", {
|
|
26034
26271
|
segmentation: {
|
|
26035
26272
|
...baseTrackingPayload,
|
|
@@ -26166,7 +26403,7 @@ function CompanySearchComponent(props) {
|
|
|
26166
26403
|
heading: i18n.get(forms.companyTaxDocument.formName),
|
|
26167
26404
|
description: i18n.get(forms.companyTaxDocument.formDescription),
|
|
26168
26405
|
documentField: "taxDocument",
|
|
26169
|
-
documentType: country2
|
|
26406
|
+
documentType: country2 === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
|
|
26170
26407
|
guidanceContent: jsxs(Fragment, {
|
|
26171
26408
|
children: [jsx("div", {
|
|
26172
26409
|
className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
|
|
@@ -26241,11 +26478,11 @@ function CompanySearchDropinComponent({
|
|
|
26241
26478
|
} = useExperimentsContext();
|
|
26242
26479
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
26243
26480
|
const [initialData, setInitialData] = useState(mapLegalEntityToCompanySearchSchema(legalEntityResponse));
|
|
26244
|
-
const [problems, setProblems] = useState(propProblems ?? ((_b = (_a = getCapabilityProblems(legalEntityResponse, isExperimentEnabled)) == null ? void 0 : _a.LegalEntity) == null ? void 0 : _b[legalEntityResponse.id]));
|
|
26245
26481
|
const country2 = useMemo(() => {
|
|
26246
26482
|
var _a2;
|
|
26247
26483
|
return ((_a2 = currentState.data.companyBasics) == null ? void 0 : _a2.country) ?? parentCountry;
|
|
26248
|
-
}, [(
|
|
26484
|
+
}, [(_a = currentState.data.companyBasics) == null ? void 0 : _a.country, parentCountry]);
|
|
26485
|
+
const [problems, setProblems] = useState(propProblems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, country2, isExperimentEnabled)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id]));
|
|
26249
26486
|
const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
|
|
26250
26487
|
useEffect(() => {
|
|
26251
26488
|
var _a2;
|
|
@@ -26458,6 +26695,24 @@ const useShouldShowIntroduction = ({
|
|
|
26458
26695
|
});
|
|
26459
26696
|
return canSeeIntroduction && !hasSeenIntroduction;
|
|
26460
26697
|
};
|
|
26698
|
+
const logger$b = createLogger("useAssociatedLegalArrangement");
|
|
26699
|
+
function useAssociatedLegalArrangement({
|
|
26700
|
+
rootLegalEntity,
|
|
26701
|
+
getLegalEntity: getLegalEntity2
|
|
26702
|
+
}) {
|
|
26703
|
+
const [associatedLegalArrangement, setAssociatedLegalArrangement] = useState();
|
|
26704
|
+
const getAssociatedEntity = useCallback(async (entityId) => getLegalEntity2 == null ? void 0 : getLegalEntity2(entityId), [getLegalEntity2]);
|
|
26705
|
+
useEffect(() => {
|
|
26706
|
+
var _a;
|
|
26707
|
+
const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
|
|
26708
|
+
if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
|
|
26709
|
+
getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$b.error);
|
|
26710
|
+
}
|
|
26711
|
+
}, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
|
|
26712
|
+
return {
|
|
26713
|
+
associatedLegalArrangement
|
|
26714
|
+
};
|
|
26715
|
+
}
|
|
26461
26716
|
const useShouldShowBusinessTypeSelection = (accountHolder2) => {
|
|
26462
26717
|
const {
|
|
26463
26718
|
isExperimentEnabled
|
|
@@ -26535,36 +26790,6 @@ const saveBlobAsFile = (fileData, filename) => {
|
|
|
26535
26790
|
window.URL.revokeObjectURL(blobUrl);
|
|
26536
26791
|
}
|
|
26537
26792
|
};
|
|
26538
|
-
const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
|
|
26539
|
-
var _a, _b, _c, _d, _e;
|
|
26540
|
-
if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
|
|
26541
|
-
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) ?? ""}`;
|
|
26542
|
-
}
|
|
26543
|
-
return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
|
|
26544
|
-
};
|
|
26545
|
-
const getPayoutAccountHolderName = (legalEntity, i18n) => {
|
|
26546
|
-
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
26547
|
-
const trustAssociation = ownAssociations.find(({
|
|
26548
|
-
type
|
|
26549
|
-
}) => type === LegalEntityType.TRUST);
|
|
26550
|
-
if (trustAssociation == null ? void 0 : trustAssociation.name) {
|
|
26551
|
-
const trustName = trustAssociation.name;
|
|
26552
|
-
const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
|
|
26553
|
-
return i18n.get("trusteeAsTrusteeForTrust", {
|
|
26554
|
-
values: {
|
|
26555
|
-
trustName,
|
|
26556
|
-
trusteeName
|
|
26557
|
-
}
|
|
26558
|
-
});
|
|
26559
|
-
}
|
|
26560
|
-
const solePropAssociation = ownAssociations.find(({
|
|
26561
|
-
type
|
|
26562
|
-
}) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
|
|
26563
|
-
if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
|
|
26564
|
-
return solePropAssociation.name;
|
|
26565
|
-
}
|
|
26566
|
-
return getLegalEntityNameBasedOnType(legalEntity);
|
|
26567
|
-
};
|
|
26568
26793
|
const isNewEntity = Symbol("isNewEntity");
|
|
26569
26794
|
const splitAtFirstOccurrence = (str, separator) => {
|
|
26570
26795
|
const firstOccurrence = str.indexOf(separator);
|
|
@@ -26840,7 +27065,6 @@ function AccountSetupRejected() {
|
|
|
26840
27065
|
content
|
|
26841
27066
|
});
|
|
26842
27067
|
}
|
|
26843
|
-
const DecisionMakers = "";
|
|
26844
27068
|
function useDataMissingRemediations({
|
|
26845
27069
|
legalEntityId,
|
|
26846
27070
|
problems
|
|
@@ -26884,7 +27108,6 @@ const iconStatus = (current, min, max) => {
|
|
|
26884
27108
|
return isWithinConditionalRange ? "conditionalFinished" : "conditionalEmpty";
|
|
26885
27109
|
};
|
|
26886
27110
|
const getEntityStatusRuleDescription = (country2, currentTask, entityLabel) => currentTask === TaskTypes.TRUST_MEMBER_OVERVIEW ? TRUST_DEFAULT_DESCRIPTIONS_MAP[entityLabel] : getDecisionMakerDescriptionMap(country2)[entityLabel];
|
|
26887
|
-
const _cardGroup_component = "";
|
|
26888
27111
|
function CardGroup({
|
|
26889
27112
|
className,
|
|
26890
27113
|
children
|
|
@@ -26894,8 +27117,6 @@ function CardGroup({
|
|
|
26894
27117
|
children
|
|
26895
27118
|
});
|
|
26896
27119
|
}
|
|
26897
|
-
const _entityAssociation_component = "";
|
|
26898
|
-
const Status$1 = "";
|
|
26899
27120
|
const Status = ({
|
|
26900
27121
|
text,
|
|
26901
27122
|
className,
|
|
@@ -27038,7 +27259,6 @@ const VerificationErrorAlert = ({
|
|
|
27038
27259
|
title: i18n.get("verificationErrorMessage")
|
|
27039
27260
|
});
|
|
27040
27261
|
};
|
|
27041
|
-
const _card_component = "";
|
|
27042
27262
|
function Card({
|
|
27043
27263
|
className,
|
|
27044
27264
|
children,
|
|
@@ -27091,7 +27311,6 @@ function Card({
|
|
|
27091
27311
|
})]
|
|
27092
27312
|
});
|
|
27093
27313
|
}
|
|
27094
|
-
const ActionsMenu$1 = "";
|
|
27095
27314
|
function useClickAwayListener(ref, onClickAway) {
|
|
27096
27315
|
const handleClickAway = useCallback((event) => {
|
|
27097
27316
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -27301,7 +27520,6 @@ const EntityAssociation = ({
|
|
|
27301
27520
|
}), infoContent]
|
|
27302
27521
|
});
|
|
27303
27522
|
};
|
|
27304
|
-
const EntityGuidanceStatus$1 = "";
|
|
27305
27523
|
const EntityStatusIcon = ({
|
|
27306
27524
|
status
|
|
27307
27525
|
}) => {
|
|
@@ -27568,7 +27786,6 @@ const DecisionMakersComponent = ({
|
|
|
27568
27786
|
})
|
|
27569
27787
|
});
|
|
27570
27788
|
};
|
|
27571
|
-
const Shimmer$1 = "";
|
|
27572
27789
|
function Shimmer() {
|
|
27573
27790
|
return jsxs("div", {
|
|
27574
27791
|
children: [jsx("div", {
|
|
@@ -27582,7 +27799,6 @@ function Shimmer() {
|
|
|
27582
27799
|
})]
|
|
27583
27800
|
});
|
|
27584
27801
|
}
|
|
27585
|
-
const _introduction_component = "";
|
|
27586
27802
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
27587
27803
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
27588
27804
|
IntroductionScreens2[IntroductionScreens2["COMPANY"] = TaskTypes.COMPANY] = "COMPANY";
|
|
@@ -27628,7 +27844,6 @@ const useIntroductionScreens = ({
|
|
|
27628
27844
|
}) : [], [legalEntityType, tasks]);
|
|
27629
27845
|
return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
|
|
27630
27846
|
};
|
|
27631
|
-
const StepProgressIndicator$1 = "";
|
|
27632
27847
|
const StepProgressIndicator = ({
|
|
27633
27848
|
activeStepIndex,
|
|
27634
27849
|
stepsCount
|
|
@@ -27907,7 +28122,6 @@ function ReviewComponent({
|
|
|
27907
28122
|
footer
|
|
27908
28123
|
});
|
|
27909
28124
|
}
|
|
27910
|
-
const TaskList = "";
|
|
27911
28125
|
const businessTypeMapping = {
|
|
27912
28126
|
myName: {
|
|
27913
28127
|
[LegalEntityType.INDIVIDUAL]: "individual"
|
|
@@ -27954,7 +28168,6 @@ const hasPayoutAccount = (legalEntityResponse) => {
|
|
|
27954
28168
|
var _a;
|
|
27955
28169
|
return Boolean((_a = legalEntityResponse.transferInstruments) == null ? void 0 : _a.length);
|
|
27956
28170
|
};
|
|
27957
|
-
const TaskListItem$1 = "";
|
|
27958
28171
|
const TaskListItem = ({
|
|
27959
28172
|
title,
|
|
27960
28173
|
tagline,
|
|
@@ -28079,7 +28292,6 @@ const PayoutAccountTaskListItem = ({
|
|
|
28079
28292
|
handleIsRemoveDisabled: setIsRemoveDisabled
|
|
28080
28293
|
});
|
|
28081
28294
|
};
|
|
28082
|
-
const TaskListGroup$1 = "";
|
|
28083
28295
|
const TaskListGroup = ({
|
|
28084
28296
|
title,
|
|
28085
28297
|
children
|
|
@@ -28103,6 +28315,7 @@ const LEGAL_ENTITY_BASE_TASKS = [TaskTypes.INDIVIDUAL, TaskTypes.COMPANY, TaskTy
|
|
|
28103
28315
|
const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
|
|
28104
28316
|
function TaskListComponent({
|
|
28105
28317
|
tasks,
|
|
28318
|
+
trackingConfig,
|
|
28106
28319
|
onNavigateToTask,
|
|
28107
28320
|
legalEntityResponse,
|
|
28108
28321
|
capabilityProblems,
|
|
@@ -28168,6 +28381,17 @@ function TaskListComponent({
|
|
|
28168
28381
|
const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
|
|
28169
28382
|
const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
28170
28383
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
28384
|
+
const onEditBusinessSetupClick = () => {
|
|
28385
|
+
const baseTrackingPayload = getBaseTrackingPayload({
|
|
28386
|
+
trackingConfig,
|
|
28387
|
+
legalEntity: legalEntityResponse,
|
|
28388
|
+
task: tasks[tasks.length - 1]
|
|
28389
|
+
});
|
|
28390
|
+
userEvents.addEvent("Clicked back to legal entity selection", {
|
|
28391
|
+
segmentation: baseTrackingPayload
|
|
28392
|
+
});
|
|
28393
|
+
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
28394
|
+
};
|
|
28171
28395
|
return jsxs("div", {
|
|
28172
28396
|
children: [canSeeIntroduction && jsx("div", {
|
|
28173
28397
|
className: "adyen-task-list__nav",
|
|
@@ -28196,7 +28420,7 @@ function TaskListComponent({
|
|
|
28196
28420
|
icon: "edit",
|
|
28197
28421
|
ghost: true,
|
|
28198
28422
|
circle: true,
|
|
28199
|
-
onClick:
|
|
28423
|
+
onClick: onEditBusinessSetupClick,
|
|
28200
28424
|
className: "adl-u-margin-left-4",
|
|
28201
28425
|
type: "button"
|
|
28202
28426
|
})]
|
|
@@ -28312,7 +28536,6 @@ function TaskListComponent({
|
|
|
28312
28536
|
})]
|
|
28313
28537
|
});
|
|
28314
28538
|
}
|
|
28315
|
-
const TrustMembersOverview$1 = "";
|
|
28316
28539
|
const CompanyTrustMemberTaskItem = ({
|
|
28317
28540
|
companyTrustMember,
|
|
28318
28541
|
taskStatus,
|
|
@@ -29158,7 +29381,7 @@ const useBankConfigurationHandlers = ({
|
|
|
29158
29381
|
getBankVerificationVendorsHandler
|
|
29159
29382
|
};
|
|
29160
29383
|
};
|
|
29161
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-
|
|
29384
|
+
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-DiGhP2MG.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") });
|
|
29162
29385
|
const getAccountFormatsForCountry = async (country2) => {
|
|
29163
29386
|
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
29164
29387
|
if (!importForCountry) {
|
|
@@ -29239,6 +29462,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29239
29462
|
handleCreateTransferInstrument,
|
|
29240
29463
|
handleGetBankVerificationVendors,
|
|
29241
29464
|
legalEntityResponse,
|
|
29465
|
+
associatedLegalArrangement,
|
|
29242
29466
|
trackingConfig,
|
|
29243
29467
|
accountHolder: accountHolder2,
|
|
29244
29468
|
problems: propProblems,
|
|
@@ -29313,7 +29537,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29313
29537
|
const [hideBackButton, setHideBackButton] = useState(false);
|
|
29314
29538
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
29315
29539
|
const [data, setData] = useState(prefilledData);
|
|
29316
|
-
const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_c = (_b = getCapabilityProblems(legalEntityResponse)) == null ? void 0 : _b.BankAccount) == null ? void 0 : _c[transferInstrument.id] : void 0));
|
|
29540
|
+
const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_c = (_b = getCapabilityProblems(legalEntityResponse, bankAccountCountry2)) == null ? void 0 : _b.BankAccount) == null ? void 0 : _c[transferInstrument.id] : void 0));
|
|
29317
29541
|
const existingBankAccountFormat = transferInstrument ? ((_d = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _d.iban) ? "iban" : "local" : void 0;
|
|
29318
29542
|
const baseTrackingPayload = getBaseTrackingPayload({
|
|
29319
29543
|
trackingConfig,
|
|
@@ -29529,9 +29753,9 @@ function PayoutDetailsDropinComponent({
|
|
|
29529
29753
|
}
|
|
29530
29754
|
};
|
|
29531
29755
|
const isDocumentsRequired2 = (forms22) => forms22.some((form) => form.formId === payoutDetailsSteps.payoutAccountDocuments.formId);
|
|
29532
|
-
const formatFileSummaryData2 = (
|
|
29756
|
+
const formatFileSummaryData2 = (bankDocuments) => {
|
|
29533
29757
|
var _a2;
|
|
29534
|
-
const bankStatementDocument2 = (_a2 =
|
|
29758
|
+
const bankStatementDocument2 = (_a2 = bankDocuments == null ? void 0 : bankDocuments.bankStatementDocument) == null ? void 0 : _a2[0];
|
|
29535
29759
|
return {
|
|
29536
29760
|
...bankStatementDocument2 && {
|
|
29537
29761
|
fileName: bankStatementDocument2.name
|
|
@@ -29636,6 +29860,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29636
29860
|
setSkipSubmit,
|
|
29637
29861
|
onChange,
|
|
29638
29862
|
legalEntityResponse,
|
|
29863
|
+
associatedLegalArrangement,
|
|
29639
29864
|
handleGetBankVerificationVendors: getBankVerificationVendorsHandler,
|
|
29640
29865
|
instantVerificationEnabled,
|
|
29641
29866
|
refreshLegalEntity,
|
|
@@ -29646,7 +29871,6 @@ function PayoutDetailsDropinComponent({
|
|
|
29646
29871
|
})
|
|
29647
29872
|
});
|
|
29648
29873
|
}
|
|
29649
|
-
const ContractViewer$1 = "";
|
|
29650
29874
|
function ContractViewer({
|
|
29651
29875
|
contract,
|
|
29652
29876
|
className,
|
|
@@ -31472,6 +31696,12 @@ function DropinComposerComponent({
|
|
|
31472
31696
|
const [taskHistory, setTaskHistory] = useState([initialTask]);
|
|
31473
31697
|
const [rootLegalEntity, setRootLegalEntity] = useState(legalEntityResponse);
|
|
31474
31698
|
const [associatedLegalEntity, setAssociatedLegalEntity] = useState(null);
|
|
31699
|
+
const {
|
|
31700
|
+
associatedLegalArrangement
|
|
31701
|
+
} = useAssociatedLegalArrangement({
|
|
31702
|
+
rootLegalEntity,
|
|
31703
|
+
getLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
|
|
31704
|
+
});
|
|
31475
31705
|
const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
|
|
31476
31706
|
const [legalEntityType, setLegalEntityType] = useState(null);
|
|
31477
31707
|
const [solePropietor, setSolePropietor] = useState(null);
|
|
@@ -31486,9 +31716,9 @@ function DropinComposerComponent({
|
|
|
31486
31716
|
const [serviceAgreementTypes, setServiceAgreementTypes] = useState([]);
|
|
31487
31717
|
const [serviceAgreementAcceptanceInfos, setServiceAgreementAcceptanceInfos] = useState([]);
|
|
31488
31718
|
const [transferInstrument, setTransferInstrument] = useState(null);
|
|
31489
|
-
const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, isExperimentEnabled));
|
|
31490
|
-
const [bankVerificationVendors, setBankVerificationVendors] = useState();
|
|
31491
31719
|
const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? (_a = rootLegalEntity.individual.residentialAddress) == null ? void 0 : _a.country : (_b = rootLegalEntity.organization.registeredAddress) == null ? void 0 : _b.country;
|
|
31720
|
+
const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled));
|
|
31721
|
+
const [bankVerificationVendors, setBankVerificationVendors] = useState();
|
|
31492
31722
|
const hasTrust = accountHolder2 === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
31493
31723
|
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);
|
|
31494
31724
|
const additionalSalesChannels = useSalesChannelsSettings();
|
|
@@ -31595,7 +31825,7 @@ function DropinComposerComponent({
|
|
|
31595
31825
|
try {
|
|
31596
31826
|
const response = await (args == null ? void 0 : args.handleGetLegalEntity(rootLegalEntity.id));
|
|
31597
31827
|
setRootLegalEntity(response);
|
|
31598
|
-
setCapabilityProblems(getCapabilityProblems(response));
|
|
31828
|
+
setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
|
|
31599
31829
|
return response;
|
|
31600
31830
|
} catch (e) {
|
|
31601
31831
|
logger$8.warn(i18n.get("failedToFetchLegalEntityDetails"));
|
|
@@ -32007,7 +32237,11 @@ function DropinComposerComponent({
|
|
|
32007
32237
|
},
|
|
32008
32238
|
taskHistory,
|
|
32009
32239
|
setTaskHistory,
|
|
32010
|
-
onNavigateTo
|
|
32240
|
+
onNavigateTo,
|
|
32241
|
+
trackingConfig: {
|
|
32242
|
+
topLevelLegalEntity: legalEntityResponse
|
|
32243
|
+
},
|
|
32244
|
+
eventEmitter
|
|
32011
32245
|
})
|
|
32012
32246
|
});
|
|
32013
32247
|
case TaskTypes.INTRODUCTION:
|
|
@@ -32023,6 +32257,9 @@ function DropinComposerComponent({
|
|
|
32023
32257
|
return jsx(AccountSetupRejected, {});
|
|
32024
32258
|
case TaskTypes.TASKS_OVERVIEW:
|
|
32025
32259
|
return jsx(TaskListComponent, {
|
|
32260
|
+
trackingConfig: {
|
|
32261
|
+
topLevelLegalEntity: legalEntityResponse
|
|
32262
|
+
},
|
|
32026
32263
|
onNavigateToTask: navigateTo,
|
|
32027
32264
|
tasks,
|
|
32028
32265
|
legalEntityResponse: rootLegalEntity,
|
|
@@ -32240,6 +32477,7 @@ function DropinComposerComponent({
|
|
|
32240
32477
|
transferInstrument,
|
|
32241
32478
|
setTransferInstrument,
|
|
32242
32479
|
legalEntityResponse: rootLegalEntity,
|
|
32480
|
+
associatedLegalArrangement,
|
|
32243
32481
|
refreshLegalEntity,
|
|
32244
32482
|
accountHolder: getPayoutAccountHolderName(rootLegalEntity, i18n),
|
|
32245
32483
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
@@ -32878,6 +33116,12 @@ function CreateTransferInstrumentComponent({
|
|
|
32878
33116
|
} = useComponentApi(legalEntityId);
|
|
32879
33117
|
const [legalEntity, setLegalEntity] = useState();
|
|
32880
33118
|
const [transferInstrument, setTransferInstrument] = useState();
|
|
33119
|
+
const {
|
|
33120
|
+
associatedLegalArrangement
|
|
33121
|
+
} = useAssociatedLegalArrangement({
|
|
33122
|
+
rootLegalEntity: legalEntity,
|
|
33123
|
+
getLegalEntity: getLegalEntity2
|
|
33124
|
+
});
|
|
32881
33125
|
const fetchLegalEntity = useCallback(async () => {
|
|
32882
33126
|
const le = await getLegalEntity2(legalEntityId);
|
|
32883
33127
|
setLegalEntity(le);
|
|
@@ -32896,6 +33140,7 @@ function CreateTransferInstrumentComponent({
|
|
|
32896
33140
|
eventEmitter: eventEmitter ?? new EventEmitter(),
|
|
32897
33141
|
transferInstrument,
|
|
32898
33142
|
legalEntityResponse: legalEntity,
|
|
33143
|
+
associatedLegalArrangement,
|
|
32899
33144
|
handleGetBankVerificationVendors: (country2) => getBankVerificationVendor2(country2, openBankingPartnerConfigId),
|
|
32900
33145
|
handleGetDocument: getDocument2,
|
|
32901
33146
|
handleCreateDocument: createDocument2,
|
|
@@ -32911,7 +33156,6 @@ function CreateTransferInstrumentComponent({
|
|
|
32911
33156
|
taskType: TaskTypes.PAYOUT
|
|
32912
33157
|
}) : null;
|
|
32913
33158
|
}
|
|
32914
|
-
const OnboardingRedirectComponent$1 = "";
|
|
32915
33159
|
var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
|
|
32916
33160
|
OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
|
|
32917
33161
|
OnboardingStatus2["PROCESSING"] = "PROCESSING";
|
|
@@ -32944,10 +33188,16 @@ const contentMap = {
|
|
|
32944
33188
|
function getContentByStatus(status) {
|
|
32945
33189
|
return contentMap[status];
|
|
32946
33190
|
}
|
|
33191
|
+
var OnboardingUrlTarget = /* @__PURE__ */ ((OnboardingUrlTarget2) => {
|
|
33192
|
+
OnboardingUrlTarget2["BLANK"] = "_blank";
|
|
33193
|
+
OnboardingUrlTarget2["SELF"] = "_self";
|
|
33194
|
+
return OnboardingUrlTarget2;
|
|
33195
|
+
})(OnboardingUrlTarget || {});
|
|
32947
33196
|
const logger$5 = createLogger("OnboardingRedirectComponent");
|
|
32948
33197
|
function OnboardingRedirectComponent({
|
|
32949
33198
|
legalEntityId,
|
|
32950
33199
|
returnUrl,
|
|
33200
|
+
redirectTarget,
|
|
32951
33201
|
onStatusChange,
|
|
32952
33202
|
onError,
|
|
32953
33203
|
onRedirect,
|
|
@@ -33027,9 +33277,9 @@ function OnboardingRedirectComponent({
|
|
|
33027
33277
|
};
|
|
33028
33278
|
try {
|
|
33029
33279
|
const {
|
|
33030
|
-
|
|
33280
|
+
redirectUrl
|
|
33031
33281
|
} = await generateOnboardingLink2(config);
|
|
33032
|
-
|
|
33282
|
+
openUrl(redirectUrl, config);
|
|
33033
33283
|
} catch (error) {
|
|
33034
33284
|
handleError({
|
|
33035
33285
|
trKey: "onboardingRedirectLinkError",
|
|
@@ -33039,14 +33289,15 @@ function OnboardingRedirectComponent({
|
|
|
33039
33289
|
setLinkLoadingStatus("success");
|
|
33040
33290
|
}
|
|
33041
33291
|
};
|
|
33042
|
-
const
|
|
33043
|
-
const
|
|
33292
|
+
const openUrl = (url, config) => {
|
|
33293
|
+
const target = redirectTarget && Object.values(OnboardingUrlTarget).includes(redirectTarget) ? redirectTarget : OnboardingUrlTarget.BLANK;
|
|
33294
|
+
const newTab = window.open("", target);
|
|
33044
33295
|
if (newTab) {
|
|
33045
|
-
newTab.location.href =
|
|
33296
|
+
newTab.location.href = url;
|
|
33046
33297
|
if (typeof onRedirect === "function") {
|
|
33047
33298
|
onRedirect({
|
|
33048
33299
|
...config,
|
|
33049
|
-
onboardingLink:
|
|
33300
|
+
onboardingLink: url
|
|
33050
33301
|
});
|
|
33051
33302
|
}
|
|
33052
33303
|
} else {
|
|
@@ -33567,21 +33818,33 @@ const I18nProvider = ({
|
|
|
33567
33818
|
});
|
|
33568
33819
|
};
|
|
33569
33820
|
const settingsDefaults = {
|
|
33821
|
+
acceptedCountries: void 0,
|
|
33822
|
+
allowBankAccountFormatSelection: false,
|
|
33823
|
+
allowIntraRegionCrossBorderPayout: false,
|
|
33570
33824
|
changeLegalEntityType: true,
|
|
33571
33825
|
editPrefilledCountry: true,
|
|
33826
|
+
requirePciSignEcomMoto: false,
|
|
33827
|
+
requirePciSignEcommerce: false,
|
|
33828
|
+
requirePciSignPos: false,
|
|
33829
|
+
requirePciSignPosMoto: false,
|
|
33572
33830
|
hideOnboardingIntroductionIndividual: true,
|
|
33573
33831
|
hideOnboardingIntroductionOrganization: true,
|
|
33574
33832
|
hideOnboardingIntroductionTrust: true,
|
|
33575
33833
|
hideOnboardingIntroductionSoleProprietor: true,
|
|
33576
33834
|
viewOnboardingGuidance: false
|
|
33577
33835
|
};
|
|
33578
|
-
function
|
|
33836
|
+
function SettingsProvider({
|
|
33579
33837
|
children,
|
|
33580
33838
|
settings
|
|
33581
33839
|
}) {
|
|
33840
|
+
const mergedSettings = {
|
|
33841
|
+
...settingsDefaults,
|
|
33842
|
+
...settings
|
|
33843
|
+
};
|
|
33582
33844
|
const contextValue = useMemo(() => ({
|
|
33583
33845
|
// 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
|
|
33584
|
-
isSettingEnabled: (settingName) =>
|
|
33846
|
+
isSettingEnabled: (settingName) => mergedSettings[settingName],
|
|
33847
|
+
getSetting: (settingName) => mergedSettings[settingName]
|
|
33585
33848
|
}), [settings]);
|
|
33586
33849
|
return jsx(SettingsContext.Provider, {
|
|
33587
33850
|
value: contextValue,
|
|
@@ -33883,21 +34146,21 @@ class UIElement extends BaseElement {
|
|
|
33883
34146
|
this.render = () => {
|
|
33884
34147
|
var _a;
|
|
33885
34148
|
const Component = this.props.component;
|
|
33886
|
-
return jsx(
|
|
33887
|
-
|
|
33888
|
-
|
|
33889
|
-
|
|
33890
|
-
|
|
33891
|
-
|
|
33892
|
-
|
|
33893
|
-
children: jsx(
|
|
33894
|
-
|
|
33895
|
-
|
|
33896
|
-
|
|
33897
|
-
|
|
33898
|
-
|
|
33899
|
-
|
|
33900
|
-
|
|
34149
|
+
return jsx(SettingsProvider, {
|
|
34150
|
+
settings: this.props.settings,
|
|
34151
|
+
children: jsx(AuthProvider, {
|
|
34152
|
+
sdkToken: this.props.sdkToken,
|
|
34153
|
+
getSdkToken: this.props.getSdkToken,
|
|
34154
|
+
clientKey: this.props.clientKey,
|
|
34155
|
+
loadingContext: this.props.loadingContext,
|
|
34156
|
+
children: jsx(ConfigurationApiProvider, {
|
|
34157
|
+
rootLegalEntityId: getRootLegalEntityId(this.props.componentProps),
|
|
34158
|
+
children: jsx(CoreProvider, {
|
|
34159
|
+
contextCountry: this.props.contextCountry,
|
|
34160
|
+
enableNewEntryFlowExperiment: (_a = this.props.experiments) == null ? void 0 : _a.EnableNewEntryFlow,
|
|
34161
|
+
children: jsx(I18nProvider, {
|
|
34162
|
+
locale: this.props.locale,
|
|
34163
|
+
customTranslations: this.props.customTranslations,
|
|
33901
34164
|
children: jsx(ExperimentsContextProvider, {
|
|
33902
34165
|
experiments: this.props.experiments,
|
|
33903
34166
|
children: jsx("div", {
|
|
@@ -33965,6 +34228,28 @@ const trustPropSchema = {
|
|
|
33965
34228
|
}
|
|
33966
34229
|
}
|
|
33967
34230
|
};
|
|
34231
|
+
const soleProprietorPropSchema = {
|
|
34232
|
+
type: "object",
|
|
34233
|
+
propertiesSchema: {
|
|
34234
|
+
name: {
|
|
34235
|
+
type: "string",
|
|
34236
|
+
required: true
|
|
34237
|
+
},
|
|
34238
|
+
countryOfGoverningLaw: {
|
|
34239
|
+
type: "string",
|
|
34240
|
+
required: true
|
|
34241
|
+
},
|
|
34242
|
+
registeredAddress: {
|
|
34243
|
+
type: "object",
|
|
34244
|
+
propertiesSchema: {
|
|
34245
|
+
country: {
|
|
34246
|
+
type: "string",
|
|
34247
|
+
required: true
|
|
34248
|
+
}
|
|
34249
|
+
}
|
|
34250
|
+
}
|
|
34251
|
+
}
|
|
34252
|
+
};
|
|
33968
34253
|
const individualPropSchema = {
|
|
33969
34254
|
type: "object",
|
|
33970
34255
|
propertiesSchema: {
|
|
@@ -34382,6 +34667,28 @@ const payoutAccountSchema = {
|
|
|
34382
34667
|
individual: individualPropSchema,
|
|
34383
34668
|
organization: organizationPropSchema
|
|
34384
34669
|
}
|
|
34670
|
+
},
|
|
34671
|
+
associatedLegalArrangement: {
|
|
34672
|
+
type: "object",
|
|
34673
|
+
propertiesSchema: {
|
|
34674
|
+
id: {
|
|
34675
|
+
type: "string",
|
|
34676
|
+
required: true
|
|
34677
|
+
},
|
|
34678
|
+
type: {
|
|
34679
|
+
type: "string",
|
|
34680
|
+
exactValue: [LegalEntityType.SOLE_PROPRIETORSHIP, LegalEntityType.TRUST],
|
|
34681
|
+
required: true
|
|
34682
|
+
},
|
|
34683
|
+
documentDetails: {
|
|
34684
|
+
type: "array"
|
|
34685
|
+
},
|
|
34686
|
+
capabilities: {
|
|
34687
|
+
type: "object"
|
|
34688
|
+
},
|
|
34689
|
+
soleProprietorship: soleProprietorPropSchema,
|
|
34690
|
+
trust: trustPropSchema
|
|
34691
|
+
}
|
|
34385
34692
|
}
|
|
34386
34693
|
};
|
|
34387
34694
|
const taskListSchema = {
|
|
@@ -34527,6 +34834,9 @@ const onboardingRedirectComponentSchema = {
|
|
|
34527
34834
|
type: "string",
|
|
34528
34835
|
required: true
|
|
34529
34836
|
},
|
|
34837
|
+
redirectTarget: {
|
|
34838
|
+
type: "string"
|
|
34839
|
+
},
|
|
34530
34840
|
onStatusChange: {
|
|
34531
34841
|
type: "function"
|
|
34532
34842
|
},
|