@undp/carbon-library 1.0.274-CARBON-404.7 → 1.0.274-CARBON-419.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -5784,7 +5784,6 @@ exports.GovDepartment = void 0;
5784
5784
  GovDepartment["Electricity Regulatory Commission"] = "72";
5785
5785
  GovDepartment["Content Monitoring and Development Board"] = "73";
5786
5786
  GovDepartment["National Petroleum Corporation"] = "74";
5787
- GovDepartment["Nuclear Regulatory Authority Science & Technology"] = "75";
5788
5787
  GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
5789
5788
  GovDepartment["Power Holding Company (defunct)"] = "77";
5790
5789
  GovDepartment["Rural Electrification Agency"] = "78";
@@ -5816,7 +5815,6 @@ exports.GovDepartment = void 0;
5816
5815
  GovDepartment["Broadcasting Organisation"] = "104";
5817
5816
  GovDepartment["News Agency"] = "105";
5818
5817
  GovDepartment["Press Council"] = "106";
5819
- GovDepartment["Television Authority Media"] = "107";
5820
5818
  GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
5821
5819
  GovDepartment["Biotechnology Development Agency"] = "109";
5822
5820
  GovDepartment["Centre for Remote Sensing"] = "110";
@@ -5934,7 +5932,24 @@ var ProgrammeCertify = /** @class */ (function () {
5934
5932
  return ProgrammeCertify;
5935
5933
  }());
5936
5934
 
5937
- var sectoralScopes$1 = {
5935
+ var ministries = [
5936
+ "Agriculture",
5937
+ "Aviation",
5938
+ "Communications",
5939
+ "Economy",
5940
+ "Education",
5941
+ "Energy",
5942
+ "Environment",
5943
+ "Health",
5944
+ "Intelligence",
5945
+ "Judiciary",
5946
+ "Maritime",
5947
+ "Media",
5948
+ "Science And Technology",
5949
+ "Water Resources",
5950
+ "Other",
5951
+ ];
5952
+ var ministryOrgs = {
5938
5953
  Agriculture: [
5939
5954
  "Cocoa Research Institute",
5940
5955
  "National Agricultural Extension, Research and Liaison Services",
@@ -5957,9 +5972,9 @@ var sectoralScopes$1 = {
5957
5972
  ],
5958
5973
  Communications: [
5959
5974
  "National Information Technology Development Agency",
5960
- "Communications Satellite Limited",
5975
+ "Satellite Limited",
5961
5976
  "Broadcasting Commission",
5962
- "Communications Commission",
5977
+ "Commission",
5963
5978
  "Postal Service",
5964
5979
  "National Frequency Management Council",
5965
5980
  "Television Authority",
@@ -6065,7 +6080,7 @@ var sectoralScopes$1 = {
6065
6080
  "Broadcasting Organisation",
6066
6081
  "News Agency",
6067
6082
  "Press Council",
6068
- "Television Authority Media",
6083
+ "Television Authority",
6069
6084
  ],
6070
6085
  ScienceAndTechnology: [
6071
6086
  "Agency For Science and Engineering Infrastructure",
@@ -6074,7 +6089,7 @@ var sectoralScopes$1 = {
6074
6089
  "Science and Technology Complex",
6075
6090
  "Office for Technology Acquisition and Promotion",
6076
6091
  "Space Research and Development Agency",
6077
- "Nuclear Regulatory Authority Science & Technology",
6092
+ "Nuclear Regulatory Authority",
6078
6093
  "Raw Materials Research and Development Council",
6079
6094
  "Communications Satellite Ltd",
6080
6095
  "Centre for Technology Management",
@@ -6145,7 +6160,8 @@ var AddNewCompanyComponent = function (props) {
6145
6160
  var _m = React.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];
6146
6161
  var _o = React.useState(""), selectedMinistry = _o[0], setSelectedMinistry = _o[1];
6147
6162
  var _p = React.useState([]), existgovDep = _p[0], setexistGovdep = _p[1];
6148
- var selectedGovDepatments = sectoralScopes$1[selectedMinistry];
6163
+ var _q = React.useState(ministries), ministryDropdown = _q[0], setMinistryDropdown = _q[1];
6164
+ var selectedGovDepatments = ministryOrgs[selectedMinistry];
6149
6165
  if (existgovDep && existgovDep.length > 0) {
6150
6166
  selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
6151
6167
  }
@@ -6161,11 +6177,6 @@ var AddNewCompanyComponent = function (props) {
6161
6177
  page: 1,
6162
6178
  size: 200,
6163
6179
  filterAnd: [
6164
- {
6165
- key: "companyRole",
6166
- operation: "=",
6167
- value: "Ministry",
6168
- },
6169
6180
  {
6170
6181
  key: "ministry",
6171
6182
  operation: "=",
@@ -6190,6 +6201,58 @@ var AddNewCompanyComponent = function (props) {
6190
6201
  }
6191
6202
  });
6192
6203
  }); };
6204
+ var getMinistryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6205
+ var leftmins, excludingmin_1, _i, ministries_1, min, response, minkey, error_1;
6206
+ return __generator(this, function (_a) {
6207
+ switch (_a.label) {
6208
+ case 0:
6209
+ setLoadingList(true);
6210
+ _a.label = 1;
6211
+ case 1:
6212
+ _a.trys.push([1, 6, 7, 8]);
6213
+ leftmins = [];
6214
+ excludingmin_1 = [];
6215
+ _i = 0, ministries_1 = ministries;
6216
+ _a.label = 2;
6217
+ case 2:
6218
+ if (!(_i < ministries_1.length)) return [3 /*break*/, 5];
6219
+ min = ministries_1[_i];
6220
+ return [4 /*yield*/, post("national/organisation/query", {
6221
+ page: 1,
6222
+ size: 100,
6223
+ filterAnd: [
6224
+ {
6225
+ key: "ministry",
6226
+ operation: "=",
6227
+ value: min,
6228
+ },
6229
+ ],
6230
+ })];
6231
+ case 3:
6232
+ response = _a.sent();
6233
+ minkey = Object.keys(exports.Ministry)[Object.values(exports.Ministry).indexOf(min)];
6234
+ if (response.data.length === ministryOrgs[minkey].length) {
6235
+ excludingmin_1.push(min);
6236
+ }
6237
+ _a.label = 4;
6238
+ case 4:
6239
+ _i++;
6240
+ return [3 /*break*/, 2];
6241
+ case 5:
6242
+ leftmins = ministries.filter(function (x) { return !excludingmin_1.includes(x); });
6243
+ setMinistryDropdown(leftmins);
6244
+ return [3 /*break*/, 8];
6245
+ case 6:
6246
+ error_1 = _a.sent();
6247
+ console.log("Error in getting min list", error_1);
6248
+ return [3 /*break*/, 8];
6249
+ case 7:
6250
+ setLoadingList(false);
6251
+ return [7 /*endfinally*/];
6252
+ case 8: return [2 /*return*/];
6253
+ }
6254
+ });
6255
+ }); };
6193
6256
  var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6194
6257
  var response, alpha2Names;
6195
6258
  return __generator(this, function (_a) {
@@ -6208,7 +6271,7 @@ var AddNewCompanyComponent = function (props) {
6208
6271
  });
6209
6272
  }); };
6210
6273
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
6211
- var response, regionNames, error_1;
6274
+ var response, regionNames, error_2;
6212
6275
  return __generator(this, function (_a) {
6213
6276
  switch (_a.label) {
6214
6277
  case 0:
@@ -6235,8 +6298,8 @@ var AddNewCompanyComponent = function (props) {
6235
6298
  }
6236
6299
  return [3 /*break*/, 5];
6237
6300
  case 3:
6238
- error_1 = _a.sent();
6239
- console.log("Error in getting regions list", error_1);
6301
+ error_2 = _a.sent();
6302
+ console.log("Error in getting regions list", error_2);
6240
6303
  return [3 /*break*/, 5];
6241
6304
  case 4:
6242
6305
  setLoadingList(false);
@@ -6250,6 +6313,7 @@ var AddNewCompanyComponent = function (props) {
6250
6313
  setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
6251
6314
  getCountryList();
6252
6315
  getRegionList();
6316
+ getMinistryList();
6253
6317
  if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
6254
6318
  setFileList([
6255
6319
  {
@@ -6286,7 +6350,7 @@ var AddNewCompanyComponent = function (props) {
6286
6350
  }
6287
6351
  };
6288
6352
  var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
6289
- var requestData, logoBase64, logoUrls, response, response, error_2;
6353
+ var requestData, logoBase64, logoUrls, response, response, error_3;
6290
6354
  var _a, _b;
6291
6355
  return __generator(this, function (_c) {
6292
6356
  switch (_c.label) {
@@ -6354,10 +6418,10 @@ var AddNewCompanyComponent = function (props) {
6354
6418
  _c.label = 6;
6355
6419
  case 6: return [3 /*break*/, 9];
6356
6420
  case 7:
6357
- error_2 = _c.sent();
6421
+ error_3 = _c.sent();
6358
6422
  antd.message.open({
6359
6423
  type: "error",
6360
- content: "".concat(error_2.message),
6424
+ content: "".concat(error_3.message),
6361
6425
  duration: 3,
6362
6426
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6363
6427
  });
@@ -6370,17 +6434,17 @@ var AddNewCompanyComponent = function (props) {
6370
6434
  });
6371
6435
  }); };
6372
6436
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
6373
- var formOneValues, values, key, logoBase64, logoUrls, response, error_3;
6374
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6375
- return __generator(this, function (_l) {
6376
- switch (_l.label) {
6437
+ var formOneValues, values, key, logoBase64, logoUrls, response, error_4;
6438
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6439
+ return __generator(this, function (_o) {
6440
+ switch (_o.label) {
6377
6441
  case 0:
6378
6442
  setLoading(true);
6379
6443
  formOneValues = formOne.getFieldsValue();
6380
6444
  formOneValues.phoneNo = PhoneInput.formatPhoneNumberIntl(formOneValues.phoneNo);
6381
- _l.label = 1;
6445
+ _o.label = 1;
6382
6446
  case 1:
6383
- _l.trys.push([1, 5, , 6]);
6447
+ _o.trys.push([1, 5, , 6]);
6384
6448
  values = {};
6385
6449
  if (regionField) {
6386
6450
  values = {
@@ -6408,10 +6472,8 @@ var AddNewCompanyComponent = function (props) {
6408
6472
  values.taxId = formOneValues.taxId;
6409
6473
  values.paymentId = formOneValues.paymentId;
6410
6474
  }
6411
- if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === exports.CompanyRole.MINISTRY) {
6412
- values.sectoralScope = formOneValues.sectoralScope;
6413
- values.nameOfMinister = formOneValues.nameOfMinister;
6414
- values.ministry = formOneValues.ministry;
6475
+ if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === exports.CompanyRole.MINISTRY ||
6476
+ ((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
6415
6477
  if (formOneValues.govDep in exports.GovDepartment) {
6416
6478
  key = formOneValues.govDep;
6417
6479
  values.govDep = exports.GovDepartment[key];
@@ -6419,12 +6481,17 @@ var AddNewCompanyComponent = function (props) {
6419
6481
  else {
6420
6482
  values.govDep = formOneValues.govDep;
6421
6483
  }
6484
+ values.ministry = formOneValues.ministry;
6485
+ }
6486
+ if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === exports.CompanyRole.MINISTRY) {
6487
+ values.sectoralScope = formOneValues.sectoralScope;
6488
+ values.nameOfMinister = formOneValues.nameOfMinister;
6422
6489
  values.name = "Ministry of " + formOneValues.ministry;
6423
6490
  }
6424
- if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
6491
+ if (((_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.companyRole) === exports.CompanyRole.GOVERNMENT) {
6425
6492
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
6426
6493
  }
6427
- if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === exports.CompanyRole.GOVERNMENT) {
6494
+ if (((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.companyRole) === exports.CompanyRole.GOVERNMENT) {
6428
6495
  values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
6429
6496
  }
6430
6497
  if (formOneValues.website) {
@@ -6435,15 +6502,15 @@ var AddNewCompanyComponent = function (props) {
6435
6502
  }
6436
6503
  if (!formOneValues.logo) return [3 /*break*/, 3];
6437
6504
  if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
6438
- return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
6505
+ return [4 /*yield*/, getBase64((_m = formOneValues.logo[0]) === null || _m === void 0 ? void 0 : _m.originFileObj)];
6439
6506
  case 2:
6440
- logoBase64 = _l.sent();
6507
+ logoBase64 = _o.sent();
6441
6508
  logoUrls = logoBase64.split(",");
6442
6509
  values.logo = logoUrls[1];
6443
- _l.label = 3;
6510
+ _o.label = 3;
6444
6511
  case 3: return [4 /*yield*/, put("national/organisation/update", values)];
6445
6512
  case 4:
6446
- response = _l.sent();
6513
+ response = _o.sent();
6447
6514
  if (response.status === 200 || response.status === 201) {
6448
6515
  setUserInfo({
6449
6516
  companyLogo: response.data.logo,
@@ -6459,10 +6526,10 @@ var AddNewCompanyComponent = function (props) {
6459
6526
  setLoading(false);
6460
6527
  return [3 /*break*/, 6];
6461
6528
  case 5:
6462
- error_3 = _l.sent();
6529
+ error_4 = _o.sent();
6463
6530
  antd.message.open({
6464
6531
  type: "error",
6465
- content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
6532
+ content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_4.message),
6466
6533
  duration: 3,
6467
6534
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
6468
6535
  });
@@ -6562,7 +6629,7 @@ var AddNewCompanyComponent = function (props) {
6562
6629
  ] },
6563
6630
  React.createElement(antd.Input, { size: "large" })))
6564
6631
  : null,
6565
- React.createElement(antd.Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6632
+ companyRole !== exports.CompanyRole.GOVERNMENT && (React.createElement(antd.Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6566
6633
  {
6567
6634
  required: true,
6568
6635
  message: "",
@@ -6592,16 +6659,48 @@ var AddNewCompanyComponent = function (props) {
6592
6659
  }); },
6593
6660
  },
6594
6661
  ] },
6595
- React.createElement(antd.Input, { size: "large" })),
6596
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6662
+ React.createElement(antd.Input, { size: "large" }))),
6663
+ (companyRole === exports.CompanyRole.MINISTRY ||
6664
+ companyRole === exports.CompanyRole.GOVERNMENT) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6597
6665
  React.createElement(antd.Form.Item, { label: "Ministry Name", name: "ministry", initialValue: (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.ministry, rules: [
6598
6666
  {
6599
6667
  required: true,
6600
6668
  message: "Ministry Name is required",
6601
6669
  },
6602
6670
  ] },
6603
- React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, Object.values(exports.Ministry).map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, ministry)); }))),
6604
- React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.nameOfMinister, rules: [
6671
+ React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, ministryDropdown.map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, ministry)); }))),
6672
+ companyRole === exports.CompanyRole.GOVERNMENT && (React.createElement(antd.Form.Item, { label: "Email", name: "email", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.email, rules: [
6673
+ {
6674
+ required: true,
6675
+ message: "",
6676
+ },
6677
+ {
6678
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6679
+ var val, reg, matches;
6680
+ return __generator(this, function (_a) {
6681
+ if (String(value).trim() === "" ||
6682
+ String(value).trim() === undefined ||
6683
+ value === null ||
6684
+ value === undefined) {
6685
+ throw new Error("Email ".concat(t("isRequired")));
6686
+ }
6687
+ else {
6688
+ val = value.trim();
6689
+ 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,}))$/;
6690
+ matches = val.match(reg)
6691
+ ? val.match(reg)
6692
+ : [];
6693
+ if (matches.length === 0) {
6694
+ throw new Error("Email ".concat(t("isInvalid")));
6695
+ }
6696
+ }
6697
+ return [2 /*return*/];
6698
+ });
6699
+ }); },
6700
+ },
6701
+ ] },
6702
+ React.createElement(antd.Input, { size: "large" }))),
6703
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.nameOfMinister, rules: [
6605
6704
  {
6606
6705
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6607
6706
  return __generator(this, function (_a) {
@@ -6616,8 +6715,8 @@ var AddNewCompanyComponent = function (props) {
6616
6715
  }); },
6617
6716
  },
6618
6717
  ] },
6619
- React.createElement(antd.Input, { size: "large" })))),
6620
- React.createElement(antd.Form.Item, { className: "website", label: "Website", initialValue: (_h = (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.website) === null || _h === void 0 ? void 0 : _h.split("://")[1], name: "website", rules: [
6718
+ React.createElement(antd.Input, { size: "large" }))))),
6719
+ React.createElement(antd.Form.Item, { className: "website", label: "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: [
6621
6720
  {
6622
6721
  required: false,
6623
6722
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6635,7 +6734,7 @@ var AddNewCompanyComponent = function (props) {
6635
6734
  },
6636
6735
  ], 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(); } },
6637
6736
  React.createElement(antd.Input, { addonBefore: "https://", size: "large" })),
6638
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.address, rules: [
6737
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.address, rules: [
6639
6738
  { required: true, message: "" },
6640
6739
  {
6641
6740
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6700,7 +6799,7 @@ var AddNewCompanyComponent = function (props) {
6700
6799
  display: "flex",
6701
6800
  marginBottom: 8,
6702
6801
  }, align: "center", size: "large" },
6703
- React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.nationalSopValue, rules: [
6802
+ React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.nationalSopValue, rules: [
6704
6803
  { required: true, message: "" },
6705
6804
  {
6706
6805
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6754,11 +6853,13 @@ var AddNewCompanyComponent = function (props) {
6754
6853
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6755
6854
  exports.CompanyRole.MINISTRY &&
6756
6855
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6757
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6758
- React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6759
- React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6760
- "Ministry")))))))),
6761
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Government Department", name: "govDep", initialValue: Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.govDep)], rules: [
6856
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" }, ministryDropdown.length > 0 ? (React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6857
+ React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6858
+ "Ministry")) : (React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry", disabled: true },
6859
+ React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6860
+ "Ministry"))))))))),
6861
+ (companyRole === exports.CompanyRole.MINISTRY ||
6862
+ companyRole === exports.CompanyRole.GOVERNMENT) && (React.createElement(antd.Form.Item, { label: "Government Department", name: "govDep", rules: [
6762
6863
  {
6763
6864
  required: true,
6764
6865
  message: "Government Department is required",
@@ -6772,7 +6873,7 @@ var AddNewCompanyComponent = function (props) {
6772
6873
  val.length > 0 &&
6773
6874
  selectedGovDepatments &&
6774
6875
  !selectedGovDepatments.includes(val)) {
6775
- throw new Error("Department not exist in Ministry");
6876
+ throw new Error("Department not exist in Selected Ministry");
6776
6877
  }
6777
6878
  return [2 /*return*/];
6778
6879
  });
@@ -7021,7 +7122,7 @@ var CompanyProfileComponent = function (props) {
7021
7122
  var _j = React.useState(false), openRejectModal = _j[0], setOpenRejectModal = _j[1];
7022
7123
  var _k = React.useState(""), errorMsg = _k[0], setErrorMsg = _k[1];
7023
7124
  var _l = React.useState(""); _l[0]; var setUserRole = _l[1];
7024
- var _m = React.useState(""); _m[0]; var setCompanyRole = _m[1];
7125
+ var _m = React.useState(""), companyRole = _m[0], setCompanyRole = _m[1];
7025
7126
  var ability = useAbilityContext();
7026
7127
  var getCompanyDetails = function (companyId) { return __awaiter(void 0, void 0, void 0, function () {
7027
7128
  var response;
@@ -7358,27 +7459,30 @@ var CompanyProfileComponent = function (props) {
7358
7459
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:companyRole")),
7359
7460
  React.createElement(antd.Col, { span: 12, className: "field-value" },
7360
7461
  React.createElement(CompanyRoleIcon, { role: companyDetails.companyRole }))),
7361
- (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === exports.CompanyRole.MINISTRY && (React.createElement(React.Fragment, null,
7362
- React.createElement(antd.Row, { className: "field" },
7462
+ (companyRole === exports.CompanyRole.MINISTRY ||
7463
+ companyRole === exports.CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
7464
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Row, { className: "field" },
7363
7465
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministerName")),
7364
7466
  React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
7365
7467
  ? companyDetails.nameOfMinister
7366
- : "-")),
7367
- React.createElement(antd.Row, { className: "field" },
7368
- React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
7369
- React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.ministry
7370
- ? companyDetails.ministry
7371
- : "-")),
7372
- React.createElement(antd.Row, { className: "field" },
7373
- React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
7374
- React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.govDep
7375
- ? Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(companyDetails.govDep)]
7376
- : "-")),
7377
- React.createElement(antd.Row, { className: "field" },
7468
+ : "-"))),
7469
+ (companyRole === exports.CompanyRole.MINISTRY ||
7470
+ companyRole === exports.CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
7471
+ React.createElement(antd.Row, { className: "field" },
7472
+ React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
7473
+ React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.ministry
7474
+ ? companyDetails.ministry
7475
+ : "-")),
7476
+ React.createElement(antd.Row, { className: "field" },
7477
+ React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
7478
+ React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.govDep
7479
+ ? Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(companyDetails.govDep)]
7480
+ : "-")))),
7481
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Row, { className: "field" },
7378
7482
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
7379
7483
  React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
7380
7484
  ? getEnumKeysFromValues(companyDetails.sectoralScope).join(", ")
7381
- : "-")))),
7485
+ : "-"))))),
7382
7486
  React.createElement(antd.Row, { className: "field" },
7383
7487
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:email")),
7384
7488
  React.createElement(antd.Col, { span: 12, className: "field-value nextline-overflow" }, companyDetails.email ? companyDetails.email : "-")),
@@ -7885,7 +7989,7 @@ var ProgrammeManagementComponent = function (props) {
7885
7989
  } })))))));
7886
7990
  };
7887
7991
 
7888
- var css_248z$o = ".programme-details-form-container,\n.programme-sought-form-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form,\n .programme-details-form-container .programme-sought-form,\n .programme-sought-form-container .programme-details-form,\n .programme-sought-form-container .programme-sought-form {\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover {\n border-color: #ff4d4f !important; }\n .programme-details-form-container .programme-details-form .ant-picker-large,\n .programme-details-form-container .programme-sought-form .ant-picker-large,\n .programme-sought-form-container .programme-details-form .ant-picker-large,\n .programme-sought-form-container .programme-sought-form .ant-picker-large {\n height: 40px !important;\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-details-form-container .programme-sought-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-sought-form .ant-upload-list-item-name {\n color: #16b1ff; }\n .programme-details-form-container .programme-details-form .steps-actions,\n .programme-details-form-container .programme-sought-form .steps-actions,\n .programme-sought-form-container .programme-details-form .steps-actions,\n .programme-sought-form-container .programme-sought-form .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .action-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .back-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-details-form-container .programme-sought-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-sought-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .options-programme,\n .programme-details-form-container .programme-sought-form .options-programme,\n .programme-sought-form-container .programme-details-form .options-programme,\n .programme-sought-form-container .programme-sought-form .options-programme {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-group {\n width: 50%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container {\n width: 30%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row,\n .programme-details-form-container .programme-sought-form .row,\n .programme-sought-form-container .programme-details-form .row,\n .programme-sought-form-container .programme-sought-form .row {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .website .ant-input,\n .programme-details-form-container .programme-sought-form .row .website .ant-input,\n .programme-sought-form-container .programme-details-form .row .website .ant-input,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .programme-details-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-details-form-container .programme-sought-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .design-upload-section,\n .programme-details-form-container .programme-sought-form .row .design-upload-section,\n .programme-sought-form-container .programme-details-form .row .design-upload-section,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload {\n width: 20%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .programme-details-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-details-form-container .programme-sought-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .upload-doc {\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document {\n display: flex; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info {\n position: absolute;\n margin-left: 130px;\n margin-top: 1.1px; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item {\n display: flex;\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation {\n width: 60%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent {\n width: 35%;\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number {\n width: 80%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error {\n width: 250px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n border-radius: 4px;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row-org,\n .programme-details-form-container .programme-sought-form .row-org,\n .programme-sought-form-container .programme-details-form .row-org,\n .programme-sought-form-container .programme-sought-form .row-org {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row-org .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row,\n .programme-details-form-container .programme-sought-form .selection-details-row,\n .programme-sought-form-container .programme-details-form .selection-details-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row {\n width: 100%;\n margin-bottom: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-col {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row {\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container {\n width: 45%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-programme-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-programme-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-programme-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-programme-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-programme-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-programme-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-programme-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-programme-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-programme-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-programme-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n";
7992
+ var css_248z$o = ".programme-details-form-container,\n.programme-sought-form-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form,\n .programme-details-form-container .programme-sought-form,\n .programme-sought-form-container .programme-details-form,\n .programme-sought-form-container .programme-sought-form {\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-details-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-details-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input,\n .programme-sought-form-container .programme-sought-form .ant-input-status-error:not(.ant-input-disabled):not(\n .ant-input-borderless\n).ant-input:hover {\n border-color: #ff4d4f !important; }\n .programme-details-form-container .programme-details-form .ant-picker-large,\n .programme-details-form-container .programme-sought-form .ant-picker-large,\n .programme-sought-form-container .programme-details-form .ant-picker-large,\n .programme-sought-form-container .programme-sought-form .ant-picker-large {\n height: 40px !important;\n width: 100%; }\n .programme-details-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-details-form-container .programme-sought-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-details-form .ant-upload-list-item-name,\n .programme-sought-form-container .programme-sought-form .ant-upload-list-item-name {\n color: #16b1ff; }\n .programme-details-form-container .programme-details-form .steps-actions,\n .programme-details-form-container .programme-sought-form .steps-actions,\n .programme-sought-form-container .programme-details-form .steps-actions,\n .programme-sought-form-container .programme-sought-form .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .action-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .action-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .back-btn,\n .programme-details-form-container .programme-sought-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-details-form .steps-actions .back-btn,\n .programme-sought-form-container .programme-sought-form .steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-details-form-container .programme-sought-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-details-form .steps-actions .mg-left-1,\n .programme-sought-form-container .programme-sought-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .options-programme,\n .programme-details-form-container .programme-sought-form .options-programme,\n .programme-sought-form-container .programme-details-form .options-programme,\n .programme-sought-form-container .programme-sought-form .options-programme {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-group,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-group {\n width: 50%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container {\n width: 30%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .options-programme .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .options-programme .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row,\n .programme-details-form-container .programme-sought-form .row,\n .programme-sought-form-container .programme-details-form .row,\n .programme-sought-form-container .programme-sought-form .row {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .website .ant-input,\n .programme-details-form-container .programme-sought-form .row .website .ant-input,\n .programme-sought-form-container .programme-details-form .row .website .ant-input,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .programme-details-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-details-form-container .programme-sought-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-details-form .row .website .ant-input-group-addon,\n .programme-sought-form-container .programme-sought-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .design-upload-section,\n .programme-details-form-container .programme-sought-form .row .design-upload-section,\n .programme-sought-form-container .programme-details-form .row .design-upload-section,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .icon-color,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload {\n width: 20%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .programme-details-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .design-upload-section .ant-upload-list .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .programme-details-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-details-form-container .programme-sought-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-details-form .row .details-part-one .upload-doc,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .upload-doc {\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .ant-upload-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document {\n display: flex; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .ant-form-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .ant-form-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-details-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-details-form .row .details-part-one .add-Document .addDoc-info,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .add-Document .addDoc-info {\n position: absolute;\n margin-left: 130px;\n margin-top: 1.1px; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-list-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-list-item {\n display: flex;\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ant-space-item .organisation,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ant-space-item .organisation {\n width: 60%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent {\n width: 35%;\n margin-left: 1rem; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-input-number,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-input-number {\n width: 80%; }\n .programme-details-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-details-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-details-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error,\n .programme-sought-form-container .programme-sought-form .row .details-part-one .space-container .ownership-percent .ant-form-item-explain-error {\n width: 250px !important; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n border-radius: 4px;\n box-shadow: none; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .anticon,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .programme-details-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-details-form-container .programme-sought-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-details-form .row .details-part-two .role-group .role-icons,\n .programme-sought-form-container .programme-sought-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n .programme-details-form-container .programme-details-form .row-org,\n .programme-details-form-container .programme-sought-form .row-org,\n .programme-sought-form-container .programme-details-form .row-org,\n .programme-sought-form-container .programme-sought-form .row-org {\n width: 100%; }\n .programme-details-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-details-form-container .programme-sought-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-details-form .row-org .org-col .details-part-three,\n .programme-sought-form-container .programme-sought-form .row-org .org-col .details-part-three {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row,\n .programme-details-form-container .programme-sought-form .selection-details-row,\n .programme-sought-form-container .programme-details-form .selection-details-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row {\n width: 100%;\n margin-bottom: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-col,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-col {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row {\n width: 100%;\n align-items: center; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-label .info-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val {\n width: 100%; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container {\n width: max-content;\n text-align: center;\n margin-right: 1rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n),\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper::before,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .ant-radio-button-wrapper,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .anticon,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .programme-details-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-details-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-details-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-ndc-row .included-val .yes-no-radio .ant-radio-button-checked,\n .programme-sought-form-container .programme-sought-form .selection-details-row .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #16b1ff;\n color: #ffffff; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-programme-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-programme-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-programme-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-programme-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-programme-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-programme-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-programme-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-programme-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-programme-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-programme-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n";
7889
7993
  styleInject(css_248z$o);
7890
7994
 
7891
7995
  function commonjsRequire(path) {
@@ -13644,7 +13748,7 @@ var ProgrammeCreationComponent = function (props) {
13644
13748
  var userInfoState = useUserContext().userInfoState;
13645
13749
  var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
13646
13750
  var _f = React.useState(false), loadingList = _f[0], setLoadingList = _f[1];
13647
- var _g = React.useState(), ndcScopeChanged = _g[0], setNdcScopeChanged = _g[1];
13751
+ var _g = React.useState(); _g[0]; var setNdcScopeChanged = _g[1];
13648
13752
  var _h = React.useState(), ndcScopeValue = _h[0], setNdcScopeValue = _h[1];
13649
13753
  var _j = React.useState(), stepOneData = _j[0], setStepOneData = _j[1];
13650
13754
  var _k = React.useState(0), current = _k[0], setCurrent = _k[1];
@@ -13664,6 +13768,10 @@ var ProgrammeCreationComponent = function (props) {
13664
13768
  var _z = React.useState([]), availableSecoralScope = _z[0], setAvailableSectoralScope = _z[1];
13665
13769
  var _0 = React.useState([]), selectableSectoralScope = _0[0], setSelectableSectoralScope = _0[1];
13666
13770
  var _1 = React.useState([]), availableSectar = _1[0], setAvailableSectar = _1[1];
13771
+ var _2 = React.useState(true), article6trade = _2[0], setArticletrade = _2[1];
13772
+ var _3 = React.useState([]), ministryList = _3[0], setMinistryList = _3[1];
13773
+ var _4 = React.useState(); _4[0]; _4[1];
13774
+ var _5 = React.useState(), implementOwner = _5[0], setimplementOwner = _5[1];
13667
13775
  // const initialOrganisationOwnershipValues: any[] = [
13668
13776
  // {
13669
13777
  // organisation:
@@ -13788,7 +13896,7 @@ var ProgrammeCreationComponent = function (props) {
13788
13896
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyName),
13789
13897
  proponentPercentage: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.GOVERNMENT &&
13790
13898
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY &&
13791
- (100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue)),
13899
+ 100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue),
13792
13900
  },
13793
13901
  ]);
13794
13902
  setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
@@ -13807,8 +13915,96 @@ var ProgrammeCreationComponent = function (props) {
13807
13915
  }
13808
13916
  });
13809
13917
  }); };
13918
+ var getMinistryDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13919
+ var response, error_4;
13920
+ return __generator(this, function (_a) {
13921
+ switch (_a.label) {
13922
+ case 0:
13923
+ setLoading(true);
13924
+ _a.label = 1;
13925
+ case 1:
13926
+ _a.trys.push([1, 3, 4, 5]);
13927
+ console.log("getting Ministry profile");
13928
+ return [4 /*yield*/, post("national/organisation/query", {
13929
+ page: 1,
13930
+ size: 100,
13931
+ filterOr: [
13932
+ {
13933
+ key: "companyRole",
13934
+ operation: "=",
13935
+ value: exports.CompanyRole.MINISTRY,
13936
+ },
13937
+ {
13938
+ key: "companyRole",
13939
+ operation: "=",
13940
+ value: exports.CompanyRole.GOVERNMENT,
13941
+ },
13942
+ ],
13943
+ })];
13944
+ case 2:
13945
+ response = _a.sent();
13946
+ if (response.data) {
13947
+ setMinistryList(response === null || response === void 0 ? void 0 : response.data);
13948
+ }
13949
+ return [3 /*break*/, 5];
13950
+ case 3:
13951
+ error_4 = _a.sent();
13952
+ console.log("Error in getting ministry data", error_4);
13953
+ return [3 /*break*/, 5];
13954
+ case 4:
13955
+ setLoading(false);
13956
+ return [7 /*endfinally*/];
13957
+ case 5: return [2 /*return*/];
13958
+ }
13959
+ });
13960
+ }); };
13961
+ var getImplementOwnerDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13962
+ var response, error_5;
13963
+ var _a, _b;
13964
+ return __generator(this, function (_c) {
13965
+ switch (_c.label) {
13966
+ case 0:
13967
+ setLoading(true);
13968
+ _c.label = 1;
13969
+ case 1:
13970
+ _c.trys.push([1, 3, , 4]);
13971
+ return [4 /*yield*/, post("national/user/query", {
13972
+ page: 1,
13973
+ size: 10,
13974
+ filterAnd: [
13975
+ {
13976
+ key: "id",
13977
+ operation: "=",
13978
+ value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.id,
13979
+ },
13980
+ ],
13981
+ })];
13982
+ case 2:
13983
+ response = _c.sent();
13984
+ if (response && response.data) {
13985
+ if ((_a = response === null || response === void 0 ? void 0 : response.data[0]) === null || _a === void 0 ? void 0 : _a.company) {
13986
+ setimplementOwner((_b = response === null || response === void 0 ? void 0 : response.data[0]) === null || _b === void 0 ? void 0 : _b.company);
13987
+ }
13988
+ }
13989
+ setLoading(false);
13990
+ return [3 /*break*/, 4];
13991
+ case 3:
13992
+ error_5 = _c.sent();
13993
+ console.log("Error in getting users", error_5);
13994
+ antd.message.open({
13995
+ type: "error",
13996
+ content: error_5.message,
13997
+ duration: 3,
13998
+ style: { textAlign: "right", marginRight: 15, marginTop: 10 },
13999
+ });
14000
+ setLoading(false);
14001
+ return [3 /*break*/, 4];
14002
+ case 4: return [2 /*return*/];
14003
+ }
14004
+ });
14005
+ }); };
13810
14006
  var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13811
- var response, userOrganisation, taxId, error_4;
14007
+ var response, userOrganisation, taxId, error_6;
13812
14008
  return __generator(this, function (_a) {
13813
14009
  switch (_a.label) {
13814
14010
  case 0:
@@ -13837,8 +14033,8 @@ var ProgrammeCreationComponent = function (props) {
13837
14033
  }
13838
14034
  return [3 /*break*/, 5];
13839
14035
  case 3:
13840
- error_4 = _a.sent();
13841
- console.log("Error in getting organisation list", error_4);
14036
+ error_6 = _a.sent();
14037
+ console.log("Error in getting organisation list", error_6);
13842
14038
  return [3 /*break*/, 5];
13843
14039
  case 4:
13844
14040
  setLoadingList(false);
@@ -13848,7 +14044,7 @@ var ProgrammeCreationComponent = function (props) {
13848
14044
  });
13849
14045
  }); };
13850
14046
  var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
13851
- var response, sectScopeValues_1, sectSScope_1, sectors_1, error_5;
14047
+ var response, sectScopeValues_1, sectSScope_1, sectors_1, error_7;
13852
14048
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13853
14049
  return __generator(this, function (_k) {
13854
14050
  switch (_k.label) {
@@ -13908,11 +14104,11 @@ var ProgrammeCreationComponent = function (props) {
13908
14104
  setLoading(false);
13909
14105
  return [3 /*break*/, 4];
13910
14106
  case 3:
13911
- error_5 = _k.sent();
13912
- console.log("Error in getting users", error_5);
14107
+ error_7 = _k.sent();
14108
+ console.log("Error in getting users", error_7);
13913
14109
  antd.message.open({
13914
14110
  type: "error",
13915
- content: error_5.message,
14111
+ content: error_7.message,
13916
14112
  duration: 3,
13917
14113
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
13918
14114
  });
@@ -13927,8 +14123,10 @@ var ProgrammeCreationComponent = function (props) {
13927
14123
  getCountryList();
13928
14124
  getRegionList();
13929
14125
  getGovernmentDetails();
14126
+ getMinistryDetails();
13930
14127
  if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) {
13931
14128
  getUserDetails();
14129
+ getImplementOwnerDetails();
13932
14130
  }
13933
14131
  }, []);
13934
14132
  var normFile = function (e) {
@@ -13945,46 +14143,74 @@ var ProgrammeCreationComponent = function (props) {
13945
14143
  setCurrent(current - 1);
13946
14144
  };
13947
14145
  var onFinishStepOne = function (values) { return __awaiter(void 0, void 0, void 0, function () {
13948
- var programmeDetails, ownershipPercentage, totalPercentage, proponentPercentages, proponentTxIds, logoBase64, environmentalImpactAssessmentData, propTaxIds, duplicateIds;
13949
- var _a, _b, _c, _d;
13950
- return __generator(this, function (_e) {
13951
- switch (_e.label) {
14146
+ var programmeDetails, totalPercentage, ownershipPercentage, duplicateIds, proponentTxIds, proponentPercentages, finalImplementingOwner, supportingOwners, propTaxIds, propTaxIds, environmentalImpactAssessmentData, logoBase64;
14147
+ var _a, _b, _c, _d, _e;
14148
+ return __generator(this, function (_f) {
14149
+ switch (_f.label) {
13952
14150
  case 0:
13953
14151
  setLoading(true);
13954
- ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
13955
- if (Number(govData.nationalSopValue) !== 0) {
13956
- ownershipPercentage.push({
13957
- organisation: govData.taxId,
13958
- proponentPercentage: Number(govData.nationalSopValue),
14152
+ if (article6trade) {
14153
+ ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
14154
+ if (Number(govData.nationalSopValue) !== 0) {
14155
+ ownershipPercentage.push({
14156
+ organisation: govData.taxId,
14157
+ proponentPercentage: Number(govData.nationalSopValue),
14158
+ });
14159
+ }
14160
+ totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
14161
+ proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
14162
+ proponentTxIds =
14163
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.GOVERNMENT &&
14164
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY
14165
+ ? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
14166
+ : ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14167
+ propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.GOVERNMENT &&
14168
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY
14169
+ ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
14170
+ duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14171
+ console.log("proponentTxIds", proponentTxIds);
14172
+ console.log("ownershipPercentage", ownershipPercentage);
14173
+ }
14174
+ if (!article6trade) {
14175
+ ownershipPercentage = (values === null || values === void 0 ? void 0 : values.article6Percentage)
14176
+ ? JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.article6Percentage))
14177
+ : [];
14178
+ totalPercentage = 100;
14179
+ if ((values === null || values === void 0 ? void 0 : values.implementingOwner) && (values === null || values === void 0 ? void 0 : values.implementingOwner.length) > 0) {
14180
+ ownershipPercentage.push({
14181
+ organisation: implementOwner
14182
+ ? implementOwner.taxId
14183
+ : values === null || values === void 0 ? void 0 : values.implementingOwner,
14184
+ proponentPercentage: 100,
14185
+ });
14186
+ }
14187
+ proponentPercentages = ownershipPercentage.map(function (item) {
14188
+ return item.proponentPercentage === "Supporting" ? 0 : 100;
13959
14189
  });
14190
+ proponentTxIds = ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
14191
+ propTaxIds = proponentTxIds;
14192
+ duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
14193
+ finalImplementingOwner = implementOwner
14194
+ ? implementOwner.taxId
14195
+ : values === null || values === void 0 ? void 0 : values.implementingOwner;
14196
+ supportingOwners = (_a = values === null || values === void 0 ? void 0 : values.article6Percentage) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.organisation; });
14197
+ console.log("implementingOwner", finalImplementingOwner);
14198
+ console.log("supportingOwners", supportingOwners);
13960
14199
  }
13961
- console.log("ownershipPercentage", ownershipPercentage);
13962
- totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
13963
- proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
13964
- proponentTxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.GOVERNMENT &&
13965
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY
13966
- ? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
13967
- : ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
13968
- logoBase64 = "";
13969
- if (!(((_a = values === null || values === void 0 ? void 0 : values.designDocument) === null || _a === void 0 ? void 0 : _a.length) > 0)) return [3 /*break*/, 2];
13970
- return [4 /*yield*/, getBase64((_b = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _b === void 0 ? void 0 : _b.originFileObj)];
14200
+ environmentalImpactAssessmentData = "";
14201
+ if (!(((_b = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _b === void 0 ? void 0 : _b.length) > 0)) return [3 /*break*/, 2];
14202
+ return [4 /*yield*/, getBase64((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _c === void 0 ? void 0 : _c.originFileObj)];
13971
14203
  case 1:
13972
- logoBase64 = _e.sent();
13973
- _e.label = 2;
14204
+ environmentalImpactAssessmentData = _f.sent();
14205
+ _f.label = 2;
13974
14206
  case 2:
13975
- environmentalImpactAssessmentData = "";
13976
- if (!(((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _c === void 0 ? void 0 : _c.length) > 0)) return [3 /*break*/, 4];
13977
- return [4 /*yield*/, getBase64((_d = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _d === void 0 ? void 0 : _d.originFileObj)];
14207
+ logoBase64 = "";
14208
+ if (!(((_d = values === null || values === void 0 ? void 0 : values.designDocument) === null || _d === void 0 ? void 0 : _d.length) > 0)) return [3 /*break*/, 4];
14209
+ return [4 /*yield*/, getBase64((_e = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _e === void 0 ? void 0 : _e.originFileObj)];
13978
14210
  case 3:
13979
- environmentalImpactAssessmentData = _e.sent();
13980
- _e.label = 4;
14211
+ logoBase64 = _f.sent();
14212
+ _f.label = 4;
13981
14213
  case 4:
13982
- propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.GOVERNMENT &&
13983
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY
13984
- ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
13985
- duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
13986
- console.log("proponentTxIds", proponentTxIds);
13987
- console.log("ownershipPercentage", ownershipPercentage);
13988
14214
  if (totalPercentage !== 100) {
13989
14215
  if (Number(govData.nationalSopValue) !== 0) {
13990
14216
  ownershipPercentage.pop();
@@ -14021,7 +14247,12 @@ var ProgrammeCreationComponent = function (props) {
14021
14247
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.MINISTRY
14022
14248
  ? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds,
14023
14249
  proponentPercentage: proponentPercentages,
14024
- 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 &&
14250
+ article6trade: article6trade,
14251
+ supportingowners: !article6trade ? supportingOwners : undefined,
14252
+ implementinguser: !article6trade ? finalImplementingOwner : undefined,
14253
+ programmeProperties: __assign(__assign({ buyerCountryEligibility: article6trade
14254
+ ? values === null || values === void 0 ? void 0 : values.buyerCountryEligibility
14255
+ : 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 &&
14025
14256
  (values === null || values === void 0 ? void 0 : values.ndcScope) !== null && {
14026
14257
  ndcScope: (values === null || values === void 0 ? void 0 : values.ndcScope) === "true" ? true : false,
14027
14258
  })), (includedInNDC !== undefined &&
@@ -14044,7 +14275,7 @@ var ProgrammeCreationComponent = function (props) {
14044
14275
  });
14045
14276
  }); };
14046
14277
  var saveNewProgramme = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
14047
- var response, error_6;
14278
+ var response, error_8;
14048
14279
  return __generator(this, function (_a) {
14049
14280
  switch (_a.label) {
14050
14281
  case 0:
@@ -14067,11 +14298,11 @@ var ProgrammeCreationComponent = function (props) {
14067
14298
  onNavigateToProgrammeView();
14068
14299
  return [3 /*break*/, 5];
14069
14300
  case 3:
14070
- error_6 = _a.sent();
14071
- console.log("Error in programme creation - ", error_6);
14301
+ error_8 = _a.sent();
14302
+ console.log("Error in programme creation - ", error_8);
14072
14303
  antd.message.open({
14073
14304
  type: "error",
14074
- content: error_6 === null || error_6 === void 0 ? void 0 : error_6.message,
14305
+ content: error_8 === null || error_8 === void 0 ? void 0 : error_8.message,
14075
14306
  duration: 4,
14076
14307
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
14077
14308
  });
@@ -14087,7 +14318,9 @@ var ProgrammeCreationComponent = function (props) {
14087
14318
  var programmeDetails = stepOneData;
14088
14319
  programmeDetails.creditEst = Number(values === null || values === void 0 ? void 0 : values.creditEst);
14089
14320
  programmeDetails.programmeProperties.estimatedProgrammeCostUSD = Number(values === null || values === void 0 ? void 0 : values.estimatedProgrammeCostUSD);
14090
- programmeDetails.programmeProperties.carbonPriceUSDPerTon = Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice);
14321
+ programmeDetails.programmeProperties.carbonPriceUSDPerTon = article6trade
14322
+ ? Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice)
14323
+ : 0;
14091
14324
  setProgrammeDetailsObj(programmeDetails);
14092
14325
  return programmeDetails;
14093
14326
  };
@@ -14100,7 +14333,8 @@ var ProgrammeCreationComponent = function (props) {
14100
14333
  });
14101
14334
  }); };
14102
14335
  var onFormTwoValuesChane = function (changedValues, allValues) {
14103
- if ((allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14336
+ if (article6trade &&
14337
+ (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
14104
14338
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== null &&
14105
14339
  (allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) > 0 &&
14106
14340
  (allValues === null || allValues === void 0 ? void 0 : allValues.estimatedProgrammeCostUSD) !== undefined &&
@@ -14132,13 +14366,11 @@ var ProgrammeCreationComponent = function (props) {
14132
14366
  setIncludedInNDC(undefined);
14133
14367
  }
14134
14368
  };
14135
- var onClickIncludedInNDCScope = function (value) {
14136
- if (value === includedInNDC) {
14137
- setIncludedInNDC(undefined);
14138
- }
14139
- else {
14140
- setIncludedInNDC(value);
14141
- }
14369
+ var onArticle6Trading = function (event) {
14370
+ setArticletrade(event.target.value);
14371
+ formOne.resetFields(["ownershipPercentage"]);
14372
+ formOne.resetFields(["article6Percentage"]);
14373
+ formOne.resetFields(["implementingOwner"]);
14142
14374
  };
14143
14375
  var onChangeGeoLocation = function (values) {
14144
14376
  if (values.includes("National")) {
@@ -14147,22 +14379,19 @@ var ProgrammeCreationComponent = function (props) {
14147
14379
  formOne.setFieldValue("geographicalLocation", __spreadArray([], newBuyerValues, true));
14148
14380
  }
14149
14381
  };
14150
- var onInCludedNDCChange = function (event) {
14151
- var _a, _b;
14152
- if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) === "inNDC") {
14153
- setIncludedInNDC(true);
14382
+ var onChangeStepOne = function (changedValues, allValues) {
14383
+ var _a, _b, _c;
14384
+ var selectedCompanies;
14385
+ if (article6trade) {
14386
+ 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; });
14387
+ var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
14388
+ ? true
14389
+ : false;
14390
+ setOwnershipPercentageValidation(orgPercentValidation);
14154
14391
  }
14155
- else if (((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.value) === "notInNDC") {
14156
- setIncludedInNDC(false);
14392
+ else {
14393
+ 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; });
14157
14394
  }
14158
- };
14159
- var onChangeStepOne = function (changedValues, allValues) {
14160
- var _a, _b;
14161
- 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; });
14162
- var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
14163
- ? true
14164
- : false;
14165
- setOwnershipPercentageValidation(orgPercentValidation);
14166
14395
  var uniqueOrgs = new Set(selectedCompanies);
14167
14396
  setSelectedOrgs(__spreadArray([], uniqueOrgs, true));
14168
14397
  };
@@ -14342,91 +14571,200 @@ var ProgrammeCreationComponent = function (props) {
14342
14571
  React.createElement("div", { className: "addDoc-info" },
14343
14572
  React.createElement(antd.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" },
14344
14573
  React.createElement(Icon.InfoCircle, { color: "#000000", size: 12 })))),
14345
- React.createElement(antd.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: [
14346
- {
14347
- required: false,
14348
- },
14349
- ] },
14350
- React.createElement(antd.Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(antd.Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
14351
- govData && (Number(govData.nationalSopValue) !== 0) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14352
- React.createElement(antd.Space, { wrap: true, style: {
14353
- display: "flex",
14354
- marginBottom: 8,
14355
- }, align: "center", size: "large" },
14356
- React.createElement("div", { className: "ownership-list-item" },
14357
- React.createElement(antd.Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData ? govData.name : "Government", required: true },
14358
- React.createElement(antd.Input, { size: "large", disabled: true })),
14359
- React.createElement(antd.Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
14360
- ? Number(govData.nationalSopValue)
14361
- : 0 },
14362
- React.createElement(antd.InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) {
14363
- return value.replace("%", "");
14364
- } })))))),
14365
- React.createElement(antd.Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
14366
- var add = _a.add, remove = _a.remove;
14367
- return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14368
- fields.map(function (_a) {
14369
- var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
14370
- return (React.createElement(antd.Space, { wrap: true, key: key, style: {
14371
- display: "flex",
14372
- marginBottom: 8,
14373
- }, align: "center", size: "large" },
14374
- React.createElement("div", { className: "ownership-list-item" },
14375
- React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [name, "organisation"], wrapperCol: { span: 24 }, className: "organisation", rules: [
14376
- {
14377
- required: true,
14378
- message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
14379
- validateTrigger: "onBlur",
14380
- },
14381
- ], shouldUpdate: true }),
14382
- React.createElement(antd.Select, { size: "large", loading: loadingList, disabled: name === 0 &&
14383
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14384
- exports.CompanyRole.GOVERNMENT &&
14385
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14386
- exports.CompanyRole.MINISTRY }, organisationsList.map(function (organisation) { return (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId)) ||
14387
- ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14388
- exports.CompanyRole.GOVERNMENT &&
14574
+ React.createElement(antd.Row, { className: "selection-details-row", gutter: [16, 16] },
14575
+ React.createElement(antd.Col, { md: 24, xl: 12, className: "in-ndc-col" },
14576
+ React.createElement(antd.Row, { className: "in-ndc-row" },
14577
+ React.createElement(antd.Col, { md: 16, lg: 18, xl: 18 },
14578
+ React.createElement("div", { className: "included-label" },
14579
+ React.createElement("div", null, t("addProgramme:article6trading")))),
14580
+ React.createElement(antd.Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
14581
+ React.createElement(antd.Radio.Group, { size: "middle", value: article6trade, onChange: onArticle6Trading, disabled: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
14582
+ exports.CompanyRole.PROGRAMME_DEVELOPER },
14583
+ React.createElement("div", { className: "yes-no-radio-container" },
14584
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: true }, t("addProgramme:yes"))),
14585
+ React.createElement("div", { className: "yes-no-radio-container" },
14586
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: false }, t("addProgramme:no")))))))),
14587
+ article6trade && (React.createElement(React.Fragment, null,
14588
+ React.createElement(antd.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: [
14589
+ {
14590
+ required: false,
14591
+ },
14592
+ ] },
14593
+ React.createElement(antd.Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(antd.Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
14594
+ govData &&
14595
+ Number(govData.nationalSopValue) !== 0 && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14596
+ React.createElement(antd.Space, { wrap: true, style: {
14597
+ display: "flex",
14598
+ marginBottom: 8,
14599
+ }, align: "center", size: "large" },
14600
+ React.createElement("div", { className: "ownership-list-item" },
14601
+ React.createElement(antd.Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData
14602
+ ? govData.name
14603
+ : "Government", required: true },
14604
+ React.createElement(antd.Input, { size: "large", disabled: true })),
14605
+ React.createElement(antd.Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
14606
+ ? Number(govData.nationalSopValue)
14607
+ : 0 },
14608
+ React.createElement(antd.InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) {
14609
+ return "".concat(value, "%");
14610
+ }, parser: function (value) {
14611
+ return value.replace("%", "");
14612
+ } })))))),
14613
+ React.createElement(antd.Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
14614
+ var add = _a.add, remove = _a.remove;
14615
+ return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14616
+ fields.map(function (_a) {
14617
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
14618
+ return (React.createElement(antd.Space, { wrap: true, key: key, style: {
14619
+ display: "flex",
14620
+ marginBottom: 8,
14621
+ }, align: "center", size: "large" },
14622
+ React.createElement("div", { className: "ownership-list-item" },
14623
+ React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [
14624
+ name,
14625
+ "organisation",
14626
+ ], wrapperCol: { span: 24 }, className: "organisation", rules: [
14627
+ {
14628
+ required: true,
14629
+ message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
14630
+ validateTrigger: "onBlur",
14631
+ },
14632
+ ], shouldUpdate: true }),
14633
+ React.createElement(antd.Select, { size: "large", loading: loadingList, disabled: name === 0 &&
14634
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14635
+ exports.CompanyRole.GOVERNMENT &&
14636
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14637
+ exports.CompanyRole.MINISTRY }, organisationsList.map(function (organisation) { return (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId)) ||
14638
+ ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14639
+ exports.CompanyRole.GOVERNMENT &&
14640
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14641
+ exports.CompanyRole.MINISTRY &&
14642
+ userOrgTaxId ===
14643
+ (organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
14644
+ React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
14645
+ name,
14646
+ "proponentPercentage",
14647
+ ], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
14648
+ {
14649
+ required: true,
14650
+ message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
14651
+ },
14652
+ {
14653
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
14654
+ return __generator(this, function (_a) {
14655
+ if (ownershipPercentageValidation &&
14656
+ name === 0) {
14657
+ throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
14658
+ }
14659
+ return [2 /*return*/];
14660
+ });
14661
+ }); },
14662
+ },
14663
+ ], shouldUpdate: true }),
14664
+ React.createElement(antd.InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
14665
+ return "".concat(value, "%");
14666
+ }, parser: function (value) {
14667
+ return value.replace("%", "");
14668
+ }, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
14669
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14670
+ exports.CompanyRole.GOVERNMENT &&
14389
14671
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14390
- exports.CompanyRole.MINISTRY &&
14391
- userOrgTaxId ===
14392
- (organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
14393
- React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
14394
- name,
14395
- "proponentPercentage",
14396
- ], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
14397
- {
14398
- required: true,
14399
- message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
14400
- },
14401
- {
14402
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
14403
- return __generator(this, function (_a) {
14404
- if (ownershipPercentageValidation &&
14405
- name === 0) {
14406
- throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
14407
- }
14408
- return [2 /*return*/];
14409
- });
14410
- }); },
14411
- },
14412
- ], shouldUpdate: true }),
14413
- React.createElement(antd.InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
14414
- return "".concat(value, "%");
14415
- }, parser: function (value) {
14416
- return value.replace("%", "");
14417
- }, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
14418
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14419
- exports.CompanyRole.GOVERNMENT &&
14420
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
14421
- exports.CompanyRole.MINISTRY })),
14422
- (fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
14423
- name !== 0 && (React.createElement(icons.MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
14424
- remove(name);
14425
- } })))));
14426
- }),
14427
- React.createElement(antd.Form.Item, null,
14428
- React.createElement(antd.Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(icons.PlusOutlined, null) }))));
14429
- }),
14672
+ exports.CompanyRole.MINISTRY })),
14673
+ (fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
14674
+ name !== 0 && (React.createElement(icons.MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
14675
+ remove(name);
14676
+ } })))));
14677
+ }),
14678
+ React.createElement(antd.Form.Item, null,
14679
+ React.createElement(antd.Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(icons.PlusOutlined, null) }))));
14680
+ }))),
14681
+ !article6trade && (React.createElement(React.Fragment, null,
14682
+ implementOwner ? (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14683
+ React.createElement(antd.Space, { wrap: true, style: {
14684
+ display: "flex",
14685
+ marginBottom: 8,
14686
+ }, align: "center", size: "large" },
14687
+ React.createElement("div", { className: "ownership-list-item" },
14688
+ React.createElement(antd.Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", initialValue: implementOwner
14689
+ ? implementOwner.name +
14690
+ " - " +
14691
+ Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(implementOwner.govDep)]
14692
+ : "Implementing Owner", required: true },
14693
+ React.createElement(antd.Input, { size: "large", disabled: true })),
14694
+ React.createElement(antd.Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: implementOwner
14695
+ ? "Implementing"
14696
+ : "Supporting" },
14697
+ React.createElement(antd.InputNumber, { size: "large", disabled: true })))))) : (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14698
+ React.createElement(antd.Space, { wrap: true, style: {
14699
+ display: "flex",
14700
+ marginBottom: 8,
14701
+ }, align: "center", size: "large" },
14702
+ React.createElement("div", { className: "ownership-list-item" },
14703
+ React.createElement(antd.Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", rules: [
14704
+ {
14705
+ required: true,
14706
+ message: "".concat(t("addProgramme:governmentDepartment"), " ").concat(t("isRequired")),
14707
+ },
14708
+ ] },
14709
+ React.createElement(antd.Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
14710
+ return organisation.govDep && (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.taxId }, organisation.name +
14711
+ "-" +
14712
+ Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(organisation.govDep)]));
14713
+ }))),
14714
+ React.createElement(antd.Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },
14715
+ React.createElement(antd.InputNumber, { size: "large", disabled: true })))))),
14716
+ React.createElement(antd.Form.List, { name: "article6Percentage" }, function (fields, _a) {
14717
+ var add = _a.add, remove = _a.remove;
14718
+ return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
14719
+ fields.map(function (_a) {
14720
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
14721
+ return (React.createElement(antd.Space, { wrap: true, key: key, style: {
14722
+ display: "flex",
14723
+ marginBottom: 8,
14724
+ }, align: "center", size: "large" },
14725
+ React.createElement("div", { className: "ownership-list-item" },
14726
+ React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:governmentDepartment"), name: [
14727
+ name,
14728
+ "organisation",
14729
+ ], rules: [
14730
+ {
14731
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
14732
+ return __generator(this, function (_a) {
14733
+ if (String(value).trim() === "" ||
14734
+ String(value).trim() ===
14735
+ undefined ||
14736
+ value === null ||
14737
+ value ===
14738
+ undefined) {
14739
+ throw new Error("".concat(t("addProgramme:governmentDepartment"), " shouldn't be empty"));
14740
+ }
14741
+ return [2 /*return*/];
14742
+ });
14743
+ }); },
14744
+ },
14745
+ ], wrapperCol: { span: 24 }, className: "organisation", shouldUpdate: true }),
14746
+ React.createElement(antd.Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
14747
+ var _a;
14748
+ return organisation.govDep && (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId.trim())) ||
14749
+ (implementOwner === null || implementOwner === void 0 ? void 0 : implementOwner.taxId) ===
14750
+ organisation.taxId ||
14751
+ ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.implementingOwner.trim()) ===
14752
+ organisation.taxId }, organisation.name +
14753
+ " - " +
14754
+ Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(organisation.govDep)]));
14755
+ }))),
14756
+ React.createElement(antd.Form.Item, __assign({}, restField, { label: t("addProgramme:ownership"), className: "ownership-percent", name: [
14757
+ name,
14758
+ "proponentPercentage",
14759
+ ], initialValue: "Supporting", labelCol: { span: 24 }, wrapperCol: { span: 24 }, shouldUpdate: true }),
14760
+ React.createElement(antd.InputNumber, { size: "large", disabled: true })),
14761
+ React.createElement(icons.MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
14762
+ remove(name);
14763
+ } }))));
14764
+ }),
14765
+ React.createElement(antd.Form.Item, null,
14766
+ React.createElement(antd.Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(icons.PlusOutlined, null) }))));
14767
+ }))),
14430
14768
  React.createElement(antd.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: [
14431
14769
  {
14432
14770
  required: true,
@@ -14554,25 +14892,6 @@ var ProgrammeCreationComponent = function (props) {
14554
14892
  },
14555
14893
  ] },
14556
14894
  React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeGeoLocation, loading: loadingList, className: "custom-select", allowClear: true }, regionsList.map(function (region) { return (React.createElement(antd.Select.Option, { value: region }, region)); })))))),
14557
- React.createElement(antd.Row, { className: "selection-details-row", gutter: [16, 16] },
14558
- React.createElement(antd.Col, { md: 24, xl: 12, className: "in-ndc-col" },
14559
- React.createElement(antd.Row, { className: "in-ndc-row" },
14560
- React.createElement(antd.Col, { md: 16, lg: 18, xl: 18 },
14561
- React.createElement("div", { className: "included-label" },
14562
- React.createElement("div", null, t("addProgramme:inNDC")),
14563
- React.createElement("div", { className: "info-container" },
14564
- React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("addProgramme:inNDCToolTip"), overlayClassName: "custom-tooltip" },
14565
- React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
14566
- React.createElement(antd.Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
14567
- React.createElement(antd.Radio.Group, { size: "middle", disabled: ndcScopeChanged, value: includedInNDC, onChange: onInCludedNDCChange },
14568
- React.createElement("div", { className: "yes-no-radio-container" },
14569
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: true, onClick: function () {
14570
- return onClickIncludedInNDCScope(true);
14571
- } }, t("addProgramme:yes"))),
14572
- React.createElement("div", { className: "yes-no-radio-container" },
14573
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: false, onClick: function () {
14574
- return onClickIncludedInNDCScope(false);
14575
- } }, t("addProgramme:no")))))))),
14576
14895
  React.createElement("div", { className: "steps-actions" },
14577
14896
  React.createElement(antd.Button, { type: "primary", htmlType: "submit", loading: loading, onClick: checkOrgPercentageValidation }, t("addProgramme:next"))))))),
14578
14897
  },
@@ -14612,11 +14931,13 @@ var ProgrammeCreationComponent = function (props) {
14612
14931
  },
14613
14932
  ] },
14614
14933
  React.createElement(antd.InputNumber, { size: "large", style: { width: "100%", paddingRight: 12 } })),
14615
- React.createElement(antd.Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
14616
- React.createElement(antd.InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } })))),
14934
+ article6trade && (React.createElement(antd.Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
14935
+ React.createElement(antd.InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } }))))),
14617
14936
  React.createElement(antd.Col, { xl: 12, md: 24 },
14618
14937
  React.createElement("div", { className: "details-part-two" },
14619
- React.createElement(antd.Form.Item, { label: t("addProgramme:creditEst"), name: "creditEst", rules: [
14938
+ React.createElement(antd.Form.Item, { label: article6trade
14939
+ ? t("addProgramme:creditEst")
14940
+ : t("addProgramme:creditReduction"), name: "creditEst", rules: [
14620
14941
  {
14621
14942
  required: true,
14622
14943
  message: "",
@@ -14628,7 +14949,9 @@ var ProgrammeCreationComponent = function (props) {
14628
14949
  String(value).trim() === undefined ||
14629
14950
  value === null ||
14630
14951
  value === undefined) {
14631
- throw new Error("".concat(t("addProgramme:creditEst"), " ").concat(t("isRequired")));
14952
+ throw new Error("".concat(article6trade
14953
+ ? t("addProgramme:creditEst")
14954
+ : t("addProgramme:creditReduction"), " ").concat(t("isRequired")));
14632
14955
  }
14633
14956
  else if (!isNaN(value) &&
14634
14957
  Number(value) > 0) {
@@ -15238,6 +15561,20 @@ var UserProfileComponent = function (props) {
15238
15561
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("userProfile:companyRole")),
15239
15562
  React.createElement(antd.Col, { span: 12, className: "field-value" },
15240
15563
  React.createElement(CompanyRoleIcon, { role: organisationDetails.companyRole }))),
15564
+ ((organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
15565
+ exports.CompanyRole.MINISTRY ||
15566
+ (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
15567
+ exports.CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
15568
+ React.createElement(antd.Row, { className: "field" },
15569
+ React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
15570
+ React.createElement(antd.Col, { span: 12, className: "field-value" }, (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.ministry)
15571
+ ? organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.ministry
15572
+ : "-")),
15573
+ React.createElement(antd.Row, { className: "field" },
15574
+ React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
15575
+ React.createElement(antd.Col, { span: 12, className: "field-value" }, (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.govDep)
15576
+ ? Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.govDep)]
15577
+ : "-")))),
15241
15578
  (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
15242
15579
  exports.CompanyRole.MINISTRY && (React.createElement(React.Fragment, null,
15243
15580
  React.createElement(antd.Row, { className: "field" },