@undp/carbon-library 1.0.292-CARBON-419.2 → 1.0.292-CARBON-369.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +255 -1085
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +0 -1
- package/dist/cjs/types/Definitions/index.d.ts +0 -2
- package/dist/esm/index.js +257 -1087
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +0 -1
- package/dist/esm/types/Definitions/index.d.ts +0 -2
- package/dist/index.d.ts +1 -180
- package/dist/locales/i18n/addCompany/en.json +1 -5
- package/dist/locales/i18n/addCompany/es.json +1 -5
- package/dist/locales/i18n/addCompany/fr.json +1 -5
- package/dist/locales/i18n/addProgramme/en.json +0 -4
- package/dist/locales/i18n/companyDetails/en.json +1 -3
- package/dist/locales/i18n/companyDetails/es.json +1 -3
- package/dist/locales/i18n/companyDetails/fr.json +1 -3
- package/dist/locales/i18n/companyProfile/en.json +0 -13
- package/package.json +1 -1
- package/dist/cjs/types/Definitions/Enums/govDep.enum.d.ts +0 -159
- package/dist/cjs/types/Definitions/Enums/ministry.enum.d.ts +0 -17
- package/dist/esm/types/Definitions/Enums/govDep.enum.d.ts +0 -159
- package/dist/esm/types/Definitions/Enums/ministry.enum.d.ts +0 -17
package/dist/esm/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PlusOutlined, FilterOutlined, DownloadOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, LockOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined, PlusCircleOutlined, LockFilled, CloseCircleOutlined } from '@ant-design/icons';
|
2
|
-
import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps,
|
2
|
+
import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, InputNumber, Tooltip, Select, Modal, Alert, Card, Skeleton, Tag, Checkbox, DatePicker, Popover, List, Typography, Spin, Tabs, Progress, Collapse } from 'antd';
|
3
3
|
import React, { createContext, useState, useEffect, useCallback, useContext, useRef } from 'react';
|
4
4
|
import { DateTime } from 'luxon';
|
5
5
|
import { Buffer } from 'buffer';
|
@@ -6115,186 +6115,6 @@ var GhgStatCardTypes;
|
|
6115
6115
|
GhgStatCardTypes["AGG_EMISSIONS_COMPARISON"] = "AGG_EMISSIONS_COMPARISON";
|
6116
6116
|
})(GhgStatCardTypes || (GhgStatCardTypes = {}));
|
6117
6117
|
|
6118
|
-
var GovDepartment;
|
6119
|
-
(function (GovDepartment) {
|
6120
|
-
GovDepartment["Cocoa Research Institute"] = "1";
|
6121
|
-
GovDepartment["National Agricultural Extension, Research and Liaison Services"] = "2";
|
6122
|
-
GovDepartment["National Veterinary Research Institute"] = "3";
|
6123
|
-
GovDepartment["Agricultural Insurance Corporation"] = "4";
|
6124
|
-
GovDepartment["National Root Crops Research Institute"] = "5";
|
6125
|
-
GovDepartment["Agricultural Research Council"] = "6";
|
6126
|
-
GovDepartment["Institute for Oceanography and Marine Research"] = "7";
|
6127
|
-
GovDepartment["Institute for Oil Palm Research"] = "8";
|
6128
|
-
GovDepartment["Agricultural Quarantine Service"] = "9";
|
6129
|
-
GovDepartment["National Horticultural Research Institute"] = "10";
|
6130
|
-
GovDepartment["Federal Airports Authority"] = "11";
|
6131
|
-
GovDepartment["Airspace Management Agency"] = "12";
|
6132
|
-
GovDepartment["Civil Aviation Authority"] = "13";
|
6133
|
-
GovDepartment["Safety Investigation Bureau"] = "14";
|
6134
|
-
GovDepartment["Meteorological Agency"] = "15";
|
6135
|
-
GovDepartment["College of Aviation Technology"] = "16";
|
6136
|
-
GovDepartment["National Information Technology Development Agency"] = "17";
|
6137
|
-
GovDepartment["Satellite Limited"] = "18";
|
6138
|
-
GovDepartment["Broadcasting Commission"] = "19";
|
6139
|
-
GovDepartment["Commission"] = "20";
|
6140
|
-
GovDepartment["Postal Service"] = "21";
|
6141
|
-
GovDepartment["National Frequency Management Council"] = "22";
|
6142
|
-
GovDepartment["Television Authority"] = "23";
|
6143
|
-
GovDepartment["Galaxy Backbone"] = "24";
|
6144
|
-
GovDepartment["Asset Management Corporation"] = "25";
|
6145
|
-
GovDepartment["Social Security Administration"] = "26";
|
6146
|
-
GovDepartment["Budget Office of the Federation"] = "27";
|
6147
|
-
GovDepartment["Bureau of Public Enterprises"] = "28";
|
6148
|
-
GovDepartment["Bureau of Public Procurement"] = "29";
|
6149
|
-
GovDepartment["Central Bank"] = "30";
|
6150
|
-
GovDepartment["Corporate Affairs Commission"] = "31";
|
6151
|
-
GovDepartment["Debt Management Office"] = "32";
|
6152
|
-
GovDepartment["Inland Revenue Service"] = "33";
|
6153
|
-
GovDepartment["Mortgage Bank"] = "34";
|
6154
|
-
GovDepartment["Fiscal Responsibility Commission"] = "35";
|
6155
|
-
GovDepartment["Infrastructure Concession Regulatory Commission"] = "36";
|
6156
|
-
GovDepartment["National Bureau of Statistics"] = "37";
|
6157
|
-
GovDepartment["National Council on Privatisation"] = "38";
|
6158
|
-
GovDepartment["National Insurance Commission"] = "39";
|
6159
|
-
GovDepartment["National Pension Commission"] = "40";
|
6160
|
-
GovDepartment["National Planning Commission"] = "41";
|
6161
|
-
GovDepartment["National Sugar Development Council"] = "42";
|
6162
|
-
GovDepartment["Niger Delta Development Commission"] = "43";
|
6163
|
-
GovDepartment["Customs Service"] = "44";
|
6164
|
-
GovDepartment["Deposit Insurance Corporation"] = "45";
|
6165
|
-
GovDepartment["Investment Promotion Commission"] = "46";
|
6166
|
-
GovDepartment["Export - Import Bank"] = "47";
|
6167
|
-
GovDepartment["Export Promotion Council"] = "48";
|
6168
|
-
GovDepartment["Oil and Gas Free Zones Authority"] = "49";
|
6169
|
-
GovDepartment["Export Processing Zones Authority"] = "50";
|
6170
|
-
GovDepartment["Revenue Mobilisation Allocation and Fiscal Commission"] = "51";
|
6171
|
-
GovDepartment["Securities and Exchange Commission"] = "52";
|
6172
|
-
GovDepartment["Standards Organisation"] = "53";
|
6173
|
-
GovDepartment["Small and Medium Enterprise Development Agency"] = "54";
|
6174
|
-
GovDepartment["National Board for Arabic And Islamic Studies"] = "55";
|
6175
|
-
GovDepartment["Joint Admissions and Matriculation Board"] = "56";
|
6176
|
-
GovDepartment["National Examination Council"] = "115";
|
6177
|
-
GovDepartment["National Open University"] = "57";
|
6178
|
-
GovDepartment["National Teachers Institute"] = "58";
|
6179
|
-
GovDepartment["National Universities Commission"] = "59";
|
6180
|
-
GovDepartment["Tertiary Education Trust Fund"] = "60";
|
6181
|
-
GovDepartment["Teachers Registration Council"] = "61";
|
6182
|
-
GovDepartment["National Business and Technical Examinations Board"] = "62";
|
6183
|
-
GovDepartment["Universal Basic Education Commission"] = "63";
|
6184
|
-
GovDepartment["West African Examination Council"] = "64";
|
6185
|
-
GovDepartment["National Commission for Colleges of Education"] = "65";
|
6186
|
-
GovDepartment["National Library"] = "66";
|
6187
|
-
GovDepartment["Midstream and Downstream Petroleum Regulatory Authority"] = "67";
|
6188
|
-
GovDepartment["Upstream Petroleum Regulatory Commission"] = "68";
|
6189
|
-
GovDepartment["Electricity Management Services Limited"] = "69";
|
6190
|
-
GovDepartment["Energy Commission"] = "70";
|
6191
|
-
GovDepartment["National Power Training Institute"] = "71";
|
6192
|
-
GovDepartment["Electricity Regulatory Commission"] = "72";
|
6193
|
-
GovDepartment["Content Monitoring and Development Board"] = "73";
|
6194
|
-
GovDepartment["National Petroleum Corporation"] = "74";
|
6195
|
-
GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
|
6196
|
-
GovDepartment["Power Holding Company (defunct)"] = "77";
|
6197
|
-
GovDepartment["Rural Electrification Agency"] = "78";
|
6198
|
-
GovDepartment["Transmission Company"] = "79";
|
6199
|
-
GovDepartment["Environmental Protection Agency (defunct)"] = "80";
|
6200
|
-
GovDepartment["Forestry Research Institute"] = "81";
|
6201
|
-
GovDepartment["National Biosafety Management Agency"] = "82";
|
6202
|
-
GovDepartment["National Environmental Standards and Regulations Enforcement Agency"] = "83";
|
6203
|
-
GovDepartment["National Oil Spill Detection and Response Agency"] = "84";
|
6204
|
-
GovDepartment["Environmental Health Officers Registration Council"] = "85";
|
6205
|
-
GovDepartment["National Health Insurance Scheme"] = "86";
|
6206
|
-
GovDepartment["Institute for Pharmaceutical Research and Development"] = "87";
|
6207
|
-
GovDepartment["Agency for the Control of AIDS"] = "88";
|
6208
|
-
GovDepartment["Agency for Food and Drug Administration and Control"] = "89";
|
6209
|
-
GovDepartment["Primary Health Care Development Agency"] = "90";
|
6210
|
-
GovDepartment["Institute of Medical Research"] = "91";
|
6211
|
-
GovDepartment["Centre for Disease Control"] = "92";
|
6212
|
-
GovDepartment["Drug Law Enforcement Agency"] = "93";
|
6213
|
-
GovDepartment["Defence Intelligence Agency"] = "94";
|
6214
|
-
GovDepartment["State Security Service"] = "95";
|
6215
|
-
GovDepartment["National Intelligence Agency"] = "96";
|
6216
|
-
GovDepartment["Financial Intelligence Unit"] = "97";
|
6217
|
-
GovDepartment["National Judicial Council"] = "98";
|
6218
|
-
GovDepartment["Federal Judicial Service Commission"] = "99";
|
6219
|
-
GovDepartment["National Judicial Institute"] = "100";
|
6220
|
-
GovDepartment["Maritime Administration and Safety Agency"] = "101";
|
6221
|
-
GovDepartment["Ports Authority"] = "102";
|
6222
|
-
GovDepartment["Shippers' Council"] = "103";
|
6223
|
-
GovDepartment["Broadcasting Organisation"] = "104";
|
6224
|
-
GovDepartment["News Agency"] = "105";
|
6225
|
-
GovDepartment["Press Council"] = "106";
|
6226
|
-
GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
|
6227
|
-
GovDepartment["Biotechnology Development Agency"] = "109";
|
6228
|
-
GovDepartment["Centre for Remote Sensing"] = "110";
|
6229
|
-
GovDepartment["Science and Technology Complex"] = "111";
|
6230
|
-
GovDepartment["Office for Technology Acquisition and Promotion"] = "112";
|
6231
|
-
GovDepartment["Space Research and Development Agency"] = "113";
|
6232
|
-
GovDepartment["Nuclear Regulatory Authority"] = "114";
|
6233
|
-
GovDepartment["Raw Materials Research and Development Council"] = "116";
|
6234
|
-
GovDepartment["Communications Satellite Ltd"] = "117";
|
6235
|
-
GovDepartment["Centre for Technology Management"] = "118";
|
6236
|
-
GovDepartment["Hydrological Services Agency"] = "119";
|
6237
|
-
GovDepartment["Integrated Water Resources Commission"] = "120";
|
6238
|
-
GovDepartment["Water Resources Institute"] = "121";
|
6239
|
-
GovDepartment["River Basin Development Authorities"] = "122";
|
6240
|
-
GovDepartment["Centre for Black and African Arts and Civilization"] = "123";
|
6241
|
-
GovDepartment["Automotive Design and Development Council"] = "124";
|
6242
|
-
GovDepartment["Code of Conduct Bureau"] = "125";
|
6243
|
-
GovDepartment["Computer Professionals Registration Council"] = "126";
|
6244
|
-
GovDepartment["Consumer Protection Council"] = "127";
|
6245
|
-
GovDepartment["Economic and Financial Crimes Commission"] = "128";
|
6246
|
-
GovDepartment["Federal Character Commission"] = "129";
|
6247
|
-
GovDepartment["Federal Housing Authority"] = "130";
|
6248
|
-
GovDepartment["Corrupt Practices and Other Related Offences Commission"] = "131";
|
6249
|
-
GovDepartment["Independent National Electoral Commission"] = "132";
|
6250
|
-
GovDepartment["Industrial Training Fund"] = "133";
|
6251
|
-
GovDepartment["Legal Aid Council"] = "134";
|
6252
|
-
GovDepartment["Agency for the Prohibition of Trafficking in Persons"] = "135";
|
6253
|
-
GovDepartment["National Boundary Commission"] = "136";
|
6254
|
-
GovDepartment["National Council of Arts and Culture"] = "137";
|
6255
|
-
GovDepartment["Economic Reconstruction Fund"] = "138";
|
6256
|
-
GovDepartment["Emergency Management Agency"] = "139";
|
6257
|
-
GovDepartment["Hajj Commission"] = "140";
|
6258
|
-
GovDepartment["Human Rights Commission"] = "141";
|
6259
|
-
GovDepartment["Identity Management Commission"] = "142";
|
6260
|
-
GovDepartment["Institute for Hospitality Tourism"] = "143";
|
6261
|
-
GovDepartment["Lottery Regulatory Commission"] = "144";
|
6262
|
-
GovDepartment["Orientation Agency"] = "145";
|
6263
|
-
GovDepartment["Population Commission"] = "146";
|
6264
|
-
GovDepartment["Poverty Eradication Programme (defunct)"] = "147";
|
6265
|
-
GovDepartment["Salaries, Incomes and Wages Commission"] = "148";
|
6266
|
-
GovDepartment["Sports Commission"] = "149";
|
6267
|
-
GovDepartment["Extractive Industries Transparency Initiative"] = "150";
|
6268
|
-
GovDepartment["Immigration Service"] = "151";
|
6269
|
-
GovDepartment["Building and Road Research Institute"] = "152";
|
6270
|
-
GovDepartment["Institute of Building"] = "153";
|
6271
|
-
GovDepartment["Christian Pilgrim Commission"] = "154";
|
6272
|
-
GovDepartment["Copyright Commission"] = "155";
|
6273
|
-
GovDepartment["Tourism Development Corporation"] = "156";
|
6274
|
-
GovDepartment["Public Complaints Commission"] = "157";
|
6275
|
-
GovDepartment["Surveyors Council"] = "158";
|
6276
|
-
GovDepartment["National Lottery Trust Fund"] = "159";
|
6277
|
-
})(GovDepartment || (GovDepartment = {}));
|
6278
|
-
|
6279
|
-
var Ministry;
|
6280
|
-
(function (Ministry) {
|
6281
|
-
Ministry["Agriculture"] = "Agriculture";
|
6282
|
-
Ministry["Aviation"] = "Aviation";
|
6283
|
-
Ministry["Communications"] = "Communications";
|
6284
|
-
Ministry["Economy"] = "Economy";
|
6285
|
-
Ministry["Education"] = "Education";
|
6286
|
-
Ministry["Energy"] = "Energy";
|
6287
|
-
Ministry["Environment"] = "Environment";
|
6288
|
-
Ministry["Health"] = "Health";
|
6289
|
-
Ministry["Intelligence"] = "Intelligence";
|
6290
|
-
Ministry["Judiciary"] = "Judiciary";
|
6291
|
-
Ministry["Maritime"] = "Maritime";
|
6292
|
-
Ministry["Media"] = "Media";
|
6293
|
-
Ministry["ScienceAndTechnology"] = "Science And Technology";
|
6294
|
-
Ministry["WaterResources"] = "Water Resources";
|
6295
|
-
Ministry["Other"] = "Other";
|
6296
|
-
})(Ministry || (Ministry = {}));
|
6297
|
-
|
6298
6118
|
var ConfigurationSettingsType;
|
6299
6119
|
(function (ConfigurationSettingsType) {
|
6300
6120
|
ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
|
@@ -6352,310 +6172,24 @@ var Projection = /** @class */ (function () {
|
|
6352
6172
|
return Projection;
|
6353
6173
|
}());
|
6354
6174
|
|
6355
|
-
var ministries = [
|
6356
|
-
"Agriculture",
|
6357
|
-
"Aviation",
|
6358
|
-
"Communications",
|
6359
|
-
"Economy",
|
6360
|
-
"Education",
|
6361
|
-
"Energy",
|
6362
|
-
"Environment",
|
6363
|
-
"Health",
|
6364
|
-
"Intelligence",
|
6365
|
-
"Judiciary",
|
6366
|
-
"Maritime",
|
6367
|
-
"Media",
|
6368
|
-
"Science And Technology",
|
6369
|
-
"Water Resources",
|
6370
|
-
"Other",
|
6371
|
-
];
|
6372
|
-
var ministryOrgs = {
|
6373
|
-
Agriculture: [
|
6374
|
-
"Cocoa Research Institute",
|
6375
|
-
"National Agricultural Extension, Research and Liaison Services",
|
6376
|
-
"National Veterinary Research Institute",
|
6377
|
-
"Agricultural Insurance Corporation",
|
6378
|
-
"National Root Crops Research Institute",
|
6379
|
-
"Agricultural Research Council",
|
6380
|
-
"Institute for Oceanography and Marine Research",
|
6381
|
-
"Institute for Oil Palm Research",
|
6382
|
-
"Agricultural Quarantine Service",
|
6383
|
-
"National Horticultural Research Institute",
|
6384
|
-
],
|
6385
|
-
Aviation: [
|
6386
|
-
"Federal Airports Authority",
|
6387
|
-
"Airspace Management Agency",
|
6388
|
-
"Civil Aviation Authority",
|
6389
|
-
"Safety Investigation Bureau",
|
6390
|
-
"Meteorological Agency",
|
6391
|
-
"College of Aviation Technology",
|
6392
|
-
],
|
6393
|
-
Communications: [
|
6394
|
-
"National Information Technology Development Agency",
|
6395
|
-
"Satellite Limited",
|
6396
|
-
"Broadcasting Commission",
|
6397
|
-
"Commission",
|
6398
|
-
"Postal Service",
|
6399
|
-
"National Frequency Management Council",
|
6400
|
-
"Television Authority",
|
6401
|
-
"Galaxy Backbone",
|
6402
|
-
],
|
6403
|
-
Economy: [
|
6404
|
-
"Asset Management Corporation",
|
6405
|
-
"Social Security Administration",
|
6406
|
-
"Budget Office of the Federation",
|
6407
|
-
"Bureau of Public Enterprises",
|
6408
|
-
"Bureau of Public Procurement",
|
6409
|
-
"Central Bank",
|
6410
|
-
"Corporate Affairs Commission",
|
6411
|
-
"Debt Management Office",
|
6412
|
-
"Inland Revenue Service",
|
6413
|
-
"Mortgage Bank",
|
6414
|
-
"Fiscal Responsibility Commission",
|
6415
|
-
"Infrastructure Concession Regulatory Commission",
|
6416
|
-
"National Bureau of Statistics",
|
6417
|
-
"National Council on Privatisation",
|
6418
|
-
"National Insurance Commission",
|
6419
|
-
"National Pension Commission",
|
6420
|
-
"National Planning Commission",
|
6421
|
-
"National Sugar Development Council",
|
6422
|
-
"Niger Delta Development Commission",
|
6423
|
-
"Customs Service",
|
6424
|
-
"Deposit Insurance Corporation",
|
6425
|
-
"Investment Promotion Commission",
|
6426
|
-
"Export - Import Bank",
|
6427
|
-
"Export Promotion Council",
|
6428
|
-
"Oil and Gas Free Zones Authority",
|
6429
|
-
"Export Processing Zones Authority",
|
6430
|
-
"Revenue Mobilisation Allocation and Fiscal Commission",
|
6431
|
-
"Securities and Exchange Commission",
|
6432
|
-
"Standards Organisation",
|
6433
|
-
"Small and Medium Enterprise Development Agency",
|
6434
|
-
],
|
6435
|
-
Education: [
|
6436
|
-
"National Board for Arabic And Islamic Studies",
|
6437
|
-
"Joint Admissions and Matriculation Board",
|
6438
|
-
"National Examination Council",
|
6439
|
-
"National Open University",
|
6440
|
-
"National Teachers Institute",
|
6441
|
-
"National Universities Commission",
|
6442
|
-
"Tertiary Education Trust Fund",
|
6443
|
-
"Teachers Registration Council",
|
6444
|
-
"National Business and Technical Examinations Board",
|
6445
|
-
"Universal Basic Education Commission",
|
6446
|
-
"West African Examination Council",
|
6447
|
-
"National Commission for Colleges of Education",
|
6448
|
-
"National Library",
|
6449
|
-
],
|
6450
|
-
Energy: [
|
6451
|
-
"Midstream and Downstream Petroleum Regulatory Authority",
|
6452
|
-
"Upstream Petroleum Regulatory Commission",
|
6453
|
-
"Electricity Management Services Limited",
|
6454
|
-
"Energy Commission",
|
6455
|
-
"National Power Training Institute",
|
6456
|
-
"Electricity Regulatory Commission",
|
6457
|
-
"Content Monitoring and Development Board",
|
6458
|
-
"National Petroleum Corporation",
|
6459
|
-
"Nuclear Regulatory Authority",
|
6460
|
-
"Petroleum Product Pricing Regulatory Agency",
|
6461
|
-
"Power Holding Company (defunct)",
|
6462
|
-
"Rural Electrification Agency",
|
6463
|
-
"Transmission Company",
|
6464
|
-
],
|
6465
|
-
Environment: [
|
6466
|
-
"Environmental Protection Agency (defunct)",
|
6467
|
-
"Forestry Research Institute",
|
6468
|
-
"National Biosafety Management Agency",
|
6469
|
-
"National Environmental Standards and Regulations Enforcement Agency",
|
6470
|
-
"National Oil Spill Detection and Response Agency",
|
6471
|
-
"Environmental Health Officers Registration Council",
|
6472
|
-
],
|
6473
|
-
Health: [
|
6474
|
-
"National Health Insurance Scheme",
|
6475
|
-
"Institute for Pharmaceutical Research and Development",
|
6476
|
-
"Agency for the Control of AIDS",
|
6477
|
-
"Agency for Food and Drug Administration and Control",
|
6478
|
-
"Primary Health Care Development Agency",
|
6479
|
-
"Institute of Medical Research",
|
6480
|
-
"Centre for Disease Control",
|
6481
|
-
"Drug Law Enforcement Agency",
|
6482
|
-
],
|
6483
|
-
Intelligence: [
|
6484
|
-
"Defence Intelligence Agency",
|
6485
|
-
"State Security Service",
|
6486
|
-
"National Intelligence Agency",
|
6487
|
-
"Financial Intelligence Unit",
|
6488
|
-
],
|
6489
|
-
Judiciary: [
|
6490
|
-
"National Judicial Council",
|
6491
|
-
"Federal Judicial Service Commission",
|
6492
|
-
"National Judicial Institute",
|
6493
|
-
],
|
6494
|
-
Maritime: [
|
6495
|
-
"Maritime Administration and Safety Agency",
|
6496
|
-
"Ports Authority",
|
6497
|
-
"Shippers' Council",
|
6498
|
-
],
|
6499
|
-
Media: [
|
6500
|
-
"Broadcasting Organisation",
|
6501
|
-
"News Agency",
|
6502
|
-
"Press Council",
|
6503
|
-
"Television Authority",
|
6504
|
-
],
|
6505
|
-
ScienceAndTechnology: [
|
6506
|
-
"Agency For Science and Engineering Infrastructure",
|
6507
|
-
"Biotechnology Development Agency",
|
6508
|
-
"Centre for Remote Sensing",
|
6509
|
-
"Science and Technology Complex",
|
6510
|
-
"Office for Technology Acquisition and Promotion",
|
6511
|
-
"Space Research and Development Agency",
|
6512
|
-
"Nuclear Regulatory Authority",
|
6513
|
-
"Raw Materials Research and Development Council",
|
6514
|
-
"Communications Satellite Ltd",
|
6515
|
-
"Centre for Technology Management",
|
6516
|
-
],
|
6517
|
-
WaterResources: [
|
6518
|
-
"Hydrological Services Agency",
|
6519
|
-
"Integrated Water Resources Commission",
|
6520
|
-
"Water Resources Institute",
|
6521
|
-
"River Basin Development Authorities",
|
6522
|
-
],
|
6523
|
-
Other: [
|
6524
|
-
"Centre for Black and African Arts and Civilization",
|
6525
|
-
"Automotive Design and Development Council",
|
6526
|
-
"Code of Conduct Bureau",
|
6527
|
-
"Computer Professionals Registration Council",
|
6528
|
-
"Consumer Protection Council",
|
6529
|
-
"Economic and Financial Crimes Commission",
|
6530
|
-
"Federal Character Commission",
|
6531
|
-
"Federal Housing Authority",
|
6532
|
-
"Corrupt Practices and Other Related Offences Commission",
|
6533
|
-
"Independent National Electoral Commission",
|
6534
|
-
"Industrial Training Fund",
|
6535
|
-
"Legal Aid Council",
|
6536
|
-
"Agency for the Prohibition of Trafficking in Persons",
|
6537
|
-
"National Boundary Commission",
|
6538
|
-
"National Council of Arts and Culture",
|
6539
|
-
"Economic Reconstruction Fund",
|
6540
|
-
"Emergency Management Agency",
|
6541
|
-
"Hajj Commission",
|
6542
|
-
"Human Rights Commission",
|
6543
|
-
"Identity Management Commission",
|
6544
|
-
"Institute for Hospitality Tourism",
|
6545
|
-
"Lottery Regulatory Commission",
|
6546
|
-
"Orientation Agency",
|
6547
|
-
"Population Commission",
|
6548
|
-
"Poverty Eradication Programme (defunct)",
|
6549
|
-
"Salaries, Incomes and Wages Commission",
|
6550
|
-
"Sports Commission",
|
6551
|
-
"Extractive Industries Transparency Initiative",
|
6552
|
-
"Immigration Service",
|
6553
|
-
"Building and Road Research Institute",
|
6554
|
-
"Institute of Building",
|
6555
|
-
"Christian Pilgrim Commission",
|
6556
|
-
"Copyright Commission",
|
6557
|
-
"Tourism Development Corporation",
|
6558
|
-
"Public Complaints Commission",
|
6559
|
-
"Surveyors Council",
|
6560
|
-
"National Lottery Trust Fund",
|
6561
|
-
],
|
6562
|
-
};
|
6563
6175
|
var AddNewCompanyComponent = function (props) {
|
6564
|
-
var _a
|
6176
|
+
var _a;
|
6565
6177
|
var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize, useLocation = props.useLocation, regionField = props.regionField, isGuest = props.isGuest, onNavigateToHome = props.onNavigateToHome, systemType = props.systemType;
|
6566
6178
|
var formOne = Form.useForm()[0];
|
6567
6179
|
var formTwo = Form.useForm()[0];
|
6568
|
-
var
|
6569
|
-
var
|
6180
|
+
var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
6181
|
+
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
6570
6182
|
var contactNoInput = useState()[0];
|
6571
|
-
var
|
6572
|
-
var
|
6573
|
-
var
|
6574
|
-
var
|
6183
|
+
var _d = useState(0), current = _d[0], setCurrent = _d[1];
|
6184
|
+
var _e = useState(false), isUpdate = _e[0], setIsUpdate = _e[1];
|
6185
|
+
var _f = useConnection(), put = _f.put, get = _f.get, post = _f.post;
|
6186
|
+
var _g = useUserContext(), setUserInfo = _g.setUserInfo, userInfoState = _g.userInfoState;
|
6575
6187
|
var state = useLocation().state;
|
6576
|
-
var
|
6577
|
-
var
|
6578
|
-
var
|
6579
|
-
var
|
6580
|
-
var
|
6581
|
-
var _s = useState(""), selectedMinistry = _s[0], setSelectedMinistry = _s[1];
|
6582
|
-
var _t = useState([]), existgovDep = _t[0], setexistGovdep = _t[1];
|
6583
|
-
var _u = useState(ministries), ministryDropdown = _u[0], setMinistryDropdown = _u[1];
|
6584
|
-
var _v = useState(((_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.govDep) ? (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.govDep : ""), intialGovDep = _v[0]; _v[1];
|
6585
|
-
var _w = useState(((_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.ministry) ? (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.ministry : ""), initialMinistry = _w[0]; _w[1];
|
6586
|
-
var selectedGovDepatments = ministryOrgs[selectedMinistry];
|
6587
|
-
if (existgovDep && existgovDep.length > 0) {
|
6588
|
-
selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
|
6589
|
-
}
|
6590
|
-
var onChangeMinistry = function (val) { return __awaiter(void 0, void 0, void 0, function () {
|
6591
|
-
var key;
|
6592
|
-
return __generator(this, function (_a) {
|
6593
|
-
key = Object.keys(Ministry)[Object.values(Ministry).indexOf(val)];
|
6594
|
-
setSelectedMinistry(String(key));
|
6595
|
-
if (isUpdate && val === initialMinistry) {
|
6596
|
-
formOne.setFieldValue("govDep", Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(intialGovDep)]);
|
6597
|
-
}
|
6598
|
-
else {
|
6599
|
-
formOne.setFieldValue("govDep", "");
|
6600
|
-
}
|
6601
|
-
getGovDep(val);
|
6602
|
-
return [2 /*return*/];
|
6603
|
-
});
|
6604
|
-
}); };
|
6605
|
-
var getMinistryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6606
|
-
var leftmins, excludingmin_1, _i, ministries_1, min, response, minkey, error_1;
|
6607
|
-
return __generator(this, function (_a) {
|
6608
|
-
switch (_a.label) {
|
6609
|
-
case 0:
|
6610
|
-
setLoadingList(true);
|
6611
|
-
_a.label = 1;
|
6612
|
-
case 1:
|
6613
|
-
_a.trys.push([1, 6, 7, 8]);
|
6614
|
-
leftmins = [];
|
6615
|
-
excludingmin_1 = [];
|
6616
|
-
_i = 0, ministries_1 = ministries;
|
6617
|
-
_a.label = 2;
|
6618
|
-
case 2:
|
6619
|
-
if (!(_i < ministries_1.length)) return [3 /*break*/, 5];
|
6620
|
-
min = ministries_1[_i];
|
6621
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
6622
|
-
page: 1,
|
6623
|
-
size: 100,
|
6624
|
-
filterAnd: [
|
6625
|
-
{
|
6626
|
-
key: "ministry",
|
6627
|
-
operation: "=",
|
6628
|
-
value: min,
|
6629
|
-
},
|
6630
|
-
],
|
6631
|
-
})];
|
6632
|
-
case 3:
|
6633
|
-
response = _a.sent();
|
6634
|
-
minkey = Object.keys(Ministry)[Object.values(Ministry).indexOf(min)];
|
6635
|
-
if (response.data.length === ministryOrgs[minkey].length) {
|
6636
|
-
if (!isUpdate && min !== initialMinistry) {
|
6637
|
-
excludingmin_1.push(min);
|
6638
|
-
}
|
6639
|
-
}
|
6640
|
-
_a.label = 4;
|
6641
|
-
case 4:
|
6642
|
-
_i++;
|
6643
|
-
return [3 /*break*/, 2];
|
6644
|
-
case 5:
|
6645
|
-
leftmins = ministries.filter(function (x) { return !excludingmin_1.includes(x); });
|
6646
|
-
setMinistryDropdown(leftmins);
|
6647
|
-
return [3 /*break*/, 8];
|
6648
|
-
case 6:
|
6649
|
-
error_1 = _a.sent();
|
6650
|
-
console.log("Error in getting min list", error_1);
|
6651
|
-
return [3 /*break*/, 8];
|
6652
|
-
case 7:
|
6653
|
-
setLoadingList(false);
|
6654
|
-
return [7 /*endfinally*/];
|
6655
|
-
case 8: return [2 /*return*/];
|
6656
|
-
}
|
6657
|
-
});
|
6658
|
-
}); };
|
6188
|
+
var _h = useState([]), fileList = _h[0], setFileList = _h[1];
|
6189
|
+
var _j = useState([]), countries = _j[0], setCountries = _j[1];
|
6190
|
+
var _k = useState(false), loadingList = _k[0], setLoadingList = _k[1];
|
6191
|
+
var _l = useState([]), regionsList = _l[0], setRegionsList = _l[1];
|
6192
|
+
var _m = useState((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.companyRole), companyRole = _m[0], setCompanyRole = _m[1];
|
6659
6193
|
var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6660
6194
|
var response, alpha2Names;
|
6661
6195
|
return __generator(this, function (_a) {
|
@@ -6674,7 +6208,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6674
6208
|
});
|
6675
6209
|
}); };
|
6676
6210
|
var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6677
|
-
var response, regionNames,
|
6211
|
+
var response, regionNames, error_1;
|
6678
6212
|
return __generator(this, function (_a) {
|
6679
6213
|
switch (_a.label) {
|
6680
6214
|
case 0:
|
@@ -6701,52 +6235,8 @@ var AddNewCompanyComponent = function (props) {
|
|
6701
6235
|
}
|
6702
6236
|
return [3 /*break*/, 5];
|
6703
6237
|
case 3:
|
6704
|
-
|
6705
|
-
console.log("Error in getting regions list",
|
6706
|
-
return [3 /*break*/, 5];
|
6707
|
-
case 4:
|
6708
|
-
setLoadingList(false);
|
6709
|
-
return [7 /*endfinally*/];
|
6710
|
-
case 5: return [2 /*return*/];
|
6711
|
-
}
|
6712
|
-
});
|
6713
|
-
}); };
|
6714
|
-
var getGovDep = function (val) { return __awaiter(void 0, void 0, void 0, function () {
|
6715
|
-
var response, existDep, i, departName, error_3;
|
6716
|
-
return __generator(this, function (_a) {
|
6717
|
-
switch (_a.label) {
|
6718
|
-
case 0:
|
6719
|
-
setLoadingList(true);
|
6720
|
-
_a.label = 1;
|
6721
|
-
case 1:
|
6722
|
-
_a.trys.push([1, 3, 4, 5]);
|
6723
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
6724
|
-
page: 1,
|
6725
|
-
size: 200,
|
6726
|
-
filterAnd: [
|
6727
|
-
{
|
6728
|
-
key: "ministry",
|
6729
|
-
operation: "=",
|
6730
|
-
value: val,
|
6731
|
-
},
|
6732
|
-
],
|
6733
|
-
})];
|
6734
|
-
case 2:
|
6735
|
-
response = _a.sent();
|
6736
|
-
if (response && response.data) {
|
6737
|
-
existDep = [];
|
6738
|
-
for (i in response.data) {
|
6739
|
-
if (response.data[i].govDep && response.data[i].govDep.length > 0) {
|
6740
|
-
departName = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(response.data[i].govDep)];
|
6741
|
-
existDep.push(departName);
|
6742
|
-
}
|
6743
|
-
}
|
6744
|
-
setexistGovdep(existDep);
|
6745
|
-
}
|
6746
|
-
return [3 /*break*/, 5];
|
6747
|
-
case 3:
|
6748
|
-
error_3 = _a.sent();
|
6749
|
-
console.log("Error in getting exist Government Department list", error_3);
|
6238
|
+
error_1 = _a.sent();
|
6239
|
+
console.log("Error in getting regions list", error_1);
|
6750
6240
|
return [3 /*break*/, 5];
|
6751
6241
|
case 4:
|
6752
6242
|
setLoadingList(false);
|
@@ -6756,11 +6246,10 @@ var AddNewCompanyComponent = function (props) {
|
|
6756
6246
|
});
|
6757
6247
|
}); };
|
6758
6248
|
useEffect(function () {
|
6759
|
-
var _a, _b, _c
|
6249
|
+
var _a, _b, _c;
|
6760
6250
|
setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
|
6761
6251
|
getCountryList();
|
6762
6252
|
getRegionList();
|
6763
|
-
getMinistryList();
|
6764
6253
|
if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
|
6765
6254
|
setFileList([
|
6766
6255
|
{
|
@@ -6772,11 +6261,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6772
6261
|
},
|
6773
6262
|
]);
|
6774
6263
|
}
|
6775
|
-
if ((_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.ministry) {
|
6776
|
-
var key = Object.keys(Ministry)[Object.values(Ministry).indexOf((_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.ministry)];
|
6777
|
-
setSelectedMinistry(key);
|
6778
|
-
getGovDep((_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.ministry);
|
6779
|
-
}
|
6780
6264
|
}, []);
|
6781
6265
|
var normFile = function (e) {
|
6782
6266
|
if (Array.isArray(e)) {
|
@@ -6802,7 +6286,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6802
6286
|
}
|
6803
6287
|
};
|
6804
6288
|
var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
6805
|
-
var requestData, logoBase64, logoUrls, response, response,
|
6289
|
+
var requestData, logoBase64, logoUrls, response, response, error_2;
|
6806
6290
|
var _a, _b;
|
6807
6291
|
return __generator(this, function (_c) {
|
6808
6292
|
switch (_c.label) {
|
@@ -6830,10 +6314,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6830
6314
|
logoBase64 = _c.sent();
|
6831
6315
|
logoUrls = logoBase64.split(",");
|
6832
6316
|
requestData.company.logo = logoUrls[1];
|
6833
|
-
if (companyRole === CompanyRole.MINISTRY) {
|
6834
|
-
requestData.company.name =
|
6835
|
-
"Ministry of " + requestData.company.ministry;
|
6836
|
-
}
|
6837
6317
|
if (!isGuest) return [3 /*break*/, 4];
|
6838
6318
|
return [4 /*yield*/, post("national/user/register", requestData)];
|
6839
6319
|
case 3:
|
@@ -6870,10 +6350,10 @@ var AddNewCompanyComponent = function (props) {
|
|
6870
6350
|
_c.label = 6;
|
6871
6351
|
case 6: return [3 /*break*/, 9];
|
6872
6352
|
case 7:
|
6873
|
-
|
6353
|
+
error_2 = _c.sent();
|
6874
6354
|
message.open({
|
6875
6355
|
type: "error",
|
6876
|
-
content: "".concat(
|
6356
|
+
content: "".concat(error_2.message),
|
6877
6357
|
duration: 3,
|
6878
6358
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
6879
6359
|
});
|
@@ -6886,17 +6366,17 @@ var AddNewCompanyComponent = function (props) {
|
|
6886
6366
|
});
|
6887
6367
|
}); };
|
6888
6368
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6889
|
-
var formOneValues, values,
|
6890
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
6891
|
-
return __generator(this, function (
|
6892
|
-
switch (
|
6369
|
+
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
6370
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
6371
|
+
return __generator(this, function (_l) {
|
6372
|
+
switch (_l.label) {
|
6893
6373
|
case 0:
|
6894
6374
|
setLoading(true);
|
6895
6375
|
formOneValues = formOne.getFieldsValue();
|
6896
6376
|
formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
|
6897
|
-
|
6377
|
+
_l.label = 1;
|
6898
6378
|
case 1:
|
6899
|
-
|
6379
|
+
_l.trys.push([1, 5, , 6]);
|
6900
6380
|
values = {};
|
6901
6381
|
if (regionField) {
|
6902
6382
|
values = {
|
@@ -6924,26 +6404,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6924
6404
|
values.taxId = formOneValues.taxId;
|
6925
6405
|
values.paymentId = formOneValues.paymentId;
|
6926
6406
|
}
|
6927
|
-
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY
|
6928
|
-
((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
6929
|
-
if (formOneValues.govDep in GovDepartment) {
|
6930
|
-
key = formOneValues.govDep;
|
6931
|
-
values.govDep = GovDepartment[key];
|
6932
|
-
}
|
6933
|
-
else {
|
6934
|
-
values.govDep = formOneValues.govDep;
|
6935
|
-
}
|
6936
|
-
values.ministry = formOneValues.ministry;
|
6937
|
-
}
|
6938
|
-
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.MINISTRY) {
|
6407
|
+
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
|
6939
6408
|
values.sectoralScope = formOneValues.sectoralScope;
|
6940
6409
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
6941
|
-
values.name = "Ministry of " + formOneValues.ministry;
|
6942
6410
|
}
|
6943
|
-
if (((
|
6411
|
+
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
6944
6412
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
6945
6413
|
}
|
6946
|
-
if (((
|
6414
|
+
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.GOVERNMENT) {
|
6947
6415
|
values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
|
6948
6416
|
}
|
6949
6417
|
if (formOneValues.website) {
|
@@ -6954,15 +6422,15 @@ var AddNewCompanyComponent = function (props) {
|
|
6954
6422
|
}
|
6955
6423
|
if (!formOneValues.logo) return [3 /*break*/, 3];
|
6956
6424
|
if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
|
6957
|
-
return [4 /*yield*/, getBase64((
|
6425
|
+
return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
|
6958
6426
|
case 2:
|
6959
|
-
logoBase64 =
|
6427
|
+
logoBase64 = _l.sent();
|
6960
6428
|
logoUrls = logoBase64.split(",");
|
6961
6429
|
values.logo = logoUrls[1];
|
6962
|
-
|
6430
|
+
_l.label = 3;
|
6963
6431
|
case 3: return [4 /*yield*/, put("national/organisation/update", values)];
|
6964
6432
|
case 4:
|
6965
|
-
response =
|
6433
|
+
response = _l.sent();
|
6966
6434
|
if (response.status === 200 || response.status === 201) {
|
6967
6435
|
setUserInfo({
|
6968
6436
|
companyLogo: response.data.logo,
|
@@ -6978,10 +6446,10 @@ var AddNewCompanyComponent = function (props) {
|
|
6978
6446
|
setLoading(false);
|
6979
6447
|
return [3 /*break*/, 6];
|
6980
6448
|
case 5:
|
6981
|
-
|
6449
|
+
error_3 = _l.sent();
|
6982
6450
|
message.open({
|
6983
6451
|
type: "error",
|
6984
|
-
content: "".concat(t("errorInUpdatingCompany"), " ").concat(
|
6452
|
+
content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
|
6985
6453
|
duration: 3,
|
6986
6454
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
6987
6455
|
});
|
@@ -6999,7 +6467,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6999
6467
|
setCompanyRole(value);
|
7000
6468
|
};
|
7001
6469
|
var CompanyDetailsForm = function () {
|
7002
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p
|
6470
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
7003
6471
|
var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
|
7004
6472
|
? "certifier"
|
7005
6473
|
: companyRole === CompanyRole.PROGRAMME_DEVELOPER
|
@@ -7013,7 +6481,7 @@ var AddNewCompanyComponent = function (props) {
|
|
7013
6481
|
React.createElement(Row, { className: "row", gutter: [16, 16] },
|
7014
6482
|
React.createElement(Col, { xl: 12, md: 24 },
|
7015
6483
|
React.createElement("div", { className: "details-part-one" },
|
7016
|
-
|
6484
|
+
React.createElement(Form.Item, { label: t("addCompany:name"), name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
|
7017
6485
|
{
|
7018
6486
|
required: true,
|
7019
6487
|
message: "",
|
@@ -7032,7 +6500,7 @@ var AddNewCompanyComponent = function (props) {
|
|
7032
6500
|
}); },
|
7033
6501
|
},
|
7034
6502
|
] },
|
7035
|
-
React.createElement(Input, { size: "large" }))
|
6503
|
+
React.createElement(Input, { size: "large" })),
|
7036
6504
|
companyRole !== CompanyRole.MINISTRY
|
7037
6505
|
? (!isUpdate ||
|
7038
6506
|
(isUpdate &&
|
@@ -7081,7 +6549,7 @@ var AddNewCompanyComponent = function (props) {
|
|
7081
6549
|
] },
|
7082
6550
|
React.createElement(Input, { size: "large" })))
|
7083
6551
|
: null,
|
7084
|
-
|
6552
|
+
React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
|
7085
6553
|
{
|
7086
6554
|
required: true,
|
7087
6555
|
message: "",
|
@@ -7111,65 +6579,8 @@ var AddNewCompanyComponent = function (props) {
|
|
7111
6579
|
}); },
|
7112
6580
|
},
|
7113
6581
|
] },
|
7114
|
-
React.createElement(Input, { size: "large" }))
|
7115
|
-
(
|
7116
|
-
companyRole === CompanyRole.GOVERNMENT) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
7117
|
-
React.createElement(Form.Item, { label: t("addCompany:ministry"), name: "ministry", initialValue: (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.ministry, rules: [
|
7118
|
-
{
|
7119
|
-
required: true,
|
7120
|
-
message: "".concat(t("addCompany:ministry"), " ").concat(t("isRequired")),
|
7121
|
-
},
|
7122
|
-
] }, (companyRole !== CompanyRole.GOVERNMENT &&
|
7123
|
-
(ministryDropdown &&
|
7124
|
-
ministryDropdown.length > 0)) ? (React.createElement(Select, { size: "large", onChange: onChangeMinistry }, ministryDropdown.map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry)); }))) : (React.createElement(Select, { size: "large", disabled: true }))),
|
7125
|
-
companyRole === CompanyRole.GOVERNMENT && (React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.email, rules: [
|
7126
|
-
{
|
7127
|
-
required: true,
|
7128
|
-
message: "",
|
7129
|
-
},
|
7130
|
-
{
|
7131
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
7132
|
-
var val, reg, matches;
|
7133
|
-
return __generator(this, function (_a) {
|
7134
|
-
if (String(value).trim() === "" ||
|
7135
|
-
String(value).trim() === undefined ||
|
7136
|
-
value === null ||
|
7137
|
-
value === undefined) {
|
7138
|
-
throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
|
7139
|
-
}
|
7140
|
-
else {
|
7141
|
-
val = value.trim();
|
7142
|
-
reg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
7143
|
-
matches = val.match(reg)
|
7144
|
-
? val.match(reg)
|
7145
|
-
: [];
|
7146
|
-
if (matches.length === 0) {
|
7147
|
-
throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
|
7148
|
-
}
|
7149
|
-
}
|
7150
|
-
return [2 /*return*/];
|
7151
|
-
});
|
7152
|
-
}); },
|
7153
|
-
},
|
7154
|
-
] },
|
7155
|
-
React.createElement(Input, { size: "large" }))),
|
7156
|
-
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:ministerName"), name: "nameOfMinister", initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.nameOfMinister, rules: [
|
7157
|
-
{
|
7158
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
7159
|
-
return __generator(this, function (_a) {
|
7160
|
-
if (String(value).trim() === "" ||
|
7161
|
-
String(value).trim() === undefined ||
|
7162
|
-
value === null ||
|
7163
|
-
value === undefined) {
|
7164
|
-
throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
|
7165
|
-
}
|
7166
|
-
return [2 /*return*/];
|
7167
|
-
});
|
7168
|
-
}); },
|
7169
|
-
},
|
7170
|
-
] },
|
7171
|
-
React.createElement(Input, { size: "large" }))))),
|
7172
|
-
React.createElement(Form.Item, { className: "website", label: t("addCompany:website"), initialValue: (_j = (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.website) === null || _j === void 0 ? void 0 : _j.split("://")[1], name: "website", rules: [
|
6582
|
+
React.createElement(Input, { size: "large" })),
|
6583
|
+
React.createElement(Form.Item, { className: "website", label: t("addCompany:website"), initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
|
7173
6584
|
{
|
7174
6585
|
required: false,
|
7175
6586
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7187,23 +6598,6 @@ var AddNewCompanyComponent = function (props) {
|
|
7187
6598
|
},
|
7188
6599
|
], getValueFromEvent: function (event) { var _a; return (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value.trim(); } },
|
7189
6600
|
React.createElement(Input, { addonBefore: "https://", size: "large" })),
|
7190
|
-
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.address, rules: [
|
7191
|
-
{ required: true, message: "" },
|
7192
|
-
{
|
7193
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
7194
|
-
return __generator(this, function (_a) {
|
7195
|
-
if (String(value).trim() === "" ||
|
7196
|
-
String(value).trim() === undefined ||
|
7197
|
-
value === null ||
|
7198
|
-
value === undefined) {
|
7199
|
-
throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
|
7200
|
-
}
|
7201
|
-
return [2 /*return*/];
|
7202
|
-
});
|
7203
|
-
}); },
|
7204
|
-
},
|
7205
|
-
] },
|
7206
|
-
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
|
7207
6601
|
React.createElement(Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
|
7208
6602
|
{
|
7209
6603
|
validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7247,12 +6641,29 @@ var AddNewCompanyComponent = function (props) {
|
|
7247
6641
|
return false;
|
7248
6642
|
}, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
|
7249
6643
|
React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, t("addCompany:upload")))),
|
6644
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
|
6645
|
+
{ required: true, message: "" },
|
6646
|
+
{
|
6647
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6648
|
+
return __generator(this, function (_a) {
|
6649
|
+
if (String(value).trim() === "" ||
|
6650
|
+
String(value).trim() === undefined ||
|
6651
|
+
value === null ||
|
6652
|
+
value === undefined) {
|
6653
|
+
throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
|
6654
|
+
}
|
6655
|
+
return [2 /*return*/];
|
6656
|
+
});
|
6657
|
+
}); },
|
6658
|
+
},
|
6659
|
+
] },
|
6660
|
+
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
|
7250
6661
|
companyRole === CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
7251
6662
|
React.createElement(Space, { wrap: true, style: {
|
7252
6663
|
display: "flex",
|
7253
6664
|
marginBottom: 8,
|
7254
6665
|
}, align: "center", size: "large" },
|
7255
|
-
React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (
|
6666
|
+
React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
|
7256
6667
|
{ required: true, message: "" },
|
7257
6668
|
{
|
7258
6669
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7305,54 +6716,42 @@ var AddNewCompanyComponent = function (props) {
|
|
7305
6716
|
t("addCompany:programmeDeveleper")))),
|
7306
6717
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
7307
6718
|
CompanyRole.MINISTRY &&
|
7308
|
-
!isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
7309
|
-
React.createElement(
|
7310
|
-
React.createElement(
|
7311
|
-
|
7312
|
-
|
7313
|
-
|
7314
|
-
t("addCompany:min")))))))))),
|
7315
|
-
(companyRole === CompanyRole.MINISTRY ||
|
7316
|
-
companyRole === CompanyRole.GOVERNMENT) && (React.createElement(Form.Item, { label: t("addCompany:govdep"), name: "govDep", initialValue: Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(intialGovDep)], rules: [
|
6719
|
+
!isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
6720
|
+
React.createElement(Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
|
6721
|
+
React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
|
6722
|
+
React.createElement(AuditOutlined, { className: "role-icons" }),
|
6723
|
+
t("addCompany:min"))))))))),
|
6724
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:ministerName"), name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
|
7317
6725
|
{
|
7318
6726
|
required: true,
|
7319
|
-
message: ""
|
6727
|
+
message: "",
|
7320
6728
|
},
|
7321
6729
|
{
|
7322
6730
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
7323
|
-
var val;
|
7324
6731
|
return __generator(this, function (_a) {
|
7325
|
-
|
7326
|
-
|
7327
|
-
|
7328
|
-
|
7329
|
-
|
7330
|
-
throw new Error("".concat(t("addCompany:govdepnotexist")));
|
6732
|
+
if (String(value).trim() === "" ||
|
6733
|
+
String(value).trim() === undefined ||
|
6734
|
+
value === null ||
|
6735
|
+
value === undefined) {
|
6736
|
+
throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
|
7331
6737
|
}
|
7332
6738
|
return [2 /*return*/];
|
7333
6739
|
});
|
7334
6740
|
}); },
|
7335
6741
|
},
|
7336
|
-
] },
|
7337
|
-
(
|
7338
|
-
selectedGovDepatments.length > 0)) ? (React.createElement(Select, { size: "large" }, selectedGovDepatments === null || selectedGovDepatments === void 0 ? void 0 : selectedGovDepatments.map(function (val) {
|
7339
|
-
if (val in GovDepartment) {
|
7340
|
-
var key = val;
|
7341
|
-
return (React.createElement(Select.Option, { key: GovDepartment[key], value: GovDepartment[key] }, val));
|
7342
|
-
}
|
7343
|
-
return null;
|
7344
|
-
}))) : (React.createElement(Select, { size: "large", disabled: true })))),
|
6742
|
+
] },
|
6743
|
+
React.createElement(Input, { size: "large" }))),
|
7345
6744
|
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
|
7346
6745
|
{
|
7347
6746
|
required: true,
|
7348
6747
|
message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
|
7349
6748
|
},
|
7350
|
-
], initialValue: (
|
6749
|
+
], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
|
7351
6750
|
React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
|
7352
6751
|
var key = _a[0], value = _a[1];
|
7353
6752
|
return (React.createElement(Select.Option, { key: value, value: value }, key));
|
7354
6753
|
})))),
|
7355
|
-
React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (
|
6754
|
+
React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
|
7356
6755
|
{
|
7357
6756
|
required: true,
|
7358
6757
|
message: "",
|
@@ -7383,14 +6782,14 @@ var AddNewCompanyComponent = function (props) {
|
|
7383
6782
|
},
|
7384
6783
|
] },
|
7385
6784
|
React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
|
7386
|
-
regionField && (React.createElement(Form.Item, { label: t("
|
6785
|
+
regionField && (React.createElement(Form.Item, { label: t("region"), name: "regions", initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.regions, rules: [
|
7387
6786
|
{
|
7388
6787
|
required: true,
|
7389
|
-
message: "".concat(t("
|
6788
|
+
message: "".concat(t("region"), " ").concat(t("isRequired")),
|
7390
6789
|
},
|
7391
6790
|
] },
|
7392
6791
|
React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))),
|
7393
|
-
companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (
|
6792
|
+
companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
|
7394
6793
|
{ required: true, message: "" },
|
7395
6794
|
{
|
7396
6795
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7413,7 +6812,7 @@ var AddNewCompanyComponent = function (props) {
|
|
7413
6812
|
display: "flex",
|
7414
6813
|
marginBottom: 8,
|
7415
6814
|
}, align: "center", size: "large" },
|
7416
|
-
React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (
|
6815
|
+
React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
|
7417
6816
|
{ required: true, message: "" },
|
7418
6817
|
{
|
7419
6818
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7587,16 +6986,6 @@ var CompanyDetailsComponent = function (props) {
|
|
7587
6986
|
React.createElement(Row, { className: "field" },
|
7588
6987
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:name")),
|
7589
6988
|
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.name ? companyDetails.name : "-")),
|
7590
|
-
((companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT ||
|
7591
|
-
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.MINISTRY) && (React.createElement(React.Fragment, null,
|
7592
|
-
React.createElement(Row, { className: "field" },
|
7593
|
-
React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:ministry")),
|
7594
|
-
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry ? companyDetails.ministry : "-")),
|
7595
|
-
React.createElement(Row, { className: "field" },
|
7596
|
-
React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:govDep")),
|
7597
|
-
React.createElement(Col, { span: 12, className: "field-value" }, (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)
|
7598
|
-
? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)]
|
7599
|
-
: "-")))),
|
7600
6989
|
React.createElement(Row, { className: "field" },
|
7601
6990
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:taxId")),
|
7602
6991
|
React.createElement(Col, { span: 12, className: "field-value nextline-overflow" }, companyDetails.taxId &&
|
@@ -8505,7 +7894,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
8505
7894
|
} })))))));
|
8506
7895
|
};
|
8507
7896
|
|
8508
|
-
var css_248z$r = ".programme-details-form-container,\n.programme-sought-form-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form,\n .programme-details-form-container .programme-sought-form,\n .programme-sought-form-container .programme-details-form,\n .programme-sought-form-container .programme-sought-form {\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover {\n border-color: #ff4d4f !important; }\n .programme-details-form-container .programme-details-form .ant-picker-large,\n .programme-details-form-container .programme-sought-form .ant-picker-large,\n .programme-sought-form-container .programme-details-form .ant-picker-large,\n .programme-sought-form-container .programme-sought-form .ant-picker-large {\n height: 40px !important;\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-details-form-container .programme-sought-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-sought-form .ant-upload-list-item-name {\n color: #16b1ff; }\n .programme-details-form-container .programme-details-form .steps-actions,\n .programme-details-form-container .programme-sought-form .steps-actions,\n .programme-sought-form-container .programme-details-form .steps-actions,\n .programme-sought-form-container .programme-sought-form .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .action-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .back-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-details-form-container .programme-sought-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-sought-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .options-programme,\n .programme-details-form-container .programme-sought-form .options-programme,\n .programme-sought-form-container .programme-details-form .options-programme,\n .programme-sought-form-container .programme-sought-form .options-programme {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-group {\n width: 50%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container {\n width: 30%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row,\n .programme-details-form-container .programme-sought-form .row,\n .programme-sought-form-container .programme-details-form .row,\n .programme-sought-form-container .programme-sought-form .row {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .website .ant-input,\n .programme-details-form-container .programme-sought-form .row .website .ant-input,\n .programme-sought-form-container .programme-details-form .row .website .ant-input,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .programme-details-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-details-form-container .programme-sought-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .design-upload-section,\n .programme-details-form-container .programme-sought-form .row .design-upload-section,\n .programme-sought-form-container .programme-details-form .row .design-upload-section,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload {\n width: 20%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .programme-details-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-details-form-container .programme-sought-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .upload-doc {\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document {\n display: flex; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info {\n position: absolute;\n margin-left: 130px;\n margin-top: 1.1px; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item {\n display: flex;\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation {\n width: 60%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent {\n width: 35%;\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number {\n width: 80%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error {\n width: 250px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n border-radius: 4px;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row-org,\n .programme-details-form-container .programme-sought-form .row-org,\n .programme-sought-form-container .programme-details-form .row-org,\n .programme-sought-form-container .programme-sought-form .row-org {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row-org .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row,\n .programme-details-form-container .programme-sought-form .selection-details-row,\n .programme-sought-form-container .programme-details-form .selection-details-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row {\n width: 100%;\n margin-bottom: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-col {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row {\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container {\n width: max-content;\n text-align: center;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #16b1ff;\n color: #ffffff; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-programme-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-programme-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-programme-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-programme-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-programme-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-programme-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-programme-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-programme-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-programme-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-programme-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n";
|
7897
|
+
var css_248z$r = ".programme-details-form-container,\n.programme-sought-form-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form,\n .programme-details-form-container .programme-sought-form,\n .programme-sought-form-container .programme-details-form,\n .programme-sought-form-container .programme-sought-form {\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover {\n border-color: #ff4d4f !important; }\n .programme-details-form-container .programme-details-form .ant-picker-large,\n .programme-details-form-container .programme-sought-form .ant-picker-large,\n .programme-sought-form-container .programme-details-form .ant-picker-large,\n .programme-sought-form-container .programme-sought-form .ant-picker-large {\n height: 40px !important;\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-details-form-container .programme-sought-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-sought-form .ant-upload-list-item-name {\n color: #16b1ff; }\n .programme-details-form-container .programme-details-form .steps-actions,\n .programme-details-form-container .programme-sought-form .steps-actions,\n .programme-sought-form-container .programme-details-form .steps-actions,\n .programme-sought-form-container .programme-sought-form .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .action-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .back-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-details-form-container .programme-sought-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-sought-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .options-programme,\n .programme-details-form-container .programme-sought-form .options-programme,\n .programme-sought-form-container .programme-details-form .options-programme,\n .programme-sought-form-container .programme-sought-form .options-programme {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-group {\n width: 50%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container {\n width: 30%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row,\n .programme-details-form-container .programme-sought-form .row,\n .programme-sought-form-container .programme-details-form .row,\n .programme-sought-form-container .programme-sought-form .row {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .website .ant-input,\n .programme-details-form-container .programme-sought-form .row .website .ant-input,\n .programme-sought-form-container .programme-details-form .row .website .ant-input,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .programme-details-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-details-form-container .programme-sought-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .design-upload-section,\n .programme-details-form-container .programme-sought-form .row .design-upload-section,\n .programme-sought-form-container .programme-details-form .row .design-upload-section,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload {\n width: 20%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .programme-details-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-details-form-container .programme-sought-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .upload-doc {\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document {\n display: flex; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info {\n position: absolute;\n margin-left: 130px;\n margin-top: 1.1px; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item {\n display: flex;\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation {\n width: 60%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent {\n width: 35%;\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number {\n width: 80%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error {\n width: 250px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n border-radius: 4px;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row-org,\n .programme-details-form-container .programme-sought-form .row-org,\n .programme-sought-form-container .programme-details-form .row-org,\n .programme-sought-form-container .programme-sought-form .row-org {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row-org .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row,\n .programme-details-form-container .programme-sought-form .selection-details-row,\n .programme-sought-form-container .programme-details-form .selection-details-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row {\n width: 100%;\n margin-bottom: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-col {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row {\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container {\n width: 45%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-programme-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-programme-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-programme-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-programme-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-programme-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-programme-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-programme-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-programme-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-programme-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-programme-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n";
|
8509
7898
|
styleInject(css_248z$r);
|
8510
7899
|
|
8511
7900
|
function commonjsRequire(path) {
|
@@ -14264,7 +13653,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14264
13653
|
var userInfoState = useUserContext().userInfoState;
|
14265
13654
|
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
14266
13655
|
var _f = useState(false), loadingList = _f[0], setLoadingList = _f[1];
|
14267
|
-
var _g = useState()
|
13656
|
+
var _g = useState(), ndcScopeChanged = _g[0], setNdcScopeChanged = _g[1];
|
14268
13657
|
var _h = useState(), ndcScopeValue = _h[0], setNdcScopeValue = _h[1];
|
14269
13658
|
var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
14270
13659
|
var _k = useState(0), current = _k[0], setCurrent = _k[1];
|
@@ -14284,10 +13673,6 @@ var ProgrammeCreationComponent = function (props) {
|
|
14284
13673
|
var _z = useState([]), availableSecoralScope = _z[0], setAvailableSectoralScope = _z[1];
|
14285
13674
|
var _0 = useState([]), selectableSectoralScope = _0[0], setSelectableSectoralScope = _0[1];
|
14286
13675
|
var _1 = useState([]), availableSectar = _1[0], setAvailableSectar = _1[1];
|
14287
|
-
var _2 = useState(true), article6trade = _2[0], setArticletrade = _2[1];
|
14288
|
-
var _3 = useState([]), ministryList = _3[0], setMinistryList = _3[1];
|
14289
|
-
var _4 = useState(); _4[0]; _4[1];
|
14290
|
-
var _5 = useState(), implementOwner = _5[0], setimplementOwner = _5[1];
|
14291
13676
|
// const initialOrganisationOwnershipValues: any[] = [
|
14292
13677
|
// {
|
14293
13678
|
// organisation:
|
@@ -14412,7 +13797,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14412
13797
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyName),
|
14413
13798
|
proponentPercentage: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
14414
13799
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY &&
|
14415
|
-
100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue),
|
13800
|
+
(100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue)),
|
14416
13801
|
},
|
14417
13802
|
]);
|
14418
13803
|
setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
|
@@ -14431,96 +13816,8 @@ var ProgrammeCreationComponent = function (props) {
|
|
14431
13816
|
}
|
14432
13817
|
});
|
14433
13818
|
}); };
|
14434
|
-
var getMinistryDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
14435
|
-
var response, error_4;
|
14436
|
-
return __generator(this, function (_a) {
|
14437
|
-
switch (_a.label) {
|
14438
|
-
case 0:
|
14439
|
-
setLoading(true);
|
14440
|
-
_a.label = 1;
|
14441
|
-
case 1:
|
14442
|
-
_a.trys.push([1, 3, 4, 5]);
|
14443
|
-
console.log("getting Ministry profile");
|
14444
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
14445
|
-
page: 1,
|
14446
|
-
size: 100,
|
14447
|
-
filterOr: [
|
14448
|
-
{
|
14449
|
-
key: "companyRole",
|
14450
|
-
operation: "=",
|
14451
|
-
value: CompanyRole.MINISTRY,
|
14452
|
-
},
|
14453
|
-
{
|
14454
|
-
key: "companyRole",
|
14455
|
-
operation: "=",
|
14456
|
-
value: CompanyRole.GOVERNMENT,
|
14457
|
-
},
|
14458
|
-
],
|
14459
|
-
})];
|
14460
|
-
case 2:
|
14461
|
-
response = _a.sent();
|
14462
|
-
if (response.data) {
|
14463
|
-
setMinistryList(response === null || response === void 0 ? void 0 : response.data);
|
14464
|
-
}
|
14465
|
-
return [3 /*break*/, 5];
|
14466
|
-
case 3:
|
14467
|
-
error_4 = _a.sent();
|
14468
|
-
console.log("Error in getting ministry data", error_4);
|
14469
|
-
return [3 /*break*/, 5];
|
14470
|
-
case 4:
|
14471
|
-
setLoading(false);
|
14472
|
-
return [7 /*endfinally*/];
|
14473
|
-
case 5: return [2 /*return*/];
|
14474
|
-
}
|
14475
|
-
});
|
14476
|
-
}); };
|
14477
|
-
var getImplementOwnerDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
14478
|
-
var response, error_5;
|
14479
|
-
var _a, _b;
|
14480
|
-
return __generator(this, function (_c) {
|
14481
|
-
switch (_c.label) {
|
14482
|
-
case 0:
|
14483
|
-
setLoading(true);
|
14484
|
-
_c.label = 1;
|
14485
|
-
case 1:
|
14486
|
-
_c.trys.push([1, 3, , 4]);
|
14487
|
-
return [4 /*yield*/, post("national/user/query", {
|
14488
|
-
page: 1,
|
14489
|
-
size: 10,
|
14490
|
-
filterAnd: [
|
14491
|
-
{
|
14492
|
-
key: "id",
|
14493
|
-
operation: "=",
|
14494
|
-
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.id,
|
14495
|
-
},
|
14496
|
-
],
|
14497
|
-
})];
|
14498
|
-
case 2:
|
14499
|
-
response = _c.sent();
|
14500
|
-
if (response && response.data) {
|
14501
|
-
if ((_a = response === null || response === void 0 ? void 0 : response.data[0]) === null || _a === void 0 ? void 0 : _a.company) {
|
14502
|
-
setimplementOwner((_b = response === null || response === void 0 ? void 0 : response.data[0]) === null || _b === void 0 ? void 0 : _b.company);
|
14503
|
-
}
|
14504
|
-
}
|
14505
|
-
setLoading(false);
|
14506
|
-
return [3 /*break*/, 4];
|
14507
|
-
case 3:
|
14508
|
-
error_5 = _c.sent();
|
14509
|
-
console.log("Error in getting users", error_5);
|
14510
|
-
message.open({
|
14511
|
-
type: "error",
|
14512
|
-
content: error_5.message,
|
14513
|
-
duration: 3,
|
14514
|
-
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14515
|
-
});
|
14516
|
-
setLoading(false);
|
14517
|
-
return [3 /*break*/, 4];
|
14518
|
-
case 4: return [2 /*return*/];
|
14519
|
-
}
|
14520
|
-
});
|
14521
|
-
}); };
|
14522
13819
|
var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
14523
|
-
var response, userOrganisation, taxId,
|
13820
|
+
var response, userOrganisation, taxId, error_4;
|
14524
13821
|
return __generator(this, function (_a) {
|
14525
13822
|
switch (_a.label) {
|
14526
13823
|
case 0:
|
@@ -14549,8 +13846,8 @@ var ProgrammeCreationComponent = function (props) {
|
|
14549
13846
|
}
|
14550
13847
|
return [3 /*break*/, 5];
|
14551
13848
|
case 3:
|
14552
|
-
|
14553
|
-
console.log("Error in getting organisation list",
|
13849
|
+
error_4 = _a.sent();
|
13850
|
+
console.log("Error in getting organisation list", error_4);
|
14554
13851
|
return [3 /*break*/, 5];
|
14555
13852
|
case 4:
|
14556
13853
|
setLoadingList(false);
|
@@ -14560,7 +13857,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14560
13857
|
});
|
14561
13858
|
}); };
|
14562
13859
|
var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
14563
|
-
var response, sectScopeValues_1, sectSScope_1, sectors_1,
|
13860
|
+
var response, sectScopeValues_1, sectSScope_1, sectors_1, error_5;
|
14564
13861
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
14565
13862
|
return __generator(this, function (_k) {
|
14566
13863
|
switch (_k.label) {
|
@@ -14620,11 +13917,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
14620
13917
|
setLoading(false);
|
14621
13918
|
return [3 /*break*/, 4];
|
14622
13919
|
case 3:
|
14623
|
-
|
14624
|
-
console.log("Error in getting users",
|
13920
|
+
error_5 = _k.sent();
|
13921
|
+
console.log("Error in getting users", error_5);
|
14625
13922
|
message.open({
|
14626
13923
|
type: "error",
|
14627
|
-
content:
|
13924
|
+
content: error_5.message,
|
14628
13925
|
duration: 3,
|
14629
13926
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14630
13927
|
});
|
@@ -14639,10 +13936,8 @@ var ProgrammeCreationComponent = function (props) {
|
|
14639
13936
|
getCountryList();
|
14640
13937
|
getRegionList();
|
14641
13938
|
getGovernmentDetails();
|
14642
|
-
getMinistryDetails();
|
14643
13939
|
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) {
|
14644
13940
|
getUserDetails();
|
14645
|
-
getImplementOwnerDetails();
|
14646
13941
|
}
|
14647
13942
|
}, []);
|
14648
13943
|
var normFile = function (e) {
|
@@ -14659,74 +13954,46 @@ var ProgrammeCreationComponent = function (props) {
|
|
14659
13954
|
setCurrent(current - 1);
|
14660
13955
|
};
|
14661
13956
|
var onFinishStepOne = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
14662
|
-
var programmeDetails,
|
14663
|
-
var _a, _b, _c, _d
|
14664
|
-
return __generator(this, function (
|
14665
|
-
switch (
|
13957
|
+
var programmeDetails, ownershipPercentage, totalPercentage, proponentPercentages, proponentTxIds, logoBase64, environmentalImpactAssessmentData, propTaxIds, duplicateIds;
|
13958
|
+
var _a, _b, _c, _d;
|
13959
|
+
return __generator(this, function (_e) {
|
13960
|
+
switch (_e.label) {
|
14666
13961
|
case 0:
|
14667
13962
|
setLoading(true);
|
14668
|
-
|
14669
|
-
|
14670
|
-
|
14671
|
-
|
14672
|
-
|
14673
|
-
proponentPercentage: Number(govData.nationalSopValue),
|
14674
|
-
});
|
14675
|
-
}
|
14676
|
-
totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
|
14677
|
-
proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
|
14678
|
-
proponentTxIds =
|
14679
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
14680
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14681
|
-
? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
|
14682
|
-
: ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
14683
|
-
propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
14684
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14685
|
-
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
|
14686
|
-
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
14687
|
-
console.log("proponentTxIds", proponentTxIds);
|
14688
|
-
console.log("ownershipPercentage", ownershipPercentage);
|
14689
|
-
}
|
14690
|
-
if (!article6trade) {
|
14691
|
-
ownershipPercentage = (values === null || values === void 0 ? void 0 : values.article6Percentage)
|
14692
|
-
? JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.article6Percentage))
|
14693
|
-
: [];
|
14694
|
-
totalPercentage = 100;
|
14695
|
-
if ((values === null || values === void 0 ? void 0 : values.implementingOwner) && (values === null || values === void 0 ? void 0 : values.implementingOwner.length) > 0) {
|
14696
|
-
ownershipPercentage.push({
|
14697
|
-
organisation: implementOwner
|
14698
|
-
? implementOwner.taxId
|
14699
|
-
: values === null || values === void 0 ? void 0 : values.implementingOwner,
|
14700
|
-
proponentPercentage: 100,
|
14701
|
-
});
|
14702
|
-
}
|
14703
|
-
proponentPercentages = ownershipPercentage.map(function (item) {
|
14704
|
-
return item.proponentPercentage === "Supporting" ? 0 : 100;
|
13963
|
+
ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
|
13964
|
+
if (Number(govData.nationalSopValue) !== 0) {
|
13965
|
+
ownershipPercentage.push({
|
13966
|
+
organisation: govData.taxId,
|
13967
|
+
proponentPercentage: Number(govData.nationalSopValue),
|
14705
13968
|
});
|
14706
|
-
proponentTxIds = ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
14707
|
-
propTaxIds = proponentTxIds;
|
14708
|
-
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
14709
|
-
finalImplementingOwner = implementOwner
|
14710
|
-
? implementOwner.taxId
|
14711
|
-
: values === null || values === void 0 ? void 0 : values.implementingOwner;
|
14712
|
-
supportingOwners = (_a = values === null || values === void 0 ? void 0 : values.article6Percentage) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.organisation; });
|
14713
|
-
console.log("implementingOwner", finalImplementingOwner);
|
14714
|
-
console.log("supportingOwners", supportingOwners);
|
14715
13969
|
}
|
14716
|
-
|
14717
|
-
|
14718
|
-
|
13970
|
+
console.log("ownershipPercentage", ownershipPercentage);
|
13971
|
+
totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
|
13972
|
+
proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
|
13973
|
+
proponentTxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
13974
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
13975
|
+
? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
|
13976
|
+
: ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
13977
|
+
logoBase64 = "";
|
13978
|
+
if (!(((_a = values === null || values === void 0 ? void 0 : values.designDocument) === null || _a === void 0 ? void 0 : _a.length) > 0)) return [3 /*break*/, 2];
|
13979
|
+
return [4 /*yield*/, getBase64((_b = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _b === void 0 ? void 0 : _b.originFileObj)];
|
14719
13980
|
case 1:
|
14720
|
-
|
14721
|
-
|
13981
|
+
logoBase64 = _e.sent();
|
13982
|
+
_e.label = 2;
|
14722
13983
|
case 2:
|
14723
|
-
|
14724
|
-
if (!(((
|
14725
|
-
return [4 /*yield*/, getBase64((
|
13984
|
+
environmentalImpactAssessmentData = "";
|
13985
|
+
if (!(((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _c === void 0 ? void 0 : _c.length) > 0)) return [3 /*break*/, 4];
|
13986
|
+
return [4 /*yield*/, getBase64((_d = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _d === void 0 ? void 0 : _d.originFileObj)];
|
14726
13987
|
case 3:
|
14727
|
-
|
14728
|
-
|
13988
|
+
environmentalImpactAssessmentData = _e.sent();
|
13989
|
+
_e.label = 4;
|
14729
13990
|
case 4:
|
13991
|
+
propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
13992
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
13993
|
+
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
|
13994
|
+
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
13995
|
+
console.log("proponentTxIds", proponentTxIds);
|
13996
|
+
console.log("ownershipPercentage", ownershipPercentage);
|
14730
13997
|
if (totalPercentage !== 100) {
|
14731
13998
|
if (Number(govData.nationalSopValue) !== 0) {
|
14732
13999
|
ownershipPercentage.pop();
|
@@ -14763,12 +14030,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14763
14030
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14764
14031
|
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds,
|
14765
14032
|
proponentPercentage: proponentPercentages,
|
14766
|
-
|
14767
|
-
supportingowners: !article6trade && supportingOwners ? supportingOwners : undefined,
|
14768
|
-
implementinguser: !article6trade ? finalImplementingOwner : undefined,
|
14769
|
-
programmeProperties: __assign(__assign({ buyerCountryEligibility: article6trade
|
14770
|
-
? values === null || values === void 0 ? void 0 : values.buyerCountryEligibility
|
14771
|
-
: undefined, geographicalLocation: values === null || values === void 0 ? void 0 : values.geographicalLocation, greenHouseGasses: values === null || values === void 0 ? void 0 : values.greenHouseGasses }, ((values === null || values === void 0 ? void 0 : values.ndcScope) !== undefined &&
|
14033
|
+
programmeProperties: __assign(__assign({ buyerCountryEligibility: values === null || values === void 0 ? void 0 : values.buyerCountryEligibility, geographicalLocation: values === null || values === void 0 ? void 0 : values.geographicalLocation, greenHouseGasses: values === null || values === void 0 ? void 0 : values.greenHouseGasses }, ((values === null || values === void 0 ? void 0 : values.ndcScope) !== undefined &&
|
14772
14034
|
(values === null || values === void 0 ? void 0 : values.ndcScope) !== null && {
|
14773
14035
|
ndcScope: (values === null || values === void 0 ? void 0 : values.ndcScope) === "true" ? true : false,
|
14774
14036
|
})), (includedInNDC !== undefined &&
|
@@ -14791,7 +14053,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14791
14053
|
});
|
14792
14054
|
}); };
|
14793
14055
|
var saveNewProgramme = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
|
14794
|
-
var response,
|
14056
|
+
var response, error_6;
|
14795
14057
|
return __generator(this, function (_a) {
|
14796
14058
|
switch (_a.label) {
|
14797
14059
|
case 0:
|
@@ -14814,11 +14076,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
14814
14076
|
onNavigateToProgrammeView();
|
14815
14077
|
return [3 /*break*/, 5];
|
14816
14078
|
case 3:
|
14817
|
-
|
14818
|
-
console.log("Error in programme creation - ",
|
14079
|
+
error_6 = _a.sent();
|
14080
|
+
console.log("Error in programme creation - ", error_6);
|
14819
14081
|
message.open({
|
14820
14082
|
type: "error",
|
14821
|
-
content:
|
14083
|
+
content: error_6 === null || error_6 === void 0 ? void 0 : error_6.message,
|
14822
14084
|
duration: 4,
|
14823
14085
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14824
14086
|
});
|
@@ -14834,9 +14096,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14834
14096
|
var programmeDetails = stepOneData;
|
14835
14097
|
programmeDetails.creditEst = Number(values === null || values === void 0 ? void 0 : values.creditEst);
|
14836
14098
|
programmeDetails.programmeProperties.estimatedProgrammeCostUSD = Number(values === null || values === void 0 ? void 0 : values.estimatedProgrammeCostUSD);
|
14837
|
-
programmeDetails.programmeProperties.carbonPriceUSDPerTon =
|
14838
|
-
? Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice)
|
14839
|
-
: 0;
|
14099
|
+
programmeDetails.programmeProperties.carbonPriceUSDPerTon = Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice);
|
14840
14100
|
setProgrammeDetailsObj(programmeDetails);
|
14841
14101
|
return programmeDetails;
|
14842
14102
|
};
|
@@ -14849,8 +14109,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14849
14109
|
});
|
14850
14110
|
}); };
|
14851
14111
|
var onFormTwoValuesChane = function (changedValues, allValues) {
|
14852
|
-
if (
|
14853
|
-
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
|
14112
|
+
if ((allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
|
14854
14113
|
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== null &&
|
14855
14114
|
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) > 0 &&
|
14856
14115
|
(allValues === null || allValues === void 0 ? void 0 : allValues.estimatedProgrammeCostUSD) !== undefined &&
|
@@ -14882,11 +14141,13 @@ var ProgrammeCreationComponent = function (props) {
|
|
14882
14141
|
setIncludedInNDC(undefined);
|
14883
14142
|
}
|
14884
14143
|
};
|
14885
|
-
var
|
14886
|
-
|
14887
|
-
|
14888
|
-
|
14889
|
-
|
14144
|
+
var onClickIncludedInNDCScope = function (value) {
|
14145
|
+
if (value === includedInNDC) {
|
14146
|
+
setIncludedInNDC(undefined);
|
14147
|
+
}
|
14148
|
+
else {
|
14149
|
+
setIncludedInNDC(value);
|
14150
|
+
}
|
14890
14151
|
};
|
14891
14152
|
var onChangeGeoLocation = function (values) {
|
14892
14153
|
if (values.includes("National")) {
|
@@ -14895,19 +14156,22 @@ var ProgrammeCreationComponent = function (props) {
|
|
14895
14156
|
formOne.setFieldValue("geographicalLocation", __spreadArray([], newBuyerValues, true));
|
14896
14157
|
}
|
14897
14158
|
};
|
14898
|
-
var
|
14899
|
-
var _a, _b
|
14900
|
-
|
14901
|
-
|
14902
|
-
selectedCompanies = (_a = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage) === null || _a === void 0 ? void 0 : _a.map(function (org) { return org === null || org === void 0 ? void 0 : org.organisation; });
|
14903
|
-
var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
|
14904
|
-
? true
|
14905
|
-
: false;
|
14906
|
-
setOwnershipPercentageValidation(orgPercentValidation);
|
14159
|
+
var onInCludedNDCChange = function (event) {
|
14160
|
+
var _a, _b;
|
14161
|
+
if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) === "inNDC") {
|
14162
|
+
setIncludedInNDC(true);
|
14907
14163
|
}
|
14908
|
-
else {
|
14909
|
-
|
14164
|
+
else if (((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.value) === "notInNDC") {
|
14165
|
+
setIncludedInNDC(false);
|
14910
14166
|
}
|
14167
|
+
};
|
14168
|
+
var onChangeStepOne = function (changedValues, allValues) {
|
14169
|
+
var _a, _b;
|
14170
|
+
var selectedCompanies = (_a = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage) === null || _a === void 0 ? void 0 : _a.map(function (org) { return org === null || org === void 0 ? void 0 : org.organisation; });
|
14171
|
+
var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
|
14172
|
+
? true
|
14173
|
+
: false;
|
14174
|
+
setOwnershipPercentageValidation(orgPercentValidation);
|
14911
14175
|
var uniqueOrgs = new Set(selectedCompanies);
|
14912
14176
|
setSelectedOrgs(__spreadArray([], uniqueOrgs, true));
|
14913
14177
|
};
|
@@ -15087,200 +14351,91 @@ var ProgrammeCreationComponent = function (props) {
|
|
15087
14351
|
React.createElement("div", { className: "addDoc-info" },
|
15088
14352
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: React.createElement("a", { style: { color: "#fff" }, href: "https://app-eff78ffabc4efb.app.unfccc.org/tools/cdm/testprodspt3/UNFCCC_CDM/Pages/PDDnew.aspx?t=pdd", target: "_blank" }, t("addProgramme:designDocTooltip")), overlayClassName: "custom-tooltip" },
|
15089
14353
|
React.createElement(InfoCircle, { color: "#000000", size: 12 })))),
|
15090
|
-
React.createElement(
|
15091
|
-
|
15092
|
-
|
15093
|
-
|
15094
|
-
|
15095
|
-
|
15096
|
-
|
15097
|
-
|
15098
|
-
|
15099
|
-
|
15100
|
-
|
15101
|
-
|
15102
|
-
|
15103
|
-
|
15104
|
-
|
15105
|
-
|
15106
|
-
|
15107
|
-
|
15108
|
-
|
15109
|
-
|
15110
|
-
|
15111
|
-
|
15112
|
-
|
15113
|
-
|
15114
|
-
|
15115
|
-
|
15116
|
-
|
15117
|
-
|
15118
|
-
|
15119
|
-
|
15120
|
-
React.createElement(
|
15121
|
-
|
15122
|
-
|
15123
|
-
|
15124
|
-
|
15125
|
-
|
15126
|
-
|
15127
|
-
|
15128
|
-
|
15129
|
-
|
15130
|
-
|
15131
|
-
|
15132
|
-
|
15133
|
-
|
15134
|
-
return (React.createElement(Space, { wrap: true, key: key, style: {
|
15135
|
-
display: "flex",
|
15136
|
-
marginBottom: 8,
|
15137
|
-
}, align: "center", size: "large" },
|
15138
|
-
React.createElement("div", { className: "ownership-list-item" },
|
15139
|
-
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [
|
15140
|
-
name,
|
15141
|
-
"organisation",
|
15142
|
-
], wrapperCol: { span: 24 }, className: "organisation", rules: [
|
15143
|
-
{
|
15144
|
-
required: true,
|
15145
|
-
message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
|
15146
|
-
validateTrigger: "onBlur",
|
15147
|
-
},
|
15148
|
-
], shouldUpdate: true }),
|
15149
|
-
React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
|
15150
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15151
|
-
CompanyRole.GOVERNMENT &&
|
15152
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15153
|
-
CompanyRole.MINISTRY }, organisationsList.map(function (organisation) { return (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId)) ||
|
15154
|
-
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15155
|
-
CompanyRole.GOVERNMENT &&
|
15156
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15157
|
-
CompanyRole.MINISTRY &&
|
15158
|
-
userOrgTaxId ===
|
15159
|
-
(organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
|
15160
|
-
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
|
15161
|
-
name,
|
15162
|
-
"proponentPercentage",
|
15163
|
-
], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
|
15164
|
-
{
|
15165
|
-
required: true,
|
15166
|
-
message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
|
15167
|
-
},
|
15168
|
-
{
|
15169
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15170
|
-
return __generator(this, function (_a) {
|
15171
|
-
if (ownershipPercentageValidation &&
|
15172
|
-
name === 0) {
|
15173
|
-
throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
|
15174
|
-
}
|
15175
|
-
return [2 /*return*/];
|
15176
|
-
});
|
15177
|
-
}); },
|
15178
|
-
},
|
15179
|
-
], shouldUpdate: true }),
|
15180
|
-
React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
|
15181
|
-
return "".concat(value, "%");
|
15182
|
-
}, parser: function (value) {
|
15183
|
-
return value.replace("%", "");
|
15184
|
-
}, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
|
15185
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15186
|
-
CompanyRole.GOVERNMENT &&
|
14354
|
+
React.createElement(Form.Item, { label: t("addProgramme:buyerCountryEligibility"), name: "buyerCountryEligibility", initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.name, rules: [
|
14355
|
+
{
|
14356
|
+
required: false,
|
14357
|
+
},
|
14358
|
+
] },
|
14359
|
+
React.createElement(Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
|
14360
|
+
govData && (Number(govData.nationalSopValue) !== 0) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14361
|
+
React.createElement(Space, { wrap: true, style: {
|
14362
|
+
display: "flex",
|
14363
|
+
marginBottom: 8,
|
14364
|
+
}, align: "center", size: "large" },
|
14365
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14366
|
+
React.createElement(Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData ? govData.name : "Government", required: true },
|
14367
|
+
React.createElement(Input, { size: "large", disabled: true })),
|
14368
|
+
React.createElement(Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
|
14369
|
+
? Number(govData.nationalSopValue)
|
14370
|
+
: 0 },
|
14371
|
+
React.createElement(InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) {
|
14372
|
+
return value.replace("%", "");
|
14373
|
+
} })))))),
|
14374
|
+
React.createElement(Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
|
14375
|
+
var add = _a.add, remove = _a.remove;
|
14376
|
+
return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14377
|
+
fields.map(function (_a) {
|
14378
|
+
var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
|
14379
|
+
return (React.createElement(Space, { wrap: true, key: key, style: {
|
14380
|
+
display: "flex",
|
14381
|
+
marginBottom: 8,
|
14382
|
+
}, align: "center", size: "large" },
|
14383
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14384
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [name, "organisation"], wrapperCol: { span: 24 }, className: "organisation", rules: [
|
14385
|
+
{
|
14386
|
+
required: true,
|
14387
|
+
message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
|
14388
|
+
validateTrigger: "onBlur",
|
14389
|
+
},
|
14390
|
+
], shouldUpdate: true }),
|
14391
|
+
React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
|
14392
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14393
|
+
CompanyRole.GOVERNMENT &&
|
14394
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14395
|
+
CompanyRole.MINISTRY }, organisationsList.map(function (organisation) { return (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId)) ||
|
14396
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14397
|
+
CompanyRole.GOVERNMENT &&
|
15187
14398
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
15188
|
-
CompanyRole.MINISTRY
|
15189
|
-
|
15190
|
-
|
15191
|
-
|
15192
|
-
|
15193
|
-
|
15194
|
-
|
15195
|
-
|
15196
|
-
|
15197
|
-
|
15198
|
-
|
15199
|
-
|
15200
|
-
|
15201
|
-
|
15202
|
-
|
15203
|
-
|
15204
|
-
|
15205
|
-
|
15206
|
-
|
15207
|
-
|
15208
|
-
|
15209
|
-
|
15210
|
-
|
15211
|
-
|
15212
|
-
|
15213
|
-
|
15214
|
-
|
15215
|
-
|
15216
|
-
|
15217
|
-
|
15218
|
-
|
15219
|
-
|
15220
|
-
|
15221
|
-
|
15222
|
-
|
15223
|
-
}
|
15224
|
-
|
15225
|
-
|
15226
|
-
|
15227
|
-
|
15228
|
-
Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
|
15229
|
-
}))),
|
15230
|
-
React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },
|
15231
|
-
React.createElement(InputNumber, { size: "large", disabled: true })))))),
|
15232
|
-
React.createElement(Form.List, { name: "article6Percentage" }, function (fields, _a) {
|
15233
|
-
var add = _a.add, remove = _a.remove;
|
15234
|
-
return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
15235
|
-
fields.map(function (_a) {
|
15236
|
-
var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
|
15237
|
-
return (React.createElement(Space, { wrap: true, key: key, style: {
|
15238
|
-
display: "flex",
|
15239
|
-
marginBottom: 8,
|
15240
|
-
}, align: "center", size: "large" },
|
15241
|
-
React.createElement("div", { className: "ownership-list-item" },
|
15242
|
-
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:governmentDepartment"), name: [
|
15243
|
-
name,
|
15244
|
-
"organisation",
|
15245
|
-
], rules: [
|
15246
|
-
{
|
15247
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15248
|
-
return __generator(this, function (_a) {
|
15249
|
-
if (String(value).trim() === "" ||
|
15250
|
-
String(value).trim() ===
|
15251
|
-
undefined ||
|
15252
|
-
value === null ||
|
15253
|
-
value ===
|
15254
|
-
undefined) {
|
15255
|
-
throw new Error("".concat(t("addProgramme:governmentDepartment"), " shouldn't be empty"));
|
15256
|
-
}
|
15257
|
-
return [2 /*return*/];
|
15258
|
-
});
|
15259
|
-
}); },
|
15260
|
-
},
|
15261
|
-
], wrapperCol: { span: 24 }, className: "organisation", shouldUpdate: true }),
|
15262
|
-
React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
|
15263
|
-
var _a;
|
15264
|
-
return organisation.govDep && (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId.trim())) ||
|
15265
|
-
(implementOwner === null || implementOwner === void 0 ? void 0 : implementOwner.taxId) ===
|
15266
|
-
organisation.taxId ||
|
15267
|
-
((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.implementingOwner.trim()) ===
|
15268
|
-
organisation.taxId }, organisation.name +
|
15269
|
-
" - " +
|
15270
|
-
Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
|
15271
|
-
}))),
|
15272
|
-
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:ownership"), className: "ownership-percent", name: [
|
15273
|
-
name,
|
15274
|
-
"proponentPercentage",
|
15275
|
-
], initialValue: "Supporting", labelCol: { span: 24 }, wrapperCol: { span: 24 }, shouldUpdate: true }),
|
15276
|
-
React.createElement(InputNumber, { size: "large", disabled: true })),
|
15277
|
-
React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
|
15278
|
-
remove(name);
|
15279
|
-
} }))));
|
15280
|
-
}),
|
15281
|
-
React.createElement(Form.Item, null,
|
15282
|
-
React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
|
15283
|
-
}))),
|
14399
|
+
CompanyRole.MINISTRY &&
|
14400
|
+
userOrgTaxId ===
|
14401
|
+
(organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
|
14402
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
|
14403
|
+
name,
|
14404
|
+
"proponentPercentage",
|
14405
|
+
], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
|
14406
|
+
{
|
14407
|
+
required: true,
|
14408
|
+
message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
|
14409
|
+
},
|
14410
|
+
{
|
14411
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
14412
|
+
return __generator(this, function (_a) {
|
14413
|
+
if (ownershipPercentageValidation &&
|
14414
|
+
name === 0) {
|
14415
|
+
throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
|
14416
|
+
}
|
14417
|
+
return [2 /*return*/];
|
14418
|
+
});
|
14419
|
+
}); },
|
14420
|
+
},
|
14421
|
+
], shouldUpdate: true }),
|
14422
|
+
React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
|
14423
|
+
return "".concat(value, "%");
|
14424
|
+
}, parser: function (value) {
|
14425
|
+
return value.replace("%", "");
|
14426
|
+
}, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
|
14427
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14428
|
+
CompanyRole.GOVERNMENT &&
|
14429
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14430
|
+
CompanyRole.MINISTRY })),
|
14431
|
+
(fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
|
14432
|
+
name !== 0 && (React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
|
14433
|
+
remove(name);
|
14434
|
+
} })))));
|
14435
|
+
}),
|
14436
|
+
React.createElement(Form.Item, null,
|
14437
|
+
React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
|
14438
|
+
}),
|
15284
14439
|
React.createElement(Form.Item, { label: t("addProgramme:environmentalAssessmentRegistrationNo"), name: "environmentalAssessmentRegistrationNo", initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.environmentalAssessmentRegistrationNo, rules: [
|
15285
14440
|
{
|
15286
14441
|
required: true,
|
@@ -15408,6 +14563,25 @@ var ProgrammeCreationComponent = function (props) {
|
|
15408
14563
|
},
|
15409
14564
|
] },
|
15410
14565
|
React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeGeoLocation, loading: loadingList, className: "custom-select", allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))))),
|
14566
|
+
React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
|
14567
|
+
React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
|
14568
|
+
React.createElement(Row, { className: "in-ndc-row" },
|
14569
|
+
React.createElement(Col, { md: 16, lg: 18, xl: 18 },
|
14570
|
+
React.createElement("div", { className: "included-label" },
|
14571
|
+
React.createElement("div", null, t("addProgramme:inNDC")),
|
14572
|
+
React.createElement("div", { className: "info-container" },
|
14573
|
+
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("addProgramme:inNDCToolTip"), overlayClassName: "custom-tooltip" },
|
14574
|
+
React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
|
14575
|
+
React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
|
14576
|
+
React.createElement(Radio.Group, { size: "middle", disabled: ndcScopeChanged, value: includedInNDC, onChange: onInCludedNDCChange },
|
14577
|
+
React.createElement("div", { className: "yes-no-radio-container" },
|
14578
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: true, onClick: function () {
|
14579
|
+
return onClickIncludedInNDCScope(true);
|
14580
|
+
} }, t("addProgramme:yes"))),
|
14581
|
+
React.createElement("div", { className: "yes-no-radio-container" },
|
14582
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: false, onClick: function () {
|
14583
|
+
return onClickIncludedInNDCScope(false);
|
14584
|
+
} }, t("addProgramme:no")))))))),
|
15411
14585
|
React.createElement("div", { className: "steps-actions" },
|
15412
14586
|
React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading, onClick: checkOrgPercentageValidation }, t("addProgramme:next"))))))),
|
15413
14587
|
},
|
@@ -15447,13 +14621,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
15447
14621
|
},
|
15448
14622
|
] },
|
15449
14623
|
React.createElement(InputNumber, { size: "large", style: { width: "100%", paddingRight: 12 } })),
|
15450
|
-
|
15451
|
-
React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } }))))
|
14624
|
+
React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
|
14625
|
+
React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } })))),
|
15452
14626
|
React.createElement(Col, { xl: 12, md: 24 },
|
15453
14627
|
React.createElement("div", { className: "details-part-two" },
|
15454
|
-
React.createElement(Form.Item, { label:
|
15455
|
-
? t("addProgramme:creditEst")
|
15456
|
-
: t("addProgramme:creditReduction"), name: "creditEst", rules: [
|
14628
|
+
React.createElement(Form.Item, { label: t("addProgramme:creditEst"), name: "creditEst", rules: [
|
15457
14629
|
{
|
15458
14630
|
required: true,
|
15459
14631
|
message: "",
|
@@ -15465,9 +14637,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
15465
14637
|
String(value).trim() === undefined ||
|
15466
14638
|
value === null ||
|
15467
14639
|
value === undefined) {
|
15468
|
-
throw new Error("".concat(
|
15469
|
-
? t("addProgramme:creditEst")
|
15470
|
-
: t("addProgramme:creditReduction"), " ").concat(t("isRequired")));
|
14640
|
+
throw new Error("".concat(t("addProgramme:creditEst"), " ").concat(t("isRequired")));
|
15471
14641
|
}
|
15472
14642
|
else if (!isNaN(value) &&
|
15473
14643
|
Number(value) > 0) {
|
@@ -35941,5 +35111,5 @@ var GHGDashboardComponent = function (props) {
|
|
35941
35111
|
React.createElement(Row, { gutter: [40, 40], className: "statics-card-row" }, row.map(function (item, j) { return getWidgetJSX(item); })))); }))));
|
35942
35112
|
};
|
35943
35113
|
|
35944
|
-
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor,
|
35114
|
+
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, Projection, ProjectionTypes$1 as ProjectionTypes, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, StasticCard, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserContext, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound$1 as addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal$1 as getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext };
|
35945
35115
|
//# sourceMappingURL=index.js.map
|