@undp/carbon-library 1.0.305-CARBON-419.0 → 1.0.305-CARBON-428-bugfix.0

Sign up to get free protection for your applications and to get access to all the features.
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, Select, Upload, InputNumber, Tooltip, Modal, Alert, Card, Skeleton, Tag, Checkbox, DatePicker, Popover, List, Typography, Spin, Tabs, Progress, Collapse } from 'antd';
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';
@@ -6120,186 +6120,6 @@ var GhgStatCardTypes;
6120
6120
  GhgStatCardTypes["AGG_EMISSIONS_COMPARISON"] = "AGG_EMISSIONS_COMPARISON";
6121
6121
  })(GhgStatCardTypes || (GhgStatCardTypes = {}));
6122
6122
 
6123
- var GovDepartment;
6124
- (function (GovDepartment) {
6125
- GovDepartment["Cocoa Research Institute"] = "1";
6126
- GovDepartment["National Agricultural Extension, Research and Liaison Services"] = "2";
6127
- GovDepartment["National Veterinary Research Institute"] = "3";
6128
- GovDepartment["Agricultural Insurance Corporation"] = "4";
6129
- GovDepartment["National Root Crops Research Institute"] = "5";
6130
- GovDepartment["Agricultural Research Council"] = "6";
6131
- GovDepartment["Institute for Oceanography and Marine Research"] = "7";
6132
- GovDepartment["Institute for Oil Palm Research"] = "8";
6133
- GovDepartment["Agricultural Quarantine Service"] = "9";
6134
- GovDepartment["National Horticultural Research Institute"] = "10";
6135
- GovDepartment["Federal Airports Authority"] = "11";
6136
- GovDepartment["Airspace Management Agency"] = "12";
6137
- GovDepartment["Civil Aviation Authority"] = "13";
6138
- GovDepartment["Safety Investigation Bureau"] = "14";
6139
- GovDepartment["Meteorological Agency"] = "15";
6140
- GovDepartment["College of Aviation Technology"] = "16";
6141
- GovDepartment["National Information Technology Development Agency"] = "17";
6142
- GovDepartment["Satellite Limited"] = "18";
6143
- GovDepartment["Broadcasting Commission"] = "19";
6144
- GovDepartment["Commission"] = "20";
6145
- GovDepartment["Postal Service"] = "21";
6146
- GovDepartment["National Frequency Management Council"] = "22";
6147
- GovDepartment["Television Authority"] = "23";
6148
- GovDepartment["Galaxy Backbone"] = "24";
6149
- GovDepartment["Asset Management Corporation"] = "25";
6150
- GovDepartment["Social Security Administration"] = "26";
6151
- GovDepartment["Budget Office of the Federation"] = "27";
6152
- GovDepartment["Bureau of Public Enterprises"] = "28";
6153
- GovDepartment["Bureau of Public Procurement"] = "29";
6154
- GovDepartment["Central Bank"] = "30";
6155
- GovDepartment["Corporate Affairs Commission"] = "31";
6156
- GovDepartment["Debt Management Office"] = "32";
6157
- GovDepartment["Inland Revenue Service"] = "33";
6158
- GovDepartment["Mortgage Bank"] = "34";
6159
- GovDepartment["Fiscal Responsibility Commission"] = "35";
6160
- GovDepartment["Infrastructure Concession Regulatory Commission"] = "36";
6161
- GovDepartment["National Bureau of Statistics"] = "37";
6162
- GovDepartment["National Council on Privatisation"] = "38";
6163
- GovDepartment["National Insurance Commission"] = "39";
6164
- GovDepartment["National Pension Commission"] = "40";
6165
- GovDepartment["National Planning Commission"] = "41";
6166
- GovDepartment["National Sugar Development Council"] = "42";
6167
- GovDepartment["Niger Delta Development Commission"] = "43";
6168
- GovDepartment["Customs Service"] = "44";
6169
- GovDepartment["Deposit Insurance Corporation"] = "45";
6170
- GovDepartment["Investment Promotion Commission"] = "46";
6171
- GovDepartment["Export - Import Bank"] = "47";
6172
- GovDepartment["Export Promotion Council"] = "48";
6173
- GovDepartment["Oil and Gas Free Zones Authority"] = "49";
6174
- GovDepartment["Export Processing Zones Authority"] = "50";
6175
- GovDepartment["Revenue Mobilisation Allocation and Fiscal Commission"] = "51";
6176
- GovDepartment["Securities and Exchange Commission"] = "52";
6177
- GovDepartment["Standards Organisation"] = "53";
6178
- GovDepartment["Small and Medium Enterprise Development Agency"] = "54";
6179
- GovDepartment["National Board for Arabic And Islamic Studies"] = "55";
6180
- GovDepartment["Joint Admissions and Matriculation Board"] = "56";
6181
- GovDepartment["National Examination Council"] = "115";
6182
- GovDepartment["National Open University"] = "57";
6183
- GovDepartment["National Teachers Institute"] = "58";
6184
- GovDepartment["National Universities Commission"] = "59";
6185
- GovDepartment["Tertiary Education Trust Fund"] = "60";
6186
- GovDepartment["Teachers Registration Council"] = "61";
6187
- GovDepartment["National Business and Technical Examinations Board"] = "62";
6188
- GovDepartment["Universal Basic Education Commission"] = "63";
6189
- GovDepartment["West African Examination Council"] = "64";
6190
- GovDepartment["National Commission for Colleges of Education"] = "65";
6191
- GovDepartment["National Library"] = "66";
6192
- GovDepartment["Midstream and Downstream Petroleum Regulatory Authority"] = "67";
6193
- GovDepartment["Upstream Petroleum Regulatory Commission"] = "68";
6194
- GovDepartment["Electricity Management Services Limited"] = "69";
6195
- GovDepartment["Energy Commission"] = "70";
6196
- GovDepartment["National Power Training Institute"] = "71";
6197
- GovDepartment["Electricity Regulatory Commission"] = "72";
6198
- GovDepartment["Content Monitoring and Development Board"] = "73";
6199
- GovDepartment["National Petroleum Corporation"] = "74";
6200
- GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
6201
- GovDepartment["Power Holding Company (defunct)"] = "77";
6202
- GovDepartment["Rural Electrification Agency"] = "78";
6203
- GovDepartment["Transmission Company"] = "79";
6204
- GovDepartment["Environmental Protection Agency (defunct)"] = "80";
6205
- GovDepartment["Forestry Research Institute"] = "81";
6206
- GovDepartment["National Biosafety Management Agency"] = "82";
6207
- GovDepartment["National Environmental Standards and Regulations Enforcement Agency"] = "83";
6208
- GovDepartment["National Oil Spill Detection and Response Agency"] = "84";
6209
- GovDepartment["Environmental Health Officers Registration Council"] = "85";
6210
- GovDepartment["National Health Insurance Scheme"] = "86";
6211
- GovDepartment["Institute for Pharmaceutical Research and Development"] = "87";
6212
- GovDepartment["Agency for the Control of AIDS"] = "88";
6213
- GovDepartment["Agency for Food and Drug Administration and Control"] = "89";
6214
- GovDepartment["Primary Health Care Development Agency"] = "90";
6215
- GovDepartment["Institute of Medical Research"] = "91";
6216
- GovDepartment["Centre for Disease Control"] = "92";
6217
- GovDepartment["Drug Law Enforcement Agency"] = "93";
6218
- GovDepartment["Defence Intelligence Agency"] = "94";
6219
- GovDepartment["State Security Service"] = "95";
6220
- GovDepartment["National Intelligence Agency"] = "96";
6221
- GovDepartment["Financial Intelligence Unit"] = "97";
6222
- GovDepartment["National Judicial Council"] = "98";
6223
- GovDepartment["Federal Judicial Service Commission"] = "99";
6224
- GovDepartment["National Judicial Institute"] = "100";
6225
- GovDepartment["Maritime Administration and Safety Agency"] = "101";
6226
- GovDepartment["Ports Authority"] = "102";
6227
- GovDepartment["Shippers' Council"] = "103";
6228
- GovDepartment["Broadcasting Organisation"] = "104";
6229
- GovDepartment["News Agency"] = "105";
6230
- GovDepartment["Press Council"] = "106";
6231
- GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
6232
- GovDepartment["Biotechnology Development Agency"] = "109";
6233
- GovDepartment["Centre for Remote Sensing"] = "110";
6234
- GovDepartment["Science and Technology Complex"] = "111";
6235
- GovDepartment["Office for Technology Acquisition and Promotion"] = "112";
6236
- GovDepartment["Space Research and Development Agency"] = "113";
6237
- GovDepartment["Nuclear Regulatory Authority"] = "114";
6238
- GovDepartment["Raw Materials Research and Development Council"] = "116";
6239
- GovDepartment["Communications Satellite Ltd"] = "117";
6240
- GovDepartment["Centre for Technology Management"] = "118";
6241
- GovDepartment["Hydrological Services Agency"] = "119";
6242
- GovDepartment["Integrated Water Resources Commission"] = "120";
6243
- GovDepartment["Water Resources Institute"] = "121";
6244
- GovDepartment["River Basin Development Authorities"] = "122";
6245
- GovDepartment["Centre for Black and African Arts and Civilization"] = "123";
6246
- GovDepartment["Automotive Design and Development Council"] = "124";
6247
- GovDepartment["Code of Conduct Bureau"] = "125";
6248
- GovDepartment["Computer Professionals Registration Council"] = "126";
6249
- GovDepartment["Consumer Protection Council"] = "127";
6250
- GovDepartment["Economic and Financial Crimes Commission"] = "128";
6251
- GovDepartment["Federal Character Commission"] = "129";
6252
- GovDepartment["Federal Housing Authority"] = "130";
6253
- GovDepartment["Corrupt Practices and Other Related Offences Commission"] = "131";
6254
- GovDepartment["Independent National Electoral Commission"] = "132";
6255
- GovDepartment["Industrial Training Fund"] = "133";
6256
- GovDepartment["Legal Aid Council"] = "134";
6257
- GovDepartment["Agency for the Prohibition of Trafficking in Persons"] = "135";
6258
- GovDepartment["National Boundary Commission"] = "136";
6259
- GovDepartment["National Council of Arts and Culture"] = "137";
6260
- GovDepartment["Economic Reconstruction Fund"] = "138";
6261
- GovDepartment["Emergency Management Agency"] = "139";
6262
- GovDepartment["Hajj Commission"] = "140";
6263
- GovDepartment["Human Rights Commission"] = "141";
6264
- GovDepartment["Identity Management Commission"] = "142";
6265
- GovDepartment["Institute for Hospitality Tourism"] = "143";
6266
- GovDepartment["Lottery Regulatory Commission"] = "144";
6267
- GovDepartment["Orientation Agency"] = "145";
6268
- GovDepartment["Population Commission"] = "146";
6269
- GovDepartment["Poverty Eradication Programme (defunct)"] = "147";
6270
- GovDepartment["Salaries, Incomes and Wages Commission"] = "148";
6271
- GovDepartment["Sports Commission"] = "149";
6272
- GovDepartment["Extractive Industries Transparency Initiative"] = "150";
6273
- GovDepartment["Immigration Service"] = "151";
6274
- GovDepartment["Building and Road Research Institute"] = "152";
6275
- GovDepartment["Institute of Building"] = "153";
6276
- GovDepartment["Christian Pilgrim Commission"] = "154";
6277
- GovDepartment["Copyright Commission"] = "155";
6278
- GovDepartment["Tourism Development Corporation"] = "156";
6279
- GovDepartment["Public Complaints Commission"] = "157";
6280
- GovDepartment["Surveyors Council"] = "158";
6281
- GovDepartment["National Lottery Trust Fund"] = "159";
6282
- })(GovDepartment || (GovDepartment = {}));
6283
-
6284
- var Ministry;
6285
- (function (Ministry) {
6286
- Ministry["Agriculture"] = "Agriculture";
6287
- Ministry["Aviation"] = "Aviation";
6288
- Ministry["Communications"] = "Communications";
6289
- Ministry["Economy"] = "Economy";
6290
- Ministry["Education"] = "Education";
6291
- Ministry["Energy"] = "Energy";
6292
- Ministry["Environment"] = "Environment";
6293
- Ministry["Health"] = "Health";
6294
- Ministry["Intelligence"] = "Intelligence";
6295
- Ministry["Judiciary"] = "Judiciary";
6296
- Ministry["Maritime"] = "Maritime";
6297
- Ministry["Media"] = "Media";
6298
- Ministry["ScienceAndTechnology"] = "Science And Technology";
6299
- Ministry["WaterResources"] = "Water Resources";
6300
- Ministry["Other"] = "Other";
6301
- })(Ministry || (Ministry = {}));
6302
-
6303
6123
  var ConfigurationSettingsType;
6304
6124
  (function (ConfigurationSettingsType) {
6305
6125
  ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
@@ -6357,310 +6177,24 @@ var Projection = /** @class */ (function () {
6357
6177
  return Projection;
6358
6178
  }());
6359
6179
 
6360
- var ministries = [
6361
- "Agriculture",
6362
- "Aviation",
6363
- "Communications",
6364
- "Economy",
6365
- "Education",
6366
- "Energy",
6367
- "Environment",
6368
- "Health",
6369
- "Intelligence",
6370
- "Judiciary",
6371
- "Maritime",
6372
- "Media",
6373
- "Science And Technology",
6374
- "Water Resources",
6375
- "Other",
6376
- ];
6377
- var ministryOrgs = {
6378
- Agriculture: [
6379
- "Cocoa Research Institute",
6380
- "National Agricultural Extension, Research and Liaison Services",
6381
- "National Veterinary Research Institute",
6382
- "Agricultural Insurance Corporation",
6383
- "National Root Crops Research Institute",
6384
- "Agricultural Research Council",
6385
- "Institute for Oceanography and Marine Research",
6386
- "Institute for Oil Palm Research",
6387
- "Agricultural Quarantine Service",
6388
- "National Horticultural Research Institute",
6389
- ],
6390
- Aviation: [
6391
- "Federal Airports Authority",
6392
- "Airspace Management Agency",
6393
- "Civil Aviation Authority",
6394
- "Safety Investigation Bureau",
6395
- "Meteorological Agency",
6396
- "College of Aviation Technology",
6397
- ],
6398
- Communications: [
6399
- "National Information Technology Development Agency",
6400
- "Satellite Limited",
6401
- "Broadcasting Commission",
6402
- "Commission",
6403
- "Postal Service",
6404
- "National Frequency Management Council",
6405
- "Television Authority",
6406
- "Galaxy Backbone",
6407
- ],
6408
- Economy: [
6409
- "Asset Management Corporation",
6410
- "Social Security Administration",
6411
- "Budget Office of the Federation",
6412
- "Bureau of Public Enterprises",
6413
- "Bureau of Public Procurement",
6414
- "Central Bank",
6415
- "Corporate Affairs Commission",
6416
- "Debt Management Office",
6417
- "Inland Revenue Service",
6418
- "Mortgage Bank",
6419
- "Fiscal Responsibility Commission",
6420
- "Infrastructure Concession Regulatory Commission",
6421
- "National Bureau of Statistics",
6422
- "National Council on Privatisation",
6423
- "National Insurance Commission",
6424
- "National Pension Commission",
6425
- "National Planning Commission",
6426
- "National Sugar Development Council",
6427
- "Niger Delta Development Commission",
6428
- "Customs Service",
6429
- "Deposit Insurance Corporation",
6430
- "Investment Promotion Commission",
6431
- "Export - Import Bank",
6432
- "Export Promotion Council",
6433
- "Oil and Gas Free Zones Authority",
6434
- "Export Processing Zones Authority",
6435
- "Revenue Mobilisation Allocation and Fiscal Commission",
6436
- "Securities and Exchange Commission",
6437
- "Standards Organisation",
6438
- "Small and Medium Enterprise Development Agency",
6439
- ],
6440
- Education: [
6441
- "National Board for Arabic And Islamic Studies",
6442
- "Joint Admissions and Matriculation Board",
6443
- "National Examination Council",
6444
- "National Open University",
6445
- "National Teachers Institute",
6446
- "National Universities Commission",
6447
- "Tertiary Education Trust Fund",
6448
- "Teachers Registration Council",
6449
- "National Business and Technical Examinations Board",
6450
- "Universal Basic Education Commission",
6451
- "West African Examination Council",
6452
- "National Commission for Colleges of Education",
6453
- "National Library",
6454
- ],
6455
- Energy: [
6456
- "Midstream and Downstream Petroleum Regulatory Authority",
6457
- "Upstream Petroleum Regulatory Commission",
6458
- "Electricity Management Services Limited",
6459
- "Energy Commission",
6460
- "National Power Training Institute",
6461
- "Electricity Regulatory Commission",
6462
- "Content Monitoring and Development Board",
6463
- "National Petroleum Corporation",
6464
- "Nuclear Regulatory Authority",
6465
- "Petroleum Product Pricing Regulatory Agency",
6466
- "Power Holding Company (defunct)",
6467
- "Rural Electrification Agency",
6468
- "Transmission Company",
6469
- ],
6470
- Environment: [
6471
- "Environmental Protection Agency (defunct)",
6472
- "Forestry Research Institute",
6473
- "National Biosafety Management Agency",
6474
- "National Environmental Standards and Regulations Enforcement Agency",
6475
- "National Oil Spill Detection and Response Agency",
6476
- "Environmental Health Officers Registration Council",
6477
- ],
6478
- Health: [
6479
- "National Health Insurance Scheme",
6480
- "Institute for Pharmaceutical Research and Development",
6481
- "Agency for the Control of AIDS",
6482
- "Agency for Food and Drug Administration and Control",
6483
- "Primary Health Care Development Agency",
6484
- "Institute of Medical Research",
6485
- "Centre for Disease Control",
6486
- "Drug Law Enforcement Agency",
6487
- ],
6488
- Intelligence: [
6489
- "Defence Intelligence Agency",
6490
- "State Security Service",
6491
- "National Intelligence Agency",
6492
- "Financial Intelligence Unit",
6493
- ],
6494
- Judiciary: [
6495
- "National Judicial Council",
6496
- "Federal Judicial Service Commission",
6497
- "National Judicial Institute",
6498
- ],
6499
- Maritime: [
6500
- "Maritime Administration and Safety Agency",
6501
- "Ports Authority",
6502
- "Shippers' Council",
6503
- ],
6504
- Media: [
6505
- "Broadcasting Organisation",
6506
- "News Agency",
6507
- "Press Council",
6508
- "Television Authority",
6509
- ],
6510
- ScienceAndTechnology: [
6511
- "Agency For Science and Engineering Infrastructure",
6512
- "Biotechnology Development Agency",
6513
- "Centre for Remote Sensing",
6514
- "Science and Technology Complex",
6515
- "Office for Technology Acquisition and Promotion",
6516
- "Space Research and Development Agency",
6517
- "Nuclear Regulatory Authority",
6518
- "Raw Materials Research and Development Council",
6519
- "Communications Satellite Ltd",
6520
- "Centre for Technology Management",
6521
- ],
6522
- WaterResources: [
6523
- "Hydrological Services Agency",
6524
- "Integrated Water Resources Commission",
6525
- "Water Resources Institute",
6526
- "River Basin Development Authorities",
6527
- ],
6528
- Other: [
6529
- "Centre for Black and African Arts and Civilization",
6530
- "Automotive Design and Development Council",
6531
- "Code of Conduct Bureau",
6532
- "Computer Professionals Registration Council",
6533
- "Consumer Protection Council",
6534
- "Economic and Financial Crimes Commission",
6535
- "Federal Character Commission",
6536
- "Federal Housing Authority",
6537
- "Corrupt Practices and Other Related Offences Commission",
6538
- "Independent National Electoral Commission",
6539
- "Industrial Training Fund",
6540
- "Legal Aid Council",
6541
- "Agency for the Prohibition of Trafficking in Persons",
6542
- "National Boundary Commission",
6543
- "National Council of Arts and Culture",
6544
- "Economic Reconstruction Fund",
6545
- "Emergency Management Agency",
6546
- "Hajj Commission",
6547
- "Human Rights Commission",
6548
- "Identity Management Commission",
6549
- "Institute for Hospitality Tourism",
6550
- "Lottery Regulatory Commission",
6551
- "Orientation Agency",
6552
- "Population Commission",
6553
- "Poverty Eradication Programme (defunct)",
6554
- "Salaries, Incomes and Wages Commission",
6555
- "Sports Commission",
6556
- "Extractive Industries Transparency Initiative",
6557
- "Immigration Service",
6558
- "Building and Road Research Institute",
6559
- "Institute of Building",
6560
- "Christian Pilgrim Commission",
6561
- "Copyright Commission",
6562
- "Tourism Development Corporation",
6563
- "Public Complaints Commission",
6564
- "Surveyors Council",
6565
- "National Lottery Trust Fund",
6566
- ],
6567
- };
6568
6180
  var AddNewCompanyComponent = function (props) {
6569
- var _a, _b, _c, _d, _e;
6181
+ var _a;
6570
6182
  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;
6571
6183
  var formOne = Form.useForm()[0];
6572
6184
  var formTwo = Form.useForm()[0];
6573
- var _f = useState(), stepOneData = _f[0], setStepOneData = _f[1];
6574
- var _g = useState(false), loading = _g[0], setLoading = _g[1];
6185
+ var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
6186
+ var _c = useState(false), loading = _c[0], setLoading = _c[1];
6575
6187
  var contactNoInput = useState()[0];
6576
- var _h = useState(0), current = _h[0], setCurrent = _h[1];
6577
- var _j = useState(false), isUpdate = _j[0], setIsUpdate = _j[1];
6578
- var _k = useConnection(), put = _k.put, get = _k.get, post = _k.post;
6579
- var _l = useUserContext(), setUserInfo = _l.setUserInfo, userInfoState = _l.userInfoState;
6188
+ var _d = useState(0), current = _d[0], setCurrent = _d[1];
6189
+ var _e = useState(false), isUpdate = _e[0], setIsUpdate = _e[1];
6190
+ var _f = useConnection(), put = _f.put, get = _f.get, post = _f.post;
6191
+ var _g = useUserContext(), setUserInfo = _g.setUserInfo, userInfoState = _g.userInfoState;
6580
6192
  var state = useLocation().state;
6581
- var _m = useState([]), fileList = _m[0], setFileList = _m[1];
6582
- var _o = useState([]), countries = _o[0], setCountries = _o[1];
6583
- var _p = useState(false), loadingList = _p[0], setLoadingList = _p[1];
6584
- var _q = useState([]), regionsList = _q[0], setRegionsList = _q[1];
6585
- var _r = useState((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.companyRole), companyRole = _r[0], setCompanyRole = _r[1];
6586
- var _s = useState(""), selectedMinistry = _s[0], setSelectedMinistry = _s[1];
6587
- var _t = useState([]), existgovDep = _t[0], setexistGovdep = _t[1];
6588
- var _u = useState(ministries), ministryDropdown = _u[0], setMinistryDropdown = _u[1];
6589
- 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];
6590
- 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];
6591
- var selectedGovDepatments = ministryOrgs[selectedMinistry];
6592
- if (existgovDep && existgovDep.length > 0) {
6593
- selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
6594
- }
6595
- var onChangeMinistry = function (val) { return __awaiter(void 0, void 0, void 0, function () {
6596
- var key;
6597
- return __generator(this, function (_a) {
6598
- key = Object.keys(Ministry)[Object.values(Ministry).indexOf(val)];
6599
- setSelectedMinistry(String(key));
6600
- if (isUpdate && val === initialMinistry) {
6601
- formOne.setFieldValue("govDep", Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(intialGovDep)]);
6602
- }
6603
- else {
6604
- formOne.setFieldValue("govDep", "");
6605
- }
6606
- getGovDep(val);
6607
- return [2 /*return*/];
6608
- });
6609
- }); };
6610
- var getMinistryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6611
- var leftmins, excludingmin_1, _i, ministries_1, min, response, minkey, error_1;
6612
- return __generator(this, function (_a) {
6613
- switch (_a.label) {
6614
- case 0:
6615
- setLoadingList(true);
6616
- _a.label = 1;
6617
- case 1:
6618
- _a.trys.push([1, 6, 7, 8]);
6619
- leftmins = [];
6620
- excludingmin_1 = [];
6621
- _i = 0, ministries_1 = ministries;
6622
- _a.label = 2;
6623
- case 2:
6624
- if (!(_i < ministries_1.length)) return [3 /*break*/, 5];
6625
- min = ministries_1[_i];
6626
- return [4 /*yield*/, post("national/organisation/query", {
6627
- page: 1,
6628
- size: 100,
6629
- filterAnd: [
6630
- {
6631
- key: "ministry",
6632
- operation: "=",
6633
- value: min,
6634
- },
6635
- ],
6636
- })];
6637
- case 3:
6638
- response = _a.sent();
6639
- minkey = Object.keys(Ministry)[Object.values(Ministry).indexOf(min)];
6640
- if (response.data.length === ministryOrgs[minkey].length) {
6641
- if (!isUpdate && min !== initialMinistry) {
6642
- excludingmin_1.push(min);
6643
- }
6644
- }
6645
- _a.label = 4;
6646
- case 4:
6647
- _i++;
6648
- return [3 /*break*/, 2];
6649
- case 5:
6650
- leftmins = ministries.filter(function (x) { return !excludingmin_1.includes(x); });
6651
- setMinistryDropdown(leftmins);
6652
- return [3 /*break*/, 8];
6653
- case 6:
6654
- error_1 = _a.sent();
6655
- console.log("Error in getting min list", error_1);
6656
- return [3 /*break*/, 8];
6657
- case 7:
6658
- setLoadingList(false);
6659
- return [7 /*endfinally*/];
6660
- case 8: return [2 /*return*/];
6661
- }
6662
- });
6663
- }); };
6193
+ var _h = useState([]), fileList = _h[0], setFileList = _h[1];
6194
+ var _j = useState([]), countries = _j[0], setCountries = _j[1];
6195
+ var _k = useState(false), loadingList = _k[0], setLoadingList = _k[1];
6196
+ var _l = useState([]), regionsList = _l[0], setRegionsList = _l[1];
6197
+ 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];
6664
6198
  var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6665
6199
  var response, alpha2Names;
6666
6200
  return __generator(this, function (_a) {
@@ -6679,7 +6213,7 @@ var AddNewCompanyComponent = function (props) {
6679
6213
  });
6680
6214
  }); };
6681
6215
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
6682
- var response, regionNames, uniqueRegionNames, error_2;
6216
+ var response, regionNames, uniqueRegionNames, error_1;
6683
6217
  return __generator(this, function (_a) {
6684
6218
  switch (_a.label) {
6685
6219
  case 0:
@@ -6707,57 +6241,8 @@ var AddNewCompanyComponent = function (props) {
6707
6241
  }
6708
6242
  return [3 /*break*/, 5];
6709
6243
  case 3:
6710
- error_2 = _a.sent();
6711
- console.log("Error in getting regions list", error_2);
6712
- return [3 /*break*/, 5];
6713
- case 4:
6714
- setLoadingList(false);
6715
- return [7 /*endfinally*/];
6716
- case 5: return [2 /*return*/];
6717
- }
6718
- });
6719
- }); };
6720
- var getGovDep = function (val) { return __awaiter(void 0, void 0, void 0, function () {
6721
- var response, existDep, i, departName, error_3;
6722
- return __generator(this, function (_a) {
6723
- switch (_a.label) {
6724
- case 0:
6725
- setLoadingList(true);
6726
- _a.label = 1;
6727
- case 1:
6728
- _a.trys.push([1, 3, 4, 5]);
6729
- return [4 /*yield*/, post("national/organisation/query", {
6730
- page: 1,
6731
- size: 200,
6732
- filterAnd: [
6733
- {
6734
- key: "ministry",
6735
- operation: "=",
6736
- value: val,
6737
- },
6738
- ],
6739
- })];
6740
- case 2:
6741
- response = _a.sent();
6742
- if (response && response.data) {
6743
- existDep = [];
6744
- for (i in response.data) {
6745
- if (response.data[i].govDep && response.data[i].govDep.length > 0) {
6746
- departName = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(response.data[i].govDep)];
6747
- if (response.data[i].govDep !== intialGovDep) {
6748
- existDep.push(departName);
6749
- }
6750
- else {
6751
- continue;
6752
- }
6753
- }
6754
- }
6755
- setexistGovdep(existDep);
6756
- }
6757
- return [3 /*break*/, 5];
6758
- case 3:
6759
- error_3 = _a.sent();
6760
- console.log("Error in getting exist Government Department list", error_3);
6244
+ error_1 = _a.sent();
6245
+ console.log("Error in getting regions list", error_1);
6761
6246
  return [3 /*break*/, 5];
6762
6247
  case 4:
6763
6248
  setLoadingList(false);
@@ -6767,11 +6252,10 @@ var AddNewCompanyComponent = function (props) {
6767
6252
  });
6768
6253
  }); };
6769
6254
  useEffect(function () {
6770
- var _a, _b, _c, _d, _e, _f;
6255
+ var _a, _b, _c;
6771
6256
  setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
6772
6257
  getCountryList();
6773
6258
  getRegionList();
6774
- getMinistryList();
6775
6259
  if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
6776
6260
  setFileList([
6777
6261
  {
@@ -6783,11 +6267,6 @@ var AddNewCompanyComponent = function (props) {
6783
6267
  },
6784
6268
  ]);
6785
6269
  }
6786
- if ((_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.ministry) {
6787
- 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)];
6788
- setSelectedMinistry(key);
6789
- getGovDep((_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.ministry);
6790
- }
6791
6270
  }, []);
6792
6271
  var normFile = function (e) {
6793
6272
  if (Array.isArray(e)) {
@@ -6813,7 +6292,7 @@ var AddNewCompanyComponent = function (props) {
6813
6292
  }
6814
6293
  };
6815
6294
  var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
6816
- var requestData, logoBase64, logoUrls, response, response, error_4;
6295
+ var requestData, logoBase64, logoUrls, response, response, error_2;
6817
6296
  var _a, _b;
6818
6297
  return __generator(this, function (_c) {
6819
6298
  switch (_c.label) {
@@ -6841,10 +6320,6 @@ var AddNewCompanyComponent = function (props) {
6841
6320
  logoBase64 = _c.sent();
6842
6321
  logoUrls = logoBase64.split(",");
6843
6322
  requestData.company.logo = logoUrls[1];
6844
- if (companyRole === CompanyRole.MINISTRY) {
6845
- requestData.company.name =
6846
- "Ministry of " + requestData.company.ministry;
6847
- }
6848
6323
  if (!isGuest) return [3 /*break*/, 4];
6849
6324
  return [4 /*yield*/, post("national/user/register", requestData)];
6850
6325
  case 3:
@@ -6881,10 +6356,10 @@ var AddNewCompanyComponent = function (props) {
6881
6356
  _c.label = 6;
6882
6357
  case 6: return [3 /*break*/, 9];
6883
6358
  case 7:
6884
- error_4 = _c.sent();
6359
+ error_2 = _c.sent();
6885
6360
  message.open({
6886
6361
  type: "error",
6887
- content: "".concat(error_4.message),
6362
+ content: "".concat(error_2.message),
6888
6363
  duration: 3,
6889
6364
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6890
6365
  });
@@ -6897,17 +6372,17 @@ var AddNewCompanyComponent = function (props) {
6897
6372
  });
6898
6373
  }); };
6899
6374
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
6900
- var formOneValues, values, key, logoBase64, logoUrls, response, error_5;
6901
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6902
- return __generator(this, function (_o) {
6903
- switch (_o.label) {
6375
+ var formOneValues, values, logoBase64, logoUrls, response, error_3;
6376
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6377
+ return __generator(this, function (_l) {
6378
+ switch (_l.label) {
6904
6379
  case 0:
6905
6380
  setLoading(true);
6906
6381
  formOneValues = formOne.getFieldsValue();
6907
6382
  formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
6908
- _o.label = 1;
6383
+ _l.label = 1;
6909
6384
  case 1:
6910
- _o.trys.push([1, 5, , 6]);
6385
+ _l.trys.push([1, 5, , 6]);
6911
6386
  values = {};
6912
6387
  if (regionField) {
6913
6388
  values = {
@@ -6935,26 +6410,14 @@ var AddNewCompanyComponent = function (props) {
6935
6410
  values.taxId = formOneValues.taxId;
6936
6411
  values.paymentId = formOneValues.paymentId;
6937
6412
  }
6938
- if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY ||
6939
- ((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
6940
- if (formOneValues.govDep in GovDepartment) {
6941
- key = formOneValues.govDep;
6942
- values.govDep = GovDepartment[key];
6943
- }
6944
- else {
6945
- values.govDep = formOneValues.govDep;
6946
- }
6947
- values.ministry = formOneValues.ministry;
6948
- }
6949
- if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.MINISTRY) {
6413
+ if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
6950
6414
  values.sectoralScope = formOneValues.sectoralScope;
6951
6415
  values.nameOfMinister = formOneValues.nameOfMinister;
6952
- values.name = "Ministry of " + formOneValues.ministry;
6953
6416
  }
6954
- if (((_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.companyRole) === CompanyRole.GOVERNMENT) {
6417
+ if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
6955
6418
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
6956
6419
  }
6957
- if (((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.companyRole) === CompanyRole.GOVERNMENT) {
6420
+ if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.GOVERNMENT) {
6958
6421
  values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
6959
6422
  }
6960
6423
  if (formOneValues.website) {
@@ -6965,15 +6428,15 @@ var AddNewCompanyComponent = function (props) {
6965
6428
  }
6966
6429
  if (!formOneValues.logo) return [3 /*break*/, 3];
6967
6430
  if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
6968
- return [4 /*yield*/, getBase64((_m = formOneValues.logo[0]) === null || _m === void 0 ? void 0 : _m.originFileObj)];
6431
+ return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
6969
6432
  case 2:
6970
- logoBase64 = _o.sent();
6433
+ logoBase64 = _l.sent();
6971
6434
  logoUrls = logoBase64.split(",");
6972
6435
  values.logo = logoUrls[1];
6973
- _o.label = 3;
6436
+ _l.label = 3;
6974
6437
  case 3: return [4 /*yield*/, put("national/organisation/update", values)];
6975
6438
  case 4:
6976
- response = _o.sent();
6439
+ response = _l.sent();
6977
6440
  if (response.status === 200 || response.status === 201) {
6978
6441
  setUserInfo({
6979
6442
  companyLogo: response.data.logo,
@@ -6989,10 +6452,10 @@ var AddNewCompanyComponent = function (props) {
6989
6452
  setLoading(false);
6990
6453
  return [3 /*break*/, 6];
6991
6454
  case 5:
6992
- error_5 = _o.sent();
6455
+ error_3 = _l.sent();
6993
6456
  message.open({
6994
6457
  type: "error",
6995
- content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_5.message),
6458
+ content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
6996
6459
  duration: 3,
6997
6460
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6998
6461
  });
@@ -7010,7 +6473,7 @@ var AddNewCompanyComponent = function (props) {
7010
6473
  setCompanyRole(value);
7011
6474
  };
7012
6475
  var CompanyDetailsForm = function () {
7013
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
6476
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7014
6477
  var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
7015
6478
  ? "certifier"
7016
6479
  : companyRole === CompanyRole.PROGRAMME_DEVELOPER
@@ -7024,7 +6487,7 @@ var AddNewCompanyComponent = function (props) {
7024
6487
  React.createElement(Row, { className: "row", gutter: [16, 16] },
7025
6488
  React.createElement(Col, { xl: 12, md: 24 },
7026
6489
  React.createElement("div", { className: "details-part-one" },
7027
- companyRole !== CompanyRole.MINISTRY && (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: [
6490
+ 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: [
7028
6491
  {
7029
6492
  required: true,
7030
6493
  message: "",
@@ -7043,7 +6506,7 @@ var AddNewCompanyComponent = function (props) {
7043
6506
  }); },
7044
6507
  },
7045
6508
  ] },
7046
- React.createElement(Input, { size: "large" }))),
6509
+ React.createElement(Input, { size: "large" })),
7047
6510
  companyRole !== CompanyRole.MINISTRY
7048
6511
  ? (!isUpdate ||
7049
6512
  (isUpdate &&
@@ -7092,7 +6555,7 @@ var AddNewCompanyComponent = function (props) {
7092
6555
  ] },
7093
6556
  React.createElement(Input, { size: "large" })))
7094
6557
  : null,
7095
- companyRole !== CompanyRole.GOVERNMENT && (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: [
6558
+ 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: [
7096
6559
  {
7097
6560
  required: true,
7098
6561
  message: "",
@@ -7122,65 +6585,8 @@ var AddNewCompanyComponent = function (props) {
7122
6585
  }); },
7123
6586
  },
7124
6587
  ] },
7125
- React.createElement(Input, { size: "large" }))),
7126
- (companyRole === CompanyRole.MINISTRY ||
7127
- companyRole === CompanyRole.GOVERNMENT) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
7128
- 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: [
7129
- {
7130
- required: true,
7131
- message: "".concat(t("addCompany:ministry"), " ").concat(t("isRequired")),
7132
- },
7133
- ] }, (companyRole !== CompanyRole.GOVERNMENT &&
7134
- (ministryDropdown &&
7135
- 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 }))),
7136
- 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: [
7137
- {
7138
- required: true,
7139
- message: "",
7140
- },
7141
- {
7142
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
7143
- var val, reg, matches;
7144
- return __generator(this, function (_a) {
7145
- if (String(value).trim() === "" ||
7146
- String(value).trim() === undefined ||
7147
- value === null ||
7148
- value === undefined) {
7149
- throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
7150
- }
7151
- else {
7152
- val = value.trim();
7153
- 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,}))$/;
7154
- matches = val.match(reg)
7155
- ? val.match(reg)
7156
- : [];
7157
- if (matches.length === 0) {
7158
- throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
7159
- }
7160
- }
7161
- return [2 /*return*/];
7162
- });
7163
- }); },
7164
- },
7165
- ] },
7166
- React.createElement(Input, { size: "large" }))),
7167
- 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: [
7168
- {
7169
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
7170
- return __generator(this, function (_a) {
7171
- if (String(value).trim() === "" ||
7172
- String(value).trim() === undefined ||
7173
- value === null ||
7174
- value === undefined) {
7175
- throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
7176
- }
7177
- return [2 /*return*/];
7178
- });
7179
- }); },
7180
- },
7181
- ] },
7182
- React.createElement(Input, { size: "large" }))))),
7183
- 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: [
6588
+ React.createElement(Input, { size: "large" })),
6589
+ 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: [
7184
6590
  {
7185
6591
  required: false,
7186
6592
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7198,23 +6604,6 @@ var AddNewCompanyComponent = function (props) {
7198
6604
  },
7199
6605
  ], 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(); } },
7200
6606
  React.createElement(Input, { addonBefore: "https://", size: "large" })),
7201
- 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: [
7202
- { required: true, message: "" },
7203
- {
7204
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
7205
- return __generator(this, function (_a) {
7206
- if (String(value).trim() === "" ||
7207
- String(value).trim() === undefined ||
7208
- value === null ||
7209
- value === undefined) {
7210
- throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
7211
- }
7212
- return [2 /*return*/];
7213
- });
7214
- }); },
7215
- },
7216
- ] },
7217
- React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
7218
6607
  React.createElement(Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
7219
6608
  {
7220
6609
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7258,12 +6647,29 @@ var AddNewCompanyComponent = function (props) {
7258
6647
  return false;
7259
6648
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
7260
6649
  React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, t("addCompany:upload")))),
6650
+ 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: [
6651
+ { required: true, message: "" },
6652
+ {
6653
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6654
+ return __generator(this, function (_a) {
6655
+ if (String(value).trim() === "" ||
6656
+ String(value).trim() === undefined ||
6657
+ value === null ||
6658
+ value === undefined) {
6659
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6660
+ }
6661
+ return [2 /*return*/];
6662
+ });
6663
+ }); },
6664
+ },
6665
+ ] },
6666
+ React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
7261
6667
  companyRole === CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
7262
6668
  React.createElement(Space, { wrap: true, style: {
7263
6669
  display: "flex",
7264
6670
  marginBottom: 8,
7265
6671
  }, align: "center", size: "large" },
7266
- React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.nationalSopValue, rules: [
6672
+ 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: [
7267
6673
  { required: true, message: "" },
7268
6674
  {
7269
6675
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7272,7 +6678,7 @@ var AddNewCompanyComponent = function (props) {
7272
6678
  String(value).trim() === undefined ||
7273
6679
  value === null ||
7274
6680
  value === undefined) {
7275
- throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6681
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
7276
6682
  }
7277
6683
  return [2 /*return*/];
7278
6684
  });
@@ -7316,54 +6722,42 @@ var AddNewCompanyComponent = function (props) {
7316
6722
  t("addCompany:programmeDeveleper")))),
7317
6723
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
7318
6724
  CompanyRole.MINISTRY &&
7319
- !isGuest && (React.createElement("div", { className: "minister-radio-container" }, ministryDropdown.length > 0 ? (React.createElement(Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
7320
- React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
7321
- React.createElement(AuditOutlined, { className: "role-icons" }),
7322
- t("addCompany:min")))) : (React.createElement(Tooltip, { placement: "top", title: t("addCompany:allmincreated") },
7323
- React.createElement(Radio.Button, { className: "minister", value: "Ministry", disabled: true },
7324
- React.createElement(AuditOutlined, { className: "role-icons" }),
7325
- t("addCompany:min")))))))))),
7326
- (companyRole === CompanyRole.MINISTRY ||
7327
- companyRole === CompanyRole.GOVERNMENT) && (React.createElement(Form.Item, { label: t("addCompany:govdep"), name: "govDep", initialValue: Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(intialGovDep)], rules: [
6725
+ !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6726
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
6727
+ React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6728
+ React.createElement(AuditOutlined, { className: "role-icons" }),
6729
+ t("addCompany:min"))))))))),
6730
+ 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: [
7328
6731
  {
7329
6732
  required: true,
7330
- message: "".concat(t("addCompany:govdep"), " ").concat(t("isRequired")),
6733
+ message: "",
7331
6734
  },
7332
6735
  {
7333
6736
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
7334
- var val;
7335
6737
  return __generator(this, function (_a) {
7336
- val = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(value)];
7337
- if (val &&
7338
- val.length > 0 &&
7339
- selectedGovDepatments &&
7340
- !selectedGovDepatments.includes(val)) {
7341
- throw new Error("".concat(t("addCompany:govdepnotexist")));
6738
+ if (String(value).trim() === "" ||
6739
+ String(value).trim() === undefined ||
6740
+ value === null ||
6741
+ value === undefined) {
6742
+ throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
7342
6743
  }
7343
6744
  return [2 /*return*/];
7344
6745
  });
7345
6746
  }); },
7346
6747
  },
7347
- ] }, (companyRole !== CompanyRole.GOVERNMENT &&
7348
- (selectedGovDepatments &&
7349
- selectedGovDepatments.length > 0)) ? (React.createElement(Select, { size: "large" }, selectedGovDepatments === null || selectedGovDepatments === void 0 ? void 0 : selectedGovDepatments.map(function (val) {
7350
- if (val in GovDepartment) {
7351
- var key = val;
7352
- return (React.createElement(Select.Option, { key: GovDepartment[key], value: GovDepartment[key] }, val));
7353
- }
7354
- return null;
7355
- }))) : (React.createElement(Select, { size: "large", disabled: true })))),
6748
+ ] },
6749
+ React.createElement(Input, { size: "large" }))),
7356
6750
  companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
7357
6751
  {
7358
6752
  required: true,
7359
6753
  message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
7360
6754
  },
7361
- ], initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.sectoralScope },
6755
+ ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
7362
6756
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
7363
6757
  var key = _a[0], value = _a[1];
7364
6758
  return (React.createElement(Select.Option, { key: value, value: value }, key));
7365
6759
  })))),
7366
- React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.phoneNo, rules: [
6760
+ 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: [
7367
6761
  {
7368
6762
  required: true,
7369
6763
  message: "",
@@ -7394,14 +6788,14 @@ var AddNewCompanyComponent = function (props) {
7394
6788
  },
7395
6789
  ] },
7396
6790
  React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
7397
- regionField && (React.createElement(Form.Item, { label: t("addCompany:region"), name: "regions", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.regions, rules: [
6791
+ 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: [
7398
6792
  {
7399
6793
  required: true,
7400
- message: "".concat(t("addCompany:region"), " ").concat(t("isRequired")),
6794
+ message: "".concat(t("region"), " ").concat(t("isRequired")),
7401
6795
  },
7402
6796
  ] },
7403
6797
  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)); })))),
7404
- companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_q = state === null || state === void 0 ? void 0 : state.record) === null || _q === void 0 ? void 0 : _q.address, rules: [
6798
+ 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: [
7405
6799
  { required: true, message: "" },
7406
6800
  {
7407
6801
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7424,7 +6818,7 @@ var AddNewCompanyComponent = function (props) {
7424
6818
  display: "flex",
7425
6819
  marginBottom: 8,
7426
6820
  }, align: "center", size: "large" },
7427
- React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (_r = state === null || state === void 0 ? void 0 : state.record) === null || _r === void 0 ? void 0 : _r.omgePercentage, rules: [
6821
+ 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: [
7428
6822
  { required: true, message: "" },
7429
6823
  {
7430
6824
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7600,16 +6994,6 @@ var CompanyDetailsComponent = function (props) {
7600
6994
  React.createElement(Row, { className: "field" },
7601
6995
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:name")),
7602
6996
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.name ? companyDetails.name : "-")),
7603
- ((companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT ||
7604
- (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.MINISTRY) && (React.createElement(React.Fragment, null,
7605
- React.createElement(Row, { className: "field" },
7606
- React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:ministry")),
7607
- React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry ? companyDetails.ministry : "-")),
7608
- React.createElement(Row, { className: "field" },
7609
- React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:govDep")),
7610
- React.createElement(Col, { span: 12, className: "field-value" }, (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)
7611
- ? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)]
7612
- : "-")))),
7613
6997
  React.createElement(Row, { className: "field" },
7614
6998
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:taxId")),
7615
6999
  React.createElement(Col, { span: 12, className: "field-value nextline-overflow" }, companyDetails.taxId &&
@@ -8527,7 +7911,7 @@ var ProgrammeManagementComponent = function (props) {
8527
7911
  } })))))));
8528
7912
  };
8529
7913
 
8530
- 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;\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;\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;\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";
7914
+ 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;\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;\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;\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";
8531
7915
  styleInject(css_248z$r);
8532
7916
 
8533
7917
  function commonjsRequire(path) {
@@ -14286,7 +13670,7 @@ var ProgrammeCreationComponent = function (props) {
14286
13670
  var userInfoState = useUserContext().userInfoState;
14287
13671
  var _e = useState(false), loading = _e[0], setLoading = _e[1];
14288
13672
  var _f = useState(false), loadingList = _f[0], setLoadingList = _f[1];
14289
- var _g = useState(); _g[0]; var setNdcScopeChanged = _g[1];
13673
+ var _g = useState(), ndcScopeChanged = _g[0], setNdcScopeChanged = _g[1];
14290
13674
  var _h = useState(), ndcScopeValue = _h[0], setNdcScopeValue = _h[1];
14291
13675
  var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
14292
13676
  var _k = useState(0), current = _k[0], setCurrent = _k[1];
@@ -14306,10 +13690,6 @@ var ProgrammeCreationComponent = function (props) {
14306
13690
  var _z = useState([]), availableSecoralScope = _z[0], setAvailableSectoralScope = _z[1];
14307
13691
  var _0 = useState([]), selectableSectoralScope = _0[0], setSelectableSectoralScope = _0[1];
14308
13692
  var _1 = useState([]), availableSectar = _1[0], setAvailableSectar = _1[1];
14309
- var _2 = useState(true), article6trade = _2[0], setArticletrade = _2[1];
14310
- var _3 = useState([]), ministryList = _3[0], setMinistryList = _3[1];
14311
- var _4 = useState(); _4[0]; _4[1];
14312
- var _5 = useState(), implementOwner = _5[0], setimplementOwner = _5[1];
14313
13693
  // const initialOrganisationOwnershipValues: any[] = [
14314
13694
  // {
14315
13695
  // organisation:
@@ -14435,7 +13815,7 @@ var ProgrammeCreationComponent = function (props) {
14435
13815
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyName),
14436
13816
  proponentPercentage: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14437
13817
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY &&
14438
- 100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue),
13818
+ (100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue)),
14439
13819
  },
14440
13820
  ]);
14441
13821
  setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
@@ -14454,96 +13834,8 @@ var ProgrammeCreationComponent = function (props) {
14454
13834
  }
14455
13835
  });
14456
13836
  }); };
14457
- var getMinistryDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14458
- var response, error_4;
14459
- return __generator(this, function (_a) {
14460
- switch (_a.label) {
14461
- case 0:
14462
- setLoading(true);
14463
- _a.label = 1;
14464
- case 1:
14465
- _a.trys.push([1, 3, 4, 5]);
14466
- console.log("getting Ministry profile");
14467
- return [4 /*yield*/, post("national/organisation/query", {
14468
- page: 1,
14469
- size: 100,
14470
- filterOr: [
14471
- {
14472
- key: "companyRole",
14473
- operation: "=",
14474
- value: CompanyRole.MINISTRY,
14475
- },
14476
- {
14477
- key: "companyRole",
14478
- operation: "=",
14479
- value: CompanyRole.GOVERNMENT,
14480
- },
14481
- ],
14482
- })];
14483
- case 2:
14484
- response = _a.sent();
14485
- if (response.data) {
14486
- setMinistryList(response === null || response === void 0 ? void 0 : response.data);
14487
- }
14488
- return [3 /*break*/, 5];
14489
- case 3:
14490
- error_4 = _a.sent();
14491
- console.log("Error in getting ministry data", error_4);
14492
- return [3 /*break*/, 5];
14493
- case 4:
14494
- setLoading(false);
14495
- return [7 /*endfinally*/];
14496
- case 5: return [2 /*return*/];
14497
- }
14498
- });
14499
- }); };
14500
- var getImplementOwnerDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14501
- var response, error_5;
14502
- var _a, _b;
14503
- return __generator(this, function (_c) {
14504
- switch (_c.label) {
14505
- case 0:
14506
- setLoading(true);
14507
- _c.label = 1;
14508
- case 1:
14509
- _c.trys.push([1, 3, , 4]);
14510
- return [4 /*yield*/, post("national/user/query", {
14511
- page: 1,
14512
- size: 10,
14513
- filterAnd: [
14514
- {
14515
- key: "id",
14516
- operation: "=",
14517
- value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.id,
14518
- },
14519
- ],
14520
- })];
14521
- case 2:
14522
- response = _c.sent();
14523
- if (response && response.data) {
14524
- if ((_a = response === null || response === void 0 ? void 0 : response.data[0]) === null || _a === void 0 ? void 0 : _a.company) {
14525
- setimplementOwner((_b = response === null || response === void 0 ? void 0 : response.data[0]) === null || _b === void 0 ? void 0 : _b.company);
14526
- }
14527
- }
14528
- setLoading(false);
14529
- return [3 /*break*/, 4];
14530
- case 3:
14531
- error_5 = _c.sent();
14532
- console.log("Error in getting users", error_5);
14533
- message.open({
14534
- type: "error",
14535
- content: error_5.message,
14536
- duration: 3,
14537
- style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14538
- });
14539
- setLoading(false);
14540
- return [3 /*break*/, 4];
14541
- case 4: return [2 /*return*/];
14542
- }
14543
- });
14544
- }); };
14545
13837
  var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14546
- var response, userOrganisation, taxId, error_6;
13838
+ var response, userOrganisation, taxId, error_4;
14547
13839
  return __generator(this, function (_a) {
14548
13840
  switch (_a.label) {
14549
13841
  case 0:
@@ -14572,8 +13864,8 @@ var ProgrammeCreationComponent = function (props) {
14572
13864
  }
14573
13865
  return [3 /*break*/, 5];
14574
13866
  case 3:
14575
- error_6 = _a.sent();
14576
- console.log("Error in getting organisation list", error_6);
13867
+ error_4 = _a.sent();
13868
+ console.log("Error in getting organisation list", error_4);
14577
13869
  return [3 /*break*/, 5];
14578
13870
  case 4:
14579
13871
  setLoadingList(false);
@@ -14583,7 +13875,7 @@ var ProgrammeCreationComponent = function (props) {
14583
13875
  });
14584
13876
  }); };
14585
13877
  var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14586
- var response, sectScopeValues_1, sectSScope_1, sectors_1, error_7;
13878
+ var response, sectScopeValues_1, sectSScope_1, sectors_1, error_5;
14587
13879
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
14588
13880
  return __generator(this, function (_k) {
14589
13881
  switch (_k.label) {
@@ -14643,11 +13935,11 @@ var ProgrammeCreationComponent = function (props) {
14643
13935
  setLoading(false);
14644
13936
  return [3 /*break*/, 4];
14645
13937
  case 3:
14646
- error_7 = _k.sent();
14647
- console.log("Error in getting users", error_7);
13938
+ error_5 = _k.sent();
13939
+ console.log("Error in getting users", error_5);
14648
13940
  message.open({
14649
13941
  type: "error",
14650
- content: error_7.message,
13942
+ content: error_5.message,
14651
13943
  duration: 3,
14652
13944
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14653
13945
  });
@@ -14662,10 +13954,8 @@ var ProgrammeCreationComponent = function (props) {
14662
13954
  getCountryList();
14663
13955
  getRegionList();
14664
13956
  getGovernmentDetails();
14665
- getMinistryDetails();
14666
13957
  if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) {
14667
13958
  getUserDetails();
14668
- getImplementOwnerDetails();
14669
13959
  }
14670
13960
  }, []);
14671
13961
  var normFile = function (e) {
@@ -14682,74 +13972,46 @@ var ProgrammeCreationComponent = function (props) {
14682
13972
  setCurrent(current - 1);
14683
13973
  };
14684
13974
  var onFinishStepOne = function (values) { return __awaiter(void 0, void 0, void 0, function () {
14685
- var programmeDetails, totalPercentage, ownershipPercentage, duplicateIds, proponentTxIds, proponentPercentages, finalImplementingOwner, supportingOwners, propTaxIds, propTaxIds, environmentalImpactAssessmentData, logoBase64;
14686
- var _a, _b, _c, _d, _e;
14687
- return __generator(this, function (_f) {
14688
- switch (_f.label) {
13975
+ var programmeDetails, ownershipPercentage, totalPercentage, proponentPercentages, proponentTxIds, logoBase64, environmentalImpactAssessmentData, propTaxIds, duplicateIds;
13976
+ var _a, _b, _c, _d;
13977
+ return __generator(this, function (_e) {
13978
+ switch (_e.label) {
14689
13979
  case 0:
14690
13980
  setLoading(true);
14691
- if (article6trade) {
14692
- ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
14693
- if (Number(govData.nationalSopValue) !== 0) {
14694
- ownershipPercentage.push({
14695
- organisation: govData.taxId,
14696
- proponentPercentage: Number(govData.nationalSopValue),
14697
- });
14698
- }
14699
- totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
14700
- proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
14701
- proponentTxIds =
14702
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14703
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14704
- ? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
14705
- : ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14706
- propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14707
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14708
- ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
14709
- duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14710
- console.log("proponentTxIds", proponentTxIds);
14711
- console.log("ownershipPercentage", ownershipPercentage);
14712
- }
14713
- if (!article6trade) {
14714
- ownershipPercentage = (values === null || values === void 0 ? void 0 : values.article6Percentage)
14715
- ? JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.article6Percentage))
14716
- : [];
14717
- totalPercentage = 100;
14718
- if ((values === null || values === void 0 ? void 0 : values.implementingOwner) && (values === null || values === void 0 ? void 0 : values.implementingOwner.length) > 0) {
14719
- ownershipPercentage.push({
14720
- organisation: implementOwner
14721
- ? implementOwner.taxId
14722
- : values === null || values === void 0 ? void 0 : values.implementingOwner,
14723
- proponentPercentage: 100,
14724
- });
14725
- }
14726
- proponentPercentages = ownershipPercentage.map(function (item) {
14727
- return item.proponentPercentage === "Supporting" ? 0 : 100;
13981
+ ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
13982
+ if (Number(govData.nationalSopValue) !== 0) {
13983
+ ownershipPercentage.push({
13984
+ organisation: govData.taxId,
13985
+ proponentPercentage: Number(govData.nationalSopValue),
14728
13986
  });
14729
- proponentTxIds = ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14730
- propTaxIds = proponentTxIds;
14731
- duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14732
- finalImplementingOwner = implementOwner
14733
- ? implementOwner.taxId
14734
- : values === null || values === void 0 ? void 0 : values.implementingOwner;
14735
- supportingOwners = (_a = values === null || values === void 0 ? void 0 : values.article6Percentage) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.organisation; });
14736
- console.log("implementingOwner", finalImplementingOwner);
14737
- console.log("supportingOwners", supportingOwners);
14738
13987
  }
14739
- environmentalImpactAssessmentData = "";
14740
- if (!(((_b = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _b === void 0 ? void 0 : _b.length) > 0)) return [3 /*break*/, 2];
14741
- return [4 /*yield*/, getBase64((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _c === void 0 ? void 0 : _c.originFileObj)];
13988
+ console.log("ownershipPercentage", ownershipPercentage);
13989
+ totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
13990
+ proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
13991
+ proponentTxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
13992
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
13993
+ ? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
13994
+ : ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
13995
+ logoBase64 = "";
13996
+ if (!(((_a = values === null || values === void 0 ? void 0 : values.designDocument) === null || _a === void 0 ? void 0 : _a.length) > 0)) return [3 /*break*/, 2];
13997
+ return [4 /*yield*/, getBase64((_b = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _b === void 0 ? void 0 : _b.originFileObj)];
14742
13998
  case 1:
14743
- environmentalImpactAssessmentData = _f.sent();
14744
- _f.label = 2;
13999
+ logoBase64 = _e.sent();
14000
+ _e.label = 2;
14745
14001
  case 2:
14746
- logoBase64 = "";
14747
- if (!(((_d = values === null || values === void 0 ? void 0 : values.designDocument) === null || _d === void 0 ? void 0 : _d.length) > 0)) return [3 /*break*/, 4];
14748
- return [4 /*yield*/, getBase64((_e = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _e === void 0 ? void 0 : _e.originFileObj)];
14002
+ environmentalImpactAssessmentData = "";
14003
+ if (!(((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _c === void 0 ? void 0 : _c.length) > 0)) return [3 /*break*/, 4];
14004
+ return [4 /*yield*/, getBase64((_d = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _d === void 0 ? void 0 : _d.originFileObj)];
14749
14005
  case 3:
14750
- logoBase64 = _f.sent();
14751
- _f.label = 4;
14006
+ environmentalImpactAssessmentData = _e.sent();
14007
+ _e.label = 4;
14752
14008
  case 4:
14009
+ propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14010
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14011
+ ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
14012
+ duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14013
+ console.log("proponentTxIds", proponentTxIds);
14014
+ console.log("ownershipPercentage", ownershipPercentage);
14753
14015
  if (totalPercentage !== 100) {
14754
14016
  if (Number(govData.nationalSopValue) !== 0) {
14755
14017
  ownershipPercentage.pop();
@@ -14786,12 +14048,7 @@ var ProgrammeCreationComponent = function (props) {
14786
14048
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14787
14049
  ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds,
14788
14050
  proponentPercentage: proponentPercentages,
14789
- article6trade: article6trade,
14790
- supportingowners: !article6trade && supportingOwners ? supportingOwners : undefined,
14791
- implementinguser: !article6trade ? finalImplementingOwner : undefined,
14792
- programmeProperties: __assign(__assign({ buyerCountryEligibility: article6trade
14793
- ? values === null || values === void 0 ? void 0 : values.buyerCountryEligibility
14794
- : 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 &&
14051
+ 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 &&
14795
14052
  (values === null || values === void 0 ? void 0 : values.ndcScope) !== null && {
14796
14053
  ndcScope: (values === null || values === void 0 ? void 0 : values.ndcScope) === "true" ? true : false,
14797
14054
  })), (includedInNDC !== undefined &&
@@ -14814,7 +14071,7 @@ var ProgrammeCreationComponent = function (props) {
14814
14071
  });
14815
14072
  }); };
14816
14073
  var saveNewProgramme = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
14817
- var response, error_8;
14074
+ var response, error_6;
14818
14075
  return __generator(this, function (_a) {
14819
14076
  switch (_a.label) {
14820
14077
  case 0:
@@ -14837,11 +14094,11 @@ var ProgrammeCreationComponent = function (props) {
14837
14094
  onNavigateToProgrammeView();
14838
14095
  return [3 /*break*/, 5];
14839
14096
  case 3:
14840
- error_8 = _a.sent();
14841
- console.log("Error in programme creation - ", error_8);
14097
+ error_6 = _a.sent();
14098
+ console.log("Error in programme creation - ", error_6);
14842
14099
  message.open({
14843
14100
  type: "error",
14844
- content: error_8 === null || error_8 === void 0 ? void 0 : error_8.message,
14101
+ content: error_6 === null || error_6 === void 0 ? void 0 : error_6.message,
14845
14102
  duration: 4,
14846
14103
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14847
14104
  });
@@ -14857,9 +14114,7 @@ var ProgrammeCreationComponent = function (props) {
14857
14114
  var programmeDetails = stepOneData;
14858
14115
  programmeDetails.creditEst = Number(values === null || values === void 0 ? void 0 : values.creditEst);
14859
14116
  programmeDetails.programmeProperties.estimatedProgrammeCostUSD = Number(values === null || values === void 0 ? void 0 : values.estimatedProgrammeCostUSD);
14860
- programmeDetails.programmeProperties.carbonPriceUSDPerTon = article6trade
14861
- ? Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice)
14862
- : 0;
14117
+ programmeDetails.programmeProperties.carbonPriceUSDPerTon = Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice);
14863
14118
  setProgrammeDetailsObj(programmeDetails);
14864
14119
  return programmeDetails;
14865
14120
  };
@@ -14872,8 +14127,7 @@ var ProgrammeCreationComponent = function (props) {
14872
14127
  });
14873
14128
  }); };
14874
14129
  var onFormTwoValuesChane = function (changedValues, allValues) {
14875
- if (article6trade &&
14876
- (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14130
+ if ((allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14877
14131
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== null &&
14878
14132
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) > 0 &&
14879
14133
  (allValues === null || allValues === void 0 ? void 0 : allValues.estimatedProgrammeCostUSD) !== undefined &&
@@ -14905,11 +14159,13 @@ var ProgrammeCreationComponent = function (props) {
14905
14159
  setIncludedInNDC(undefined);
14906
14160
  }
14907
14161
  };
14908
- var onArticle6Trading = function (event) {
14909
- setArticletrade(event.target.value);
14910
- formOne.resetFields(["ownershipPercentage"]);
14911
- formOne.resetFields(["article6Percentage"]);
14912
- formOne.resetFields(["implementingOwner"]);
14162
+ var onClickIncludedInNDCScope = function (value) {
14163
+ if (value === includedInNDC) {
14164
+ setIncludedInNDC(undefined);
14165
+ }
14166
+ else {
14167
+ setIncludedInNDC(value);
14168
+ }
14913
14169
  };
14914
14170
  var onChangeGeoLocation = function (values) {
14915
14171
  if (values.includes("National")) {
@@ -14918,19 +14174,22 @@ var ProgrammeCreationComponent = function (props) {
14918
14174
  formOne.setFieldValue("geographicalLocation", __spreadArray([], newBuyerValues, true));
14919
14175
  }
14920
14176
  };
14921
- var onChangeStepOne = function (changedValues, allValues) {
14922
- var _a, _b, _c;
14923
- var selectedCompanies;
14924
- if (article6trade) {
14925
- 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; });
14926
- var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
14927
- ? true
14928
- : false;
14929
- setOwnershipPercentageValidation(orgPercentValidation);
14177
+ var onInCludedNDCChange = function (event) {
14178
+ var _a, _b;
14179
+ if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) === "inNDC") {
14180
+ setIncludedInNDC(true);
14930
14181
  }
14931
- else {
14932
- selectedCompanies = (_c = allValues === null || allValues === void 0 ? void 0 : allValues.article6Percentage) === null || _c === void 0 ? void 0 : _c.map(function (org) { return org === null || org === void 0 ? void 0 : org.organisation; });
14182
+ else if (((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.value) === "notInNDC") {
14183
+ setIncludedInNDC(false);
14933
14184
  }
14185
+ };
14186
+ var onChangeStepOne = function (changedValues, allValues) {
14187
+ var _a, _b;
14188
+ 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; });
14189
+ var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
14190
+ ? true
14191
+ : false;
14192
+ setOwnershipPercentageValidation(orgPercentValidation);
14934
14193
  var uniqueOrgs = new Set(selectedCompanies);
14935
14194
  setSelectedOrgs(__spreadArray([], uniqueOrgs, true));
14936
14195
  };
@@ -15110,200 +14369,91 @@ var ProgrammeCreationComponent = function (props) {
15110
14369
  React.createElement("div", { className: "addDoc-info" },
15111
14370
  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" },
15112
14371
  React.createElement(InfoCircle, { color: "#000000", size: 12 })))),
15113
- React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
15114
- React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
15115
- React.createElement(Row, { className: "in-ndc-row" },
15116
- React.createElement(Col, { md: 16, lg: 18, xl: 18 },
15117
- React.createElement("div", { className: "included-label" },
15118
- React.createElement("div", null, t("addProgramme:article6trading")))),
15119
- React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
15120
- React.createElement(Radio.Group, { size: "middle", value: article6trade, onChange: onArticle6Trading, disabled: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
15121
- CompanyRole.PROGRAMME_DEVELOPER },
15122
- React.createElement("div", { className: "yes-no-radio-container" },
15123
- React.createElement(Radio.Button, { className: "yes-no-radio", value: true }, t("addProgramme:yes"))),
15124
- React.createElement("div", { className: "yes-no-radio-container" },
15125
- React.createElement(Radio.Button, { className: "yes-no-radio", value: false }, t("addProgramme:no")))))))),
15126
- article6trade && (React.createElement(React.Fragment, null,
15127
- 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: [
15128
- {
15129
- required: false,
15130
- },
15131
- ] },
15132
- React.createElement(Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
15133
- govData &&
15134
- Number(govData.nationalSopValue) !== 0 && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15135
- React.createElement(Space, { wrap: true, style: {
15136
- display: "flex",
15137
- marginBottom: 8,
15138
- }, align: "center", size: "large" },
15139
- React.createElement("div", { className: "ownership-list-item" },
15140
- React.createElement(Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData
15141
- ? govData.name
15142
- : "Government", required: true },
15143
- React.createElement(Input, { size: "large", disabled: true })),
15144
- React.createElement(Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
15145
- ? Number(govData.nationalSopValue)
15146
- : 0 },
15147
- React.createElement(InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) {
15148
- return "".concat(value, "%");
15149
- }, parser: function (value) {
15150
- return value.replace("%", "");
15151
- } })))))),
15152
- React.createElement(Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
15153
- var add = _a.add, remove = _a.remove;
15154
- return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15155
- fields.map(function (_a) {
15156
- var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
15157
- return (React.createElement(Space, { wrap: true, key: key, style: {
15158
- display: "flex",
15159
- marginBottom: 8,
15160
- }, align: "center", size: "large" },
15161
- React.createElement("div", { className: "ownership-list-item" },
15162
- React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [
15163
- name,
15164
- "organisation",
15165
- ], wrapperCol: { span: 24 }, className: "organisation", rules: [
15166
- {
15167
- required: true,
15168
- message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
15169
- validateTrigger: "onBlur",
15170
- },
15171
- ], shouldUpdate: true }),
15172
- React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
15173
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15174
- CompanyRole.GOVERNMENT &&
15175
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15176
- 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)) ||
15177
- ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15178
- CompanyRole.GOVERNMENT &&
15179
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15180
- CompanyRole.MINISTRY &&
15181
- userOrgTaxId ===
15182
- (organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
15183
- React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
15184
- name,
15185
- "proponentPercentage",
15186
- ], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
15187
- {
15188
- required: true,
15189
- message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
15190
- },
15191
- {
15192
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
15193
- return __generator(this, function (_a) {
15194
- if (ownershipPercentageValidation &&
15195
- name === 0) {
15196
- throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
15197
- }
15198
- return [2 /*return*/];
15199
- });
15200
- }); },
15201
- },
15202
- ], shouldUpdate: true }),
15203
- React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
15204
- return "".concat(value, "%");
15205
- }, parser: function (value) {
15206
- return value.replace("%", "");
15207
- }, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
15208
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15209
- CompanyRole.GOVERNMENT &&
14372
+ 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: [
14373
+ {
14374
+ required: false,
14375
+ },
14376
+ ] },
14377
+ React.createElement(Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
14378
+ govData && (Number(govData.nationalSopValue) !== 0) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14379
+ React.createElement(Space, { wrap: true, 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, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData ? govData.name : "Government", required: true },
14385
+ React.createElement(Input, { size: "large", disabled: true })),
14386
+ React.createElement(Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
14387
+ ? Number(govData.nationalSopValue)
14388
+ : 0 },
14389
+ React.createElement(InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) {
14390
+ return value.replace("%", "");
14391
+ } })))))),
14392
+ React.createElement(Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
14393
+ var add = _a.add, remove = _a.remove;
14394
+ return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14395
+ fields.map(function (_a) {
14396
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
14397
+ return (React.createElement(Space, { wrap: true, key: key, style: {
14398
+ display: "flex",
14399
+ marginBottom: 8,
14400
+ }, align: "center", size: "large" },
14401
+ React.createElement("div", { className: "ownership-list-item" },
14402
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [name, "organisation"], wrapperCol: { span: 24 }, className: "organisation", rules: [
14403
+ {
14404
+ required: true,
14405
+ message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
14406
+ validateTrigger: "onBlur",
14407
+ },
14408
+ ], shouldUpdate: true }),
14409
+ React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
14410
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14411
+ CompanyRole.GOVERNMENT &&
14412
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14413
+ 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)) ||
14414
+ ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14415
+ CompanyRole.GOVERNMENT &&
15210
14416
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15211
- CompanyRole.MINISTRY })),
15212
- (fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
15213
- name !== 0 && (React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
15214
- remove(name);
15215
- } })))));
15216
- }),
15217
- React.createElement(Form.Item, null,
15218
- React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
15219
- }))),
15220
- !article6trade && (React.createElement(React.Fragment, null,
15221
- implementOwner ? (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15222
- React.createElement(Space, { wrap: true, style: {
15223
- display: "flex",
15224
- marginBottom: 8,
15225
- }, align: "center", size: "large" },
15226
- React.createElement("div", { className: "ownership-list-item" },
15227
- React.createElement(Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", initialValue: implementOwner
15228
- ? implementOwner.name +
15229
- " - " +
15230
- Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(implementOwner.govDep)]
15231
- : "Implementing Owner", required: true },
15232
- React.createElement(Input, { size: "large", disabled: true })),
15233
- React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: implementOwner
15234
- ? "Implementing"
15235
- : "Supporting" },
15236
- React.createElement(InputNumber, { size: "large", disabled: true })))))) : (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15237
- React.createElement(Space, { wrap: true, 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, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", rules: [
15243
- {
15244
- required: true,
15245
- message: "".concat(t("addProgramme:governmentDepartment"), " ").concat(t("isRequired")),
15246
- },
15247
- ] },
15248
- React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
15249
- return organisation.govDep && (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId }, organisation.name +
15250
- " - " +
15251
- Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
15252
- }))),
15253
- React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },
15254
- React.createElement(InputNumber, { size: "large", disabled: true })))))),
15255
- React.createElement(Form.List, { name: "article6Percentage" }, function (fields, _a) {
15256
- var add = _a.add, remove = _a.remove;
15257
- return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15258
- fields.map(function (_a) {
15259
- var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
15260
- return (React.createElement(Space, { wrap: true, key: key, style: {
15261
- display: "flex",
15262
- marginBottom: 8,
15263
- }, align: "center", size: "large" },
15264
- React.createElement("div", { className: "ownership-list-item" },
15265
- React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:governmentDepartment"), name: [
15266
- name,
15267
- "organisation",
15268
- ], rules: [
15269
- {
15270
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
15271
- return __generator(this, function (_a) {
15272
- if (String(value).trim() === "" ||
15273
- String(value).trim() ===
15274
- undefined ||
15275
- value === null ||
15276
- value ===
15277
- undefined) {
15278
- throw new Error("".concat(t("addProgramme:governmentDepartment"), " shouldn't be empty"));
15279
- }
15280
- return [2 /*return*/];
15281
- });
15282
- }); },
15283
- },
15284
- ], wrapperCol: { span: 24 }, className: "organisation", shouldUpdate: true }),
15285
- React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
15286
- var _a;
15287
- 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())) ||
15288
- (implementOwner === null || implementOwner === void 0 ? void 0 : implementOwner.taxId) ===
15289
- organisation.taxId ||
15290
- ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.implementingOwner.trim()) ===
15291
- organisation.taxId }, organisation.name +
15292
- " - " +
15293
- Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
15294
- }))),
15295
- React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:ownership"), className: "ownership-percent", name: [
15296
- name,
15297
- "proponentPercentage",
15298
- ], initialValue: "Supporting", labelCol: { span: 24 }, wrapperCol: { span: 24 }, shouldUpdate: true }),
15299
- React.createElement(InputNumber, { size: "large", disabled: true })),
15300
- React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
15301
- remove(name);
15302
- } }))));
15303
- }),
15304
- React.createElement(Form.Item, null,
15305
- React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
15306
- }))),
14417
+ CompanyRole.MINISTRY &&
14418
+ userOrgTaxId ===
14419
+ (organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
14420
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
14421
+ name,
14422
+ "proponentPercentage",
14423
+ ], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
14424
+ {
14425
+ required: true,
14426
+ message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
14427
+ },
14428
+ {
14429
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
14430
+ return __generator(this, function (_a) {
14431
+ if (ownershipPercentageValidation &&
14432
+ name === 0) {
14433
+ throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
14434
+ }
14435
+ return [2 /*return*/];
14436
+ });
14437
+ }); },
14438
+ },
14439
+ ], shouldUpdate: true }),
14440
+ React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
14441
+ return "".concat(value, "%");
14442
+ }, parser: function (value) {
14443
+ return value.replace("%", "");
14444
+ }, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
14445
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14446
+ CompanyRole.GOVERNMENT &&
14447
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14448
+ CompanyRole.MINISTRY })),
14449
+ (fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
14450
+ name !== 0 && (React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
14451
+ remove(name);
14452
+ } })))));
14453
+ }),
14454
+ React.createElement(Form.Item, null,
14455
+ React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
14456
+ }),
15307
14457
  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: [
15308
14458
  {
15309
14459
  required: true,
@@ -15431,6 +14581,25 @@ var ProgrammeCreationComponent = function (props) {
15431
14581
  },
15432
14582
  ] },
15433
14583
  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)); })))))),
14584
+ React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
14585
+ React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
14586
+ React.createElement(Row, { className: "in-ndc-row" },
14587
+ React.createElement(Col, { md: 16, lg: 18, xl: 18 },
14588
+ React.createElement("div", { className: "included-label" },
14589
+ React.createElement("div", null, t("addProgramme:inNDC")),
14590
+ React.createElement("div", { className: "info-container" },
14591
+ React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("addProgramme:inNDCToolTip"), overlayClassName: "custom-tooltip" },
14592
+ React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
14593
+ React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
14594
+ React.createElement(Radio.Group, { size: "middle", disabled: ndcScopeChanged, value: includedInNDC, onChange: onInCludedNDCChange },
14595
+ React.createElement("div", { className: "yes-no-radio-container" },
14596
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: true, onClick: function () {
14597
+ return onClickIncludedInNDCScope(true);
14598
+ } }, t("addProgramme:yes"))),
14599
+ React.createElement("div", { className: "yes-no-radio-container" },
14600
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: false, onClick: function () {
14601
+ return onClickIncludedInNDCScope(false);
14602
+ } }, t("addProgramme:no")))))))),
15434
14603
  React.createElement("div", { className: "steps-actions" },
15435
14604
  React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading, onClick: checkOrgPercentageValidation }, t("addProgramme:next"))))))),
15436
14605
  },
@@ -15470,13 +14639,11 @@ var ProgrammeCreationComponent = function (props) {
15470
14639
  },
15471
14640
  ] },
15472
14641
  React.createElement(InputNumber, { size: "large", style: { width: "100%", paddingRight: 12 } })),
15473
- article6trade && (React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
15474
- React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } }))))),
14642
+ React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
14643
+ React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } })))),
15475
14644
  React.createElement(Col, { xl: 12, md: 24 },
15476
14645
  React.createElement("div", { className: "details-part-two" },
15477
- React.createElement(Form.Item, { label: article6trade
15478
- ? t("addProgramme:creditEst")
15479
- : t("addProgramme:creditReduction"), name: "creditEst", rules: [
14646
+ React.createElement(Form.Item, { label: t("addProgramme:creditEst"), name: "creditEst", rules: [
15480
14647
  {
15481
14648
  required: true,
15482
14649
  message: "",
@@ -15488,9 +14655,7 @@ var ProgrammeCreationComponent = function (props) {
15488
14655
  String(value).trim() === undefined ||
15489
14656
  value === null ||
15490
14657
  value === undefined) {
15491
- throw new Error("".concat(article6trade
15492
- ? t("addProgramme:creditEst")
15493
- : t("addProgramme:creditReduction"), " ").concat(t("isRequired")));
14658
+ throw new Error("".concat(t("addProgramme:creditEst"), " ").concat(t("isRequired")));
15494
14659
  }
15495
14660
  else if (!isNaN(value) &&
15496
14661
  Number(value) > 0) {
@@ -17083,7 +16248,7 @@ var InvestmentCreationComponent = function (props) {
17083
16248
  .unix();
17084
16249
  }
17085
16250
  payload.instrument = Array.isArray(payload.instrument) ? payload.instrument : [payload.instrument];
17086
- payload.fromCompanyIds = data.companyId.map(function (e) { return Number(e); });
16251
+ // payload.fromCompanyIds = data.companyId.map((e) => Number(e));
17087
16252
  payload.percentage = val.percentage;
17088
16253
  payload.toCompanyId = Number(payload.toCompanyId);
17089
16254
  _a.label = 1;
@@ -36308,5 +35473,5 @@ var GHGDashboardComponent = function (props) {
36308
35473
  React.createElement(Row, { gutter: [40, 40], className: "statics-card-row" }, row.map(function (item, j) { return getWidgetJSX(item); })))); }))));
36309
35474
  };
36310
35475
 
36311
- 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, GovDepartment, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentOwnershipType, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, Ministry, 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 };
35476
+ 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, InvestmentOwnershipType, 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 };
36312
35477
  //# sourceMappingURL=index.js.map