@undp/carbon-library 1.0.305-CARBON-234.0 → 1.0.305

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -1,10 +1,10 @@
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, Upload, InputNumber, Tooltip, Select, 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, Select, Upload, InputNumber, Tooltip, 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';
6
6
  import axios, { HttpStatusCode } from 'axios';
7
- import PhoneInput, { formatPhoneNumberIntl, formatPhoneNumber } from 'react-phone-number-input';
7
+ import PhoneInput, { formatPhoneNumberIntl, formatPhoneNumber, isPossiblePhoneNumber } from 'react-phone-number-input';
8
8
  import validator from 'validator';
9
9
  import { plainToClass } from 'class-transformer';
10
10
  import * as Icon from 'react-bootstrap-icons';
@@ -6120,6 +6120,186 @@ 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
+
6123
6303
  var ConfigurationSettingsType;
6124
6304
  (function (ConfigurationSettingsType) {
6125
6305
  ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
@@ -6177,24 +6357,310 @@ var Projection = /** @class */ (function () {
6177
6357
  return Projection;
6178
6358
  }());
6179
6359
 
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
+ };
6180
6568
  var AddNewCompanyComponent = function (props) {
6181
- var _a;
6569
+ var _a, _b, _c, _d, _e;
6182
6570
  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;
6183
6571
  var formOne = Form.useForm()[0];
6184
6572
  var formTwo = Form.useForm()[0];
6185
- var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
6186
- var _c = useState(false), loading = _c[0], setLoading = _c[1];
6573
+ var _f = useState(), stepOneData = _f[0], setStepOneData = _f[1];
6574
+ var _g = useState(false), loading = _g[0], setLoading = _g[1];
6187
6575
  var contactNoInput = useState()[0];
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;
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;
6192
6580
  var state = useLocation().state;
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];
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
+ }); };
6198
6664
  var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6199
6665
  var response, alpha2Names;
6200
6666
  return __generator(this, function (_a) {
@@ -6213,7 +6679,7 @@ var AddNewCompanyComponent = function (props) {
6213
6679
  });
6214
6680
  }); };
6215
6681
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
6216
- var response, regionNames, uniqueRegionNames, error_1;
6682
+ var response, regionNames, uniqueRegionNames, error_2;
6217
6683
  return __generator(this, function (_a) {
6218
6684
  switch (_a.label) {
6219
6685
  case 0:
@@ -6241,8 +6707,57 @@ var AddNewCompanyComponent = function (props) {
6241
6707
  }
6242
6708
  return [3 /*break*/, 5];
6243
6709
  case 3:
6244
- error_1 = _a.sent();
6245
- console.log("Error in getting regions list", error_1);
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);
6246
6761
  return [3 /*break*/, 5];
6247
6762
  case 4:
6248
6763
  setLoadingList(false);
@@ -6252,10 +6767,11 @@ var AddNewCompanyComponent = function (props) {
6252
6767
  });
6253
6768
  }); };
6254
6769
  useEffect(function () {
6255
- var _a, _b, _c;
6770
+ var _a, _b, _c, _d, _e, _f;
6256
6771
  setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
6257
6772
  getCountryList();
6258
6773
  getRegionList();
6774
+ getMinistryList();
6259
6775
  if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
6260
6776
  setFileList([
6261
6777
  {
@@ -6267,6 +6783,11 @@ var AddNewCompanyComponent = function (props) {
6267
6783
  },
6268
6784
  ]);
6269
6785
  }
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
+ }
6270
6791
  }, []);
6271
6792
  var normFile = function (e) {
6272
6793
  if (Array.isArray(e)) {
@@ -6292,7 +6813,7 @@ var AddNewCompanyComponent = function (props) {
6292
6813
  }
6293
6814
  };
6294
6815
  var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
6295
- var requestData, logoBase64, logoUrls, response, response, error_2;
6816
+ var requestData, logoBase64, logoUrls, response, response, error_4;
6296
6817
  var _a, _b;
6297
6818
  return __generator(this, function (_c) {
6298
6819
  switch (_c.label) {
@@ -6320,6 +6841,10 @@ var AddNewCompanyComponent = function (props) {
6320
6841
  logoBase64 = _c.sent();
6321
6842
  logoUrls = logoBase64.split(",");
6322
6843
  requestData.company.logo = logoUrls[1];
6844
+ if (companyRole === CompanyRole.MINISTRY) {
6845
+ requestData.company.name =
6846
+ "Ministry of " + requestData.company.ministry;
6847
+ }
6323
6848
  if (!isGuest) return [3 /*break*/, 4];
6324
6849
  return [4 /*yield*/, post("national/user/register", requestData)];
6325
6850
  case 3:
@@ -6356,10 +6881,10 @@ var AddNewCompanyComponent = function (props) {
6356
6881
  _c.label = 6;
6357
6882
  case 6: return [3 /*break*/, 9];
6358
6883
  case 7:
6359
- error_2 = _c.sent();
6884
+ error_4 = _c.sent();
6360
6885
  message.open({
6361
6886
  type: "error",
6362
- content: "".concat(error_2.message),
6887
+ content: "".concat(error_4.message),
6363
6888
  duration: 3,
6364
6889
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6365
6890
  });
@@ -6372,17 +6897,17 @@ var AddNewCompanyComponent = function (props) {
6372
6897
  });
6373
6898
  }); };
6374
6899
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
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) {
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) {
6379
6904
  case 0:
6380
6905
  setLoading(true);
6381
6906
  formOneValues = formOne.getFieldsValue();
6382
6907
  formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
6383
- _l.label = 1;
6908
+ _o.label = 1;
6384
6909
  case 1:
6385
- _l.trys.push([1, 5, , 6]);
6910
+ _o.trys.push([1, 5, , 6]);
6386
6911
  values = {};
6387
6912
  if (regionField) {
6388
6913
  values = {
@@ -6410,14 +6935,26 @@ var AddNewCompanyComponent = function (props) {
6410
6935
  values.taxId = formOneValues.taxId;
6411
6936
  values.paymentId = formOneValues.paymentId;
6412
6937
  }
6413
- if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
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) {
6414
6950
  values.sectoralScope = formOneValues.sectoralScope;
6415
6951
  values.nameOfMinister = formOneValues.nameOfMinister;
6952
+ values.name = "Ministry of " + formOneValues.ministry;
6416
6953
  }
6417
- if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
6954
+ if (((_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.companyRole) === CompanyRole.GOVERNMENT) {
6418
6955
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
6419
6956
  }
6420
- if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.GOVERNMENT) {
6957
+ if (((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.companyRole) === CompanyRole.GOVERNMENT) {
6421
6958
  values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
6422
6959
  }
6423
6960
  if (formOneValues.website) {
@@ -6428,15 +6965,15 @@ var AddNewCompanyComponent = function (props) {
6428
6965
  }
6429
6966
  if (!formOneValues.logo) return [3 /*break*/, 3];
6430
6967
  if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
6431
- return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
6968
+ return [4 /*yield*/, getBase64((_m = formOneValues.logo[0]) === null || _m === void 0 ? void 0 : _m.originFileObj)];
6432
6969
  case 2:
6433
- logoBase64 = _l.sent();
6970
+ logoBase64 = _o.sent();
6434
6971
  logoUrls = logoBase64.split(",");
6435
6972
  values.logo = logoUrls[1];
6436
- _l.label = 3;
6973
+ _o.label = 3;
6437
6974
  case 3: return [4 /*yield*/, put("national/organisation/update", values)];
6438
6975
  case 4:
6439
- response = _l.sent();
6976
+ response = _o.sent();
6440
6977
  if (response.status === 200 || response.status === 201) {
6441
6978
  setUserInfo({
6442
6979
  companyLogo: response.data.logo,
@@ -6452,10 +6989,10 @@ var AddNewCompanyComponent = function (props) {
6452
6989
  setLoading(false);
6453
6990
  return [3 /*break*/, 6];
6454
6991
  case 5:
6455
- error_3 = _l.sent();
6992
+ error_5 = _o.sent();
6456
6993
  message.open({
6457
6994
  type: "error",
6458
- content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
6995
+ content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_5.message),
6459
6996
  duration: 3,
6460
6997
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6461
6998
  });
@@ -6473,7 +7010,7 @@ var AddNewCompanyComponent = function (props) {
6473
7010
  setCompanyRole(value);
6474
7011
  };
6475
7012
  var CompanyDetailsForm = function () {
6476
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7013
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
6477
7014
  var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
6478
7015
  ? "certifier"
6479
7016
  : companyRole === CompanyRole.PROGRAMME_DEVELOPER
@@ -6487,7 +7024,7 @@ var AddNewCompanyComponent = function (props) {
6487
7024
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6488
7025
  React.createElement(Col, { xl: 12, md: 24 },
6489
7026
  React.createElement("div", { className: "details-part-one" },
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: [
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: [
6491
7028
  {
6492
7029
  required: true,
6493
7030
  message: "",
@@ -6506,7 +7043,7 @@ var AddNewCompanyComponent = function (props) {
6506
7043
  }); },
6507
7044
  },
6508
7045
  ] },
6509
- React.createElement(Input, { size: "large" })),
7046
+ React.createElement(Input, { size: "large" }))),
6510
7047
  companyRole !== CompanyRole.MINISTRY
6511
7048
  ? (!isUpdate ||
6512
7049
  (isUpdate &&
@@ -6529,7 +7066,7 @@ var AddNewCompanyComponent = function (props) {
6529
7066
  }); },
6530
7067
  },
6531
7068
  ] },
6532
- React.createElement(Input, { disabled: isUpdate, size: "large" })))
7069
+ React.createElement(Input, { size: "large" })))
6533
7070
  : null,
6534
7071
  companyRole !== CompanyRole.MINISTRY
6535
7072
  ? (!isUpdate ||
@@ -6555,7 +7092,7 @@ var AddNewCompanyComponent = function (props) {
6555
7092
  ] },
6556
7093
  React.createElement(Input, { size: "large" })))
6557
7094
  : null,
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: [
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: [
6559
7096
  {
6560
7097
  required: true,
6561
7098
  message: "",
@@ -6585,8 +7122,65 @@ var AddNewCompanyComponent = function (props) {
6585
7122
  }); },
6586
7123
  },
6587
7124
  ] },
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: [
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: [
6590
7184
  {
6591
7185
  required: false,
6592
7186
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6604,6 +7198,23 @@ var AddNewCompanyComponent = function (props) {
6604
7198
  },
6605
7199
  ], 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(); } },
6606
7200
  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 }))),
6607
7218
  React.createElement(Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6608
7219
  {
6609
7220
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6647,29 +7258,12 @@ var AddNewCompanyComponent = function (props) {
6647
7258
  return false;
6648
7259
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6649
7260
  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 }))),
6667
7261
  companyRole === CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6668
7262
  React.createElement(Space, { wrap: true, style: {
6669
7263
  display: "flex",
6670
7264
  marginBottom: 8,
6671
7265
  }, align: "center", size: "large" },
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: [
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: [
6673
7267
  { required: true, message: "" },
6674
7268
  {
6675
7269
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6678,7 +7272,7 @@ var AddNewCompanyComponent = function (props) {
6678
7272
  String(value).trim() === undefined ||
6679
7273
  value === null ||
6680
7274
  value === undefined) {
6681
- throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
7275
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6682
7276
  }
6683
7277
  return [2 /*return*/];
6684
7278
  });
@@ -6722,42 +7316,54 @@ var AddNewCompanyComponent = function (props) {
6722
7316
  t("addCompany:programmeDeveleper")))),
6723
7317
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6724
7318
  CompanyRole.MINISTRY &&
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: [
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: [
6731
7328
  {
6732
7329
  required: true,
6733
- message: "",
7330
+ message: "".concat(t("addCompany:govdep"), " ").concat(t("isRequired")),
6734
7331
  },
6735
7332
  {
6736
7333
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
7334
+ var val;
6737
7335
  return __generator(this, function (_a) {
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")));
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")));
6743
7342
  }
6744
7343
  return [2 /*return*/];
6745
7344
  });
6746
7345
  }); },
6747
7346
  },
6748
- ] },
6749
- React.createElement(Input, { size: "large" }))),
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 })))),
6750
7356
  companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
6751
7357
  {
6752
7358
  required: true,
6753
7359
  message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
6754
7360
  },
6755
- ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
7361
+ ], initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.sectoralScope },
6756
7362
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
6757
7363
  var key = _a[0], value = _a[1];
6758
7364
  return (React.createElement(Select.Option, { key: value, value: value }, key));
6759
7365
  })))),
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: [
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: [
6761
7367
  {
6762
7368
  required: true,
6763
7369
  message: "",
@@ -6780,6 +7386,11 @@ var AddNewCompanyComponent = function (props) {
6780
7386
  phoneNo === undefined) {
6781
7387
  throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6782
7388
  }
7389
+ else {
7390
+ if (!isPossiblePhoneNumber(String(value))) {
7391
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isInvalid")));
7392
+ }
7393
+ }
6783
7394
  }
6784
7395
  }
6785
7396
  return [2 /*return*/];
@@ -6788,14 +7399,14 @@ var AddNewCompanyComponent = function (props) {
6788
7399
  },
6789
7400
  ] },
6790
7401
  React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
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: [
7402
+ 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: [
6792
7403
  {
6793
7404
  required: true,
6794
- message: "".concat(t("region"), " ").concat(t("isRequired")),
7405
+ message: "".concat(t("addCompany:region"), " ").concat(t("isRequired")),
6795
7406
  },
6796
7407
  ] },
6797
7408
  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)); })))),
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: [
7409
+ 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: [
6799
7410
  { required: true, message: "" },
6800
7411
  {
6801
7412
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6818,7 +7429,7 @@ var AddNewCompanyComponent = function (props) {
6818
7429
  display: "flex",
6819
7430
  marginBottom: 8,
6820
7431
  }, align: "center", size: "large" },
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: [
7432
+ 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: [
6822
7433
  { required: true, message: "" },
6823
7434
  {
6824
7435
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6994,6 +7605,16 @@ var CompanyDetailsComponent = function (props) {
6994
7605
  React.createElement(Row, { className: "field" },
6995
7606
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:name")),
6996
7607
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.name ? companyDetails.name : "-")),
7608
+ ((companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT ||
7609
+ (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.MINISTRY) && (React.createElement(React.Fragment, null,
7610
+ React.createElement(Row, { className: "field" },
7611
+ React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:ministry")),
7612
+ React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry ? companyDetails.ministry : "-")),
7613
+ React.createElement(Row, { className: "field" },
7614
+ React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:govDep")),
7615
+ React.createElement(Col, { span: 12, className: "field-value" }, (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)
7616
+ ? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.govDep)]
7617
+ : "-")))),
6997
7618
  React.createElement(Row, { className: "field" },
6998
7619
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyDetails:taxId")),
6999
7620
  React.createElement(Col, { span: 12, className: "field-value nextline-overflow" }, companyDetails.taxId &&
@@ -7911,7 +8532,7 @@ var ProgrammeManagementComponent = function (props) {
7911
8532
  } })))))));
7912
8533
  };
7913
8534
 
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";
8535
+ 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";
7915
8536
  styleInject(css_248z$r);
7916
8537
 
7917
8538
  function commonjsRequire(path) {
@@ -13670,7 +14291,7 @@ var ProgrammeCreationComponent = function (props) {
13670
14291
  var userInfoState = useUserContext().userInfoState;
13671
14292
  var _e = useState(false), loading = _e[0], setLoading = _e[1];
13672
14293
  var _f = useState(false), loadingList = _f[0], setLoadingList = _f[1];
13673
- var _g = useState(), ndcScopeChanged = _g[0], setNdcScopeChanged = _g[1];
14294
+ var _g = useState(); _g[0]; var setNdcScopeChanged = _g[1];
13674
14295
  var _h = useState(), ndcScopeValue = _h[0], setNdcScopeValue = _h[1];
13675
14296
  var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
13676
14297
  var _k = useState(0), current = _k[0], setCurrent = _k[1];
@@ -13690,6 +14311,10 @@ var ProgrammeCreationComponent = function (props) {
13690
14311
  var _z = useState([]), availableSecoralScope = _z[0], setAvailableSectoralScope = _z[1];
13691
14312
  var _0 = useState([]), selectableSectoralScope = _0[0], setSelectableSectoralScope = _0[1];
13692
14313
  var _1 = useState([]), availableSectar = _1[0], setAvailableSectar = _1[1];
14314
+ var _2 = useState(true), article6trade = _2[0], setArticletrade = _2[1];
14315
+ var _3 = useState([]), ministryList = _3[0], setMinistryList = _3[1];
14316
+ var _4 = useState(); _4[0]; _4[1];
14317
+ var _5 = useState(), implementOwner = _5[0], setimplementOwner = _5[1];
13693
14318
  // const initialOrganisationOwnershipValues: any[] = [
13694
14319
  // {
13695
14320
  // organisation:
@@ -13815,7 +14440,7 @@ var ProgrammeCreationComponent = function (props) {
13815
14440
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyName),
13816
14441
  proponentPercentage: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
13817
14442
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY &&
13818
- (100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue)),
14443
+ 100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue),
13819
14444
  },
13820
14445
  ]);
13821
14446
  setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
@@ -13834,8 +14459,96 @@ var ProgrammeCreationComponent = function (props) {
13834
14459
  }
13835
14460
  });
13836
14461
  }); };
14462
+ var getMinistryDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14463
+ var response, error_4;
14464
+ return __generator(this, function (_a) {
14465
+ switch (_a.label) {
14466
+ case 0:
14467
+ setLoading(true);
14468
+ _a.label = 1;
14469
+ case 1:
14470
+ _a.trys.push([1, 3, 4, 5]);
14471
+ console.log("getting Ministry profile");
14472
+ return [4 /*yield*/, post("national/organisation/query", {
14473
+ page: 1,
14474
+ size: 100,
14475
+ filterOr: [
14476
+ {
14477
+ key: "companyRole",
14478
+ operation: "=",
14479
+ value: CompanyRole.MINISTRY,
14480
+ },
14481
+ {
14482
+ key: "companyRole",
14483
+ operation: "=",
14484
+ value: CompanyRole.GOVERNMENT,
14485
+ },
14486
+ ],
14487
+ })];
14488
+ case 2:
14489
+ response = _a.sent();
14490
+ if (response.data) {
14491
+ setMinistryList(response === null || response === void 0 ? void 0 : response.data);
14492
+ }
14493
+ return [3 /*break*/, 5];
14494
+ case 3:
14495
+ error_4 = _a.sent();
14496
+ console.log("Error in getting ministry data", error_4);
14497
+ return [3 /*break*/, 5];
14498
+ case 4:
14499
+ setLoading(false);
14500
+ return [7 /*endfinally*/];
14501
+ case 5: return [2 /*return*/];
14502
+ }
14503
+ });
14504
+ }); };
14505
+ var getImplementOwnerDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14506
+ var response, error_5;
14507
+ var _a, _b;
14508
+ return __generator(this, function (_c) {
14509
+ switch (_c.label) {
14510
+ case 0:
14511
+ setLoading(true);
14512
+ _c.label = 1;
14513
+ case 1:
14514
+ _c.trys.push([1, 3, , 4]);
14515
+ return [4 /*yield*/, post("national/user/query", {
14516
+ page: 1,
14517
+ size: 10,
14518
+ filterAnd: [
14519
+ {
14520
+ key: "id",
14521
+ operation: "=",
14522
+ value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.id,
14523
+ },
14524
+ ],
14525
+ })];
14526
+ case 2:
14527
+ response = _c.sent();
14528
+ if (response && response.data) {
14529
+ if ((_a = response === null || response === void 0 ? void 0 : response.data[0]) === null || _a === void 0 ? void 0 : _a.company) {
14530
+ setimplementOwner((_b = response === null || response === void 0 ? void 0 : response.data[0]) === null || _b === void 0 ? void 0 : _b.company);
14531
+ }
14532
+ }
14533
+ setLoading(false);
14534
+ return [3 /*break*/, 4];
14535
+ case 3:
14536
+ error_5 = _c.sent();
14537
+ console.log("Error in getting users", error_5);
14538
+ message.open({
14539
+ type: "error",
14540
+ content: error_5.message,
14541
+ duration: 3,
14542
+ style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14543
+ });
14544
+ setLoading(false);
14545
+ return [3 /*break*/, 4];
14546
+ case 4: return [2 /*return*/];
14547
+ }
14548
+ });
14549
+ }); };
13837
14550
  var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13838
- var response, userOrganisation, taxId, error_4;
14551
+ var response, userOrganisation, taxId, error_6;
13839
14552
  return __generator(this, function (_a) {
13840
14553
  switch (_a.label) {
13841
14554
  case 0:
@@ -13864,8 +14577,8 @@ var ProgrammeCreationComponent = function (props) {
13864
14577
  }
13865
14578
  return [3 /*break*/, 5];
13866
14579
  case 3:
13867
- error_4 = _a.sent();
13868
- console.log("Error in getting organisation list", error_4);
14580
+ error_6 = _a.sent();
14581
+ console.log("Error in getting organisation list", error_6);
13869
14582
  return [3 /*break*/, 5];
13870
14583
  case 4:
13871
14584
  setLoadingList(false);
@@ -13875,7 +14588,7 @@ var ProgrammeCreationComponent = function (props) {
13875
14588
  });
13876
14589
  }); };
13877
14590
  var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13878
- var response, sectScopeValues_1, sectSScope_1, sectors_1, error_5;
14591
+ var response, sectScopeValues_1, sectSScope_1, sectors_1, error_7;
13879
14592
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13880
14593
  return __generator(this, function (_k) {
13881
14594
  switch (_k.label) {
@@ -13935,11 +14648,11 @@ var ProgrammeCreationComponent = function (props) {
13935
14648
  setLoading(false);
13936
14649
  return [3 /*break*/, 4];
13937
14650
  case 3:
13938
- error_5 = _k.sent();
13939
- console.log("Error in getting users", error_5);
14651
+ error_7 = _k.sent();
14652
+ console.log("Error in getting users", error_7);
13940
14653
  message.open({
13941
14654
  type: "error",
13942
- content: error_5.message,
14655
+ content: error_7.message,
13943
14656
  duration: 3,
13944
14657
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
13945
14658
  });
@@ -13954,8 +14667,10 @@ var ProgrammeCreationComponent = function (props) {
13954
14667
  getCountryList();
13955
14668
  getRegionList();
13956
14669
  getGovernmentDetails();
14670
+ getMinistryDetails();
13957
14671
  if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) {
13958
14672
  getUserDetails();
14673
+ getImplementOwnerDetails();
13959
14674
  }
13960
14675
  }, []);
13961
14676
  var normFile = function (e) {
@@ -13972,46 +14687,74 @@ var ProgrammeCreationComponent = function (props) {
13972
14687
  setCurrent(current - 1);
13973
14688
  };
13974
14689
  var onFinishStepOne = function (values) { return __awaiter(void 0, void 0, void 0, function () {
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) {
14690
+ var programmeDetails, totalPercentage, ownershipPercentage, duplicateIds, proponentTxIds, proponentPercentages, finalImplementingOwner, supportingOwners, propTaxIds, propTaxIds, environmentalImpactAssessmentData, logoBase64;
14691
+ var _a, _b, _c, _d, _e;
14692
+ return __generator(this, function (_f) {
14693
+ switch (_f.label) {
13979
14694
  case 0:
13980
14695
  setLoading(true);
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),
14696
+ if (article6trade) {
14697
+ ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
14698
+ if (Number(govData.nationalSopValue) !== 0) {
14699
+ ownershipPercentage.push({
14700
+ organisation: govData.taxId,
14701
+ proponentPercentage: Number(govData.nationalSopValue),
14702
+ });
14703
+ }
14704
+ totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
14705
+ proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
14706
+ proponentTxIds =
14707
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14708
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14709
+ ? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
14710
+ : ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14711
+ propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
14712
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14713
+ ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
14714
+ duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14715
+ console.log("proponentTxIds", proponentTxIds);
14716
+ console.log("ownershipPercentage", ownershipPercentage);
14717
+ }
14718
+ if (!article6trade) {
14719
+ ownershipPercentage = (values === null || values === void 0 ? void 0 : values.article6Percentage)
14720
+ ? JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.article6Percentage))
14721
+ : [];
14722
+ totalPercentage = 100;
14723
+ if ((values === null || values === void 0 ? void 0 : values.implementingOwner) && (values === null || values === void 0 ? void 0 : values.implementingOwner.length) > 0) {
14724
+ ownershipPercentage.push({
14725
+ organisation: implementOwner
14726
+ ? implementOwner.taxId
14727
+ : values === null || values === void 0 ? void 0 : values.implementingOwner,
14728
+ proponentPercentage: 100,
14729
+ });
14730
+ }
14731
+ proponentPercentages = ownershipPercentage.map(function (item) {
14732
+ return item.proponentPercentage === "Supporting" ? 0 : 100;
13986
14733
  });
14734
+ proponentTxIds = ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14735
+ propTaxIds = proponentTxIds;
14736
+ duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14737
+ finalImplementingOwner = implementOwner
14738
+ ? implementOwner.taxId
14739
+ : values === null || values === void 0 ? void 0 : values.implementingOwner;
14740
+ supportingOwners = (_a = values === null || values === void 0 ? void 0 : values.article6Percentage) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.organisation; });
14741
+ console.log("implementingOwner", finalImplementingOwner);
14742
+ console.log("supportingOwners", supportingOwners);
13987
14743
  }
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)];
14744
+ environmentalImpactAssessmentData = "";
14745
+ if (!(((_b = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _b === void 0 ? void 0 : _b.length) > 0)) return [3 /*break*/, 2];
14746
+ return [4 /*yield*/, getBase64((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _c === void 0 ? void 0 : _c.originFileObj)];
13998
14747
  case 1:
13999
- logoBase64 = _e.sent();
14000
- _e.label = 2;
14748
+ environmentalImpactAssessmentData = _f.sent();
14749
+ _f.label = 2;
14001
14750
  case 2:
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)];
14751
+ logoBase64 = "";
14752
+ if (!(((_d = values === null || values === void 0 ? void 0 : values.designDocument) === null || _d === void 0 ? void 0 : _d.length) > 0)) return [3 /*break*/, 4];
14753
+ return [4 /*yield*/, getBase64((_e = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _e === void 0 ? void 0 : _e.originFileObj)];
14005
14754
  case 3:
14006
- environmentalImpactAssessmentData = _e.sent();
14007
- _e.label = 4;
14755
+ logoBase64 = _f.sent();
14756
+ _f.label = 4;
14008
14757
  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);
14015
14758
  if (totalPercentage !== 100) {
14016
14759
  if (Number(govData.nationalSopValue) !== 0) {
14017
14760
  ownershipPercentage.pop();
@@ -14048,7 +14791,12 @@ var ProgrammeCreationComponent = function (props) {
14048
14791
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
14049
14792
  ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds,
14050
14793
  proponentPercentage: proponentPercentages,
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 &&
14794
+ article6trade: article6trade,
14795
+ supportingowners: !article6trade && supportingOwners ? supportingOwners : undefined,
14796
+ implementinguser: !article6trade ? finalImplementingOwner : undefined,
14797
+ programmeProperties: __assign(__assign({ buyerCountryEligibility: article6trade
14798
+ ? values === null || values === void 0 ? void 0 : values.buyerCountryEligibility
14799
+ : 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 &&
14052
14800
  (values === null || values === void 0 ? void 0 : values.ndcScope) !== null && {
14053
14801
  ndcScope: (values === null || values === void 0 ? void 0 : values.ndcScope) === "true" ? true : false,
14054
14802
  })), (includedInNDC !== undefined &&
@@ -14071,7 +14819,7 @@ var ProgrammeCreationComponent = function (props) {
14071
14819
  });
14072
14820
  }); };
14073
14821
  var saveNewProgramme = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
14074
- var response, error_6;
14822
+ var response, error_8;
14075
14823
  return __generator(this, function (_a) {
14076
14824
  switch (_a.label) {
14077
14825
  case 0:
@@ -14094,11 +14842,11 @@ var ProgrammeCreationComponent = function (props) {
14094
14842
  onNavigateToProgrammeView();
14095
14843
  return [3 /*break*/, 5];
14096
14844
  case 3:
14097
- error_6 = _a.sent();
14098
- console.log("Error in programme creation - ", error_6);
14845
+ error_8 = _a.sent();
14846
+ console.log("Error in programme creation - ", error_8);
14099
14847
  message.open({
14100
14848
  type: "error",
14101
- content: error_6 === null || error_6 === void 0 ? void 0 : error_6.message,
14849
+ content: error_8 === null || error_8 === void 0 ? void 0 : error_8.message,
14102
14850
  duration: 4,
14103
14851
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14104
14852
  });
@@ -14114,7 +14862,9 @@ var ProgrammeCreationComponent = function (props) {
14114
14862
  var programmeDetails = stepOneData;
14115
14863
  programmeDetails.creditEst = Number(values === null || values === void 0 ? void 0 : values.creditEst);
14116
14864
  programmeDetails.programmeProperties.estimatedProgrammeCostUSD = Number(values === null || values === void 0 ? void 0 : values.estimatedProgrammeCostUSD);
14117
- programmeDetails.programmeProperties.carbonPriceUSDPerTon = Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice);
14865
+ programmeDetails.programmeProperties.carbonPriceUSDPerTon = article6trade
14866
+ ? Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice)
14867
+ : 0;
14118
14868
  setProgrammeDetailsObj(programmeDetails);
14119
14869
  return programmeDetails;
14120
14870
  };
@@ -14127,7 +14877,8 @@ var ProgrammeCreationComponent = function (props) {
14127
14877
  });
14128
14878
  }); };
14129
14879
  var onFormTwoValuesChane = function (changedValues, allValues) {
14130
- if ((allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14880
+ if (article6trade &&
14881
+ (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14131
14882
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== null &&
14132
14883
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) > 0 &&
14133
14884
  (allValues === null || allValues === void 0 ? void 0 : allValues.estimatedProgrammeCostUSD) !== undefined &&
@@ -14159,13 +14910,11 @@ var ProgrammeCreationComponent = function (props) {
14159
14910
  setIncludedInNDC(undefined);
14160
14911
  }
14161
14912
  };
14162
- var onClickIncludedInNDCScope = function (value) {
14163
- if (value === includedInNDC) {
14164
- setIncludedInNDC(undefined);
14165
- }
14166
- else {
14167
- setIncludedInNDC(value);
14168
- }
14913
+ var onArticle6Trading = function (event) {
14914
+ setArticletrade(event.target.value);
14915
+ formOne.resetFields(["ownershipPercentage"]);
14916
+ formOne.resetFields(["article6Percentage"]);
14917
+ formOne.resetFields(["implementingOwner"]);
14169
14918
  };
14170
14919
  var onChangeGeoLocation = function (values) {
14171
14920
  if (values.includes("National")) {
@@ -14174,22 +14923,19 @@ var ProgrammeCreationComponent = function (props) {
14174
14923
  formOne.setFieldValue("geographicalLocation", __spreadArray([], newBuyerValues, true));
14175
14924
  }
14176
14925
  };
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);
14926
+ var onChangeStepOne = function (changedValues, allValues) {
14927
+ var _a, _b, _c;
14928
+ var selectedCompanies;
14929
+ if (article6trade) {
14930
+ 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; });
14931
+ var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
14932
+ ? true
14933
+ : false;
14934
+ setOwnershipPercentageValidation(orgPercentValidation);
14181
14935
  }
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);
14936
+ else {
14937
+ 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; });
14184
14938
  }
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);
14193
14939
  var uniqueOrgs = new Set(selectedCompanies);
14194
14940
  setSelectedOrgs(__spreadArray([], uniqueOrgs, true));
14195
14941
  };
@@ -14369,91 +15115,200 @@ var ProgrammeCreationComponent = function (props) {
14369
15115
  React.createElement("div", { className: "addDoc-info" },
14370
15116
  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" },
14371
15117
  React.createElement(InfoCircle, { color: "#000000", size: 12 })))),
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 &&
15118
+ React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
15119
+ React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
15120
+ React.createElement(Row, { className: "in-ndc-row" },
15121
+ React.createElement(Col, { md: 16, lg: 18, xl: 18 },
15122
+ React.createElement("div", { className: "included-label" },
15123
+ React.createElement("div", null, t("addProgramme:article6trading")))),
15124
+ React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
15125
+ React.createElement(Radio.Group, { size: "middle", value: article6trade, onChange: onArticle6Trading, disabled: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
15126
+ CompanyRole.PROGRAMME_DEVELOPER },
15127
+ React.createElement("div", { className: "yes-no-radio-container" },
15128
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: true }, t("addProgramme:yes"))),
15129
+ React.createElement("div", { className: "yes-no-radio-container" },
15130
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: false }, t("addProgramme:no")))))))),
15131
+ article6trade && (React.createElement(React.Fragment, null,
15132
+ 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: [
15133
+ {
15134
+ required: false,
15135
+ },
15136
+ ] },
15137
+ React.createElement(Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
15138
+ govData &&
15139
+ Number(govData.nationalSopValue) !== 0 && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15140
+ React.createElement(Space, { wrap: true, style: {
15141
+ display: "flex",
15142
+ marginBottom: 8,
15143
+ }, align: "center", size: "large" },
15144
+ React.createElement("div", { className: "ownership-list-item" },
15145
+ React.createElement(Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData
15146
+ ? govData.name
15147
+ : "Government", required: true },
15148
+ React.createElement(Input, { size: "large", disabled: true })),
15149
+ React.createElement(Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
15150
+ ? Number(govData.nationalSopValue)
15151
+ : 0 },
15152
+ React.createElement(InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) {
15153
+ return "".concat(value, "%");
15154
+ }, parser: function (value) {
15155
+ return value.replace("%", "");
15156
+ } })))))),
15157
+ React.createElement(Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
15158
+ var add = _a.add, remove = _a.remove;
15159
+ return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15160
+ fields.map(function (_a) {
15161
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
15162
+ return (React.createElement(Space, { wrap: true, key: key, style: {
15163
+ display: "flex",
15164
+ marginBottom: 8,
15165
+ }, align: "center", size: "large" },
15166
+ React.createElement("div", { className: "ownership-list-item" },
15167
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [
15168
+ name,
15169
+ "organisation",
15170
+ ], wrapperCol: { span: 24 }, className: "organisation", rules: [
15171
+ {
15172
+ required: true,
15173
+ message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
15174
+ validateTrigger: "onBlur",
15175
+ },
15176
+ ], shouldUpdate: true }),
15177
+ React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
14416
15178
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
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
- }),
15179
+ CompanyRole.GOVERNMENT &&
15180
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15181
+ 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)) ||
15182
+ ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15183
+ CompanyRole.GOVERNMENT &&
15184
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15185
+ CompanyRole.MINISTRY &&
15186
+ userOrgTaxId ===
15187
+ (organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
15188
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
15189
+ name,
15190
+ "proponentPercentage",
15191
+ ], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
15192
+ {
15193
+ required: true,
15194
+ message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
15195
+ },
15196
+ {
15197
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
15198
+ return __generator(this, function (_a) {
15199
+ if (ownershipPercentageValidation &&
15200
+ name === 0) {
15201
+ throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
15202
+ }
15203
+ return [2 /*return*/];
15204
+ });
15205
+ }); },
15206
+ },
15207
+ ], shouldUpdate: true }),
15208
+ React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
15209
+ return "".concat(value, "%");
15210
+ }, parser: function (value) {
15211
+ return value.replace("%", "");
15212
+ }, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
15213
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15214
+ CompanyRole.GOVERNMENT &&
15215
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
15216
+ CompanyRole.MINISTRY })),
15217
+ (fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
15218
+ name !== 0 && (React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
15219
+ remove(name);
15220
+ } })))));
15221
+ }),
15222
+ React.createElement(Form.Item, null,
15223
+ React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
15224
+ }))),
15225
+ !article6trade && (React.createElement(React.Fragment, null,
15226
+ implementOwner ? (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15227
+ React.createElement(Space, { wrap: true, style: {
15228
+ display: "flex",
15229
+ marginBottom: 8,
15230
+ }, align: "center", size: "large" },
15231
+ React.createElement("div", { className: "ownership-list-item" },
15232
+ React.createElement(Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", initialValue: implementOwner
15233
+ ? implementOwner.name +
15234
+ " - " +
15235
+ Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(implementOwner.govDep)]
15236
+ : "Implementing Owner", required: true },
15237
+ React.createElement(Input, { size: "large", disabled: true })),
15238
+ React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: implementOwner
15239
+ ? "Implementing"
15240
+ : "Supporting" },
15241
+ React.createElement(InputNumber, { size: "large", disabled: true })))))) : (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15242
+ React.createElement(Space, { wrap: true, style: {
15243
+ display: "flex",
15244
+ marginBottom: 8,
15245
+ }, align: "center", size: "large" },
15246
+ React.createElement("div", { className: "ownership-list-item" },
15247
+ React.createElement(Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", rules: [
15248
+ {
15249
+ required: true,
15250
+ message: "".concat(t("addProgramme:governmentDepartment"), " ").concat(t("isRequired")),
15251
+ },
15252
+ ] },
15253
+ React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
15254
+ return organisation.govDep && (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId }, organisation.name +
15255
+ " - " +
15256
+ Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
15257
+ }))),
15258
+ React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },
15259
+ React.createElement(InputNumber, { size: "large", disabled: true })))))),
15260
+ React.createElement(Form.List, { name: "article6Percentage" }, function (fields, _a) {
15261
+ var add = _a.add, remove = _a.remove;
15262
+ return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
15263
+ fields.map(function (_a) {
15264
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
15265
+ return (React.createElement(Space, { wrap: true, key: key, style: {
15266
+ display: "flex",
15267
+ marginBottom: 8,
15268
+ }, align: "center", size: "large" },
15269
+ React.createElement("div", { className: "ownership-list-item" },
15270
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:governmentDepartment"), name: [
15271
+ name,
15272
+ "organisation",
15273
+ ], rules: [
15274
+ {
15275
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
15276
+ return __generator(this, function (_a) {
15277
+ if (String(value).trim() === "" ||
15278
+ String(value).trim() ===
15279
+ undefined ||
15280
+ value === null ||
15281
+ value ===
15282
+ undefined) {
15283
+ throw new Error("".concat(t("addProgramme:governmentDepartment"), " shouldn't be empty"));
15284
+ }
15285
+ return [2 /*return*/];
15286
+ });
15287
+ }); },
15288
+ },
15289
+ ], wrapperCol: { span: 24 }, className: "organisation", shouldUpdate: true }),
15290
+ React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
15291
+ var _a;
15292
+ 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())) ||
15293
+ (implementOwner === null || implementOwner === void 0 ? void 0 : implementOwner.taxId) ===
15294
+ organisation.taxId ||
15295
+ ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.implementingOwner.trim()) ===
15296
+ organisation.taxId }, organisation.name +
15297
+ " - " +
15298
+ Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
15299
+ }))),
15300
+ React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:ownership"), className: "ownership-percent", name: [
15301
+ name,
15302
+ "proponentPercentage",
15303
+ ], initialValue: "Supporting", labelCol: { span: 24 }, wrapperCol: { span: 24 }, shouldUpdate: true }),
15304
+ React.createElement(InputNumber, { size: "large", disabled: true })),
15305
+ React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
15306
+ remove(name);
15307
+ } }))));
15308
+ }),
15309
+ React.createElement(Form.Item, null,
15310
+ React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
15311
+ }))),
14457
15312
  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: [
14458
15313
  {
14459
15314
  required: true,
@@ -14581,25 +15436,6 @@ var ProgrammeCreationComponent = function (props) {
14581
15436
  },
14582
15437
  ] },
14583
15438
  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")))))))),
14603
15439
  React.createElement("div", { className: "steps-actions" },
14604
15440
  React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading, onClick: checkOrgPercentageValidation }, t("addProgramme:next"))))))),
14605
15441
  },
@@ -14639,11 +15475,13 @@ var ProgrammeCreationComponent = function (props) {
14639
15475
  },
14640
15476
  ] },
14641
15477
  React.createElement(InputNumber, { 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 } })))),
15478
+ article6trade && (React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
15479
+ React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } }))))),
14644
15480
  React.createElement(Col, { xl: 12, md: 24 },
14645
15481
  React.createElement("div", { className: "details-part-two" },
14646
- React.createElement(Form.Item, { label: t("addProgramme:creditEst"), name: "creditEst", rules: [
15482
+ React.createElement(Form.Item, { label: article6trade
15483
+ ? t("addProgramme:creditEst")
15484
+ : t("addProgramme:creditReduction"), name: "creditEst", rules: [
14647
15485
  {
14648
15486
  required: true,
14649
15487
  message: "",
@@ -14655,7 +15493,9 @@ var ProgrammeCreationComponent = function (props) {
14655
15493
  String(value).trim() === undefined ||
14656
15494
  value === null ||
14657
15495
  value === undefined) {
14658
- throw new Error("".concat(t("addProgramme:creditEst"), " ").concat(t("isRequired")));
15496
+ throw new Error("".concat(article6trade
15497
+ ? t("addProgramme:creditEst")
15498
+ : t("addProgramme:creditReduction"), " ").concat(t("isRequired")));
14659
15499
  }
14660
15500
  else if (!isNaN(value) &&
14661
15501
  Number(value) > 0) {
@@ -35473,5 +36313,5 @@ var GHGDashboardComponent = function (props) {
35473
36313
  React.createElement(Row, { gutter: [40, 40], className: "statics-card-row" }, row.map(function (item, j) { return getWidgetJSX(item); })))); }))));
35474
36314
  };
35475
36315
 
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 };
36316
+ 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 };
35477
36317
  //# sourceMappingURL=index.js.map