@adyen/kyc-components 3.3.5 → 3.4.1
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/AD-670c62c0.mjs +16 -0
- package/dist/es/AE-24bbc749.mjs +18 -0
- package/dist/es/AI-2f8eb3e4.mjs +20 -0
- package/dist/es/AL-dee818f3.mjs +20 -0
- package/dist/es/AR-ddb2f621.mjs +20 -0
- package/dist/es/AS-d857591e.mjs +18 -0
- package/dist/es/AT-0d286d50.mjs +16 -0
- package/dist/es/AU-e3d4ecff.mjs +17 -0
- package/dist/es/AX-acf0cb07.mjs +16 -0
- package/dist/es/AZ-febcbba9.mjs +20 -0
- package/dist/es/BA-36553325.mjs +20 -0
- package/dist/es/BE-01b309e9.mjs +16 -0
- package/dist/es/BG-b141efc4.mjs +20 -0
- package/dist/es/BH-4252606c.mjs +20 -0
- package/dist/es/BM-9d017537.mjs +20 -0
- package/dist/es/BR-afb9b585.mjs +19 -0
- package/dist/es/BS-71942f8a.mjs +20 -0
- package/dist/es/BV-7c089d21.mjs +20 -0
- package/dist/es/BY-b3362481.mjs +20 -0
- package/dist/es/CA-75a34c71.mjs +18 -0
- package/dist/es/CH-b8cf24c1.mjs +16 -0
- package/dist/es/CN-ebbef145.mjs +20 -0
- package/dist/es/CR-8bf65073.mjs +20 -0
- package/dist/es/CY-3e2ed850.mjs +16 -0
- package/dist/es/CZ-7ac97b54.mjs +16 -0
- package/dist/es/DE-2322162a.mjs +16 -0
- package/dist/es/DK-7cebcff6.mjs +28 -0
- package/dist/es/DO-bfe9604e.mjs +20 -0
- package/dist/es/EC-3ab33540.mjs +21 -0
- package/dist/es/EE-cbb695a1.mjs +16 -0
- package/dist/es/ES-094cb641.mjs +16 -0
- package/dist/es/FI-a1653669.mjs +16 -0
- package/dist/es/FJ-3b91f5c9.mjs +20 -0
- package/dist/es/FO-f647fb1e.mjs +20 -0
- package/dist/es/FR-ea366f1a.mjs +16 -0
- package/dist/es/GB-a45c6caa.mjs +28 -0
- package/dist/es/GE-ac5fdc42.mjs +20 -0
- package/dist/es/GF-6273f16b.mjs +16 -0
- package/dist/es/GG-bad391fd.mjs +28 -0
- package/dist/es/GI-757caa3a.mjs +36 -0
- package/dist/es/GL-226ffa9f.mjs +20 -0
- package/dist/es/GP-473e593a.mjs +16 -0
- package/dist/es/GR-3bcff231.mjs +16 -0
- package/dist/es/GT-db5da0a4.mjs +20 -0
- package/dist/es/GU-ca4f557c.mjs +18 -0
- package/dist/es/HK-40526878.mjs +18 -0
- package/dist/es/HR-29a95014.mjs +16 -0
- package/dist/es/HU-80af7974.mjs +16 -0
- package/dist/es/ID-506578fe.mjs +20 -0
- package/dist/es/IE-32cbd0f3.mjs +16 -0
- package/dist/es/IL-373dafad.mjs +16 -0
- package/dist/es/IM-891b32c5.mjs +28 -0
- package/dist/es/IN-bec55b74.mjs +21 -0
- package/dist/es/IS-3a5d33d3.mjs +20 -0
- package/dist/es/IT-4ff08cfe.mjs +16 -0
- package/dist/es/JE-307987ba.mjs +28 -0
- package/dist/es/JM-3ce8fbab.mjs +20 -0
- package/dist/es/JO-42a19672.mjs +20 -0
- package/dist/es/JP-0077f7b5.mjs +21 -0
- package/dist/es/KR-95fa1426.mjs +20 -0
- package/dist/es/KW-a98f9b4c.mjs +20 -0
- package/dist/es/KY-1aaca646.mjs +20 -0
- package/dist/es/KZ-7daadd7e.mjs +20 -0
- package/dist/es/LB-1c59787b.mjs +20 -0
- package/dist/es/LI-77d06f2d.mjs +16 -0
- package/dist/es/LT-f3ad2e3e.mjs +16 -0
- package/dist/es/LU-e8eedd03.mjs +16 -0
- package/dist/es/LV-6971017f.mjs +16 -0
- package/dist/es/MC-ee5965bb.mjs +16 -0
- package/dist/es/MD-8041437f.mjs +20 -0
- package/dist/es/ME-d9f4c3da.mjs +20 -0
- package/dist/es/MK-8c45a314.mjs +20 -0
- package/dist/es/MP-093ac455.mjs +18 -0
- package/dist/es/MQ-f9c253cc.mjs +16 -0
- package/dist/es/MR-2f01df5c.mjs +20 -0
- package/dist/es/MT-32167278.mjs +16 -0
- package/dist/es/MU-e04facaa.mjs +20 -0
- package/dist/es/MX-1d1a9644.mjs +18 -0
- package/dist/es/MY-392e074a.mjs +17 -0
- package/dist/es/NC-3b4b0260.mjs +20 -0
- package/dist/es/NL-b9bcb702.mjs +16 -0
- package/dist/es/NO-6809e6fd.mjs +28 -0
- package/dist/es/NZ-43e49467.mjs +15 -0
- package/dist/es/PE-0c1072d7.mjs +20 -0
- package/dist/es/PF-fb6bd5d0.mjs +20 -0
- package/dist/es/PH-8ef2049d.mjs +20 -0
- package/dist/es/PK-a445458d.mjs +20 -0
- package/dist/es/PL-620a9ca4.mjs +27 -0
- package/dist/es/PM-d4c0464a.mjs +16 -0
- package/dist/es/PR-ad22b592.mjs +18 -0
- package/dist/es/PS-cabe03e5.mjs +20 -0
- package/dist/es/PT-33451f8d.mjs +16 -0
- package/dist/es/QA-3d255e2d.mjs +20 -0
- package/dist/es/RE-8b1c7cc1.mjs +16 -0
- package/dist/es/RO-2bfa665c.mjs +16 -0
- package/dist/es/RS-3347a703.mjs +20 -0
- package/dist/es/RU-e3e01124.mjs +20 -0
- package/dist/es/SA-91a0ead5.mjs +20 -0
- package/dist/es/SE-cb13f129.mjs +28 -0
- package/dist/es/SG-6086848e.mjs +17 -0
- package/dist/es/SI-2865f1da.mjs +16 -0
- package/dist/es/SJ-598eb05e.mjs +20 -0
- package/dist/es/SK-95af17ba.mjs +16 -0
- package/dist/es/SM-4dd69f38.mjs +16 -0
- package/dist/es/TF-ea5a687e.mjs +20 -0
- package/dist/es/TH-567ec66c.mjs +21 -0
- package/dist/es/TL-9c45dea1.mjs +20 -0
- package/dist/es/TN-40f39700.mjs +20 -0
- package/dist/es/TR-17aaedbd.mjs +20 -0
- package/dist/es/TT-80575a0d.mjs +21 -0
- package/dist/es/TW-8104c581.mjs +22 -0
- package/dist/es/UA-9a09a2fe.mjs +20 -0
- package/dist/es/US-48190122.mjs +18 -0
- package/dist/es/UY-ede97218.mjs +20 -0
- package/dist/es/VA-193042b9.mjs +16 -0
- package/dist/es/VG-71c752e9.mjs +20 -0
- package/dist/es/VI-caa740af.mjs +18 -0
- package/dist/es/VN-5a6450ab.mjs +20 -0
- package/dist/es/WF-6ee9803f.mjs +20 -0
- package/dist/es/YT-e12497c8.mjs +16 -0
- package/dist/es/ZA-77011c5b.mjs +21 -0
- package/dist/es/adyen-kyc-components.es.js +522 -404
- package/dist/style.css +1884 -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/types.d.ts +3 -0
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +14 -0
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/content.d.ts +2 -0
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/index.d.ts +2 -0
- package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +12 -0
- 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/index.d.ts +2 -0
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
- package/dist/types/core/SDKValidation/index.d.ts +1 -1
- package/dist/types/core/Services/componentApi/generate-onboarding-link.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-onboarding-status.d.ts +3 -0
- package/dist/types/core/core.d.ts +1 -1
- package/dist/types/core/hooks/useComponentApi.d.ts +2 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +5 -5
- package/dist/types/core/models/api/get-configuration.d.ts +0 -20
- package/dist/types/core/models/api/onboarding-redirect.d.ts +22 -0
- package/dist/types/core/models/currency.d.ts +2 -1
- package/dist/types/core/models/form-rules.d.ts +2 -2
- package/dist/types/core/models/identity.d.ts +0 -2
- package/dist/types/core/models/payout-account.d.ts +0 -4
- package/dist/types/core/process-field-configurations.d.ts +4 -4
- package/dist/types/datasets/accountFormats/getAccountFormatForCountry.d.ts +12 -2
- package/dist/types/language/config.d.ts +15 -0
- package/dist/types/utils/entity-status-util.d.ts +1 -1
- package/dist/types/utils/payout-account-util.d.ts +0 -6
- package/package.json +1 -1
- package/dist/es/AD-43128b9f.mjs +0 -29
- package/dist/es/AE-81598d61.mjs +0 -40
- package/dist/es/AG-ed98ae0e.mjs +0 -55
- package/dist/es/AI-3e78c886.mjs +0 -50
- package/dist/es/AL-3ad2778a.mjs +0 -50
- package/dist/es/AM-6a5175fb.mjs +0 -55
- package/dist/es/AN-311f7139.mjs +0 -55
- package/dist/es/AO-99b5ef59.mjs +0 -55
- package/dist/es/AQ-effe27c7.mjs +0 -55
- package/dist/es/AR-4013d95c.mjs +0 -50
- package/dist/es/AS-f15d56b2.mjs +0 -55
- package/dist/es/AT-d4d62b74.mjs +0 -29
- package/dist/es/AU-b9cba969.mjs +0 -35
- package/dist/es/AW-581f73fb.mjs +0 -55
- package/dist/es/AX-07af957a.mjs +0 -29
- package/dist/es/AZ-be214142.mjs +0 -50
- package/dist/es/BA-af4be83f.mjs +0 -50
- package/dist/es/BB-df28f015.mjs +0 -55
- package/dist/es/BD-7aef0af6.mjs +0 -55
- package/dist/es/BE-fc7cf8d5.mjs +0 -29
- package/dist/es/BF-090b06e2.mjs +0 -55
- package/dist/es/BG-1f54cf4f.mjs +0 -50
- package/dist/es/BH-1e9cc2b9.mjs +0 -50
- package/dist/es/BJ-d5dd5c6f.mjs +0 -55
- package/dist/es/BM-a808b13f.mjs +0 -50
- package/dist/es/BN-b13f6f6a.mjs +0 -55
- package/dist/es/BR-55d93100.mjs +0 -71
- package/dist/es/BS-db6a5bce.mjs +0 -50
- package/dist/es/BT-dfed2604.mjs +0 -55
- package/dist/es/BV-e123b0a8.mjs +0 -50
- package/dist/es/BW-08473bd7.mjs +0 -55
- package/dist/es/BY-2762d989.mjs +0 -50
- package/dist/es/BZ-7f28b1ff.mjs +0 -55
- package/dist/es/CA-aa1f78ab.mjs +0 -41
- package/dist/es/CC-2cc6ac39.mjs +0 -55
- package/dist/es/CF-78ae0244.mjs +0 -55
- package/dist/es/CH-47f538c0.mjs +0 -29
- package/dist/es/CI-10feb889.mjs +0 -55
- package/dist/es/CK-e308c734.mjs +0 -55
- package/dist/es/CL-4a6c3e0b.mjs +0 -55
- package/dist/es/CM-fddc630d.mjs +0 -55
- package/dist/es/CN-46bb9203.mjs +0 -50
- package/dist/es/CO-1b150cda.mjs +0 -55
- package/dist/es/CR-2bf50f66.mjs +0 -50
- package/dist/es/CU-904aea8f.mjs +0 -55
- package/dist/es/CX-750ccd92.mjs +0 -55
- package/dist/es/CY-1508b23e.mjs +0 -29
- package/dist/es/CZ-b6eaa1d5.mjs +0 -29
- package/dist/es/DE-e02051d4.mjs +0 -29
- package/dist/es/DJ-0032728a.mjs +0 -55
- package/dist/es/DK-6116657e.mjs +0 -59
- package/dist/es/DM-a2c158c9.mjs +0 -55
- package/dist/es/DO-cedffa27.mjs +0 -50
- package/dist/es/DZ-d44be6f8.mjs +0 -55
- package/dist/es/EC-c2e5813b.mjs +0 -56
- package/dist/es/EE-1a10f52d.mjs +0 -29
- package/dist/es/EG-8f29aebd.mjs +0 -55
- package/dist/es/EH-2dafda3e.mjs +0 -55
- package/dist/es/ES-42b3562e.mjs +0 -29
- package/dist/es/ET-ffa87ef0.mjs +0 -55
- package/dist/es/FI-8e3bb2bb.mjs +0 -29
- package/dist/es/FJ-088ea689.mjs +0 -50
- package/dist/es/FK-16d84ff5.mjs +0 -55
- package/dist/es/FM-32616e6f.mjs +0 -55
- package/dist/es/FO-62c08e45.mjs +0 -50
- package/dist/es/FR-3db03e20.mjs +0 -29
- package/dist/es/GA-4de2f994.mjs +0 -55
- package/dist/es/GB-28ea0b5a.mjs +0 -59
- package/dist/es/GD-0ad67069.mjs +0 -55
- package/dist/es/GE-0f594b35.mjs +0 -50
- package/dist/es/GF-a062cea7.mjs +0 -29
- package/dist/es/GG-e00581ea.mjs +0 -59
- package/dist/es/GH-80209e7e.mjs +0 -55
- package/dist/es/GI-b0f7c8b3.mjs +0 -101
- package/dist/es/GL-8f5e8ba9.mjs +0 -50
- package/dist/es/GM-ff3ca013.mjs +0 -55
- package/dist/es/GN-fc7c0f8c.mjs +0 -55
- package/dist/es/GP-68f23382.mjs +0 -29
- package/dist/es/GQ-f9867fbd.mjs +0 -55
- package/dist/es/GR-64a2d25c.mjs +0 -29
- package/dist/es/GS-49ce0f4c.mjs +0 -55
- package/dist/es/GT-fa779b14.mjs +0 -50
- package/dist/es/GU-f0dceb37.mjs +0 -55
- package/dist/es/GW-471336ea.mjs +0 -55
- package/dist/es/GY-2889ae39.mjs +0 -55
- package/dist/es/HK-675b8651.mjs +0 -56
- package/dist/es/HM-924a724f.mjs +0 -55
- package/dist/es/HN-6dae206e.mjs +0 -55
- package/dist/es/HR-85763090.mjs +0 -29
- package/dist/es/HT-a659da85.mjs +0 -55
- package/dist/es/HU-f9ea5037.mjs +0 -29
- package/dist/es/ID-cb5cfce1.mjs +0 -50
- package/dist/es/IE-b341cbd2.mjs +0 -29
- package/dist/es/IL-657901df.mjs +0 -29
- package/dist/es/IM-5bd6279a.mjs +0 -59
- package/dist/es/IN-3c11df0e.mjs +0 -56
- package/dist/es/IO-24f6d2e7.mjs +0 -55
- package/dist/es/IQ-241c0148.mjs +0 -55
- package/dist/es/IS-4a7e436f.mjs +0 -50
- package/dist/es/IT-f9755e76.mjs +0 -29
- package/dist/es/JE-46968fa2.mjs +0 -59
- package/dist/es/JM-a6657a34.mjs +0 -50
- package/dist/es/JO-bd1eabea.mjs +0 -50
- package/dist/es/JP-9b5a30fa.mjs +0 -88
- package/dist/es/KE-2a866579.mjs +0 -55
- package/dist/es/KG-7713761d.mjs +0 -55
- package/dist/es/KH-a5f0f831.mjs +0 -55
- package/dist/es/KI-8376e298.mjs +0 -55
- package/dist/es/KM-48c8c9c0.mjs +0 -55
- package/dist/es/KN-b34777c7.mjs +0 -55
- package/dist/es/KR-8bcf8499.mjs +0 -50
- package/dist/es/KW-4dd6ab01.mjs +0 -50
- package/dist/es/KY-4f921c93.mjs +0 -50
- package/dist/es/KZ-68b655f3.mjs +0 -50
- package/dist/es/LA-582a34e2.mjs +0 -55
- package/dist/es/LB-7e5023a3.mjs +0 -50
- package/dist/es/LC-4e610f91.mjs +0 -55
- package/dist/es/LI-3979434e.mjs +0 -29
- package/dist/es/LK-23f5002d.mjs +0 -55
- package/dist/es/LT-2076ca77.mjs +0 -29
- package/dist/es/LU-b0538582.mjs +0 -29
- package/dist/es/LV-440617df.mjs +0 -29
- package/dist/es/MA-f2af9aa6.mjs +0 -55
- package/dist/es/MC-f619d821.mjs +0 -29
- package/dist/es/MD-ffe4e2f4.mjs +0 -50
- package/dist/es/ME-46686aa8.mjs +0 -50
- package/dist/es/MH-c535387d.mjs +0 -55
- package/dist/es/MK-11442cf1.mjs +0 -50
- package/dist/es/ML-b2c3720e.mjs +0 -55
- package/dist/es/MM-0ae1a124.mjs +0 -55
- package/dist/es/MN-baba0d9d.mjs +0 -55
- package/dist/es/MO-2c51f9f7.mjs +0 -55
- package/dist/es/MP-55044c4b.mjs +0 -55
- package/dist/es/MQ-aaefd2b2.mjs +0 -29
- package/dist/es/MR-f122a6f0.mjs +0 -50
- package/dist/es/MS-7623ec5f.mjs +0 -55
- package/dist/es/MT-315c76bb.mjs +0 -29
- package/dist/es/MU-126673fe.mjs +0 -50
- package/dist/es/MV-d8748aca.mjs +0 -55
- package/dist/es/MW-26492427.mjs +0 -55
- package/dist/es/MX-ca79b44b.mjs +0 -60
- package/dist/es/MY-443e729e.mjs +0 -55
- package/dist/es/MZ-192a5094.mjs +0 -55
- package/dist/es/NC-3849aac0.mjs +0 -50
- package/dist/es/NE-bf76bc84.mjs +0 -55
- package/dist/es/NF-46f5dffa.mjs +0 -55
- package/dist/es/NG-458396e5.mjs +0 -55
- package/dist/es/NI-efe8c864.mjs +0 -55
- package/dist/es/NL-3e38d0eb.mjs +0 -29
- package/dist/es/NO-088fac56.mjs +0 -59
- package/dist/es/NP-26b20587.mjs +0 -55
- package/dist/es/NR-ba1f7da1.mjs +0 -55
- package/dist/es/NU-6dc3ed45.mjs +0 -55
- package/dist/es/NZ-d7a003bc.mjs +0 -24
- package/dist/es/OM-4976855b.mjs +0 -55
- package/dist/es/PA-3b45122a.mjs +0 -55
- package/dist/es/PE-ad6e8281.mjs +0 -50
- package/dist/es/PF-2b1b6f30.mjs +0 -50
- package/dist/es/PG-b94ea47f.mjs +0 -55
- package/dist/es/PH-1b96a1eb.mjs +0 -50
- package/dist/es/PK-35cadd30.mjs +0 -50
- package/dist/es/PL-6a490cd1.mjs +0 -53
- package/dist/es/PM-d508f3c5.mjs +0 -29
- package/dist/es/PN-1f6ccf43.mjs +0 -55
- package/dist/es/PR-730f2830.mjs +0 -55
- package/dist/es/PS-f3ef78cd.mjs +0 -50
- package/dist/es/PT-66954cea.mjs +0 -29
- package/dist/es/PW-0d1c7797.mjs +0 -55
- package/dist/es/PY-c8e58794.mjs +0 -55
- package/dist/es/QA-35be8b1e.mjs +0 -50
- package/dist/es/RE-9f92ed9b.mjs +0 -29
- package/dist/es/RO-5c62edb1.mjs +0 -29
- package/dist/es/RS-bc256d90.mjs +0 -50
- package/dist/es/RU-bbee5e73.mjs +0 -55
- package/dist/es/RW-95b5d859.mjs +0 -55
- package/dist/es/SA-69b2f72a.mjs +0 -50
- package/dist/es/SB-567c239a.mjs +0 -55
- package/dist/es/SC-9e5a0d31.mjs +0 -55
- package/dist/es/SE-4ed53265.mjs +0 -59
- package/dist/es/SG-970463e3.mjs +0 -35
- package/dist/es/SH-d8ab21b7.mjs +0 -55
- package/dist/es/SI-3b6d3545.mjs +0 -29
- package/dist/es/SJ-e3430cfd.mjs +0 -50
- package/dist/es/SK-2385e057.mjs +0 -29
- package/dist/es/SL-92bf45d9.mjs +0 -55
- package/dist/es/SM-bafbc267.mjs +0 -29
- package/dist/es/SN-5733e740.mjs +0 -55
- package/dist/es/SO-d5b69054.mjs +0 -55
- package/dist/es/SR-0a8c71c0.mjs +0 -55
- package/dist/es/ST-d40d86c1.mjs +0 -55
- package/dist/es/TC-ccbc7116.mjs +0 -55
- package/dist/es/TD-679d137c.mjs +0 -55
- package/dist/es/TF-6bfcf75d.mjs +0 -50
- package/dist/es/TG-a20ef9ed.mjs +0 -55
- package/dist/es/TH-e39a447c.mjs +0 -56
- package/dist/es/TK-89a81d38.mjs +0 -55
- package/dist/es/TL-8d6ca9b7.mjs +0 -50
- package/dist/es/TN-6e746476.mjs +0 -50
- package/dist/es/TO-a8c55d73.mjs +0 -55
- package/dist/es/TR-b1175ddc.mjs +0 -50
- package/dist/es/TT-5c4a3940.mjs +0 -56
- package/dist/es/TV-e1a267b9.mjs +0 -55
- package/dist/es/TW-9e0e34fa.mjs +0 -62
- package/dist/es/TZ-c8a8159b.mjs +0 -55
- package/dist/es/UA-7014199a.mjs +0 -50
- package/dist/es/UG-1fe39fa7.mjs +0 -55
- package/dist/es/UM-3fcbf872.mjs +0 -55
- package/dist/es/US-6fbdfc0c.mjs +0 -60
- package/dist/es/UY-e6d05d75.mjs +0 -50
- package/dist/es/UZ-433656c8.mjs +0 -55
- package/dist/es/VA-e8e13d32.mjs +0 -29
- package/dist/es/VC-331669c0.mjs +0 -55
- package/dist/es/VE-5e7b0d3b.mjs +0 -55
- package/dist/es/VG-43e85e33.mjs +0 -50
- package/dist/es/VI-3d9d6d8b.mjs +0 -55
- package/dist/es/VN-9442a8c1.mjs +0 -50
- package/dist/es/VU-96fae02f.mjs +0 -55
- package/dist/es/WF-90a27056.mjs +0 -50
- package/dist/es/WS-ddcb2b71.mjs +0 -55
- package/dist/es/YE-02c4c81e.mjs +0 -55
- package/dist/es/YT-33751cc9.mjs +0 -29
- package/dist/es/ZA-0084b083.mjs +0 -56
- package/dist/es/ZM-c6a4d6cc.mjs +0 -55
- package/dist/types/core/Services/agnostic/get-payout-account-formats.d.ts +0 -3
- package/dist/types/core/models/api/get-account-format.d.ts +0 -5
|
@@ -1217,6 +1217,21 @@ const introductionScreenEpilogueTitle = "Why do we need this information?";
|
|
|
1217
1217
|
const introductionScreenEpilogueDescriptionP1 = "We check all this information against official records to verify your identity and comply with financial regulations.";
|
|
1218
1218
|
const introductionScreenEpilogueDescriptionP2 = "Your information will be used only for these purposes.";
|
|
1219
1219
|
const oib = "OIB";
|
|
1220
|
+
const onboardingRedirectInitialHeader = "Reach more customers and accept orders online";
|
|
1221
|
+
const onboardingRedirectInitialDescriptionP1 = "Register today and get access to all the features like receiving payments or issuing cards.";
|
|
1222
|
+
const onboardingRedirectInitialCtaButton = "Get started";
|
|
1223
|
+
const onboardingRedirectInProgressHeader = "We are currently reviewing your information";
|
|
1224
|
+
const onboardingRedirectInProgressDescriptionP1 = "We will notify you when your details are verified correctly so you can start doing payments.";
|
|
1225
|
+
const onboardingRedirectInProgressCtaButton = "View information";
|
|
1226
|
+
const onboardingRedirectErrorsHeader = "Some of your information needs to be corrected";
|
|
1227
|
+
const onboardingRedirectErrorsDescriptionP1 = "We reviewed the information you submitted, but we were not able to verify everything.";
|
|
1228
|
+
const onboardingRedirectErrorsDescriptionP2 = "You need to correct some information before we can activate your account.";
|
|
1229
|
+
const onboardingRedirectErrorsCtaButton = "Correct information";
|
|
1230
|
+
const onboardingRedirectFinishedHeader = "You’re all set";
|
|
1231
|
+
const onboardingRedirectFinishedDescriptionP1 = "We reviewed the information you submitted and successfully verified your account.";
|
|
1232
|
+
const onboardingRedirectFinishedCtaButton = "View data";
|
|
1233
|
+
const onboardingRedirectLinkError = "Onboarding link not available at the moment, please try again later.";
|
|
1234
|
+
const onboardingRedirectOpenError = "Pop-up blocker prevented redirecting, please allow pop-ups for this site.";
|
|
1220
1235
|
const addBankDetails = "Add bank details";
|
|
1221
1236
|
const addMissingBankDetails = "We are missing your bank details in order to perform payouts, please add your bank account.";
|
|
1222
1237
|
const bankDetails = "Bank details";
|
|
@@ -2440,6 +2455,21 @@ const defaultTrans = {
|
|
|
2440
2455
|
introductionScreenEpilogueDescriptionP1,
|
|
2441
2456
|
introductionScreenEpilogueDescriptionP2,
|
|
2442
2457
|
oib,
|
|
2458
|
+
onboardingRedirectInitialHeader,
|
|
2459
|
+
onboardingRedirectInitialDescriptionP1,
|
|
2460
|
+
onboardingRedirectInitialCtaButton,
|
|
2461
|
+
onboardingRedirectInProgressHeader,
|
|
2462
|
+
onboardingRedirectInProgressDescriptionP1,
|
|
2463
|
+
onboardingRedirectInProgressCtaButton,
|
|
2464
|
+
onboardingRedirectErrorsHeader,
|
|
2465
|
+
onboardingRedirectErrorsDescriptionP1,
|
|
2466
|
+
onboardingRedirectErrorsDescriptionP2,
|
|
2467
|
+
onboardingRedirectErrorsCtaButton,
|
|
2468
|
+
onboardingRedirectFinishedHeader,
|
|
2469
|
+
onboardingRedirectFinishedDescriptionP1,
|
|
2470
|
+
onboardingRedirectFinishedCtaButton,
|
|
2471
|
+
onboardingRedirectLinkError,
|
|
2472
|
+
onboardingRedirectOpenError,
|
|
2443
2473
|
addBankDetails,
|
|
2444
2474
|
addMissingBankDetails,
|
|
2445
2475
|
bankDetails,
|
|
@@ -2893,7 +2923,6 @@ const exactLength = (input, length) => {
|
|
|
2893
2923
|
}
|
|
2894
2924
|
return input.length === length;
|
|
2895
2925
|
};
|
|
2896
|
-
const lengthIsBetween = (input, minLength, maxLength) => Boolean(input && input.length >= minLength && input.length <= maxLength);
|
|
2897
2926
|
const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
|
|
2898
2927
|
const _button_component = "";
|
|
2899
2928
|
const _link_component = "";
|
|
@@ -2955,7 +2984,7 @@ const icons = {
|
|
|
2955
2984
|
warning: lazy(() => import("./warning-bb000c6b.mjs")),
|
|
2956
2985
|
wrong: lazy(() => import("./wrong-652db543.mjs"))
|
|
2957
2986
|
};
|
|
2958
|
-
const logger$
|
|
2987
|
+
const logger$w = createLogger("Icon");
|
|
2959
2988
|
const Icon = ({
|
|
2960
2989
|
className,
|
|
2961
2990
|
name,
|
|
@@ -2963,7 +2992,7 @@ const Icon = ({
|
|
|
2963
2992
|
}) => {
|
|
2964
2993
|
const LazyLoadedIcon = icons[name];
|
|
2965
2994
|
if (!LazyLoadedIcon) {
|
|
2966
|
-
logger$
|
|
2995
|
+
logger$w.error(`No such icon: "${name}"`);
|
|
2967
2996
|
return null;
|
|
2968
2997
|
}
|
|
2969
2998
|
return jsx("span", {
|
|
@@ -3170,7 +3199,7 @@ function useFormRouterContext() {
|
|
|
3170
3199
|
}
|
|
3171
3200
|
return context;
|
|
3172
3201
|
}
|
|
3173
|
-
const logger$
|
|
3202
|
+
const logger$v = createLogger("Link");
|
|
3174
3203
|
const getIconClass = (icon, external) => {
|
|
3175
3204
|
if (external) {
|
|
3176
3205
|
return "adl-link__icon adyen-kyc-icon-external-link";
|
|
@@ -3182,7 +3211,7 @@ const getIconClass = (icon, external) => {
|
|
|
3182
3211
|
};
|
|
3183
3212
|
const isValidLink = (href) => {
|
|
3184
3213
|
if (href === "#") {
|
|
3185
|
-
logger$
|
|
3214
|
+
logger$v.error('Links must include a valid href. If your href is "#", consider using a Button instead');
|
|
3186
3215
|
return false;
|
|
3187
3216
|
}
|
|
3188
3217
|
return true;
|
|
@@ -3461,14 +3490,14 @@ function useResetGlobalData(caller) {
|
|
|
3461
3490
|
}
|
|
3462
3491
|
}), [dispatch, caller]);
|
|
3463
3492
|
}
|
|
3464
|
-
const logger$
|
|
3493
|
+
const logger$u = createLogger("useAllowedCountries");
|
|
3465
3494
|
const useAllowedCountries = () => {
|
|
3466
3495
|
const {
|
|
3467
3496
|
getAllowedCountries: getAllowedCountries2
|
|
3468
3497
|
} = useConfigurationApi();
|
|
3469
3498
|
const [allowedCountries, setAllowedCountries] = useState();
|
|
3470
3499
|
useEffect(() => {
|
|
3471
|
-
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$
|
|
3500
|
+
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$u.error);
|
|
3472
3501
|
}, []);
|
|
3473
3502
|
return allowedCountries;
|
|
3474
3503
|
};
|
|
@@ -3807,7 +3836,7 @@ class ValidationResult {
|
|
|
3807
3836
|
return this.validationResults.filter((result) => result.hasError);
|
|
3808
3837
|
}
|
|
3809
3838
|
}
|
|
3810
|
-
const logger$
|
|
3839
|
+
const logger$t = createLogger("useAsyncValidator");
|
|
3811
3840
|
const useAsyncValidator = (asyncRules) => {
|
|
3812
3841
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
3813
3842
|
const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
|
|
@@ -3830,7 +3859,7 @@ const useAsyncValidator = (asyncRules) => {
|
|
|
3830
3859
|
hasError: !isValid
|
|
3831
3860
|
}])
|
|
3832
3861
|
});
|
|
3833
|
-
}).catch(logger$
|
|
3862
|
+
}).catch(logger$t.error);
|
|
3834
3863
|
}, [asyncRules, clearAsyncValidationResults]);
|
|
3835
3864
|
return {
|
|
3836
3865
|
asyncValidationResults,
|
|
@@ -5267,7 +5296,7 @@ function useIsElementVisible(ref, fallback = true) {
|
|
|
5267
5296
|
}, [ref]);
|
|
5268
5297
|
return isOnScreen;
|
|
5269
5298
|
}
|
|
5270
|
-
const logger$
|
|
5299
|
+
const logger$s = createLogger("Flag");
|
|
5271
5300
|
const flagImports = /* @__PURE__ */ Object.assign({
|
|
5272
5301
|
"../../../../assets/flags/ad.svg": () => import("./ad-e09b987a.mjs"),
|
|
5273
5302
|
"../../../../assets/flags/ae.svg": () => import("./ae-8ca1be27.mjs"),
|
|
@@ -5524,7 +5553,7 @@ const flagImports = /* @__PURE__ */ Object.assign({
|
|
|
5524
5553
|
const getLazyLoadedSvgComponent = (country2) => {
|
|
5525
5554
|
const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
|
|
5526
5555
|
if (!importForCountry) {
|
|
5527
|
-
logger$
|
|
5556
|
+
logger$s.error(`No flag available for ${country2}`);
|
|
5528
5557
|
return void 0;
|
|
5529
5558
|
}
|
|
5530
5559
|
return lazy(importForCountry);
|
|
@@ -6326,7 +6355,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
|
|
|
6326
6355
|
};
|
|
6327
6356
|
};
|
|
6328
6357
|
const MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
6329
|
-
const logger$
|
|
6358
|
+
const logger$r = createLogger("MaskedInputText");
|
|
6330
6359
|
const MaskedInputText = ({
|
|
6331
6360
|
value,
|
|
6332
6361
|
onInput,
|
|
@@ -6368,7 +6397,7 @@ const MaskedInputText = ({
|
|
|
6368
6397
|
};
|
|
6369
6398
|
useEffect(() => {
|
|
6370
6399
|
if (!mask) {
|
|
6371
|
-
logger$
|
|
6400
|
+
logger$r.warn("`mask` is undefined. No masking of input will take place.");
|
|
6372
6401
|
}
|
|
6373
6402
|
}, [mask]);
|
|
6374
6403
|
const getMaskResult = useCallback((pureValue) => {
|
|
@@ -6395,7 +6424,7 @@ const MaskedInputText = ({
|
|
|
6395
6424
|
return;
|
|
6396
6425
|
}
|
|
6397
6426
|
const fallback = displayValueToPure(maskResult.partialDisplayValue);
|
|
6398
|
-
logger$
|
|
6427
|
+
logger$r.warn(`Value received "${value}" does not match mask`, maskResult, `
|
|
6399
6428
|
Falling back to partially valid value "${fallback}"`);
|
|
6400
6429
|
onInput(fallback);
|
|
6401
6430
|
}
|
|
@@ -9901,7 +9930,7 @@ const companySearchFieldsPerScenario = {
|
|
|
9901
9930
|
}
|
|
9902
9931
|
}
|
|
9903
9932
|
};
|
|
9904
|
-
const countryConfig$
|
|
9933
|
+
const countryConfig$3 = {
|
|
9905
9934
|
[CountryCodes.Australia]: {
|
|
9906
9935
|
legalCompanyName: {
|
|
9907
9936
|
helperText: "legalCompanyName__helperText__AU"
|
|
@@ -10271,7 +10300,7 @@ const fieldsPerScenario$2 = {
|
|
|
10271
10300
|
...trustBase
|
|
10272
10301
|
}
|
|
10273
10302
|
};
|
|
10274
|
-
const countryConfig$
|
|
10303
|
+
const countryConfig$2 = {
|
|
10275
10304
|
AU: {
|
|
10276
10305
|
taxId: {
|
|
10277
10306
|
label: "australianBusinessNumberAbn"
|
|
@@ -10489,7 +10518,7 @@ const accountHolderValidationRules = {
|
|
|
10489
10518
|
}
|
|
10490
10519
|
};
|
|
10491
10520
|
const accountHolderFields = ["accountHolder"];
|
|
10492
|
-
const logger$
|
|
10521
|
+
const logger$q = createLogger("AccountHolder");
|
|
10493
10522
|
function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
|
|
10494
10523
|
switch (legalEntityType) {
|
|
10495
10524
|
case LegalEntityType.ORGANIZATION: {
|
|
@@ -10499,7 +10528,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
|
|
|
10499
10528
|
return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
|
|
10500
10529
|
}
|
|
10501
10530
|
default:
|
|
10502
|
-
logger$
|
|
10531
|
+
logger$q.error(`No available account holder options for legal entity type '${legalEntityType}'`);
|
|
10503
10532
|
return [];
|
|
10504
10533
|
}
|
|
10505
10534
|
}
|
|
@@ -11247,7 +11276,7 @@ function Dropzone(props) {
|
|
|
11247
11276
|
})]
|
|
11248
11277
|
});
|
|
11249
11278
|
}
|
|
11250
|
-
const logger$
|
|
11279
|
+
const logger$p = createLogger("TextArea");
|
|
11251
11280
|
function TextArea(props) {
|
|
11252
11281
|
const {
|
|
11253
11282
|
classNameModifiers,
|
|
@@ -11268,7 +11297,7 @@ function TextArea(props) {
|
|
|
11268
11297
|
} = useI18nContext();
|
|
11269
11298
|
const [value, setValue] = useState("");
|
|
11270
11299
|
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
11271
|
-
logger$
|
|
11300
|
+
logger$p.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
11272
11301
|
}
|
|
11273
11302
|
const handleInput = (e) => {
|
|
11274
11303
|
var _a;
|
|
@@ -11682,7 +11711,7 @@ function FieldContainer(props) {
|
|
|
11682
11711
|
}
|
|
11683
11712
|
return renderField(fieldName);
|
|
11684
11713
|
}
|
|
11685
|
-
const logger$
|
|
11714
|
+
const logger$o = createLogger("SearchAddress");
|
|
11686
11715
|
const SearchAddress = ({
|
|
11687
11716
|
data,
|
|
11688
11717
|
legalEntityId,
|
|
@@ -11725,7 +11754,7 @@ const SearchAddress = ({
|
|
|
11725
11754
|
const response = await handleFindAddress(selectedAddressId);
|
|
11726
11755
|
autocompleteAddressForm(response);
|
|
11727
11756
|
} catch (e) {
|
|
11728
|
-
logger$
|
|
11757
|
+
logger$o.error(e);
|
|
11729
11758
|
}
|
|
11730
11759
|
};
|
|
11731
11760
|
const onDrilldown = async (selectedAddress) => {
|
|
@@ -11737,7 +11766,7 @@ const SearchAddress = ({
|
|
|
11737
11766
|
}, legalEntityId);
|
|
11738
11767
|
setItems((response == null ? void 0 : response.results) || []);
|
|
11739
11768
|
} catch (e) {
|
|
11740
|
-
logger$
|
|
11769
|
+
logger$o.error(e);
|
|
11741
11770
|
}
|
|
11742
11771
|
};
|
|
11743
11772
|
const onChange = (e) => {
|
|
@@ -11792,7 +11821,7 @@ const SearchAddress = ({
|
|
|
11792
11821
|
setItems([]);
|
|
11793
11822
|
}
|
|
11794
11823
|
} catch (e) {
|
|
11795
|
-
logger$
|
|
11824
|
+
logger$o.error(e);
|
|
11796
11825
|
}
|
|
11797
11826
|
setLoading(false);
|
|
11798
11827
|
}
|
|
@@ -14826,7 +14855,7 @@ const initOnfido = async ({
|
|
|
14826
14855
|
language: getOnfidoLocaleConfig(i18n)
|
|
14827
14856
|
});
|
|
14828
14857
|
};
|
|
14829
|
-
const logger$
|
|
14858
|
+
const logger$n = createLogger("IdVerificationComponent");
|
|
14830
14859
|
function IdVerificationComponent({
|
|
14831
14860
|
userDetails,
|
|
14832
14861
|
legalEntityId,
|
|
@@ -14859,7 +14888,7 @@ function IdVerificationComponent({
|
|
|
14859
14888
|
onIdVerificationError,
|
|
14860
14889
|
onIdVerificationComplete
|
|
14861
14890
|
});
|
|
14862
|
-
})().catch(logger$
|
|
14891
|
+
})().catch(logger$n.error);
|
|
14863
14892
|
return () => {
|
|
14864
14893
|
if (onfidoSdk.current)
|
|
14865
14894
|
onfidoSdk.current.tearDown();
|
|
@@ -14911,7 +14940,7 @@ function IdDocumentAlreadyUpload(props) {
|
|
|
14911
14940
|
})]
|
|
14912
14941
|
});
|
|
14913
14942
|
}
|
|
14914
|
-
const logger$
|
|
14943
|
+
const logger$m = createLogger("IdDocumentInstantVerificationComponent");
|
|
14915
14944
|
const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
|
|
14916
14945
|
const documentTypeValidationRules = {
|
|
14917
14946
|
instantIdVerificationData: {
|
|
@@ -14993,7 +15022,7 @@ function IdDocumentInstantVerificationComponent(props) {
|
|
|
14993
15022
|
userDetails: props.userDetails,
|
|
14994
15023
|
legalEntityId: props.legalEntityId,
|
|
14995
15024
|
onIdVerificationComplete: handleIdVerificationComplete,
|
|
14996
|
-
onIdVerificationError: logger$
|
|
15025
|
+
onIdVerificationError: logger$m.error
|
|
14997
15026
|
}), jsxs("div", {
|
|
14998
15027
|
className: "adyen-kyc-document-upload__manual-upload",
|
|
14999
15028
|
children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
|
|
@@ -15841,7 +15870,7 @@ const defaultFieldConfig$5 = {
|
|
|
15841
15870
|
case "driversLicense":
|
|
15842
15871
|
default:
|
|
15843
15872
|
return {
|
|
15844
|
-
label: "
|
|
15873
|
+
label: "licenseNumber",
|
|
15845
15874
|
mask: {
|
|
15846
15875
|
mask: makeMask(...alphaInputs(2), ...numericInputs(6)),
|
|
15847
15876
|
transformOnType: uppercase
|
|
@@ -15900,7 +15929,7 @@ const defaultFieldConfig$5 = {
|
|
|
15900
15929
|
case "driversLicense":
|
|
15901
15930
|
default:
|
|
15902
15931
|
return {
|
|
15903
|
-
label: "
|
|
15932
|
+
label: "licenseNumber",
|
|
15904
15933
|
mask: {
|
|
15905
15934
|
mask: makeMask(...alphanumericInputs(7), spacer, ...alphanumericInputs(1)),
|
|
15906
15935
|
transformOnType: uppercase
|
|
@@ -15940,7 +15969,7 @@ const defaultFieldConfig$5 = {
|
|
|
15940
15969
|
case "driversLicense":
|
|
15941
15970
|
default:
|
|
15942
15971
|
return {
|
|
15943
|
-
label: "
|
|
15972
|
+
label: "licenseNumber",
|
|
15944
15973
|
mask: {
|
|
15945
15974
|
mask: makeMask(...alphanumericInputs(6), ...alphanumericInputs(5, true)),
|
|
15946
15975
|
transformOnType: uppercase
|
|
@@ -16071,7 +16100,9 @@ function IdentityNumberComponent(props) {
|
|
|
16071
16100
|
}
|
|
16072
16101
|
}, [propErrors]);
|
|
16073
16102
|
useEffect(() => {
|
|
16074
|
-
|
|
16103
|
+
if (data.idNumber || idNumberType) {
|
|
16104
|
+
triggerValidation(["idNumber"]);
|
|
16105
|
+
}
|
|
16075
16106
|
}, [country2, idNumberType]);
|
|
16076
16107
|
useEffect(() => {
|
|
16077
16108
|
const dataHasChanged = !objectsDeepEqual(data, formData);
|
|
@@ -17820,79 +17851,79 @@ const ActionBar = ({
|
|
|
17820
17851
|
})
|
|
17821
17852
|
})]
|
|
17822
17853
|
});
|
|
17823
|
-
var
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
return
|
|
17847
|
-
})(
|
|
17854
|
+
var Currencies = /* @__PURE__ */ ((Currencies2) => {
|
|
17855
|
+
Currencies2["AED"] = "AED";
|
|
17856
|
+
Currencies2["AUD"] = "AUD";
|
|
17857
|
+
Currencies2["BGN"] = "BGN";
|
|
17858
|
+
Currencies2["BRL"] = "BRL";
|
|
17859
|
+
Currencies2["CAD"] = "CAD";
|
|
17860
|
+
Currencies2["CHF"] = "CHF";
|
|
17861
|
+
Currencies2["CZK"] = "CZK";
|
|
17862
|
+
Currencies2["DKK"] = "DKK";
|
|
17863
|
+
Currencies2["EUR"] = "EUR";
|
|
17864
|
+
Currencies2["GBP"] = "GBP";
|
|
17865
|
+
Currencies2["HKD"] = "HKD";
|
|
17866
|
+
Currencies2["HRK"] = "HRK";
|
|
17867
|
+
Currencies2["HUF"] = "HUF";
|
|
17868
|
+
Currencies2["MXN"] = "MXN";
|
|
17869
|
+
Currencies2["MYR"] = "MYR";
|
|
17870
|
+
Currencies2["NOK"] = "NOK";
|
|
17871
|
+
Currencies2["NZD"] = "NZD";
|
|
17872
|
+
Currencies2["PLN"] = "PLN";
|
|
17873
|
+
Currencies2["RON"] = "RON";
|
|
17874
|
+
Currencies2["SEK"] = "SEK";
|
|
17875
|
+
Currencies2["SGD"] = "SGD";
|
|
17876
|
+
Currencies2["USD"] = "USD";
|
|
17877
|
+
return Currencies2;
|
|
17878
|
+
})(Currencies || {});
|
|
17848
17879
|
const currencyByCountry = {
|
|
17849
|
-
[CountryCodes.Australia]: [
|
|
17850
|
-
[CountryCodes.Austria]: [
|
|
17851
|
-
[CountryCodes.Belgium]: [
|
|
17852
|
-
[CountryCodes.Brazil]: [
|
|
17853
|
-
[CountryCodes.Bulgaria]: [
|
|
17854
|
-
[CountryCodes.Canada]: [
|
|
17855
|
-
[CountryCodes.Croatia]: [
|
|
17856
|
-
[CountryCodes.Cyprus]: [
|
|
17857
|
-
[CountryCodes.CzechRepublic]: [
|
|
17858
|
-
[CountryCodes.Denmark]: [
|
|
17859
|
-
[CountryCodes.Estonia]: [
|
|
17860
|
-
[CountryCodes.Finland]: [
|
|
17861
|
-
[CountryCodes.France]: [
|
|
17862
|
-
[CountryCodes.Germany]: [
|
|
17863
|
-
[CountryCodes.Gibraltar]: [
|
|
17864
|
-
[CountryCodes.Greece]: [
|
|
17865
|
-
[CountryCodes.Guernsey]: [
|
|
17866
|
-
[CountryCodes.HongKong]: [
|
|
17867
|
-
[CountryCodes.Hungary]: [
|
|
17868
|
-
[CountryCodes.Ireland]: [
|
|
17869
|
-
[CountryCodes.IsleOfMan]: [
|
|
17870
|
-
[CountryCodes.Italy]: [
|
|
17871
|
-
[CountryCodes.Jersey]: [
|
|
17872
|
-
[CountryCodes.Latvia]: [
|
|
17873
|
-
[CountryCodes.Liechtenstein]: [
|
|
17874
|
-
[CountryCodes.Lithuania]: [
|
|
17875
|
-
[CountryCodes.Luxembourg]: [
|
|
17876
|
-
[CountryCodes.Malaysia]: [
|
|
17877
|
-
[CountryCodes.Malta]: [
|
|
17878
|
-
[CountryCodes.Mexico]: [
|
|
17879
|
-
[CountryCodes.Monaco]: [
|
|
17880
|
-
[CountryCodes.Netherlands]: [
|
|
17881
|
-
[CountryCodes.NewZealand]: [
|
|
17882
|
-
[CountryCodes.Norway]: [
|
|
17883
|
-
[CountryCodes.Poland]: [
|
|
17884
|
-
[CountryCodes.Portugal]: [
|
|
17885
|
-
[CountryCodes.PuertoRico]: [
|
|
17886
|
-
[CountryCodes.Romania]: [
|
|
17887
|
-
[CountryCodes.Singapore]: [
|
|
17888
|
-
[CountryCodes.Slovakia]: [
|
|
17889
|
-
[CountryCodes.Slovenia]: [
|
|
17890
|
-
[CountryCodes.Spain]: [
|
|
17891
|
-
[CountryCodes.Sweden]: [
|
|
17892
|
-
[CountryCodes.Switzerland]: [
|
|
17893
|
-
[CountryCodes.UnitedArabEmirates]: [
|
|
17894
|
-
[CountryCodes.UnitedKingdom]: [
|
|
17895
|
-
[CountryCodes.UnitedStates]: [
|
|
17880
|
+
[CountryCodes.Australia]: [Currencies.AUD],
|
|
17881
|
+
[CountryCodes.Austria]: [Currencies.EUR],
|
|
17882
|
+
[CountryCodes.Belgium]: [Currencies.EUR],
|
|
17883
|
+
[CountryCodes.Brazil]: [Currencies.BRL],
|
|
17884
|
+
[CountryCodes.Bulgaria]: [Currencies.BGN, Currencies.EUR],
|
|
17885
|
+
[CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
|
|
17886
|
+
[CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
|
|
17887
|
+
[CountryCodes.Cyprus]: [Currencies.EUR],
|
|
17888
|
+
[CountryCodes.CzechRepublic]: [Currencies.CZK, Currencies.EUR],
|
|
17889
|
+
[CountryCodes.Denmark]: [Currencies.DKK, Currencies.EUR],
|
|
17890
|
+
[CountryCodes.Estonia]: [Currencies.EUR],
|
|
17891
|
+
[CountryCodes.Finland]: [Currencies.EUR],
|
|
17892
|
+
[CountryCodes.France]: [Currencies.EUR],
|
|
17893
|
+
[CountryCodes.Germany]: [Currencies.EUR],
|
|
17894
|
+
[CountryCodes.Gibraltar]: [Currencies.GBP],
|
|
17895
|
+
[CountryCodes.Greece]: [Currencies.EUR],
|
|
17896
|
+
[CountryCodes.Guernsey]: [Currencies.GBP],
|
|
17897
|
+
[CountryCodes.HongKong]: [Currencies.HKD],
|
|
17898
|
+
[CountryCodes.Hungary]: [Currencies.HUF, Currencies.EUR],
|
|
17899
|
+
[CountryCodes.Ireland]: [Currencies.EUR],
|
|
17900
|
+
[CountryCodes.IsleOfMan]: [Currencies.GBP],
|
|
17901
|
+
[CountryCodes.Italy]: [Currencies.EUR],
|
|
17902
|
+
[CountryCodes.Jersey]: [Currencies.GBP],
|
|
17903
|
+
[CountryCodes.Latvia]: [Currencies.EUR],
|
|
17904
|
+
[CountryCodes.Liechtenstein]: [Currencies.CHF, Currencies.EUR],
|
|
17905
|
+
[CountryCodes.Lithuania]: [Currencies.EUR],
|
|
17906
|
+
[CountryCodes.Luxembourg]: [Currencies.EUR],
|
|
17907
|
+
[CountryCodes.Malaysia]: [Currencies.MYR],
|
|
17908
|
+
[CountryCodes.Malta]: [Currencies.EUR],
|
|
17909
|
+
[CountryCodes.Mexico]: [Currencies.MXN],
|
|
17910
|
+
[CountryCodes.Monaco]: [Currencies.EUR],
|
|
17911
|
+
[CountryCodes.Netherlands]: [Currencies.EUR],
|
|
17912
|
+
[CountryCodes.NewZealand]: [Currencies.NZD],
|
|
17913
|
+
[CountryCodes.Norway]: [Currencies.NOK, Currencies.EUR],
|
|
17914
|
+
[CountryCodes.Poland]: [Currencies.PLN, Currencies.EUR],
|
|
17915
|
+
[CountryCodes.Portugal]: [Currencies.EUR],
|
|
17916
|
+
[CountryCodes.PuertoRico]: [Currencies.USD],
|
|
17917
|
+
[CountryCodes.Romania]: [Currencies.RON, Currencies.EUR],
|
|
17918
|
+
[CountryCodes.Singapore]: [Currencies.SGD],
|
|
17919
|
+
[CountryCodes.Slovakia]: [Currencies.EUR],
|
|
17920
|
+
[CountryCodes.Slovenia]: [Currencies.EUR],
|
|
17921
|
+
[CountryCodes.Spain]: [Currencies.EUR],
|
|
17922
|
+
[CountryCodes.Sweden]: [Currencies.SEK, Currencies.EUR],
|
|
17923
|
+
[CountryCodes.Switzerland]: [Currencies.CHF, Currencies.EUR],
|
|
17924
|
+
[CountryCodes.UnitedArabEmirates]: [Currencies.AED],
|
|
17925
|
+
[CountryCodes.UnitedKingdom]: [Currencies.GBP, Currencies.EUR],
|
|
17926
|
+
[CountryCodes.UnitedStates]: [Currencies.USD]
|
|
17896
17927
|
};
|
|
17897
17928
|
const bankVerificationValidationRules = {
|
|
17898
17929
|
verifiedAccountHolder: {
|
|
@@ -17941,7 +17972,7 @@ class AdyenKycSdkError extends Error {
|
|
|
17941
17972
|
}
|
|
17942
17973
|
let sdkToken;
|
|
17943
17974
|
let fetchSdkToken;
|
|
17944
|
-
const logger$
|
|
17975
|
+
const logger$l = createLogger("Session");
|
|
17945
17976
|
const setSdkToken = (token) => {
|
|
17946
17977
|
sdkToken = token;
|
|
17947
17978
|
};
|
|
@@ -17959,7 +17990,7 @@ const refreshSession = async () => {
|
|
|
17959
17990
|
} = await fetchSdkToken();
|
|
17960
17991
|
setSdkToken(token);
|
|
17961
17992
|
} catch (e) {
|
|
17962
|
-
logger$
|
|
17993
|
+
logger$l.error("Failed to fetch sdk token", e);
|
|
17963
17994
|
}
|
|
17964
17995
|
};
|
|
17965
17996
|
const addAnimationStartListener = (element, listener) => {
|
|
@@ -17968,7 +17999,7 @@ const addAnimationStartListener = (element, listener) => {
|
|
|
17968
17999
|
const removeAnimationStartListener = (element, listener) => {
|
|
17969
18000
|
element.removeEventListener("animationstart", listener, false);
|
|
17970
18001
|
};
|
|
17971
|
-
const logger$
|
|
18002
|
+
const logger$k = createLogger("Fetch");
|
|
17972
18003
|
const getRequestObject = (options, data) => {
|
|
17973
18004
|
const {
|
|
17974
18005
|
headers = [],
|
|
@@ -18015,10 +18046,10 @@ const logFetchError = (message, level) => {
|
|
|
18015
18046
|
case "info":
|
|
18016
18047
|
case "warn":
|
|
18017
18048
|
case "error":
|
|
18018
|
-
logger$
|
|
18049
|
+
logger$k[level](message);
|
|
18019
18050
|
break;
|
|
18020
18051
|
default:
|
|
18021
|
-
logger$
|
|
18052
|
+
logger$k.error(message);
|
|
18022
18053
|
}
|
|
18023
18054
|
};
|
|
18024
18055
|
const handleFetchResponse = async (response, responseType) => {
|
|
@@ -18116,7 +18147,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
|
|
|
18116
18147
|
const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
|
|
18117
18148
|
const MOUNT_TIMEOUT = 10 * 1e3;
|
|
18118
18149
|
const TINK_VENDOR = "Tink";
|
|
18119
|
-
const logger$
|
|
18150
|
+
const logger$j = createLogger("iframeWidget");
|
|
18120
18151
|
const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
|
|
18121
18152
|
const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
|
|
18122
18153
|
const parseMessageJson = (message) => {
|
|
@@ -18135,7 +18166,7 @@ const callbackErrorHandler = async (response) => {
|
|
|
18135
18166
|
try {
|
|
18136
18167
|
await response;
|
|
18137
18168
|
} catch (ex) {
|
|
18138
|
-
logger$
|
|
18169
|
+
logger$j.error(ex);
|
|
18139
18170
|
}
|
|
18140
18171
|
return {
|
|
18141
18172
|
error: "UNKNOWN_ERROR",
|
|
@@ -18244,7 +18275,7 @@ class IFrameWidget {
|
|
|
18244
18275
|
message = responseData.errorMessage;
|
|
18245
18276
|
}
|
|
18246
18277
|
} catch (ex) {
|
|
18247
|
-
logger$
|
|
18278
|
+
logger$j.error(ex);
|
|
18248
18279
|
}
|
|
18249
18280
|
throw new AdyenKycSdkError(reason, jsonData.error);
|
|
18250
18281
|
}
|
|
@@ -18432,7 +18463,7 @@ function BankVerificationWidget({
|
|
|
18432
18463
|
ref: widgetContainerRef
|
|
18433
18464
|
});
|
|
18434
18465
|
}
|
|
18435
|
-
const logger$
|
|
18466
|
+
const logger$i = createLogger("BankVerification");
|
|
18436
18467
|
const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
|
|
18437
18468
|
const InstantVerificationErrorContext = createContext(null);
|
|
18438
18469
|
const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
|
|
@@ -18466,7 +18497,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
|
|
|
18466
18497
|
const vendor = vendors[0];
|
|
18467
18498
|
setPreferredVendor(vendor.name ? vendor : void 0);
|
|
18468
18499
|
};
|
|
18469
|
-
getPreferredVendor().catch(logger$
|
|
18500
|
+
getPreferredVendor().catch(logger$i.error);
|
|
18470
18501
|
}, [country2, getBankVerificationVendors]);
|
|
18471
18502
|
return preferredVendor;
|
|
18472
18503
|
};
|
|
@@ -18672,12 +18703,12 @@ const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bu
|
|
|
18672
18703
|
const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
|
|
18673
18704
|
const payoutCurrencySupport = {
|
|
18674
18705
|
[CountryCodes.Sweden]: {
|
|
18675
|
-
local: [
|
|
18676
|
-
iban: [
|
|
18706
|
+
local: [Currencies.SEK],
|
|
18707
|
+
iban: [Currencies.EUR, Currencies.SEK]
|
|
18677
18708
|
},
|
|
18678
18709
|
[CountryCodes.Canada]: {
|
|
18679
|
-
local: [
|
|
18680
|
-
iban: [
|
|
18710
|
+
local: [Currencies.CAD, Currencies.USD],
|
|
18711
|
+
iban: [Currencies.CAD, Currencies.USD]
|
|
18681
18712
|
}
|
|
18682
18713
|
};
|
|
18683
18714
|
const shouldShowPayoutAccountFormatSelector = (country2) => countriesWithLocalFormat.has(country2);
|
|
@@ -18710,22 +18741,10 @@ const getSupportedCurrenciesPerFormat = (country2, format) => {
|
|
|
18710
18741
|
if (!defaultCurrency) {
|
|
18711
18742
|
return;
|
|
18712
18743
|
}
|
|
18713
|
-
return format === "iban" ? [
|
|
18744
|
+
return format === "iban" ? [Currencies.EUR, defaultCurrency] : [defaultCurrency];
|
|
18714
18745
|
}
|
|
18715
18746
|
return supportedCurrencies[format];
|
|
18716
18747
|
};
|
|
18717
|
-
const createDelimitedStringFormatter = (char, indexes) => (val) => indexes.reduce((acc, delimiterIndex, index) => {
|
|
18718
|
-
const slicePoint = delimiterIndex + index;
|
|
18719
|
-
return slicePoint < acc.length ? [...acc.slice(0, slicePoint), "-", ...acc.slice(slicePoint)] : acc;
|
|
18720
|
-
}, val.replaceAll("-", "").split("")).join("");
|
|
18721
|
-
({
|
|
18722
|
-
[CountryCodes.NewZealand]: {
|
|
18723
|
-
bankAccountNumber: {
|
|
18724
|
-
// We want to add "-" after the 2nd, 6th and 13th numbers for New Zealand
|
|
18725
|
-
formatter: (val) => val ? createDelimitedStringFormatter("-", [2, 6, 13])(val) : val
|
|
18726
|
-
}
|
|
18727
|
-
}
|
|
18728
|
-
});
|
|
18729
18748
|
function BankAccountFormat(props) {
|
|
18730
18749
|
const {
|
|
18731
18750
|
i18n
|
|
@@ -20223,7 +20242,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
|
|
|
20223
20242
|
}
|
|
20224
20243
|
});
|
|
20225
20244
|
const payoutVerificationMethods = ["instantVerification", "manualVerification"];
|
|
20226
|
-
const logger$
|
|
20245
|
+
const logger$h = createLogger("useLocalStorage");
|
|
20227
20246
|
const useLocalStorage = (key, defaultValue, options) => {
|
|
20228
20247
|
const {
|
|
20229
20248
|
serializer,
|
|
@@ -20244,7 +20263,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20244
20263
|
const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
|
|
20245
20264
|
return res;
|
|
20246
20265
|
} catch (err) {
|
|
20247
|
-
logger$
|
|
20266
|
+
logger$h.error(err);
|
|
20248
20267
|
return defaultValue;
|
|
20249
20268
|
}
|
|
20250
20269
|
});
|
|
@@ -20276,7 +20295,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20276
20295
|
try {
|
|
20277
20296
|
updateLocalStorage();
|
|
20278
20297
|
} catch (err) {
|
|
20279
|
-
logger$
|
|
20298
|
+
logger$h.error(err);
|
|
20280
20299
|
}
|
|
20281
20300
|
}, [value]);
|
|
20282
20301
|
useEffect(() => {
|
|
@@ -20291,7 +20310,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
20291
20310
|
setValue(event.newValue ? parser(event.newValue) : void 0);
|
|
20292
20311
|
}
|
|
20293
20312
|
} catch (err) {
|
|
20294
|
-
logger$
|
|
20313
|
+
logger$h.error(err);
|
|
20295
20314
|
}
|
|
20296
20315
|
};
|
|
20297
20316
|
if (typeof window === "undefined")
|
|
@@ -22439,18 +22458,8 @@ const useFormComposer = ({
|
|
|
22439
22458
|
setShouldValidate
|
|
22440
22459
|
};
|
|
22441
22460
|
};
|
|
22442
|
-
const
|
|
22443
|
-
|
|
22444
|
-
BRANCH_CODE: "branchCode",
|
|
22445
|
-
NUMBER: "bankAccountNumber",
|
|
22446
|
-
BANK_CITY: "bankCity",
|
|
22447
|
-
SWIFT_CODE: "swiftCode",
|
|
22448
|
-
IBAN: "iban",
|
|
22449
|
-
OWNER_NAME: "accountHolder",
|
|
22450
|
-
BANK_NAME: "bankName"
|
|
22451
|
-
};
|
|
22452
|
-
const obscuredPayoutFields = [payoutFieldsMapping.NUMBER, payoutFieldsMapping.IBAN];
|
|
22453
|
-
const countryConfig$2 = {
|
|
22461
|
+
const obscuredPayoutFields = ["bankAccountNumber", "iban"];
|
|
22462
|
+
const countryConfig$1 = {
|
|
22454
22463
|
[CountryCodes.Australia]: {},
|
|
22455
22464
|
[CountryCodes.Brazil]: {
|
|
22456
22465
|
bankCode: {
|
|
@@ -22494,97 +22503,6 @@ const countryConfig$2 = {
|
|
|
22494
22503
|
},
|
|
22495
22504
|
[CountryCodes.UnitedStates]: {}
|
|
22496
22505
|
};
|
|
22497
|
-
const parseValidationRule = (validationRule) => {
|
|
22498
|
-
const [name, start, end] = validationRule.split(":");
|
|
22499
|
-
switch (name) {
|
|
22500
|
-
case "bic_either8or11":
|
|
22501
|
-
return {
|
|
22502
|
-
name: "bic_either8or11"
|
|
22503
|
-
};
|
|
22504
|
-
case "iban": {
|
|
22505
|
-
const length = parseInt(start);
|
|
22506
|
-
if (Number.isNaN(length))
|
|
22507
|
-
return "invalid";
|
|
22508
|
-
return {
|
|
22509
|
-
name: "iban",
|
|
22510
|
-
length
|
|
22511
|
-
};
|
|
22512
|
-
}
|
|
22513
|
-
case "digits": {
|
|
22514
|
-
const minLength = parseInt(start);
|
|
22515
|
-
const maxLength = parseInt(end);
|
|
22516
|
-
if (Number.isNaN(minLength) || end && Number.isNaN(maxLength))
|
|
22517
|
-
return "invalid";
|
|
22518
|
-
return {
|
|
22519
|
-
name: "digits",
|
|
22520
|
-
minLength,
|
|
22521
|
-
maxLength
|
|
22522
|
-
};
|
|
22523
|
-
}
|
|
22524
|
-
default:
|
|
22525
|
-
return "invalid";
|
|
22526
|
-
}
|
|
22527
|
-
};
|
|
22528
|
-
const countryValueParser = (country2) => {
|
|
22529
|
-
switch (country2) {
|
|
22530
|
-
case CountryCodes.NewZealand:
|
|
22531
|
-
return (value) => value == null ? void 0 : value.replaceAll("-", "");
|
|
22532
|
-
default:
|
|
22533
|
-
return (value) => value;
|
|
22534
|
-
}
|
|
22535
|
-
};
|
|
22536
|
-
const getValidatorRules = (validationRule, country2) => {
|
|
22537
|
-
const rule = parseValidationRule(validationRule);
|
|
22538
|
-
if (rule === "invalid")
|
|
22539
|
-
throw Error(`Invalid validation rule '${validationRule}'`);
|
|
22540
|
-
const valueParser = countryValueParser(country2);
|
|
22541
|
-
switch (rule.name) {
|
|
22542
|
-
case "bic_either8or11":
|
|
22543
|
-
return {
|
|
22544
|
-
modes: ["blur", "input"],
|
|
22545
|
-
validate: (value) => /^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/.test(value ?? ""),
|
|
22546
|
-
errorMessage: "validation8Or11Characters"
|
|
22547
|
-
};
|
|
22548
|
-
case "iban":
|
|
22549
|
-
return {
|
|
22550
|
-
modes: ["blur", "input"],
|
|
22551
|
-
validate: (value) => exactLength(value, rule.length),
|
|
22552
|
-
errorMessage: {
|
|
22553
|
-
key: "validationCharacters",
|
|
22554
|
-
values: {
|
|
22555
|
-
length: `${rule.length}`
|
|
22556
|
-
}
|
|
22557
|
-
}
|
|
22558
|
-
};
|
|
22559
|
-
case "digits":
|
|
22560
|
-
if (rule.maxLength) {
|
|
22561
|
-
return {
|
|
22562
|
-
modes: ["blur", "input"],
|
|
22563
|
-
// TODO: https://mattermost.adyen.com/adyen/pl/cr37pz9tzpr7zfy8cj4tn5caio
|
|
22564
|
-
validate: (value) => lengthIsBetween(valueParser(value), rule.minLength, rule.maxLength),
|
|
22565
|
-
errorMessage: {
|
|
22566
|
-
key: "validationDigitsBetween",
|
|
22567
|
-
values: {
|
|
22568
|
-
start: `${rule.minLength}`,
|
|
22569
|
-
end: `${rule.maxLength}`
|
|
22570
|
-
}
|
|
22571
|
-
}
|
|
22572
|
-
};
|
|
22573
|
-
}
|
|
22574
|
-
return {
|
|
22575
|
-
modes: ["blur", "input"],
|
|
22576
|
-
validate: (value) => exactLength(value, rule.minLength),
|
|
22577
|
-
errorMessage: {
|
|
22578
|
-
key: "validationDigits",
|
|
22579
|
-
values: {
|
|
22580
|
-
length: `${rule.minLength}`
|
|
22581
|
-
}
|
|
22582
|
-
}
|
|
22583
|
-
};
|
|
22584
|
-
default:
|
|
22585
|
-
return void 0;
|
|
22586
|
-
}
|
|
22587
|
-
};
|
|
22588
22506
|
const defaultPayoutAccountFormat = {
|
|
22589
22507
|
[CountryCodes.CzechRepublic]: "iban",
|
|
22590
22508
|
[CountryCodes.Denmark]: "local",
|
|
@@ -22594,7 +22512,7 @@ const defaultPayoutAccountFormat = {
|
|
|
22594
22512
|
[CountryCodes.Sweden]: "local",
|
|
22595
22513
|
[CountryCodes.UnitedKingdom]: "local"
|
|
22596
22514
|
};
|
|
22597
|
-
const logger$
|
|
22515
|
+
const logger$g = createLogger("useScenarioConfiguration");
|
|
22598
22516
|
const useScenarioConfiguration = ({
|
|
22599
22517
|
getConfigurationData,
|
|
22600
22518
|
getPayoutAccountFormatData,
|
|
@@ -22617,12 +22535,12 @@ const useScenarioConfiguration = ({
|
|
|
22617
22535
|
const response = await getConfigurationData();
|
|
22618
22536
|
setConfigurationResponse(response);
|
|
22619
22537
|
} catch (err) {
|
|
22620
|
-
logger$
|
|
22538
|
+
logger$g.warn("WARNING: Configuration request failed - error:", err);
|
|
22621
22539
|
} finally {
|
|
22622
22540
|
setLoadingStatus("success");
|
|
22623
22541
|
}
|
|
22624
22542
|
};
|
|
22625
|
-
makeConfigCallAndSave().catch(logger$
|
|
22543
|
+
makeConfigCallAndSave().catch(logger$g.error);
|
|
22626
22544
|
}, [getConfigurationData, setLoadingStatus]);
|
|
22627
22545
|
useEffect(() => {
|
|
22628
22546
|
setLoadingStatus("loading");
|
|
@@ -22641,12 +22559,12 @@ const useScenarioConfiguration = ({
|
|
|
22641
22559
|
const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
|
|
22642
22560
|
setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
|
|
22643
22561
|
} catch (err) {
|
|
22644
|
-
logger$
|
|
22562
|
+
logger$g.warn("WARNING: Payout format request failed - error:", err);
|
|
22645
22563
|
} finally {
|
|
22646
22564
|
setLoadingStatus("success");
|
|
22647
22565
|
}
|
|
22648
22566
|
};
|
|
22649
|
-
makePayoutFormatCallAndSave().catch(logger$
|
|
22567
|
+
makePayoutFormatCallAndSave().catch(logger$g.error);
|
|
22650
22568
|
}, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
|
|
22651
22569
|
const {
|
|
22652
22570
|
fieldConfigurations,
|
|
@@ -22808,69 +22726,6 @@ const fieldsPerScenario$1 = {
|
|
|
22808
22726
|
},
|
|
22809
22727
|
L1_IDDOC: idDocument
|
|
22810
22728
|
};
|
|
22811
|
-
const countryConfig$1 = {
|
|
22812
|
-
US: {
|
|
22813
|
-
idNumber: {
|
|
22814
|
-
label: "last4DigitsOfSocialSecurityNumber",
|
|
22815
|
-
placeholder: "SSNFormatUS"
|
|
22816
|
-
},
|
|
22817
|
-
idNumberExempt: {
|
|
22818
|
-
label: "identityNumberExempt__US"
|
|
22819
|
-
}
|
|
22820
|
-
},
|
|
22821
|
-
CA: {
|
|
22822
|
-
idNumber: {
|
|
22823
|
-
label: "socialInsuranceNumber",
|
|
22824
|
-
placeholder: "SINFormatCA"
|
|
22825
|
-
},
|
|
22826
|
-
idNumberExempt: {
|
|
22827
|
-
label: "identityNumberExempt__CA"
|
|
22828
|
-
}
|
|
22829
|
-
},
|
|
22830
|
-
IT: {
|
|
22831
|
-
idNumber: {
|
|
22832
|
-
label: "codiceFiscale"
|
|
22833
|
-
}
|
|
22834
|
-
},
|
|
22835
|
-
BR: {
|
|
22836
|
-
idNumber: {
|
|
22837
|
-
label: "cadastroDePessoasFisicas"
|
|
22838
|
-
}
|
|
22839
|
-
},
|
|
22840
|
-
SE: {
|
|
22841
|
-
idNumber: {
|
|
22842
|
-
label: "personnummer"
|
|
22843
|
-
}
|
|
22844
|
-
},
|
|
22845
|
-
ES: {
|
|
22846
|
-
idNumber: {
|
|
22847
|
-
label: "dni"
|
|
22848
|
-
}
|
|
22849
|
-
},
|
|
22850
|
-
PL: {
|
|
22851
|
-
idNumber: {
|
|
22852
|
-
label: "peselNumber"
|
|
22853
|
-
}
|
|
22854
|
-
},
|
|
22855
|
-
DK: {
|
|
22856
|
-
idNumber: {
|
|
22857
|
-
label: "detCentralePersonregister"
|
|
22858
|
-
}
|
|
22859
|
-
},
|
|
22860
|
-
RO: {
|
|
22861
|
-
idNumber: {
|
|
22862
|
-
label: "codNumericPersonal"
|
|
22863
|
-
}
|
|
22864
|
-
},
|
|
22865
|
-
SG: {
|
|
22866
|
-
idNumber: {
|
|
22867
|
-
label: "nric"
|
|
22868
|
-
},
|
|
22869
|
-
idNumberExempt: {
|
|
22870
|
-
label: "uploadDocumentForNric"
|
|
22871
|
-
}
|
|
22872
|
-
}
|
|
22873
|
-
};
|
|
22874
22729
|
const solePropBase = {
|
|
22875
22730
|
companyCountry: {
|
|
22876
22731
|
rule: "REQUIRED"
|
|
@@ -22944,36 +22799,31 @@ const fieldsPerScenario = {
|
|
|
22944
22799
|
}
|
|
22945
22800
|
};
|
|
22946
22801
|
const countryConfig = {
|
|
22947
|
-
...countryConfig$
|
|
22802
|
+
...countryConfig$3,
|
|
22948
22803
|
[CountryCodes.NewZealand]: {
|
|
22949
|
-
...countryConfig$
|
|
22804
|
+
...countryConfig$3[CountryCodes.NewZealand],
|
|
22950
22805
|
registrationNumber: {
|
|
22951
22806
|
label: "NZBN"
|
|
22952
22807
|
}
|
|
22953
22808
|
},
|
|
22954
22809
|
[CountryCodes.Croatia]: {
|
|
22955
|
-
...countryConfig$
|
|
22810
|
+
...countryConfig$3[CountryCodes.Croatia],
|
|
22956
22811
|
registrationNumber: {
|
|
22957
22812
|
label: "MBO"
|
|
22958
22813
|
}
|
|
22959
22814
|
}
|
|
22960
22815
|
};
|
|
22961
|
-
|
|
22962
|
-
|
|
22963
|
-
|
|
22964
|
-
|
|
22965
|
-
}), {});
|
|
22966
|
-
const countryConfigs = countryConfig$1[country2];
|
|
22967
|
-
fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
|
|
22968
|
-
return fieldConfigurations;
|
|
22969
|
-
}
|
|
22816
|
+
const parseIndividualScenarios = (scenario) => scenario == null ? void 0 : scenario.reduce((scenarios, scenarioName) => ({
|
|
22817
|
+
...scenarios,
|
|
22818
|
+
...fieldsPerScenario$1[scenarioName]
|
|
22819
|
+
}), {});
|
|
22970
22820
|
function parseCompanyScenarios(scenario, country2) {
|
|
22971
22821
|
if (scenario) {
|
|
22972
22822
|
let fieldConfigurations = scenario.reduce((scenarios, scenarioName) => ({
|
|
22973
22823
|
...scenarios,
|
|
22974
22824
|
...fieldsPerScenario$3[scenarioName]
|
|
22975
22825
|
}), {});
|
|
22976
|
-
const countryConfigs = countryConfig$
|
|
22826
|
+
const countryConfigs = countryConfig$3[country2];
|
|
22977
22827
|
fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
|
|
22978
22828
|
return fieldConfigurations;
|
|
22979
22829
|
}
|
|
@@ -22984,7 +22834,7 @@ function parseCompanySearchScenarios(scenario, country2) {
|
|
|
22984
22834
|
...scenarios,
|
|
22985
22835
|
...companySearchFieldsPerScenario[scenarioName]
|
|
22986
22836
|
}), {});
|
|
22987
|
-
const countryConfigs = countryConfig$
|
|
22837
|
+
const countryConfigs = countryConfig$3[country2];
|
|
22988
22838
|
fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
|
|
22989
22839
|
return fieldConfigurations;
|
|
22990
22840
|
}
|
|
@@ -22995,7 +22845,7 @@ function parseTrustScenarios(scenario, country2) {
|
|
|
22995
22845
|
...scenarios,
|
|
22996
22846
|
...fieldsPerScenario$2[scenarioName]
|
|
22997
22847
|
}), {});
|
|
22998
|
-
const countryConfigs = countryConfig$
|
|
22848
|
+
const countryConfigs = countryConfig$2[country2];
|
|
22999
22849
|
fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
|
|
23000
22850
|
return fieldConfigurations;
|
|
23001
22851
|
}
|
|
@@ -23018,11 +22868,6 @@ function parsePayoutScenarios({
|
|
|
23018
22868
|
}) {
|
|
23019
22869
|
if (!requiredFields)
|
|
23020
22870
|
return;
|
|
23021
|
-
const requiredValidatorRule = {
|
|
23022
|
-
modes: ["blur"],
|
|
23023
|
-
validate: (value) => !!value,
|
|
23024
|
-
errorMessage: "fieldIsRequired"
|
|
23025
|
-
};
|
|
23026
22871
|
const fieldConfigurations = {};
|
|
23027
22872
|
fieldConfigurations.payoutVerificationMethod = {
|
|
23028
22873
|
rule: "REQUIRED"
|
|
@@ -23030,22 +22875,16 @@ function parsePayoutScenarios({
|
|
|
23030
22875
|
fieldConfigurations.bankCountry = {
|
|
23031
22876
|
rule: "REQUIRED"
|
|
23032
22877
|
};
|
|
23033
|
-
requiredFields.forEach((
|
|
23034
|
-
|
|
23035
|
-
|
|
23036
|
-
|
|
23037
|
-
|
|
23038
|
-
|
|
23039
|
-
|
|
23040
|
-
|
|
23041
|
-
|
|
23042
|
-
|
|
23043
|
-
} : {
|
|
23044
|
-
rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
|
|
23045
|
-
validators: [requiredValidatorRule]
|
|
23046
|
-
};
|
|
23047
|
-
fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
|
|
23048
|
-
}
|
|
22878
|
+
requiredFields.forEach((fieldName) => {
|
|
22879
|
+
fieldConfigurations[fieldName] = {
|
|
22880
|
+
rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
|
|
22881
|
+
validators: [{
|
|
22882
|
+
modes: ["blur"],
|
|
22883
|
+
validate: (value) => !!value,
|
|
22884
|
+
errorMessage: "fieldIsRequired"
|
|
22885
|
+
}]
|
|
22886
|
+
};
|
|
22887
|
+
fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
|
|
23049
22888
|
});
|
|
23050
22889
|
if (bankVerificationAvailable) {
|
|
23051
22890
|
fieldConfigurations.verifiedAccountHolder = {
|
|
@@ -23070,7 +22909,7 @@ function parsePayoutScenarios({
|
|
|
23070
22909
|
fieldConfigurations.description = {
|
|
23071
22910
|
rule: "bankStatementDescription"
|
|
23072
22911
|
};
|
|
23073
|
-
return augmentWithCountryConfigs(countryConfig$
|
|
22912
|
+
return augmentWithCountryConfigs(countryConfig$1[country2], fieldConfigurations);
|
|
23074
22913
|
}
|
|
23075
22914
|
const augmentWithCountryConfigs = (countryConfigs, fieldConfigurations) => {
|
|
23076
22915
|
if (countryConfigs) {
|
|
@@ -23573,7 +23412,8 @@ const BusinessTypeSelection = ({
|
|
|
23573
23412
|
handleUpdateLegalEntity,
|
|
23574
23413
|
taskHistory,
|
|
23575
23414
|
setTaskHistory,
|
|
23576
|
-
onNavigateTo
|
|
23415
|
+
onNavigateTo,
|
|
23416
|
+
baseTrackingPayload
|
|
23577
23417
|
}) => {
|
|
23578
23418
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
23579
23419
|
const {
|
|
@@ -23626,6 +23466,26 @@ const BusinessTypeSelection = ({
|
|
|
23626
23466
|
var _a2, _b2;
|
|
23627
23467
|
setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
|
|
23628
23468
|
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
23469
|
+
useEffect(() => {
|
|
23470
|
+
userEvents.addPageView("Entity Selection");
|
|
23471
|
+
const startDropOffTrackingEvent = () => {
|
|
23472
|
+
userEvents.addEvent("Started legal entity selection", {
|
|
23473
|
+
segmentation: baseTrackingPayload
|
|
23474
|
+
});
|
|
23475
|
+
};
|
|
23476
|
+
const stopDropOffTrackingEvent = () => {
|
|
23477
|
+
userEvents.addEvent("Drop off at legal entity selection", {
|
|
23478
|
+
segmentation: baseTrackingPayload
|
|
23479
|
+
});
|
|
23480
|
+
};
|
|
23481
|
+
startDropOffTrackingEvent();
|
|
23482
|
+
window.addEventListener("focus", startDropOffTrackingEvent);
|
|
23483
|
+
window.addEventListener("blur", stopDropOffTrackingEvent);
|
|
23484
|
+
return () => {
|
|
23485
|
+
window.removeEventListener("focus", startDropOffTrackingEvent);
|
|
23486
|
+
window.removeEventListener("blur", stopDropOffTrackingEvent);
|
|
23487
|
+
};
|
|
23488
|
+
}, []);
|
|
23629
23489
|
const handleNextClick = async () => {
|
|
23630
23490
|
var _a2;
|
|
23631
23491
|
if (loadingStatus === "loading")
|
|
@@ -23657,11 +23517,17 @@ const BusinessTypeSelection = ({
|
|
|
23657
23517
|
return;
|
|
23658
23518
|
}
|
|
23659
23519
|
await updateLegalEntityAndSelectAccountHolder();
|
|
23520
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
23521
|
+
segmentation: baseTrackingPayload
|
|
23522
|
+
});
|
|
23660
23523
|
} else {
|
|
23661
23524
|
onAccountHolderSelect(newAccountHolder);
|
|
23662
23525
|
}
|
|
23663
23526
|
if (isLegalArrangementChanging) {
|
|
23664
23527
|
await updateLegalEntityAndSelectAccountHolder();
|
|
23528
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
23529
|
+
segmentation: baseTrackingPayload
|
|
23530
|
+
});
|
|
23665
23531
|
}
|
|
23666
23532
|
}
|
|
23667
23533
|
};
|
|
@@ -23902,7 +23768,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
|
|
|
23902
23768
|
return currentLegalEntityType;
|
|
23903
23769
|
};
|
|
23904
23770
|
const FormWrapper$1 = "";
|
|
23905
|
-
const logger$
|
|
23771
|
+
const logger$f = createLogger("FormRouterContextProvider");
|
|
23906
23772
|
function FormRouterContextProvider({
|
|
23907
23773
|
children,
|
|
23908
23774
|
forms: forms2,
|
|
@@ -23922,7 +23788,7 @@ function FormRouterContextProvider({
|
|
|
23922
23788
|
if (formIndex > -1) {
|
|
23923
23789
|
setFormIndex(formIndex);
|
|
23924
23790
|
} else {
|
|
23925
|
-
logger$
|
|
23791
|
+
logger$f.error("No form was found to have that field so form navigation failed.");
|
|
23926
23792
|
}
|
|
23927
23793
|
}
|
|
23928
23794
|
}), [forms2, handleGetIdVerificationToken, setFormIndex]);
|
|
@@ -24526,7 +24392,7 @@ function CompanyDropinComponent({
|
|
|
24526
24392
|
}
|
|
24527
24393
|
const CompanyBasicsComponent$1 = "";
|
|
24528
24394
|
const CompanyLookupComponent$1 = "";
|
|
24529
|
-
const logger$
|
|
24395
|
+
const logger$e = createLogger("useCompanySearch");
|
|
24530
24396
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
24531
24397
|
function useCompanySearch({
|
|
24532
24398
|
defaultData,
|
|
@@ -24665,7 +24531,7 @@ function useCompanySearch({
|
|
|
24665
24531
|
state: companyData.state ?? stateOrProvince2
|
|
24666
24532
|
});
|
|
24667
24533
|
} catch (e) {
|
|
24668
|
-
logger$
|
|
24534
|
+
logger$e.error(e);
|
|
24669
24535
|
setError(e);
|
|
24670
24536
|
setStatus("error");
|
|
24671
24537
|
} finally {
|
|
@@ -24698,7 +24564,7 @@ function useCompanySearch({
|
|
|
24698
24564
|
indexSearch: handleCompanyIndexSearch,
|
|
24699
24565
|
deepSearch: handleCompanyDeepSearch,
|
|
24700
24566
|
resultsLimit: limit
|
|
24701
|
-
})) == null ? void 0 : _a.catch((e) => logger$
|
|
24567
|
+
})) == null ? void 0 : _a.catch((e) => logger$e.error(e));
|
|
24702
24568
|
}
|
|
24703
24569
|
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
|
|
24704
24570
|
useEffect(() => {
|
|
@@ -26344,7 +26210,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
|
|
|
26344
26210
|
}
|
|
26345
26211
|
}, {});
|
|
26346
26212
|
};
|
|
26347
|
-
const logger$
|
|
26213
|
+
const logger$d = createLogger("useFormTaskSubmit");
|
|
26348
26214
|
function useCompanySearchTaskSubmit({
|
|
26349
26215
|
task,
|
|
26350
26216
|
forms: forms2,
|
|
@@ -26390,7 +26256,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26390
26256
|
});
|
|
26391
26257
|
}
|
|
26392
26258
|
} catch (e) {
|
|
26393
|
-
logger$
|
|
26259
|
+
logger$d.error(e);
|
|
26394
26260
|
}
|
|
26395
26261
|
}, [baseTrackingPayload, documentUtils]);
|
|
26396
26262
|
const submit2 = useCallback(async ({
|
|
@@ -26434,7 +26300,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26434
26300
|
...trackingPayload
|
|
26435
26301
|
}
|
|
26436
26302
|
});
|
|
26437
|
-
logger$
|
|
26303
|
+
logger$d.log(submittedLegalEntity);
|
|
26438
26304
|
setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
|
|
26439
26305
|
clearToasts();
|
|
26440
26306
|
onExternalSubmit == null ? void 0 : onExternalSubmit(data);
|
|
@@ -26459,7 +26325,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26459
26325
|
type: ToastType.ERROR
|
|
26460
26326
|
});
|
|
26461
26327
|
}
|
|
26462
|
-
logger$
|
|
26328
|
+
logger$d.error(e);
|
|
26463
26329
|
userEvents.addEvent("Encountered error company details", {
|
|
26464
26330
|
segmentation: {
|
|
26465
26331
|
...baseTrackingPayload,
|
|
@@ -26894,7 +26760,7 @@ const useShouldShowBusinessTypeSelection = (accountHolder2) => {
|
|
|
26894
26760
|
} = useExperimentsContext();
|
|
26895
26761
|
return isExperimentEnabled("EnableNewEntryFlow") && !accountHolder2;
|
|
26896
26762
|
};
|
|
26897
|
-
const logger$
|
|
26763
|
+
const logger$c = createLogger("useExemptSettlor");
|
|
26898
26764
|
const useExemptSettlor = ({
|
|
26899
26765
|
trust: trust2,
|
|
26900
26766
|
handleGetLegalEntity
|
|
@@ -26908,7 +26774,7 @@ const useExemptSettlor = ({
|
|
|
26908
26774
|
useEffect(() => {
|
|
26909
26775
|
if (!trust2)
|
|
26910
26776
|
return;
|
|
26911
|
-
updateExemptSettlor(trust2).catch(logger$
|
|
26777
|
+
updateExemptSettlor(trust2).catch(logger$c.error);
|
|
26912
26778
|
}, [trust2, updateExemptSettlor]);
|
|
26913
26779
|
return exemptSettlor;
|
|
26914
26780
|
};
|
|
@@ -28553,6 +28419,7 @@ const LEGAL_ENTITY_BASE_TASKS = [TaskTypes.INDIVIDUAL, TaskTypes.COMPANY, TaskTy
|
|
|
28553
28419
|
const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
|
|
28554
28420
|
function TaskListComponent({
|
|
28555
28421
|
tasks,
|
|
28422
|
+
trackingConfig,
|
|
28556
28423
|
onNavigateToTask,
|
|
28557
28424
|
legalEntityResponse,
|
|
28558
28425
|
capabilityProblems,
|
|
@@ -28618,6 +28485,17 @@ function TaskListComponent({
|
|
|
28618
28485
|
const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
|
|
28619
28486
|
const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
28620
28487
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
28488
|
+
const onEditBusinessSetupClick = () => {
|
|
28489
|
+
const baseTrackingPayload = getBaseTrackingPayload({
|
|
28490
|
+
trackingConfig,
|
|
28491
|
+
legalEntity: legalEntityResponse,
|
|
28492
|
+
task: tasks[tasks.length - 1]
|
|
28493
|
+
});
|
|
28494
|
+
userEvents.addEvent("Clicked back to legal entity selection", {
|
|
28495
|
+
segmentation: baseTrackingPayload
|
|
28496
|
+
});
|
|
28497
|
+
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
28498
|
+
};
|
|
28621
28499
|
return jsxs("div", {
|
|
28622
28500
|
children: [canSeeIntroduction && jsx("div", {
|
|
28623
28501
|
className: "adyen-task-list__nav",
|
|
@@ -28646,7 +28524,7 @@ function TaskListComponent({
|
|
|
28646
28524
|
icon: "edit",
|
|
28647
28525
|
ghost: true,
|
|
28648
28526
|
circle: true,
|
|
28649
|
-
onClick:
|
|
28527
|
+
onClick: onEditBusinessSetupClick,
|
|
28650
28528
|
className: "adl-u-margin-left-4",
|
|
28651
28529
|
type: "button"
|
|
28652
28530
|
})]
|
|
@@ -29101,9 +28979,8 @@ const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData)
|
|
|
29101
28979
|
return filtered;
|
|
29102
28980
|
};
|
|
29103
28981
|
const parseConfiguration$3 = ({
|
|
29104
|
-
country: country2,
|
|
29105
28982
|
matchingScenario
|
|
29106
|
-
}) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]
|
|
28983
|
+
}) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]);
|
|
29107
28984
|
function IndividualDropinComponent({
|
|
29108
28985
|
handleCreateDocument,
|
|
29109
28986
|
handleGetDocument,
|
|
@@ -29609,6 +29486,14 @@ const useBankConfigurationHandlers = ({
|
|
|
29609
29486
|
getBankVerificationVendorsHandler
|
|
29610
29487
|
};
|
|
29611
29488
|
};
|
|
29489
|
+
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-670c62c0.mjs"), "./AE.json": () => import("./AE-24bbc749.mjs"), "./AI.json": () => import("./AI-2f8eb3e4.mjs"), "./AL.json": () => import("./AL-dee818f3.mjs"), "./AR.json": () => import("./AR-ddb2f621.mjs"), "./AS.json": () => import("./AS-d857591e.mjs"), "./AT.json": () => import("./AT-0d286d50.mjs"), "./AU.json": () => import("./AU-e3d4ecff.mjs"), "./AX.json": () => import("./AX-acf0cb07.mjs"), "./AZ.json": () => import("./AZ-febcbba9.mjs"), "./BA.json": () => import("./BA-36553325.mjs"), "./BE.json": () => import("./BE-01b309e9.mjs"), "./BG.json": () => import("./BG-b141efc4.mjs"), "./BH.json": () => import("./BH-4252606c.mjs"), "./BM.json": () => import("./BM-9d017537.mjs"), "./BR.json": () => import("./BR-afb9b585.mjs"), "./BS.json": () => import("./BS-71942f8a.mjs"), "./BV.json": () => import("./BV-7c089d21.mjs"), "./BY.json": () => import("./BY-b3362481.mjs"), "./CA.json": () => import("./CA-75a34c71.mjs"), "./CH.json": () => import("./CH-b8cf24c1.mjs"), "./CN.json": () => import("./CN-ebbef145.mjs"), "./CR.json": () => import("./CR-8bf65073.mjs"), "./CY.json": () => import("./CY-3e2ed850.mjs"), "./CZ.json": () => import("./CZ-7ac97b54.mjs"), "./DE.json": () => import("./DE-2322162a.mjs"), "./DK.json": () => import("./DK-7cebcff6.mjs"), "./DO.json": () => import("./DO-bfe9604e.mjs"), "./EC.json": () => import("./EC-3ab33540.mjs"), "./EE.json": () => import("./EE-cbb695a1.mjs"), "./ES.json": () => import("./ES-094cb641.mjs"), "./FI.json": () => import("./FI-a1653669.mjs"), "./FJ.json": () => import("./FJ-3b91f5c9.mjs"), "./FO.json": () => import("./FO-f647fb1e.mjs"), "./FR.json": () => import("./FR-ea366f1a.mjs"), "./GB.json": () => import("./GB-a45c6caa.mjs"), "./GE.json": () => import("./GE-ac5fdc42.mjs"), "./GF.json": () => import("./GF-6273f16b.mjs"), "./GG.json": () => import("./GG-bad391fd.mjs"), "./GI.json": () => import("./GI-757caa3a.mjs"), "./GL.json": () => import("./GL-226ffa9f.mjs"), "./GP.json": () => import("./GP-473e593a.mjs"), "./GR.json": () => import("./GR-3bcff231.mjs"), "./GT.json": () => import("./GT-db5da0a4.mjs"), "./GU.json": () => import("./GU-ca4f557c.mjs"), "./HK.json": () => import("./HK-40526878.mjs"), "./HR.json": () => import("./HR-29a95014.mjs"), "./HU.json": () => import("./HU-80af7974.mjs"), "./ID.json": () => import("./ID-506578fe.mjs"), "./IE.json": () => import("./IE-32cbd0f3.mjs"), "./IL.json": () => import("./IL-373dafad.mjs"), "./IM.json": () => import("./IM-891b32c5.mjs"), "./IN.json": () => import("./IN-bec55b74.mjs"), "./IS.json": () => import("./IS-3a5d33d3.mjs"), "./IT.json": () => import("./IT-4ff08cfe.mjs"), "./JE.json": () => import("./JE-307987ba.mjs"), "./JM.json": () => import("./JM-3ce8fbab.mjs"), "./JO.json": () => import("./JO-42a19672.mjs"), "./JP.json": () => import("./JP-0077f7b5.mjs"), "./KR.json": () => import("./KR-95fa1426.mjs"), "./KW.json": () => import("./KW-a98f9b4c.mjs"), "./KY.json": () => import("./KY-1aaca646.mjs"), "./KZ.json": () => import("./KZ-7daadd7e.mjs"), "./LB.json": () => import("./LB-1c59787b.mjs"), "./LI.json": () => import("./LI-77d06f2d.mjs"), "./LT.json": () => import("./LT-f3ad2e3e.mjs"), "./LU.json": () => import("./LU-e8eedd03.mjs"), "./LV.json": () => import("./LV-6971017f.mjs"), "./MC.json": () => import("./MC-ee5965bb.mjs"), "./MD.json": () => import("./MD-8041437f.mjs"), "./ME.json": () => import("./ME-d9f4c3da.mjs"), "./MK.json": () => import("./MK-8c45a314.mjs"), "./MP.json": () => import("./MP-093ac455.mjs"), "./MQ.json": () => import("./MQ-f9c253cc.mjs"), "./MR.json": () => import("./MR-2f01df5c.mjs"), "./MT.json": () => import("./MT-32167278.mjs"), "./MU.json": () => import("./MU-e04facaa.mjs"), "./MX.json": () => import("./MX-1d1a9644.mjs"), "./MY.json": () => import("./MY-392e074a.mjs"), "./NC.json": () => import("./NC-3b4b0260.mjs"), "./NL.json": () => import("./NL-b9bcb702.mjs"), "./NO.json": () => import("./NO-6809e6fd.mjs"), "./NZ.json": () => import("./NZ-43e49467.mjs"), "./PE.json": () => import("./PE-0c1072d7.mjs"), "./PF.json": () => import("./PF-fb6bd5d0.mjs"), "./PH.json": () => import("./PH-8ef2049d.mjs"), "./PK.json": () => import("./PK-a445458d.mjs"), "./PL.json": () => import("./PL-620a9ca4.mjs"), "./PM.json": () => import("./PM-d4c0464a.mjs"), "./PR.json": () => import("./PR-ad22b592.mjs"), "./PS.json": () => import("./PS-cabe03e5.mjs"), "./PT.json": () => import("./PT-33451f8d.mjs"), "./QA.json": () => import("./QA-3d255e2d.mjs"), "./RE.json": () => import("./RE-8b1c7cc1.mjs"), "./RO.json": () => import("./RO-2bfa665c.mjs"), "./RS.json": () => import("./RS-3347a703.mjs"), "./RU.json": () => import("./RU-e3e01124.mjs"), "./SA.json": () => import("./SA-91a0ead5.mjs"), "./SE.json": () => import("./SE-cb13f129.mjs"), "./SG.json": () => import("./SG-6086848e.mjs"), "./SI.json": () => import("./SI-2865f1da.mjs"), "./SJ.json": () => import("./SJ-598eb05e.mjs"), "./SK.json": () => import("./SK-95af17ba.mjs"), "./SM.json": () => import("./SM-4dd69f38.mjs"), "./TF.json": () => import("./TF-ea5a687e.mjs"), "./TH.json": () => import("./TH-567ec66c.mjs"), "./TL.json": () => import("./TL-9c45dea1.mjs"), "./TN.json": () => import("./TN-40f39700.mjs"), "./TR.json": () => import("./TR-17aaedbd.mjs"), "./TT.json": () => import("./TT-80575a0d.mjs"), "./TW.json": () => import("./TW-8104c581.mjs"), "./UA.json": () => import("./UA-9a09a2fe.mjs"), "./US.json": () => import("./US-48190122.mjs"), "./UY.json": () => import("./UY-ede97218.mjs"), "./VA.json": () => import("./VA-193042b9.mjs"), "./VG.json": () => import("./VG-71c752e9.mjs"), "./VI.json": () => import("./VI-caa740af.mjs"), "./VN.json": () => import("./VN-5a6450ab.mjs"), "./WF.json": () => import("./WF-6ee9803f.mjs"), "./YT.json": () => import("./YT-e12497c8.mjs"), "./ZA.json": () => import("./ZA-77011c5b.mjs") });
|
|
29490
|
+
const getAccountFormatsForCountry = async (country2) => {
|
|
29491
|
+
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
29492
|
+
if (!importForCountry) {
|
|
29493
|
+
throw Error(`No account formats available for ${country2}`);
|
|
29494
|
+
}
|
|
29495
|
+
return (await importForCountry()).default;
|
|
29496
|
+
};
|
|
29612
29497
|
const isInstantVerificationAvailable = ({
|
|
29613
29498
|
country: country2,
|
|
29614
29499
|
verificationVendorsCallback,
|
|
@@ -29719,8 +29604,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29719
29604
|
isSettingEnabled
|
|
29720
29605
|
} = useSettingsContext();
|
|
29721
29606
|
const {
|
|
29722
|
-
getConfiguration: getConfiguration2
|
|
29723
|
-
getPayoutAccountFormat: getPayoutAccountFormat2
|
|
29607
|
+
getConfiguration: getConfiguration2
|
|
29724
29608
|
} = useConfigurationApi();
|
|
29725
29609
|
const defaultPayoutCountry = getRegistrationCountry(legalEntityResponse);
|
|
29726
29610
|
const existingPayoutDetails = transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument) : void 0;
|
|
@@ -29800,7 +29684,7 @@ function PayoutDetailsDropinComponent({
|
|
|
29800
29684
|
legalEntityType: legalEntityResponse.type,
|
|
29801
29685
|
capabilities
|
|
29802
29686
|
});
|
|
29803
|
-
const getPayoutAccountFormatData = useCallback(async () =>
|
|
29687
|
+
const getPayoutAccountFormatData = useCallback(async () => getAccountFormatsForCountry(bankAccountCountry2), [bankAccountCountry2]);
|
|
29804
29688
|
const {
|
|
29805
29689
|
fieldConfigurations,
|
|
29806
29690
|
requiredFields,
|
|
@@ -30971,7 +30855,7 @@ const serviceAgreementValidationRules = {
|
|
|
30971
30855
|
errorMessage: "fieldIsRequired"
|
|
30972
30856
|
}
|
|
30973
30857
|
};
|
|
30974
|
-
const logger$
|
|
30858
|
+
const logger$b = createLogger("useServiceAgreement");
|
|
30975
30859
|
const FALLBACK_LANGUAGE_CODE = "en";
|
|
30976
30860
|
const useServiceAgreement = ({
|
|
30977
30861
|
handleGetServiceAgreement,
|
|
@@ -31000,7 +30884,7 @@ const useServiceAgreement = ({
|
|
|
31000
30884
|
language: agreementLanguage
|
|
31001
30885
|
});
|
|
31002
30886
|
if (!document2) {
|
|
31003
|
-
logger$
|
|
30887
|
+
logger$b.log('"document" field was missing in response');
|
|
31004
30888
|
return;
|
|
31005
30889
|
}
|
|
31006
30890
|
const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
|
|
@@ -31018,7 +30902,7 @@ const useServiceAgreement = ({
|
|
|
31018
30902
|
throw err;
|
|
31019
30903
|
}
|
|
31020
30904
|
};
|
|
31021
|
-
requestServiceAgreement().catch(logger$
|
|
30905
|
+
requestServiceAgreement().catch(logger$b.error);
|
|
31022
30906
|
}, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
|
|
31023
30907
|
return {
|
|
31024
30908
|
loading: loading2,
|
|
@@ -31858,7 +31742,7 @@ function TrustDropinComponent({
|
|
|
31858
31742
|
}
|
|
31859
31743
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
31860
31744
|
const POLLING_INTERVAL = 3e3;
|
|
31861
|
-
const logger$
|
|
31745
|
+
const logger$a = createLogger("DropinComposerComponent");
|
|
31862
31746
|
const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
|
|
31863
31747
|
function DropinComposerComponent({
|
|
31864
31748
|
capabilities,
|
|
@@ -31950,7 +31834,7 @@ function DropinComposerComponent({
|
|
|
31950
31834
|
setPciStatus(response);
|
|
31951
31835
|
return response;
|
|
31952
31836
|
} catch (e) {
|
|
31953
|
-
logger$
|
|
31837
|
+
logger$a.warn(i18n.get("failedToGetPciStatus"));
|
|
31954
31838
|
}
|
|
31955
31839
|
}
|
|
31956
31840
|
return void 0;
|
|
@@ -31979,7 +31863,7 @@ function DropinComposerComponent({
|
|
|
31979
31863
|
useEffect(() => {
|
|
31980
31864
|
if (!tasks.includes(TaskTypes.PCI_DSS))
|
|
31981
31865
|
return;
|
|
31982
|
-
getPciTemplate().catch(logger$
|
|
31866
|
+
getPciTemplate().catch(logger$a.error);
|
|
31983
31867
|
}, [getPciTemplate, tasks]);
|
|
31984
31868
|
const getServiceAgreementAcceptanceInfos = async () => {
|
|
31985
31869
|
if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
|
|
@@ -31987,7 +31871,7 @@ function DropinComposerComponent({
|
|
|
31987
31871
|
const response = await args.handleGetServiceAgreementAcceptanceInfos(rootLegalEntity.id);
|
|
31988
31872
|
setServiceAgreementAcceptanceInfos(response.data);
|
|
31989
31873
|
} catch (e) {
|
|
31990
|
-
logger$
|
|
31874
|
+
logger$a.warn(i18n.get("failedToGetServiceAgreementStatus"));
|
|
31991
31875
|
}
|
|
31992
31876
|
}
|
|
31993
31877
|
};
|
|
@@ -31997,7 +31881,7 @@ function DropinComposerComponent({
|
|
|
31997
31881
|
const response = await args.handleGetServiceAgreementStatus(rootLegalEntity.id);
|
|
31998
31882
|
setServiceAgreementTypes(response.termsOfServiceTypes);
|
|
31999
31883
|
} catch (e) {
|
|
32000
|
-
logger$
|
|
31884
|
+
logger$a.warn(i18n.get("failedToGetServiceAgreementStatus"));
|
|
32001
31885
|
}
|
|
32002
31886
|
}
|
|
32003
31887
|
};
|
|
@@ -32036,7 +31920,7 @@ function DropinComposerComponent({
|
|
|
32036
31920
|
setCapabilityProblems(getCapabilityProblems(response));
|
|
32037
31921
|
return response;
|
|
32038
31922
|
} catch (e) {
|
|
32039
|
-
logger$
|
|
31923
|
+
logger$a.warn(i18n.get("failedToFetchLegalEntityDetails"));
|
|
32040
31924
|
}
|
|
32041
31925
|
}
|
|
32042
31926
|
return void 0;
|
|
@@ -32048,7 +31932,7 @@ function DropinComposerComponent({
|
|
|
32048
31932
|
setTrust(response);
|
|
32049
31933
|
return response;
|
|
32050
31934
|
} catch (e) {
|
|
32051
|
-
logger$
|
|
31935
|
+
logger$a.warn(i18n.get("failedToFetchTrustDetails"));
|
|
32052
31936
|
}
|
|
32053
31937
|
}
|
|
32054
31938
|
return void 0;
|
|
@@ -32098,7 +31982,7 @@ function DropinComposerComponent({
|
|
|
32098
31982
|
label: i18n.get("successFullyRemovedTrustMember")
|
|
32099
31983
|
});
|
|
32100
31984
|
} catch (err) {
|
|
32101
|
-
logger$
|
|
31985
|
+
logger$a.error(`Failed to delete trust member`, err);
|
|
32102
31986
|
showToast({
|
|
32103
31987
|
type: ToastType.ERROR,
|
|
32104
31988
|
label: i18n.get("failedToRemoveTrustMember")
|
|
@@ -32168,7 +32052,7 @@ function DropinComposerComponent({
|
|
|
32168
32052
|
}
|
|
32169
32053
|
break;
|
|
32170
32054
|
default:
|
|
32171
|
-
logger$
|
|
32055
|
+
logger$a.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
|
|
32172
32056
|
}
|
|
32173
32057
|
showToast({
|
|
32174
32058
|
label: i18n.get("successfullyUpdatedDetails"),
|
|
@@ -32176,7 +32060,7 @@ function DropinComposerComponent({
|
|
|
32176
32060
|
});
|
|
32177
32061
|
await refreshTrustAndRunOnSubmit(trust2, 1);
|
|
32178
32062
|
} catch (err) {
|
|
32179
|
-
logger$
|
|
32063
|
+
logger$a.error(err);
|
|
32180
32064
|
showToast({
|
|
32181
32065
|
label: i18n.get("failedToUpdateDetails"),
|
|
32182
32066
|
type: ToastType.ERROR
|
|
@@ -32399,7 +32283,7 @@ function DropinComposerComponent({
|
|
|
32399
32283
|
}
|
|
32400
32284
|
};
|
|
32401
32285
|
setIsLoadingConfiguration(true);
|
|
32402
|
-
fetchConfiguration().catch(logger$
|
|
32286
|
+
fetchConfiguration().catch(logger$a.error).finally(() => {
|
|
32403
32287
|
setIsLoadingConfiguration(false);
|
|
32404
32288
|
onLoad();
|
|
32405
32289
|
});
|
|
@@ -32418,7 +32302,7 @@ function DropinComposerComponent({
|
|
|
32418
32302
|
return;
|
|
32419
32303
|
}
|
|
32420
32304
|
const timeoutId = setTimeout(() => {
|
|
32421
|
-
refreshLegalEntity().catch(logger$
|
|
32305
|
+
refreshLegalEntity().catch(logger$a.error);
|
|
32422
32306
|
}, POLLING_INTERVAL);
|
|
32423
32307
|
return () => {
|
|
32424
32308
|
clearInterval(timeoutId);
|
|
@@ -32445,7 +32329,11 @@ function DropinComposerComponent({
|
|
|
32445
32329
|
},
|
|
32446
32330
|
taskHistory,
|
|
32447
32331
|
setTaskHistory,
|
|
32448
|
-
onNavigateTo
|
|
32332
|
+
onNavigateTo,
|
|
32333
|
+
trackingConfig: {
|
|
32334
|
+
topLevelLegalEntity: legalEntityResponse
|
|
32335
|
+
},
|
|
32336
|
+
eventEmitter
|
|
32449
32337
|
})
|
|
32450
32338
|
});
|
|
32451
32339
|
case TaskTypes.INTRODUCTION:
|
|
@@ -32461,6 +32349,9 @@ function DropinComposerComponent({
|
|
|
32461
32349
|
return jsx(AccountSetupRejected, {});
|
|
32462
32350
|
case TaskTypes.TASKS_OVERVIEW:
|
|
32463
32351
|
return jsx(TaskListComponent, {
|
|
32352
|
+
trackingConfig: {
|
|
32353
|
+
topLevelLegalEntity: legalEntityResponse
|
|
32354
|
+
},
|
|
32464
32355
|
onNavigateToTask: navigateTo,
|
|
32465
32356
|
tasks,
|
|
32466
32357
|
legalEntityResponse: rootLegalEntity,
|
|
@@ -33079,6 +32970,22 @@ const deleteTransferInstrument = async (context, transferInstrumentId) => {
|
|
|
33079
32970
|
}
|
|
33080
32971
|
});
|
|
33081
32972
|
};
|
|
32973
|
+
const generateOnboardingLink = async (context, config) => {
|
|
32974
|
+
const {
|
|
32975
|
+
loadingContext,
|
|
32976
|
+
legalEntityId
|
|
32977
|
+
} = context;
|
|
32978
|
+
return httpPost({
|
|
32979
|
+
loadingContext,
|
|
32980
|
+
errorLevel: "warn",
|
|
32981
|
+
errorMessage: `Fetching onboarding link was not successful`,
|
|
32982
|
+
path: `${legalEntityId}/onboardingStatus/redirectLink`,
|
|
32983
|
+
authentication: "jwt",
|
|
32984
|
+
headers: {
|
|
32985
|
+
"Content-Type": "application/json"
|
|
32986
|
+
}
|
|
32987
|
+
}, config);
|
|
32988
|
+
};
|
|
33082
32989
|
const getAddress = async (context, addressId) => {
|
|
33083
32990
|
const {
|
|
33084
32991
|
loadingContext,
|
|
@@ -33111,6 +33018,22 @@ const getIdverificationToken = async (context, request) => {
|
|
|
33111
33018
|
}
|
|
33112
33019
|
}, request);
|
|
33113
33020
|
};
|
|
33021
|
+
const getOnboardingStatus = async (context) => {
|
|
33022
|
+
const {
|
|
33023
|
+
loadingContext,
|
|
33024
|
+
legalEntityId
|
|
33025
|
+
} = context;
|
|
33026
|
+
return httpGet({
|
|
33027
|
+
loadingContext,
|
|
33028
|
+
errorLevel: "warn",
|
|
33029
|
+
errorMessage: `Fetching onboarding status was not successful`,
|
|
33030
|
+
path: `${legalEntityId}/onboardingStatus`,
|
|
33031
|
+
authentication: "jwt",
|
|
33032
|
+
headers: {
|
|
33033
|
+
"Content-Type": "application/json"
|
|
33034
|
+
}
|
|
33035
|
+
});
|
|
33036
|
+
};
|
|
33114
33037
|
const handleBankVerificationError = async (context, errorCode, errorMessage, state2, metadata) => {
|
|
33115
33038
|
const {
|
|
33116
33039
|
loadingContext,
|
|
@@ -33208,7 +33131,9 @@ const useComponentApi = (rootLegalEntityId) => {
|
|
|
33208
33131
|
getAddress: async (address2) => getAddress(baseRequestContext, address2),
|
|
33209
33132
|
getIdVerificationToken: async (legalEntityId, data) => getIdverificationToken(baseRequestContext, data),
|
|
33210
33133
|
idVerificationStartCheck: async (legalEntityId, data) => idVerificationStartcheck(baseRequestContext, data),
|
|
33211
|
-
getTransferInstruments: async () => getTransferInstruments(baseRequestContext)
|
|
33134
|
+
getTransferInstruments: async () => getTransferInstruments(baseRequestContext),
|
|
33135
|
+
getOnboardingStatus: async () => getOnboardingStatus(baseRequestContext),
|
|
33136
|
+
generateOnboardingLink: async (config) => generateOnboardingLink(baseRequestContext, config)
|
|
33212
33137
|
};
|
|
33213
33138
|
}, [base, rootLegalEntityId]);
|
|
33214
33139
|
};
|
|
@@ -33231,7 +33156,7 @@ class EventEmitter {
|
|
|
33231
33156
|
};
|
|
33232
33157
|
}
|
|
33233
33158
|
}
|
|
33234
|
-
const logger$
|
|
33159
|
+
const logger$9 = createLogger("CreateIndividualComponent");
|
|
33235
33160
|
function CreateIndividualComponent({
|
|
33236
33161
|
parentLegalEntityId,
|
|
33237
33162
|
legalEntityId,
|
|
@@ -33264,13 +33189,13 @@ function CreateIndividualComponent({
|
|
|
33264
33189
|
setParentLegalEntity(parentEntity);
|
|
33265
33190
|
setLegalEntity(entity);
|
|
33266
33191
|
} catch (error) {
|
|
33267
|
-
logger$
|
|
33192
|
+
logger$9.error(error);
|
|
33268
33193
|
} finally {
|
|
33269
33194
|
setLoadingStatus("success");
|
|
33270
33195
|
}
|
|
33271
33196
|
}, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
|
|
33272
33197
|
useEffect(() => {
|
|
33273
|
-
fetchLegalEntity().catch(logger$
|
|
33198
|
+
fetchLegalEntity().catch(logger$9.error);
|
|
33274
33199
|
}, [fetchLegalEntity]);
|
|
33275
33200
|
return loadingStatus === "loading" ? jsx(Loader, {
|
|
33276
33201
|
size: "medium"
|
|
@@ -33293,7 +33218,7 @@ function CreateIndividualComponent({
|
|
|
33293
33218
|
taskType
|
|
33294
33219
|
});
|
|
33295
33220
|
}
|
|
33296
|
-
const logger$
|
|
33221
|
+
const logger$8 = createLogger("CreateTransferInstrumentComponent");
|
|
33297
33222
|
function CreateTransferInstrumentComponent({
|
|
33298
33223
|
legalEntityId,
|
|
33299
33224
|
transferInstrumentId,
|
|
@@ -33330,7 +33255,7 @@ function CreateTransferInstrumentComponent({
|
|
|
33330
33255
|
const ti = await getTransferInstrument2(transferInstrumentId);
|
|
33331
33256
|
setTransferInstrument(ti);
|
|
33332
33257
|
}
|
|
33333
|
-
})().catch(logger$
|
|
33258
|
+
})().catch(logger$8.error).finally(() => {
|
|
33334
33259
|
setLoadingStatus("success");
|
|
33335
33260
|
});
|
|
33336
33261
|
}, [transferInstrumentId, fetchLegalEntity, getTransferInstrument2]);
|
|
@@ -33530,7 +33455,7 @@ function ManageTransferInstrumentOverviewItem({
|
|
|
33530
33455
|
})]
|
|
33531
33456
|
}, transferInstrumentReference.transferInstrument.id);
|
|
33532
33457
|
}
|
|
33533
|
-
const logger$
|
|
33458
|
+
const logger$7 = createLogger("ManageTransferInstrumentOverview");
|
|
33534
33459
|
function ManageTransferInstrumentOverview({
|
|
33535
33460
|
transferInstrumentReferences,
|
|
33536
33461
|
onAdd,
|
|
@@ -33555,7 +33480,7 @@ function ManageTransferInstrumentOverview({
|
|
|
33555
33480
|
...transferInstrumentsMap
|
|
33556
33481
|
});
|
|
33557
33482
|
} catch (e) {
|
|
33558
|
-
logger$
|
|
33483
|
+
logger$7.error(e);
|
|
33559
33484
|
}
|
|
33560
33485
|
};
|
|
33561
33486
|
const onRemoveTransferinstrument = async (transferInstrumentId) => {
|
|
@@ -33563,7 +33488,7 @@ function ManageTransferInstrumentOverview({
|
|
|
33563
33488
|
await deleteTransferInstrument2(transferInstrumentId);
|
|
33564
33489
|
onRemove(transferInstrumentId);
|
|
33565
33490
|
} catch (e) {
|
|
33566
|
-
logger$
|
|
33491
|
+
logger$7.error(e);
|
|
33567
33492
|
}
|
|
33568
33493
|
};
|
|
33569
33494
|
const transferInstrumentListEle = transferInstrumentReferences.map((transferInstrumentRef) => jsx(ManageTransferInstrumentOverviewItem, {
|
|
@@ -33588,7 +33513,7 @@ function ManageTransferInstrumentOverview({
|
|
|
33588
33513
|
})]
|
|
33589
33514
|
});
|
|
33590
33515
|
}
|
|
33591
|
-
const logger$
|
|
33516
|
+
const logger$6 = createLogger("ManageTransferInstrumentComponent");
|
|
33592
33517
|
function ManageTransferInstrumentComponent({
|
|
33593
33518
|
legalEntityId,
|
|
33594
33519
|
onAdd,
|
|
@@ -33624,7 +33549,7 @@ function ManageTransferInstrumentComponent({
|
|
|
33624
33549
|
}, [getTransferInstruments2, getLegalEntity2, i18n, legalEntityId]);
|
|
33625
33550
|
useEffect(() => {
|
|
33626
33551
|
eventEmitter == null ? void 0 : eventEmitter.on("updateLocale", (locale) => setLocale(locale));
|
|
33627
|
-
init2().catch(logger$
|
|
33552
|
+
init2().catch(logger$6.error).finally(() => {
|
|
33628
33553
|
setLoadingStatus("success");
|
|
33629
33554
|
});
|
|
33630
33555
|
}, [init2, setLocale, eventEmitter]);
|
|
@@ -33634,7 +33559,7 @@ function ManageTransferInstrumentComponent({
|
|
|
33634
33559
|
}
|
|
33635
33560
|
}, [hasOnlyVerifiedTransferInstruments, timeoutId, transferInstruments]);
|
|
33636
33561
|
const onRemove = (transferInstrumentId) => {
|
|
33637
|
-
refreshTransferInstruments().catch(logger$
|
|
33562
|
+
refreshTransferInstruments().catch(logger$6.error);
|
|
33638
33563
|
onRemoveSuccess == null ? void 0 : onRemoveSuccess(transferInstrumentId, legalEntityId);
|
|
33639
33564
|
};
|
|
33640
33565
|
const render2 = () => {
|
|
@@ -33662,6 +33587,190 @@ function ManageTransferInstrumentComponent({
|
|
|
33662
33587
|
children: render2()
|
|
33663
33588
|
});
|
|
33664
33589
|
}
|
|
33590
|
+
const OnboardingRedirectComponent$1 = "";
|
|
33591
|
+
var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
|
|
33592
|
+
OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
|
|
33593
|
+
OnboardingStatus2["PROCESSING"] = "PROCESSING";
|
|
33594
|
+
OnboardingStatus2["ERROR"] = "ERROR";
|
|
33595
|
+
OnboardingStatus2["FINISHED"] = "FINISHED";
|
|
33596
|
+
return OnboardingStatus2;
|
|
33597
|
+
})(OnboardingStatus || {});
|
|
33598
|
+
const contentMap = {
|
|
33599
|
+
[OnboardingStatus.INCOMPLETE]: {
|
|
33600
|
+
header: "onboardingRedirectInitialHeader",
|
|
33601
|
+
description: ["onboardingRedirectInitialDescriptionP1"],
|
|
33602
|
+
ctaButton: "onboardingRedirectInitialCtaButton"
|
|
33603
|
+
},
|
|
33604
|
+
[OnboardingStatus.PROCESSING]: {
|
|
33605
|
+
header: "onboardingRedirectInProgressHeader",
|
|
33606
|
+
description: ["onboardingRedirectInProgressDescriptionP1"],
|
|
33607
|
+
ctaButton: "onboardingRedirectInProgressCtaButton"
|
|
33608
|
+
},
|
|
33609
|
+
[OnboardingStatus.ERROR]: {
|
|
33610
|
+
header: "onboardingRedirectErrorsHeader",
|
|
33611
|
+
description: ["onboardingRedirectErrorsDescriptionP1", "onboardingRedirectErrorsDescriptionP2"],
|
|
33612
|
+
ctaButton: "onboardingRedirectErrorsCtaButton"
|
|
33613
|
+
},
|
|
33614
|
+
[OnboardingStatus.FINISHED]: {
|
|
33615
|
+
header: "onboardingRedirectFinishedHeader",
|
|
33616
|
+
description: ["onboardingRedirectFinishedDescriptionP1"],
|
|
33617
|
+
ctaButton: "onboardingRedirectFinishedCtaButton"
|
|
33618
|
+
}
|
|
33619
|
+
};
|
|
33620
|
+
function getContentByStatus(status) {
|
|
33621
|
+
return contentMap[status];
|
|
33622
|
+
}
|
|
33623
|
+
const logger$5 = createLogger("OnboardingRedirectComponent");
|
|
33624
|
+
function OnboardingRedirectComponent({
|
|
33625
|
+
legalEntityId,
|
|
33626
|
+
redirectUrl,
|
|
33627
|
+
onStatusChange,
|
|
33628
|
+
onError,
|
|
33629
|
+
onRedirect,
|
|
33630
|
+
eventEmitter
|
|
33631
|
+
}) {
|
|
33632
|
+
if (!legalEntityId) {
|
|
33633
|
+
throw new Error("legalEntityId argument is required!");
|
|
33634
|
+
}
|
|
33635
|
+
const {
|
|
33636
|
+
i18n,
|
|
33637
|
+
setLocale
|
|
33638
|
+
} = useI18nContext();
|
|
33639
|
+
const {
|
|
33640
|
+
getOnboardingStatus: getOnboardingStatus2,
|
|
33641
|
+
generateOnboardingLink: generateOnboardingLink2
|
|
33642
|
+
} = useComponentApi(legalEntityId);
|
|
33643
|
+
const [onboardingStatus, setOnboardingStatus] = useState();
|
|
33644
|
+
const [alertContent, setAlertContent] = useState();
|
|
33645
|
+
const content = useMemo(() => {
|
|
33646
|
+
if (!onboardingStatus)
|
|
33647
|
+
return;
|
|
33648
|
+
const statusContent = getContentByStatus(onboardingStatus);
|
|
33649
|
+
if (statusContent)
|
|
33650
|
+
return statusContent;
|
|
33651
|
+
logger$5.error(`there is no content for status "${onboardingStatus}"`);
|
|
33652
|
+
}, [onboardingStatus]);
|
|
33653
|
+
const handleError = ({
|
|
33654
|
+
trKey,
|
|
33655
|
+
error
|
|
33656
|
+
}) => {
|
|
33657
|
+
if (trKey) {
|
|
33658
|
+
setAlertContent(trKey);
|
|
33659
|
+
}
|
|
33660
|
+
if (error) {
|
|
33661
|
+
logger$5.error(error);
|
|
33662
|
+
}
|
|
33663
|
+
if (typeof onError === "function") {
|
|
33664
|
+
const userMessage = trKey ? i18n.get(trKey) : "";
|
|
33665
|
+
onError({
|
|
33666
|
+
error: error || {
|
|
33667
|
+
message: userMessage
|
|
33668
|
+
},
|
|
33669
|
+
userMessage
|
|
33670
|
+
});
|
|
33671
|
+
}
|
|
33672
|
+
};
|
|
33673
|
+
useEffect(() => {
|
|
33674
|
+
setAlertContent("");
|
|
33675
|
+
(async () => {
|
|
33676
|
+
try {
|
|
33677
|
+
const {
|
|
33678
|
+
status
|
|
33679
|
+
} = await getOnboardingStatus2();
|
|
33680
|
+
setOnboardingStatus(status);
|
|
33681
|
+
if (typeof onStatusChange === "function") {
|
|
33682
|
+
onStatusChange(status);
|
|
33683
|
+
}
|
|
33684
|
+
} catch (error) {
|
|
33685
|
+
handleError({
|
|
33686
|
+
trKey: "onboardingRedirectLinkError",
|
|
33687
|
+
error
|
|
33688
|
+
});
|
|
33689
|
+
}
|
|
33690
|
+
})().catch(logger$5.error);
|
|
33691
|
+
}, [legalEntityId, getOnboardingStatus2]);
|
|
33692
|
+
useEffect(() => {
|
|
33693
|
+
if (eventEmitter) {
|
|
33694
|
+
eventEmitter.on("updateLocale", (locale) => setLocale(locale));
|
|
33695
|
+
}
|
|
33696
|
+
});
|
|
33697
|
+
const [loadingLinkStatus, setLinkLoadingStatus] = useState("success");
|
|
33698
|
+
const redirectToAdyen = async () => {
|
|
33699
|
+
setLinkLoadingStatus("loading");
|
|
33700
|
+
const config = {
|
|
33701
|
+
locale: i18n.locale,
|
|
33702
|
+
redirectUrl
|
|
33703
|
+
};
|
|
33704
|
+
try {
|
|
33705
|
+
const {
|
|
33706
|
+
link
|
|
33707
|
+
} = await generateOnboardingLink2(config);
|
|
33708
|
+
openLink(link, config);
|
|
33709
|
+
} catch (error) {
|
|
33710
|
+
handleError({
|
|
33711
|
+
trKey: "onboardingRedirectLinkError",
|
|
33712
|
+
error
|
|
33713
|
+
});
|
|
33714
|
+
} finally {
|
|
33715
|
+
setLinkLoadingStatus("success");
|
|
33716
|
+
}
|
|
33717
|
+
};
|
|
33718
|
+
const openLink = (link, config) => {
|
|
33719
|
+
const newTab = window.open("", "_blank");
|
|
33720
|
+
if (newTab) {
|
|
33721
|
+
newTab.location.href = link;
|
|
33722
|
+
if (typeof onRedirect === "function") {
|
|
33723
|
+
onRedirect({
|
|
33724
|
+
...config,
|
|
33725
|
+
redirectTo: link
|
|
33726
|
+
});
|
|
33727
|
+
}
|
|
33728
|
+
} else {
|
|
33729
|
+
handleError({
|
|
33730
|
+
trKey: "onboardingRedirectOpenError"
|
|
33731
|
+
});
|
|
33732
|
+
}
|
|
33733
|
+
};
|
|
33734
|
+
const renderBody = () => {
|
|
33735
|
+
if (alertContent) {
|
|
33736
|
+
return jsx(Alert, {
|
|
33737
|
+
title: i18n.get(alertContent),
|
|
33738
|
+
hasCloseButton: false,
|
|
33739
|
+
type: AlertTypes.ERROR
|
|
33740
|
+
});
|
|
33741
|
+
}
|
|
33742
|
+
if (content) {
|
|
33743
|
+
return jsxs(Fragment, {
|
|
33744
|
+
children: [jsx("h1", {
|
|
33745
|
+
className: "adyen-onboarding-redirect__header",
|
|
33746
|
+
children: i18n.get(content.header)
|
|
33747
|
+
}), content.description.map((key) => jsx("p", {
|
|
33748
|
+
className: "adyen-onboarding-redirect__description",
|
|
33749
|
+
children: i18n.get(key)
|
|
33750
|
+
}, key)), jsx("div", {
|
|
33751
|
+
className: "adyen-onboarding-redirect__footer",
|
|
33752
|
+
children: jsx(Button, {
|
|
33753
|
+
label: i18n.get(content.ctaButton),
|
|
33754
|
+
onClick: redirectToAdyen,
|
|
33755
|
+
type: "button",
|
|
33756
|
+
className: "adyen-onboarding-redirect__button",
|
|
33757
|
+
role: "link",
|
|
33758
|
+
negative: onboardingStatus !== OnboardingStatus.FINISHED,
|
|
33759
|
+
tertiary: onboardingStatus === OnboardingStatus.FINISHED,
|
|
33760
|
+
status: loadingLinkStatus === "loading" ? "loading" : "default"
|
|
33761
|
+
})
|
|
33762
|
+
})]
|
|
33763
|
+
});
|
|
33764
|
+
}
|
|
33765
|
+
return jsx(Loader, {
|
|
33766
|
+
size: "medium"
|
|
33767
|
+
});
|
|
33768
|
+
};
|
|
33769
|
+
return jsx("section", {
|
|
33770
|
+
className: "adyen-onboarding-redirect",
|
|
33771
|
+
children: renderBody()
|
|
33772
|
+
});
|
|
33773
|
+
}
|
|
33665
33774
|
const componentsMap = {
|
|
33666
33775
|
individualDropin: IndividualDropinComponent,
|
|
33667
33776
|
companyDropin: CompanyDropinComponent,
|
|
@@ -33673,7 +33782,8 @@ const componentsMap = {
|
|
|
33673
33782
|
pci: PciDropinComponent,
|
|
33674
33783
|
createTransferInstrumentComponent: CreateTransferInstrumentComponent,
|
|
33675
33784
|
createIndividualComponent: CreateIndividualComponent,
|
|
33676
|
-
manageTransferInstrumentComponent: ManageTransferInstrumentComponent
|
|
33785
|
+
manageTransferInstrumentComponent: ManageTransferInstrumentComponent,
|
|
33786
|
+
onboardingRedirectComponent: OnboardingRedirectComponent
|
|
33677
33787
|
};
|
|
33678
33788
|
const AuthProvider = ({
|
|
33679
33789
|
children,
|
|
@@ -33726,15 +33836,6 @@ const loadDocumentGuidance = async (loadingContext) => {
|
|
|
33726
33836
|
}, null, "text");
|
|
33727
33837
|
document.body.insertBefore(buildSpriteDOMFromResponse(responseData), document.body.firstChild);
|
|
33728
33838
|
};
|
|
33729
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-43128b9f.mjs"), "./AE.json": () => import("./AE-81598d61.mjs"), "./AG.json": () => import("./AG-ed98ae0e.mjs"), "./AI.json": () => import("./AI-3e78c886.mjs"), "./AL.json": () => import("./AL-3ad2778a.mjs"), "./AM.json": () => import("./AM-6a5175fb.mjs"), "./AN.json": () => import("./AN-311f7139.mjs"), "./AO.json": () => import("./AO-99b5ef59.mjs"), "./AQ.json": () => import("./AQ-effe27c7.mjs"), "./AR.json": () => import("./AR-4013d95c.mjs"), "./AS.json": () => import("./AS-f15d56b2.mjs"), "./AT.json": () => import("./AT-d4d62b74.mjs"), "./AU.json": () => import("./AU-b9cba969.mjs"), "./AW.json": () => import("./AW-581f73fb.mjs"), "./AX.json": () => import("./AX-07af957a.mjs"), "./AZ.json": () => import("./AZ-be214142.mjs"), "./BA.json": () => import("./BA-af4be83f.mjs"), "./BB.json": () => import("./BB-df28f015.mjs"), "./BD.json": () => import("./BD-7aef0af6.mjs"), "./BE.json": () => import("./BE-fc7cf8d5.mjs"), "./BF.json": () => import("./BF-090b06e2.mjs"), "./BG.json": () => import("./BG-1f54cf4f.mjs"), "./BH.json": () => import("./BH-1e9cc2b9.mjs"), "./BJ.json": () => import("./BJ-d5dd5c6f.mjs"), "./BM.json": () => import("./BM-a808b13f.mjs"), "./BN.json": () => import("./BN-b13f6f6a.mjs"), "./BR.json": () => import("./BR-55d93100.mjs"), "./BS.json": () => import("./BS-db6a5bce.mjs"), "./BT.json": () => import("./BT-dfed2604.mjs"), "./BV.json": () => import("./BV-e123b0a8.mjs"), "./BW.json": () => import("./BW-08473bd7.mjs"), "./BY.json": () => import("./BY-2762d989.mjs"), "./BZ.json": () => import("./BZ-7f28b1ff.mjs"), "./CA.json": () => import("./CA-aa1f78ab.mjs"), "./CC.json": () => import("./CC-2cc6ac39.mjs"), "./CF.json": () => import("./CF-78ae0244.mjs"), "./CH.json": () => import("./CH-47f538c0.mjs"), "./CI.json": () => import("./CI-10feb889.mjs"), "./CK.json": () => import("./CK-e308c734.mjs"), "./CL.json": () => import("./CL-4a6c3e0b.mjs"), "./CM.json": () => import("./CM-fddc630d.mjs"), "./CN.json": () => import("./CN-46bb9203.mjs"), "./CO.json": () => import("./CO-1b150cda.mjs"), "./CR.json": () => import("./CR-2bf50f66.mjs"), "./CU.json": () => import("./CU-904aea8f.mjs"), "./CX.json": () => import("./CX-750ccd92.mjs"), "./CY.json": () => import("./CY-1508b23e.mjs"), "./CZ.json": () => import("./CZ-b6eaa1d5.mjs"), "./DE.json": () => import("./DE-e02051d4.mjs"), "./DJ.json": () => import("./DJ-0032728a.mjs"), "./DK.json": () => import("./DK-6116657e.mjs"), "./DM.json": () => import("./DM-a2c158c9.mjs"), "./DO.json": () => import("./DO-cedffa27.mjs"), "./DZ.json": () => import("./DZ-d44be6f8.mjs"), "./EC.json": () => import("./EC-c2e5813b.mjs"), "./EE.json": () => import("./EE-1a10f52d.mjs"), "./EG.json": () => import("./EG-8f29aebd.mjs"), "./EH.json": () => import("./EH-2dafda3e.mjs"), "./ES.json": () => import("./ES-42b3562e.mjs"), "./ET.json": () => import("./ET-ffa87ef0.mjs"), "./FI.json": () => import("./FI-8e3bb2bb.mjs"), "./FJ.json": () => import("./FJ-088ea689.mjs"), "./FK.json": () => import("./FK-16d84ff5.mjs"), "./FM.json": () => import("./FM-32616e6f.mjs"), "./FO.json": () => import("./FO-62c08e45.mjs"), "./FR.json": () => import("./FR-3db03e20.mjs"), "./GA.json": () => import("./GA-4de2f994.mjs"), "./GB.json": () => import("./GB-28ea0b5a.mjs"), "./GD.json": () => import("./GD-0ad67069.mjs"), "./GE.json": () => import("./GE-0f594b35.mjs"), "./GF.json": () => import("./GF-a062cea7.mjs"), "./GG.json": () => import("./GG-e00581ea.mjs"), "./GH.json": () => import("./GH-80209e7e.mjs"), "./GI.json": () => import("./GI-b0f7c8b3.mjs"), "./GL.json": () => import("./GL-8f5e8ba9.mjs"), "./GM.json": () => import("./GM-ff3ca013.mjs"), "./GN.json": () => import("./GN-fc7c0f8c.mjs"), "./GP.json": () => import("./GP-68f23382.mjs"), "./GQ.json": () => import("./GQ-f9867fbd.mjs"), "./GR.json": () => import("./GR-64a2d25c.mjs"), "./GS.json": () => import("./GS-49ce0f4c.mjs"), "./GT.json": () => import("./GT-fa779b14.mjs"), "./GU.json": () => import("./GU-f0dceb37.mjs"), "./GW.json": () => import("./GW-471336ea.mjs"), "./GY.json": () => import("./GY-2889ae39.mjs"), "./HK.json": () => import("./HK-675b8651.mjs"), "./HM.json": () => import("./HM-924a724f.mjs"), "./HN.json": () => import("./HN-6dae206e.mjs"), "./HR.json": () => import("./HR-85763090.mjs"), "./HT.json": () => import("./HT-a659da85.mjs"), "./HU.json": () => import("./HU-f9ea5037.mjs"), "./ID.json": () => import("./ID-cb5cfce1.mjs"), "./IE.json": () => import("./IE-b341cbd2.mjs"), "./IL.json": () => import("./IL-657901df.mjs"), "./IM.json": () => import("./IM-5bd6279a.mjs"), "./IN.json": () => import("./IN-3c11df0e.mjs"), "./IO.json": () => import("./IO-24f6d2e7.mjs"), "./IQ.json": () => import("./IQ-241c0148.mjs"), "./IS.json": () => import("./IS-4a7e436f.mjs"), "./IT.json": () => import("./IT-f9755e76.mjs"), "./JE.json": () => import("./JE-46968fa2.mjs"), "./JM.json": () => import("./JM-a6657a34.mjs"), "./JO.json": () => import("./JO-bd1eabea.mjs"), "./JP.json": () => import("./JP-9b5a30fa.mjs"), "./KE.json": () => import("./KE-2a866579.mjs"), "./KG.json": () => import("./KG-7713761d.mjs"), "./KH.json": () => import("./KH-a5f0f831.mjs"), "./KI.json": () => import("./KI-8376e298.mjs"), "./KM.json": () => import("./KM-48c8c9c0.mjs"), "./KN.json": () => import("./KN-b34777c7.mjs"), "./KR.json": () => import("./KR-8bcf8499.mjs"), "./KW.json": () => import("./KW-4dd6ab01.mjs"), "./KY.json": () => import("./KY-4f921c93.mjs"), "./KZ.json": () => import("./KZ-68b655f3.mjs"), "./LA.json": () => import("./LA-582a34e2.mjs"), "./LB.json": () => import("./LB-7e5023a3.mjs"), "./LC.json": () => import("./LC-4e610f91.mjs"), "./LI.json": () => import("./LI-3979434e.mjs"), "./LK.json": () => import("./LK-23f5002d.mjs"), "./LT.json": () => import("./LT-2076ca77.mjs"), "./LU.json": () => import("./LU-b0538582.mjs"), "./LV.json": () => import("./LV-440617df.mjs"), "./MA.json": () => import("./MA-f2af9aa6.mjs"), "./MC.json": () => import("./MC-f619d821.mjs"), "./MD.json": () => import("./MD-ffe4e2f4.mjs"), "./ME.json": () => import("./ME-46686aa8.mjs"), "./MH.json": () => import("./MH-c535387d.mjs"), "./MK.json": () => import("./MK-11442cf1.mjs"), "./ML.json": () => import("./ML-b2c3720e.mjs"), "./MM.json": () => import("./MM-0ae1a124.mjs"), "./MN.json": () => import("./MN-baba0d9d.mjs"), "./MO.json": () => import("./MO-2c51f9f7.mjs"), "./MP.json": () => import("./MP-55044c4b.mjs"), "./MQ.json": () => import("./MQ-aaefd2b2.mjs"), "./MR.json": () => import("./MR-f122a6f0.mjs"), "./MS.json": () => import("./MS-7623ec5f.mjs"), "./MT.json": () => import("./MT-315c76bb.mjs"), "./MU.json": () => import("./MU-126673fe.mjs"), "./MV.json": () => import("./MV-d8748aca.mjs"), "./MW.json": () => import("./MW-26492427.mjs"), "./MX.json": () => import("./MX-ca79b44b.mjs"), "./MY.json": () => import("./MY-443e729e.mjs"), "./MZ.json": () => import("./MZ-192a5094.mjs"), "./NC.json": () => import("./NC-3849aac0.mjs"), "./NE.json": () => import("./NE-bf76bc84.mjs"), "./NF.json": () => import("./NF-46f5dffa.mjs"), "./NG.json": () => import("./NG-458396e5.mjs"), "./NI.json": () => import("./NI-efe8c864.mjs"), "./NL.json": () => import("./NL-3e38d0eb.mjs"), "./NO.json": () => import("./NO-088fac56.mjs"), "./NP.json": () => import("./NP-26b20587.mjs"), "./NR.json": () => import("./NR-ba1f7da1.mjs"), "./NU.json": () => import("./NU-6dc3ed45.mjs"), "./NZ.json": () => import("./NZ-d7a003bc.mjs"), "./OM.json": () => import("./OM-4976855b.mjs"), "./PA.json": () => import("./PA-3b45122a.mjs"), "./PE.json": () => import("./PE-ad6e8281.mjs"), "./PF.json": () => import("./PF-2b1b6f30.mjs"), "./PG.json": () => import("./PG-b94ea47f.mjs"), "./PH.json": () => import("./PH-1b96a1eb.mjs"), "./PK.json": () => import("./PK-35cadd30.mjs"), "./PL.json": () => import("./PL-6a490cd1.mjs"), "./PM.json": () => import("./PM-d508f3c5.mjs"), "./PN.json": () => import("./PN-1f6ccf43.mjs"), "./PR.json": () => import("./PR-730f2830.mjs"), "./PS.json": () => import("./PS-f3ef78cd.mjs"), "./PT.json": () => import("./PT-66954cea.mjs"), "./PW.json": () => import("./PW-0d1c7797.mjs"), "./PY.json": () => import("./PY-c8e58794.mjs"), "./QA.json": () => import("./QA-35be8b1e.mjs"), "./RE.json": () => import("./RE-9f92ed9b.mjs"), "./RO.json": () => import("./RO-5c62edb1.mjs"), "./RS.json": () => import("./RS-bc256d90.mjs"), "./RU.json": () => import("./RU-bbee5e73.mjs"), "./RW.json": () => import("./RW-95b5d859.mjs"), "./SA.json": () => import("./SA-69b2f72a.mjs"), "./SB.json": () => import("./SB-567c239a.mjs"), "./SC.json": () => import("./SC-9e5a0d31.mjs"), "./SE.json": () => import("./SE-4ed53265.mjs"), "./SG.json": () => import("./SG-970463e3.mjs"), "./SH.json": () => import("./SH-d8ab21b7.mjs"), "./SI.json": () => import("./SI-3b6d3545.mjs"), "./SJ.json": () => import("./SJ-e3430cfd.mjs"), "./SK.json": () => import("./SK-2385e057.mjs"), "./SL.json": () => import("./SL-92bf45d9.mjs"), "./SM.json": () => import("./SM-bafbc267.mjs"), "./SN.json": () => import("./SN-5733e740.mjs"), "./SO.json": () => import("./SO-d5b69054.mjs"), "./SR.json": () => import("./SR-0a8c71c0.mjs"), "./ST.json": () => import("./ST-d40d86c1.mjs"), "./TC.json": () => import("./TC-ccbc7116.mjs"), "./TD.json": () => import("./TD-679d137c.mjs"), "./TF.json": () => import("./TF-6bfcf75d.mjs"), "./TG.json": () => import("./TG-a20ef9ed.mjs"), "./TH.json": () => import("./TH-e39a447c.mjs"), "./TK.json": () => import("./TK-89a81d38.mjs"), "./TL.json": () => import("./TL-8d6ca9b7.mjs"), "./TN.json": () => import("./TN-6e746476.mjs"), "./TO.json": () => import("./TO-a8c55d73.mjs"), "./TR.json": () => import("./TR-b1175ddc.mjs"), "./TT.json": () => import("./TT-5c4a3940.mjs"), "./TV.json": () => import("./TV-e1a267b9.mjs"), "./TW.json": () => import("./TW-9e0e34fa.mjs"), "./TZ.json": () => import("./TZ-c8a8159b.mjs"), "./UA.json": () => import("./UA-7014199a.mjs"), "./UG.json": () => import("./UG-1fe39fa7.mjs"), "./UM.json": () => import("./UM-3fcbf872.mjs"), "./US.json": () => import("./US-6fbdfc0c.mjs"), "./UY.json": () => import("./UY-e6d05d75.mjs"), "./UZ.json": () => import("./UZ-433656c8.mjs"), "./VA.json": () => import("./VA-e8e13d32.mjs"), "./VC.json": () => import("./VC-331669c0.mjs"), "./VE.json": () => import("./VE-5e7b0d3b.mjs"), "./VG.json": () => import("./VG-43e85e33.mjs"), "./VI.json": () => import("./VI-3d9d6d8b.mjs"), "./VN.json": () => import("./VN-9442a8c1.mjs"), "./VU.json": () => import("./VU-96fae02f.mjs"), "./WF.json": () => import("./WF-90a27056.mjs"), "./WS.json": () => import("./WS-ddcb2b71.mjs"), "./YE.json": () => import("./YE-02c4c81e.mjs"), "./YT.json": () => import("./YT-33751cc9.mjs"), "./ZA.json": () => import("./ZA-0084b083.mjs"), "./ZM.json": () => import("./ZM-c6a4d6cc.mjs") });
|
|
33730
|
-
const getAccountFormatsForCountry = async (country2) => {
|
|
33731
|
-
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
33732
|
-
if (!importForCountry) {
|
|
33733
|
-
throw Error(`No account formats available for ${country2}`);
|
|
33734
|
-
}
|
|
33735
|
-
return (await importForCountry()).default;
|
|
33736
|
-
};
|
|
33737
|
-
const getPayoutAccountFormat = async (country2) => getAccountFormatsForCountry(country2);
|
|
33738
33839
|
const getAllowedLocales$1 = async (context) => {
|
|
33739
33840
|
const {
|
|
33740
33841
|
loadingContext,
|
|
@@ -33846,7 +33947,6 @@ const getEmbeddedApi = ({
|
|
|
33846
33947
|
taskList: tasks
|
|
33847
33948
|
};
|
|
33848
33949
|
},
|
|
33849
|
-
getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
|
|
33850
33950
|
getDataset: async (datasetIdentifier2, locale) => getDataset$1({
|
|
33851
33951
|
...baseRequestContext,
|
|
33852
33952
|
loadingContext
|
|
@@ -34002,7 +34102,6 @@ const getKycExternalApi = ({
|
|
|
34002
34102
|
loadingContext,
|
|
34003
34103
|
clientKey
|
|
34004
34104
|
}, request),
|
|
34005
|
-
getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
|
|
34006
34105
|
getAllowedCountries: async () => getAllowedCountries({
|
|
34007
34106
|
loadingContext,
|
|
34008
34107
|
clientKey
|
|
@@ -35130,6 +35229,24 @@ const createIndividualComponentSchema = {
|
|
|
35130
35229
|
type: "function"
|
|
35131
35230
|
}
|
|
35132
35231
|
};
|
|
35232
|
+
const onboardingRedirectComponentSchema = {
|
|
35233
|
+
legalEntityId: {
|
|
35234
|
+
type: "string",
|
|
35235
|
+
required: true
|
|
35236
|
+
},
|
|
35237
|
+
onStatusChange: {
|
|
35238
|
+
type: "function"
|
|
35239
|
+
},
|
|
35240
|
+
onError: {
|
|
35241
|
+
type: "function"
|
|
35242
|
+
},
|
|
35243
|
+
onRedirect: {
|
|
35244
|
+
type: "function"
|
|
35245
|
+
},
|
|
35246
|
+
redirectUrl: {
|
|
35247
|
+
type: "string"
|
|
35248
|
+
}
|
|
35249
|
+
};
|
|
35133
35250
|
const componentsSchemaMap = {
|
|
35134
35251
|
payoutAccount: payoutAccountSchema,
|
|
35135
35252
|
soleProprietorDropin: solePropDropinSchema,
|
|
@@ -35141,7 +35258,8 @@ const componentsSchemaMap = {
|
|
|
35141
35258
|
taskList: taskListSchema,
|
|
35142
35259
|
manageTransferInstrumentComponent: manageTransferInstrumentComponentSchema,
|
|
35143
35260
|
createIndividualComponent: createIndividualComponentSchema,
|
|
35144
|
-
createTransferInstrumentComponent: createTransferInstrumentComponentSchema
|
|
35261
|
+
createTransferInstrumentComponent: createTransferInstrumentComponentSchema,
|
|
35262
|
+
onboardingRedirectComponent: onboardingRedirectComponentSchema
|
|
35145
35263
|
};
|
|
35146
35264
|
const validateComponentName = (componentName) => {
|
|
35147
35265
|
if (!componentName) {
|
|
@@ -35171,14 +35289,14 @@ const validateCoreOptions = (coreOptions) => {
|
|
|
35171
35289
|
Please specify either sdkToken and getSdkToken handler or a clientKey for the SDK to initialize!
|
|
35172
35290
|
|
|
35173
35291
|
|
|
35174
|
-
- For more information please check: https://
|
|
35292
|
+
- For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component`);
|
|
35175
35293
|
}
|
|
35176
35294
|
if (missing.length > 0) {
|
|
35177
35295
|
throw new Error(`
|
|
35178
35296
|
|
|
35179
35297
|
Please specify a ${listify(missing)} for the SDK to initialize!
|
|
35180
35298
|
|
|
35181
|
-
- For more information please check: https://
|
|
35299
|
+
- For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component
|
|
35182
35300
|
`);
|
|
35183
35301
|
}
|
|
35184
35302
|
};
|