@adyen/kyc-components 2.31.0 → 2.32.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/adyen-kyc-components.es.js +1652 -1563
- package/dist/style.css +697 -697
- package/dist/types/components/BusinessTypeSelection/component/BusinessTypeSelection.d.ts +14 -0
- package/dist/types/components/BusinessTypeSelection/types.d.ts +0 -2
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +7 -2
- package/dist/types/components/Company/types.d.ts +0 -1
- package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +1 -1
- package/dist/types/components/CompanyBasics/types.d.ts +2 -0
- package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +1 -1
- package/dist/types/components/CompanyLookup/types.d.ts +2 -0
- package/dist/types/components/CompanyRegistrationDetails/validate.d.ts +0 -14
- package/dist/types/components/CompanySearch/types.d.ts +2 -0
- package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +14 -1
- package/dist/types/components/Individual/rules.d.ts +2 -0
- package/dist/types/components/Individual/types.d.ts +4 -2
- package/dist/types/components/SoleProp/types.d.ts +2 -2
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +0 -2
- package/dist/types/components/internal/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +14 -5
- package/dist/types/components/internal/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +21 -0
- package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +6 -2
- package/dist/types/components/internal/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/internal/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/internal/StockExchangeMICField/fieldConfig.d.ts +3 -0
- package/dist/types/components/internal/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/internal/StockISINField/fieldConfig.d.ts +3 -0
- package/dist/types/components/internal/TaxId/types.d.ts +3 -2
- package/dist/types/components/internal/VatNumber/types.d.ts +0 -6
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/ExperimentContext/types.d.ts +1 -2
- package/dist/types/core/Services/session.d.ts +1 -1
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -0
- package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +1 -1
- package/dist/types/core/models/api/company-search.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +1 -1
- package/dist/types/language/config.d.ts +7 -8
- package/dist/types/utils/entity-association-util.d.ts +1 -1
- package/dist/types/utils/entity-status-util.d.ts +1 -1
- package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -2
- package/dist/types/utils/mapping/mapping.d.ts +2 -2
- package/package.json +2 -2
- package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +0 -16
- package/dist/types/components/internal/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +0 -9
- package/dist/types/components/internal/StockExchangeMICField/validate.d.ts +0 -3
- package/dist/types/components/internal/StockISINField/validate.d.ts +0 -3
- /package/dist/es/{AD-rNM7cqE8.mjs → AD-rNM7cqE8.js} +0 -0
- /package/dist/es/{AE-DoU2c3CQ.mjs → AE-DoU2c3CQ.js} +0 -0
- /package/dist/es/{AI-BQBZ2VVt.mjs → AI-BQBZ2VVt.js} +0 -0
- /package/dist/es/{AL-s4ei1ra4.mjs → AL-s4ei1ra4.js} +0 -0
- /package/dist/es/{AR-DDR8RTlN.mjs → AR-DDR8RTlN.js} +0 -0
- /package/dist/es/{AS-CvpjtIPo.mjs → AS-CvpjtIPo.js} +0 -0
- /package/dist/es/{AT-Du3jf0QK.mjs → AT-Du3jf0QK.js} +0 -0
- /package/dist/es/{AU-CaRlRNzq.mjs → AU-CaRlRNzq.js} +0 -0
- /package/dist/es/{AX-DL2IpBlq.mjs → AX-DL2IpBlq.js} +0 -0
- /package/dist/es/{AZ-DgnKHqSW.mjs → AZ-DgnKHqSW.js} +0 -0
- /package/dist/es/{BA-DbzAHDbo.mjs → BA-DbzAHDbo.js} +0 -0
- /package/dist/es/{BE-B8RVrEa-.mjs → BE-B8RVrEa-.js} +0 -0
- /package/dist/es/{BG-BAU_RbNU.mjs → BG-BAU_RbNU.js} +0 -0
- /package/dist/es/{BH-zzl3Aicz.mjs → BH-zzl3Aicz.js} +0 -0
- /package/dist/es/{BM-Bx0QpJE_.mjs → BM-Bx0QpJE_.js} +0 -0
- /package/dist/es/{BR-CcE5GVb_.mjs → BR-CcE5GVb_.js} +0 -0
- /package/dist/es/{BS-C5xv5epf.mjs → BS-C5xv5epf.js} +0 -0
- /package/dist/es/{BV-BO7Uhvet.mjs → BV-BO7Uhvet.js} +0 -0
- /package/dist/es/{BY-Dn7i3b4O.mjs → BY-Dn7i3b4O.js} +0 -0
- /package/dist/es/{CA-BzjyYlZe.mjs → CA-BzjyYlZe.js} +0 -0
- /package/dist/es/{CH-BvlOBUqB.mjs → CH-BvlOBUqB.js} +0 -0
- /package/dist/es/{CN-y0BC6iBw.mjs → CN-y0BC6iBw.js} +0 -0
- /package/dist/es/{CR-tTzdtq6M.mjs → CR-tTzdtq6M.js} +0 -0
- /package/dist/es/{CY-Bjyj7q7k.mjs → CY-Bjyj7q7k.js} +0 -0
- /package/dist/es/{CZ-DdsXQiz6.mjs → CZ-DdsXQiz6.js} +0 -0
- /package/dist/es/{DE-k6sF_Z8P.mjs → DE-k6sF_Z8P.js} +0 -0
- /package/dist/es/{DK-CUWikATU.mjs → DK-CUWikATU.js} +0 -0
- /package/dist/es/{DO-DpDyoh4y.mjs → DO-DpDyoh4y.js} +0 -0
- /package/dist/es/{EC--TPKDJme.mjs → EC--TPKDJme.js} +0 -0
- /package/dist/es/{EE-o0O1NAuh.mjs → EE-o0O1NAuh.js} +0 -0
- /package/dist/es/{ES-8DboqUrj.mjs → ES-8DboqUrj.js} +0 -0
- /package/dist/es/{FI-CwVBRBBQ.mjs → FI-CwVBRBBQ.js} +0 -0
- /package/dist/es/{FJ-DkKmOAd6.mjs → FJ-DkKmOAd6.js} +0 -0
- /package/dist/es/{FO-BCZCVxXR.mjs → FO-BCZCVxXR.js} +0 -0
- /package/dist/es/{FR-NtJ3QSfd.mjs → FR-NtJ3QSfd.js} +0 -0
- /package/dist/es/{GB-BhRiUVO6.mjs → GB-BhRiUVO6.js} +0 -0
- /package/dist/es/{GE--9n2R8_p.mjs → GE--9n2R8_p.js} +0 -0
- /package/dist/es/{GF-BeND08-O.mjs → GF-BeND08-O.js} +0 -0
- /package/dist/es/{GG-DcYzHlYO.mjs → GG-DcYzHlYO.js} +0 -0
- /package/dist/es/{GI-BWXRySSY.mjs → GI-BWXRySSY.js} +0 -0
- /package/dist/es/{GL-Cu7M9Xnx.mjs → GL-Cu7M9Xnx.js} +0 -0
- /package/dist/es/{GP-Dm3WhONm.mjs → GP-Dm3WhONm.js} +0 -0
- /package/dist/es/{GR-C0snveYS.mjs → GR-C0snveYS.js} +0 -0
- /package/dist/es/{GT-BykjfmEK.mjs → GT-BykjfmEK.js} +0 -0
- /package/dist/es/{GU-oom5Ehbd.mjs → GU-oom5Ehbd.js} +0 -0
- /package/dist/es/{HK-Dr5b-SwK.mjs → HK-Dr5b-SwK.js} +0 -0
- /package/dist/es/{HR-DKAQpsSV.mjs → HR-DKAQpsSV.js} +0 -0
- /package/dist/es/{HU-DJWWX_5P.mjs → HU-DJWWX_5P.js} +0 -0
- /package/dist/es/{ID-BWJvoyJo.mjs → ID-BWJvoyJo.js} +0 -0
- /package/dist/es/{IE-BPh0CHaO.mjs → IE-BPh0CHaO.js} +0 -0
- /package/dist/es/{IL-B8E0HdBj.mjs → IL-B8E0HdBj.js} +0 -0
- /package/dist/es/{IM-ClrsAYLm.mjs → IM-ClrsAYLm.js} +0 -0
- /package/dist/es/{IN-CVsYzQzI.mjs → IN-CVsYzQzI.js} +0 -0
- /package/dist/es/{IS-BkDwjQHz.mjs → IS-BkDwjQHz.js} +0 -0
- /package/dist/es/{IT-B3cLskCx.mjs → IT-B3cLskCx.js} +0 -0
- /package/dist/es/{JE-C8HBNrJn.mjs → JE-C8HBNrJn.js} +0 -0
- /package/dist/es/{JM-CH_LXMnd.mjs → JM-CH_LXMnd.js} +0 -0
- /package/dist/es/{JO-CD_uH_Uk.mjs → JO-CD_uH_Uk.js} +0 -0
- /package/dist/es/{JP-DtK_xb_Y.mjs → JP-DtK_xb_Y.js} +0 -0
- /package/dist/es/{KR-DBPY5awJ.mjs → KR-DBPY5awJ.js} +0 -0
- /package/dist/es/{KW-CiSCIyPm.mjs → KW-CiSCIyPm.js} +0 -0
- /package/dist/es/{KY-FU9AuEMz.mjs → KY-FU9AuEMz.js} +0 -0
- /package/dist/es/{KZ-CMFj-_rM.mjs → KZ-CMFj-_rM.js} +0 -0
- /package/dist/es/{LB-BRGM3Yl3.mjs → LB-BRGM3Yl3.js} +0 -0
- /package/dist/es/{LI-DlCX-3GD.mjs → LI-DlCX-3GD.js} +0 -0
- /package/dist/es/{LT-XRkygwh8.mjs → LT-XRkygwh8.js} +0 -0
- /package/dist/es/{LU-CV14IXAu.mjs → LU-CV14IXAu.js} +0 -0
- /package/dist/es/{LV-ByV8yuF8.mjs → LV-ByV8yuF8.js} +0 -0
- /package/dist/es/{MC-CwHePfdt.mjs → MC-CwHePfdt.js} +0 -0
- /package/dist/es/{MD-_IIMR66Q.mjs → MD-_IIMR66Q.js} +0 -0
- /package/dist/es/{ME-Cfx8llkg.mjs → ME-Cfx8llkg.js} +0 -0
- /package/dist/es/{MK-CEzz7Z_a.mjs → MK-CEzz7Z_a.js} +0 -0
- /package/dist/es/{MP-C5acK0KC.mjs → MP-C5acK0KC.js} +0 -0
- /package/dist/es/{MQ-BEZo6wPU.mjs → MQ-BEZo6wPU.js} +0 -0
- /package/dist/es/{MR-BoFyF5R-.mjs → MR-BoFyF5R-.js} +0 -0
- /package/dist/es/{MT-C_-lQGuI.mjs → MT-C_-lQGuI.js} +0 -0
- /package/dist/es/{MU-_tM1ai_B.mjs → MU-_tM1ai_B.js} +0 -0
- /package/dist/es/{MX-eayygS1f.mjs → MX-eayygS1f.js} +0 -0
- /package/dist/es/{MY-CsKpuB-w.mjs → MY-CsKpuB-w.js} +0 -0
- /package/dist/es/{NC-Bel2A-Fk.mjs → NC-Bel2A-Fk.js} +0 -0
- /package/dist/es/{NL-C3LxWTQ7.mjs → NL-C3LxWTQ7.js} +0 -0
- /package/dist/es/{NO-CjZgx8a-.mjs → NO-CjZgx8a-.js} +0 -0
- /package/dist/es/{NZ-DiGhP2MG.mjs → NZ-DiGhP2MG.js} +0 -0
- /package/dist/es/{PE-DvMRqGF_.mjs → PE-DvMRqGF_.js} +0 -0
- /package/dist/es/{PF-f7fSMI_4.mjs → PF-f7fSMI_4.js} +0 -0
- /package/dist/es/{PH-CjFT8xMY.mjs → PH-CjFT8xMY.js} +0 -0
- /package/dist/es/{PK-wMg8N3zK.mjs → PK-wMg8N3zK.js} +0 -0
- /package/dist/es/{PL-WpWUBPgN.mjs → PL-WpWUBPgN.js} +0 -0
- /package/dist/es/{PM-D4sBI2Px.mjs → PM-D4sBI2Px.js} +0 -0
- /package/dist/es/{PR-BJ09dEXF.mjs → PR-BJ09dEXF.js} +0 -0
- /package/dist/es/{PS-CWFZXVi8.mjs → PS-CWFZXVi8.js} +0 -0
- /package/dist/es/{PT-BarBZmwW.mjs → PT-BarBZmwW.js} +0 -0
- /package/dist/es/{QA-CtUmYTKA.mjs → QA-CtUmYTKA.js} +0 -0
- /package/dist/es/{RE-DfaVzCe-.mjs → RE-DfaVzCe-.js} +0 -0
- /package/dist/es/{RO-DmWLrUu-.mjs → RO-DmWLrUu-.js} +0 -0
- /package/dist/es/{RS-DilO913f.mjs → RS-DilO913f.js} +0 -0
- /package/dist/es/{RU-B83Fu7c3.mjs → RU-B83Fu7c3.js} +0 -0
- /package/dist/es/{SA-BpimyQxp.mjs → SA-BpimyQxp.js} +0 -0
- /package/dist/es/{SE-BXNcwTPQ.mjs → SE-BXNcwTPQ.js} +0 -0
- /package/dist/es/{SG-Uyk6Nl41.mjs → SG-Uyk6Nl41.js} +0 -0
- /package/dist/es/{SI-B5ALffDQ.mjs → SI-B5ALffDQ.js} +0 -0
- /package/dist/es/{SJ-BrJofAMz.mjs → SJ-BrJofAMz.js} +0 -0
- /package/dist/es/{SK-DOE_fS4w.mjs → SK-DOE_fS4w.js} +0 -0
- /package/dist/es/{SM-BBQZf4DZ.mjs → SM-BBQZf4DZ.js} +0 -0
- /package/dist/es/{TF-BDwH1us-.mjs → TF-BDwH1us-.js} +0 -0
- /package/dist/es/{TH-BxFJXEcZ.mjs → TH-BxFJXEcZ.js} +0 -0
- /package/dist/es/{TL-BzbQs-FD.mjs → TL-BzbQs-FD.js} +0 -0
- /package/dist/es/{TN-Dc91A3rb.mjs → TN-Dc91A3rb.js} +0 -0
- /package/dist/es/{TR-BBxkpnZQ.mjs → TR-BBxkpnZQ.js} +0 -0
- /package/dist/es/{TT-D-FKOmmE.mjs → TT-D-FKOmmE.js} +0 -0
- /package/dist/es/{TW-r3G_Qs5B.mjs → TW-r3G_Qs5B.js} +0 -0
- /package/dist/es/{UA-vpfj8SEN.mjs → UA-vpfj8SEN.js} +0 -0
- /package/dist/es/{US-CFOdL8kt.mjs → US-CFOdL8kt.js} +0 -0
- /package/dist/es/{UY-CUwq2MHm.mjs → UY-CUwq2MHm.js} +0 -0
- /package/dist/es/{VA-DlPtJwY9.mjs → VA-DlPtJwY9.js} +0 -0
- /package/dist/es/{VG-yM0HOg57.mjs → VG-yM0HOg57.js} +0 -0
- /package/dist/es/{VI-I7ADXxNd.mjs → VI-I7ADXxNd.js} +0 -0
- /package/dist/es/{VN-0gy1H7YD.mjs → VN-0gy1H7YD.js} +0 -0
- /package/dist/es/{WF-BlzFGDgv.mjs → WF-BlzFGDgv.js} +0 -0
- /package/dist/es/{YT-17mSpzMD.mjs → YT-17mSpzMD.js} +0 -0
- /package/dist/es/{ZA-BcxFTdWL.mjs → ZA-BcxFTdWL.js} +0 -0
- /package/dist/es/{ad-DT4vRaBJ.mjs → ad-DT4vRaBJ.js} +0 -0
- /package/dist/es/{ae-BOcuAHGY.mjs → ae-BOcuAHGY.js} +0 -0
- /package/dist/es/{af-CoKzErRW.mjs → af-CoKzErRW.js} +0 -0
- /package/dist/es/{ag-g4DXUCrU.mjs → ag-g4DXUCrU.js} +0 -0
- /package/dist/es/{ai-CI-B0R9i.mjs → ai-CI-B0R9i.js} +0 -0
- /package/dist/es/{al-COFkJ5Ca.mjs → al-COFkJ5Ca.js} +0 -0
- /package/dist/es/{am-Dra-uz-8.mjs → am-Dra-uz-8.js} +0 -0
- /package/dist/es/{an-BGvLoFME.mjs → an-BGvLoFME.js} +0 -0
- /package/dist/es/{ao-DxG-ywGM.mjs → ao-DxG-ywGM.js} +0 -0
- /package/dist/es/{aq-D6KJELrz.mjs → aq-D6KJELrz.js} +0 -0
- /package/dist/es/{ar-D1__sXLf.mjs → ar-D1__sXLf.js} +0 -0
- /package/dist/es/{arrow-left-CCxYxfCP.mjs → arrow-left-CCxYxfCP.js} +0 -0
- /package/dist/es/{arrow-right-DF4Qe-8E.mjs → arrow-right-DF4Qe-8E.js} +0 -0
- /package/dist/es/{as-CO1cnzQr.mjs → as-CO1cnzQr.js} +0 -0
- /package/dist/es/{at-DJ-_JUEF.mjs → at-DJ-_JUEF.js} +0 -0
- /package/dist/es/{au-DQ7hwYxQ.mjs → au-DQ7hwYxQ.js} +0 -0
- /package/dist/es/{aw-DsF55GZp.mjs → aw-DsF55GZp.js} +0 -0
- /package/dist/es/{ax-B7xGO2vL.mjs → ax-B7xGO2vL.js} +0 -0
- /package/dist/es/{az-Bn_p9CvJ.mjs → az-Bn_p9CvJ.js} +0 -0
- /package/dist/es/{ba-BoJK_mQe.mjs → ba-BoJK_mQe.js} +0 -0
- /package/dist/es/{bb-Pm_QT_Dl.mjs → bb-Pm_QT_Dl.js} +0 -0
- /package/dist/es/{bd-D7_YREZy.mjs → bd-D7_YREZy.js} +0 -0
- /package/dist/es/{be-CZxtblLB.mjs → be-CZxtblLB.js} +0 -0
- /package/dist/es/{bf-Dpx2xJ7g.mjs → bf-Dpx2xJ7g.js} +0 -0
- /package/dist/es/{bg-GwVUUSOM.mjs → bg-GwVUUSOM.js} +0 -0
- /package/dist/es/{bh-JbZUrPJw.mjs → bh-JbZUrPJw.js} +0 -0
- /package/dist/es/{bi-BltG81ar.mjs → bi-BltG81ar.js} +0 -0
- /package/dist/es/{bin-CGwewvcn.mjs → bin-CGwewvcn.js} +0 -0
- /package/dist/es/{bj-zQUv2SQa.mjs → bj-zQUv2SQa.js} +0 -0
- /package/dist/es/{bl-BUtmusIM.mjs → bl-BUtmusIM.js} +0 -0
- /package/dist/es/{bm-D_illE8L.mjs → bm-D_illE8L.js} +0 -0
- /package/dist/es/{bn-1XDJa4lE.mjs → bn-1XDJa4lE.js} +0 -0
- /package/dist/es/{bo-DlmVbV9z.mjs → bo-DlmVbV9z.js} +0 -0
- /package/dist/es/{br-DLB6QJZk.mjs → br-DLB6QJZk.js} +0 -0
- /package/dist/es/{bs-8dBnGYPj.mjs → bs-8dBnGYPj.js} +0 -0
- /package/dist/es/{bt-D9SHS-Ak.mjs → bt-D9SHS-Ak.js} +0 -0
- /package/dist/es/{bv-ahmv_jU3.mjs → bv-ahmv_jU3.js} +0 -0
- /package/dist/es/{bw-DzLl7TuC.mjs → bw-DzLl7TuC.js} +0 -0
- /package/dist/es/{by-BztFrg5-.mjs → by-BztFrg5-.js} +0 -0
- /package/dist/es/{bz-DkyxrcWx.mjs → bz-DkyxrcWx.js} +0 -0
- /package/dist/es/{ca-Bika55Ha.mjs → ca-Bika55Ha.js} +0 -0
- /package/dist/es/{cc-CFZz_AYg.mjs → cc-CFZz_AYg.js} +0 -0
- /package/dist/es/{cd-CgybrxtQ.mjs → cd-CgybrxtQ.js} +0 -0
- /package/dist/es/{cf-D23Pv9G5.mjs → cf-D23Pv9G5.js} +0 -0
- /package/dist/es/{cg-CfZbcFMO.mjs → cg-CfZbcFMO.js} +0 -0
- /package/dist/es/{ch-mKEGRNZY.mjs → ch-mKEGRNZY.js} +0 -0
- /package/dist/es/{check-CeSLN4_9.mjs → check-CeSLN4_9.js} +0 -0
- /package/dist/es/{checkmark-DEh9MPYR.mjs → checkmark-DEh9MPYR.js} +0 -0
- /package/dist/es/{checkmark-small-D_9HLctx.mjs → checkmark-small-D_9HLctx.js} +0 -0
- /package/dist/es/{chevron-down-BzENwYSf.mjs → chevron-down-BzENwYSf.js} +0 -0
- /package/dist/es/{chevron-right-DczMHcvL.mjs → chevron-right-DczMHcvL.js} +0 -0
- /package/dist/es/{chevron-up-BLtnROd5.mjs → chevron-up-BLtnROd5.js} +0 -0
- /package/dist/es/{ci-BJ-L2p8Z.mjs → ci-BJ-L2p8Z.js} +0 -0
- /package/dist/es/{ck-j69yRZOc.mjs → ck-j69yRZOc.js} +0 -0
- /package/dist/es/{cl-C6BytT6S.mjs → cl-C6BytT6S.js} +0 -0
- /package/dist/es/{cm-CUzrX5VK.mjs → cm-CUzrX5VK.js} +0 -0
- /package/dist/es/{cn-De5mx48S.mjs → cn-De5mx48S.js} +0 -0
- /package/dist/es/{co-D1tfX-Rj.mjs → co-D1tfX-Rj.js} +0 -0
- /package/dist/es/{company-D5_F_6SW.mjs → company-D5_F_6SW.js} +0 -0
- /package/dist/es/{contract-C6wDy9zU.mjs → contract-C6wDy9zU.js} +0 -0
- /package/dist/es/{controlling-person-C4KoSyi2.mjs → controlling-person-C4KoSyi2.js} +0 -0
- /package/dist/es/{cr-zUnaQPg8.mjs → cr-zUnaQPg8.js} +0 -0
- /package/dist/es/{cross-BadGfrgB.mjs → cross-BadGfrgB.js} +0 -0
- /package/dist/es/{cu-DaGswOf0.mjs → cu-DaGswOf0.js} +0 -0
- /package/dist/es/{cv-C4-jr8vq.mjs → cv-C4-jr8vq.js} +0 -0
- /package/dist/es/{cw-D-6419Qt.mjs → cw-D-6419Qt.js} +0 -0
- /package/dist/es/{cx-DfNBgtwc.mjs → cx-DfNBgtwc.js} +0 -0
- /package/dist/es/{cy-BRABzapK.mjs → cy-BRABzapK.js} +0 -0
- /package/dist/es/{cz-DzosVcuo.mjs → cz-DzosVcuo.js} +0 -0
- /package/dist/es/{de-DRcIm1Ma.mjs → de-DRcIm1Ma.js} +0 -0
- /package/dist/es/{decision-maker-Cef3-OzY.mjs → decision-maker-Cef3-OzY.js} +0 -0
- /package/dist/es/{dj-Da7LmapC.mjs → dj-Da7LmapC.js} +0 -0
- /package/dist/es/{dk-pty9O1pD.mjs → dk-pty9O1pD.js} +0 -0
- /package/dist/es/{dm-GPioKBpx.mjs → dm-GPioKBpx.js} +0 -0
- /package/dist/es/{do-k8Aqzhu5.mjs → do-k8Aqzhu5.js} +0 -0
- /package/dist/es/{document-Cg4kZHpA.mjs → document-Cg4kZHpA.js} +0 -0
- /package/dist/es/{download-DGC5_Bxe.mjs → download-DGC5_Bxe.js} +0 -0
- /package/dist/es/{dz-0w5shCtT.mjs → dz-0w5shCtT.js} +0 -0
- /package/dist/es/{ec-hp0Ygj0Y.mjs → ec-hp0Ygj0Y.js} +0 -0
- /package/dist/es/{edit--fDhojib.mjs → edit--fDhojib.js} +0 -0
- /package/dist/es/{ee-Dpf_R8jm.mjs → ee-Dpf_R8jm.js} +0 -0
- /package/dist/es/{eg-BgVS1lzb.mjs → eg-BgVS1lzb.js} +0 -0
- /package/dist/es/{eh-CEZasM8H.mjs → eh-CEZasM8H.js} +0 -0
- /package/dist/es/{er-RK3foPBe.mjs → er-RK3foPBe.js} +0 -0
- /package/dist/es/{es-CNey9Ibr.mjs → es-CNey9Ibr.js} +0 -0
- /package/dist/es/{et-cNmj57xA.mjs → et-cNmj57xA.js} +0 -0
- /package/dist/es/{fi-Ds4M7qRF.mjs → fi-Ds4M7qRF.js} +0 -0
- /package/dist/es/{field-error-WElEN1mN.mjs → field-error-WElEN1mN.js} +0 -0
- /package/dist/es/{fj-D1q87nq5.mjs → fj-D1q87nq5.js} +0 -0
- /package/dist/es/{fk-Y2rCs5DH.mjs → fk-Y2rCs5DH.js} +0 -0
- /package/dist/es/{fm-BZKPOICq.mjs → fm-BZKPOICq.js} +0 -0
- /package/dist/es/{fo-sSr8Xnvb.mjs → fo-sSr8Xnvb.js} +0 -0
- /package/dist/es/{fr-BWzaj6Yw.mjs → fr-BWzaj6Yw.js} +0 -0
- /package/dist/es/{fx-DR2GRTdn.mjs → fx-DR2GRTdn.js} +0 -0
- /package/dist/es/{ga-9LhduROZ.mjs → ga-9LhduROZ.js} +0 -0
- /package/dist/es/{gb-DA-V5Xdu.mjs → gb-DA-V5Xdu.js} +0 -0
- /package/dist/es/{gd-JWdzcsNM.mjs → gd-JWdzcsNM.js} +0 -0
- /package/dist/es/{ge-Zw0skRye.mjs → ge-Zw0skRye.js} +0 -0
- /package/dist/es/{gf-Bq_uV48f.mjs → gf-Bq_uV48f.js} +0 -0
- /package/dist/es/{gg-CNzs8gF-.mjs → gg-CNzs8gF-.js} +0 -0
- /package/dist/es/{gh-2VT5yAxo.mjs → gh-2VT5yAxo.js} +0 -0
- /package/dist/es/{gi-jPgXNb1L.mjs → gi-jPgXNb1L.js} +0 -0
- /package/dist/es/{gl-c6mjlUME.mjs → gl-c6mjlUME.js} +0 -0
- /package/dist/es/{gm-BgeXyCUQ.mjs → gm-BgeXyCUQ.js} +0 -0
- /package/dist/es/{gn-CyyMcNZ3.mjs → gn-CyyMcNZ3.js} +0 -0
- /package/dist/es/{gp-D2PIp9tB.mjs → gp-D2PIp9tB.js} +0 -0
- /package/dist/es/{gq-BT6Gd3M4.mjs → gq-BT6Gd3M4.js} +0 -0
- /package/dist/es/{gr-B5MQUSuL.mjs → gr-B5MQUSuL.js} +0 -0
- /package/dist/es/{gs-6VXnGQzD.mjs → gs-6VXnGQzD.js} +0 -0
- /package/dist/es/{gt-4DSSuHgq.mjs → gt-4DSSuHgq.js} +0 -0
- /package/dist/es/{gu-Dxf1inL8.mjs → gu-Dxf1inL8.js} +0 -0
- /package/dist/es/{gw-R5Dl09OL.mjs → gw-R5Dl09OL.js} +0 -0
- /package/dist/es/{gy-CHx6kck0.mjs → gy-CHx6kck0.js} +0 -0
- /package/dist/es/{hk-DLy2j4QA.mjs → hk-DLy2j4QA.js} +0 -0
- /package/dist/es/{hm-CoK7Z2cg.mjs → hm-CoK7Z2cg.js} +0 -0
- /package/dist/es/{hn-DxQ71v08.mjs → hn-DxQ71v08.js} +0 -0
- /package/dist/es/{hr-B6Zc8qZS.mjs → hr-B6Zc8qZS.js} +0 -0
- /package/dist/es/{ht-DCMkLse8.mjs → ht-DCMkLse8.js} +0 -0
- /package/dist/es/{hu-JEoUAdpx.mjs → hu-JEoUAdpx.js} +0 -0
- /package/dist/es/{id-D1C_2HvG.mjs → id-D1C_2HvG.js} +0 -0
- /package/dist/es/{ie-d3bapQx-.mjs → ie-d3bapQx-.js} +0 -0
- /package/dist/es/{il-CxVm0b2J.mjs → il-CxVm0b2J.js} +0 -0
- /package/dist/es/{im-BN_uhDka.mjs → im-BN_uhDka.js} +0 -0
- /package/dist/es/{in-BGdmDROr.mjs → in-BGdmDROr.js} +0 -0
- /package/dist/es/{info-circle-DkHN1ugA.mjs → info-circle-DkHN1ugA.js} +0 -0
- /package/dist/es/{io-DYCJpAKf.mjs → io-DYCJpAKf.js} +0 -0
- /package/dist/es/{iq-BlsI9EWN.mjs → iq-BlsI9EWN.js} +0 -0
- /package/dist/es/{ir-DdOj6IVV.mjs → ir-DdOj6IVV.js} +0 -0
- /package/dist/es/{is-DN52KJKG.mjs → is-DN52KJKG.js} +0 -0
- /package/dist/es/{it-D6Y8tXt3.mjs → it-D6Y8tXt3.js} +0 -0
- /package/dist/es/{je-DR82slj4.mjs → je-DR82slj4.js} +0 -0
- /package/dist/es/{jm-LqaENrl9.mjs → jm-LqaENrl9.js} +0 -0
- /package/dist/es/{jo-yLc64Rmj.mjs → jo-yLc64Rmj.js} +0 -0
- /package/dist/es/{jp-Bb5uIw0H.mjs → jp-Bb5uIw0H.js} +0 -0
- /package/dist/es/{ke-BK1BjkeR.mjs → ke-BK1BjkeR.js} +0 -0
- /package/dist/es/{kg-wlEuBvxO.mjs → kg-wlEuBvxO.js} +0 -0
- /package/dist/es/{kh-DsvqlHLy.mjs → kh-DsvqlHLy.js} +0 -0
- /package/dist/es/{ki-Byta-OFo.mjs → ki-Byta-OFo.js} +0 -0
- /package/dist/es/{km-RNbmgGL_.mjs → km-RNbmgGL_.js} +0 -0
- /package/dist/es/{kn-CsHNi3Qt.mjs → kn-CsHNi3Qt.js} +0 -0
- /package/dist/es/{kp-DskyYlvx.mjs → kp-DskyYlvx.js} +0 -0
- /package/dist/es/{kr-DlF6eJVr.mjs → kr-DlF6eJVr.js} +0 -0
- /package/dist/es/{kw-BiQAd6j1.mjs → kw-BiQAd6j1.js} +0 -0
- /package/dist/es/{ky-BvPeTNcl.mjs → ky-BvPeTNcl.js} +0 -0
- /package/dist/es/{kz-BQCcz0Va.mjs → kz-BQCcz0Va.js} +0 -0
- /package/dist/es/{la-COyntyzl.mjs → la-COyntyzl.js} +0 -0
- /package/dist/es/{lb-CzTzggHc.mjs → lb-CzTzggHc.js} +0 -0
- /package/dist/es/{lc-CRL2hV6d.mjs → lc-CRL2hV6d.js} +0 -0
- /package/dist/es/{li-BN-LWzEm.mjs → li-BN-LWzEm.js} +0 -0
- /package/dist/es/{light-bulb-DEUhbRWP.mjs → light-bulb-DEUhbRWP.js} +0 -0
- /package/dist/es/{lk-Dh6uTZcH.mjs → lk-Dh6uTZcH.js} +0 -0
- /package/dist/es/{location-B1Til-7Q.mjs → location-B1Til-7Q.js} +0 -0
- /package/dist/es/{lr-CoVvhAhL.mjs → lr-CoVvhAhL.js} +0 -0
- /package/dist/es/{ls-BFhv4OAc.mjs → ls-BFhv4OAc.js} +0 -0
- /package/dist/es/{lt-C9w-Id1S.mjs → lt-C9w-Id1S.js} +0 -0
- /package/dist/es/{lu-Ccpxa0yN.mjs → lu-Ccpxa0yN.js} +0 -0
- /package/dist/es/{lv-Di5Y7vBC.mjs → lv-Di5Y7vBC.js} +0 -0
- /package/dist/es/{ly-BKgB-CvV.mjs → ly-BKgB-CvV.js} +0 -0
- /package/dist/es/{ma-gJj5XCI-.mjs → ma-gJj5XCI-.js} +0 -0
- /package/dist/es/{mc-BPN5JfTO.mjs → mc-BPN5JfTO.js} +0 -0
- /package/dist/es/{md-aCqyKOgl.mjs → md-aCqyKOgl.js} +0 -0
- /package/dist/es/{me-C6-JkhFA.mjs → me-C6-JkhFA.js} +0 -0
- /package/dist/es/{mf-jpyKjgsU.mjs → mf-jpyKjgsU.js} +0 -0
- /package/dist/es/{mg-TS1IwqtI.mjs → mg-TS1IwqtI.js} +0 -0
- /package/dist/es/{mh-yHLgOFiA.mjs → mh-yHLgOFiA.js} +0 -0
- /package/dist/es/{mk-CaRVDngZ.mjs → mk-CaRVDngZ.js} +0 -0
- /package/dist/es/{ml-CUUHxg1j.mjs → ml-CUUHxg1j.js} +0 -0
- /package/dist/es/{mm-CYK7VHSP.mjs → mm-CYK7VHSP.js} +0 -0
- /package/dist/es/{mn-D2S-h2WN.mjs → mn-D2S-h2WN.js} +0 -0
- /package/dist/es/{mo-D1RG60zF.mjs → mo-D1RG60zF.js} +0 -0
- /package/dist/es/{more-horiz-BieZKfy3.mjs → more-horiz-BieZKfy3.js} +0 -0
- /package/dist/es/{mp-DzztXSh1.mjs → mp-DzztXSh1.js} +0 -0
- /package/dist/es/{mq-Gsmz5_5j.mjs → mq-Gsmz5_5j.js} +0 -0
- /package/dist/es/{mr-C_s5K8p5.mjs → mr-C_s5K8p5.js} +0 -0
- /package/dist/es/{ms-Cgov7p4h.mjs → ms-Cgov7p4h.js} +0 -0
- /package/dist/es/{mt-B9vsNjSx.mjs → mt-B9vsNjSx.js} +0 -0
- /package/dist/es/{mu-DeH79Hcd.mjs → mu-DeH79Hcd.js} +0 -0
- /package/dist/es/{mv-CS9OGWK4.mjs → mv-CS9OGWK4.js} +0 -0
- /package/dist/es/{mw-BvDfO_4m.mjs → mw-BvDfO_4m.js} +0 -0
- /package/dist/es/{mx-ByC0ZmOn.mjs → mx-ByC0ZmOn.js} +0 -0
- /package/dist/es/{my-BtbjhaSG.mjs → my-BtbjhaSG.js} +0 -0
- /package/dist/es/{mz-BuZty0IX.mjs → mz-BuZty0IX.js} +0 -0
- /package/dist/es/{na-BMRoTc_5.mjs → na-BMRoTc_5.js} +0 -0
- /package/dist/es/{nc-TfmJ1_PR.mjs → nc-TfmJ1_PR.js} +0 -0
- /package/dist/es/{ne-e6jU7Ta4.mjs → ne-e6jU7Ta4.js} +0 -0
- /package/dist/es/{new-document-BEAJnXCG.mjs → new-document-BEAJnXCG.js} +0 -0
- /package/dist/es/{nf-DEApE1l7.mjs → nf-DEApE1l7.js} +0 -0
- /package/dist/es/{ng-C481SfES.mjs → ng-C481SfES.js} +0 -0
- /package/dist/es/{ni-DoG4DYn_.mjs → ni-DoG4DYn_.js} +0 -0
- /package/dist/es/{nl-Cmbofdv4.mjs → nl-Cmbofdv4.js} +0 -0
- /package/dist/es/{no-CVO81I1l.mjs → no-CVO81I1l.js} +0 -0
- /package/dist/es/{np-zRmg82Re.mjs → np-zRmg82Re.js} +0 -0
- /package/dist/es/{nr-B5qQQRjH.mjs → nr-B5qQQRjH.js} +0 -0
- /package/dist/es/{nu-BI4Y-0EG.mjs → nu-BI4Y-0EG.js} +0 -0
- /package/dist/es/{nz-DF7xbKn7.mjs → nz-DF7xbKn7.js} +0 -0
- /package/dist/es/{om-BjOei_ke.mjs → om-BjOei_ke.js} +0 -0
- /package/dist/es/{owners-D1pksb86.mjs → owners-D1pksb86.js} +0 -0
- /package/dist/es/{pa-ZEXTGOfm.mjs → pa-ZEXTGOfm.js} +0 -0
- /package/dist/es/{payout-BFiI--HY.mjs → payout-BFiI--HY.js} +0 -0
- /package/dist/es/{pci-DMQLRoAn.mjs → pci-DMQLRoAn.js} +0 -0
- /package/dist/es/{pe-HNEmB15y.mjs → pe-HNEmB15y.js} +0 -0
- /package/dist/es/{pf-DwCESo2k.mjs → pf-DwCESo2k.js} +0 -0
- /package/dist/es/{pg-BhOdaLDy.mjs → pg-BhOdaLDy.js} +0 -0
- /package/dist/es/{ph-8ii4-Tq6.mjs → ph-8ii4-Tq6.js} +0 -0
- /package/dist/es/{pk-BafoDKz5.mjs → pk-BafoDKz5.js} +0 -0
- /package/dist/es/{pl-D9b2Q58T.mjs → pl-D9b2Q58T.js} +0 -0
- /package/dist/es/{plus-DAnbeoyS.mjs → plus-DAnbeoyS.js} +0 -0
- /package/dist/es/{pm-C-WvmgM4.mjs → pm-C-WvmgM4.js} +0 -0
- /package/dist/es/{pn-DjnHidFS.mjs → pn-DjnHidFS.js} +0 -0
- /package/dist/es/{pr-Dd50hA9F.mjs → pr-Dd50hA9F.js} +0 -0
- /package/dist/es/{ps-CUGb27Pq.mjs → ps-CUGb27Pq.js} +0 -0
- /package/dist/es/{pt-Qpxk-ulQ.mjs → pt-Qpxk-ulQ.js} +0 -0
- /package/dist/es/{pw-DV4RtHVX.mjs → pw-DV4RtHVX.js} +0 -0
- /package/dist/es/{py-eg-mtZFC.mjs → py-eg-mtZFC.js} +0 -0
- /package/dist/es/{qa-CHyJi5tF.mjs → qa-CHyJi5tF.js} +0 -0
- /package/dist/es/{re-FpArmeeM.mjs → re-FpArmeeM.js} +0 -0
- /package/dist/es/{remove-CEmd9YX7.mjs → remove-CEmd9YX7.js} +0 -0
- /package/dist/es/{review-CeQeKHXH.mjs → review-CeQeKHXH.js} +0 -0
- /package/dist/es/{ro-ANrnebzK.mjs → ro-ANrnebzK.js} +0 -0
- /package/dist/es/{rs-BGbyX7Qb.mjs → rs-BGbyX7Qb.js} +0 -0
- /package/dist/es/{ru-DtLSIa8v.mjs → ru-DtLSIa8v.js} +0 -0
- /package/dist/es/{rw-B1kILqpv.mjs → rw-B1kILqpv.js} +0 -0
- /package/dist/es/{sa-CEcWBFfj.mjs → sa-CEcWBFfj.js} +0 -0
- /package/dist/es/{sb-p9ah_4x5.mjs → sb-p9ah_4x5.js} +0 -0
- /package/dist/es/{sc-2YHg9FTT.mjs → sc-2YHg9FTT.js} +0 -0
- /package/dist/es/{sd-BKzyWEE3.mjs → sd-BKzyWEE3.js} +0 -0
- /package/dist/es/{se-Dq5LtCEp.mjs → se-Dq5LtCEp.js} +0 -0
- /package/dist/es/{search-hf3HRVbu.mjs → search-hf3HRVbu.js} +0 -0
- /package/dist/es/{sg-C752_QVl.mjs → sg-C752_QVl.js} +0 -0
- /package/dist/es/{sh-NFjaiAXX.mjs → sh-NFjaiAXX.js} +0 -0
- /package/dist/es/{si-DKzVjXeV.mjs → si-DKzVjXeV.js} +0 -0
- /package/dist/es/{signatory-BVoLPYPu.mjs → signatory-BVoLPYPu.js} +0 -0
- /package/dist/es/{sj-DF7Bf8Q9.mjs → sj-DF7Bf8Q9.js} +0 -0
- /package/dist/es/{sk-CPmqq18S.mjs → sk-CPmqq18S.js} +0 -0
- /package/dist/es/{sl-Dx7oHjXI.mjs → sl-Dx7oHjXI.js} +0 -0
- /package/dist/es/{sm-B8bEOCx7.mjs → sm-B8bEOCx7.js} +0 -0
- /package/dist/es/{sn-tcqzwUh4.mjs → sn-tcqzwUh4.js} +0 -0
- /package/dist/es/{so-BrD8jwW8.mjs → so-BrD8jwW8.js} +0 -0
- /package/dist/es/{sr-Dyy1x6sW.mjs → sr-Dyy1x6sW.js} +0 -0
- /package/dist/es/{ss-CpfhWUQL.mjs → ss-CpfhWUQL.js} +0 -0
- /package/dist/es/{st-DZJqDu2d.mjs → st-DZJqDu2d.js} +0 -0
- /package/dist/es/{store-D2z639xh.mjs → store-D2z639xh.js} +0 -0
- /package/dist/es/{sv-DtkfLQdf.mjs → sv-DtkfLQdf.js} +0 -0
- /package/dist/es/{sx-C1dyGLW-.mjs → sx-C1dyGLW-.js} +0 -0
- /package/dist/es/{sy-DhvBoSDL.mjs → sy-DhvBoSDL.js} +0 -0
- /package/dist/es/{sz-Co03zPL0.mjs → sz-Co03zPL0.js} +0 -0
- /package/dist/es/{tc-DFY42rbc.mjs → tc-DFY42rbc.js} +0 -0
- /package/dist/es/{td-DdnMoB4B.mjs → td-DdnMoB4B.js} +0 -0
- /package/dist/es/{tf-DtUoHxUD.mjs → tf-DtUoHxUD.js} +0 -0
- /package/dist/es/{tg-B-szBZlQ.mjs → tg-B-szBZlQ.js} +0 -0
- /package/dist/es/{th-hl0xD9En.mjs → th-hl0xD9En.js} +0 -0
- /package/dist/es/{tj-CaluHgV4.mjs → tj-CaluHgV4.js} +0 -0
- /package/dist/es/{tk-7WTKQA6M.mjs → tk-7WTKQA6M.js} +0 -0
- /package/dist/es/{tl-DWxFj_mI.mjs → tl-DWxFj_mI.js} +0 -0
- /package/dist/es/{tm-CXa44ZsQ.mjs → tm-CXa44ZsQ.js} +0 -0
- /package/dist/es/{tn-YGA63yhm.mjs → tn-YGA63yhm.js} +0 -0
- /package/dist/es/{to-D1SPhDAS.mjs → to-D1SPhDAS.js} +0 -0
- /package/dist/es/{tr-BkORBw5s.mjs → tr-BkORBw5s.js} +0 -0
- /package/dist/es/{trust-CpcaQaV7.mjs → trust-CpcaQaV7.js} +0 -0
- /package/dist/es/{tt-CPiasxy9.mjs → tt-CPiasxy9.js} +0 -0
- /package/dist/es/{tv-1UKqGnYq.mjs → tv-1UKqGnYq.js} +0 -0
- /package/dist/es/{tw-V_-9EdZA.mjs → tw-V_-9EdZA.js} +0 -0
- /package/dist/es/{tz-vyNQ8siG.mjs → tz-vyNQ8siG.js} +0 -0
- /package/dist/es/{ua-B36hNKIn.mjs → ua-B36hNKIn.js} +0 -0
- /package/dist/es/{ug-DzrOv_zJ.mjs → ug-DzrOv_zJ.js} +0 -0
- /package/dist/es/{um-Xf4WHDSX.mjs → um-Xf4WHDSX.js} +0 -0
- /package/dist/es/{us-VkSkiw44.mjs → us-VkSkiw44.js} +0 -0
- /package/dist/es/{uy-BBVhuI0m.mjs → uy-BBVhuI0m.js} +0 -0
- /package/dist/es/{uz-D4g4y6tl.mjs → uz-D4g4y6tl.js} +0 -0
- /package/dist/es/{va-CuiFpTCr.mjs → va-CuiFpTCr.js} +0 -0
- /package/dist/es/{vc-BGrc4dhk.mjs → vc-BGrc4dhk.js} +0 -0
- /package/dist/es/{ve-76O2C7rm.mjs → ve-76O2C7rm.js} +0 -0
- /package/dist/es/{vg-DMKx8jrg.mjs → vg-DMKx8jrg.js} +0 -0
- /package/dist/es/{vi-D8PahWnh.mjs → vi-D8PahWnh.js} +0 -0
- /package/dist/es/{vn-BnPQgCR1.mjs → vn-BnPQgCR1.js} +0 -0
- /package/dist/es/{vu-B3LLAmr5.mjs → vu-B3LLAmr5.js} +0 -0
- /package/dist/es/{warning-99uFf1WU.mjs → warning-99uFf1WU.js} +0 -0
- /package/dist/es/{wf-qXr-xalT.mjs → wf-qXr-xalT.js} +0 -0
- /package/dist/es/{wrong-1wvh7nZe.mjs → wrong-1wvh7nZe.js} +0 -0
- /package/dist/es/{ws-pGsAcjqz.mjs → ws-pGsAcjqz.js} +0 -0
- /package/dist/es/{ye-CII0qyBt.mjs → ye-CII0qyBt.js} +0 -0
- /package/dist/es/{yt-BoehcMko.mjs → yt-BoehcMko.js} +0 -0
- /package/dist/es/{za-CaK3IAZP.mjs → za-CaK3IAZP.js} +0 -0
- /package/dist/es/{zm-C8-RQ03K.mjs → zm-C8-RQ03K.js} +0 -0
- /package/dist/es/{zw-JWvy-vVa.mjs → zw-JWvy-vVa.js} +0 -0
- /package/dist/es/{zz-CCLSDExB.mjs → zz-CCLSDExB.js} +0 -0
|
@@ -127,6 +127,9 @@ const dateOfIncorporation = "Date of incorporation";
|
|
|
127
127
|
const passportExpiryDate = "Passport expiry date";
|
|
128
128
|
const proofOfNationality = "Proof of nationality";
|
|
129
129
|
const identityNumberExempt = "I don't have an identity number";
|
|
130
|
+
const iDontHaveAVatNumber = "I don't have a VAT number";
|
|
131
|
+
const iDontHaveATaxId = "I don't have a Tax ID";
|
|
132
|
+
const iDontHaveARegistrationNumber = "I don't have a registration number";
|
|
130
133
|
const identityNumberExempt__US = "I don't have an SSN";
|
|
131
134
|
const identityNumberExempt__CA = "I don't have an SIN";
|
|
132
135
|
const uploadDocumentForSsn = "Upload an ID document instead of SSN";
|
|
@@ -638,8 +641,10 @@ const company = "Company";
|
|
|
638
641
|
const youUseCompanyBankAccount = "You use a company bank account.";
|
|
639
642
|
const trust = "Trust";
|
|
640
643
|
const trustPartnershipOrAssociation = "Trust, partnership, or association";
|
|
644
|
+
const partnershipOrAssociation = "Partnership, or association";
|
|
641
645
|
const whatTypeOfTrusteeAreYou = "What type of trustee are you?";
|
|
642
646
|
const youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation = "You’re an individual or company, and you use a bank account in the name of a trust, partnership, or association.";
|
|
647
|
+
const youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation = "You’re an individual or company, and you use a bank account in the name of a partnership, or association.";
|
|
643
648
|
const individualTrustee = "Individual trustee";
|
|
644
649
|
const companyTrustee = "Company trustee";
|
|
645
650
|
const association = "Association";
|
|
@@ -854,14 +859,8 @@ const legalCompanyName__helperText__SG = "Enter the name exactly as it is on you
|
|
|
854
859
|
const legalCompanyName__helperText__HK = "Enter the name exactly as it is on your Hong Kong Companies Registry's Certificate of Incorporation.";
|
|
855
860
|
const taxInformationNumber = "Tax Identification Number";
|
|
856
861
|
const taxInformationNumber__HK = "Business Registration number (BRN)";
|
|
857
|
-
const
|
|
858
|
-
const
|
|
859
|
-
const stockExchangeMIC__placeholder__US = "XABC";
|
|
860
|
-
const stockExchangeMIC__helperText = "Market Identifier Code, as defined in ISO 10383";
|
|
861
|
-
const stockISIN = "Stock ISIN";
|
|
862
|
-
const stockISIN__US = "International Securities Identification Number (ISIN)";
|
|
863
|
-
const stockISIN__placeholder__US = "XX 00000000 1";
|
|
864
|
-
const stockISIN__helperText = "International Securities Identification Number, as defined in ISO 10383";
|
|
862
|
+
const marketIdentifierCodeMIC = "Market Identifier Code (MIC)";
|
|
863
|
+
const isin = "ISIN";
|
|
865
864
|
const companyLookupResultsHeader = "Let's find your company";
|
|
866
865
|
const companyLookupResultsHeader__searching = "Searching for companies...";
|
|
867
866
|
const companyLookupResultsHeader__verifying = "Verifying tax information...";
|
|
@@ -1350,6 +1349,9 @@ const defaultTrans = {
|
|
|
1350
1349
|
passportExpiryDate,
|
|
1351
1350
|
proofOfNationality,
|
|
1352
1351
|
identityNumberExempt,
|
|
1352
|
+
iDontHaveAVatNumber,
|
|
1353
|
+
iDontHaveATaxId,
|
|
1354
|
+
iDontHaveARegistrationNumber,
|
|
1353
1355
|
identityNumberExempt__US,
|
|
1354
1356
|
identityNumberExempt__CA,
|
|
1355
1357
|
uploadDocumentForSsn,
|
|
@@ -1866,8 +1868,10 @@ const defaultTrans = {
|
|
|
1866
1868
|
youUseCompanyBankAccount,
|
|
1867
1869
|
trust,
|
|
1868
1870
|
trustPartnershipOrAssociation,
|
|
1871
|
+
partnershipOrAssociation,
|
|
1869
1872
|
whatTypeOfTrusteeAreYou,
|
|
1870
1873
|
youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation,
|
|
1874
|
+
youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation,
|
|
1871
1875
|
individualTrustee,
|
|
1872
1876
|
companyTrustee,
|
|
1873
1877
|
association,
|
|
@@ -2085,14 +2089,8 @@ const defaultTrans = {
|
|
|
2085
2089
|
legalCompanyName__helperText__HK,
|
|
2086
2090
|
taxInformationNumber,
|
|
2087
2091
|
taxInformationNumber__HK,
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
stockExchangeMIC__placeholder__US,
|
|
2091
|
-
stockExchangeMIC__helperText,
|
|
2092
|
-
stockISIN,
|
|
2093
|
-
stockISIN__US,
|
|
2094
|
-
stockISIN__placeholder__US,
|
|
2095
|
-
stockISIN__helperText,
|
|
2092
|
+
marketIdentifierCodeMIC,
|
|
2093
|
+
isin,
|
|
2096
2094
|
companyLookupResultsHeader,
|
|
2097
2095
|
companyLookupResultsHeader__searching,
|
|
2098
2096
|
companyLookupResultsHeader__verifying,
|
|
@@ -2890,12 +2888,6 @@ const isString = (input) => typeof input === "string" || input instanceof String
|
|
|
2890
2888
|
const hasText = (input) => isString(input) && !isEmpty(input);
|
|
2891
2889
|
const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
|
|
2892
2890
|
const getFormattingRegEx = (specChars, flags = "g") => new RegExp(`[${specChars}]`, flags);
|
|
2893
|
-
const exactLength = (input, length) => {
|
|
2894
|
-
if (isEmpty(input)) {
|
|
2895
|
-
return true;
|
|
2896
|
-
}
|
|
2897
|
-
return input.length === length;
|
|
2898
|
-
};
|
|
2899
2891
|
const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
|
|
2900
2892
|
let suppressed = false;
|
|
2901
2893
|
const consoleMethodsPrefixable = Object.freeze(["debug", "info", "log", "warn", "error", "trace"]);
|
|
@@ -2918,41 +2910,41 @@ const createLogger = (namespace) => {
|
|
|
2918
2910
|
return methods;
|
|
2919
2911
|
};
|
|
2920
2912
|
const icons = {
|
|
2921
|
-
"arrow-left": lazy(() => import("./arrow-left-CCxYxfCP.
|
|
2922
|
-
"arrow-right": lazy(() => import("./arrow-right-DF4Qe-8E.
|
|
2923
|
-
bin: lazy(() => import("./bin-CGwewvcn.
|
|
2924
|
-
check: lazy(() => import("./check-CeSLN4_9.
|
|
2925
|
-
checkmark: lazy(() => import("./checkmark-DEh9MPYR.
|
|
2926
|
-
"checkmark-small": lazy(() => import("./checkmark-small-D_9HLctx.
|
|
2927
|
-
"chevron-down": lazy(() => import("./chevron-down-BzENwYSf.
|
|
2928
|
-
"chevron-right": lazy(() => import("./chevron-right-DczMHcvL.
|
|
2929
|
-
"chevron-up": lazy(() => import("./chevron-up-BLtnROd5.
|
|
2930
|
-
company: lazy(() => import("./company-D5_F_6SW.
|
|
2931
|
-
contract: lazy(() => import("./contract-C6wDy9zU.
|
|
2932
|
-
"controlling-person": lazy(() => import("./controlling-person-C4KoSyi2.
|
|
2933
|
-
cross: lazy(() => import("./cross-BadGfrgB.
|
|
2934
|
-
"decision-maker": lazy(() => import("./decision-maker-Cef3-OzY.
|
|
2935
|
-
document: lazy(() => import("./document-Cg4kZHpA.
|
|
2936
|
-
download: lazy(() => import("./download-DGC5_Bxe.
|
|
2937
|
-
edit: lazy(() => import("./edit--fDhojib.
|
|
2938
|
-
"field-error": lazy(() => import("./field-error-WElEN1mN.
|
|
2939
|
-
"info-circle": lazy(() => import("./info-circle-DkHN1ugA.
|
|
2940
|
-
"light-bulb": lazy(() => import("./light-bulb-DEUhbRWP.
|
|
2941
|
-
location: lazy(() => import("./location-B1Til-7Q.
|
|
2942
|
-
"more-horiz": lazy(() => import("./more-horiz-BieZKfy3.
|
|
2943
|
-
"new-document": lazy(() => import("./new-document-BEAJnXCG.
|
|
2944
|
-
owners: lazy(() => import("./owners-D1pksb86.
|
|
2945
|
-
payout: lazy(() => import("./payout-BFiI--HY.
|
|
2946
|
-
pci: lazy(() => import("./pci-DMQLRoAn.
|
|
2947
|
-
plus: lazy(() => import("./plus-DAnbeoyS.
|
|
2948
|
-
remove: lazy(() => import("./remove-CEmd9YX7.
|
|
2949
|
-
review: lazy(() => import("./review-CeQeKHXH.
|
|
2950
|
-
search: lazy(() => import("./search-hf3HRVbu.
|
|
2951
|
-
signatory: lazy(() => import("./signatory-BVoLPYPu.
|
|
2952
|
-
store: lazy(() => import("./store-D2z639xh.
|
|
2953
|
-
trust: lazy(() => import("./trust-CpcaQaV7.
|
|
2954
|
-
warning: lazy(() => import("./warning-99uFf1WU.
|
|
2955
|
-
wrong: lazy(() => import("./wrong-1wvh7nZe.
|
|
2913
|
+
"arrow-left": lazy(() => import("./arrow-left-CCxYxfCP.js")),
|
|
2914
|
+
"arrow-right": lazy(() => import("./arrow-right-DF4Qe-8E.js")),
|
|
2915
|
+
bin: lazy(() => import("./bin-CGwewvcn.js")),
|
|
2916
|
+
check: lazy(() => import("./check-CeSLN4_9.js")),
|
|
2917
|
+
checkmark: lazy(() => import("./checkmark-DEh9MPYR.js")),
|
|
2918
|
+
"checkmark-small": lazy(() => import("./checkmark-small-D_9HLctx.js")),
|
|
2919
|
+
"chevron-down": lazy(() => import("./chevron-down-BzENwYSf.js")),
|
|
2920
|
+
"chevron-right": lazy(() => import("./chevron-right-DczMHcvL.js")),
|
|
2921
|
+
"chevron-up": lazy(() => import("./chevron-up-BLtnROd5.js")),
|
|
2922
|
+
company: lazy(() => import("./company-D5_F_6SW.js")),
|
|
2923
|
+
contract: lazy(() => import("./contract-C6wDy9zU.js")),
|
|
2924
|
+
"controlling-person": lazy(() => import("./controlling-person-C4KoSyi2.js")),
|
|
2925
|
+
cross: lazy(() => import("./cross-BadGfrgB.js")),
|
|
2926
|
+
"decision-maker": lazy(() => import("./decision-maker-Cef3-OzY.js")),
|
|
2927
|
+
document: lazy(() => import("./document-Cg4kZHpA.js")),
|
|
2928
|
+
download: lazy(() => import("./download-DGC5_Bxe.js")),
|
|
2929
|
+
edit: lazy(() => import("./edit--fDhojib.js")),
|
|
2930
|
+
"field-error": lazy(() => import("./field-error-WElEN1mN.js")),
|
|
2931
|
+
"info-circle": lazy(() => import("./info-circle-DkHN1ugA.js")),
|
|
2932
|
+
"light-bulb": lazy(() => import("./light-bulb-DEUhbRWP.js")),
|
|
2933
|
+
location: lazy(() => import("./location-B1Til-7Q.js")),
|
|
2934
|
+
"more-horiz": lazy(() => import("./more-horiz-BieZKfy3.js")),
|
|
2935
|
+
"new-document": lazy(() => import("./new-document-BEAJnXCG.js")),
|
|
2936
|
+
owners: lazy(() => import("./owners-D1pksb86.js")),
|
|
2937
|
+
payout: lazy(() => import("./payout-BFiI--HY.js")),
|
|
2938
|
+
pci: lazy(() => import("./pci-DMQLRoAn.js")),
|
|
2939
|
+
plus: lazy(() => import("./plus-DAnbeoyS.js")),
|
|
2940
|
+
remove: lazy(() => import("./remove-CEmd9YX7.js")),
|
|
2941
|
+
review: lazy(() => import("./review-CeQeKHXH.js")),
|
|
2942
|
+
search: lazy(() => import("./search-hf3HRVbu.js")),
|
|
2943
|
+
signatory: lazy(() => import("./signatory-BVoLPYPu.js")),
|
|
2944
|
+
store: lazy(() => import("./store-D2z639xh.js")),
|
|
2945
|
+
trust: lazy(() => import("./trust-CpcaQaV7.js")),
|
|
2946
|
+
warning: lazy(() => import("./warning-99uFf1WU.js")),
|
|
2947
|
+
wrong: lazy(() => import("./wrong-1wvh7nZe.js"))
|
|
2956
2948
|
};
|
|
2957
2949
|
const logger$v = createLogger("Icon");
|
|
2958
2950
|
const Icon = ({
|
|
@@ -5271,257 +5263,257 @@ function useIsElementVisible(ref, fallback = true) {
|
|
|
5271
5263
|
}
|
|
5272
5264
|
const logger$r = createLogger("Flag");
|
|
5273
5265
|
const flagImports = /* @__PURE__ */ Object.assign({
|
|
5274
|
-
"../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.
|
|
5275
|
-
"../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.
|
|
5276
|
-
"../../../../assets/flags/af.svg": () => import("./af-CoKzErRW.
|
|
5277
|
-
"../../../../assets/flags/ag.svg": () => import("./ag-g4DXUCrU.
|
|
5278
|
-
"../../../../assets/flags/ai.svg": () => import("./ai-CI-B0R9i.
|
|
5279
|
-
"../../../../assets/flags/al.svg": () => import("./al-COFkJ5Ca.
|
|
5280
|
-
"../../../../assets/flags/am.svg": () => import("./am-Dra-uz-8.
|
|
5281
|
-
"../../../../assets/flags/an.svg": () => import("./an-BGvLoFME.
|
|
5282
|
-
"../../../../assets/flags/ao.svg": () => import("./ao-DxG-ywGM.
|
|
5283
|
-
"../../../../assets/flags/aq.svg": () => import("./aq-D6KJELrz.
|
|
5284
|
-
"../../../../assets/flags/ar.svg": () => import("./ar-D1__sXLf.
|
|
5285
|
-
"../../../../assets/flags/as.svg": () => import("./as-CO1cnzQr.
|
|
5286
|
-
"../../../../assets/flags/at.svg": () => import("./at-DJ-_JUEF.
|
|
5287
|
-
"../../../../assets/flags/au.svg": () => import("./au-DQ7hwYxQ.
|
|
5288
|
-
"../../../../assets/flags/aw.svg": () => import("./aw-DsF55GZp.
|
|
5289
|
-
"../../../../assets/flags/ax.svg": () => import("./ax-B7xGO2vL.
|
|
5290
|
-
"../../../../assets/flags/az.svg": () => import("./az-Bn_p9CvJ.
|
|
5291
|
-
"../../../../assets/flags/ba.svg": () => import("./ba-BoJK_mQe.
|
|
5292
|
-
"../../../../assets/flags/bb.svg": () => import("./bb-Pm_QT_Dl.
|
|
5293
|
-
"../../../../assets/flags/bd.svg": () => import("./bd-D7_YREZy.
|
|
5294
|
-
"../../../../assets/flags/be.svg": () => import("./be-CZxtblLB.
|
|
5295
|
-
"../../../../assets/flags/bf.svg": () => import("./bf-Dpx2xJ7g.
|
|
5296
|
-
"../../../../assets/flags/bg.svg": () => import("./bg-GwVUUSOM.
|
|
5297
|
-
"../../../../assets/flags/bh.svg": () => import("./bh-JbZUrPJw.
|
|
5298
|
-
"../../../../assets/flags/bi.svg": () => import("./bi-BltG81ar.
|
|
5299
|
-
"../../../../assets/flags/bj.svg": () => import("./bj-zQUv2SQa.
|
|
5300
|
-
"../../../../assets/flags/bl.svg": () => import("./bl-BUtmusIM.
|
|
5301
|
-
"../../../../assets/flags/bm.svg": () => import("./bm-D_illE8L.
|
|
5302
|
-
"../../../../assets/flags/bn.svg": () => import("./bn-1XDJa4lE.
|
|
5303
|
-
"../../../../assets/flags/bo.svg": () => import("./bo-DlmVbV9z.
|
|
5304
|
-
"../../../../assets/flags/br.svg": () => import("./br-DLB6QJZk.
|
|
5305
|
-
"../../../../assets/flags/bs.svg": () => import("./bs-8dBnGYPj.
|
|
5306
|
-
"../../../../assets/flags/bt.svg": () => import("./bt-D9SHS-Ak.
|
|
5307
|
-
"../../../../assets/flags/bv.svg": () => import("./bv-ahmv_jU3.
|
|
5308
|
-
"../../../../assets/flags/bw.svg": () => import("./bw-DzLl7TuC.
|
|
5309
|
-
"../../../../assets/flags/by.svg": () => import("./by-BztFrg5-.
|
|
5310
|
-
"../../../../assets/flags/bz.svg": () => import("./bz-DkyxrcWx.
|
|
5311
|
-
"../../../../assets/flags/ca.svg": () => import("./ca-Bika55Ha.
|
|
5312
|
-
"../../../../assets/flags/cc.svg": () => import("./cc-CFZz_AYg.
|
|
5313
|
-
"../../../../assets/flags/cd.svg": () => import("./cd-CgybrxtQ.
|
|
5314
|
-
"../../../../assets/flags/cf.svg": () => import("./cf-D23Pv9G5.
|
|
5315
|
-
"../../../../assets/flags/cg.svg": () => import("./cg-CfZbcFMO.
|
|
5316
|
-
"../../../../assets/flags/ch.svg": () => import("./ch-mKEGRNZY.
|
|
5317
|
-
"../../../../assets/flags/ci.svg": () => import("./ci-BJ-L2p8Z.
|
|
5318
|
-
"../../../../assets/flags/ck.svg": () => import("./ck-j69yRZOc.
|
|
5319
|
-
"../../../../assets/flags/cl.svg": () => import("./cl-C6BytT6S.
|
|
5320
|
-
"../../../../assets/flags/cm.svg": () => import("./cm-CUzrX5VK.
|
|
5321
|
-
"../../../../assets/flags/cn.svg": () => import("./cn-De5mx48S.
|
|
5322
|
-
"../../../../assets/flags/co.svg": () => import("./co-D1tfX-Rj.
|
|
5323
|
-
"../../../../assets/flags/cr.svg": () => import("./cr-zUnaQPg8.
|
|
5324
|
-
"../../../../assets/flags/cu.svg": () => import("./cu-DaGswOf0.
|
|
5325
|
-
"../../../../assets/flags/cv.svg": () => import("./cv-C4-jr8vq.
|
|
5326
|
-
"../../../../assets/flags/cw.svg": () => import("./cw-D-6419Qt.
|
|
5327
|
-
"../../../../assets/flags/cx.svg": () => import("./cx-DfNBgtwc.
|
|
5328
|
-
"../../../../assets/flags/cy.svg": () => import("./cy-BRABzapK.
|
|
5329
|
-
"../../../../assets/flags/cz.svg": () => import("./cz-DzosVcuo.
|
|
5330
|
-
"../../../../assets/flags/de.svg": () => import("./de-DRcIm1Ma.
|
|
5331
|
-
"../../../../assets/flags/dj.svg": () => import("./dj-Da7LmapC.
|
|
5332
|
-
"../../../../assets/flags/dk.svg": () => import("./dk-pty9O1pD.
|
|
5333
|
-
"../../../../assets/flags/dm.svg": () => import("./dm-GPioKBpx.
|
|
5334
|
-
"../../../../assets/flags/do.svg": () => import("./do-k8Aqzhu5.
|
|
5335
|
-
"../../../../assets/flags/dz.svg": () => import("./dz-0w5shCtT.
|
|
5336
|
-
"../../../../assets/flags/ec.svg": () => import("./ec-hp0Ygj0Y.
|
|
5337
|
-
"../../../../assets/flags/ee.svg": () => import("./ee-Dpf_R8jm.
|
|
5338
|
-
"../../../../assets/flags/eg.svg": () => import("./eg-BgVS1lzb.
|
|
5339
|
-
"../../../../assets/flags/eh.svg": () => import("./eh-CEZasM8H.
|
|
5340
|
-
"../../../../assets/flags/er.svg": () => import("./er-RK3foPBe.
|
|
5341
|
-
"../../../../assets/flags/es.svg": () => import("./es-CNey9Ibr.
|
|
5342
|
-
"../../../../assets/flags/et.svg": () => import("./et-cNmj57xA.
|
|
5343
|
-
"../../../../assets/flags/fi.svg": () => import("./fi-Ds4M7qRF.
|
|
5344
|
-
"../../../../assets/flags/fj.svg": () => import("./fj-D1q87nq5.
|
|
5345
|
-
"../../../../assets/flags/fk.svg": () => import("./fk-Y2rCs5DH.
|
|
5346
|
-
"../../../../assets/flags/fm.svg": () => import("./fm-BZKPOICq.
|
|
5347
|
-
"../../../../assets/flags/fo.svg": () => import("./fo-sSr8Xnvb.
|
|
5348
|
-
"../../../../assets/flags/fr.svg": () => import("./fr-BWzaj6Yw.
|
|
5349
|
-
"../../../../assets/flags/fx.svg": () => import("./fx-DR2GRTdn.
|
|
5350
|
-
"../../../../assets/flags/ga.svg": () => import("./ga-9LhduROZ.
|
|
5351
|
-
"../../../../assets/flags/gb.svg": () => import("./gb-DA-V5Xdu.
|
|
5352
|
-
"../../../../assets/flags/gd.svg": () => import("./gd-JWdzcsNM.
|
|
5353
|
-
"../../../../assets/flags/ge.svg": () => import("./ge-Zw0skRye.
|
|
5354
|
-
"../../../../assets/flags/gf.svg": () => import("./gf-Bq_uV48f.
|
|
5355
|
-
"../../../../assets/flags/gg.svg": () => import("./gg-CNzs8gF-.
|
|
5356
|
-
"../../../../assets/flags/gh.svg": () => import("./gh-2VT5yAxo.
|
|
5357
|
-
"../../../../assets/flags/gi.svg": () => import("./gi-jPgXNb1L.
|
|
5358
|
-
"../../../../assets/flags/gl.svg": () => import("./gl-c6mjlUME.
|
|
5359
|
-
"../../../../assets/flags/gm.svg": () => import("./gm-BgeXyCUQ.
|
|
5360
|
-
"../../../../assets/flags/gn.svg": () => import("./gn-CyyMcNZ3.
|
|
5361
|
-
"../../../../assets/flags/gp.svg": () => import("./gp-D2PIp9tB.
|
|
5362
|
-
"../../../../assets/flags/gq.svg": () => import("./gq-BT6Gd3M4.
|
|
5363
|
-
"../../../../assets/flags/gr.svg": () => import("./gr-B5MQUSuL.
|
|
5364
|
-
"../../../../assets/flags/gs.svg": () => import("./gs-6VXnGQzD.
|
|
5365
|
-
"../../../../assets/flags/gt.svg": () => import("./gt-4DSSuHgq.
|
|
5366
|
-
"../../../../assets/flags/gu.svg": () => import("./gu-Dxf1inL8.
|
|
5367
|
-
"../../../../assets/flags/gw.svg": () => import("./gw-R5Dl09OL.
|
|
5368
|
-
"../../../../assets/flags/gy.svg": () => import("./gy-CHx6kck0.
|
|
5369
|
-
"../../../../assets/flags/hk.svg": () => import("./hk-DLy2j4QA.
|
|
5370
|
-
"../../../../assets/flags/hm.svg": () => import("./hm-CoK7Z2cg.
|
|
5371
|
-
"../../../../assets/flags/hn.svg": () => import("./hn-DxQ71v08.
|
|
5372
|
-
"../../../../assets/flags/hr.svg": () => import("./hr-B6Zc8qZS.
|
|
5373
|
-
"../../../../assets/flags/ht.svg": () => import("./ht-DCMkLse8.
|
|
5374
|
-
"../../../../assets/flags/hu.svg": () => import("./hu-JEoUAdpx.
|
|
5375
|
-
"../../../../assets/flags/id.svg": () => import("./id-D1C_2HvG.
|
|
5376
|
-
"../../../../assets/flags/ie.svg": () => import("./ie-d3bapQx-.
|
|
5377
|
-
"../../../../assets/flags/il.svg": () => import("./il-CxVm0b2J.
|
|
5378
|
-
"../../../../assets/flags/im.svg": () => import("./im-BN_uhDka.
|
|
5379
|
-
"../../../../assets/flags/in.svg": () => import("./in-BGdmDROr.
|
|
5380
|
-
"../../../../assets/flags/io.svg": () => import("./io-DYCJpAKf.
|
|
5381
|
-
"../../../../assets/flags/iq.svg": () => import("./iq-BlsI9EWN.
|
|
5382
|
-
"../../../../assets/flags/ir.svg": () => import("./ir-DdOj6IVV.
|
|
5383
|
-
"../../../../assets/flags/is.svg": () => import("./is-DN52KJKG.
|
|
5384
|
-
"../../../../assets/flags/it.svg": () => import("./it-D6Y8tXt3.
|
|
5385
|
-
"../../../../assets/flags/je.svg": () => import("./je-DR82slj4.
|
|
5386
|
-
"../../../../assets/flags/jm.svg": () => import("./jm-LqaENrl9.
|
|
5387
|
-
"../../../../assets/flags/jo.svg": () => import("./jo-yLc64Rmj.
|
|
5388
|
-
"../../../../assets/flags/jp.svg": () => import("./jp-Bb5uIw0H.
|
|
5389
|
-
"../../../../assets/flags/ke.svg": () => import("./ke-BK1BjkeR.
|
|
5390
|
-
"../../../../assets/flags/kg.svg": () => import("./kg-wlEuBvxO.
|
|
5391
|
-
"../../../../assets/flags/kh.svg": () => import("./kh-DsvqlHLy.
|
|
5392
|
-
"../../../../assets/flags/ki.svg": () => import("./ki-Byta-OFo.
|
|
5393
|
-
"../../../../assets/flags/km.svg": () => import("./km-RNbmgGL_.
|
|
5394
|
-
"../../../../assets/flags/kn.svg": () => import("./kn-CsHNi3Qt.
|
|
5395
|
-
"../../../../assets/flags/kp.svg": () => import("./kp-DskyYlvx.
|
|
5396
|
-
"../../../../assets/flags/kr.svg": () => import("./kr-DlF6eJVr.
|
|
5397
|
-
"../../../../assets/flags/kw.svg": () => import("./kw-BiQAd6j1.
|
|
5398
|
-
"../../../../assets/flags/ky.svg": () => import("./ky-BvPeTNcl.
|
|
5399
|
-
"../../../../assets/flags/kz.svg": () => import("./kz-BQCcz0Va.
|
|
5400
|
-
"../../../../assets/flags/la.svg": () => import("./la-COyntyzl.
|
|
5401
|
-
"../../../../assets/flags/lb.svg": () => import("./lb-CzTzggHc.
|
|
5402
|
-
"../../../../assets/flags/lc.svg": () => import("./lc-CRL2hV6d.
|
|
5403
|
-
"../../../../assets/flags/li.svg": () => import("./li-BN-LWzEm.
|
|
5404
|
-
"../../../../assets/flags/lk.svg": () => import("./lk-Dh6uTZcH.
|
|
5405
|
-
"../../../../assets/flags/lr.svg": () => import("./lr-CoVvhAhL.
|
|
5406
|
-
"../../../../assets/flags/ls.svg": () => import("./ls-BFhv4OAc.
|
|
5407
|
-
"../../../../assets/flags/lt.svg": () => import("./lt-C9w-Id1S.
|
|
5408
|
-
"../../../../assets/flags/lu.svg": () => import("./lu-Ccpxa0yN.
|
|
5409
|
-
"../../../../assets/flags/lv.svg": () => import("./lv-Di5Y7vBC.
|
|
5410
|
-
"../../../../assets/flags/ly.svg": () => import("./ly-BKgB-CvV.
|
|
5411
|
-
"../../../../assets/flags/ma.svg": () => import("./ma-gJj5XCI-.
|
|
5412
|
-
"../../../../assets/flags/mc.svg": () => import("./mc-BPN5JfTO.
|
|
5413
|
-
"../../../../assets/flags/md.svg": () => import("./md-aCqyKOgl.
|
|
5414
|
-
"../../../../assets/flags/me.svg": () => import("./me-C6-JkhFA.
|
|
5415
|
-
"../../../../assets/flags/mf.svg": () => import("./mf-jpyKjgsU.
|
|
5416
|
-
"../../../../assets/flags/mg.svg": () => import("./mg-TS1IwqtI.
|
|
5417
|
-
"../../../../assets/flags/mh.svg": () => import("./mh-yHLgOFiA.
|
|
5418
|
-
"../../../../assets/flags/mk.svg": () => import("./mk-CaRVDngZ.
|
|
5419
|
-
"../../../../assets/flags/ml.svg": () => import("./ml-CUUHxg1j.
|
|
5420
|
-
"../../../../assets/flags/mm.svg": () => import("./mm-CYK7VHSP.
|
|
5421
|
-
"../../../../assets/flags/mn.svg": () => import("./mn-D2S-h2WN.
|
|
5422
|
-
"../../../../assets/flags/mo.svg": () => import("./mo-D1RG60zF.
|
|
5423
|
-
"../../../../assets/flags/mp.svg": () => import("./mp-DzztXSh1.
|
|
5424
|
-
"../../../../assets/flags/mq.svg": () => import("./mq-Gsmz5_5j.
|
|
5425
|
-
"../../../../assets/flags/mr.svg": () => import("./mr-C_s5K8p5.
|
|
5426
|
-
"../../../../assets/flags/ms.svg": () => import("./ms-Cgov7p4h.
|
|
5427
|
-
"../../../../assets/flags/mt.svg": () => import("./mt-B9vsNjSx.
|
|
5428
|
-
"../../../../assets/flags/mu.svg": () => import("./mu-DeH79Hcd.
|
|
5429
|
-
"../../../../assets/flags/mv.svg": () => import("./mv-CS9OGWK4.
|
|
5430
|
-
"../../../../assets/flags/mw.svg": () => import("./mw-BvDfO_4m.
|
|
5431
|
-
"../../../../assets/flags/mx.svg": () => import("./mx-ByC0ZmOn.
|
|
5432
|
-
"../../../../assets/flags/my.svg": () => import("./my-BtbjhaSG.
|
|
5433
|
-
"../../../../assets/flags/mz.svg": () => import("./mz-BuZty0IX.
|
|
5434
|
-
"../../../../assets/flags/na.svg": () => import("./na-BMRoTc_5.
|
|
5435
|
-
"../../../../assets/flags/nc.svg": () => import("./nc-TfmJ1_PR.
|
|
5436
|
-
"../../../../assets/flags/ne.svg": () => import("./ne-e6jU7Ta4.
|
|
5437
|
-
"../../../../assets/flags/nf.svg": () => import("./nf-DEApE1l7.
|
|
5438
|
-
"../../../../assets/flags/ng.svg": () => import("./ng-C481SfES.
|
|
5439
|
-
"../../../../assets/flags/ni.svg": () => import("./ni-DoG4DYn_.
|
|
5440
|
-
"../../../../assets/flags/nl.svg": () => import("./nl-Cmbofdv4.
|
|
5441
|
-
"../../../../assets/flags/no.svg": () => import("./no-CVO81I1l.
|
|
5442
|
-
"../../../../assets/flags/np.svg": () => import("./np-zRmg82Re.
|
|
5443
|
-
"../../../../assets/flags/nr.svg": () => import("./nr-B5qQQRjH.
|
|
5444
|
-
"../../../../assets/flags/nu.svg": () => import("./nu-BI4Y-0EG.
|
|
5445
|
-
"../../../../assets/flags/nz.svg": () => import("./nz-DF7xbKn7.
|
|
5446
|
-
"../../../../assets/flags/om.svg": () => import("./om-BjOei_ke.
|
|
5447
|
-
"../../../../assets/flags/pa.svg": () => import("./pa-ZEXTGOfm.
|
|
5448
|
-
"../../../../assets/flags/pe.svg": () => import("./pe-HNEmB15y.
|
|
5449
|
-
"../../../../assets/flags/pf.svg": () => import("./pf-DwCESo2k.
|
|
5450
|
-
"../../../../assets/flags/pg.svg": () => import("./pg-BhOdaLDy.
|
|
5451
|
-
"../../../../assets/flags/ph.svg": () => import("./ph-8ii4-Tq6.
|
|
5452
|
-
"../../../../assets/flags/pk.svg": () => import("./pk-BafoDKz5.
|
|
5453
|
-
"../../../../assets/flags/pl.svg": () => import("./pl-D9b2Q58T.
|
|
5454
|
-
"../../../../assets/flags/pm.svg": () => import("./pm-C-WvmgM4.
|
|
5455
|
-
"../../../../assets/flags/pn.svg": () => import("./pn-DjnHidFS.
|
|
5456
|
-
"../../../../assets/flags/pr.svg": () => import("./pr-Dd50hA9F.
|
|
5457
|
-
"../../../../assets/flags/ps.svg": () => import("./ps-CUGb27Pq.
|
|
5458
|
-
"../../../../assets/flags/pt.svg": () => import("./pt-Qpxk-ulQ.
|
|
5459
|
-
"../../../../assets/flags/pw.svg": () => import("./pw-DV4RtHVX.
|
|
5460
|
-
"../../../../assets/flags/py.svg": () => import("./py-eg-mtZFC.
|
|
5461
|
-
"../../../../assets/flags/qa.svg": () => import("./qa-CHyJi5tF.
|
|
5462
|
-
"../../../../assets/flags/re.svg": () => import("./re-FpArmeeM.
|
|
5463
|
-
"../../../../assets/flags/ro.svg": () => import("./ro-ANrnebzK.
|
|
5464
|
-
"../../../../assets/flags/rs.svg": () => import("./rs-BGbyX7Qb.
|
|
5465
|
-
"../../../../assets/flags/ru.svg": () => import("./ru-DtLSIa8v.
|
|
5466
|
-
"../../../../assets/flags/rw.svg": () => import("./rw-B1kILqpv.
|
|
5467
|
-
"../../../../assets/flags/sa.svg": () => import("./sa-CEcWBFfj.
|
|
5468
|
-
"../../../../assets/flags/sb.svg": () => import("./sb-p9ah_4x5.
|
|
5469
|
-
"../../../../assets/flags/sc.svg": () => import("./sc-2YHg9FTT.
|
|
5470
|
-
"../../../../assets/flags/sd.svg": () => import("./sd-BKzyWEE3.
|
|
5471
|
-
"../../../../assets/flags/se.svg": () => import("./se-Dq5LtCEp.
|
|
5472
|
-
"../../../../assets/flags/sg.svg": () => import("./sg-C752_QVl.
|
|
5473
|
-
"../../../../assets/flags/sh.svg": () => import("./sh-NFjaiAXX.
|
|
5474
|
-
"../../../../assets/flags/si.svg": () => import("./si-DKzVjXeV.
|
|
5475
|
-
"../../../../assets/flags/sj.svg": () => import("./sj-DF7Bf8Q9.
|
|
5476
|
-
"../../../../assets/flags/sk.svg": () => import("./sk-CPmqq18S.
|
|
5477
|
-
"../../../../assets/flags/sl.svg": () => import("./sl-Dx7oHjXI.
|
|
5478
|
-
"../../../../assets/flags/sm.svg": () => import("./sm-B8bEOCx7.
|
|
5479
|
-
"../../../../assets/flags/sn.svg": () => import("./sn-tcqzwUh4.
|
|
5480
|
-
"../../../../assets/flags/so.svg": () => import("./so-BrD8jwW8.
|
|
5481
|
-
"../../../../assets/flags/sr.svg": () => import("./sr-Dyy1x6sW.
|
|
5482
|
-
"../../../../assets/flags/ss.svg": () => import("./ss-CpfhWUQL.
|
|
5483
|
-
"../../../../assets/flags/st.svg": () => import("./st-DZJqDu2d.
|
|
5484
|
-
"../../../../assets/flags/sv.svg": () => import("./sv-DtkfLQdf.
|
|
5485
|
-
"../../../../assets/flags/sx.svg": () => import("./sx-C1dyGLW-.
|
|
5486
|
-
"../../../../assets/flags/sy.svg": () => import("./sy-DhvBoSDL.
|
|
5487
|
-
"../../../../assets/flags/sz.svg": () => import("./sz-Co03zPL0.
|
|
5488
|
-
"../../../../assets/flags/tc.svg": () => import("./tc-DFY42rbc.
|
|
5489
|
-
"../../../../assets/flags/td.svg": () => import("./td-DdnMoB4B.
|
|
5490
|
-
"../../../../assets/flags/tf.svg": () => import("./tf-DtUoHxUD.
|
|
5491
|
-
"../../../../assets/flags/tg.svg": () => import("./tg-B-szBZlQ.
|
|
5492
|
-
"../../../../assets/flags/th.svg": () => import("./th-hl0xD9En.
|
|
5493
|
-
"../../../../assets/flags/tj.svg": () => import("./tj-CaluHgV4.
|
|
5494
|
-
"../../../../assets/flags/tk.svg": () => import("./tk-7WTKQA6M.
|
|
5495
|
-
"../../../../assets/flags/tl.svg": () => import("./tl-DWxFj_mI.
|
|
5496
|
-
"../../../../assets/flags/tm.svg": () => import("./tm-CXa44ZsQ.
|
|
5497
|
-
"../../../../assets/flags/tn.svg": () => import("./tn-YGA63yhm.
|
|
5498
|
-
"../../../../assets/flags/to.svg": () => import("./to-D1SPhDAS.
|
|
5499
|
-
"../../../../assets/flags/tr.svg": () => import("./tr-BkORBw5s.
|
|
5500
|
-
"../../../../assets/flags/tt.svg": () => import("./tt-CPiasxy9.
|
|
5501
|
-
"../../../../assets/flags/tv.svg": () => import("./tv-1UKqGnYq.
|
|
5502
|
-
"../../../../assets/flags/tw.svg": () => import("./tw-V_-9EdZA.
|
|
5503
|
-
"../../../../assets/flags/tz.svg": () => import("./tz-vyNQ8siG.
|
|
5504
|
-
"../../../../assets/flags/ua.svg": () => import("./ua-B36hNKIn.
|
|
5505
|
-
"../../../../assets/flags/ug.svg": () => import("./ug-DzrOv_zJ.
|
|
5506
|
-
"../../../../assets/flags/um.svg": () => import("./um-Xf4WHDSX.
|
|
5507
|
-
"../../../../assets/flags/us.svg": () => import("./us-VkSkiw44.
|
|
5508
|
-
"../../../../assets/flags/uy.svg": () => import("./uy-BBVhuI0m.
|
|
5509
|
-
"../../../../assets/flags/uz.svg": () => import("./uz-D4g4y6tl.
|
|
5510
|
-
"../../../../assets/flags/va.svg": () => import("./va-CuiFpTCr.
|
|
5511
|
-
"../../../../assets/flags/vc.svg": () => import("./vc-BGrc4dhk.
|
|
5512
|
-
"../../../../assets/flags/ve.svg": () => import("./ve-76O2C7rm.
|
|
5513
|
-
"../../../../assets/flags/vg.svg": () => import("./vg-DMKx8jrg.
|
|
5514
|
-
"../../../../assets/flags/vi.svg": () => import("./vi-D8PahWnh.
|
|
5515
|
-
"../../../../assets/flags/vn.svg": () => import("./vn-BnPQgCR1.
|
|
5516
|
-
"../../../../assets/flags/vu.svg": () => import("./vu-B3LLAmr5.
|
|
5517
|
-
"../../../../assets/flags/wf.svg": () => import("./wf-qXr-xalT.
|
|
5518
|
-
"../../../../assets/flags/ws.svg": () => import("./ws-pGsAcjqz.
|
|
5519
|
-
"../../../../assets/flags/ye.svg": () => import("./ye-CII0qyBt.
|
|
5520
|
-
"../../../../assets/flags/yt.svg": () => import("./yt-BoehcMko.
|
|
5521
|
-
"../../../../assets/flags/za.svg": () => import("./za-CaK3IAZP.
|
|
5522
|
-
"../../../../assets/flags/zm.svg": () => import("./zm-C8-RQ03K.
|
|
5523
|
-
"../../../../assets/flags/zw.svg": () => import("./zw-JWvy-vVa.
|
|
5524
|
-
"../../../../assets/flags/zz.svg": () => import("./zz-CCLSDExB.
|
|
5266
|
+
"../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.js"),
|
|
5267
|
+
"../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.js"),
|
|
5268
|
+
"../../../../assets/flags/af.svg": () => import("./af-CoKzErRW.js"),
|
|
5269
|
+
"../../../../assets/flags/ag.svg": () => import("./ag-g4DXUCrU.js"),
|
|
5270
|
+
"../../../../assets/flags/ai.svg": () => import("./ai-CI-B0R9i.js"),
|
|
5271
|
+
"../../../../assets/flags/al.svg": () => import("./al-COFkJ5Ca.js"),
|
|
5272
|
+
"../../../../assets/flags/am.svg": () => import("./am-Dra-uz-8.js"),
|
|
5273
|
+
"../../../../assets/flags/an.svg": () => import("./an-BGvLoFME.js"),
|
|
5274
|
+
"../../../../assets/flags/ao.svg": () => import("./ao-DxG-ywGM.js"),
|
|
5275
|
+
"../../../../assets/flags/aq.svg": () => import("./aq-D6KJELrz.js"),
|
|
5276
|
+
"../../../../assets/flags/ar.svg": () => import("./ar-D1__sXLf.js"),
|
|
5277
|
+
"../../../../assets/flags/as.svg": () => import("./as-CO1cnzQr.js"),
|
|
5278
|
+
"../../../../assets/flags/at.svg": () => import("./at-DJ-_JUEF.js"),
|
|
5279
|
+
"../../../../assets/flags/au.svg": () => import("./au-DQ7hwYxQ.js"),
|
|
5280
|
+
"../../../../assets/flags/aw.svg": () => import("./aw-DsF55GZp.js"),
|
|
5281
|
+
"../../../../assets/flags/ax.svg": () => import("./ax-B7xGO2vL.js"),
|
|
5282
|
+
"../../../../assets/flags/az.svg": () => import("./az-Bn_p9CvJ.js"),
|
|
5283
|
+
"../../../../assets/flags/ba.svg": () => import("./ba-BoJK_mQe.js"),
|
|
5284
|
+
"../../../../assets/flags/bb.svg": () => import("./bb-Pm_QT_Dl.js"),
|
|
5285
|
+
"../../../../assets/flags/bd.svg": () => import("./bd-D7_YREZy.js"),
|
|
5286
|
+
"../../../../assets/flags/be.svg": () => import("./be-CZxtblLB.js"),
|
|
5287
|
+
"../../../../assets/flags/bf.svg": () => import("./bf-Dpx2xJ7g.js"),
|
|
5288
|
+
"../../../../assets/flags/bg.svg": () => import("./bg-GwVUUSOM.js"),
|
|
5289
|
+
"../../../../assets/flags/bh.svg": () => import("./bh-JbZUrPJw.js"),
|
|
5290
|
+
"../../../../assets/flags/bi.svg": () => import("./bi-BltG81ar.js"),
|
|
5291
|
+
"../../../../assets/flags/bj.svg": () => import("./bj-zQUv2SQa.js"),
|
|
5292
|
+
"../../../../assets/flags/bl.svg": () => import("./bl-BUtmusIM.js"),
|
|
5293
|
+
"../../../../assets/flags/bm.svg": () => import("./bm-D_illE8L.js"),
|
|
5294
|
+
"../../../../assets/flags/bn.svg": () => import("./bn-1XDJa4lE.js"),
|
|
5295
|
+
"../../../../assets/flags/bo.svg": () => import("./bo-DlmVbV9z.js"),
|
|
5296
|
+
"../../../../assets/flags/br.svg": () => import("./br-DLB6QJZk.js"),
|
|
5297
|
+
"../../../../assets/flags/bs.svg": () => import("./bs-8dBnGYPj.js"),
|
|
5298
|
+
"../../../../assets/flags/bt.svg": () => import("./bt-D9SHS-Ak.js"),
|
|
5299
|
+
"../../../../assets/flags/bv.svg": () => import("./bv-ahmv_jU3.js"),
|
|
5300
|
+
"../../../../assets/flags/bw.svg": () => import("./bw-DzLl7TuC.js"),
|
|
5301
|
+
"../../../../assets/flags/by.svg": () => import("./by-BztFrg5-.js"),
|
|
5302
|
+
"../../../../assets/flags/bz.svg": () => import("./bz-DkyxrcWx.js"),
|
|
5303
|
+
"../../../../assets/flags/ca.svg": () => import("./ca-Bika55Ha.js"),
|
|
5304
|
+
"../../../../assets/flags/cc.svg": () => import("./cc-CFZz_AYg.js"),
|
|
5305
|
+
"../../../../assets/flags/cd.svg": () => import("./cd-CgybrxtQ.js"),
|
|
5306
|
+
"../../../../assets/flags/cf.svg": () => import("./cf-D23Pv9G5.js"),
|
|
5307
|
+
"../../../../assets/flags/cg.svg": () => import("./cg-CfZbcFMO.js"),
|
|
5308
|
+
"../../../../assets/flags/ch.svg": () => import("./ch-mKEGRNZY.js"),
|
|
5309
|
+
"../../../../assets/flags/ci.svg": () => import("./ci-BJ-L2p8Z.js"),
|
|
5310
|
+
"../../../../assets/flags/ck.svg": () => import("./ck-j69yRZOc.js"),
|
|
5311
|
+
"../../../../assets/flags/cl.svg": () => import("./cl-C6BytT6S.js"),
|
|
5312
|
+
"../../../../assets/flags/cm.svg": () => import("./cm-CUzrX5VK.js"),
|
|
5313
|
+
"../../../../assets/flags/cn.svg": () => import("./cn-De5mx48S.js"),
|
|
5314
|
+
"../../../../assets/flags/co.svg": () => import("./co-D1tfX-Rj.js"),
|
|
5315
|
+
"../../../../assets/flags/cr.svg": () => import("./cr-zUnaQPg8.js"),
|
|
5316
|
+
"../../../../assets/flags/cu.svg": () => import("./cu-DaGswOf0.js"),
|
|
5317
|
+
"../../../../assets/flags/cv.svg": () => import("./cv-C4-jr8vq.js"),
|
|
5318
|
+
"../../../../assets/flags/cw.svg": () => import("./cw-D-6419Qt.js"),
|
|
5319
|
+
"../../../../assets/flags/cx.svg": () => import("./cx-DfNBgtwc.js"),
|
|
5320
|
+
"../../../../assets/flags/cy.svg": () => import("./cy-BRABzapK.js"),
|
|
5321
|
+
"../../../../assets/flags/cz.svg": () => import("./cz-DzosVcuo.js"),
|
|
5322
|
+
"../../../../assets/flags/de.svg": () => import("./de-DRcIm1Ma.js"),
|
|
5323
|
+
"../../../../assets/flags/dj.svg": () => import("./dj-Da7LmapC.js"),
|
|
5324
|
+
"../../../../assets/flags/dk.svg": () => import("./dk-pty9O1pD.js"),
|
|
5325
|
+
"../../../../assets/flags/dm.svg": () => import("./dm-GPioKBpx.js"),
|
|
5326
|
+
"../../../../assets/flags/do.svg": () => import("./do-k8Aqzhu5.js"),
|
|
5327
|
+
"../../../../assets/flags/dz.svg": () => import("./dz-0w5shCtT.js"),
|
|
5328
|
+
"../../../../assets/flags/ec.svg": () => import("./ec-hp0Ygj0Y.js"),
|
|
5329
|
+
"../../../../assets/flags/ee.svg": () => import("./ee-Dpf_R8jm.js"),
|
|
5330
|
+
"../../../../assets/flags/eg.svg": () => import("./eg-BgVS1lzb.js"),
|
|
5331
|
+
"../../../../assets/flags/eh.svg": () => import("./eh-CEZasM8H.js"),
|
|
5332
|
+
"../../../../assets/flags/er.svg": () => import("./er-RK3foPBe.js"),
|
|
5333
|
+
"../../../../assets/flags/es.svg": () => import("./es-CNey9Ibr.js"),
|
|
5334
|
+
"../../../../assets/flags/et.svg": () => import("./et-cNmj57xA.js"),
|
|
5335
|
+
"../../../../assets/flags/fi.svg": () => import("./fi-Ds4M7qRF.js"),
|
|
5336
|
+
"../../../../assets/flags/fj.svg": () => import("./fj-D1q87nq5.js"),
|
|
5337
|
+
"../../../../assets/flags/fk.svg": () => import("./fk-Y2rCs5DH.js"),
|
|
5338
|
+
"../../../../assets/flags/fm.svg": () => import("./fm-BZKPOICq.js"),
|
|
5339
|
+
"../../../../assets/flags/fo.svg": () => import("./fo-sSr8Xnvb.js"),
|
|
5340
|
+
"../../../../assets/flags/fr.svg": () => import("./fr-BWzaj6Yw.js"),
|
|
5341
|
+
"../../../../assets/flags/fx.svg": () => import("./fx-DR2GRTdn.js"),
|
|
5342
|
+
"../../../../assets/flags/ga.svg": () => import("./ga-9LhduROZ.js"),
|
|
5343
|
+
"../../../../assets/flags/gb.svg": () => import("./gb-DA-V5Xdu.js"),
|
|
5344
|
+
"../../../../assets/flags/gd.svg": () => import("./gd-JWdzcsNM.js"),
|
|
5345
|
+
"../../../../assets/flags/ge.svg": () => import("./ge-Zw0skRye.js"),
|
|
5346
|
+
"../../../../assets/flags/gf.svg": () => import("./gf-Bq_uV48f.js"),
|
|
5347
|
+
"../../../../assets/flags/gg.svg": () => import("./gg-CNzs8gF-.js"),
|
|
5348
|
+
"../../../../assets/flags/gh.svg": () => import("./gh-2VT5yAxo.js"),
|
|
5349
|
+
"../../../../assets/flags/gi.svg": () => import("./gi-jPgXNb1L.js"),
|
|
5350
|
+
"../../../../assets/flags/gl.svg": () => import("./gl-c6mjlUME.js"),
|
|
5351
|
+
"../../../../assets/flags/gm.svg": () => import("./gm-BgeXyCUQ.js"),
|
|
5352
|
+
"../../../../assets/flags/gn.svg": () => import("./gn-CyyMcNZ3.js"),
|
|
5353
|
+
"../../../../assets/flags/gp.svg": () => import("./gp-D2PIp9tB.js"),
|
|
5354
|
+
"../../../../assets/flags/gq.svg": () => import("./gq-BT6Gd3M4.js"),
|
|
5355
|
+
"../../../../assets/flags/gr.svg": () => import("./gr-B5MQUSuL.js"),
|
|
5356
|
+
"../../../../assets/flags/gs.svg": () => import("./gs-6VXnGQzD.js"),
|
|
5357
|
+
"../../../../assets/flags/gt.svg": () => import("./gt-4DSSuHgq.js"),
|
|
5358
|
+
"../../../../assets/flags/gu.svg": () => import("./gu-Dxf1inL8.js"),
|
|
5359
|
+
"../../../../assets/flags/gw.svg": () => import("./gw-R5Dl09OL.js"),
|
|
5360
|
+
"../../../../assets/flags/gy.svg": () => import("./gy-CHx6kck0.js"),
|
|
5361
|
+
"../../../../assets/flags/hk.svg": () => import("./hk-DLy2j4QA.js"),
|
|
5362
|
+
"../../../../assets/flags/hm.svg": () => import("./hm-CoK7Z2cg.js"),
|
|
5363
|
+
"../../../../assets/flags/hn.svg": () => import("./hn-DxQ71v08.js"),
|
|
5364
|
+
"../../../../assets/flags/hr.svg": () => import("./hr-B6Zc8qZS.js"),
|
|
5365
|
+
"../../../../assets/flags/ht.svg": () => import("./ht-DCMkLse8.js"),
|
|
5366
|
+
"../../../../assets/flags/hu.svg": () => import("./hu-JEoUAdpx.js"),
|
|
5367
|
+
"../../../../assets/flags/id.svg": () => import("./id-D1C_2HvG.js"),
|
|
5368
|
+
"../../../../assets/flags/ie.svg": () => import("./ie-d3bapQx-.js"),
|
|
5369
|
+
"../../../../assets/flags/il.svg": () => import("./il-CxVm0b2J.js"),
|
|
5370
|
+
"../../../../assets/flags/im.svg": () => import("./im-BN_uhDka.js"),
|
|
5371
|
+
"../../../../assets/flags/in.svg": () => import("./in-BGdmDROr.js"),
|
|
5372
|
+
"../../../../assets/flags/io.svg": () => import("./io-DYCJpAKf.js"),
|
|
5373
|
+
"../../../../assets/flags/iq.svg": () => import("./iq-BlsI9EWN.js"),
|
|
5374
|
+
"../../../../assets/flags/ir.svg": () => import("./ir-DdOj6IVV.js"),
|
|
5375
|
+
"../../../../assets/flags/is.svg": () => import("./is-DN52KJKG.js"),
|
|
5376
|
+
"../../../../assets/flags/it.svg": () => import("./it-D6Y8tXt3.js"),
|
|
5377
|
+
"../../../../assets/flags/je.svg": () => import("./je-DR82slj4.js"),
|
|
5378
|
+
"../../../../assets/flags/jm.svg": () => import("./jm-LqaENrl9.js"),
|
|
5379
|
+
"../../../../assets/flags/jo.svg": () => import("./jo-yLc64Rmj.js"),
|
|
5380
|
+
"../../../../assets/flags/jp.svg": () => import("./jp-Bb5uIw0H.js"),
|
|
5381
|
+
"../../../../assets/flags/ke.svg": () => import("./ke-BK1BjkeR.js"),
|
|
5382
|
+
"../../../../assets/flags/kg.svg": () => import("./kg-wlEuBvxO.js"),
|
|
5383
|
+
"../../../../assets/flags/kh.svg": () => import("./kh-DsvqlHLy.js"),
|
|
5384
|
+
"../../../../assets/flags/ki.svg": () => import("./ki-Byta-OFo.js"),
|
|
5385
|
+
"../../../../assets/flags/km.svg": () => import("./km-RNbmgGL_.js"),
|
|
5386
|
+
"../../../../assets/flags/kn.svg": () => import("./kn-CsHNi3Qt.js"),
|
|
5387
|
+
"../../../../assets/flags/kp.svg": () => import("./kp-DskyYlvx.js"),
|
|
5388
|
+
"../../../../assets/flags/kr.svg": () => import("./kr-DlF6eJVr.js"),
|
|
5389
|
+
"../../../../assets/flags/kw.svg": () => import("./kw-BiQAd6j1.js"),
|
|
5390
|
+
"../../../../assets/flags/ky.svg": () => import("./ky-BvPeTNcl.js"),
|
|
5391
|
+
"../../../../assets/flags/kz.svg": () => import("./kz-BQCcz0Va.js"),
|
|
5392
|
+
"../../../../assets/flags/la.svg": () => import("./la-COyntyzl.js"),
|
|
5393
|
+
"../../../../assets/flags/lb.svg": () => import("./lb-CzTzggHc.js"),
|
|
5394
|
+
"../../../../assets/flags/lc.svg": () => import("./lc-CRL2hV6d.js"),
|
|
5395
|
+
"../../../../assets/flags/li.svg": () => import("./li-BN-LWzEm.js"),
|
|
5396
|
+
"../../../../assets/flags/lk.svg": () => import("./lk-Dh6uTZcH.js"),
|
|
5397
|
+
"../../../../assets/flags/lr.svg": () => import("./lr-CoVvhAhL.js"),
|
|
5398
|
+
"../../../../assets/flags/ls.svg": () => import("./ls-BFhv4OAc.js"),
|
|
5399
|
+
"../../../../assets/flags/lt.svg": () => import("./lt-C9w-Id1S.js"),
|
|
5400
|
+
"../../../../assets/flags/lu.svg": () => import("./lu-Ccpxa0yN.js"),
|
|
5401
|
+
"../../../../assets/flags/lv.svg": () => import("./lv-Di5Y7vBC.js"),
|
|
5402
|
+
"../../../../assets/flags/ly.svg": () => import("./ly-BKgB-CvV.js"),
|
|
5403
|
+
"../../../../assets/flags/ma.svg": () => import("./ma-gJj5XCI-.js"),
|
|
5404
|
+
"../../../../assets/flags/mc.svg": () => import("./mc-BPN5JfTO.js"),
|
|
5405
|
+
"../../../../assets/flags/md.svg": () => import("./md-aCqyKOgl.js"),
|
|
5406
|
+
"../../../../assets/flags/me.svg": () => import("./me-C6-JkhFA.js"),
|
|
5407
|
+
"../../../../assets/flags/mf.svg": () => import("./mf-jpyKjgsU.js"),
|
|
5408
|
+
"../../../../assets/flags/mg.svg": () => import("./mg-TS1IwqtI.js"),
|
|
5409
|
+
"../../../../assets/flags/mh.svg": () => import("./mh-yHLgOFiA.js"),
|
|
5410
|
+
"../../../../assets/flags/mk.svg": () => import("./mk-CaRVDngZ.js"),
|
|
5411
|
+
"../../../../assets/flags/ml.svg": () => import("./ml-CUUHxg1j.js"),
|
|
5412
|
+
"../../../../assets/flags/mm.svg": () => import("./mm-CYK7VHSP.js"),
|
|
5413
|
+
"../../../../assets/flags/mn.svg": () => import("./mn-D2S-h2WN.js"),
|
|
5414
|
+
"../../../../assets/flags/mo.svg": () => import("./mo-D1RG60zF.js"),
|
|
5415
|
+
"../../../../assets/flags/mp.svg": () => import("./mp-DzztXSh1.js"),
|
|
5416
|
+
"../../../../assets/flags/mq.svg": () => import("./mq-Gsmz5_5j.js"),
|
|
5417
|
+
"../../../../assets/flags/mr.svg": () => import("./mr-C_s5K8p5.js"),
|
|
5418
|
+
"../../../../assets/flags/ms.svg": () => import("./ms-Cgov7p4h.js"),
|
|
5419
|
+
"../../../../assets/flags/mt.svg": () => import("./mt-B9vsNjSx.js"),
|
|
5420
|
+
"../../../../assets/flags/mu.svg": () => import("./mu-DeH79Hcd.js"),
|
|
5421
|
+
"../../../../assets/flags/mv.svg": () => import("./mv-CS9OGWK4.js"),
|
|
5422
|
+
"../../../../assets/flags/mw.svg": () => import("./mw-BvDfO_4m.js"),
|
|
5423
|
+
"../../../../assets/flags/mx.svg": () => import("./mx-ByC0ZmOn.js"),
|
|
5424
|
+
"../../../../assets/flags/my.svg": () => import("./my-BtbjhaSG.js"),
|
|
5425
|
+
"../../../../assets/flags/mz.svg": () => import("./mz-BuZty0IX.js"),
|
|
5426
|
+
"../../../../assets/flags/na.svg": () => import("./na-BMRoTc_5.js"),
|
|
5427
|
+
"../../../../assets/flags/nc.svg": () => import("./nc-TfmJ1_PR.js"),
|
|
5428
|
+
"../../../../assets/flags/ne.svg": () => import("./ne-e6jU7Ta4.js"),
|
|
5429
|
+
"../../../../assets/flags/nf.svg": () => import("./nf-DEApE1l7.js"),
|
|
5430
|
+
"../../../../assets/flags/ng.svg": () => import("./ng-C481SfES.js"),
|
|
5431
|
+
"../../../../assets/flags/ni.svg": () => import("./ni-DoG4DYn_.js"),
|
|
5432
|
+
"../../../../assets/flags/nl.svg": () => import("./nl-Cmbofdv4.js"),
|
|
5433
|
+
"../../../../assets/flags/no.svg": () => import("./no-CVO81I1l.js"),
|
|
5434
|
+
"../../../../assets/flags/np.svg": () => import("./np-zRmg82Re.js"),
|
|
5435
|
+
"../../../../assets/flags/nr.svg": () => import("./nr-B5qQQRjH.js"),
|
|
5436
|
+
"../../../../assets/flags/nu.svg": () => import("./nu-BI4Y-0EG.js"),
|
|
5437
|
+
"../../../../assets/flags/nz.svg": () => import("./nz-DF7xbKn7.js"),
|
|
5438
|
+
"../../../../assets/flags/om.svg": () => import("./om-BjOei_ke.js"),
|
|
5439
|
+
"../../../../assets/flags/pa.svg": () => import("./pa-ZEXTGOfm.js"),
|
|
5440
|
+
"../../../../assets/flags/pe.svg": () => import("./pe-HNEmB15y.js"),
|
|
5441
|
+
"../../../../assets/flags/pf.svg": () => import("./pf-DwCESo2k.js"),
|
|
5442
|
+
"../../../../assets/flags/pg.svg": () => import("./pg-BhOdaLDy.js"),
|
|
5443
|
+
"../../../../assets/flags/ph.svg": () => import("./ph-8ii4-Tq6.js"),
|
|
5444
|
+
"../../../../assets/flags/pk.svg": () => import("./pk-BafoDKz5.js"),
|
|
5445
|
+
"../../../../assets/flags/pl.svg": () => import("./pl-D9b2Q58T.js"),
|
|
5446
|
+
"../../../../assets/flags/pm.svg": () => import("./pm-C-WvmgM4.js"),
|
|
5447
|
+
"../../../../assets/flags/pn.svg": () => import("./pn-DjnHidFS.js"),
|
|
5448
|
+
"../../../../assets/flags/pr.svg": () => import("./pr-Dd50hA9F.js"),
|
|
5449
|
+
"../../../../assets/flags/ps.svg": () => import("./ps-CUGb27Pq.js"),
|
|
5450
|
+
"../../../../assets/flags/pt.svg": () => import("./pt-Qpxk-ulQ.js"),
|
|
5451
|
+
"../../../../assets/flags/pw.svg": () => import("./pw-DV4RtHVX.js"),
|
|
5452
|
+
"../../../../assets/flags/py.svg": () => import("./py-eg-mtZFC.js"),
|
|
5453
|
+
"../../../../assets/flags/qa.svg": () => import("./qa-CHyJi5tF.js"),
|
|
5454
|
+
"../../../../assets/flags/re.svg": () => import("./re-FpArmeeM.js"),
|
|
5455
|
+
"../../../../assets/flags/ro.svg": () => import("./ro-ANrnebzK.js"),
|
|
5456
|
+
"../../../../assets/flags/rs.svg": () => import("./rs-BGbyX7Qb.js"),
|
|
5457
|
+
"../../../../assets/flags/ru.svg": () => import("./ru-DtLSIa8v.js"),
|
|
5458
|
+
"../../../../assets/flags/rw.svg": () => import("./rw-B1kILqpv.js"),
|
|
5459
|
+
"../../../../assets/flags/sa.svg": () => import("./sa-CEcWBFfj.js"),
|
|
5460
|
+
"../../../../assets/flags/sb.svg": () => import("./sb-p9ah_4x5.js"),
|
|
5461
|
+
"../../../../assets/flags/sc.svg": () => import("./sc-2YHg9FTT.js"),
|
|
5462
|
+
"../../../../assets/flags/sd.svg": () => import("./sd-BKzyWEE3.js"),
|
|
5463
|
+
"../../../../assets/flags/se.svg": () => import("./se-Dq5LtCEp.js"),
|
|
5464
|
+
"../../../../assets/flags/sg.svg": () => import("./sg-C752_QVl.js"),
|
|
5465
|
+
"../../../../assets/flags/sh.svg": () => import("./sh-NFjaiAXX.js"),
|
|
5466
|
+
"../../../../assets/flags/si.svg": () => import("./si-DKzVjXeV.js"),
|
|
5467
|
+
"../../../../assets/flags/sj.svg": () => import("./sj-DF7Bf8Q9.js"),
|
|
5468
|
+
"../../../../assets/flags/sk.svg": () => import("./sk-CPmqq18S.js"),
|
|
5469
|
+
"../../../../assets/flags/sl.svg": () => import("./sl-Dx7oHjXI.js"),
|
|
5470
|
+
"../../../../assets/flags/sm.svg": () => import("./sm-B8bEOCx7.js"),
|
|
5471
|
+
"../../../../assets/flags/sn.svg": () => import("./sn-tcqzwUh4.js"),
|
|
5472
|
+
"../../../../assets/flags/so.svg": () => import("./so-BrD8jwW8.js"),
|
|
5473
|
+
"../../../../assets/flags/sr.svg": () => import("./sr-Dyy1x6sW.js"),
|
|
5474
|
+
"../../../../assets/flags/ss.svg": () => import("./ss-CpfhWUQL.js"),
|
|
5475
|
+
"../../../../assets/flags/st.svg": () => import("./st-DZJqDu2d.js"),
|
|
5476
|
+
"../../../../assets/flags/sv.svg": () => import("./sv-DtkfLQdf.js"),
|
|
5477
|
+
"../../../../assets/flags/sx.svg": () => import("./sx-C1dyGLW-.js"),
|
|
5478
|
+
"../../../../assets/flags/sy.svg": () => import("./sy-DhvBoSDL.js"),
|
|
5479
|
+
"../../../../assets/flags/sz.svg": () => import("./sz-Co03zPL0.js"),
|
|
5480
|
+
"../../../../assets/flags/tc.svg": () => import("./tc-DFY42rbc.js"),
|
|
5481
|
+
"../../../../assets/flags/td.svg": () => import("./td-DdnMoB4B.js"),
|
|
5482
|
+
"../../../../assets/flags/tf.svg": () => import("./tf-DtUoHxUD.js"),
|
|
5483
|
+
"../../../../assets/flags/tg.svg": () => import("./tg-B-szBZlQ.js"),
|
|
5484
|
+
"../../../../assets/flags/th.svg": () => import("./th-hl0xD9En.js"),
|
|
5485
|
+
"../../../../assets/flags/tj.svg": () => import("./tj-CaluHgV4.js"),
|
|
5486
|
+
"../../../../assets/flags/tk.svg": () => import("./tk-7WTKQA6M.js"),
|
|
5487
|
+
"../../../../assets/flags/tl.svg": () => import("./tl-DWxFj_mI.js"),
|
|
5488
|
+
"../../../../assets/flags/tm.svg": () => import("./tm-CXa44ZsQ.js"),
|
|
5489
|
+
"../../../../assets/flags/tn.svg": () => import("./tn-YGA63yhm.js"),
|
|
5490
|
+
"../../../../assets/flags/to.svg": () => import("./to-D1SPhDAS.js"),
|
|
5491
|
+
"../../../../assets/flags/tr.svg": () => import("./tr-BkORBw5s.js"),
|
|
5492
|
+
"../../../../assets/flags/tt.svg": () => import("./tt-CPiasxy9.js"),
|
|
5493
|
+
"../../../../assets/flags/tv.svg": () => import("./tv-1UKqGnYq.js"),
|
|
5494
|
+
"../../../../assets/flags/tw.svg": () => import("./tw-V_-9EdZA.js"),
|
|
5495
|
+
"../../../../assets/flags/tz.svg": () => import("./tz-vyNQ8siG.js"),
|
|
5496
|
+
"../../../../assets/flags/ua.svg": () => import("./ua-B36hNKIn.js"),
|
|
5497
|
+
"../../../../assets/flags/ug.svg": () => import("./ug-DzrOv_zJ.js"),
|
|
5498
|
+
"../../../../assets/flags/um.svg": () => import("./um-Xf4WHDSX.js"),
|
|
5499
|
+
"../../../../assets/flags/us.svg": () => import("./us-VkSkiw44.js"),
|
|
5500
|
+
"../../../../assets/flags/uy.svg": () => import("./uy-BBVhuI0m.js"),
|
|
5501
|
+
"../../../../assets/flags/uz.svg": () => import("./uz-D4g4y6tl.js"),
|
|
5502
|
+
"../../../../assets/flags/va.svg": () => import("./va-CuiFpTCr.js"),
|
|
5503
|
+
"../../../../assets/flags/vc.svg": () => import("./vc-BGrc4dhk.js"),
|
|
5504
|
+
"../../../../assets/flags/ve.svg": () => import("./ve-76O2C7rm.js"),
|
|
5505
|
+
"../../../../assets/flags/vg.svg": () => import("./vg-DMKx8jrg.js"),
|
|
5506
|
+
"../../../../assets/flags/vi.svg": () => import("./vi-D8PahWnh.js"),
|
|
5507
|
+
"../../../../assets/flags/vn.svg": () => import("./vn-BnPQgCR1.js"),
|
|
5508
|
+
"../../../../assets/flags/vu.svg": () => import("./vu-B3LLAmr5.js"),
|
|
5509
|
+
"../../../../assets/flags/wf.svg": () => import("./wf-qXr-xalT.js"),
|
|
5510
|
+
"../../../../assets/flags/ws.svg": () => import("./ws-pGsAcjqz.js"),
|
|
5511
|
+
"../../../../assets/flags/ye.svg": () => import("./ye-CII0qyBt.js"),
|
|
5512
|
+
"../../../../assets/flags/yt.svg": () => import("./yt-BoehcMko.js"),
|
|
5513
|
+
"../../../../assets/flags/za.svg": () => import("./za-CaK3IAZP.js"),
|
|
5514
|
+
"../../../../assets/flags/zm.svg": () => import("./zm-C8-RQ03K.js"),
|
|
5515
|
+
"../../../../assets/flags/zw.svg": () => import("./zw-JWvy-vVa.js"),
|
|
5516
|
+
"../../../../assets/flags/zz.svg": () => import("./zz-CCLSDExB.js")
|
|
5525
5517
|
});
|
|
5526
5518
|
const getLazyLoadedSvgComponent = (country2) => {
|
|
5527
5519
|
const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
|
|
@@ -5868,14 +5860,6 @@ const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, n
|
|
|
5868
5860
|
var _a, _b;
|
|
5869
5861
|
return objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && ((_a = prevProps.data) == null ? void 0 : _a.country) === ((_b = nextProps.data) == null ? void 0 : _b.country) && prevProps.shouldValidate === nextProps.shouldValidate;
|
|
5870
5862
|
});
|
|
5871
|
-
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
5872
|
-
ExperimentNames2["EnableCompanySearchFlow"] = "EnableCompanySearchFlow";
|
|
5873
|
-
ExperimentNames2["EnableNewEntryFlow"] = "EnableNewEntryFlow";
|
|
5874
|
-
ExperimentNames2["AllowOrganizationSettlorWithExemptionReason"] = "AllowOrganizationSettlorWithExemptionReason";
|
|
5875
|
-
ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
|
|
5876
|
-
ExperimentNames2["EnableIdentityFieldTypeSelector"] = "EnableIdentityFieldTypeSelector";
|
|
5877
|
-
return ExperimentNames2;
|
|
5878
|
-
})(ExperimentNames || {});
|
|
5879
5863
|
function StateContextSetter({
|
|
5880
5864
|
stateRef
|
|
5881
5865
|
}) {
|
|
@@ -6491,6 +6475,234 @@ Falling back to partially valid value "${fallback}"`);
|
|
|
6491
6475
|
})
|
|
6492
6476
|
});
|
|
6493
6477
|
};
|
|
6478
|
+
let idCounter = Date.now();
|
|
6479
|
+
const getUniqueId = (prefix = "id") => {
|
|
6480
|
+
idCounter += 1;
|
|
6481
|
+
return `${prefix}-${idCounter}`;
|
|
6482
|
+
};
|
|
6483
|
+
const InputRadio = ({
|
|
6484
|
+
className,
|
|
6485
|
+
...props
|
|
6486
|
+
}) => jsx("input", {
|
|
6487
|
+
...props,
|
|
6488
|
+
className: cx("adl-input-radio__input", className)
|
|
6489
|
+
});
|
|
6490
|
+
function RadioGroup({
|
|
6491
|
+
items = [],
|
|
6492
|
+
i18n,
|
|
6493
|
+
name,
|
|
6494
|
+
onChange = noop,
|
|
6495
|
+
value,
|
|
6496
|
+
isInvalid,
|
|
6497
|
+
uniqueId,
|
|
6498
|
+
className,
|
|
6499
|
+
disabled = false
|
|
6500
|
+
}) {
|
|
6501
|
+
const uniqueIdBase = uniqueId == null ? void 0 : uniqueId.replace(/[0-9]/g, "").substring(0, uniqueId.lastIndexOf("-"));
|
|
6502
|
+
return jsx("div", {
|
|
6503
|
+
className: "adyen-kyc-radio-group",
|
|
6504
|
+
children: items.map((item) => {
|
|
6505
|
+
const uniqueId2 = getUniqueId(uniqueIdBase);
|
|
6506
|
+
return jsxs("label", {
|
|
6507
|
+
htmlFor: uniqueId2,
|
|
6508
|
+
className: "adl-input-radio",
|
|
6509
|
+
children: [jsx(InputRadio, {
|
|
6510
|
+
id: uniqueId2,
|
|
6511
|
+
type: "radio",
|
|
6512
|
+
checked: value === item.id,
|
|
6513
|
+
"aria-checked": value === item.id,
|
|
6514
|
+
name,
|
|
6515
|
+
onChange,
|
|
6516
|
+
onClick: onChange,
|
|
6517
|
+
value: item.id,
|
|
6518
|
+
disabled
|
|
6519
|
+
}), jsx("span", {
|
|
6520
|
+
className: cx(["adl-input-radio__label", "adyen-kyc-label__text", className, {
|
|
6521
|
+
"adyen-kyc-radio-group__label--invalid": isInvalid
|
|
6522
|
+
}]),
|
|
6523
|
+
children: i18n.get(item.name)
|
|
6524
|
+
})]
|
|
6525
|
+
}, item.id);
|
|
6526
|
+
})
|
|
6527
|
+
});
|
|
6528
|
+
}
|
|
6529
|
+
const companyRegistrationNumberOptions = {
|
|
6530
|
+
[CountryCodes.Poland]: [{
|
|
6531
|
+
id: "regon",
|
|
6532
|
+
name: "regon"
|
|
6533
|
+
}, {
|
|
6534
|
+
id: "krsNumber",
|
|
6535
|
+
name: "krsNumber"
|
|
6536
|
+
}],
|
|
6537
|
+
[CountryCodes.Italy]: [{
|
|
6538
|
+
id: "partitaIVA",
|
|
6539
|
+
name: "partitaIVA"
|
|
6540
|
+
}, {
|
|
6541
|
+
id: "CCIAA",
|
|
6542
|
+
name: "CCIAA"
|
|
6543
|
+
}],
|
|
6544
|
+
[CountryCodes.Austria]: [{
|
|
6545
|
+
id: "firmenbuchnummer",
|
|
6546
|
+
name: "firmenbuchnummer"
|
|
6547
|
+
}, {
|
|
6548
|
+
id: "ZVR",
|
|
6549
|
+
name: "zentralesVereinsregisterId",
|
|
6550
|
+
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
6551
|
+
}],
|
|
6552
|
+
[CountryCodes.France]: [{
|
|
6553
|
+
id: "SIRET",
|
|
6554
|
+
name: "siret"
|
|
6555
|
+
}, {
|
|
6556
|
+
id: "RNA",
|
|
6557
|
+
name: "rnaNumber",
|
|
6558
|
+
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
6559
|
+
}],
|
|
6560
|
+
[CountryCodes.NewZealand]: [{
|
|
6561
|
+
id: "NZBN",
|
|
6562
|
+
name: "NZBN"
|
|
6563
|
+
}, {
|
|
6564
|
+
id: "companyNumberNZ",
|
|
6565
|
+
name: "companyNumberNZ",
|
|
6566
|
+
applicableOnlyFor: [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PUBLIC_COMPANY, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY]
|
|
6567
|
+
}]
|
|
6568
|
+
};
|
|
6569
|
+
const getCompanyRegistrationNumberOptions = (country2, companyType2) => {
|
|
6570
|
+
const optionsForCountry = companyRegistrationNumberOptions[country2];
|
|
6571
|
+
if (!companyType2 || !optionsForCountry)
|
|
6572
|
+
return optionsForCountry;
|
|
6573
|
+
return optionsForCountry.filter((option) => {
|
|
6574
|
+
var _a;
|
|
6575
|
+
return ((_a = option.applicableOnlyFor) == null ? void 0 : _a.includes(companyType2)) ?? true;
|
|
6576
|
+
});
|
|
6577
|
+
};
|
|
6578
|
+
const individualIdNumberOptions = {
|
|
6579
|
+
[CountryCodes.Spain]: [{
|
|
6580
|
+
id: "dni",
|
|
6581
|
+
name: "dni"
|
|
6582
|
+
}, {
|
|
6583
|
+
id: "nie",
|
|
6584
|
+
name: "nie"
|
|
6585
|
+
}]
|
|
6586
|
+
};
|
|
6587
|
+
const additionallIdNumberOptions = {
|
|
6588
|
+
[CountryCodes.NewZealand]: [{
|
|
6589
|
+
id: "driversLicense",
|
|
6590
|
+
name: "driversLicense"
|
|
6591
|
+
}, {
|
|
6592
|
+
id: "passport",
|
|
6593
|
+
name: "passportNumber"
|
|
6594
|
+
}],
|
|
6595
|
+
[CountryCodes.HongKong]: [{
|
|
6596
|
+
id: "proofOfIdentityCard",
|
|
6597
|
+
name: "stateIssuedProofOfIdentityCard"
|
|
6598
|
+
}, {
|
|
6599
|
+
id: "driversLicense",
|
|
6600
|
+
name: "driversLicense"
|
|
6601
|
+
}, {
|
|
6602
|
+
id: "passport",
|
|
6603
|
+
name: "passportNumber"
|
|
6604
|
+
}],
|
|
6605
|
+
[CountryCodes.Australia]: [{
|
|
6606
|
+
id: "driversLicense",
|
|
6607
|
+
name: "driversLicense"
|
|
6608
|
+
}, {
|
|
6609
|
+
id: "passport",
|
|
6610
|
+
name: "passportNumber"
|
|
6611
|
+
}]
|
|
6612
|
+
};
|
|
6613
|
+
const taxIdNumberOptions = {
|
|
6614
|
+
[CountryCodes.Denmark]: [{
|
|
6615
|
+
id: "momsregistreringsnummerCVR",
|
|
6616
|
+
name: "momsregistreringsnummerCVR"
|
|
6617
|
+
}, {
|
|
6618
|
+
id: "stamregister",
|
|
6619
|
+
name: "stamregister"
|
|
6620
|
+
}],
|
|
6621
|
+
[CountryCodes.France]: [{
|
|
6622
|
+
id: "numeroDIdentificationALATaxe",
|
|
6623
|
+
name: "numeroDIdentificationALATaxe"
|
|
6624
|
+
}, {
|
|
6625
|
+
id: "NumeroDeTVA",
|
|
6626
|
+
name: "NumeroDeTVA"
|
|
6627
|
+
}],
|
|
6628
|
+
[CountryCodes.Singapore]: [{
|
|
6629
|
+
id: "gst",
|
|
6630
|
+
name: "gst"
|
|
6631
|
+
}, {
|
|
6632
|
+
id: "uen",
|
|
6633
|
+
name: "uen"
|
|
6634
|
+
}],
|
|
6635
|
+
[CountryCodes.UnitedStates]: [{
|
|
6636
|
+
id: "ein",
|
|
6637
|
+
name: "employerIdentificationNumber"
|
|
6638
|
+
}, {
|
|
6639
|
+
id: "ssn",
|
|
6640
|
+
name: "socialSecurityNumber",
|
|
6641
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6642
|
+
}, {
|
|
6643
|
+
id: "ssnLastFour",
|
|
6644
|
+
name: "last4DigitsOfSocialSecurityNumber",
|
|
6645
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6646
|
+
}]
|
|
6647
|
+
};
|
|
6648
|
+
const getTaxIdNumberOptions = (country2, companyType2) => {
|
|
6649
|
+
const optionsForCountry = taxIdNumberOptions[country2];
|
|
6650
|
+
if (!companyType2 || !optionsForCountry)
|
|
6651
|
+
return optionsForCountry;
|
|
6652
|
+
return optionsForCountry.filter((option) => {
|
|
6653
|
+
var _a;
|
|
6654
|
+
return ((_a = option.applicableOnlyFor) == null ? void 0 : _a.includes(companyType2)) ?? true;
|
|
6655
|
+
});
|
|
6656
|
+
};
|
|
6657
|
+
function CompanyRegistrationNumberTypeSelector({
|
|
6658
|
+
country: country2,
|
|
6659
|
+
companyType: companyType2,
|
|
6660
|
+
selected,
|
|
6661
|
+
setSelected,
|
|
6662
|
+
exemptedOption
|
|
6663
|
+
}) {
|
|
6664
|
+
const {
|
|
6665
|
+
i18n
|
|
6666
|
+
} = useI18nContext();
|
|
6667
|
+
const handleSelect = useCallback((selectedStr) => {
|
|
6668
|
+
const newSelected = selectedStr;
|
|
6669
|
+
if (newSelected === "exempted") {
|
|
6670
|
+
if (exemptedOption) {
|
|
6671
|
+
setSelected(newSelected);
|
|
6672
|
+
}
|
|
6673
|
+
return;
|
|
6674
|
+
}
|
|
6675
|
+
setSelected(newSelected);
|
|
6676
|
+
}, [exemptedOption, setSelected]);
|
|
6677
|
+
const options = useMemo(() => {
|
|
6678
|
+
const availableOptions = getCompanyRegistrationNumberOptions(country2, companyType2) ?? [];
|
|
6679
|
+
if (availableOptions.length === 0 || !exemptedOption)
|
|
6680
|
+
return availableOptions;
|
|
6681
|
+
return [...availableOptions, {
|
|
6682
|
+
id: "exempted",
|
|
6683
|
+
name: exemptedOption
|
|
6684
|
+
}];
|
|
6685
|
+
}, [companyType2, country2, exemptedOption]);
|
|
6686
|
+
useEffect(() => {
|
|
6687
|
+
if (!selected && options.length > 0) {
|
|
6688
|
+
setSelected(options[0].id);
|
|
6689
|
+
}
|
|
6690
|
+
}, [options, selected, setSelected]);
|
|
6691
|
+
if (options.length <= 1)
|
|
6692
|
+
return null;
|
|
6693
|
+
return jsx(Field, {
|
|
6694
|
+
name: "companyRegistrationNumberType",
|
|
6695
|
+
label: i18n.get("whichTypeOfRegistrationNumberDoYouHave"),
|
|
6696
|
+
children: (childProps) => jsx(RadioGroup, {
|
|
6697
|
+
...childProps,
|
|
6698
|
+
name: "companyRegistrationNumberType",
|
|
6699
|
+
items: options,
|
|
6700
|
+
value: selected,
|
|
6701
|
+
i18n,
|
|
6702
|
+
onChange: (e) => handleSelect(e.target.value)
|
|
6703
|
+
})
|
|
6704
|
+
});
|
|
6705
|
+
}
|
|
6494
6706
|
const makeArrayOfRepeatedObjects = (length, obj) => {
|
|
6495
6707
|
const array = [];
|
|
6496
6708
|
for (let i = 0; i < length; i += 1) {
|
|
@@ -7699,9 +7911,27 @@ const defaultFieldConfig$8 = {
|
|
|
7699
7911
|
},
|
|
7700
7912
|
[CountryCodes.UnitedStates]: {}
|
|
7701
7913
|
};
|
|
7914
|
+
const inferCompanyRegistrationNumberType = (registrationNumber2, country2, companyType2) => {
|
|
7915
|
+
const optionsForCountry = companyRegistrationNumberOptions[country2];
|
|
7916
|
+
const metadataFn = defaultFieldConfig$8[country2];
|
|
7917
|
+
if (!optionsForCountry || !metadataFn || typeof metadataFn !== "function")
|
|
7918
|
+
return void 0;
|
|
7919
|
+
for (const option of optionsForCountry) {
|
|
7920
|
+
const fieldMetadata = metadataFn({
|
|
7921
|
+
companyType: companyType2,
|
|
7922
|
+
registrationNumberType: option.id
|
|
7923
|
+
});
|
|
7924
|
+
if (!fieldMetadata.validators)
|
|
7925
|
+
continue;
|
|
7926
|
+
const validators = Array.isArray(fieldMetadata.validators) ? fieldMetadata.validators : [fieldMetadata.validators];
|
|
7927
|
+
if (validators.every((validator) => validator.validate(registrationNumber2))) {
|
|
7928
|
+
return option.id;
|
|
7929
|
+
}
|
|
7930
|
+
}
|
|
7931
|
+
};
|
|
7702
7932
|
const businessRegistrationNumberFields = ["registrationNumber", "exemptedFromRegistrationNumber"];
|
|
7703
7933
|
function BusinessRegistrationNumber(props) {
|
|
7704
|
-
var _a;
|
|
7934
|
+
var _a, _b, _c, _d;
|
|
7705
7935
|
const fieldConfig = props.fieldConfig ?? defaultFieldConfig$8;
|
|
7706
7936
|
const {
|
|
7707
7937
|
i18n
|
|
@@ -7712,9 +7942,11 @@ function BusinessRegistrationNumber(props) {
|
|
|
7712
7942
|
const schema = props.requiredFields || ["registrationNumber"];
|
|
7713
7943
|
const {
|
|
7714
7944
|
companyType: companyType2,
|
|
7715
|
-
country: country2
|
|
7716
|
-
registrationNumberType
|
|
7945
|
+
country: country2
|
|
7717
7946
|
} = props;
|
|
7947
|
+
const registrationNumberOptions = useMemo(() => getCompanyRegistrationNumberOptions(country2, companyType2), [country2, companyType2]);
|
|
7948
|
+
const defaultRegistrationNumberType = ((_a = props.data) == null ? void 0 : _a.registrationNumber) ? inferCompanyRegistrationNumberType((_b = props.data) == null ? void 0 : _b.registrationNumber, country2, companyType2) : registrationNumberOptions == null ? void 0 : registrationNumberOptions[0].id;
|
|
7949
|
+
const [registrationNumberType, setRegistrationNumberType] = useState(defaultRegistrationNumberType);
|
|
7718
7950
|
const metadata = resolveFieldMetadata(fieldConfig[country2], {
|
|
7719
7951
|
companyType: companyType2,
|
|
7720
7952
|
registrationNumberType
|
|
@@ -7735,14 +7967,14 @@ function BusinessRegistrationNumber(props) {
|
|
|
7735
7967
|
rules: mergedProps.validators,
|
|
7736
7968
|
defaultData: {
|
|
7737
7969
|
...props.data,
|
|
7738
|
-
exemptedFromRegistrationNumber: !!((
|
|
7970
|
+
exemptedFromRegistrationNumber: !!((_c = props.data) == null ? void 0 : _c.exemptedFromRegistrationNumber)
|
|
7739
7971
|
},
|
|
7740
7972
|
// exemptedFromRegistrationNumber should be a boolean
|
|
7741
7973
|
fieldProblems: props == null ? void 0 : props.fieldValidationErrors
|
|
7742
7974
|
});
|
|
7743
7975
|
useEffect(() => {
|
|
7744
|
-
var _a2,
|
|
7745
|
-
(
|
|
7976
|
+
var _a2, _b2;
|
|
7977
|
+
(_b2 = (_a2 = stateRef == null ? void 0 : stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
7746
7978
|
type: "addToState",
|
|
7747
7979
|
value: {
|
|
7748
7980
|
data,
|
|
@@ -7759,10 +7991,32 @@ function BusinessRegistrationNumber(props) {
|
|
|
7759
7991
|
}
|
|
7760
7992
|
}, [props.country, registrationNumberType]);
|
|
7761
7993
|
const formUtils = formUtilities(mergedProps, i18n);
|
|
7994
|
+
const exemptionIsPossible = ((_d = mergedProps.requiredFields) == null ? void 0 : _d.includes("exemptedFromRegistrationNumber")) ?? false;
|
|
7995
|
+
const showExemptedOption = exemptionIsPossible && !!registrationNumberOptions && registrationNumberOptions.length > 1;
|
|
7996
|
+
const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
|
|
7997
|
+
if (regNumberType === "exempted") {
|
|
7998
|
+
if (!exemptionIsPossible) {
|
|
7999
|
+
throw Error(`${country2} does not allow tax exemptions`);
|
|
8000
|
+
}
|
|
8001
|
+
handleChangeFor("exemptedFromRegistrationNumber")(true);
|
|
8002
|
+
setRegistrationNumberType(void 0);
|
|
8003
|
+
return;
|
|
8004
|
+
}
|
|
8005
|
+
if (exemptionIsPossible && data.exemptedFromRegistrationNumber === true) {
|
|
8006
|
+
handleChangeFor("exemptedFromRegistrationNumber")(false);
|
|
8007
|
+
}
|
|
8008
|
+
setRegistrationNumberType(regNumberType);
|
|
8009
|
+
};
|
|
7762
8010
|
return jsxs("div", {
|
|
7763
8011
|
className: "adyen-kyc-field__business-registration adl-u-margin-bottom-16",
|
|
7764
8012
|
children: [jsx(StateContextSetter, {
|
|
7765
8013
|
stateRef
|
|
8014
|
+
}), jsx(CompanyRegistrationNumberTypeSelector, {
|
|
8015
|
+
companyType: companyType2,
|
|
8016
|
+
country: country2,
|
|
8017
|
+
setSelected: handleCompanyRegistrationNumberTypeChange,
|
|
8018
|
+
selected: data.exemptedFromRegistrationNumber ? "exempted" : registrationNumberType,
|
|
8019
|
+
exemptedOption: showExemptedOption ? formUtils.getLabel("exemptedFromRegistrationNumber", "iDontHaveARegistrationNumber") : false
|
|
7766
8020
|
}), jsx(MaskedInputText, {
|
|
7767
8021
|
name: "registrationNumber",
|
|
7768
8022
|
label: formUtils.getLabel("registrationNumber", "companyRegistrationNumber"),
|
|
@@ -7783,7 +8037,7 @@ function BusinessRegistrationNumber(props) {
|
|
|
7783
8037
|
value: data.registrationNumber ?? "",
|
|
7784
8038
|
onInput: handleChangeFor("registrationNumber", "input"),
|
|
7785
8039
|
...formUtils.getMask("registrationNumber")
|
|
7786
|
-
}), formUtils.isRequiredField("exemptedFromRegistrationNumber") && jsx(Checkbox, {
|
|
8040
|
+
}), formUtils.isRequiredField("exemptedFromRegistrationNumber") && !showExemptedOption && jsx(Checkbox, {
|
|
7787
8041
|
name: "exemptedFromRegistrationNumber",
|
|
7788
8042
|
label: formUtils.getLabel("exemptedFromRegistrationNumber"),
|
|
7789
8043
|
value: "exemptedFromRegistrationNumber",
|
|
@@ -7906,11 +8160,6 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
|
7906
8160
|
Placement2[Placement2["Right"] = 1] = "Right";
|
|
7907
8161
|
return Placement2;
|
|
7908
8162
|
})(Placement || {});
|
|
7909
|
-
let idCounter = Date.now();
|
|
7910
|
-
const getUniqueId = (prefix = "id") => {
|
|
7911
|
-
idCounter += 1;
|
|
7912
|
-
return `${prefix}-${idCounter}`;
|
|
7913
|
-
};
|
|
7914
8163
|
function CollapsibleContainer({
|
|
7915
8164
|
children,
|
|
7916
8165
|
collapsed = false,
|
|
@@ -8104,216 +8353,99 @@ function InputDate(props) {
|
|
|
8104
8353
|
maxLength: 10
|
|
8105
8354
|
});
|
|
8106
8355
|
}
|
|
8107
|
-
const
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
onChange = noop,
|
|
8119
|
-
value,
|
|
8120
|
-
isInvalid,
|
|
8121
|
-
uniqueId,
|
|
8122
|
-
className,
|
|
8123
|
-
disabled = false
|
|
8356
|
+
const STOCK_EXCHANGE_MIC_FIELD = ["stockExchangeMIC"];
|
|
8357
|
+
function StockExchangeMICField({
|
|
8358
|
+
data,
|
|
8359
|
+
valid,
|
|
8360
|
+
errors,
|
|
8361
|
+
labels: labels2,
|
|
8362
|
+
placeholders,
|
|
8363
|
+
readonly,
|
|
8364
|
+
mask,
|
|
8365
|
+
guidanceText,
|
|
8366
|
+
handleChangeFor
|
|
8124
8367
|
}) {
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
className: cx(["adl-input-radio__label", "adyen-kyc-label__text", className, {
|
|
8145
|
-
"adyen-kyc-radio-group__label--invalid": isInvalid
|
|
8146
|
-
}]),
|
|
8147
|
-
children: i18n.get(item.name)
|
|
8148
|
-
})]
|
|
8149
|
-
}, item.id);
|
|
8150
|
-
})
|
|
8368
|
+
return jsx(MaskedInputText, {
|
|
8369
|
+
name: "stockExchangeMIC",
|
|
8370
|
+
label: labels2.stockExchangeMIC ?? "",
|
|
8371
|
+
formatGuidance: guidanceText == null ? void 0 : guidanceText.stockExchangeMIC,
|
|
8372
|
+
placeholder: placeholders == null ? void 0 : placeholders.stockExchangeMIC,
|
|
8373
|
+
...mask,
|
|
8374
|
+
classNameModifiers: {
|
|
8375
|
+
field: ["stockExchangeMIC"],
|
|
8376
|
+
input: ["stockExchangeMIC"]
|
|
8377
|
+
},
|
|
8378
|
+
errorMessage: errors.stockExchangeMIC,
|
|
8379
|
+
isValid: valid.stockExchangeMIC ?? false,
|
|
8380
|
+
value: data.stockExchangeMIC ?? "",
|
|
8381
|
+
readonly,
|
|
8382
|
+
onInput: handleChangeFor("stockExchangeMIC", "input"),
|
|
8383
|
+
onBlur: handleChangeFor("stockExchangeMIC", "blur"),
|
|
8384
|
+
"aria-required": true,
|
|
8385
|
+
"aria-label": labels2.stockExchangeMIC,
|
|
8386
|
+
"aria-invalid": !valid.stockExchangeMIC
|
|
8151
8387
|
});
|
|
8152
8388
|
}
|
|
8153
|
-
const
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
}],
|
|
8168
|
-
[CountryCodes.Austria]: [{
|
|
8169
|
-
id: "firmenbuchnummer",
|
|
8170
|
-
name: "firmenbuchnummer"
|
|
8171
|
-
}, {
|
|
8172
|
-
id: "ZVR",
|
|
8173
|
-
name: "zentralesVereinsregisterId",
|
|
8174
|
-
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
8175
|
-
}],
|
|
8176
|
-
[CountryCodes.France]: [{
|
|
8177
|
-
id: "SIRET",
|
|
8178
|
-
name: "siret"
|
|
8179
|
-
}, {
|
|
8180
|
-
id: "RNA",
|
|
8181
|
-
name: "rnaNumber",
|
|
8182
|
-
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
8183
|
-
}],
|
|
8184
|
-
[CountryCodes.NewZealand]: [{
|
|
8185
|
-
id: "NZBN",
|
|
8186
|
-
name: "NZBN"
|
|
8187
|
-
}, {
|
|
8188
|
-
id: "companyNumberNZ",
|
|
8189
|
-
name: "companyNumberNZ",
|
|
8190
|
-
applicableOnlyFor: [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PUBLIC_COMPANY, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY]
|
|
8191
|
-
}]
|
|
8192
|
-
};
|
|
8193
|
-
const individualIdNumberOptions = {
|
|
8194
|
-
[CountryCodes.Spain]: [{
|
|
8195
|
-
id: "dni",
|
|
8196
|
-
name: "dni"
|
|
8197
|
-
}, {
|
|
8198
|
-
id: "nie",
|
|
8199
|
-
name: "nie"
|
|
8200
|
-
}]
|
|
8201
|
-
};
|
|
8202
|
-
const additionallIdNumberOptions = {
|
|
8203
|
-
[CountryCodes.NewZealand]: [{
|
|
8204
|
-
id: "driversLicense",
|
|
8205
|
-
name: "driversLicense"
|
|
8206
|
-
}, {
|
|
8207
|
-
id: "passport",
|
|
8208
|
-
name: "passportNumber"
|
|
8209
|
-
}],
|
|
8210
|
-
[CountryCodes.HongKong]: [{
|
|
8211
|
-
id: "proofOfIdentityCard",
|
|
8212
|
-
name: "stateIssuedProofOfIdentityCard"
|
|
8213
|
-
}, {
|
|
8214
|
-
id: "driversLicense",
|
|
8215
|
-
name: "driversLicense"
|
|
8216
|
-
}, {
|
|
8217
|
-
id: "passport",
|
|
8218
|
-
name: "passportNumber"
|
|
8219
|
-
}],
|
|
8220
|
-
[CountryCodes.Australia]: [{
|
|
8221
|
-
id: "driversLicense",
|
|
8222
|
-
name: "driversLicense"
|
|
8223
|
-
}, {
|
|
8224
|
-
id: "passport",
|
|
8225
|
-
name: "passportNumber"
|
|
8226
|
-
}]
|
|
8227
|
-
};
|
|
8228
|
-
const taxIdNumberOptions = {
|
|
8229
|
-
[CountryCodes.Denmark]: [{
|
|
8230
|
-
id: "momsregistreringsnummerCVR",
|
|
8231
|
-
name: "momsregistreringsnummerCVR"
|
|
8232
|
-
}, {
|
|
8233
|
-
id: "stamregister",
|
|
8234
|
-
name: "stamregister"
|
|
8235
|
-
}],
|
|
8236
|
-
[CountryCodes.France]: [{
|
|
8237
|
-
id: "numeroDIdentificationALATaxe",
|
|
8238
|
-
name: "numeroDIdentificationALATaxe"
|
|
8239
|
-
}, {
|
|
8240
|
-
id: "NumeroDeTVA",
|
|
8241
|
-
name: "NumeroDeTVA"
|
|
8242
|
-
}],
|
|
8243
|
-
[CountryCodes.Singapore]: [{
|
|
8244
|
-
id: "gst",
|
|
8245
|
-
name: "gst"
|
|
8246
|
-
}, {
|
|
8247
|
-
id: "uen",
|
|
8248
|
-
name: "uen"
|
|
8249
|
-
}],
|
|
8250
|
-
[CountryCodes.UnitedStates]: [{
|
|
8251
|
-
id: "ein",
|
|
8252
|
-
name: "employerIdentificationNumber"
|
|
8253
|
-
}, {
|
|
8254
|
-
id: "ssn",
|
|
8255
|
-
name: "socialSecurityNumber",
|
|
8256
|
-
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
8257
|
-
}, {
|
|
8258
|
-
id: "ssnLastFour",
|
|
8259
|
-
name: "last4DigitsOfSocialSecurityNumber",
|
|
8260
|
-
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
8261
|
-
}]
|
|
8389
|
+
const stockExchangeMICFieldMetadata = {
|
|
8390
|
+
label: "marketIdentifierCodeMIC",
|
|
8391
|
+
validators: validatePatternOnBlur(/^[a-zA-Z0-9]{4}$/),
|
|
8392
|
+
mask: {
|
|
8393
|
+
mask: makeMask(...alphanumericInputs(4)),
|
|
8394
|
+
transformOnType: uppercase
|
|
8395
|
+
},
|
|
8396
|
+
guidanceText: {
|
|
8397
|
+
key: "enterNCharactersForExample",
|
|
8398
|
+
values: {
|
|
8399
|
+
numChars: "4",
|
|
8400
|
+
example: "XNAS"
|
|
8401
|
+
}
|
|
8402
|
+
}
|
|
8262
8403
|
};
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8404
|
+
const STOCK_ISIN_FIELD = ["stockISIN"];
|
|
8405
|
+
function StockISINField({
|
|
8406
|
+
data,
|
|
8407
|
+
valid,
|
|
8408
|
+
errors,
|
|
8409
|
+
labels: labels2,
|
|
8410
|
+
placeholders,
|
|
8411
|
+
readonly,
|
|
8412
|
+
mask,
|
|
8413
|
+
guidanceText,
|
|
8414
|
+
handleChangeFor
|
|
8268
8415
|
}) {
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
label: i18n.get("whichTypeOfRegistrationNumberDoYouHave"),
|
|
8289
|
-
children: (childProps) => jsx(RadioGroup, {
|
|
8290
|
-
...childProps,
|
|
8291
|
-
name: "companyRegistrationNumberType",
|
|
8292
|
-
items: options,
|
|
8293
|
-
value: selected,
|
|
8294
|
-
i18n,
|
|
8295
|
-
onChange: (e) => {
|
|
8296
|
-
var _a;
|
|
8297
|
-
return setSelected == null ? void 0 : setSelected((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value);
|
|
8298
|
-
}
|
|
8299
|
-
})
|
|
8416
|
+
return jsx(MaskedInputText, {
|
|
8417
|
+
name: "stockISIN",
|
|
8418
|
+
label: labels2.stockISIN ?? "",
|
|
8419
|
+
formatGuidance: guidanceText == null ? void 0 : guidanceText.stockISIN,
|
|
8420
|
+
placeholder: placeholders == null ? void 0 : placeholders.stockISIN,
|
|
8421
|
+
...mask,
|
|
8422
|
+
classNameModifiers: {
|
|
8423
|
+
field: ["stockISIN"],
|
|
8424
|
+
input: ["stockISIN"]
|
|
8425
|
+
},
|
|
8426
|
+
errorMessage: errors.stockISIN,
|
|
8427
|
+
isValid: valid.stockISIN ?? false,
|
|
8428
|
+
value: data.stockISIN ?? "",
|
|
8429
|
+
readonly,
|
|
8430
|
+
onInput: handleChangeFor("stockISIN", "input"),
|
|
8431
|
+
onBlur: handleChangeFor("stockISIN", "blur"),
|
|
8432
|
+
"aria-required": true,
|
|
8433
|
+
"aria-label": labels2.stockISIN,
|
|
8434
|
+
"aria-invalid": !valid.stockISIN
|
|
8300
8435
|
});
|
|
8301
8436
|
}
|
|
8302
|
-
const
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
const validators = Array.isArray(fieldMetadata.validators) ? fieldMetadata.validators : [fieldMetadata.validators];
|
|
8315
|
-
if (validators.every((validator) => validator.validate(registrationNumber2))) {
|
|
8316
|
-
return option.id;
|
|
8437
|
+
const stockISINFieldMetadata = {
|
|
8438
|
+
label: "isin",
|
|
8439
|
+
validators: validatePatternOnBlur(/^[a-zA-Z0-9]{12}$/),
|
|
8440
|
+
mask: {
|
|
8441
|
+
mask: makeMask(...alphaInputs(2), ...alphanumericInputs(9), ...numericInputs(1)),
|
|
8442
|
+
transformOnType: uppercase
|
|
8443
|
+
},
|
|
8444
|
+
guidanceText: {
|
|
8445
|
+
key: "enterNCharactersWithAMixForExample",
|
|
8446
|
+
values: {
|
|
8447
|
+
numChars: "12",
|
|
8448
|
+
example: "US00379P1010"
|
|
8317
8449
|
}
|
|
8318
8450
|
}
|
|
8319
8451
|
};
|
|
@@ -9099,18 +9231,38 @@ const inferTaxIdNumberType = (taxId2, country2) => {
|
|
|
9099
9231
|
};
|
|
9100
9232
|
function TaxIdNumberTypeSelector({
|
|
9101
9233
|
country: country2,
|
|
9234
|
+
companyType: companyType2,
|
|
9102
9235
|
selected,
|
|
9103
|
-
setSelected
|
|
9236
|
+
setSelected,
|
|
9237
|
+
exemptedOption
|
|
9104
9238
|
}) {
|
|
9105
9239
|
const {
|
|
9106
9240
|
i18n
|
|
9107
9241
|
} = useI18nContext();
|
|
9108
|
-
const
|
|
9242
|
+
const handleSelect = useCallback((selectedStr) => {
|
|
9243
|
+
const newSelected = selectedStr;
|
|
9244
|
+
if (newSelected === "exempted") {
|
|
9245
|
+
if (exemptedOption) {
|
|
9246
|
+
setSelected(newSelected);
|
|
9247
|
+
}
|
|
9248
|
+
return;
|
|
9249
|
+
}
|
|
9250
|
+
setSelected(newSelected);
|
|
9251
|
+
}, [exemptedOption, setSelected]);
|
|
9252
|
+
const options = useMemo(() => {
|
|
9253
|
+
const availableOptions = getTaxIdNumberOptions(country2, companyType2) ?? [];
|
|
9254
|
+
if (availableOptions.length === 0 || !exemptedOption)
|
|
9255
|
+
return availableOptions;
|
|
9256
|
+
return [...availableOptions, {
|
|
9257
|
+
id: "exempted",
|
|
9258
|
+
name: exemptedOption
|
|
9259
|
+
}];
|
|
9260
|
+
}, [country2, companyType2, exemptedOption]);
|
|
9109
9261
|
useEffect(() => {
|
|
9110
9262
|
if (!selected && options.length > 0) {
|
|
9111
|
-
|
|
9263
|
+
handleSelect(options[0].id);
|
|
9112
9264
|
}
|
|
9113
|
-
}, [options, selected,
|
|
9265
|
+
}, [options, selected, handleSelect]);
|
|
9114
9266
|
if (options.length <= 1)
|
|
9115
9267
|
return null;
|
|
9116
9268
|
return jsx(Field, {
|
|
@@ -9122,23 +9274,24 @@ function TaxIdNumberTypeSelector({
|
|
|
9122
9274
|
items: options,
|
|
9123
9275
|
value: selected,
|
|
9124
9276
|
i18n,
|
|
9125
|
-
onChange: (e) =>
|
|
9126
|
-
var _a;
|
|
9127
|
-
return setSelected == null ? void 0 : setSelected((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value);
|
|
9128
|
-
}
|
|
9277
|
+
onChange: (e) => handleSelect(e.target.value)
|
|
9129
9278
|
})
|
|
9130
9279
|
});
|
|
9131
9280
|
}
|
|
9132
9281
|
const taxIdFields = ["taxId", "exemptedFromTax", "isUen"];
|
|
9133
9282
|
function TaxId(props) {
|
|
9283
|
+
var _a, _b, _c;
|
|
9134
9284
|
const {
|
|
9135
9285
|
data: propData,
|
|
9136
9286
|
country: country2,
|
|
9287
|
+
companyType: companyType2,
|
|
9137
9288
|
fieldValidationErrors,
|
|
9138
9289
|
dataStoreId,
|
|
9139
|
-
taxIdNumberType,
|
|
9140
9290
|
fieldConfig = defaultFieldConfig$7
|
|
9141
9291
|
} = props;
|
|
9292
|
+
const existingTaxId = propData == null ? void 0 : propData.taxId;
|
|
9293
|
+
const defaultTaxIdNumberType = existingTaxId ? inferTaxIdNumberType(existingTaxId, country2) : (_a = getTaxIdNumberOptions(country2, companyType2)) == null ? void 0 : _a[0].id;
|
|
9294
|
+
const [taxIdNumberType, setTaxIdNumberType] = useState(defaultTaxIdNumberType);
|
|
9142
9295
|
const metadata = resolveFieldMetadata(fieldConfig[country2], {
|
|
9143
9296
|
taxIdNumberType
|
|
9144
9297
|
}, defaultFieldMetadata$7);
|
|
@@ -9170,13 +9323,13 @@ function TaxId(props) {
|
|
|
9170
9323
|
fieldProblems: fieldValidationErrors
|
|
9171
9324
|
});
|
|
9172
9325
|
useEffect(() => {
|
|
9173
|
-
if (data.taxId) {
|
|
9326
|
+
if (data.taxId || taxIdNumberType) {
|
|
9174
9327
|
handleChangeFor("taxId", "blur")(data.taxId);
|
|
9175
9328
|
}
|
|
9176
|
-
}, [country2]);
|
|
9329
|
+
}, [taxIdNumberType, country2]);
|
|
9177
9330
|
useEffect(() => {
|
|
9178
|
-
var
|
|
9179
|
-
(
|
|
9331
|
+
var _a2, _b2;
|
|
9332
|
+
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
9180
9333
|
type: "addToState",
|
|
9181
9334
|
value: {
|
|
9182
9335
|
data,
|
|
@@ -9204,11 +9357,36 @@ function TaxId(props) {
|
|
|
9204
9357
|
handleChangeFor("taxId", "blur")(registrationNumber2);
|
|
9205
9358
|
}
|
|
9206
9359
|
}, [registrationNumber2]);
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9360
|
+
if (!formUtils.isRequiredField("taxId")) {
|
|
9361
|
+
return null;
|
|
9362
|
+
}
|
|
9363
|
+
const exemptionIsPossible = ((_b = mergedProps.requiredFields) == null ? void 0 : _b.includes("exemptedFromTax")) ?? false;
|
|
9364
|
+
const showTaxIdExemptedOption = exemptionIsPossible && (((_c = getTaxIdNumberOptions(country2, companyType2)) == null ? void 0 : _c.length) ?? 0) > 1;
|
|
9365
|
+
const handleTaxIdNumberTypeChange = (taxIdType) => {
|
|
9366
|
+
if (taxIdType === "exempted") {
|
|
9367
|
+
if (!exemptionIsPossible) {
|
|
9368
|
+
throw Error(`${country2} does not allow tax exemptions`);
|
|
9369
|
+
}
|
|
9370
|
+
handleChangeFor("exemptedFromTax")(true);
|
|
9371
|
+
setTaxIdNumberType(void 0);
|
|
9372
|
+
return;
|
|
9373
|
+
}
|
|
9374
|
+
if (exemptionIsPossible && data.exemptedFromTax === true) {
|
|
9375
|
+
handleChangeFor("exemptedFromTax")(false);
|
|
9376
|
+
}
|
|
9377
|
+
setTaxIdNumberType(taxIdType);
|
|
9378
|
+
};
|
|
9379
|
+
return jsxs("div", {
|
|
9380
|
+
className: "adyen-kyc-field--tax-id",
|
|
9381
|
+
children: [jsx(StateContextSetter, {
|
|
9382
|
+
stateRef
|
|
9383
|
+
}), jsx(TaxIdNumberTypeSelector, {
|
|
9384
|
+
country: country2,
|
|
9385
|
+
companyType: companyType2,
|
|
9386
|
+
setSelected: handleTaxIdNumberTypeChange,
|
|
9387
|
+
selected: data.exemptedFromTax ? "exempted" : taxIdNumberType,
|
|
9388
|
+
exemptedOption: showTaxIdExemptedOption ? formUtils.getLabel("exemptedFromTax", "iDontHaveATaxId") : false
|
|
9389
|
+
}), !data.isUen && jsx(MaskedInputText, {
|
|
9212
9390
|
name: "taxId",
|
|
9213
9391
|
label: formUtils.getLabel("taxId"),
|
|
9214
9392
|
formatGuidance: formUtils.getGuidanceText("taxId"),
|
|
@@ -9234,9 +9412,9 @@ function TaxId(props) {
|
|
|
9234
9412
|
"aria-required": false,
|
|
9235
9413
|
"aria-label": formUtils.getLabel("iDoNotHaveGst"),
|
|
9236
9414
|
"aria-invalid": false
|
|
9237
|
-
}), formUtils.isRequiredField("exemptedFromTax") && jsx(Checkbox, {
|
|
9415
|
+
}), formUtils.isRequiredField("exemptedFromTax") && !showTaxIdExemptedOption && jsx(Checkbox, {
|
|
9238
9416
|
name: "exemptedFromTax",
|
|
9239
|
-
label: formUtils.getLabel("exemptedFromTax"),
|
|
9417
|
+
label: formUtils.getLabel("exemptedFromTax", "iDontHaveATaxId"),
|
|
9240
9418
|
value: "exemptedFromTax",
|
|
9241
9419
|
readonly: formUtils.isReadOnly("exemptedFromTax"),
|
|
9242
9420
|
classNameModifiers: ["exempted-from-tax"],
|
|
@@ -9251,16 +9429,19 @@ function TaxId(props) {
|
|
|
9251
9429
|
const vatAbsenceReasons = ["industryExemption", "belowTaxThreshold"];
|
|
9252
9430
|
const vatNumberFields = ["vatNumber", "exemptedFromVat", "vatAbsenceReason"];
|
|
9253
9431
|
function VatNumber(props) {
|
|
9432
|
+
var _a, _b, _c;
|
|
9254
9433
|
const {
|
|
9255
9434
|
data: propData,
|
|
9256
9435
|
country: country2,
|
|
9257
9436
|
fieldValidationErrors,
|
|
9258
9437
|
dataStoreId,
|
|
9259
|
-
fieldConfig = defaultFieldConfig$6
|
|
9260
|
-
vatNumberType
|
|
9438
|
+
fieldConfig = defaultFieldConfig$6
|
|
9261
9439
|
} = props;
|
|
9440
|
+
const existingTaxId = propData == null ? void 0 : propData.vatNumber;
|
|
9441
|
+
const defaultTaxIdNumberType = existingTaxId ? inferTaxIdNumberType(existingTaxId, country2) : (_a = taxIdNumberOptions[country2]) == null ? void 0 : _a[0].id;
|
|
9442
|
+
const [taxIdNumberType, setTaxIdNumberType] = useState(defaultTaxIdNumberType);
|
|
9262
9443
|
const metadata = resolveFieldMetadata(fieldConfig[country2], {
|
|
9263
|
-
vatNumberType
|
|
9444
|
+
vatNumberType: taxIdNumberType
|
|
9264
9445
|
}, defaultFieldMetadata$6);
|
|
9265
9446
|
const mergedProps = mergeFieldMetadataIntoProps("vatNumber", metadata, props);
|
|
9266
9447
|
const {
|
|
@@ -9289,13 +9470,13 @@ function VatNumber(props) {
|
|
|
9289
9470
|
fieldProblems: fieldValidationErrors
|
|
9290
9471
|
});
|
|
9291
9472
|
useEffect(() => {
|
|
9292
|
-
if (data.vatNumber ||
|
|
9473
|
+
if (data.vatNumber || taxIdNumberType) {
|
|
9293
9474
|
handleChangeFor("vatNumber", "blur")(data.vatNumber);
|
|
9294
9475
|
}
|
|
9295
|
-
}, [
|
|
9476
|
+
}, [taxIdNumberType, country2]);
|
|
9296
9477
|
useEffect(() => {
|
|
9297
|
-
var
|
|
9298
|
-
(
|
|
9478
|
+
var _a2, _b2;
|
|
9479
|
+
(_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
|
|
9299
9480
|
type: "addToState",
|
|
9300
9481
|
value: {
|
|
9301
9482
|
data,
|
|
@@ -9308,10 +9489,31 @@ function VatNumber(props) {
|
|
|
9308
9489
|
}, [data, valid, errors, isValid]);
|
|
9309
9490
|
if (!formUtils.isRequiredField("vatNumber"))
|
|
9310
9491
|
return null;
|
|
9492
|
+
const exemptionIsPossible = ((_b = mergedProps.requiredFields) == null ? void 0 : _b.includes("exemptedFromVat")) ?? false;
|
|
9493
|
+
const showTaxIdExemptedOption = exemptionIsPossible && ((_c = taxIdNumberOptions[country2]) == null ? void 0 : _c.length) > 1;
|
|
9494
|
+
const handleTaxIdNumberTypeChange = (taxIdType) => {
|
|
9495
|
+
if (taxIdType === "exempted") {
|
|
9496
|
+
if (!exemptionIsPossible) {
|
|
9497
|
+
throw Error(`${country2} does not allow VAT exemptions`);
|
|
9498
|
+
}
|
|
9499
|
+
handleChangeFor("exemptedFromVat")(true);
|
|
9500
|
+
setTaxIdNumberType(void 0);
|
|
9501
|
+
return;
|
|
9502
|
+
}
|
|
9503
|
+
if (exemptionIsPossible && data.exemptedFromVat === true) {
|
|
9504
|
+
handleChangeFor("exemptedFromVat")(false);
|
|
9505
|
+
}
|
|
9506
|
+
setTaxIdNumberType(taxIdType);
|
|
9507
|
+
};
|
|
9311
9508
|
return jsxs("div", {
|
|
9312
9509
|
className: "adyen-kyc-field--tax-id",
|
|
9313
9510
|
children: [jsx(StateContextSetter, {
|
|
9314
9511
|
stateRef
|
|
9512
|
+
}), jsx(TaxIdNumberTypeSelector, {
|
|
9513
|
+
country: country2,
|
|
9514
|
+
setSelected: handleTaxIdNumberTypeChange,
|
|
9515
|
+
selected: data.exemptedFromVat ? "exempted" : taxIdNumberType,
|
|
9516
|
+
exemptedOption: showTaxIdExemptedOption ? formUtils.getLabel("exemptedFromVat", "iDontHaveAVatNumber") : false
|
|
9315
9517
|
}), jsx(MaskedInputText, {
|
|
9316
9518
|
name: "vatNumber",
|
|
9317
9519
|
label: formUtils.getLabel("vatNumber"),
|
|
@@ -9329,9 +9531,9 @@ function VatNumber(props) {
|
|
|
9329
9531
|
onInput: handleChangeFor("vatNumber", "input"),
|
|
9330
9532
|
onBlur: handleChangeFor("vatNumber", "blur"),
|
|
9331
9533
|
disabled: data.exemptedFromVat
|
|
9332
|
-
}), formUtils.isRequiredField("exemptedFromVat") && jsx(Checkbox, {
|
|
9534
|
+
}), formUtils.isRequiredField("exemptedFromVat") && !showTaxIdExemptedOption && jsx(Checkbox, {
|
|
9333
9535
|
name: "exemptedFromVat",
|
|
9334
|
-
label: formUtils.getLabel("exemptedFromVat", "
|
|
9536
|
+
label: formUtils.getLabel("exemptedFromVat", "iDontHaveAVatNumber"),
|
|
9335
9537
|
value: "exemptedFromVat",
|
|
9336
9538
|
readonly: formUtils.isReadOnly("exemptedFromVat"),
|
|
9337
9539
|
classNameModifiers: ["exempted-from-tax"],
|
|
@@ -9366,20 +9568,6 @@ const companyRegistrationDetailsValidationRules = {
|
|
|
9366
9568
|
validate: (tradingName2) => !isEmpty(tradingName2),
|
|
9367
9569
|
errorMessage: "fieldIsRequired"
|
|
9368
9570
|
},
|
|
9369
|
-
stockExchangeMIC: {
|
|
9370
|
-
modes: ["blur"],
|
|
9371
|
-
validate: (input) => !isEmpty(input) && /^[A-Z0-9]{4}$/.test(input),
|
|
9372
|
-
errorMessage: "validationPleaseEnterAValidMarketIdentifier"
|
|
9373
|
-
},
|
|
9374
|
-
stockISIN: [{
|
|
9375
|
-
modes: ["blur"],
|
|
9376
|
-
validate: (stockISIN2) => !isEmpty(stockISIN2),
|
|
9377
|
-
errorMessage: "fieldIsRequired"
|
|
9378
|
-
}, {
|
|
9379
|
-
modes: ["blur"],
|
|
9380
|
-
validate: (input) => exactLength(input, 12),
|
|
9381
|
-
errorMessage: "validationPleaseEnterAValidStockISIN"
|
|
9382
|
-
}],
|
|
9383
9571
|
dateOfIncorporation: [{
|
|
9384
9572
|
modes: ["blur"],
|
|
9385
9573
|
validate: (dateOfIncorporation2) => !!dateOfIncorporation2,
|
|
@@ -9411,26 +9599,26 @@ const FLOWS_THAT_HIDE_REGISTRATION_NUMBER = [{
|
|
|
9411
9599
|
}];
|
|
9412
9600
|
const companyRegistrationDetailsFields = ["tradingName", "sameNameAsLegalName", ...businessRegistrationNumberFields, "stockExchangeMIC", "stockISIN", ...vatNumberFields, ...taxIdFields, "dateOfIncorporation"];
|
|
9413
9601
|
function CompanyRegistrationDetailsComponent(props) {
|
|
9414
|
-
var _a, _b, _c, _d
|
|
9602
|
+
var _a, _b, _c, _d;
|
|
9415
9603
|
const {
|
|
9416
9604
|
i18n
|
|
9417
9605
|
} = useI18nContext();
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
const
|
|
9422
|
-
const hideOptionalRegistrationNumberField = FLOWS_THAT_HIDE_REGISTRATION_NUMBER.some((f) => f.country === props.country && f.companyType.includes(props.companyType));
|
|
9606
|
+
let mergedProps = props;
|
|
9607
|
+
mergedProps = mergeFieldMetadataIntoProps("stockExchangeMIC", stockExchangeMICFieldMetadata, mergedProps);
|
|
9608
|
+
mergedProps = mergeFieldMetadataIntoProps("stockISIN", stockISINFieldMetadata, mergedProps);
|
|
9609
|
+
const hideOptionalRegistrationNumberField = FLOWS_THAT_HIDE_REGISTRATION_NUMBER.some((f) => f.country === mergedProps.country && f.companyType.includes(mergedProps.companyType));
|
|
9423
9610
|
const stateRef = useRef({
|
|
9424
9611
|
setState: null
|
|
9425
9612
|
});
|
|
9426
|
-
const COMPANY_REGISTRATION_DETAILS =
|
|
9427
|
-
const
|
|
9613
|
+
const COMPANY_REGISTRATION_DETAILS = mergedProps.id;
|
|
9614
|
+
const requiredFields = mergedProps.requiredFields || companyRegistrationDetailsFields;
|
|
9615
|
+
const directChildFields = requiredFields.filter((field) => ["tradingName", "sameNameAsLegalName", "stockExchangeMIC", "stockISIN", "dateOfIncorporation"].includes(field));
|
|
9428
9616
|
const {
|
|
9429
9617
|
getData
|
|
9430
9618
|
} = useStateContext();
|
|
9431
9619
|
const legalCompanyName2 = (_b = (_a = getData()) == null ? void 0 : _a.companyNameAndCountry) == null ? void 0 : _b.legalCompanyName;
|
|
9432
|
-
|
|
9433
|
-
const isSameNameAsLegalName = !
|
|
9620
|
+
(_d = (_c = getData()) == null ? void 0 : _c.companyNameAndCountry) == null ? void 0 : _d.country;
|
|
9621
|
+
const isSameNameAsLegalName = !mergedProps.data.tradingName ? true : mergedProps.data.tradingName === legalCompanyName2;
|
|
9434
9622
|
const {
|
|
9435
9623
|
handleChangeFor,
|
|
9436
9624
|
data,
|
|
@@ -9441,32 +9629,26 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9441
9629
|
triggerValidation,
|
|
9442
9630
|
setData
|
|
9443
9631
|
} = useForm({
|
|
9444
|
-
...
|
|
9632
|
+
...mergedProps,
|
|
9445
9633
|
schema: directChildFields,
|
|
9446
9634
|
defaultData: {
|
|
9447
|
-
...
|
|
9635
|
+
...mergedProps.data,
|
|
9448
9636
|
sameNameAsLegalName: isSameNameAsLegalName,
|
|
9449
|
-
tradingName: isSameNameAsLegalName ? legalCompanyName2 :
|
|
9637
|
+
tradingName: isSameNameAsLegalName ? legalCompanyName2 : mergedProps.data.tradingName
|
|
9450
9638
|
},
|
|
9451
|
-
rules:
|
|
9452
|
-
|
|
9639
|
+
rules: {
|
|
9640
|
+
...mergedProps.validators,
|
|
9641
|
+
...companyRegistrationDetailsValidationRules
|
|
9642
|
+
},
|
|
9643
|
+
fieldProblems: mergedProps == null ? void 0 : mergedProps.fieldValidationErrors
|
|
9453
9644
|
});
|
|
9454
|
-
const defaultRegistrationNumberType = props.data.registrationNumber ? inferCompanyRegistrationNumberType(props.data.registrationNumber, props.country, props.companyType) : (_e = companyRegistrationNumberOptions[companyCountry2]) == null ? void 0 : _e[0].id;
|
|
9455
|
-
const existingTaxId = props.data.vatNumber ?? props.data.taxId;
|
|
9456
|
-
const defaultTaxIdNumberType = existingTaxId ? inferTaxIdNumberType(existingTaxId, props.country) : (_f = taxIdNumberOptions[companyCountry2]) == null ? void 0 : _f[0].id;
|
|
9457
|
-
const [registrationNumberType, setRegistrationNumberType] = useState(defaultRegistrationNumberType);
|
|
9458
|
-
const [taxIdNumberType, setTaxIdNumberType] = useState(defaultTaxIdNumberType);
|
|
9459
9645
|
useEffect(() => {
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
}, [companyCountry2, defaultRegistrationNumberType, defaultTaxIdNumberType, props.companyType]);
|
|
9463
|
-
useEffect(() => {
|
|
9464
|
-
if (props.data.tradingName !== data.tradingName && props.data.tradingName) {
|
|
9465
|
-
setData("tradingName", props.data.tradingName);
|
|
9646
|
+
if (mergedProps.data.tradingName !== data.tradingName && mergedProps.data.tradingName) {
|
|
9647
|
+
setData("tradingName", mergedProps.data.tradingName);
|
|
9466
9648
|
triggerValidation(["tradingName"]);
|
|
9467
9649
|
}
|
|
9468
|
-
}, [
|
|
9469
|
-
const formUtils = formUtilities(
|
|
9650
|
+
}, [mergedProps.data.tradingName]);
|
|
9651
|
+
const formUtils = formUtilities(mergedProps, i18n);
|
|
9470
9652
|
useEffect(() => {
|
|
9471
9653
|
stateRef.current.setState({
|
|
9472
9654
|
type: "addToState",
|
|
@@ -9476,7 +9658,7 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9476
9658
|
errors,
|
|
9477
9659
|
caller: COMPANY_REGISTRATION_DETAILS,
|
|
9478
9660
|
dataStoreId: COMPANY_REGISTRATION_DETAILS,
|
|
9479
|
-
schema:
|
|
9661
|
+
schema: requiredFields
|
|
9480
9662
|
}
|
|
9481
9663
|
});
|
|
9482
9664
|
}, [data, valid, errors, isValid]);
|
|
@@ -9490,16 +9672,16 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9490
9672
|
handleChangeFor("sameNameAsLegalName", "input")(tradingNameIsSameAsLegalName);
|
|
9491
9673
|
setData("tradingName", tradingNameIsSameAsLegalName ? legalCompanyName2 : "");
|
|
9492
9674
|
};
|
|
9493
|
-
const registrationNumberProps = getFieldProps(
|
|
9494
|
-
const vatNumberProps = getFieldProps(
|
|
9495
|
-
const taxIdProps = getFieldProps(
|
|
9675
|
+
const registrationNumberProps = getFieldProps(mergedProps, businessRegistrationNumberFields);
|
|
9676
|
+
const vatNumberProps = getFieldProps(mergedProps, vatNumberFields);
|
|
9677
|
+
const taxIdProps = getFieldProps(mergedProps, taxIdFields);
|
|
9496
9678
|
const handleChange = ({
|
|
9497
9679
|
currentState,
|
|
9498
9680
|
changeInitiatedBy
|
|
9499
9681
|
}) => {
|
|
9500
9682
|
if (changeInitiatedBy === COMPANY_REGISTRATION_DETAILS) {
|
|
9501
9683
|
const currentData = currentState.data[COMPANY_REGISTRATION_DETAILS];
|
|
9502
|
-
let schema =
|
|
9684
|
+
let schema = requiredFields;
|
|
9503
9685
|
let hasSchemaChanged = false;
|
|
9504
9686
|
if (formUtils.isRequiredField("vatNumber")) {
|
|
9505
9687
|
schema = currentData.exemptedFromVat ? schema.filter((child) => child !== "vatNumber") : schema.filter((child) => child !== "vatAbsenceReason");
|
|
@@ -9521,8 +9703,8 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9521
9703
|
valid,
|
|
9522
9704
|
errors,
|
|
9523
9705
|
fieldProblems,
|
|
9524
|
-
caller:
|
|
9525
|
-
dataStoreId:
|
|
9706
|
+
caller: mergedProps.id,
|
|
9707
|
+
dataStoreId: mergedProps.id,
|
|
9526
9708
|
schema
|
|
9527
9709
|
}
|
|
9528
9710
|
});
|
|
@@ -9538,10 +9720,10 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9538
9720
|
}), jsxs("form", {
|
|
9539
9721
|
className: "adyen-kyc-company__company-registration-details",
|
|
9540
9722
|
children: [jsx(FormHeader, {
|
|
9541
|
-
heading:
|
|
9723
|
+
heading: mergedProps.heading
|
|
9542
9724
|
}), jsx(ErrorPanel, {
|
|
9543
|
-
verificationErrors:
|
|
9544
|
-
validationErrors:
|
|
9725
|
+
verificationErrors: mergedProps == null ? void 0 : mergedProps.formVerificationErrors,
|
|
9726
|
+
validationErrors: mergedProps == null ? void 0 : mergedProps.fieldValidationErrors,
|
|
9545
9727
|
formUtils,
|
|
9546
9728
|
id: "ariaErrorField"
|
|
9547
9729
|
}), jsx(ContextGuidance, {
|
|
@@ -9581,69 +9763,40 @@ function CompanyRegistrationDetailsComponent(props) {
|
|
|
9581
9763
|
"aria-invalid": false
|
|
9582
9764
|
})
|
|
9583
9765
|
})]
|
|
9584
|
-
}), formUtils.isRequiredField("stockExchangeMIC") && jsx(
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
name: "stockISIN",
|
|
9605
|
-
label: formUtils.getLabel("stockISIN"),
|
|
9606
|
-
helper: i18n.get("stockISINHelper"),
|
|
9607
|
-
classNameModifiers: ["stockISIN"],
|
|
9608
|
-
errorMessage: formUtils.getErrorMessage("stockISIN", errors, fieldProblems),
|
|
9609
|
-
isValid: valid.stockISIN,
|
|
9610
|
-
children: (childProps) => jsx(InputText, {
|
|
9611
|
-
...childProps,
|
|
9612
|
-
name: "stockISIN",
|
|
9613
|
-
value: data.stockISIN,
|
|
9614
|
-
readonly: formUtils.isReadOnly("stockISIN"),
|
|
9615
|
-
classNameModifiers: ["stockISIN"],
|
|
9616
|
-
onInput: handleChangeFor("stockISIN", "input"),
|
|
9617
|
-
onBlur: handleChangeFor("stockISIN", "blur"),
|
|
9618
|
-
"aria-required": true,
|
|
9619
|
-
"aria-label": formUtils.getLabel("stockISIN"),
|
|
9620
|
-
"aria-invalid": !valid.stockISIN
|
|
9621
|
-
})
|
|
9622
|
-
}), isTypeSelectorEnabled && formUtils.isRequiredField("registrationNumber") && jsx(CompanyRegistrationNumberTypeSelector, {
|
|
9623
|
-
companyType: props.companyType,
|
|
9624
|
-
country: props.country,
|
|
9625
|
-
setSelected: setRegistrationNumberType,
|
|
9626
|
-
selected: registrationNumberType
|
|
9766
|
+
}), formUtils.isRequiredField("stockExchangeMIC") && jsx(StockExchangeMICField, {
|
|
9767
|
+
data: formUtils.getFieldData(data, STOCK_EXCHANGE_MIC_FIELD),
|
|
9768
|
+
valid: formUtils.getFieldValid(valid, STOCK_EXCHANGE_MIC_FIELD),
|
|
9769
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, STOCK_EXCHANGE_MIC_FIELD),
|
|
9770
|
+
labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
|
|
9771
|
+
placeholders: formUtils.getFieldPlaceholders(STOCK_EXCHANGE_MIC_FIELD),
|
|
9772
|
+
mask: formUtils.getMask("stockExchangeMIC"),
|
|
9773
|
+
guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
|
|
9774
|
+
readonly: formUtils.isReadOnly("stockExchangeMIC"),
|
|
9775
|
+
handleChangeFor
|
|
9776
|
+
}), formUtils.isRequiredField("stockISIN") && jsx(StockISINField, {
|
|
9777
|
+
data: formUtils.getFieldData(data, STOCK_ISIN_FIELD),
|
|
9778
|
+
valid: formUtils.getFieldValid(valid, STOCK_ISIN_FIELD),
|
|
9779
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, STOCK_ISIN_FIELD),
|
|
9780
|
+
labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
|
|
9781
|
+
placeholders: formUtils.getFieldPlaceholders(STOCK_ISIN_FIELD),
|
|
9782
|
+
mask: formUtils.getMask("stockISIN"),
|
|
9783
|
+
guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
|
|
9784
|
+
readonly: formUtils.isReadOnly("stockISIN"),
|
|
9785
|
+
handleChangeFor
|
|
9627
9786
|
}), formUtils.isRequiredField("registrationNumber", !hideOptionalRegistrationNumberField) && jsx(BusinessRegistrationNumber, {
|
|
9628
9787
|
...registrationNumberProps,
|
|
9629
|
-
companyType:
|
|
9630
|
-
country:
|
|
9631
|
-
dataStoreId: COMPANY_REGISTRATION_DETAILS
|
|
9632
|
-
registrationNumberType
|
|
9633
|
-
}), isTypeSelectorEnabled && formUtils.isRequiredField("vatNumber") && jsx(TaxIdNumberTypeSelector, {
|
|
9634
|
-
country: props.country,
|
|
9635
|
-
setSelected: setTaxIdNumberType,
|
|
9636
|
-
selected: taxIdNumberType
|
|
9788
|
+
companyType: mergedProps.companyType,
|
|
9789
|
+
country: mergedProps.country,
|
|
9790
|
+
dataStoreId: COMPANY_REGISTRATION_DETAILS
|
|
9637
9791
|
}), formUtils.isRequiredField("vatNumber") && jsx(VatNumber, {
|
|
9638
9792
|
...vatNumberProps,
|
|
9639
9793
|
dataStoreId: COMPANY_REGISTRATION_DETAILS,
|
|
9640
|
-
country:
|
|
9641
|
-
vatNumberType: taxIdNumberType
|
|
9794
|
+
country: mergedProps.country
|
|
9642
9795
|
}), formUtils.isRequiredField("taxId") && jsx(TaxId, {
|
|
9643
9796
|
...taxIdProps,
|
|
9644
9797
|
dataStoreId: COMPANY_REGISTRATION_DETAILS,
|
|
9645
|
-
country:
|
|
9646
|
-
|
|
9798
|
+
country: mergedProps.country,
|
|
9799
|
+
companyType: mergedProps.companyType
|
|
9647
9800
|
}), formUtils.isRequiredField("dateOfIncorporation") && jsx(Field, {
|
|
9648
9801
|
name: "dateOfIncorporation",
|
|
9649
9802
|
label: formUtils.getLabel("dateOfIncorporation"),
|
|
@@ -9897,9 +10050,6 @@ const countryConfig$3 = {
|
|
|
9897
10050
|
}
|
|
9898
10051
|
},
|
|
9899
10052
|
[CountryCodes.Austria]: {
|
|
9900
|
-
exemptedFromVat: {
|
|
9901
|
-
label: "vatNumberExempted"
|
|
9902
|
-
},
|
|
9903
10053
|
vatAbsenceReason: {
|
|
9904
10054
|
label: "vatAbsenceReason"
|
|
9905
10055
|
},
|
|
@@ -9908,19 +10058,12 @@ const countryConfig$3 = {
|
|
|
9908
10058
|
}
|
|
9909
10059
|
},
|
|
9910
10060
|
[CountryCodes.Belgium]: {
|
|
9911
|
-
exemptedFromVat: {
|
|
9912
|
-
label: "vatNumberExempted"
|
|
9913
|
-
},
|
|
9914
10061
|
vatAbsenceReason: {
|
|
9915
10062
|
label: "vatAbsenceReason"
|
|
9916
10063
|
}
|
|
9917
10064
|
},
|
|
9918
10065
|
[CountryCodes.Brazil]: {},
|
|
9919
|
-
[CountryCodes.Bulgaria]: {
|
|
9920
|
-
exemptedFromVat: {
|
|
9921
|
-
label: "vatNumberExempted"
|
|
9922
|
-
}
|
|
9923
|
-
},
|
|
10066
|
+
[CountryCodes.Bulgaria]: {},
|
|
9924
10067
|
[CountryCodes.Canada]: {
|
|
9925
10068
|
tradingName: {
|
|
9926
10069
|
label: "doingBusinessAs"
|
|
@@ -9932,40 +10075,14 @@ const countryConfig$3 = {
|
|
|
9932
10075
|
label: "doNotHaveBusinessNumber"
|
|
9933
10076
|
}
|
|
9934
10077
|
},
|
|
9935
|
-
[CountryCodes.Croatia]: {
|
|
9936
|
-
exemptedFromVat: {
|
|
9937
|
-
label: "vatNumberExempted"
|
|
9938
|
-
}
|
|
9939
|
-
},
|
|
9940
|
-
[CountryCodes.Cyprus]: {
|
|
9941
|
-
exemptedFromVat: {
|
|
9942
|
-
label: "vatNumberExempted"
|
|
9943
|
-
}
|
|
9944
|
-
},
|
|
9945
10078
|
[CountryCodes.CzechRepublic]: {
|
|
9946
10079
|
vatAbsenceReason: {
|
|
9947
10080
|
label: "vatAbsenceReason"
|
|
9948
|
-
},
|
|
9949
|
-
exemptedFromVat: {
|
|
9950
|
-
label: "vatNumberExempted"
|
|
9951
|
-
}
|
|
9952
|
-
},
|
|
9953
|
-
[CountryCodes.Denmark]: {
|
|
9954
|
-
exemptedFromVat: {
|
|
9955
|
-
label: "vatNumberExempted"
|
|
9956
|
-
}
|
|
9957
|
-
},
|
|
9958
|
-
[CountryCodes.Estonia]: {
|
|
9959
|
-
exemptedFromVat: {
|
|
9960
|
-
label: "vatNumberExempted"
|
|
9961
10081
|
}
|
|
9962
10082
|
},
|
|
9963
10083
|
[CountryCodes.Finland]: {
|
|
9964
10084
|
exemptedFromRegistrationNumber: {
|
|
9965
10085
|
label: "doNotHaveYTunnus"
|
|
9966
|
-
},
|
|
9967
|
-
exemptedFromVat: {
|
|
9968
|
-
label: "vatNumberExempted"
|
|
9969
10086
|
}
|
|
9970
10087
|
},
|
|
9971
10088
|
[CountryCodes.France]: {},
|
|
@@ -9973,19 +10090,11 @@ const countryConfig$3 = {
|
|
|
9973
10090
|
exemptedFromRegistrationNumber: {
|
|
9974
10091
|
label: "doNotHaveHandelsregisternummer"
|
|
9975
10092
|
},
|
|
9976
|
-
exemptedFromVat: {
|
|
9977
|
-
label: "vatNumberExempted"
|
|
9978
|
-
},
|
|
9979
10093
|
vatAbsenceReason: {
|
|
9980
10094
|
label: "vatAbsenceReason"
|
|
9981
10095
|
}
|
|
9982
10096
|
},
|
|
9983
10097
|
[CountryCodes.Gibraltar]: {},
|
|
9984
|
-
[CountryCodes.Greece]: {
|
|
9985
|
-
exemptedFromVat: {
|
|
9986
|
-
label: "vatNumberExempted"
|
|
9987
|
-
}
|
|
9988
|
-
},
|
|
9989
10098
|
[CountryCodes.Guernsey]: {},
|
|
9990
10099
|
[CountryCodes.HongKong]: {
|
|
9991
10100
|
legalCompanyName: {
|
|
@@ -10001,21 +10110,10 @@ const countryConfig$3 = {
|
|
|
10001
10110
|
label: "businessName"
|
|
10002
10111
|
}
|
|
10003
10112
|
},
|
|
10004
|
-
[CountryCodes.Hungary]: {
|
|
10005
|
-
|
|
10006
|
-
label: "vatNumberExempted"
|
|
10007
|
-
}
|
|
10008
|
-
},
|
|
10009
|
-
[CountryCodes.Ireland]: {
|
|
10010
|
-
exemptedFromVat: {
|
|
10011
|
-
label: "vatNumberExempted"
|
|
10012
|
-
}
|
|
10013
|
-
},
|
|
10113
|
+
[CountryCodes.Hungary]: {},
|
|
10114
|
+
[CountryCodes.Ireland]: {},
|
|
10014
10115
|
[CountryCodes.IsleOfMan]: {},
|
|
10015
10116
|
[CountryCodes.Italy]: {
|
|
10016
|
-
exemptedFromVat: {
|
|
10017
|
-
label: "vatNumberExempted"
|
|
10018
|
-
},
|
|
10019
10117
|
vatAbsenceReason: {
|
|
10020
10118
|
label: "vatAbsenceReason"
|
|
10021
10119
|
}
|
|
@@ -10030,26 +10128,16 @@ const countryConfig$3 = {
|
|
|
10030
10128
|
label: "registrationNumber"
|
|
10031
10129
|
}
|
|
10032
10130
|
},
|
|
10033
|
-
[CountryCodes.Latvia]: {
|
|
10034
|
-
exemptedFromVat: {
|
|
10035
|
-
label: "vatNumberExempted"
|
|
10036
|
-
}
|
|
10037
|
-
},
|
|
10131
|
+
[CountryCodes.Latvia]: {},
|
|
10038
10132
|
[CountryCodes.Liechtenstein]: {},
|
|
10039
10133
|
[CountryCodes.Lithuania]: {
|
|
10040
10134
|
exemptedFromRegistrationNumber: {
|
|
10041
10135
|
label: "doNotHaveLtRegistrationNumber"
|
|
10042
|
-
},
|
|
10043
|
-
exemptedFromVat: {
|
|
10044
|
-
label: "vatNumberExempted"
|
|
10045
10136
|
}
|
|
10046
10137
|
},
|
|
10047
10138
|
[CountryCodes.Luxembourg]: {
|
|
10048
10139
|
exemptedFromRegistrationNumber: {
|
|
10049
10140
|
label: "doNotHaveLuRegistrationNumber"
|
|
10050
|
-
},
|
|
10051
|
-
exemptedFromVat: {
|
|
10052
|
-
label: "vatNumberExempted"
|
|
10053
10141
|
}
|
|
10054
10142
|
},
|
|
10055
10143
|
[CountryCodes.Malta]: {},
|
|
@@ -10068,9 +10156,6 @@ const countryConfig$3 = {
|
|
|
10068
10156
|
legalCompanyName: {
|
|
10069
10157
|
helperText: "legalCompanyName__helperText__NL"
|
|
10070
10158
|
},
|
|
10071
|
-
exemptedFromVat: {
|
|
10072
|
-
label: "vatNumberExempted"
|
|
10073
|
-
},
|
|
10074
10159
|
vatAbsenceReason: {
|
|
10075
10160
|
label: "vatAbsenceReason"
|
|
10076
10161
|
}
|
|
@@ -10081,15 +10166,9 @@ const countryConfig$3 = {
|
|
|
10081
10166
|
},
|
|
10082
10167
|
taxDocument: {
|
|
10083
10168
|
label: "irdDocument"
|
|
10084
|
-
},
|
|
10085
|
-
exemptedFromVat: {
|
|
10086
|
-
label: "vatNumberExempted"
|
|
10087
10169
|
}
|
|
10088
10170
|
},
|
|
10089
10171
|
[CountryCodes.Norway]: {
|
|
10090
|
-
exemptedFromVat: {
|
|
10091
|
-
label: "vatNumberExempted"
|
|
10092
|
-
},
|
|
10093
10172
|
vatAbsenceReason: {
|
|
10094
10173
|
label: "vatAbsenceReason"
|
|
10095
10174
|
}
|
|
@@ -10098,41 +10177,20 @@ const countryConfig$3 = {
|
|
|
10098
10177
|
exemptedFromRegistrationNumber: {
|
|
10099
10178
|
label: "doNotHaveRegonKrsNumber"
|
|
10100
10179
|
},
|
|
10101
|
-
exemptedFromVat: {
|
|
10102
|
-
label: "vatNumberExempted"
|
|
10103
|
-
},
|
|
10104
10180
|
vatAbsenceReason: {
|
|
10105
10181
|
label: "vatAbsenceReason"
|
|
10106
10182
|
}
|
|
10107
10183
|
},
|
|
10108
10184
|
[CountryCodes.Portugal]: {
|
|
10109
|
-
exemptedFromVat: {
|
|
10110
|
-
label: "vatNumberExempted"
|
|
10111
|
-
},
|
|
10112
10185
|
vatAbsenceReason: {
|
|
10113
10186
|
label: "vatAbsenceReason"
|
|
10114
10187
|
}
|
|
10115
10188
|
},
|
|
10116
10189
|
[CountryCodes.PuertoRico]: {},
|
|
10117
|
-
[CountryCodes.Romania]: {
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
}
|
|
10121
|
-
},
|
|
10122
|
-
[CountryCodes.Slovakia]: {
|
|
10123
|
-
exemptedFromVat: {
|
|
10124
|
-
label: "vatNumberExempted"
|
|
10125
|
-
}
|
|
10126
|
-
},
|
|
10127
|
-
[CountryCodes.Slovenia]: {
|
|
10128
|
-
exemptedFromVat: {
|
|
10129
|
-
label: "vatNumberExempted"
|
|
10130
|
-
}
|
|
10131
|
-
},
|
|
10190
|
+
[CountryCodes.Romania]: {},
|
|
10191
|
+
[CountryCodes.Slovakia]: {},
|
|
10192
|
+
[CountryCodes.Slovenia]: {},
|
|
10132
10193
|
[CountryCodes.Spain]: {
|
|
10133
|
-
exemptedFromVat: {
|
|
10134
|
-
label: "vatNumberExempted"
|
|
10135
|
-
},
|
|
10136
10194
|
vatAbsenceReason: {
|
|
10137
10195
|
label: "vatAbsenceReason"
|
|
10138
10196
|
}
|
|
@@ -10146,18 +10204,12 @@ const countryConfig$3 = {
|
|
|
10146
10204
|
},
|
|
10147
10205
|
legalEntityType: {
|
|
10148
10206
|
label: "companyType"
|
|
10149
|
-
},
|
|
10150
|
-
exemptedFromVat: {
|
|
10151
|
-
label: "vatNumberExempted"
|
|
10152
10207
|
}
|
|
10153
10208
|
},
|
|
10154
10209
|
[CountryCodes.Sweden]: {
|
|
10155
10210
|
exemptedFromRegistrationNumber: {
|
|
10156
10211
|
label: "doNotHaveOrganisationsnummer"
|
|
10157
10212
|
},
|
|
10158
|
-
exemptedFromVat: {
|
|
10159
|
-
label: "vatNumberExempted"
|
|
10160
|
-
},
|
|
10161
10213
|
vatAbsenceReason: {
|
|
10162
10214
|
label: "vatAbsenceReason"
|
|
10163
10215
|
}
|
|
@@ -10165,9 +10217,6 @@ const countryConfig$3 = {
|
|
|
10165
10217
|
[CountryCodes.Switzerland]: {
|
|
10166
10218
|
exemptedFromRegistrationNumber: {
|
|
10167
10219
|
label: "doNotHaveChRegistrationNumber"
|
|
10168
|
-
},
|
|
10169
|
-
exemptedFromVat: {
|
|
10170
|
-
label: "vatNumberExempted"
|
|
10171
10220
|
}
|
|
10172
10221
|
},
|
|
10173
10222
|
[CountryCodes.UnitedKingdom]: {},
|
|
@@ -10189,15 +10238,6 @@ const countryConfig$3 = {
|
|
|
10189
10238
|
},
|
|
10190
10239
|
taxId: {
|
|
10191
10240
|
label: "employerIdentificationNumber"
|
|
10192
|
-
},
|
|
10193
|
-
/* CompanySearchComponent specific fields */
|
|
10194
|
-
stockExchangeMIC: {
|
|
10195
|
-
label: "stockExchangeMIC__US",
|
|
10196
|
-
placeholder: "stockExchangeMIC__placeholder__US"
|
|
10197
|
-
},
|
|
10198
|
-
stockISIN: {
|
|
10199
|
-
label: "stockISIN__US",
|
|
10200
|
-
placeholder: "stockISIN__placeholder__US"
|
|
10201
10241
|
}
|
|
10202
10242
|
}
|
|
10203
10243
|
};
|
|
@@ -10368,6 +10408,7 @@ const CONTACTS_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
|
10368
10408
|
const JOB_TITLE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
10369
10409
|
const ISSUER_REQUIRED_FOR_COUNTRIES = [CountryCodes.Australia];
|
|
10370
10410
|
const EXPIRY_DATE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
10411
|
+
const DECISION_MAKER_TYPES_WITH_JOBTITLE = [DecisionMakerType.SIGNATORY, DecisionMakerType.CONTROLLING_PERSON];
|
|
10371
10412
|
const rules$3 = ({
|
|
10372
10413
|
data,
|
|
10373
10414
|
country: country2,
|
|
@@ -10427,7 +10468,7 @@ const rules$3 = ({
|
|
|
10427
10468
|
jobTitleIfRequiredForRole: () => {
|
|
10428
10469
|
var _a, _b;
|
|
10429
10470
|
if (taskType === TaskTypes.DECISION_MAKER) {
|
|
10430
|
-
if ((_b = (_a = data.personalDetails) == null ? void 0 : _a.role) == null ? void 0 : _b.some((role2) =>
|
|
10471
|
+
if ((_b = (_a = data.personalDetails) == null ? void 0 : _a.role) == null ? void 0 : _b.some((role2) => DECISION_MAKER_TYPES_WITH_JOBTITLE.includes(role2))) {
|
|
10431
10472
|
return REQUIRED;
|
|
10432
10473
|
}
|
|
10433
10474
|
return;
|
|
@@ -17095,9 +17136,6 @@ function PersonalDetailsComponent(props) {
|
|
|
17095
17136
|
const {
|
|
17096
17137
|
isSettingEnabled
|
|
17097
17138
|
} = useSettingsContext();
|
|
17098
|
-
const {
|
|
17099
|
-
isExperimentEnabled
|
|
17100
|
-
} = useExperimentsContext();
|
|
17101
17139
|
const allowedCountries = useAllowedCountries();
|
|
17102
17140
|
const isNewEntryFlowEnabled = useEnableNewEntryFlow();
|
|
17103
17141
|
const PERSONAL_DETAILS = props.id;
|
|
@@ -17113,7 +17151,6 @@ function PersonalDetailsComponent(props) {
|
|
|
17113
17151
|
const isTopLevelEntity = props.taskType === TaskTypes.INDIVIDUAL;
|
|
17114
17152
|
const requiredFieldsByTask = (props.requiredFields || personalDetailsFields).filter((field) => !isNewEntryFlowEnabled && (field !== "role" || field === "role" && isDecisionMakerTask) || isNewEntryFlowEnabled && (field !== "role" && field !== "accountHolder" || field === "role" && isDecisionMakerTask));
|
|
17115
17153
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
17116
|
-
const isIdentityFieldTypeSelectorEnabled = isExperimentEnabled(ExperimentNames.EnableIdentityFieldTypeSelector);
|
|
17117
17154
|
const getDirectChildFields = () => requiredFieldsByTask.filter((field) => ["birthDate", "residencyCountry", "jobTitle", "nationality"].includes(field));
|
|
17118
17155
|
const {
|
|
17119
17156
|
handleChangeFor,
|
|
@@ -17196,7 +17233,7 @@ function PersonalDetailsComponent(props) {
|
|
|
17196
17233
|
schema: requiredFieldsByTask
|
|
17197
17234
|
}
|
|
17198
17235
|
});
|
|
17199
|
-
}, [data, valid, errors]);
|
|
17236
|
+
}, [data, valid, errors, requiredFieldsByTask.toString()]);
|
|
17200
17237
|
const hasRequiredFields = (props2) => !!props2.requiredFields.length;
|
|
17201
17238
|
const handleStateChange = ({
|
|
17202
17239
|
currentState,
|
|
@@ -17281,7 +17318,7 @@ function PersonalDetailsComponent(props) {
|
|
|
17281
17318
|
allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
|
|
17282
17319
|
classNameModifiers: ["country"],
|
|
17283
17320
|
handleChangeFor: () => handleChangeFor("residencyCountry", "input")
|
|
17284
|
-
}),
|
|
17321
|
+
}), jsx(IndividualIdNumberTypeSelector, {
|
|
17285
17322
|
country: data.residencyCountry,
|
|
17286
17323
|
setSelected: setIdNumberType,
|
|
17287
17324
|
selected: idNumberType
|
|
@@ -18338,17 +18375,23 @@ const setSdkTokenHandler = (handler) => {
|
|
|
18338
18375
|
};
|
|
18339
18376
|
const getSdkToken = () => sdkToken;
|
|
18340
18377
|
const refreshSession = async () => {
|
|
18378
|
+
let isSessionRefreshed = false;
|
|
18341
18379
|
if (!fetchSdkToken) {
|
|
18342
|
-
throw Error("Not able to extend session,
|
|
18380
|
+
throw Error("Not able to extend session, handler not provided. Make sure to provide getSdkToken handler");
|
|
18343
18381
|
}
|
|
18344
18382
|
try {
|
|
18345
18383
|
const {
|
|
18346
18384
|
token
|
|
18347
18385
|
} = await fetchSdkToken();
|
|
18386
|
+
if (!token) {
|
|
18387
|
+
throw Error("Not able to extend session, token not received. Make sure to provide back the token in the getSdkToken response ");
|
|
18388
|
+
}
|
|
18348
18389
|
setSdkToken(token);
|
|
18390
|
+
isSessionRefreshed = true;
|
|
18349
18391
|
} catch (e) {
|
|
18350
18392
|
logger$k.error("Failed to fetch sdk token", e);
|
|
18351
18393
|
}
|
|
18394
|
+
return isSessionRefreshed;
|
|
18352
18395
|
};
|
|
18353
18396
|
const addAnimationStartListener = (element, listener) => {
|
|
18354
18397
|
element.addEventListener("animationstart", listener, false);
|
|
@@ -18468,8 +18511,10 @@ const http = async (options, data, responseType = "json") => {
|
|
|
18468
18511
|
return processValidationErrors$1(response);
|
|
18469
18512
|
}
|
|
18470
18513
|
if (needsAuthGuard && isSessionExpiredResponse(response)) {
|
|
18471
|
-
await refreshSession();
|
|
18472
|
-
|
|
18514
|
+
const isSessionRefreshed = await refreshSession();
|
|
18515
|
+
if (isSessionRefreshed) {
|
|
18516
|
+
return http(options, data, responseType);
|
|
18517
|
+
}
|
|
18473
18518
|
}
|
|
18474
18519
|
logFetchError(errorMessage, errorLevel);
|
|
18475
18520
|
throw new Error(errorMessage);
|
|
@@ -21391,7 +21436,8 @@ function TrustRegistrationDetailsComponent(props) {
|
|
|
21391
21436
|
}), formUtils.isRequiredField("taxId") && jsx(TaxId, {
|
|
21392
21437
|
...taxIdProps,
|
|
21393
21438
|
dataStoreId: TRUST_REGISTRATION_DETAILS,
|
|
21394
|
-
country: country2
|
|
21439
|
+
country: country2,
|
|
21440
|
+
companyType: LegalEntityType.TRUST
|
|
21395
21441
|
}), formUtils.isRequiredField("registrationNumber") && jsx(BusinessRegistrationNumber, {
|
|
21396
21442
|
...registrationNumberProps,
|
|
21397
21443
|
dataStoreId: TRUST_REGISTRATION_DETAILS,
|
|
@@ -23122,547 +23168,15 @@ const getFieldsWithExistingData = (legalEntity, isExperimentEnabled) => {
|
|
|
23122
23168
|
}
|
|
23123
23169
|
return nonDocumentFields;
|
|
23124
23170
|
};
|
|
23125
|
-
const
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
|
|
23130
|
-
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
|
|
23134
|
-
children,
|
|
23135
|
-
className
|
|
23136
|
-
}) => jsx("h2", {
|
|
23137
|
-
className,
|
|
23138
|
-
children
|
|
23139
|
-
}),
|
|
23140
|
-
3: ({
|
|
23141
|
-
children,
|
|
23142
|
-
className
|
|
23143
|
-
}) => jsx("h3", {
|
|
23144
|
-
className,
|
|
23145
|
-
children
|
|
23146
|
-
}),
|
|
23147
|
-
4: ({
|
|
23148
|
-
children,
|
|
23149
|
-
className
|
|
23150
|
-
}) => jsx("h4", {
|
|
23151
|
-
className,
|
|
23152
|
-
children
|
|
23153
|
-
}),
|
|
23154
|
-
sub: ({
|
|
23155
|
-
children,
|
|
23156
|
-
className
|
|
23157
|
-
}) => jsx("div", {
|
|
23158
|
-
className,
|
|
23159
|
-
children
|
|
23160
|
-
})
|
|
23161
|
-
};
|
|
23162
|
-
function Heading({
|
|
23163
|
-
className,
|
|
23164
|
-
level,
|
|
23165
|
-
children
|
|
23166
|
-
}) {
|
|
23167
|
-
const HeadingElement = headingTypes[level] || headingTypes[1];
|
|
23168
|
-
const classNames = cx("adl-heading", `adl-heading--${level}`, className);
|
|
23169
|
-
return jsx(HeadingElement, {
|
|
23170
|
-
className: classNames,
|
|
23171
|
-
children
|
|
23172
|
-
});
|
|
23173
|
-
}
|
|
23174
|
-
var ToastType = /* @__PURE__ */ ((ToastType2) => {
|
|
23175
|
-
ToastType2["LOADING"] = "loading";
|
|
23176
|
-
ToastType2["SUCCESS"] = "success";
|
|
23177
|
-
ToastType2["ERROR"] = "error";
|
|
23178
|
-
return ToastType2;
|
|
23179
|
-
})(ToastType || {});
|
|
23180
|
-
function Toast({
|
|
23181
|
-
label,
|
|
23182
|
-
subLabel,
|
|
23183
|
-
actionLabel,
|
|
23184
|
-
type,
|
|
23185
|
-
duration = 3500,
|
|
23186
|
-
onToastHide,
|
|
23187
|
-
onToastAction
|
|
23188
|
-
}) {
|
|
23189
|
-
const toastRef = useRef(null);
|
|
23190
|
-
const loading2 = type === ToastType.LOADING;
|
|
23191
|
-
const successToast = type === ToastType.SUCCESS;
|
|
23192
|
-
const labelId = getUniqueId("toast");
|
|
23193
|
-
const handleShow = useCallback(() => {
|
|
23194
|
-
var _a;
|
|
23195
|
-
return (_a = toastRef.current) == null ? void 0 : _a.classList.add("adl-toast--visible");
|
|
23196
|
-
}, []);
|
|
23197
|
-
const handleHide = useCallback(() => {
|
|
23198
|
-
var _a;
|
|
23199
|
-
(_a = toastRef.current) == null ? void 0 : _a.classList.remove("adl-toast--visible");
|
|
23200
|
-
onToastHide();
|
|
23201
|
-
}, [onToastHide]);
|
|
23202
|
-
useEffect(() => {
|
|
23203
|
-
handleShow();
|
|
23204
|
-
if (duration !== "indefinite") {
|
|
23205
|
-
setTimeout(() => handleHide(), duration);
|
|
23206
|
-
}
|
|
23207
|
-
}, [label, duration, handleHide, handleShow]);
|
|
23208
|
-
return jsxs("div", {
|
|
23209
|
-
ref: toastRef,
|
|
23210
|
-
role: actionLabel ? "alertdialog" : "alert",
|
|
23211
|
-
className: "adl-toast",
|
|
23212
|
-
"aria-labelledby": labelId,
|
|
23213
|
-
children: [loading2 && jsx("div", {
|
|
23214
|
-
className: "adl-toast__loader",
|
|
23215
|
-
children: jsx("div", {
|
|
23216
|
-
className: "adl-loading-indicator adl-loading-indicator--small adl-loading-indicator--dark"
|
|
23217
|
-
})
|
|
23218
|
-
}), !loading2 && jsxs("div", {
|
|
23219
|
-
className: cx("adl-toast__status", {
|
|
23220
|
-
"adl-toast__status--success": successToast,
|
|
23221
|
-
"adl-toast__status--error": !successToast
|
|
23222
|
-
}),
|
|
23223
|
-
children: [successToast && jsx(Icon, {
|
|
23224
|
-
className: "adl-toast__status-icon",
|
|
23225
|
-
name: "checkmark"
|
|
23226
|
-
}), !successToast && jsx(Icon, {
|
|
23227
|
-
className: "adl-toast__status-icon",
|
|
23228
|
-
name: "cross"
|
|
23229
|
-
})]
|
|
23230
|
-
}), jsxs("div", {
|
|
23231
|
-
className: "adl-toast__message",
|
|
23232
|
-
children: [jsx("span", {
|
|
23233
|
-
id: labelId,
|
|
23234
|
-
className: "adl-toast__title",
|
|
23235
|
-
children: label
|
|
23236
|
-
}), actionLabel && jsx("button", {
|
|
23237
|
-
className: "adl-link adl-toast__action",
|
|
23238
|
-
title: "performAction",
|
|
23239
|
-
type: "button",
|
|
23240
|
-
onClick: onToastAction,
|
|
23241
|
-
children: actionLabel
|
|
23242
|
-
}), !loading2 && subLabel && jsx("span", {
|
|
23243
|
-
className: "adl-toast__subtitle",
|
|
23244
|
-
children: subLabel
|
|
23245
|
-
})]
|
|
23246
|
-
}), !loading2 && jsx("button", {
|
|
23247
|
-
className: "adl-toast__close",
|
|
23248
|
-
title: "close",
|
|
23249
|
-
type: "button",
|
|
23250
|
-
onClick: handleHide,
|
|
23251
|
-
children: jsx(Icon, {
|
|
23252
|
-
name: "cross"
|
|
23253
|
-
})
|
|
23254
|
-
})]
|
|
23255
|
-
});
|
|
23256
|
-
}
|
|
23257
|
-
const businessTypes = [{
|
|
23258
|
-
id: "individual",
|
|
23259
|
-
accountHolder: "myName",
|
|
23260
|
-
name: "individual",
|
|
23261
|
-
description: "youAreNotSoleProprietorAndUseBankAccount"
|
|
23262
|
-
}, {
|
|
23263
|
-
id: "soleProprietorship",
|
|
23264
|
-
accountHolder: "mySoleProprietorName",
|
|
23265
|
-
name: "soleProprietorship",
|
|
23266
|
-
description: "youAreRegisteredSoleProprietorAndUseBankAccount"
|
|
23267
|
-
}, {
|
|
23268
|
-
id: "company",
|
|
23269
|
-
accountHolder: "theCompanyIWorkFor",
|
|
23270
|
-
name: "company",
|
|
23271
|
-
description: "youUseCompanyBankAccount"
|
|
23272
|
-
}, {
|
|
23273
|
-
id: "legalArrangement",
|
|
23274
|
-
name: "trustPartnershipOrAssociation",
|
|
23275
|
-
description: "youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation"
|
|
23276
|
-
}];
|
|
23277
|
-
const legalArrangementItems = [{
|
|
23278
|
-
id: "aTrust",
|
|
23279
|
-
accountHolder: "aTrust",
|
|
23280
|
-
name: "trust",
|
|
23281
|
-
description: "youAreTrusteeManagingTheTrustForBeneficiaries"
|
|
23282
|
-
}, {
|
|
23283
|
-
id: "partnershipIncorporated",
|
|
23284
|
-
accountHolder: "theCompanyIWorkFor",
|
|
23285
|
-
name: "partnershipIncorporated",
|
|
23286
|
-
description: "partnershipIncorporatedNewEntryFlowDescription"
|
|
23287
|
-
}, {
|
|
23288
|
-
id: "partnershipUnincorporated",
|
|
23289
|
-
accountHolder: "theCompanyIWorkFor",
|
|
23290
|
-
name: "partnershipUnincorporated",
|
|
23291
|
-
description: "partnershipUnincorporatedNewEntryFlowDescription"
|
|
23292
|
-
}, {
|
|
23293
|
-
id: "associationIncorporated",
|
|
23294
|
-
accountHolder: "theCompanyIWorkFor",
|
|
23295
|
-
name: "associationIncorporated",
|
|
23296
|
-
description: "groupOfPeopleActingTogetherForNonCommercialPurpose"
|
|
23297
|
-
}];
|
|
23298
|
-
const trusteeTypeItems = [{
|
|
23299
|
-
id: "individual",
|
|
23300
|
-
name: "individual"
|
|
23301
|
-
}, {
|
|
23302
|
-
id: "company",
|
|
23303
|
-
name: "company"
|
|
23304
|
-
}];
|
|
23305
|
-
const getFormSchema = (isLegalArrangement, isTrust) => {
|
|
23306
|
-
const schema = ["businessType"];
|
|
23307
|
-
if (isLegalArrangement) {
|
|
23308
|
-
schema.push("legalArrangement");
|
|
23309
|
-
}
|
|
23310
|
-
if (isTrust) {
|
|
23311
|
-
schema.push("trusteeType");
|
|
23312
|
-
}
|
|
23313
|
-
return schema;
|
|
23314
|
-
};
|
|
23315
|
-
const getBusinessTypes = (includeTrust, includeSoleProp) => businessTypes.filter((businessType) => {
|
|
23316
|
-
if (businessType.id === "soleProprietorship") {
|
|
23317
|
-
return includeSoleProp;
|
|
23318
|
-
}
|
|
23319
|
-
return true;
|
|
23320
|
-
});
|
|
23321
|
-
const businessTypeSelectionValidationRules = {
|
|
23322
|
-
businessType: {
|
|
23323
|
-
modes: ["blur"],
|
|
23324
|
-
validate: (businessType) => !!businessType,
|
|
23325
|
-
errorMessage: "fieldIsRequired"
|
|
23326
|
-
},
|
|
23327
|
-
legalArrangement: {
|
|
23328
|
-
modes: ["blur"],
|
|
23329
|
-
validate: (legalArrangement) => !!legalArrangement,
|
|
23330
|
-
errorMessage: "fieldIsRequired"
|
|
23331
|
-
},
|
|
23332
|
-
trusteeType: {
|
|
23333
|
-
modes: ["blur"],
|
|
23334
|
-
validate: (trusteeType) => !!trusteeType,
|
|
23335
|
-
errorMessage: "fieldIsRequired"
|
|
23336
|
-
}
|
|
23337
|
-
};
|
|
23338
|
-
const businessTypeSelectionStepTitles = {
|
|
23339
|
-
[
|
|
23340
|
-
0
|
|
23341
|
-
/* BUSINESS_TYPE_SELECTION */
|
|
23342
|
-
]: "whatBestDescribesYourBusinessSetup",
|
|
23343
|
-
[
|
|
23344
|
-
1
|
|
23345
|
-
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
23346
|
-
]: "whichLegalArrangementDoesYourBusinessHave",
|
|
23347
|
-
[
|
|
23348
|
-
2
|
|
23349
|
-
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
23350
|
-
]: "sorryWeCantSetUpAnAccountForYou",
|
|
23351
|
-
[
|
|
23352
|
-
3
|
|
23353
|
-
/* CONFIRM_BUSINESS_SETUP_CHANGE */
|
|
23354
|
-
]: "changeYourBusinessSetup"
|
|
23355
|
-
};
|
|
23356
|
-
const BusinessTypeSelection = ({
|
|
23357
|
-
legalEntityResponse,
|
|
23358
|
-
accountHolder: accountHolder2,
|
|
23359
|
-
showTrustOption,
|
|
23360
|
-
showSolePropOption,
|
|
23361
|
-
onAccountHolderSelect,
|
|
23362
|
-
handleUpdateLegalEntity,
|
|
23363
|
-
taskHistory,
|
|
23364
|
-
setTaskHistory,
|
|
23365
|
-
onNavigateTo,
|
|
23366
|
-
baseTrackingPayload
|
|
23367
|
-
}) => {
|
|
23368
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
23369
|
-
const {
|
|
23370
|
-
i18n
|
|
23371
|
-
} = useI18nContext();
|
|
23372
|
-
const {
|
|
23373
|
-
showToast
|
|
23374
|
-
} = useToastContext();
|
|
23375
|
-
const [loadingStatus, setLoadingStatus] = useState();
|
|
23376
|
-
const [currentStep, setCurrentStep] = useState(
|
|
23377
|
-
0
|
|
23378
|
-
/* BUSINESS_TYPE_SELECTION */
|
|
23379
|
-
);
|
|
23380
|
-
const [formSchema, setFormSchema] = useState(["businessType"]);
|
|
23381
|
-
const hasBackButton = [
|
|
23382
|
-
1,
|
|
23383
|
-
2
|
|
23384
|
-
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
23385
|
-
].includes(currentStep);
|
|
23386
|
-
const isPrevTaskTasksOverview = taskHistory[taskHistory.length - 2] === TaskTypes.TASKS_OVERVIEW;
|
|
23387
|
-
const businessTypeItems = getBusinessTypes(showTrustOption, showSolePropOption);
|
|
23388
|
-
const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
|
|
23389
|
-
const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
|
|
23390
|
-
const defaultBusinessType = getBusinessType(businessTypeItems, accountHolder2, legalEntityResponse == null ? void 0 : legalEntityResponse.type, (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type);
|
|
23391
|
-
const getDefaultLegalArrangementSelection = () => legalArrangementItems.find((item) => item.id === getDefaultLegalArrangementOrSuborganizationType(legalEntityResponse, accountHolder2));
|
|
23392
|
-
const defaultLegalArrangementType = getDefaultLegalArrangementSelection();
|
|
23393
|
-
const defaultTrusteeType = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? trusteeTypeItems[0] : trusteeTypeItems[1];
|
|
23394
|
-
const {
|
|
23395
|
-
handleChangeFor,
|
|
23396
|
-
triggerValidation,
|
|
23397
|
-
data,
|
|
23398
|
-
valid,
|
|
23399
|
-
errors,
|
|
23400
|
-
isValid
|
|
23401
|
-
} = useForm({
|
|
23402
|
-
schema: formSchema,
|
|
23403
|
-
defaultData: {
|
|
23404
|
-
businessType: defaultBusinessType,
|
|
23405
|
-
legalArrangement: defaultLegalArrangementType,
|
|
23406
|
-
trusteeType: defaultTrusteeType
|
|
23407
|
-
},
|
|
23408
|
-
rules: businessTypeSelectionValidationRules
|
|
23409
|
-
});
|
|
23410
|
-
const newAccountHolder = ((_c = data.businessType) == null ? void 0 : _c.accountHolder) || ((_d = data.legalArrangement) == null ? void 0 : _d.accountHolder);
|
|
23411
|
-
const targetLegalArrangement = (_e = data.legalArrangement) == null ? void 0 : _e.id;
|
|
23412
|
-
const targetLegalEntityType = getTargetLegalEntityType((_f = data.businessType) == null ? void 0 : _f.id, (_g = data.legalArrangement) == null ? void 0 : _g.id, (_h = data.trusteeType) == null ? void 0 : _h.id, legalEntityResponse == null ? void 0 : legalEntityResponse.type);
|
|
23413
|
-
const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
|
|
23414
|
-
const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
|
|
23415
|
-
useEffect(() => {
|
|
23416
|
-
var _a2, _b2;
|
|
23417
|
-
setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
|
|
23418
|
-
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
23419
|
-
useEffect(() => {
|
|
23420
|
-
userEvents.addPageView("Entity Selection");
|
|
23421
|
-
const startDropOffTrackingEvent = () => {
|
|
23422
|
-
userEvents.addEvent("Started legal entity selection", {
|
|
23423
|
-
segmentation: baseTrackingPayload
|
|
23424
|
-
});
|
|
23425
|
-
};
|
|
23426
|
-
const stopDropOffTrackingEvent = () => {
|
|
23427
|
-
userEvents.addEvent("Drop off at legal entity selection", {
|
|
23428
|
-
segmentation: baseTrackingPayload
|
|
23429
|
-
});
|
|
23430
|
-
};
|
|
23431
|
-
startDropOffTrackingEvent();
|
|
23432
|
-
window.addEventListener("focus", startDropOffTrackingEvent);
|
|
23433
|
-
window.addEventListener("blur", stopDropOffTrackingEvent);
|
|
23434
|
-
return () => {
|
|
23435
|
-
window.removeEventListener("focus", startDropOffTrackingEvent);
|
|
23436
|
-
window.removeEventListener("blur", stopDropOffTrackingEvent);
|
|
23437
|
-
};
|
|
23438
|
-
}, []);
|
|
23439
|
-
const handleNextClick = async () => {
|
|
23440
|
-
var _a2;
|
|
23441
|
-
if (loadingStatus === "loading")
|
|
23442
|
-
return;
|
|
23443
|
-
triggerValidation();
|
|
23444
|
-
if (isValid) {
|
|
23445
|
-
if (((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement") {
|
|
23446
|
-
if (currentStep !== 1) {
|
|
23447
|
-
setCurrentStep(
|
|
23448
|
-
1
|
|
23449
|
-
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
23450
|
-
);
|
|
23451
|
-
return;
|
|
23452
|
-
}
|
|
23453
|
-
if (targetLegalArrangement === "partnershipUnincorporated") {
|
|
23454
|
-
setCurrentStep(
|
|
23455
|
-
2
|
|
23456
|
-
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
23457
|
-
);
|
|
23458
|
-
return;
|
|
23459
|
-
}
|
|
23460
|
-
}
|
|
23461
|
-
if (newAccountHolder !== accountHolder2 || isLegalEntityTypeChanging) {
|
|
23462
|
-
if (accountHolder2) {
|
|
23463
|
-
setCurrentStep(
|
|
23464
|
-
3
|
|
23465
|
-
/* CONFIRM_BUSINESS_SETUP_CHANGE */
|
|
23466
|
-
);
|
|
23467
|
-
return;
|
|
23468
|
-
}
|
|
23469
|
-
await updateLegalEntityAndSelectAccountHolder();
|
|
23470
|
-
userEvents.addEvent("Saved legal entity selection", {
|
|
23471
|
-
segmentation: baseTrackingPayload
|
|
23472
|
-
});
|
|
23473
|
-
} else {
|
|
23474
|
-
onAccountHolderSelect(newAccountHolder);
|
|
23475
|
-
}
|
|
23476
|
-
if (isLegalArrangementChanging) {
|
|
23477
|
-
await updateLegalEntityAndSelectAccountHolder();
|
|
23478
|
-
userEvents.addEvent("Saved legal entity selection", {
|
|
23479
|
-
segmentation: baseTrackingPayload
|
|
23480
|
-
});
|
|
23481
|
-
}
|
|
23482
|
-
}
|
|
23483
|
-
};
|
|
23484
|
-
const updateLegalEntityAndSelectAccountHolder = async () => {
|
|
23485
|
-
try {
|
|
23486
|
-
if (isLegalEntityTypeChanging) {
|
|
23487
|
-
setLoadingStatus("loading");
|
|
23488
|
-
const updateLegalEntityPayload = {
|
|
23489
|
-
type: targetLegalEntityType
|
|
23490
|
-
};
|
|
23491
|
-
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
23492
|
-
if (targetLegalEntityType === LegalEntityType.ORGANIZATION && targetLegalEntityType) {
|
|
23493
|
-
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
|
|
23494
|
-
organization: {
|
|
23495
|
-
type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
|
|
23496
|
-
}
|
|
23497
|
-
}, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
23498
|
-
}
|
|
23499
|
-
}
|
|
23500
|
-
if (isLegalArrangementChanging) {
|
|
23501
|
-
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
|
|
23502
|
-
organization: {
|
|
23503
|
-
type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
|
|
23504
|
-
}
|
|
23505
|
-
}, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
23506
|
-
}
|
|
23507
|
-
} catch (e) {
|
|
23508
|
-
showToast({
|
|
23509
|
-
label: i18n.get("failedToUpdateDetails"),
|
|
23510
|
-
type: ToastType.ERROR
|
|
23511
|
-
});
|
|
23512
|
-
} finally {
|
|
23513
|
-
setLoadingStatus("success");
|
|
23514
|
-
onAccountHolderSelect(newAccountHolder);
|
|
23515
|
-
}
|
|
23516
|
-
};
|
|
23517
|
-
const handleBackClick = () => {
|
|
23518
|
-
if (currentStep === 2) {
|
|
23519
|
-
setCurrentStep(
|
|
23520
|
-
1
|
|
23521
|
-
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
23522
|
-
);
|
|
23523
|
-
}
|
|
23524
|
-
if (currentStep === 1) {
|
|
23525
|
-
setCurrentStep(
|
|
23526
|
-
0
|
|
23527
|
-
/* BUSINESS_TYPE_SELECTION */
|
|
23528
|
-
);
|
|
23529
|
-
}
|
|
23530
|
-
if (currentStep === 0 && isPrevTaskTasksOverview) {
|
|
23531
|
-
setTaskHistory(taskHistory.slice(taskHistory.length - 2));
|
|
23532
|
-
onNavigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
23533
|
-
}
|
|
23534
|
-
};
|
|
23535
|
-
const isWeCannotSetUpAccountStep = currentStep === 2;
|
|
23536
|
-
return jsx(LoaderWrapper, {
|
|
23537
|
-
status: loadingStatus,
|
|
23538
|
-
formOpacityWhenLoading: 0.3,
|
|
23539
|
-
showSpinner: false,
|
|
23540
|
-
children: jsxs("div", {
|
|
23541
|
-
className: "adyen-kyc-business-type-selection",
|
|
23542
|
-
children: [jsxs("header", {
|
|
23543
|
-
className: "adl-u-margin-bottom-32",
|
|
23544
|
-
children: [jsx(Heading, {
|
|
23545
|
-
level: 2,
|
|
23546
|
-
children: i18n.get(businessTypeSelectionStepTitles[currentStep])
|
|
23547
|
-
}), currentStep === 3 && jsx(Heading, {
|
|
23548
|
-
level: "sub",
|
|
23549
|
-
children: i18n.get("someInformationWillNotBeSaved")
|
|
23550
|
-
})]
|
|
23551
|
-
}), currentStep === 0 && jsx(Field, {
|
|
23552
|
-
name: "businessType",
|
|
23553
|
-
useLabelElement: false,
|
|
23554
|
-
errorMessage: i18n.get((_i = errors.businessType) == null ? void 0 : _i.errorMessage),
|
|
23555
|
-
showErrorIconBottom: true,
|
|
23556
|
-
isValid: valid.businessType,
|
|
23557
|
-
children: (childProps) => jsx(RadioGroupCard, {
|
|
23558
|
-
...childProps,
|
|
23559
|
-
name: "businessType",
|
|
23560
|
-
items: businessTypeItems,
|
|
23561
|
-
selected: businessTypeItems.find((type) => {
|
|
23562
|
-
var _a2;
|
|
23563
|
-
return type.id === ((_a2 = data.businessType) == null ? void 0 : _a2.id);
|
|
23564
|
-
}),
|
|
23565
|
-
onSelect: (item) => handleChangeFor("businessType")(item)
|
|
23566
|
-
})
|
|
23567
|
-
}), currentStep === 1 && jsxs(Fragment, {
|
|
23568
|
-
children: [jsx(Field, {
|
|
23569
|
-
name: "legalArrangement",
|
|
23570
|
-
useLabelElement: false,
|
|
23571
|
-
errorMessage: i18n.get((_j = errors.legalArrangement) == null ? void 0 : _j.errorMessage),
|
|
23572
|
-
showErrorIconBottom: true,
|
|
23573
|
-
isValid: valid.legalArrangement,
|
|
23574
|
-
children: (childProps) => jsx(RadioGroupCard, {
|
|
23575
|
-
...childProps,
|
|
23576
|
-
name: "legalArrangement",
|
|
23577
|
-
items: legalArrangementItems,
|
|
23578
|
-
selected: legalArrangementItems.find((legalArrangementItem) => {
|
|
23579
|
-
var _a2;
|
|
23580
|
-
return legalArrangementItem.id === ((_a2 = data.legalArrangement) == null ? void 0 : _a2.id);
|
|
23581
|
-
}),
|
|
23582
|
-
onSelect: (item) => handleChangeFor("legalArrangement")(item)
|
|
23583
|
-
})
|
|
23584
|
-
}), ((_k = data.legalArrangement) == null ? void 0 : _k.id) === "aTrust" && jsx(Field, {
|
|
23585
|
-
name: "trusteeType",
|
|
23586
|
-
label: i18n.get("whatTypeOfTrusteeAreYou"),
|
|
23587
|
-
className: "adl-u-margin-top-32",
|
|
23588
|
-
useLabelElement: false,
|
|
23589
|
-
errorMessage: i18n.get((_l = errors.trusteeType) == null ? void 0 : _l.errorMessage),
|
|
23590
|
-
showErrorIconBottom: true,
|
|
23591
|
-
isValid: valid.trusteeType,
|
|
23592
|
-
children: (childProps) => jsx(RadioGroupCard, {
|
|
23593
|
-
...childProps,
|
|
23594
|
-
className: "adyen-kyc-trustee-type-radio-group-card",
|
|
23595
|
-
name: "trusteeType",
|
|
23596
|
-
items: trusteeTypeItems,
|
|
23597
|
-
selected: trusteeTypeItems.find((type) => {
|
|
23598
|
-
var _a2;
|
|
23599
|
-
return type.id === ((_a2 = data.trusteeType) == null ? void 0 : _a2.id);
|
|
23600
|
-
}),
|
|
23601
|
-
onSelect: (item) => handleChangeFor("trusteeType")(item)
|
|
23602
|
-
})
|
|
23603
|
-
})]
|
|
23604
|
-
}), isWeCannotSetUpAccountStep && jsxs(Fragment, {
|
|
23605
|
-
children: [jsx("p", {
|
|
23606
|
-
children: i18n.get("ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations")
|
|
23607
|
-
}), jsx("p", {
|
|
23608
|
-
className: "u-margin-top-32",
|
|
23609
|
-
children: i18n.get("needHelpYouCanAlwaysReachOutToCustomerSupport")
|
|
23610
|
-
})]
|
|
23611
|
-
}), currentStep === 3 ? jsxs("div", {
|
|
23612
|
-
className: "adyen-kyc-business-type-selection__confirm",
|
|
23613
|
-
children: [jsx(Button, {
|
|
23614
|
-
label: i18n.get("cancel"),
|
|
23615
|
-
secondary: true,
|
|
23616
|
-
onClick: () => setCurrentStep(
|
|
23617
|
-
0
|
|
23618
|
-
/* BUSINESS_TYPE_SELECTION */
|
|
23619
|
-
),
|
|
23620
|
-
type: "button"
|
|
23621
|
-
}), jsx(Button, {
|
|
23622
|
-
label: i18n.get("yesChange"),
|
|
23623
|
-
onClick: () => updateLegalEntityAndSelectAccountHolder(),
|
|
23624
|
-
type: "button"
|
|
23625
|
-
})]
|
|
23626
|
-
}) : jsxs("div", {
|
|
23627
|
-
className: "adyen-kyc-business-type-selection__nav",
|
|
23628
|
-
children: [!isWeCannotSetUpAccountStep && jsx(Button, {
|
|
23629
|
-
label: i18n.get("next"),
|
|
23630
|
-
block: true,
|
|
23631
|
-
disabled: currentStep === 1 && !data.legalArrangement,
|
|
23632
|
-
onClick: handleNextClick,
|
|
23633
|
-
type: "button"
|
|
23634
|
-
}), (hasBackButton || isPrevTaskTasksOverview) && jsxs("button", {
|
|
23635
|
-
onClick: handleBackClick,
|
|
23636
|
-
type: "button",
|
|
23637
|
-
"aria-label": i18n.get("back"),
|
|
23638
|
-
className: cx("adl-u-margin-top-16", "adl-u-display-flex", "adl-u-align-items-center", {
|
|
23639
|
-
"adl-button": isWeCannotSetUpAccountStep,
|
|
23640
|
-
"adl-button--block": isWeCannotSetUpAccountStep,
|
|
23641
|
-
"adl-link": !isWeCannotSetUpAccountStep,
|
|
23642
|
-
"adl-link--with-icon": !isWeCannotSetUpAccountStep
|
|
23643
|
-
}),
|
|
23644
|
-
children: [!isWeCannotSetUpAccountStep && jsx("span", {
|
|
23645
|
-
className: cx("adl-icon-chevron-left", " adl-u-margin-right-4", "adl-u-color-grey-40")
|
|
23646
|
-
}), jsx("span", {
|
|
23647
|
-
className: cx("adl-link__text", {
|
|
23648
|
-
"adl-u-color-grey-40": !isWeCannotSetUpAccountStep
|
|
23649
|
-
}),
|
|
23650
|
-
children: i18n.get("back")
|
|
23651
|
-
})]
|
|
23652
|
-
})]
|
|
23653
|
-
})]
|
|
23654
|
-
})
|
|
23655
|
-
});
|
|
23656
|
-
};
|
|
23657
|
-
const organizationTypesToSkipCompanyStructureForm = ["partnershipIncorporated", "associationIncorporated"];
|
|
23658
|
-
const getBusinessType = (businessTypeItems, accountHolder2, legalEntityType, companyTypesValue) => {
|
|
23659
|
-
const findBusinessType = (id2) => businessTypes.find((bt) => bt.id === id2);
|
|
23660
|
-
if (organizationTypesToSkipCompanyStructureForm.includes(companyTypesValue ?? "")) {
|
|
23661
|
-
return findBusinessType("legalArrangement");
|
|
23662
|
-
}
|
|
23663
|
-
if (accountHolder2) {
|
|
23664
|
-
if (["aTrust", "partnershipUnincorporated", "anAssociation"].includes(accountHolder2)) {
|
|
23665
|
-
return findBusinessType("legalArrangement");
|
|
23171
|
+
const organizationTypesToSkipCompanyStructureForm = ["partnershipIncorporated", "associationIncorporated"];
|
|
23172
|
+
const getBusinessType = (businessTypeItems, accountHolder2, legalEntityType, companyTypesValue) => {
|
|
23173
|
+
const findBusinessType = (id2) => businessTypeItems.find((bt) => bt.id === id2);
|
|
23174
|
+
if (organizationTypesToSkipCompanyStructureForm.includes(companyTypesValue ?? "")) {
|
|
23175
|
+
return findBusinessType("legalArrangement");
|
|
23176
|
+
}
|
|
23177
|
+
if (accountHolder2) {
|
|
23178
|
+
if (["aTrust", "partnershipUnincorporated", "anAssociation"].includes(accountHolder2)) {
|
|
23179
|
+
return findBusinessType("legalArrangement");
|
|
23666
23180
|
}
|
|
23667
23181
|
return businessTypeItems.find((businessTypeItem) => businessTypeItem.accountHolder === accountHolder2);
|
|
23668
23182
|
}
|
|
@@ -23673,6 +23187,67 @@ const getBusinessType = (businessTypeItems, accountHolder2, legalEntityType, com
|
|
|
23673
23187
|
return findBusinessType("individual");
|
|
23674
23188
|
}
|
|
23675
23189
|
};
|
|
23190
|
+
const businessTypes = [{
|
|
23191
|
+
id: "individual",
|
|
23192
|
+
accountHolder: "myName",
|
|
23193
|
+
name: "individual",
|
|
23194
|
+
description: "youAreNotSoleProprietorAndUseBankAccount"
|
|
23195
|
+
}, {
|
|
23196
|
+
id: "soleProprietorship",
|
|
23197
|
+
accountHolder: "mySoleProprietorName",
|
|
23198
|
+
name: "soleProprietorship",
|
|
23199
|
+
description: "youAreRegisteredSoleProprietorAndUseBankAccount"
|
|
23200
|
+
}, {
|
|
23201
|
+
id: "company",
|
|
23202
|
+
accountHolder: "theCompanyIWorkFor",
|
|
23203
|
+
name: "company",
|
|
23204
|
+
description: "youUseCompanyBankAccount"
|
|
23205
|
+
}];
|
|
23206
|
+
const legalArrangementBusinessType = {
|
|
23207
|
+
id: "legalArrangement",
|
|
23208
|
+
name: "partnershipOrAssociation",
|
|
23209
|
+
description: "youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation"
|
|
23210
|
+
};
|
|
23211
|
+
const getBusinessTypeOptions = (country2) => {
|
|
23212
|
+
const businessTypeOptionsWithSolePropConfig = country2 && SOLE_PROP_COUNTRIES.includes(country2) && businessTypes || businessTypes.filter((businessType) => businessType.id !== "soleProprietorship");
|
|
23213
|
+
return country2 && TRUST_COUNTRIES.includes(country2) ? [...businessTypeOptionsWithSolePropConfig, {
|
|
23214
|
+
...legalArrangementBusinessType,
|
|
23215
|
+
name: "trustPartnershipOrAssociation",
|
|
23216
|
+
description: "youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation"
|
|
23217
|
+
}] : [...businessTypeOptionsWithSolePropConfig, legalArrangementBusinessType];
|
|
23218
|
+
};
|
|
23219
|
+
const legalArrangementItems = [{
|
|
23220
|
+
id: "aTrust",
|
|
23221
|
+
accountHolder: "aTrust",
|
|
23222
|
+
name: "trust",
|
|
23223
|
+
description: "youAreTrusteeManagingTheTrustForBeneficiaries"
|
|
23224
|
+
}, {
|
|
23225
|
+
id: "partnershipIncorporated",
|
|
23226
|
+
accountHolder: "theCompanyIWorkFor",
|
|
23227
|
+
name: "partnershipIncorporated",
|
|
23228
|
+
description: "partnershipIncorporatedNewEntryFlowDescription"
|
|
23229
|
+
}, {
|
|
23230
|
+
id: "partnershipUnincorporated",
|
|
23231
|
+
accountHolder: "theCompanyIWorkFor",
|
|
23232
|
+
name: "partnershipUnincorporated",
|
|
23233
|
+
description: "partnershipUnincorporatedNewEntryFlowDescription"
|
|
23234
|
+
}, {
|
|
23235
|
+
id: "associationIncorporated",
|
|
23236
|
+
accountHolder: "theCompanyIWorkFor",
|
|
23237
|
+
name: "associationIncorporated",
|
|
23238
|
+
description: "groupOfPeopleActingTogetherForNonCommercialPurpose"
|
|
23239
|
+
}];
|
|
23240
|
+
const getLegalArrangementOptions = (country2) => legalArrangementItems.filter((legalArrangementItem) => legalArrangementItem.id !== "aTrust" || country2 && TRUST_COUNTRIES.includes(country2));
|
|
23241
|
+
const getSelectionOptions = (legalEntityResponse) => {
|
|
23242
|
+
var _a, _b, _c, _d;
|
|
23243
|
+
const country2 = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? (_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.residentialAddress) == null ? void 0 : _b.country : (_d = (_c = legalEntityResponse.organization) == null ? void 0 : _c.registeredAddress) == null ? void 0 : _d.country;
|
|
23244
|
+
const businessTypeOptions = getBusinessTypeOptions(country2);
|
|
23245
|
+
const legalArrangementOptions = getLegalArrangementOptions(country2);
|
|
23246
|
+
return {
|
|
23247
|
+
businessTypeOptions,
|
|
23248
|
+
legalArrangementOptions
|
|
23249
|
+
};
|
|
23250
|
+
};
|
|
23676
23251
|
const mapLegalArrangementOptionToCompanyTypesValue = (legalArrangement) => {
|
|
23677
23252
|
switch (legalArrangement) {
|
|
23678
23253
|
case "partnershipIncorporated":
|
|
@@ -23693,14 +23268,8 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
|
|
|
23693
23268
|
if (suborganizationType === CompanyTypesValue.INCORPORATED_ASSOCIATION) {
|
|
23694
23269
|
return "associationIncorporated";
|
|
23695
23270
|
}
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
return "aTrust";
|
|
23699
|
-
}
|
|
23700
|
-
return void 0;
|
|
23701
|
-
}
|
|
23702
|
-
const trust2 = entityAssociations.find((ea) => ea.entityType === LegalEntityType.TRUST);
|
|
23703
|
-
if (trust2) {
|
|
23271
|
+
const hasTrust = hasOwnEntityAssociationOfType(LegalEntityType.TRUST, entityAssociations, legalEntityResponse == null ? void 0 : legalEntityResponse.id);
|
|
23272
|
+
if (hasTrust || accountHolder2 === "aTrust") {
|
|
23704
23273
|
return "aTrust";
|
|
23705
23274
|
}
|
|
23706
23275
|
return void 0;
|
|
@@ -23717,6 +23286,12 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
|
|
|
23717
23286
|
}
|
|
23718
23287
|
return currentLegalEntityType;
|
|
23719
23288
|
};
|
|
23289
|
+
var ToastType = /* @__PURE__ */ ((ToastType2) => {
|
|
23290
|
+
ToastType2["LOADING"] = "loading";
|
|
23291
|
+
ToastType2["SUCCESS"] = "success";
|
|
23292
|
+
ToastType2["ERROR"] = "error";
|
|
23293
|
+
return ToastType2;
|
|
23294
|
+
})(ToastType || {});
|
|
23720
23295
|
const logger$e = createLogger("FormRouterContextProvider");
|
|
23721
23296
|
function FormRouterContextProvider({
|
|
23722
23297
|
children,
|
|
@@ -24336,6 +23911,20 @@ function CompanyDropinComponent({
|
|
|
24336
23911
|
})
|
|
24337
23912
|
});
|
|
24338
23913
|
}
|
|
23914
|
+
var CompanySearchEvents = /* @__PURE__ */ ((CompanySearchEvents2) => {
|
|
23915
|
+
CompanySearchEvents2["TASK_START"] = "CompanySearch_TaskStarted";
|
|
23916
|
+
CompanySearchEvents2["TASK_SUBMIT"] = "CompanySearch_TaskSubmitted";
|
|
23917
|
+
CompanySearchEvents2["TASK_SAVED"] = "CompanySearch_TaskSaved";
|
|
23918
|
+
CompanySearchEvents2["TASK_ERROR"] = "CompanySearch_TaskError";
|
|
23919
|
+
CompanySearchEvents2["DOCUMENTS_SAVED"] = "CompanySearch_DocumentsSaved";
|
|
23920
|
+
CompanySearchEvents2["DOCUMENTS_ERROR"] = "CompanySearch_DocumentsError";
|
|
23921
|
+
CompanySearchEvents2["NO_SEARCH_RESULTS"] = "CompanySearch_NoSearchResults";
|
|
23922
|
+
CompanySearchEvents2["TIN_MATCH"] = "CompanySearch_TinMatch";
|
|
23923
|
+
CompanySearchEvents2["TIN_NO_MATCH"] = "CompanySearch_TinNoMatch";
|
|
23924
|
+
CompanySearchEvents2["SELECTION_RESET"] = "CompanySearch_CompanySelectionReset";
|
|
23925
|
+
CompanySearchEvents2["SELECTION_ERROR"] = "CompanySearch_CompanySelectionError";
|
|
23926
|
+
return CompanySearchEvents2;
|
|
23927
|
+
})(CompanySearchEvents || {});
|
|
24339
23928
|
const logger$d = createLogger("useCompanySearch");
|
|
24340
23929
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
24341
23930
|
function useCompanySearch({
|
|
@@ -24346,6 +23935,7 @@ function useCompanySearch({
|
|
|
24346
23935
|
taxIdentificationNumber: taxIdentificationNumber2,
|
|
24347
23936
|
canVerify,
|
|
24348
23937
|
limit = 15,
|
|
23938
|
+
baseTrackingPayload,
|
|
24349
23939
|
setKompanyAddress,
|
|
24350
23940
|
handleChangeFor,
|
|
24351
23941
|
handleCompanyIndexSearch,
|
|
@@ -24456,6 +24046,11 @@ function useCompanySearch({
|
|
|
24456
24046
|
});
|
|
24457
24047
|
if (!matched) {
|
|
24458
24048
|
setStatus("error");
|
|
24049
|
+
userEvents.addEvent(CompanySearchEvents.TIN_NO_MATCH, {
|
|
24050
|
+
segmentation: {
|
|
24051
|
+
...baseTrackingPayload
|
|
24052
|
+
}
|
|
24053
|
+
});
|
|
24459
24054
|
return setError({
|
|
24460
24055
|
message: "TIN does not match the selected company",
|
|
24461
24056
|
response: {
|
|
@@ -24463,6 +24058,11 @@ function useCompanySearch({
|
|
|
24463
24058
|
}
|
|
24464
24059
|
});
|
|
24465
24060
|
}
|
|
24061
|
+
userEvents.addEvent(CompanySearchEvents.TIN_MATCH, {
|
|
24062
|
+
segmentation: {
|
|
24063
|
+
...baseTrackingPayload
|
|
24064
|
+
}
|
|
24065
|
+
});
|
|
24466
24066
|
const companyData = isLastUpdateDateCompliant(company2) ? await handleGetCompanyDataset({
|
|
24467
24067
|
companyId: company2.id,
|
|
24468
24068
|
country: country2
|
|
@@ -24481,7 +24081,7 @@ function useCompanySearch({
|
|
|
24481
24081
|
} finally {
|
|
24482
24082
|
setStatus((prevStatus) => prevStatus !== "error" ? "loaded" : prevStatus);
|
|
24483
24083
|
}
|
|
24484
|
-
}, [
|
|
24084
|
+
}, [handleVerifyTin, handleGetCompanyDataset, handleRefreshCompanyDataset, canVerify, country2, stateOrProvince2, baseTrackingPayload]);
|
|
24485
24085
|
const reset = useCallback(() => {
|
|
24486
24086
|
setStatus("loading");
|
|
24487
24087
|
setSelectedCompanyId(void 0);
|
|
@@ -24510,7 +24110,7 @@ function useCompanySearch({
|
|
|
24510
24110
|
resultsLimit: limit
|
|
24511
24111
|
})) == null ? void 0 : _a.catch((e) => logger$d.error(e));
|
|
24512
24112
|
}
|
|
24513
|
-
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
|
|
24113
|
+
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify, baseTrackingPayload]);
|
|
24514
24114
|
useEffect(() => {
|
|
24515
24115
|
setVerifiedCompany(void 0);
|
|
24516
24116
|
setSelectedCompanyId(void 0);
|
|
@@ -24531,6 +24131,31 @@ function useCompanySearch({
|
|
|
24531
24131
|
reset
|
|
24532
24132
|
};
|
|
24533
24133
|
}
|
|
24134
|
+
const mapOrganizationTypeToCompanyType = (organizationType) => {
|
|
24135
|
+
switch (organizationType) {
|
|
24136
|
+
case "BUSINESS":
|
|
24137
|
+
return CompanyTypesValue.PRIVATE_COMPANY;
|
|
24138
|
+
case "NON_PROFIT":
|
|
24139
|
+
return CompanyTypesValue.NON_PROFIT_OR_CHARITABLE;
|
|
24140
|
+
case "PUBLIC_COMPANY":
|
|
24141
|
+
case "LISTED_PUBLIC_COMPANY":
|
|
24142
|
+
return CompanyTypesValue.PUBLIC_COMPANY;
|
|
24143
|
+
case "UNLISTED_PUBLIC_COMPANY":
|
|
24144
|
+
return CompanyTypesValue.UNLISTED_PUBLIC_COMPANY;
|
|
24145
|
+
case "GOVERNMENTAL_ORGANIZATION":
|
|
24146
|
+
return CompanyTypesValue.GOVERNMENTAL_ORGANIZATION;
|
|
24147
|
+
case "SOLE_PROPRIETOR":
|
|
24148
|
+
return CompanyTypesValue.SOLE_PROPRIETORSHIP;
|
|
24149
|
+
case "PARTNERSHIP_INCORPORATED":
|
|
24150
|
+
return CompanyTypesValue.INCORPORATED_PARTNERSHIP;
|
|
24151
|
+
case "ASSOCIATION_INCORPORATED":
|
|
24152
|
+
return CompanyTypesValue.INCORPORATED_ASSOCIATION;
|
|
24153
|
+
case "OTHER":
|
|
24154
|
+
case "PARTNERSHIP":
|
|
24155
|
+
default:
|
|
24156
|
+
return void 0;
|
|
24157
|
+
}
|
|
24158
|
+
};
|
|
24534
24159
|
const mapCompanyDataResponseToFormSchema = (company2) => ({
|
|
24535
24160
|
companyBasics: {
|
|
24536
24161
|
country: company2.country,
|
|
@@ -24542,13 +24167,13 @@ const mapCompanyDataResponseToFormSchema = (company2) => ({
|
|
|
24542
24167
|
address: company2.street,
|
|
24543
24168
|
stateOrProvince: company2.state,
|
|
24544
24169
|
country: company2.country,
|
|
24545
|
-
postalCode: company2.zipcode
|
|
24170
|
+
postalCode: company2.zipcode,
|
|
24171
|
+
city: company2.city
|
|
24546
24172
|
}
|
|
24547
24173
|
},
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
// },
|
|
24174
|
+
companyStructure: {
|
|
24175
|
+
entityType: mapOrganizationTypeToCompanyType(company2.organizationType)
|
|
24176
|
+
},
|
|
24552
24177
|
companyOtherDetails: {
|
|
24553
24178
|
registrationNumber: company2.registrationNumber
|
|
24554
24179
|
}
|
|
@@ -24801,6 +24426,7 @@ function CompanyLookup({
|
|
|
24801
24426
|
country: country2,
|
|
24802
24427
|
stateOrProvince: stateOrProvince2,
|
|
24803
24428
|
taxInformationNumber: taxInformationNumber2,
|
|
24429
|
+
baseTrackingPayload,
|
|
24804
24430
|
setLoading,
|
|
24805
24431
|
setKompanyAddress,
|
|
24806
24432
|
setKompanyVerifiedData,
|
|
@@ -24831,6 +24457,7 @@ function CompanyLookup({
|
|
|
24831
24457
|
stateOrProvince: stateOrProvince2,
|
|
24832
24458
|
taxIdentificationNumber: taxInformationNumber2,
|
|
24833
24459
|
canVerify,
|
|
24460
|
+
baseTrackingPayload,
|
|
24834
24461
|
setKompanyAddress,
|
|
24835
24462
|
handleChangeFor,
|
|
24836
24463
|
handleCompanyIndexSearch,
|
|
@@ -24839,7 +24466,19 @@ function CompanyLookup({
|
|
|
24839
24466
|
handleRefreshCompanyDataset,
|
|
24840
24467
|
handleVerifyTin
|
|
24841
24468
|
});
|
|
24842
|
-
const hasInternalError = ((
|
|
24469
|
+
const hasInternalError = useMemo$1(() => {
|
|
24470
|
+
var _a2;
|
|
24471
|
+
const isInternal = ((_a2 = error == null ? void 0 : error.response) == null ? void 0 : _a2.status) === 500;
|
|
24472
|
+
if (isInternal) {
|
|
24473
|
+
userEvents.addEvent(CompanySearchEvents.SELECTION_ERROR, {
|
|
24474
|
+
segmentation: {
|
|
24475
|
+
...baseTrackingPayload,
|
|
24476
|
+
message: error == null ? void 0 : error.message
|
|
24477
|
+
}
|
|
24478
|
+
});
|
|
24479
|
+
}
|
|
24480
|
+
return isInternal;
|
|
24481
|
+
}, [baseTrackingPayload, (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status]);
|
|
24843
24482
|
const displaySkeleton = status === "loading" && !selectedCompanyId;
|
|
24844
24483
|
const displaySearchResults = Boolean(results == null ? void 0 : results.length);
|
|
24845
24484
|
const companyLookupClasses = status === "idle" || !canVerify ? "adyen-kyc-company-lookup adyen-kyc-company-lookup--hidden" : "adyen-kyc-company-lookup";
|
|
@@ -24853,6 +24492,14 @@ function CompanyLookup({
|
|
|
24853
24492
|
setKompanyVerifiedData(void 0);
|
|
24854
24493
|
setKompanyAddress(void 0);
|
|
24855
24494
|
}, [setKompanyAddress, setKompanyVerifiedData, verifiedCompany]);
|
|
24495
|
+
const resetSelection = () => {
|
|
24496
|
+
userEvents.addEvent(CompanySearchEvents.SELECTION_RESET, {
|
|
24497
|
+
segmentation: {
|
|
24498
|
+
...baseTrackingPayload
|
|
24499
|
+
}
|
|
24500
|
+
});
|
|
24501
|
+
return reset();
|
|
24502
|
+
};
|
|
24856
24503
|
useEffect$1(() => {
|
|
24857
24504
|
if (mappedData == null ? void 0 : mappedData.companyBasics) {
|
|
24858
24505
|
entriesOf(mappedData.companyBasics).forEach(([field, data]) => {
|
|
@@ -24861,6 +24508,17 @@ function CompanyLookup({
|
|
|
24861
24508
|
}
|
|
24862
24509
|
}, [mappedData, handleChangeFor]);
|
|
24863
24510
|
useEffect$1(() => status === "loading" ? setLoading(true) : setLoading(false), [status]);
|
|
24511
|
+
useEffect$1(() => {
|
|
24512
|
+
if (results && results.length < 1) {
|
|
24513
|
+
userEvents.addEvent(CompanySearchEvents.NO_SEARCH_RESULTS, {
|
|
24514
|
+
segmentation: {
|
|
24515
|
+
...baseTrackingPayload,
|
|
24516
|
+
companyName: legalCompanyName2,
|
|
24517
|
+
state: stateOrProvince2
|
|
24518
|
+
}
|
|
24519
|
+
});
|
|
24520
|
+
}
|
|
24521
|
+
}, [results]);
|
|
24864
24522
|
return jsxs("div", {
|
|
24865
24523
|
name: "company-lookup-component",
|
|
24866
24524
|
className: companyLookupClasses,
|
|
@@ -24871,7 +24529,7 @@ function CompanyLookup({
|
|
|
24871
24529
|
hasInternalError,
|
|
24872
24530
|
selectedCompanyId,
|
|
24873
24531
|
verifiedCompany,
|
|
24874
|
-
reset,
|
|
24532
|
+
reset: resetSelection,
|
|
24875
24533
|
retrySearch
|
|
24876
24534
|
}), displaySkeleton && jsx(Skeleton, {
|
|
24877
24535
|
quantity: 3
|
|
@@ -25065,6 +24723,7 @@ function CompanyBasics({
|
|
|
25065
24723
|
handleVerifyTin,
|
|
25066
24724
|
country: country2,
|
|
25067
24725
|
isTopLevelEntity,
|
|
24726
|
+
baseTrackingPayload,
|
|
25068
24727
|
kompanyVerifiedData,
|
|
25069
24728
|
setKompanyAddress,
|
|
25070
24729
|
setKompanyVerifiedData
|
|
@@ -25230,6 +24889,7 @@ function CompanyBasics({
|
|
|
25230
24889
|
country: formData.country,
|
|
25231
24890
|
stateOrProvince: formData.stateOrProvince,
|
|
25232
24891
|
taxInformationNumber: currentCountryTaxIdNumber,
|
|
24892
|
+
baseTrackingPayload,
|
|
25233
24893
|
handleChangeFor,
|
|
25234
24894
|
setLoading,
|
|
25235
24895
|
setKompanyAddress,
|
|
@@ -25334,90 +24994,6 @@ const DateOfIncorporationFieldValidation = () => ({
|
|
|
25334
24994
|
errorMessage: "invalidDateOfIncorporation"
|
|
25335
24995
|
}]
|
|
25336
24996
|
});
|
|
25337
|
-
const STOCK_EXCHANGE_MIC_FIELD = ["stockExchangeMIC"];
|
|
25338
|
-
function StockExchangeMICField({
|
|
25339
|
-
data,
|
|
25340
|
-
valid,
|
|
25341
|
-
errors,
|
|
25342
|
-
labels: labels2,
|
|
25343
|
-
helperText,
|
|
25344
|
-
placeholders,
|
|
25345
|
-
readonly,
|
|
25346
|
-
handleChangeFor
|
|
25347
|
-
}) {
|
|
25348
|
-
return jsx(Field, {
|
|
25349
|
-
name: "stockExchangeMIC",
|
|
25350
|
-
label: labels2.stockExchangeMIC,
|
|
25351
|
-
helper: helperText == null ? void 0 : helperText.stockExchangeMIC,
|
|
25352
|
-
classNameModifiers: ["stockExchangeMIC"],
|
|
25353
|
-
errorMessage: errors.stockExchangeMIC,
|
|
25354
|
-
isValid: valid.stockExchangeMIC,
|
|
25355
|
-
children: (childProps) => jsx(InputText, {
|
|
25356
|
-
...childProps,
|
|
25357
|
-
"aria-required": true,
|
|
25358
|
-
"aria-label": labels2.stockExchangeMIC,
|
|
25359
|
-
"aria-invalid": !valid.stockExchangeMIC,
|
|
25360
|
-
name: "stockExchangeMIC",
|
|
25361
|
-
value: data.stockExchangeMIC,
|
|
25362
|
-
placeholder: placeholders == null ? void 0 : placeholders.stockExchangeMIC,
|
|
25363
|
-
readonly,
|
|
25364
|
-
classNameModifiers: ["stockExchangeMIC"],
|
|
25365
|
-
onInput: handleChangeFor("stockExchangeMIC", "input"),
|
|
25366
|
-
onBlur: handleChangeFor("stockExchangeMIC", "blur")
|
|
25367
|
-
})
|
|
25368
|
-
});
|
|
25369
|
-
}
|
|
25370
|
-
const StockExchangeMICFieldValidation = () => ({
|
|
25371
|
-
stockExchangeMIC: [{
|
|
25372
|
-
modes: ["blur"],
|
|
25373
|
-
validate: (stockExchangeMIC2) => !isEmpty(stockExchangeMIC2),
|
|
25374
|
-
errorMessage: "fieldIsRequired"
|
|
25375
|
-
}]
|
|
25376
|
-
});
|
|
25377
|
-
const STOCK_ISIN_FIELD = ["stockISIN"];
|
|
25378
|
-
function StockISINField({
|
|
25379
|
-
data,
|
|
25380
|
-
valid,
|
|
25381
|
-
errors,
|
|
25382
|
-
labels: labels2,
|
|
25383
|
-
helperText,
|
|
25384
|
-
placeholders,
|
|
25385
|
-
readonly,
|
|
25386
|
-
handleChangeFor
|
|
25387
|
-
}) {
|
|
25388
|
-
return jsx(Field, {
|
|
25389
|
-
name: "stockISIN",
|
|
25390
|
-
label: labels2.stockISIN,
|
|
25391
|
-
helper: helperText == null ? void 0 : helperText.stockISIN,
|
|
25392
|
-
classNameModifiers: ["stockISIN"],
|
|
25393
|
-
errorMessage: errors.stockISIN,
|
|
25394
|
-
isValid: valid.stockISIN,
|
|
25395
|
-
children: (childProps) => jsx(InputText, {
|
|
25396
|
-
...childProps,
|
|
25397
|
-
"aria-required": true,
|
|
25398
|
-
"aria-label": labels2.stockISIN,
|
|
25399
|
-
"aria-invalid": !valid.stockISIN,
|
|
25400
|
-
name: "stockISIN",
|
|
25401
|
-
value: data.stockISIN,
|
|
25402
|
-
placeholder: placeholders == null ? void 0 : placeholders.stockISIN,
|
|
25403
|
-
readonly,
|
|
25404
|
-
classNameModifiers: ["stockISIN"],
|
|
25405
|
-
onInput: handleChangeFor("stockISIN", "input"),
|
|
25406
|
-
onBlur: handleChangeFor("stockISIN", "blur")
|
|
25407
|
-
})
|
|
25408
|
-
});
|
|
25409
|
-
}
|
|
25410
|
-
const StockISINFieldValidation = () => ({
|
|
25411
|
-
stockISIN: [{
|
|
25412
|
-
modes: ["blur"],
|
|
25413
|
-
validate: (stockISIN2) => !isEmpty(stockISIN2),
|
|
25414
|
-
errorMessage: "fieldIsRequired"
|
|
25415
|
-
}, {
|
|
25416
|
-
modes: ["blur"],
|
|
25417
|
-
validate: (input) => exactLength(input, 12),
|
|
25418
|
-
errorMessage: "validationPleaseEnterAValidStockISIN"
|
|
25419
|
-
}]
|
|
25420
|
-
});
|
|
25421
24997
|
const TRADING_NAME_FIELD = ["tradingName", "sameNameAsLegalName"];
|
|
25422
24998
|
function TradingNameField({
|
|
25423
24999
|
data,
|
|
@@ -25569,9 +25145,6 @@ function CompanyOtherDetails({
|
|
|
25569
25145
|
const {
|
|
25570
25146
|
i18n
|
|
25571
25147
|
} = useI18nContext();
|
|
25572
|
-
const {
|
|
25573
|
-
isExperimentEnabled
|
|
25574
|
-
} = useExperimentsContext();
|
|
25575
25148
|
const {
|
|
25576
25149
|
sliceData,
|
|
25577
25150
|
updateStateSlice
|
|
@@ -25579,7 +25152,6 @@ function CompanyOtherDetails({
|
|
|
25579
25152
|
const [registrationNumberType, setRegistrationNumberType] = useState$1((data == null ? void 0 : data.registrationNumber) ? inferCompanyRegistrationNumberType(data == null ? void 0 : data.registrationNumber, country2, companyType2) : (_a = companyRegistrationNumberOptions[country2]) == null ? void 0 : _a[0].id);
|
|
25580
25153
|
const existingTaxIdentificationNumber = (data == null ? void 0 : data.vatNumber) ?? ((_c = (_b = data == null ? void 0 : data.taxInformation) == null ? void 0 : _b.find((taxId2) => taxId2.country === country2)) == null ? void 0 : _c.number);
|
|
25581
25154
|
const [taxIdentificationNumberType, setTaxIdentificationNumberType] = useState$1(existingTaxIdentificationNumber ? inferTaxIdNumberType(existingTaxIdentificationNumber, country2) : (_d = taxIdNumberOptions[country2]) == null ? void 0 : _d[0].id);
|
|
25582
|
-
const isTypeSelectorEnabled = isExperimentEnabled(ExperimentNames.EnableIdentityFieldTypeSelector);
|
|
25583
25155
|
const directChildFields = companyOtherDetailsFields.filter((field) => ["tradingName", "sameNameAsLegalName", "stockExchangeMIC", "stockISIN", "dateOfIncorporation"].includes(field));
|
|
25584
25156
|
const schema = useMemo$1(() => !(sliceData == null ? void 0 : sliceData.exemptedFromVat) ? (requiredFields == null ? void 0 : requiredFields.filter((field) => field !== "vatAbsenceReason")) ?? directChildFields : (requiredFields == null ? void 0 : requiredFields.filter((field) => field !== "vatNumber")) ?? directChildFields, [requiredFields, directChildFields, sliceData]);
|
|
25585
25157
|
const initialFormUtilsProps = useMemo$1(() => ({
|
|
@@ -25614,21 +25186,9 @@ function CompanyOtherDetails({
|
|
|
25614
25186
|
}
|
|
25615
25187
|
};
|
|
25616
25188
|
case "stockExchangeMIC":
|
|
25617
|
-
return
|
|
25618
|
-
...acc,
|
|
25619
|
-
validators: {
|
|
25620
|
-
...acc.validators,
|
|
25621
|
-
...StockExchangeMICFieldValidation()
|
|
25622
|
-
}
|
|
25623
|
-
};
|
|
25189
|
+
return mergeFieldMetadataIntoProps("stockExchangeMIC", stockExchangeMICFieldMetadata, acc);
|
|
25624
25190
|
case "stockISIN":
|
|
25625
|
-
return
|
|
25626
|
-
...acc,
|
|
25627
|
-
validators: {
|
|
25628
|
-
...acc.validators,
|
|
25629
|
-
...StockISINFieldValidation()
|
|
25630
|
-
}
|
|
25631
|
-
};
|
|
25191
|
+
return mergeFieldMetadataIntoProps("stockISIN", stockISINFieldMetadata, acc);
|
|
25632
25192
|
case "registrationNumber":
|
|
25633
25193
|
return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$8[country2], {
|
|
25634
25194
|
companyType: companyType2,
|
|
@@ -25712,7 +25272,7 @@ function CompanyOtherDetails({
|
|
|
25712
25272
|
handleChangeFor,
|
|
25713
25273
|
legalCompanyName: legalCompanyName2
|
|
25714
25274
|
})
|
|
25715
|
-
}),
|
|
25275
|
+
}), formUtils.isRequiredField("registrationNumber") && jsx(CompanyRegistrationNumberTypeSelector, {
|
|
25716
25276
|
companyType: companyType2,
|
|
25717
25277
|
country: country2,
|
|
25718
25278
|
setSelected: handleBusinessRegistrationNumberTypeChange,
|
|
@@ -25732,7 +25292,7 @@ function CompanyOtherDetails({
|
|
|
25732
25292
|
handleChangeFor,
|
|
25733
25293
|
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber")
|
|
25734
25294
|
})
|
|
25735
|
-
}),
|
|
25295
|
+
}), formUtils.isRequiredField("vatNumber") && jsx(TaxIdNumberTypeSelector, {
|
|
25736
25296
|
country: country2,
|
|
25737
25297
|
setSelected: handleTaxIdentificationNumberTypeChange,
|
|
25738
25298
|
selected: taxIdentificationNumberType
|
|
@@ -25788,6 +25348,8 @@ function CompanyOtherDetails({
|
|
|
25788
25348
|
errors: formUtils.getFieldErrors(formErrors, formFieldProblems, STOCK_EXCHANGE_MIC_FIELD),
|
|
25789
25349
|
labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
|
|
25790
25350
|
placeholders: formUtils.getFieldPlaceholders(STOCK_EXCHANGE_MIC_FIELD),
|
|
25351
|
+
mask: formUtils.getMask("stockExchangeMIC"),
|
|
25352
|
+
guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
|
|
25791
25353
|
readonly: formUtils.isReadOnly("stockExchangeMIC"),
|
|
25792
25354
|
handleChangeFor
|
|
25793
25355
|
})
|
|
@@ -25798,10 +25360,9 @@ function CompanyOtherDetails({
|
|
|
25798
25360
|
valid: formUtils.getFieldValid(formValid, STOCK_ISIN_FIELD),
|
|
25799
25361
|
errors: formUtils.getFieldErrors(formErrors, formFieldProblems, STOCK_ISIN_FIELD),
|
|
25800
25362
|
labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
|
|
25801
|
-
helperText: formUtils.getFieldHelperText(STOCK_ISIN_FIELD, country2 !== "US" ? {
|
|
25802
|
-
stockISIN: "stockISIN__helperText"
|
|
25803
|
-
} : void 0),
|
|
25804
25363
|
placeholders: formUtils.getFieldPlaceholders(STOCK_ISIN_FIELD),
|
|
25364
|
+
mask: formUtils.getMask("stockISIN"),
|
|
25365
|
+
guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
|
|
25805
25366
|
readonly: formUtils.isReadOnly("stockISIN"),
|
|
25806
25367
|
handleChangeFor
|
|
25807
25368
|
})
|
|
@@ -25829,6 +25390,7 @@ function CompanyStructure({
|
|
|
25829
25390
|
requiredFields,
|
|
25830
25391
|
kompanyVerifiedData
|
|
25831
25392
|
}) {
|
|
25393
|
+
var _a;
|
|
25832
25394
|
const {
|
|
25833
25395
|
i18n
|
|
25834
25396
|
} = useI18nContext();
|
|
@@ -25853,9 +25415,10 @@ function CompanyStructure({
|
|
|
25853
25415
|
labels: labels2,
|
|
25854
25416
|
requiredFields
|
|
25855
25417
|
}, i18n);
|
|
25418
|
+
const disabled = Boolean((_a = kompanyVerifiedData == null ? void 0 : kompanyVerifiedData.companyStructure) == null ? void 0 : _a.entityType) || formUtils.isReadOnly("entityType");
|
|
25856
25419
|
useEffect(() => {
|
|
25857
|
-
var
|
|
25858
|
-
if ((
|
|
25420
|
+
var _a2, _b;
|
|
25421
|
+
if ((_a2 = kompanyVerifiedData == null ? void 0 : kompanyVerifiedData.companyStructure) == null ? void 0 : _a2.entityType) {
|
|
25859
25422
|
handleChangeFor("entityType")((_b = kompanyVerifiedData == null ? void 0 : kompanyVerifiedData.companyStructure) == null ? void 0 : _b.entityType);
|
|
25860
25423
|
}
|
|
25861
25424
|
}, [kompanyVerifiedData]);
|
|
@@ -25890,7 +25453,8 @@ function CompanyStructure({
|
|
|
25890
25453
|
name: "entityType",
|
|
25891
25454
|
items: companyTypes,
|
|
25892
25455
|
selected: companyTypes.find((type) => type.id === (formData == null ? void 0 : formData.entityType)),
|
|
25893
|
-
readonly:
|
|
25456
|
+
readonly: disabled,
|
|
25457
|
+
isItemDisabled: () => disabled,
|
|
25894
25458
|
onSelect: (item) => handleChangeFor("entityType")(item.id)
|
|
25895
25459
|
})
|
|
25896
25460
|
})]
|
|
@@ -26028,6 +25592,83 @@ const formatDataForSummary = (data, forms2, labels2, i18n) => {
|
|
|
26028
25592
|
}
|
|
26029
25593
|
}, {});
|
|
26030
25594
|
};
|
|
25595
|
+
function Toast({
|
|
25596
|
+
label,
|
|
25597
|
+
subLabel,
|
|
25598
|
+
actionLabel,
|
|
25599
|
+
type,
|
|
25600
|
+
duration = 3500,
|
|
25601
|
+
onToastHide,
|
|
25602
|
+
onToastAction
|
|
25603
|
+
}) {
|
|
25604
|
+
const toastRef = useRef(null);
|
|
25605
|
+
const loading2 = type === ToastType.LOADING;
|
|
25606
|
+
const successToast = type === ToastType.SUCCESS;
|
|
25607
|
+
const labelId = getUniqueId("toast");
|
|
25608
|
+
const handleShow = useCallback(() => {
|
|
25609
|
+
var _a;
|
|
25610
|
+
return (_a = toastRef.current) == null ? void 0 : _a.classList.add("adl-toast--visible");
|
|
25611
|
+
}, []);
|
|
25612
|
+
const handleHide = useCallback(() => {
|
|
25613
|
+
var _a;
|
|
25614
|
+
(_a = toastRef.current) == null ? void 0 : _a.classList.remove("adl-toast--visible");
|
|
25615
|
+
onToastHide();
|
|
25616
|
+
}, [onToastHide]);
|
|
25617
|
+
useEffect(() => {
|
|
25618
|
+
handleShow();
|
|
25619
|
+
if (duration !== "indefinite") {
|
|
25620
|
+
setTimeout(() => handleHide(), duration);
|
|
25621
|
+
}
|
|
25622
|
+
}, [label, duration, handleHide, handleShow]);
|
|
25623
|
+
return jsxs("div", {
|
|
25624
|
+
ref: toastRef,
|
|
25625
|
+
role: actionLabel ? "alertdialog" : "alert",
|
|
25626
|
+
className: "adl-toast",
|
|
25627
|
+
"aria-labelledby": labelId,
|
|
25628
|
+
children: [loading2 && jsx("div", {
|
|
25629
|
+
className: "adl-toast__loader",
|
|
25630
|
+
children: jsx("div", {
|
|
25631
|
+
className: "adl-loading-indicator adl-loading-indicator--small adl-loading-indicator--dark"
|
|
25632
|
+
})
|
|
25633
|
+
}), !loading2 && jsxs("div", {
|
|
25634
|
+
className: cx("adl-toast__status", {
|
|
25635
|
+
"adl-toast__status--success": successToast,
|
|
25636
|
+
"adl-toast__status--error": !successToast
|
|
25637
|
+
}),
|
|
25638
|
+
children: [successToast && jsx(Icon, {
|
|
25639
|
+
className: "adl-toast__status-icon",
|
|
25640
|
+
name: "checkmark"
|
|
25641
|
+
}), !successToast && jsx(Icon, {
|
|
25642
|
+
className: "adl-toast__status-icon",
|
|
25643
|
+
name: "cross"
|
|
25644
|
+
})]
|
|
25645
|
+
}), jsxs("div", {
|
|
25646
|
+
className: "adl-toast__message",
|
|
25647
|
+
children: [jsx("span", {
|
|
25648
|
+
id: labelId,
|
|
25649
|
+
className: "adl-toast__title",
|
|
25650
|
+
children: label
|
|
25651
|
+
}), actionLabel && jsx("button", {
|
|
25652
|
+
className: "adl-link adl-toast__action",
|
|
25653
|
+
title: "performAction",
|
|
25654
|
+
type: "button",
|
|
25655
|
+
onClick: onToastAction,
|
|
25656
|
+
children: actionLabel
|
|
25657
|
+
}), !loading2 && subLabel && jsx("span", {
|
|
25658
|
+
className: "adl-toast__subtitle",
|
|
25659
|
+
children: subLabel
|
|
25660
|
+
})]
|
|
25661
|
+
}), !loading2 && jsx("button", {
|
|
25662
|
+
className: "adl-toast__close",
|
|
25663
|
+
title: "close",
|
|
25664
|
+
type: "button",
|
|
25665
|
+
onClick: handleHide,
|
|
25666
|
+
children: jsx(Icon, {
|
|
25667
|
+
name: "cross"
|
|
25668
|
+
})
|
|
25669
|
+
})]
|
|
25670
|
+
});
|
|
25671
|
+
}
|
|
26031
25672
|
const mapCompanySearchDocumentToApiDocument = async (data, entityId) => {
|
|
26032
25673
|
var _a, _b, _c;
|
|
26033
25674
|
const {
|
|
@@ -26187,7 +25828,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26187
25828
|
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
|
26188
25829
|
formattedDocument.forEach((doc) => {
|
|
26189
25830
|
var _a;
|
|
26190
|
-
userEvents.addEvent(
|
|
25831
|
+
userEvents.addEvent(CompanySearchEvents.DOCUMENTS_SAVED, {
|
|
26191
25832
|
segmentation: {
|
|
26192
25833
|
...baseTrackingPayload,
|
|
26193
25834
|
documentType: doc.type,
|
|
@@ -26198,6 +25839,14 @@ function useCompanySearchTaskSubmit({
|
|
|
26198
25839
|
}
|
|
26199
25840
|
} catch (e) {
|
|
26200
25841
|
logger$c.error(e);
|
|
25842
|
+
userEvents.addEvent(CompanySearchEvents.DOCUMENTS_ERROR, {
|
|
25843
|
+
segmentation: {
|
|
25844
|
+
...baseTrackingPayload,
|
|
25845
|
+
errorCode: e.errorCode,
|
|
25846
|
+
errorMessage: e.title ?? e.message,
|
|
25847
|
+
errorType: "BE"
|
|
25848
|
+
}
|
|
25849
|
+
});
|
|
26201
25850
|
}
|
|
26202
25851
|
}, [baseTrackingPayload, documentUtils]);
|
|
26203
25852
|
const submit2 = useCallback(async ({
|
|
@@ -26218,7 +25867,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26218
25867
|
entityAssociations: filterOutUnwantedAssociationsIfRootLE(task, legalEntityResponse, entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type])
|
|
26219
25868
|
};
|
|
26220
25869
|
try {
|
|
26221
|
-
userEvents.addEvent(
|
|
25870
|
+
userEvents.addEvent(CompanySearchEvents.TASK_SUBMIT, {
|
|
26222
25871
|
segmentation: {
|
|
26223
25872
|
...baseTrackingPayload,
|
|
26224
25873
|
...trackingPayload
|
|
@@ -26233,7 +25882,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26233
25882
|
},
|
|
26234
25883
|
currentForms: forms2
|
|
26235
25884
|
})]);
|
|
26236
|
-
userEvents.addEvent(
|
|
25885
|
+
userEvents.addEvent(CompanySearchEvents.TASK_SAVED, {
|
|
26237
25886
|
segmentation: {
|
|
26238
25887
|
...baseTrackingPayload,
|
|
26239
25888
|
legalEntityId: legalEntity.id,
|
|
@@ -26267,7 +25916,7 @@ function useCompanySearchTaskSubmit({
|
|
|
26267
25916
|
});
|
|
26268
25917
|
}
|
|
26269
25918
|
logger$c.error(e);
|
|
26270
|
-
userEvents.addEvent(
|
|
25919
|
+
userEvents.addEvent(CompanySearchEvents.TASK_ERROR, {
|
|
26271
25920
|
segmentation: {
|
|
26272
25921
|
...baseTrackingPayload,
|
|
26273
25922
|
errorCode: e.errorCode,
|
|
@@ -26293,6 +25942,7 @@ function CompanySearchComponent(props) {
|
|
|
26293
25942
|
isTopLevelEntity,
|
|
26294
25943
|
activeForm,
|
|
26295
25944
|
problems,
|
|
25945
|
+
baseTrackingPayload,
|
|
26296
25946
|
handleAddressSearch,
|
|
26297
25947
|
handleFindAddress,
|
|
26298
25948
|
handleCompanyIndexSearch,
|
|
@@ -26315,6 +25965,7 @@ function CompanySearchComponent(props) {
|
|
|
26315
25965
|
heading: i18n.get(forms.companyBasics.formName),
|
|
26316
25966
|
country: country2,
|
|
26317
25967
|
isTopLevelEntity,
|
|
25968
|
+
baseTrackingPayload,
|
|
26318
25969
|
handleCompanyIndexSearch,
|
|
26319
25970
|
handleCompanyDeepSearch,
|
|
26320
25971
|
handleGetCompanyDataset,
|
|
@@ -26499,7 +26150,7 @@ function CompanySearchDropinComponent({
|
|
|
26499
26150
|
label: i18n.get("failedToFetchRelevantDocuments"),
|
|
26500
26151
|
type: ToastType.ERROR
|
|
26501
26152
|
}));
|
|
26502
|
-
}, [
|
|
26153
|
+
}, []);
|
|
26503
26154
|
const getConfigurationData = useCallback(() => getConfiguration2({
|
|
26504
26155
|
legalEntityType: LegalEntityType.ORGANIZATION,
|
|
26505
26156
|
capabilities: capabilities ?? Object.keys(legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities),
|
|
@@ -26587,7 +26238,7 @@ function CompanySearchDropinComponent({
|
|
|
26587
26238
|
});
|
|
26588
26239
|
useEffect(() => {
|
|
26589
26240
|
userEvents.addPageView("Company search dropin");
|
|
26590
|
-
userEvents.addEvent(
|
|
26241
|
+
userEvents.addEvent(CompanySearchEvents.TASK_START, {
|
|
26591
26242
|
segmentation: baseTrackingPayload
|
|
26592
26243
|
});
|
|
26593
26244
|
}, [baseTrackingPayload]);
|
|
@@ -26620,6 +26271,7 @@ function CompanySearchDropinComponent({
|
|
|
26620
26271
|
activeForm,
|
|
26621
26272
|
shouldValidate,
|
|
26622
26273
|
isTopLevelEntity: taskType === TaskTypes.COMPANY_SEARCH,
|
|
26274
|
+
baseTrackingPayload,
|
|
26623
26275
|
handleAddressSearch,
|
|
26624
26276
|
handleFindAddress,
|
|
26625
26277
|
handleCompanyIndexSearch,
|
|
@@ -27015,56 +26667,461 @@ const deleteUndefinedBeneficiary = async ({
|
|
|
27015
26667
|
undefinedBeneficiaryInfo: existingUndefinedBeneficiaries.filter((ub) => ub.reference !== undefinedBeneficiary2.reference)
|
|
27016
26668
|
}
|
|
27017
26669
|
};
|
|
27018
|
-
await handleUpdateLegalEntity(updatedTrust, trust2.id);
|
|
27019
|
-
};
|
|
27020
|
-
const exemptSettlorNamesTheSame = (existingSettlor, newSettlor) => JSON.stringify(existingSettlor.exemptSettlorName) === JSON.stringify(newSettlor.exemptSettlorName);
|
|
27021
|
-
const updateExemptSettlorName = async ({
|
|
27022
|
-
exemptSettlor,
|
|
27023
|
-
handleUpdateLegalEntity
|
|
27024
|
-
}) => {
|
|
27025
|
-
var _a, _b;
|
|
27026
|
-
const exemptSettlorPatch = {
|
|
27027
|
-
individual: {
|
|
27028
|
-
name: {
|
|
27029
|
-
firstName: (_a = exemptSettlor.exemptSettlorName) == null ? void 0 : _a.firstName,
|
|
27030
|
-
lastName: (_b = exemptSettlor.exemptSettlorName) == null ? void 0 : _b.lastName
|
|
26670
|
+
await handleUpdateLegalEntity(updatedTrust, trust2.id);
|
|
26671
|
+
};
|
|
26672
|
+
const exemptSettlorNamesTheSame = (existingSettlor, newSettlor) => JSON.stringify(existingSettlor.exemptSettlorName) === JSON.stringify(newSettlor.exemptSettlorName);
|
|
26673
|
+
const updateExemptSettlorName = async ({
|
|
26674
|
+
exemptSettlor,
|
|
26675
|
+
handleUpdateLegalEntity
|
|
26676
|
+
}) => {
|
|
26677
|
+
var _a, _b;
|
|
26678
|
+
const exemptSettlorPatch = {
|
|
26679
|
+
individual: {
|
|
26680
|
+
name: {
|
|
26681
|
+
firstName: (_a = exemptSettlor.exemptSettlorName) == null ? void 0 : _a.firstName,
|
|
26682
|
+
lastName: (_b = exemptSettlor.exemptSettlorName) == null ? void 0 : _b.lastName
|
|
26683
|
+
}
|
|
26684
|
+
}
|
|
26685
|
+
};
|
|
26686
|
+
return handleUpdateLegalEntity(exemptSettlorPatch, exemptSettlor.legalEntityId);
|
|
26687
|
+
};
|
|
26688
|
+
const updateOrganizationExemptSettlorName = async ({
|
|
26689
|
+
exemptSettlor,
|
|
26690
|
+
handleUpdateLegalEntity
|
|
26691
|
+
}) => {
|
|
26692
|
+
const exemptSettlorPatch = {
|
|
26693
|
+
organization: {
|
|
26694
|
+
legalName: exemptSettlor.name,
|
|
26695
|
+
registeredAddress: {
|
|
26696
|
+
country: exemptSettlor.country
|
|
26697
|
+
}
|
|
26698
|
+
}
|
|
26699
|
+
};
|
|
26700
|
+
return handleUpdateLegalEntity(exemptSettlorPatch, exemptSettlor.legalEntityId);
|
|
26701
|
+
};
|
|
26702
|
+
function AccountSetupRejected() {
|
|
26703
|
+
const {
|
|
26704
|
+
i18n
|
|
26705
|
+
} = useI18nContext();
|
|
26706
|
+
const content = jsxs("div", {
|
|
26707
|
+
children: [jsx(AlertIcon, {
|
|
26708
|
+
className: "adl-alert-error-icon",
|
|
26709
|
+
type: AlertTypes.ERROR
|
|
26710
|
+
}), jsx(FormHeader, {
|
|
26711
|
+
heading: i18n.get("cantSetUpAcccount")
|
|
26712
|
+
}), jsx("span", {
|
|
26713
|
+
children: i18n.get("accountCantBeSetUp")
|
|
26714
|
+
})]
|
|
26715
|
+
});
|
|
26716
|
+
return jsx(DropinLayout, {
|
|
26717
|
+
content
|
|
26718
|
+
});
|
|
26719
|
+
}
|
|
26720
|
+
const headingTypes = {
|
|
26721
|
+
1: ({
|
|
26722
|
+
children,
|
|
26723
|
+
className
|
|
26724
|
+
}) => jsx("h1", {
|
|
26725
|
+
className,
|
|
26726
|
+
children
|
|
26727
|
+
}),
|
|
26728
|
+
2: ({
|
|
26729
|
+
children,
|
|
26730
|
+
className
|
|
26731
|
+
}) => jsx("h2", {
|
|
26732
|
+
className,
|
|
26733
|
+
children
|
|
26734
|
+
}),
|
|
26735
|
+
3: ({
|
|
26736
|
+
children,
|
|
26737
|
+
className
|
|
26738
|
+
}) => jsx("h3", {
|
|
26739
|
+
className,
|
|
26740
|
+
children
|
|
26741
|
+
}),
|
|
26742
|
+
4: ({
|
|
26743
|
+
children,
|
|
26744
|
+
className
|
|
26745
|
+
}) => jsx("h4", {
|
|
26746
|
+
className,
|
|
26747
|
+
children
|
|
26748
|
+
}),
|
|
26749
|
+
sub: ({
|
|
26750
|
+
children,
|
|
26751
|
+
className
|
|
26752
|
+
}) => jsx("div", {
|
|
26753
|
+
className,
|
|
26754
|
+
children
|
|
26755
|
+
})
|
|
26756
|
+
};
|
|
26757
|
+
function Heading({
|
|
26758
|
+
className,
|
|
26759
|
+
level,
|
|
26760
|
+
children
|
|
26761
|
+
}) {
|
|
26762
|
+
const HeadingElement = headingTypes[level] || headingTypes[1];
|
|
26763
|
+
const classNames = cx("adl-heading", `adl-heading--${level}`, className);
|
|
26764
|
+
return jsx(HeadingElement, {
|
|
26765
|
+
className: classNames,
|
|
26766
|
+
children
|
|
26767
|
+
});
|
|
26768
|
+
}
|
|
26769
|
+
const trusteeTypeItems = [{
|
|
26770
|
+
id: "individual",
|
|
26771
|
+
name: "individual"
|
|
26772
|
+
}, {
|
|
26773
|
+
id: "company",
|
|
26774
|
+
name: "company"
|
|
26775
|
+
}];
|
|
26776
|
+
const getFormSchema = (isLegalArrangement, isTrust) => {
|
|
26777
|
+
const schema = ["businessType"];
|
|
26778
|
+
if (isLegalArrangement) {
|
|
26779
|
+
schema.push("legalArrangement");
|
|
26780
|
+
}
|
|
26781
|
+
if (isTrust) {
|
|
26782
|
+
schema.push("trusteeType");
|
|
26783
|
+
}
|
|
26784
|
+
return schema;
|
|
26785
|
+
};
|
|
26786
|
+
const businessTypeSelectionValidationRules = {
|
|
26787
|
+
businessType: {
|
|
26788
|
+
modes: ["blur"],
|
|
26789
|
+
validate: (businessType) => !!businessType,
|
|
26790
|
+
errorMessage: "fieldIsRequired"
|
|
26791
|
+
},
|
|
26792
|
+
legalArrangement: {
|
|
26793
|
+
modes: ["blur"],
|
|
26794
|
+
validate: (legalArrangement) => !!legalArrangement,
|
|
26795
|
+
errorMessage: "fieldIsRequired"
|
|
26796
|
+
},
|
|
26797
|
+
trusteeType: {
|
|
26798
|
+
modes: ["blur"],
|
|
26799
|
+
validate: (trusteeType) => !!trusteeType,
|
|
26800
|
+
errorMessage: "fieldIsRequired"
|
|
26801
|
+
}
|
|
26802
|
+
};
|
|
26803
|
+
const businessTypeSelectionStepTitles = {
|
|
26804
|
+
[
|
|
26805
|
+
0
|
|
26806
|
+
/* BUSINESS_TYPE_SELECTION */
|
|
26807
|
+
]: "whatBestDescribesYourBusinessSetup",
|
|
26808
|
+
[
|
|
26809
|
+
1
|
|
26810
|
+
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
26811
|
+
]: "whichLegalArrangementDoesYourBusinessHave",
|
|
26812
|
+
[
|
|
26813
|
+
2
|
|
26814
|
+
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
26815
|
+
]: "sorryWeCantSetUpAnAccountForYou",
|
|
26816
|
+
[
|
|
26817
|
+
3
|
|
26818
|
+
/* CONFIRM_BUSINESS_SETUP_CHANGE */
|
|
26819
|
+
]: "changeYourBusinessSetup"
|
|
26820
|
+
};
|
|
26821
|
+
const BusinessTypeSelection = ({
|
|
26822
|
+
legalEntityResponse,
|
|
26823
|
+
accountHolder: accountHolder2,
|
|
26824
|
+
onAccountHolderSelect,
|
|
26825
|
+
handleUpdateLegalEntity,
|
|
26826
|
+
taskHistory,
|
|
26827
|
+
setTaskHistory,
|
|
26828
|
+
onNavigateTo,
|
|
26829
|
+
baseTrackingPayload
|
|
26830
|
+
}) => {
|
|
26831
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
26832
|
+
const {
|
|
26833
|
+
i18n
|
|
26834
|
+
} = useI18nContext();
|
|
26835
|
+
const {
|
|
26836
|
+
showToast
|
|
26837
|
+
} = useToastContext();
|
|
26838
|
+
const [loadingStatus, setLoadingStatus] = useState();
|
|
26839
|
+
const [currentStep, setCurrentStep] = useState(
|
|
26840
|
+
0
|
|
26841
|
+
/* BUSINESS_TYPE_SELECTION */
|
|
26842
|
+
);
|
|
26843
|
+
const [formSchema, setFormSchema] = useState(["businessType"]);
|
|
26844
|
+
const hasBackButton = [
|
|
26845
|
+
1,
|
|
26846
|
+
2
|
|
26847
|
+
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
26848
|
+
].includes(currentStep);
|
|
26849
|
+
const isPrevTaskTasksOverview = taskHistory[taskHistory.length - 2] === TaskTypes.TASKS_OVERVIEW;
|
|
26850
|
+
const {
|
|
26851
|
+
businessTypeOptions,
|
|
26852
|
+
legalArrangementOptions
|
|
26853
|
+
} = getSelectionOptions(legalEntityResponse);
|
|
26854
|
+
const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
|
|
26855
|
+
const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
|
|
26856
|
+
const defaultBusinessType = getBusinessType(businessTypeOptions, accountHolder2, legalEntityResponse == null ? void 0 : legalEntityResponse.type, (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type);
|
|
26857
|
+
const getDefaultLegalArrangementSelection = () => legalArrangementOptions.find((item) => item.id === getDefaultLegalArrangementOrSuborganizationType(legalEntityResponse, accountHolder2));
|
|
26858
|
+
const defaultLegalArrangementType = getDefaultLegalArrangementSelection();
|
|
26859
|
+
console.log("defaultBusinessType", defaultBusinessType);
|
|
26860
|
+
console.log("defaultLegalArrangementType", defaultLegalArrangementType);
|
|
26861
|
+
const defaultTrusteeType = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? trusteeTypeItems[0] : trusteeTypeItems[1];
|
|
26862
|
+
const {
|
|
26863
|
+
handleChangeFor,
|
|
26864
|
+
triggerValidation,
|
|
26865
|
+
data,
|
|
26866
|
+
valid,
|
|
26867
|
+
errors,
|
|
26868
|
+
isValid
|
|
26869
|
+
} = useForm({
|
|
26870
|
+
schema: formSchema,
|
|
26871
|
+
defaultData: {
|
|
26872
|
+
businessType: defaultBusinessType,
|
|
26873
|
+
legalArrangement: defaultLegalArrangementType,
|
|
26874
|
+
trusteeType: defaultTrusteeType
|
|
26875
|
+
},
|
|
26876
|
+
rules: businessTypeSelectionValidationRules
|
|
26877
|
+
});
|
|
26878
|
+
const newAccountHolder = ((_c = data.businessType) == null ? void 0 : _c.accountHolder) || ((_d = data.legalArrangement) == null ? void 0 : _d.accountHolder);
|
|
26879
|
+
const targetLegalArrangement = (_e = data.legalArrangement) == null ? void 0 : _e.id;
|
|
26880
|
+
const targetLegalEntityType = getTargetLegalEntityType((_f = data.businessType) == null ? void 0 : _f.id, (_g = data.legalArrangement) == null ? void 0 : _g.id, (_h = data.trusteeType) == null ? void 0 : _h.id, legalEntityResponse == null ? void 0 : legalEntityResponse.type);
|
|
26881
|
+
const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
|
|
26882
|
+
const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
|
|
26883
|
+
useEffect(() => {
|
|
26884
|
+
var _a2, _b2;
|
|
26885
|
+
setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
|
|
26886
|
+
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
26887
|
+
useEffect(() => {
|
|
26888
|
+
userEvents.addPageView("Entity Selection");
|
|
26889
|
+
const startDropOffTrackingEvent = () => {
|
|
26890
|
+
userEvents.addEvent("Started legal entity selection", {
|
|
26891
|
+
segmentation: baseTrackingPayload
|
|
26892
|
+
});
|
|
26893
|
+
};
|
|
26894
|
+
const stopDropOffTrackingEvent = () => {
|
|
26895
|
+
userEvents.addEvent("Drop off at legal entity selection", {
|
|
26896
|
+
segmentation: baseTrackingPayload
|
|
26897
|
+
});
|
|
26898
|
+
};
|
|
26899
|
+
startDropOffTrackingEvent();
|
|
26900
|
+
window.addEventListener("focus", startDropOffTrackingEvent);
|
|
26901
|
+
window.addEventListener("blur", stopDropOffTrackingEvent);
|
|
26902
|
+
return () => {
|
|
26903
|
+
window.removeEventListener("focus", startDropOffTrackingEvent);
|
|
26904
|
+
window.removeEventListener("blur", stopDropOffTrackingEvent);
|
|
26905
|
+
};
|
|
26906
|
+
}, []);
|
|
26907
|
+
const handleNextClick = async () => {
|
|
26908
|
+
var _a2;
|
|
26909
|
+
if (loadingStatus === "loading")
|
|
26910
|
+
return;
|
|
26911
|
+
triggerValidation();
|
|
26912
|
+
if (isValid) {
|
|
26913
|
+
if (((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement") {
|
|
26914
|
+
if (currentStep !== 1) {
|
|
26915
|
+
setCurrentStep(
|
|
26916
|
+
1
|
|
26917
|
+
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
26918
|
+
);
|
|
26919
|
+
return;
|
|
26920
|
+
}
|
|
26921
|
+
if (targetLegalArrangement === "partnershipUnincorporated") {
|
|
26922
|
+
setCurrentStep(
|
|
26923
|
+
2
|
|
26924
|
+
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
26925
|
+
);
|
|
26926
|
+
return;
|
|
26927
|
+
}
|
|
26928
|
+
}
|
|
26929
|
+
if (newAccountHolder !== accountHolder2 || isLegalEntityTypeChanging) {
|
|
26930
|
+
if (accountHolder2) {
|
|
26931
|
+
setCurrentStep(
|
|
26932
|
+
3
|
|
26933
|
+
/* CONFIRM_BUSINESS_SETUP_CHANGE */
|
|
26934
|
+
);
|
|
26935
|
+
return;
|
|
26936
|
+
}
|
|
26937
|
+
await updateLegalEntityAndSelectAccountHolder();
|
|
26938
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
26939
|
+
segmentation: baseTrackingPayload
|
|
26940
|
+
});
|
|
26941
|
+
} else {
|
|
26942
|
+
onAccountHolderSelect(newAccountHolder);
|
|
26943
|
+
}
|
|
26944
|
+
if (isLegalArrangementChanging) {
|
|
26945
|
+
await updateLegalEntityAndSelectAccountHolder();
|
|
26946
|
+
userEvents.addEvent("Saved legal entity selection", {
|
|
26947
|
+
segmentation: baseTrackingPayload
|
|
26948
|
+
});
|
|
26949
|
+
}
|
|
26950
|
+
}
|
|
26951
|
+
};
|
|
26952
|
+
const updateLegalEntityAndSelectAccountHolder = async () => {
|
|
26953
|
+
try {
|
|
26954
|
+
if (isLegalEntityTypeChanging) {
|
|
26955
|
+
setLoadingStatus("loading");
|
|
26956
|
+
const updateLegalEntityPayload = {
|
|
26957
|
+
type: targetLegalEntityType
|
|
26958
|
+
};
|
|
26959
|
+
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
26960
|
+
if (targetLegalEntityType === LegalEntityType.ORGANIZATION && targetLegalEntityType) {
|
|
26961
|
+
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
|
|
26962
|
+
organization: {
|
|
26963
|
+
type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
|
|
26964
|
+
}
|
|
26965
|
+
}, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
26966
|
+
}
|
|
26967
|
+
}
|
|
26968
|
+
if (isLegalArrangementChanging) {
|
|
26969
|
+
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
|
|
26970
|
+
organization: {
|
|
26971
|
+
type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
|
|
26972
|
+
}
|
|
26973
|
+
}, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
27031
26974
|
}
|
|
26975
|
+
} catch (e) {
|
|
26976
|
+
showToast({
|
|
26977
|
+
label: i18n.get("failedToUpdateDetails"),
|
|
26978
|
+
type: ToastType.ERROR
|
|
26979
|
+
});
|
|
26980
|
+
} finally {
|
|
26981
|
+
setLoadingStatus("success");
|
|
26982
|
+
onAccountHolderSelect(newAccountHolder);
|
|
27032
26983
|
}
|
|
27033
26984
|
};
|
|
27034
|
-
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
|
|
27041
|
-
|
|
27042
|
-
|
|
27043
|
-
|
|
27044
|
-
|
|
27045
|
-
|
|
26985
|
+
const handleBackClick = () => {
|
|
26986
|
+
if (currentStep === 2) {
|
|
26987
|
+
setCurrentStep(
|
|
26988
|
+
1
|
|
26989
|
+
/* LEGAL_ARRANGEMENT_SELECTION */
|
|
26990
|
+
);
|
|
26991
|
+
}
|
|
26992
|
+
if (currentStep === 1) {
|
|
26993
|
+
setCurrentStep(
|
|
26994
|
+
0
|
|
26995
|
+
/* BUSINESS_TYPE_SELECTION */
|
|
26996
|
+
);
|
|
26997
|
+
}
|
|
26998
|
+
if (currentStep === 0 && isPrevTaskTasksOverview) {
|
|
26999
|
+
setTaskHistory(taskHistory.slice(taskHistory.length - 2));
|
|
27000
|
+
onNavigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
27046
27001
|
}
|
|
27047
27002
|
};
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
|
|
27065
|
-
|
|
27003
|
+
const isWeCannotSetUpAccountStep = currentStep === 2;
|
|
27004
|
+
return jsx(LoaderWrapper, {
|
|
27005
|
+
status: loadingStatus,
|
|
27006
|
+
formOpacityWhenLoading: 0.3,
|
|
27007
|
+
showSpinner: false,
|
|
27008
|
+
children: jsxs("div", {
|
|
27009
|
+
className: "adyen-kyc-business-type-selection",
|
|
27010
|
+
children: [jsxs("header", {
|
|
27011
|
+
className: "adl-u-margin-bottom-32",
|
|
27012
|
+
children: [jsx(Heading, {
|
|
27013
|
+
level: 2,
|
|
27014
|
+
children: i18n.get(businessTypeSelectionStepTitles[currentStep])
|
|
27015
|
+
}), currentStep === 3 && jsx(Heading, {
|
|
27016
|
+
level: "sub",
|
|
27017
|
+
children: i18n.get("someInformationWillNotBeSaved")
|
|
27018
|
+
})]
|
|
27019
|
+
}), currentStep === 0 && jsx(Field, {
|
|
27020
|
+
name: "businessType",
|
|
27021
|
+
useLabelElement: false,
|
|
27022
|
+
errorMessage: i18n.get((_i = errors.businessType) == null ? void 0 : _i.errorMessage),
|
|
27023
|
+
showErrorIconBottom: true,
|
|
27024
|
+
isValid: valid.businessType,
|
|
27025
|
+
children: (childProps) => jsx(RadioGroupCard, {
|
|
27026
|
+
...childProps,
|
|
27027
|
+
name: "businessType",
|
|
27028
|
+
items: businessTypeOptions,
|
|
27029
|
+
selected: businessTypeOptions.find((type) => {
|
|
27030
|
+
var _a2;
|
|
27031
|
+
return type.id === ((_a2 = data.businessType) == null ? void 0 : _a2.id);
|
|
27032
|
+
}),
|
|
27033
|
+
onSelect: (item) => handleChangeFor("businessType")(item)
|
|
27034
|
+
})
|
|
27035
|
+
}), currentStep === 1 && jsxs(Fragment, {
|
|
27036
|
+
children: [jsx(Field, {
|
|
27037
|
+
name: "legalArrangement",
|
|
27038
|
+
useLabelElement: false,
|
|
27039
|
+
errorMessage: i18n.get((_j = errors.legalArrangement) == null ? void 0 : _j.errorMessage),
|
|
27040
|
+
showErrorIconBottom: true,
|
|
27041
|
+
isValid: valid.legalArrangement,
|
|
27042
|
+
children: (childProps) => jsx(RadioGroupCard, {
|
|
27043
|
+
...childProps,
|
|
27044
|
+
name: "legalArrangement",
|
|
27045
|
+
items: legalArrangementOptions,
|
|
27046
|
+
selected: legalArrangementOptions.find((legalArrangementOption) => {
|
|
27047
|
+
var _a2;
|
|
27048
|
+
return legalArrangementOption.id === ((_a2 = data.legalArrangement) == null ? void 0 : _a2.id);
|
|
27049
|
+
}),
|
|
27050
|
+
onSelect: (item) => handleChangeFor("legalArrangement")(item)
|
|
27051
|
+
})
|
|
27052
|
+
}), ((_k = data.legalArrangement) == null ? void 0 : _k.id) === "aTrust" && jsx(Field, {
|
|
27053
|
+
name: "trusteeType",
|
|
27054
|
+
label: i18n.get("whatTypeOfTrusteeAreYou"),
|
|
27055
|
+
className: "adl-u-margin-top-32",
|
|
27056
|
+
useLabelElement: false,
|
|
27057
|
+
errorMessage: i18n.get((_l = errors.trusteeType) == null ? void 0 : _l.errorMessage),
|
|
27058
|
+
showErrorIconBottom: true,
|
|
27059
|
+
isValid: valid.trusteeType,
|
|
27060
|
+
children: (childProps) => jsx(RadioGroupCard, {
|
|
27061
|
+
...childProps,
|
|
27062
|
+
className: "adyen-kyc-trustee-type-radio-group-card",
|
|
27063
|
+
name: "trusteeType",
|
|
27064
|
+
items: trusteeTypeItems,
|
|
27065
|
+
selected: trusteeTypeItems.find((type) => {
|
|
27066
|
+
var _a2;
|
|
27067
|
+
return type.id === ((_a2 = data.trusteeType) == null ? void 0 : _a2.id);
|
|
27068
|
+
}),
|
|
27069
|
+
onSelect: (item) => handleChangeFor("trusteeType")(item)
|
|
27070
|
+
})
|
|
27071
|
+
})]
|
|
27072
|
+
}), isWeCannotSetUpAccountStep && jsxs(Fragment, {
|
|
27073
|
+
children: [jsx("p", {
|
|
27074
|
+
children: i18n.get("ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations")
|
|
27075
|
+
}), jsx("p", {
|
|
27076
|
+
className: "u-margin-top-32",
|
|
27077
|
+
children: i18n.get("needHelpYouCanAlwaysReachOutToCustomerSupport")
|
|
27078
|
+
})]
|
|
27079
|
+
}), currentStep === 3 ? jsxs("div", {
|
|
27080
|
+
className: "adyen-kyc-business-type-selection__confirm",
|
|
27081
|
+
children: [jsx(Button, {
|
|
27082
|
+
label: i18n.get("cancel"),
|
|
27083
|
+
secondary: true,
|
|
27084
|
+
onClick: () => setCurrentStep(
|
|
27085
|
+
0
|
|
27086
|
+
/* BUSINESS_TYPE_SELECTION */
|
|
27087
|
+
),
|
|
27088
|
+
type: "button"
|
|
27089
|
+
}), jsx(Button, {
|
|
27090
|
+
label: i18n.get("yesChange"),
|
|
27091
|
+
onClick: () => updateLegalEntityAndSelectAccountHolder(),
|
|
27092
|
+
type: "button"
|
|
27093
|
+
})]
|
|
27094
|
+
}) : jsxs("div", {
|
|
27095
|
+
className: "adyen-kyc-business-type-selection__nav",
|
|
27096
|
+
children: [!isWeCannotSetUpAccountStep && jsx(Button, {
|
|
27097
|
+
label: i18n.get("next"),
|
|
27098
|
+
block: true,
|
|
27099
|
+
disabled: currentStep === 1 && !data.legalArrangement,
|
|
27100
|
+
onClick: handleNextClick,
|
|
27101
|
+
type: "button"
|
|
27102
|
+
}), (hasBackButton || isPrevTaskTasksOverview) && jsxs("button", {
|
|
27103
|
+
onClick: handleBackClick,
|
|
27104
|
+
type: "button",
|
|
27105
|
+
"aria-label": i18n.get("back"),
|
|
27106
|
+
className: cx("adl-u-margin-top-16", "adl-u-display-flex", "adl-u-align-items-center", {
|
|
27107
|
+
"adl-button": isWeCannotSetUpAccountStep,
|
|
27108
|
+
"adl-button--block": isWeCannotSetUpAccountStep,
|
|
27109
|
+
"adl-link": !isWeCannotSetUpAccountStep,
|
|
27110
|
+
"adl-link--with-icon": !isWeCannotSetUpAccountStep
|
|
27111
|
+
}),
|
|
27112
|
+
children: [!isWeCannotSetUpAccountStep && jsx("span", {
|
|
27113
|
+
className: cx("adl-icon-chevron-left", " adl-u-margin-right-4", "adl-u-color-grey-40")
|
|
27114
|
+
}), jsx("span", {
|
|
27115
|
+
className: cx("adl-link__text", {
|
|
27116
|
+
"adl-u-color-grey-40": !isWeCannotSetUpAccountStep
|
|
27117
|
+
}),
|
|
27118
|
+
children: i18n.get("back")
|
|
27119
|
+
})]
|
|
27120
|
+
})]
|
|
27121
|
+
})]
|
|
27122
|
+
})
|
|
27066
27123
|
});
|
|
27067
|
-
}
|
|
27124
|
+
};
|
|
27068
27125
|
function useDataMissingRemediations({
|
|
27069
27126
|
legalEntityId,
|
|
27070
27127
|
problems
|
|
@@ -28926,13 +28983,13 @@ function IndividualDropinComponent({
|
|
|
28926
28983
|
let dataFromResponse = mapLegalEntityToIndividual(legalEntityResponse, isTargetLegalEntityType);
|
|
28927
28984
|
const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
|
|
28928
28985
|
let roleTypes = [];
|
|
28929
|
-
const [newDecisionMaker, setNewDecisionMaker] = useState(
|
|
28986
|
+
const [newDecisionMaker, setNewDecisionMaker] = useState();
|
|
28930
28987
|
const [problems, setProblems] = useState(propProblems);
|
|
28931
28988
|
const formRef = useRef(null);
|
|
28932
28989
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
28933
28990
|
const [data, setData] = useState(dataFromResponse);
|
|
28934
28991
|
const [documents2, setDocuments] = useState();
|
|
28935
|
-
const [country2, setCountry] = useState(((_a =
|
|
28992
|
+
const [country2, setCountry] = useState(((_a = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _a.residencyCountry) ?? parentCountry);
|
|
28936
28993
|
const [hideFooter, setHideFooter] = useState(false);
|
|
28937
28994
|
const baseTrackingPayload = getBaseTrackingPayload({
|
|
28938
28995
|
trackingConfig,
|
|
@@ -28987,7 +29044,7 @@ function IndividualDropinComponent({
|
|
|
28987
29044
|
);
|
|
28988
29045
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
28989
29046
|
}, [derivedProps, formValidity, problems, handleGetIdVerificationToken]);
|
|
28990
|
-
if (taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER) {
|
|
29047
|
+
if ((taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER) && parentLegalEntity) {
|
|
28991
29048
|
if (parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) {
|
|
28992
29049
|
const associations = (_b = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _b.filter((ea) => ea.legalEntityId === (legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
28993
29050
|
if (associations && associations.length > 0) {
|
|
@@ -29010,7 +29067,7 @@ function IndividualDropinComponent({
|
|
|
29010
29067
|
var _a2;
|
|
29011
29068
|
eventEmitter.on("updateLocale", (locale) => setLocale(locale));
|
|
29012
29069
|
const documentIds = ((_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.documentDetails) == null ? void 0 : _a2.map((documentReference) => documentReference.id)) || [];
|
|
29013
|
-
if (documentIds.length) {
|
|
29070
|
+
if (documentIds.length && legalEntityResponse) {
|
|
29014
29071
|
documentUtils.fetchDocuments(documentIds, legalEntityResponse == null ? void 0 : legalEntityResponse.id).then(() => {
|
|
29015
29072
|
setDocuments(mapApiDocumentToIndividualDocuments(legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
29016
29073
|
}).catch(() => {
|
|
@@ -29026,8 +29083,13 @@ function IndividualDropinComponent({
|
|
|
29026
29083
|
legalEntity,
|
|
29027
29084
|
idDocumentType
|
|
29028
29085
|
}) => {
|
|
29086
|
+
var _a2, _b2, _c2;
|
|
29029
29087
|
let updatedLegalEntity;
|
|
29030
|
-
|
|
29088
|
+
const leId = (legalEntityResponse == null ? void 0 : legalEntityResponse.id) || (newDecisionMaker == null ? void 0 : newDecisionMaker.id);
|
|
29089
|
+
if (!leId) {
|
|
29090
|
+
if (!handleCreateLegalEntity) {
|
|
29091
|
+
throw new Error("Provide handler to create legalEntity");
|
|
29092
|
+
}
|
|
29031
29093
|
updatedLegalEntity = await handleCreateLegalEntity(legalEntity);
|
|
29032
29094
|
setNewDecisionMaker(legalEntity);
|
|
29033
29095
|
userEvents.addEvent("Added decision maker", {
|
|
@@ -29035,20 +29097,20 @@ function IndividualDropinComponent({
|
|
|
29035
29097
|
...baseTrackingPayload,
|
|
29036
29098
|
legalEntityId: updatedLegalEntity.id,
|
|
29037
29099
|
legalEntityType: updatedLegalEntity.type,
|
|
29038
|
-
countryOfRegistration: dataSubmitted.personalDetails.residencyCountry,
|
|
29039
|
-
roles: dataSubmitted.personalDetails.role
|
|
29100
|
+
countryOfRegistration: ((_a2 = dataSubmitted.personalDetails) == null ? void 0 : _a2.residencyCountry) || null,
|
|
29101
|
+
roles: ((_b2 = dataSubmitted.personalDetails) == null ? void 0 : _b2.role) || null
|
|
29040
29102
|
}
|
|
29041
29103
|
});
|
|
29042
29104
|
} else {
|
|
29043
|
-
updatedLegalEntity = await handleUpdateLegalEntity(drop("type").from(legalEntity),
|
|
29105
|
+
updatedLegalEntity = await handleUpdateLegalEntity(drop("type").from(legalEntity), leId);
|
|
29044
29106
|
}
|
|
29045
29107
|
userEvents.addEvent("Saved individual details", {
|
|
29046
29108
|
segmentation: {
|
|
29047
29109
|
...baseTrackingPayload,
|
|
29048
29110
|
legalEntityId: updatedLegalEntity.id,
|
|
29049
29111
|
legalEntityType: updatedLegalEntity.type,
|
|
29050
|
-
countryOfRegistration: dataSubmitted.personalDetails.residencyCountry,
|
|
29051
|
-
idDocumentType
|
|
29112
|
+
countryOfRegistration: ((_c2 = dataSubmitted.personalDetails) == null ? void 0 : _c2.residencyCountry) || null,
|
|
29113
|
+
idDocumentType: idDocumentType || null
|
|
29052
29114
|
}
|
|
29053
29115
|
});
|
|
29054
29116
|
return updatedLegalEntity;
|
|
@@ -29058,36 +29120,33 @@ function IndividualDropinComponent({
|
|
|
29058
29120
|
legalEntityId,
|
|
29059
29121
|
captureMetadata: onfidoResponse
|
|
29060
29122
|
};
|
|
29061
|
-
await handleGetIdVerificationStartCheck("", data2);
|
|
29123
|
+
await (handleGetIdVerificationStartCheck == null ? void 0 : handleGetIdVerificationStartCheck("", data2));
|
|
29062
29124
|
};
|
|
29063
29125
|
const submitDocuments = async ({
|
|
29064
29126
|
forms: forms22,
|
|
29065
29127
|
legalEntity,
|
|
29066
29128
|
dataSubmitted
|
|
29067
29129
|
}) => {
|
|
29130
|
+
var _a2;
|
|
29068
29131
|
if (!isDocumentsRequired2(forms22))
|
|
29069
29132
|
return;
|
|
29070
|
-
if (
|
|
29133
|
+
if ((_a2 = dataSubmitted.idDocument) == null ? void 0 : _a2.instantIdVerificationData) {
|
|
29071
29134
|
await handleInstantIdVerificationStartCheck(dataSubmitted.idDocument.instantIdVerificationData, legalEntity.id);
|
|
29072
29135
|
} else {
|
|
29073
29136
|
const formattedDocuments = await mapIndividualDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
29074
29137
|
const uploadedDocuments = await documentUtils.uploadDocuments(formattedDocuments, legalEntity.id);
|
|
29075
29138
|
uploadedDocuments == null ? void 0 : uploadedDocuments.forEach((doc) => {
|
|
29076
|
-
var
|
|
29139
|
+
var _a3;
|
|
29077
29140
|
userEvents.addEvent("Saved document", {
|
|
29078
29141
|
segmentation: {
|
|
29079
29142
|
...baseTrackingPayload,
|
|
29080
29143
|
documentType: doc.type,
|
|
29081
|
-
fileExtention: (
|
|
29144
|
+
fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName))) ?? null
|
|
29082
29145
|
}
|
|
29083
29146
|
});
|
|
29084
29147
|
});
|
|
29085
29148
|
}
|
|
29086
29149
|
};
|
|
29087
|
-
const hasInstantIdVerification = (dataSubmitted) => {
|
|
29088
|
-
var _a2;
|
|
29089
|
-
return !!((_a2 = dataSubmitted.idDocument) == null ? void 0 : _a2.instantIdVerificationData);
|
|
29090
|
-
};
|
|
29091
29150
|
const hasRolesChanged = (legalEntity, existingEntityAssociations, newRoles) => {
|
|
29092
29151
|
var _a2;
|
|
29093
29152
|
const existingRoles = (_a2 = existingEntityAssociations == null ? void 0 : existingEntityAssociations.filter((ea) => ea.legalEntityId === legalEntity.id)) == null ? void 0 : _a2.map(({
|
|
@@ -29100,17 +29159,19 @@ function IndividualDropinComponent({
|
|
|
29100
29159
|
parentLE,
|
|
29101
29160
|
dataSubmitted
|
|
29102
29161
|
}) => {
|
|
29103
|
-
var _a2;
|
|
29162
|
+
var _a2, _b2, _c2;
|
|
29104
29163
|
const newRoles = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER ? (_a2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a2.role : taskType === TaskTypes.TRUST_MEMBER_INDIVIDUAL ? trustMember == null ? void 0 : trustMember.roles : null;
|
|
29105
29164
|
const existingEntityAssociations = getOwnEntityAssociations(parentLE);
|
|
29106
|
-
if (newRoles && hasRolesChanged(legalEntity, existingEntityAssociations, newRoles)) {
|
|
29165
|
+
if (newRoles && (hasRolesChanged(legalEntity, existingEntityAssociations, newRoles) || ((_b2 = dataFromResponse.personalDetails) == null ? void 0 : _b2.jobTitle) !== ((_c2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _c2.jobTitle))) {
|
|
29107
29166
|
const updatedParentLegalEntity = {
|
|
29108
29167
|
entityAssociations: [...newRoles.map((role2) => {
|
|
29109
29168
|
var _a3;
|
|
29110
29169
|
return {
|
|
29111
29170
|
type: role2,
|
|
29112
29171
|
legalEntityId: legalEntity.id,
|
|
29113
|
-
|
|
29172
|
+
...DECISION_MAKER_TYPES_WITH_JOBTITLE.some((type) => type === role2) && {
|
|
29173
|
+
jobTitle: (_a3 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a3.jobTitle
|
|
29174
|
+
}
|
|
29114
29175
|
};
|
|
29115
29176
|
}) || [], ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id) || []]
|
|
29116
29177
|
};
|
|
@@ -29118,25 +29179,28 @@ function IndividualDropinComponent({
|
|
|
29118
29179
|
}
|
|
29119
29180
|
};
|
|
29120
29181
|
const onSubmit = async () => {
|
|
29121
|
-
var _a2, _b2;
|
|
29182
|
+
var _a2, _b2, _c2, _d2;
|
|
29122
29183
|
setLoadingStatus("loading");
|
|
29123
29184
|
const dataSubmitted = omitObscuredFieldsIfUnchanged(individualObscuredFields, data, dataFromResponse);
|
|
29185
|
+
if (!dataSubmitted) {
|
|
29186
|
+
return;
|
|
29187
|
+
}
|
|
29124
29188
|
try {
|
|
29125
29189
|
const legalEntity = mapIndividualToLegalEntity(dataSubmitted);
|
|
29126
29190
|
const idDocumentType = (_a2 = idDocumentTypeOptions.find(({
|
|
29127
29191
|
id: id2
|
|
29128
29192
|
}) => {
|
|
29129
29193
|
var _a3;
|
|
29130
|
-
return ((_a3 = dataSubmitted.idDocument) == null ? void 0 : _a3.idDocumentType) === id2;
|
|
29194
|
+
return ((_a3 = dataSubmitted == null ? void 0 : dataSubmitted.idDocument) == null ? void 0 : _a3.idDocumentType) === id2;
|
|
29131
29195
|
})) == null ? void 0 : _a2.id;
|
|
29132
29196
|
userEvents.addEvent("Provided individual details", {
|
|
29133
29197
|
segmentation: {
|
|
29134
29198
|
...baseTrackingPayload,
|
|
29135
|
-
countryOfRegistration: dataSubmitted.personalDetails.residencyCountry,
|
|
29136
|
-
idDocumentType
|
|
29199
|
+
countryOfRegistration: ((_b2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _b2.residencyCountry) || null,
|
|
29200
|
+
idDocumentType: idDocumentType || null
|
|
29137
29201
|
}
|
|
29138
29202
|
});
|
|
29139
|
-
legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(taskType, legalEntityResponse, dataSubmitted.personalDetails.accountHolder);
|
|
29203
|
+
legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(taskType, legalEntityResponse, (_c2 = dataSubmitted.personalDetails) == null ? void 0 : _c2.accountHolder);
|
|
29140
29204
|
const createdLegalEntity = await submitLegalEntity({
|
|
29141
29205
|
dataSubmitted,
|
|
29142
29206
|
legalEntity,
|
|
@@ -29155,7 +29219,7 @@ function IndividualDropinComponent({
|
|
|
29155
29219
|
});
|
|
29156
29220
|
}
|
|
29157
29221
|
if (taskType === TaskTypes.INDIVIDUAL) {
|
|
29158
|
-
setAccountHolder((
|
|
29222
|
+
setAccountHolder(((_d2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _d2.accountHolder) || null);
|
|
29159
29223
|
}
|
|
29160
29224
|
setLoadingStatus("success");
|
|
29161
29225
|
clearToasts();
|
|
@@ -29206,9 +29270,10 @@ function IndividualDropinComponent({
|
|
|
29206
29270
|
var _a2, _b2;
|
|
29207
29271
|
if (!idDocument2)
|
|
29208
29272
|
return void 0;
|
|
29209
|
-
const documentType2 =
|
|
29210
|
-
|
|
29211
|
-
|
|
29273
|
+
const documentType2 = (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData) ? onfidoDocumentTypeMapping.find((document2) => {
|
|
29274
|
+
var _a3;
|
|
29275
|
+
return ((_a3 = idDocument2.instantIdVerificationData) == null ? void 0 : _a3.document_front.type) === document2.id;
|
|
29276
|
+
}) : idDocumentTypeOptions.find(({
|
|
29212
29277
|
id: id2
|
|
29213
29278
|
}) => idDocument2.idDocumentType === id2);
|
|
29214
29279
|
if (!documentType2)
|
|
@@ -29275,7 +29340,7 @@ function IndividualDropinComponent({
|
|
|
29275
29340
|
}
|
|
29276
29341
|
return summaryData;
|
|
29277
29342
|
};
|
|
29278
|
-
const summaryOmittedKeys = [taskType === TaskTypes.DECISION_MAKER
|
|
29343
|
+
const summaryOmittedKeys = [...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [], ...((_d = data.personalDetails) == null ? void 0 : _d.idNumberExempt) ? ["idNumber"] : []];
|
|
29279
29344
|
const {
|
|
29280
29345
|
handleNextClick,
|
|
29281
29346
|
handleBackClick,
|
|
@@ -29381,7 +29446,7 @@ const useBankConfigurationHandlers = ({
|
|
|
29381
29446
|
getBankVerificationVendorsHandler
|
|
29382
29447
|
};
|
|
29383
29448
|
};
|
|
29384
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-rNM7cqE8.
|
|
29449
|
+
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-rNM7cqE8.js"), "./AE.json": () => import("./AE-DoU2c3CQ.js"), "./AI.json": () => import("./AI-BQBZ2VVt.js"), "./AL.json": () => import("./AL-s4ei1ra4.js"), "./AR.json": () => import("./AR-DDR8RTlN.js"), "./AS.json": () => import("./AS-CvpjtIPo.js"), "./AT.json": () => import("./AT-Du3jf0QK.js"), "./AU.json": () => import("./AU-CaRlRNzq.js"), "./AX.json": () => import("./AX-DL2IpBlq.js"), "./AZ.json": () => import("./AZ-DgnKHqSW.js"), "./BA.json": () => import("./BA-DbzAHDbo.js"), "./BE.json": () => import("./BE-B8RVrEa-.js"), "./BG.json": () => import("./BG-BAU_RbNU.js"), "./BH.json": () => import("./BH-zzl3Aicz.js"), "./BM.json": () => import("./BM-Bx0QpJE_.js"), "./BR.json": () => import("./BR-CcE5GVb_.js"), "./BS.json": () => import("./BS-C5xv5epf.js"), "./BV.json": () => import("./BV-BO7Uhvet.js"), "./BY.json": () => import("./BY-Dn7i3b4O.js"), "./CA.json": () => import("./CA-BzjyYlZe.js"), "./CH.json": () => import("./CH-BvlOBUqB.js"), "./CN.json": () => import("./CN-y0BC6iBw.js"), "./CR.json": () => import("./CR-tTzdtq6M.js"), "./CY.json": () => import("./CY-Bjyj7q7k.js"), "./CZ.json": () => import("./CZ-DdsXQiz6.js"), "./DE.json": () => import("./DE-k6sF_Z8P.js"), "./DK.json": () => import("./DK-CUWikATU.js"), "./DO.json": () => import("./DO-DpDyoh4y.js"), "./EC.json": () => import("./EC--TPKDJme.js"), "./EE.json": () => import("./EE-o0O1NAuh.js"), "./ES.json": () => import("./ES-8DboqUrj.js"), "./FI.json": () => import("./FI-CwVBRBBQ.js"), "./FJ.json": () => import("./FJ-DkKmOAd6.js"), "./FO.json": () => import("./FO-BCZCVxXR.js"), "./FR.json": () => import("./FR-NtJ3QSfd.js"), "./GB.json": () => import("./GB-BhRiUVO6.js"), "./GE.json": () => import("./GE--9n2R8_p.js"), "./GF.json": () => import("./GF-BeND08-O.js"), "./GG.json": () => import("./GG-DcYzHlYO.js"), "./GI.json": () => import("./GI-BWXRySSY.js"), "./GL.json": () => import("./GL-Cu7M9Xnx.js"), "./GP.json": () => import("./GP-Dm3WhONm.js"), "./GR.json": () => import("./GR-C0snveYS.js"), "./GT.json": () => import("./GT-BykjfmEK.js"), "./GU.json": () => import("./GU-oom5Ehbd.js"), "./HK.json": () => import("./HK-Dr5b-SwK.js"), "./HR.json": () => import("./HR-DKAQpsSV.js"), "./HU.json": () => import("./HU-DJWWX_5P.js"), "./ID.json": () => import("./ID-BWJvoyJo.js"), "./IE.json": () => import("./IE-BPh0CHaO.js"), "./IL.json": () => import("./IL-B8E0HdBj.js"), "./IM.json": () => import("./IM-ClrsAYLm.js"), "./IN.json": () => import("./IN-CVsYzQzI.js"), "./IS.json": () => import("./IS-BkDwjQHz.js"), "./IT.json": () => import("./IT-B3cLskCx.js"), "./JE.json": () => import("./JE-C8HBNrJn.js"), "./JM.json": () => import("./JM-CH_LXMnd.js"), "./JO.json": () => import("./JO-CD_uH_Uk.js"), "./JP.json": () => import("./JP-DtK_xb_Y.js"), "./KR.json": () => import("./KR-DBPY5awJ.js"), "./KW.json": () => import("./KW-CiSCIyPm.js"), "./KY.json": () => import("./KY-FU9AuEMz.js"), "./KZ.json": () => import("./KZ-CMFj-_rM.js"), "./LB.json": () => import("./LB-BRGM3Yl3.js"), "./LI.json": () => import("./LI-DlCX-3GD.js"), "./LT.json": () => import("./LT-XRkygwh8.js"), "./LU.json": () => import("./LU-CV14IXAu.js"), "./LV.json": () => import("./LV-ByV8yuF8.js"), "./MC.json": () => import("./MC-CwHePfdt.js"), "./MD.json": () => import("./MD-_IIMR66Q.js"), "./ME.json": () => import("./ME-Cfx8llkg.js"), "./MK.json": () => import("./MK-CEzz7Z_a.js"), "./MP.json": () => import("./MP-C5acK0KC.js"), "./MQ.json": () => import("./MQ-BEZo6wPU.js"), "./MR.json": () => import("./MR-BoFyF5R-.js"), "./MT.json": () => import("./MT-C_-lQGuI.js"), "./MU.json": () => import("./MU-_tM1ai_B.js"), "./MX.json": () => import("./MX-eayygS1f.js"), "./MY.json": () => import("./MY-CsKpuB-w.js"), "./NC.json": () => import("./NC-Bel2A-Fk.js"), "./NL.json": () => import("./NL-C3LxWTQ7.js"), "./NO.json": () => import("./NO-CjZgx8a-.js"), "./NZ.json": () => import("./NZ-DiGhP2MG.js"), "./PE.json": () => import("./PE-DvMRqGF_.js"), "./PF.json": () => import("./PF-f7fSMI_4.js"), "./PH.json": () => import("./PH-CjFT8xMY.js"), "./PK.json": () => import("./PK-wMg8N3zK.js"), "./PL.json": () => import("./PL-WpWUBPgN.js"), "./PM.json": () => import("./PM-D4sBI2Px.js"), "./PR.json": () => import("./PR-BJ09dEXF.js"), "./PS.json": () => import("./PS-CWFZXVi8.js"), "./PT.json": () => import("./PT-BarBZmwW.js"), "./QA.json": () => import("./QA-CtUmYTKA.js"), "./RE.json": () => import("./RE-DfaVzCe-.js"), "./RO.json": () => import("./RO-DmWLrUu-.js"), "./RS.json": () => import("./RS-DilO913f.js"), "./RU.json": () => import("./RU-B83Fu7c3.js"), "./SA.json": () => import("./SA-BpimyQxp.js"), "./SE.json": () => import("./SE-BXNcwTPQ.js"), "./SG.json": () => import("./SG-Uyk6Nl41.js"), "./SI.json": () => import("./SI-B5ALffDQ.js"), "./SJ.json": () => import("./SJ-BrJofAMz.js"), "./SK.json": () => import("./SK-DOE_fS4w.js"), "./SM.json": () => import("./SM-BBQZf4DZ.js"), "./TF.json": () => import("./TF-BDwH1us-.js"), "./TH.json": () => import("./TH-BxFJXEcZ.js"), "./TL.json": () => import("./TL-BzbQs-FD.js"), "./TN.json": () => import("./TN-Dc91A3rb.js"), "./TR.json": () => import("./TR-BBxkpnZQ.js"), "./TT.json": () => import("./TT-D-FKOmmE.js"), "./TW.json": () => import("./TW-r3G_Qs5B.js"), "./UA.json": () => import("./UA-vpfj8SEN.js"), "./US.json": () => import("./US-CFOdL8kt.js"), "./UY.json": () => import("./UY-CUwq2MHm.js"), "./VA.json": () => import("./VA-DlPtJwY9.js"), "./VG.json": () => import("./VG-yM0HOg57.js"), "./VI.json": () => import("./VI-I7ADXxNd.js"), "./VN.json": () => import("./VN-0gy1H7YD.js"), "./WF.json": () => import("./WF-BlzFGDgv.js"), "./YT.json": () => import("./YT-17mSpzMD.js"), "./ZA.json": () => import("./ZA-BcxFTdWL.js") });
|
|
29385
29450
|
const getAccountFormatsForCountry = async (country2) => {
|
|
29386
29451
|
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
29387
29452
|
if (!importForCountry) {
|
|
@@ -31656,7 +31721,7 @@ function DropinComposerComponent({
|
|
|
31656
31721
|
onNavigate = noop,
|
|
31657
31722
|
...args
|
|
31658
31723
|
}) {
|
|
31659
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k
|
|
31724
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
31660
31725
|
const {
|
|
31661
31726
|
contextCountry,
|
|
31662
31727
|
accountHolder: accountHolder2,
|
|
@@ -31716,11 +31781,11 @@ function DropinComposerComponent({
|
|
|
31716
31781
|
const [serviceAgreementTypes, setServiceAgreementTypes] = useState([]);
|
|
31717
31782
|
const [serviceAgreementAcceptanceInfos, setServiceAgreementAcceptanceInfos] = useState([]);
|
|
31718
31783
|
const [transferInstrument, setTransferInstrument] = useState(null);
|
|
31719
|
-
const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ?
|
|
31784
|
+
const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? rootLegalEntity.individual.residentialAddress.country : rootLegalEntity.organization.registeredAddress.country;
|
|
31720
31785
|
const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled));
|
|
31721
31786
|
const [bankVerificationVendors, setBankVerificationVendors] = useState();
|
|
31722
31787
|
const hasTrust = accountHolder2 === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
31723
|
-
const reviewRequired = (rootLegalEntity == null ? void 0 : rootLegalEntity.id) && ((
|
|
31788
|
+
const reviewRequired = (rootLegalEntity == null ? void 0 : rootLegalEntity.id) && ((_b = (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[rootLegalEntity.id]) == null ? void 0 : _b.isReviewRequired);
|
|
31724
31789
|
const additionalSalesChannels = useSalesChannelsSettings();
|
|
31725
31790
|
const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(isExperimentEnabled("AllowOrganizationSettlorWithExemptionReason"), trust2 == null ? void 0 : trust2.trust.countryOfGoverningLaw);
|
|
31726
31791
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
@@ -32228,8 +32293,6 @@ function DropinComposerComponent({
|
|
|
32228
32293
|
...args,
|
|
32229
32294
|
legalEntityResponse: rootLegalEntity,
|
|
32230
32295
|
accountHolder: accountHolder2,
|
|
32231
|
-
showTrustOption: TRUST_COUNTRIES.includes(rootLegalEntityCountry),
|
|
32232
|
-
showSolePropOption: SOLE_PROP_COUNTRIES.includes(rootLegalEntityCountry),
|
|
32233
32296
|
onAccountHolderSelect: async (newAccountHolder) => {
|
|
32234
32297
|
setAccountHolder(newAccountHolder);
|
|
32235
32298
|
await refreshLegalEntity();
|
|
@@ -32287,7 +32350,6 @@ function DropinComposerComponent({
|
|
|
32287
32350
|
});
|
|
32288
32351
|
case TaskTypes.INDIVIDUAL:
|
|
32289
32352
|
return jsx(IndividualDropinComponent, {
|
|
32290
|
-
...args,
|
|
32291
32353
|
trackingConfig: {
|
|
32292
32354
|
topLevelLegalEntity: legalEntityResponse
|
|
32293
32355
|
},
|
|
@@ -32295,6 +32357,7 @@ function DropinComposerComponent({
|
|
|
32295
32357
|
taskName: hasTrust ? "individualTrusteeDetails" : "individualDetails",
|
|
32296
32358
|
parentLegalEntity: null,
|
|
32297
32359
|
legalEntityResponse: rootLegalEntity,
|
|
32360
|
+
country: rootLegalEntityCountry,
|
|
32298
32361
|
problems: getLegalEntityProblems(rootLegalEntity),
|
|
32299
32362
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32300
32363
|
onChange: componentOnChange,
|
|
@@ -32307,6 +32370,11 @@ function DropinComposerComponent({
|
|
|
32307
32370
|
},
|
|
32308
32371
|
handleHomeClick: () => onNavigateTo(TaskTypes.TASKS_OVERVIEW),
|
|
32309
32372
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32373
|
+
handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
|
|
32374
|
+
handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
|
|
32375
|
+
handleGetDocument: args == null ? void 0 : args.handleGetDocument,
|
|
32376
|
+
handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
|
|
32377
|
+
handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
|
|
32310
32378
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32311
32379
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress,
|
|
32312
32380
|
handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken,
|
|
@@ -32321,13 +32389,13 @@ function DropinComposerComponent({
|
|
|
32321
32389
|
});
|
|
32322
32390
|
case TaskTypes.DECISION_MAKER:
|
|
32323
32391
|
return jsx(IndividualDropinComponent, {
|
|
32324
|
-
...args,
|
|
32325
32392
|
trackingConfig: {
|
|
32326
32393
|
topLevelLegalEntity: legalEntityResponse
|
|
32327
32394
|
},
|
|
32328
32395
|
taskType: TaskTypes.DECISION_MAKER,
|
|
32329
32396
|
parentLegalEntity: associatedLegalEntityParent,
|
|
32330
32397
|
legalEntityResponse: associatedLegalEntity,
|
|
32398
|
+
country: rootLegalEntityCountry,
|
|
32331
32399
|
problems: getLegalEntityProblems(associatedLegalEntity),
|
|
32332
32400
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32333
32401
|
onChange: componentOnChange,
|
|
@@ -32335,13 +32403,17 @@ function DropinComposerComponent({
|
|
|
32335
32403
|
onSubmit: componentOnSubmit,
|
|
32336
32404
|
handleHomeClick: navigateBack,
|
|
32337
32405
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32406
|
+
handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
|
|
32407
|
+
handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
|
|
32408
|
+
handleGetDocument: args == null ? void 0 : args.handleGetDocument,
|
|
32409
|
+
handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
|
|
32410
|
+
handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
|
|
32338
32411
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32339
32412
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress,
|
|
32340
32413
|
handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken
|
|
32341
32414
|
});
|
|
32342
32415
|
case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
|
|
32343
32416
|
return jsx(IndividualDropinComponent, {
|
|
32344
|
-
...args,
|
|
32345
32417
|
trackingConfig: {
|
|
32346
32418
|
topLevelLegalEntity: legalEntityResponse
|
|
32347
32419
|
},
|
|
@@ -32349,6 +32421,7 @@ function DropinComposerComponent({
|
|
|
32349
32421
|
parentLegalEntity: associatedLegalEntityParent,
|
|
32350
32422
|
legalEntityResponse: associatedLegalEntity,
|
|
32351
32423
|
problems: getLegalEntityProblems(associatedLegalEntity),
|
|
32424
|
+
country: rootLegalEntityCountry,
|
|
32352
32425
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32353
32426
|
onChange: componentOnChange,
|
|
32354
32427
|
eventEmitter,
|
|
@@ -32358,19 +32431,24 @@ function DropinComposerComponent({
|
|
|
32358
32431
|
},
|
|
32359
32432
|
handleHomeClick: navigateBack,
|
|
32360
32433
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32434
|
+
handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
|
|
32435
|
+
handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
|
|
32436
|
+
handleGetDocument: args == null ? void 0 : args.handleGetDocument,
|
|
32437
|
+
handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
|
|
32438
|
+
handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
|
|
32361
32439
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32362
32440
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress,
|
|
32363
32441
|
handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken
|
|
32364
32442
|
});
|
|
32365
32443
|
case TaskTypes.TRUST_MEMBER_INDIVIDUAL:
|
|
32366
32444
|
return jsx(IndividualDropinComponent, {
|
|
32367
|
-
...args,
|
|
32368
32445
|
trackingConfig: {
|
|
32369
32446
|
topLevelLegalEntity: legalEntityResponse
|
|
32370
32447
|
},
|
|
32371
32448
|
taskType: TaskTypes.TRUST_MEMBER_INDIVIDUAL,
|
|
32372
32449
|
parentLegalEntity: trust2,
|
|
32373
32450
|
legalEntityResponse: associatedLegalEntity,
|
|
32451
|
+
country: rootLegalEntityCountry,
|
|
32374
32452
|
problems: getLegalEntityProblems(associatedLegalEntity),
|
|
32375
32453
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32376
32454
|
onChange: componentOnChange,
|
|
@@ -32380,6 +32458,11 @@ function DropinComposerComponent({
|
|
|
32380
32458
|
handleHomeClick: () => onNavigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW),
|
|
32381
32459
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32382
32460
|
trustMember,
|
|
32461
|
+
handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
|
|
32462
|
+
handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
|
|
32463
|
+
handleGetDocument: args == null ? void 0 : args.handleGetDocument,
|
|
32464
|
+
handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
|
|
32465
|
+
handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
|
|
32383
32466
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32384
32467
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress,
|
|
32385
32468
|
handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken
|
|
@@ -32454,7 +32537,7 @@ function DropinComposerComponent({
|
|
|
32454
32537
|
parentLegalEntity: trust2,
|
|
32455
32538
|
legalEntityResponse: associatedLegalEntity,
|
|
32456
32539
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32457
|
-
problems: (
|
|
32540
|
+
problems: (_c = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _c[rootLegalEntity.id],
|
|
32458
32541
|
onChange: componentOnChange,
|
|
32459
32542
|
eventEmitter,
|
|
32460
32543
|
onSubmit: (data) => refreshTrustAndRunOnSubmit(data, 2),
|
|
@@ -32473,7 +32556,7 @@ function DropinComposerComponent({
|
|
|
32473
32556
|
},
|
|
32474
32557
|
taskType: currentTask,
|
|
32475
32558
|
taskName: currentTask === TaskTypes.PAYIN ? "payinDetails" : "payoutDetails",
|
|
32476
|
-
problems: (
|
|
32559
|
+
problems: (_d = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _d[transferInstrument == null ? void 0 : transferInstrument.id],
|
|
32477
32560
|
transferInstrument,
|
|
32478
32561
|
setTransferInstrument,
|
|
32479
32562
|
legalEntityResponse: rootLegalEntity,
|
|
@@ -32502,7 +32585,7 @@ function DropinComposerComponent({
|
|
|
32502
32585
|
topLevelLegalEntity: legalEntityResponse
|
|
32503
32586
|
},
|
|
32504
32587
|
taskType: TaskTypes.TRUST,
|
|
32505
|
-
problems: (
|
|
32588
|
+
problems: (_e = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _e[trust2 == null ? void 0 : trust2.id],
|
|
32506
32589
|
parentLegalEntity: rootLegalEntity,
|
|
32507
32590
|
legalEntityResponse: trust2,
|
|
32508
32591
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
@@ -32511,7 +32594,7 @@ function DropinComposerComponent({
|
|
|
32511
32594
|
onSubmit: componentOnSubmit,
|
|
32512
32595
|
handleHomeClick: navigateBack,
|
|
32513
32596
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32514
|
-
country: (((
|
|
32597
|
+
country: (((_f = trust2 == null ? void 0 : trust2.trust) == null ? void 0 : _f.countryOfGoverningLaw) || ((_g = trust2 == null ? void 0 : trust2.trust) == null ? void 0 : _g.registeredAddress.country)) ?? rootLegalEntityCountry,
|
|
32515
32598
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32516
32599
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress
|
|
32517
32600
|
});
|
|
@@ -32558,13 +32641,13 @@ function DropinComposerComponent({
|
|
|
32558
32641
|
parentLegalEntity: rootLegalEntity,
|
|
32559
32642
|
legalEntityResponse: solePropietor,
|
|
32560
32643
|
capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
|
|
32561
|
-
problems: (
|
|
32644
|
+
problems: (_h = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _h[solePropietor == null ? void 0 : solePropietor.id],
|
|
32562
32645
|
onChange: componentOnChange,
|
|
32563
32646
|
eventEmitter,
|
|
32564
32647
|
onSubmit: componentOnSubmit,
|
|
32565
32648
|
handleHomeClick: navigateBack,
|
|
32566
32649
|
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
32567
|
-
country: (((
|
|
32650
|
+
country: (((_i = solePropietor == null ? void 0 : solePropietor.soleProprietorship) == null ? void 0 : _i.countryOfGoverningLaw) || ((_k = (_j = solePropietor == null ? void 0 : solePropietor.soleProprietorship) == null ? void 0 : _j.registeredAddress) == null ? void 0 : _k.country)) ?? rootLegalEntityCountry,
|
|
32568
32651
|
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
32569
32652
|
handleFindAddress: args == null ? void 0 : args.handleFindAddress
|
|
32570
32653
|
});
|
|
@@ -33040,6 +33123,10 @@ function CreateIndividualComponent({
|
|
|
33040
33123
|
handleBackClick,
|
|
33041
33124
|
eventEmitter
|
|
33042
33125
|
}) {
|
|
33126
|
+
var _a;
|
|
33127
|
+
const {
|
|
33128
|
+
contextCountry
|
|
33129
|
+
} = useCoreContext();
|
|
33043
33130
|
if (!legalEntityId && !parentLegalEntityId) {
|
|
33044
33131
|
throw new Error("Must provide at-least one of parentLegalEntityId or legalEntityId");
|
|
33045
33132
|
}
|
|
@@ -33072,12 +33159,14 @@ function CreateIndividualComponent({
|
|
|
33072
33159
|
useEffect(() => {
|
|
33073
33160
|
fetchLegalEntity().catch(logger$7.error);
|
|
33074
33161
|
}, [fetchLegalEntity]);
|
|
33162
|
+
const country2 = ((_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.residentialAddress.country) ?? contextCountry;
|
|
33075
33163
|
return loadingStatus === "loading" ? jsx(Loader, {
|
|
33076
33164
|
size: "medium"
|
|
33077
33165
|
}) : jsx(IndividualDropinComponent, {
|
|
33078
33166
|
eventEmitter: eventEmitter ?? new EventEmitter(),
|
|
33079
33167
|
parentLegalEntity,
|
|
33080
33168
|
legalEntityResponse: legalEntity,
|
|
33169
|
+
country: country2,
|
|
33081
33170
|
handleGetDocument: getDocument2,
|
|
33082
33171
|
handleCreateDocument: createDocument2,
|
|
33083
33172
|
handleUpdateDocument: updateDocument2,
|