@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 +582 -245
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +1 -0
- package/dist/cjs/types/Definitions/Enums/govDep.enum.d.ts +0 -2
- package/dist/esm/index.js +582 -245
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +1 -0
- package/dist/esm/types/Definitions/Enums/govDep.enum.d.ts +0 -2
- package/dist/index.d.ts +1 -2
- package/dist/locales/i18n/addProgramme/en.json +4 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -5764,7 +5764,6 @@ var GovDepartment;
|
|
5764
5764
|
GovDepartment["Electricity Regulatory Commission"] = "72";
|
5765
5765
|
GovDepartment["Content Monitoring and Development Board"] = "73";
|
5766
5766
|
GovDepartment["National Petroleum Corporation"] = "74";
|
5767
|
-
GovDepartment["Nuclear Regulatory Authority Science & Technology"] = "75";
|
5768
5767
|
GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
|
5769
5768
|
GovDepartment["Power Holding Company (defunct)"] = "77";
|
5770
5769
|
GovDepartment["Rural Electrification Agency"] = "78";
|
@@ -5796,7 +5795,6 @@ var GovDepartment;
|
|
5796
5795
|
GovDepartment["Broadcasting Organisation"] = "104";
|
5797
5796
|
GovDepartment["News Agency"] = "105";
|
5798
5797
|
GovDepartment["Press Council"] = "106";
|
5799
|
-
GovDepartment["Television Authority Media"] = "107";
|
5800
5798
|
GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
|
5801
5799
|
GovDepartment["Biotechnology Development Agency"] = "109";
|
5802
5800
|
GovDepartment["Centre for Remote Sensing"] = "110";
|
@@ -5914,7 +5912,24 @@ var ProgrammeCertify = /** @class */ (function () {
|
|
5914
5912
|
return ProgrammeCertify;
|
5915
5913
|
}());
|
5916
5914
|
|
5917
|
-
var
|
5915
|
+
var ministries = [
|
5916
|
+
"Agriculture",
|
5917
|
+
"Aviation",
|
5918
|
+
"Communications",
|
5919
|
+
"Economy",
|
5920
|
+
"Education",
|
5921
|
+
"Energy",
|
5922
|
+
"Environment",
|
5923
|
+
"Health",
|
5924
|
+
"Intelligence",
|
5925
|
+
"Judiciary",
|
5926
|
+
"Maritime",
|
5927
|
+
"Media",
|
5928
|
+
"Science And Technology",
|
5929
|
+
"Water Resources",
|
5930
|
+
"Other",
|
5931
|
+
];
|
5932
|
+
var ministryOrgs = {
|
5918
5933
|
Agriculture: [
|
5919
5934
|
"Cocoa Research Institute",
|
5920
5935
|
"National Agricultural Extension, Research and Liaison Services",
|
@@ -5937,9 +5952,9 @@ var sectoralScopes$1 = {
|
|
5937
5952
|
],
|
5938
5953
|
Communications: [
|
5939
5954
|
"National Information Technology Development Agency",
|
5940
|
-
"
|
5955
|
+
"Satellite Limited",
|
5941
5956
|
"Broadcasting Commission",
|
5942
|
-
"
|
5957
|
+
"Commission",
|
5943
5958
|
"Postal Service",
|
5944
5959
|
"National Frequency Management Council",
|
5945
5960
|
"Television Authority",
|
@@ -6045,7 +6060,7 @@ var sectoralScopes$1 = {
|
|
6045
6060
|
"Broadcasting Organisation",
|
6046
6061
|
"News Agency",
|
6047
6062
|
"Press Council",
|
6048
|
-
"Television Authority
|
6063
|
+
"Television Authority",
|
6049
6064
|
],
|
6050
6065
|
ScienceAndTechnology: [
|
6051
6066
|
"Agency For Science and Engineering Infrastructure",
|
@@ -6054,7 +6069,7 @@ var sectoralScopes$1 = {
|
|
6054
6069
|
"Science and Technology Complex",
|
6055
6070
|
"Office for Technology Acquisition and Promotion",
|
6056
6071
|
"Space Research and Development Agency",
|
6057
|
-
"Nuclear Regulatory Authority
|
6072
|
+
"Nuclear Regulatory Authority",
|
6058
6073
|
"Raw Materials Research and Development Council",
|
6059
6074
|
"Communications Satellite Ltd",
|
6060
6075
|
"Centre for Technology Management",
|
@@ -6125,7 +6140,8 @@ var AddNewCompanyComponent = function (props) {
|
|
6125
6140
|
var _m = useState((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.companyRole), companyRole = _m[0], setCompanyRole = _m[1];
|
6126
6141
|
var _o = useState(""), selectedMinistry = _o[0], setSelectedMinistry = _o[1];
|
6127
6142
|
var _p = useState([]), existgovDep = _p[0], setexistGovdep = _p[1];
|
6128
|
-
var
|
6143
|
+
var _q = useState(ministries), ministryDropdown = _q[0], setMinistryDropdown = _q[1];
|
6144
|
+
var selectedGovDepatments = ministryOrgs[selectedMinistry];
|
6129
6145
|
if (existgovDep && existgovDep.length > 0) {
|
6130
6146
|
selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
|
6131
6147
|
}
|
@@ -6141,11 +6157,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6141
6157
|
page: 1,
|
6142
6158
|
size: 200,
|
6143
6159
|
filterAnd: [
|
6144
|
-
{
|
6145
|
-
key: "companyRole",
|
6146
|
-
operation: "=",
|
6147
|
-
value: "Ministry",
|
6148
|
-
},
|
6149
6160
|
{
|
6150
6161
|
key: "ministry",
|
6151
6162
|
operation: "=",
|
@@ -6170,6 +6181,58 @@ var AddNewCompanyComponent = function (props) {
|
|
6170
6181
|
}
|
6171
6182
|
});
|
6172
6183
|
}); };
|
6184
|
+
var getMinistryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6185
|
+
var leftmins, excludingmin_1, _i, ministries_1, min, response, minkey, error_1;
|
6186
|
+
return __generator(this, function (_a) {
|
6187
|
+
switch (_a.label) {
|
6188
|
+
case 0:
|
6189
|
+
setLoadingList(true);
|
6190
|
+
_a.label = 1;
|
6191
|
+
case 1:
|
6192
|
+
_a.trys.push([1, 6, 7, 8]);
|
6193
|
+
leftmins = [];
|
6194
|
+
excludingmin_1 = [];
|
6195
|
+
_i = 0, ministries_1 = ministries;
|
6196
|
+
_a.label = 2;
|
6197
|
+
case 2:
|
6198
|
+
if (!(_i < ministries_1.length)) return [3 /*break*/, 5];
|
6199
|
+
min = ministries_1[_i];
|
6200
|
+
return [4 /*yield*/, post("national/organisation/query", {
|
6201
|
+
page: 1,
|
6202
|
+
size: 100,
|
6203
|
+
filterAnd: [
|
6204
|
+
{
|
6205
|
+
key: "ministry",
|
6206
|
+
operation: "=",
|
6207
|
+
value: min,
|
6208
|
+
},
|
6209
|
+
],
|
6210
|
+
})];
|
6211
|
+
case 3:
|
6212
|
+
response = _a.sent();
|
6213
|
+
minkey = Object.keys(Ministry)[Object.values(Ministry).indexOf(min)];
|
6214
|
+
if (response.data.length === ministryOrgs[minkey].length) {
|
6215
|
+
excludingmin_1.push(min);
|
6216
|
+
}
|
6217
|
+
_a.label = 4;
|
6218
|
+
case 4:
|
6219
|
+
_i++;
|
6220
|
+
return [3 /*break*/, 2];
|
6221
|
+
case 5:
|
6222
|
+
leftmins = ministries.filter(function (x) { return !excludingmin_1.includes(x); });
|
6223
|
+
setMinistryDropdown(leftmins);
|
6224
|
+
return [3 /*break*/, 8];
|
6225
|
+
case 6:
|
6226
|
+
error_1 = _a.sent();
|
6227
|
+
console.log("Error in getting min list", error_1);
|
6228
|
+
return [3 /*break*/, 8];
|
6229
|
+
case 7:
|
6230
|
+
setLoadingList(false);
|
6231
|
+
return [7 /*endfinally*/];
|
6232
|
+
case 8: return [2 /*return*/];
|
6233
|
+
}
|
6234
|
+
});
|
6235
|
+
}); };
|
6173
6236
|
var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6174
6237
|
var response, alpha2Names;
|
6175
6238
|
return __generator(this, function (_a) {
|
@@ -6188,7 +6251,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6188
6251
|
});
|
6189
6252
|
}); };
|
6190
6253
|
var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6191
|
-
var response, regionNames,
|
6254
|
+
var response, regionNames, error_2;
|
6192
6255
|
return __generator(this, function (_a) {
|
6193
6256
|
switch (_a.label) {
|
6194
6257
|
case 0:
|
@@ -6215,8 +6278,8 @@ var AddNewCompanyComponent = function (props) {
|
|
6215
6278
|
}
|
6216
6279
|
return [3 /*break*/, 5];
|
6217
6280
|
case 3:
|
6218
|
-
|
6219
|
-
console.log("Error in getting regions list",
|
6281
|
+
error_2 = _a.sent();
|
6282
|
+
console.log("Error in getting regions list", error_2);
|
6220
6283
|
return [3 /*break*/, 5];
|
6221
6284
|
case 4:
|
6222
6285
|
setLoadingList(false);
|
@@ -6230,6 +6293,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6230
6293
|
setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
|
6231
6294
|
getCountryList();
|
6232
6295
|
getRegionList();
|
6296
|
+
getMinistryList();
|
6233
6297
|
if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
|
6234
6298
|
setFileList([
|
6235
6299
|
{
|
@@ -6266,7 +6330,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6266
6330
|
}
|
6267
6331
|
};
|
6268
6332
|
var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
6269
|
-
var requestData, logoBase64, logoUrls, response, response,
|
6333
|
+
var requestData, logoBase64, logoUrls, response, response, error_3;
|
6270
6334
|
var _a, _b;
|
6271
6335
|
return __generator(this, function (_c) {
|
6272
6336
|
switch (_c.label) {
|
@@ -6334,10 +6398,10 @@ var AddNewCompanyComponent = function (props) {
|
|
6334
6398
|
_c.label = 6;
|
6335
6399
|
case 6: return [3 /*break*/, 9];
|
6336
6400
|
case 7:
|
6337
|
-
|
6401
|
+
error_3 = _c.sent();
|
6338
6402
|
message.open({
|
6339
6403
|
type: "error",
|
6340
|
-
content: "".concat(
|
6404
|
+
content: "".concat(error_3.message),
|
6341
6405
|
duration: 3,
|
6342
6406
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
6343
6407
|
});
|
@@ -6350,17 +6414,17 @@ var AddNewCompanyComponent = function (props) {
|
|
6350
6414
|
});
|
6351
6415
|
}); };
|
6352
6416
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6353
|
-
var formOneValues, values, key, logoBase64, logoUrls, response,
|
6354
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
6355
|
-
return __generator(this, function (
|
6356
|
-
switch (
|
6417
|
+
var formOneValues, values, key, logoBase64, logoUrls, response, error_4;
|
6418
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
6419
|
+
return __generator(this, function (_o) {
|
6420
|
+
switch (_o.label) {
|
6357
6421
|
case 0:
|
6358
6422
|
setLoading(true);
|
6359
6423
|
formOneValues = formOne.getFieldsValue();
|
6360
6424
|
formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
|
6361
|
-
|
6425
|
+
_o.label = 1;
|
6362
6426
|
case 1:
|
6363
|
-
|
6427
|
+
_o.trys.push([1, 5, , 6]);
|
6364
6428
|
values = {};
|
6365
6429
|
if (regionField) {
|
6366
6430
|
values = {
|
@@ -6388,10 +6452,8 @@ var AddNewCompanyComponent = function (props) {
|
|
6388
6452
|
values.taxId = formOneValues.taxId;
|
6389
6453
|
values.paymentId = formOneValues.paymentId;
|
6390
6454
|
}
|
6391
|
-
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY
|
6392
|
-
|
6393
|
-
values.nameOfMinister = formOneValues.nameOfMinister;
|
6394
|
-
values.ministry = formOneValues.ministry;
|
6455
|
+
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY ||
|
6456
|
+
((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
6395
6457
|
if (formOneValues.govDep in GovDepartment) {
|
6396
6458
|
key = formOneValues.govDep;
|
6397
6459
|
values.govDep = GovDepartment[key];
|
@@ -6399,12 +6461,17 @@ var AddNewCompanyComponent = function (props) {
|
|
6399
6461
|
else {
|
6400
6462
|
values.govDep = formOneValues.govDep;
|
6401
6463
|
}
|
6464
|
+
values.ministry = formOneValues.ministry;
|
6465
|
+
}
|
6466
|
+
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.MINISTRY) {
|
6467
|
+
values.sectoralScope = formOneValues.sectoralScope;
|
6468
|
+
values.nameOfMinister = formOneValues.nameOfMinister;
|
6402
6469
|
values.name = "Ministry of " + formOneValues.ministry;
|
6403
6470
|
}
|
6404
|
-
if (((
|
6471
|
+
if (((_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.companyRole) === CompanyRole.GOVERNMENT) {
|
6405
6472
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
6406
6473
|
}
|
6407
|
-
if (((
|
6474
|
+
if (((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.companyRole) === CompanyRole.GOVERNMENT) {
|
6408
6475
|
values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
|
6409
6476
|
}
|
6410
6477
|
if (formOneValues.website) {
|
@@ -6415,15 +6482,15 @@ var AddNewCompanyComponent = function (props) {
|
|
6415
6482
|
}
|
6416
6483
|
if (!formOneValues.logo) return [3 /*break*/, 3];
|
6417
6484
|
if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
|
6418
|
-
return [4 /*yield*/, getBase64((
|
6485
|
+
return [4 /*yield*/, getBase64((_m = formOneValues.logo[0]) === null || _m === void 0 ? void 0 : _m.originFileObj)];
|
6419
6486
|
case 2:
|
6420
|
-
logoBase64 =
|
6487
|
+
logoBase64 = _o.sent();
|
6421
6488
|
logoUrls = logoBase64.split(",");
|
6422
6489
|
values.logo = logoUrls[1];
|
6423
|
-
|
6490
|
+
_o.label = 3;
|
6424
6491
|
case 3: return [4 /*yield*/, put("national/organisation/update", values)];
|
6425
6492
|
case 4:
|
6426
|
-
response =
|
6493
|
+
response = _o.sent();
|
6427
6494
|
if (response.status === 200 || response.status === 201) {
|
6428
6495
|
setUserInfo({
|
6429
6496
|
companyLogo: response.data.logo,
|
@@ -6439,10 +6506,10 @@ var AddNewCompanyComponent = function (props) {
|
|
6439
6506
|
setLoading(false);
|
6440
6507
|
return [3 /*break*/, 6];
|
6441
6508
|
case 5:
|
6442
|
-
|
6509
|
+
error_4 = _o.sent();
|
6443
6510
|
message.open({
|
6444
6511
|
type: "error",
|
6445
|
-
content: "".concat(t("errorInUpdatingCompany"), " ").concat(
|
6512
|
+
content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_4.message),
|
6446
6513
|
duration: 3,
|
6447
6514
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
6448
6515
|
});
|
@@ -6542,7 +6609,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6542
6609
|
] },
|
6543
6610
|
React.createElement(Input, { size: "large" })))
|
6544
6611
|
: null,
|
6545
|
-
React.createElement(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: [
|
6612
|
+
companyRole !== CompanyRole.GOVERNMENT && (React.createElement(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: [
|
6546
6613
|
{
|
6547
6614
|
required: true,
|
6548
6615
|
message: "",
|
@@ -6572,16 +6639,48 @@ var AddNewCompanyComponent = function (props) {
|
|
6572
6639
|
}); },
|
6573
6640
|
},
|
6574
6641
|
] },
|
6575
|
-
React.createElement(Input, { size: "large" })),
|
6576
|
-
companyRole === CompanyRole.MINISTRY
|
6642
|
+
React.createElement(Input, { size: "large" }))),
|
6643
|
+
(companyRole === CompanyRole.MINISTRY ||
|
6644
|
+
companyRole === CompanyRole.GOVERNMENT) && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6577
6645
|
React.createElement(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: [
|
6578
6646
|
{
|
6579
6647
|
required: true,
|
6580
6648
|
message: "Ministry Name is required",
|
6581
6649
|
},
|
6582
6650
|
] },
|
6583
|
-
React.createElement(Select, { size: "large", onChange: onChangeMinistry },
|
6584
|
-
React.createElement(Form.Item, { label: "
|
6651
|
+
React.createElement(Select, { size: "large", onChange: onChangeMinistry }, ministryDropdown.map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry)); }))),
|
6652
|
+
companyRole === CompanyRole.GOVERNMENT && (React.createElement(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: [
|
6653
|
+
{
|
6654
|
+
required: true,
|
6655
|
+
message: "",
|
6656
|
+
},
|
6657
|
+
{
|
6658
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6659
|
+
var val, reg, matches;
|
6660
|
+
return __generator(this, function (_a) {
|
6661
|
+
if (String(value).trim() === "" ||
|
6662
|
+
String(value).trim() === undefined ||
|
6663
|
+
value === null ||
|
6664
|
+
value === undefined) {
|
6665
|
+
throw new Error("Email ".concat(t("isRequired")));
|
6666
|
+
}
|
6667
|
+
else {
|
6668
|
+
val = value.trim();
|
6669
|
+
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,}))$/;
|
6670
|
+
matches = val.match(reg)
|
6671
|
+
? val.match(reg)
|
6672
|
+
: [];
|
6673
|
+
if (matches.length === 0) {
|
6674
|
+
throw new Error("Email ".concat(t("isInvalid")));
|
6675
|
+
}
|
6676
|
+
}
|
6677
|
+
return [2 /*return*/];
|
6678
|
+
});
|
6679
|
+
}); },
|
6680
|
+
},
|
6681
|
+
] },
|
6682
|
+
React.createElement(Input, { size: "large" }))),
|
6683
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
|
6585
6684
|
{
|
6586
6685
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6587
6686
|
return __generator(this, function (_a) {
|
@@ -6596,8 +6695,8 @@ var AddNewCompanyComponent = function (props) {
|
|
6596
6695
|
}); },
|
6597
6696
|
},
|
6598
6697
|
] },
|
6599
|
-
React.createElement(Input, { size: "large" })))),
|
6600
|
-
React.createElement(Form.Item, { className: "website", label: "Website", initialValue: (
|
6698
|
+
React.createElement(Input, { size: "large" }))))),
|
6699
|
+
React.createElement(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: [
|
6601
6700
|
{
|
6602
6701
|
required: false,
|
6603
6702
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6615,7 +6714,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6615
6714
|
},
|
6616
6715
|
], 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(); } },
|
6617
6716
|
React.createElement(Input, { addonBefore: "https://", size: "large" })),
|
6618
|
-
companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: "Address", initialValue: (
|
6717
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
|
6619
6718
|
{ required: true, message: "" },
|
6620
6719
|
{
|
6621
6720
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6680,7 +6779,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6680
6779
|
display: "flex",
|
6681
6780
|
marginBottom: 8,
|
6682
6781
|
}, align: "center", size: "large" },
|
6683
|
-
React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (
|
6782
|
+
React.createElement(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: [
|
6684
6783
|
{ required: true, message: "" },
|
6685
6784
|
{
|
6686
6785
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6734,11 +6833,13 @@ var AddNewCompanyComponent = function (props) {
|
|
6734
6833
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6735
6834
|
CompanyRole.MINISTRY &&
|
6736
6835
|
!isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
6737
|
-
React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
|
6738
|
-
React.createElement(
|
6739
|
-
|
6740
|
-
|
6741
|
-
|
6836
|
+
React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" }, ministryDropdown.length > 0 ? (React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
|
6837
|
+
React.createElement(AuditOutlined, { className: "role-icons" }),
|
6838
|
+
"Ministry")) : (React.createElement(Radio.Button, { className: "minister", value: "Ministry", disabled: true },
|
6839
|
+
React.createElement(AuditOutlined, { className: "role-icons" }),
|
6840
|
+
"Ministry"))))))))),
|
6841
|
+
(companyRole === CompanyRole.MINISTRY ||
|
6842
|
+
companyRole === CompanyRole.GOVERNMENT) && (React.createElement(Form.Item, { label: "Government Department", name: "govDep", rules: [
|
6742
6843
|
{
|
6743
6844
|
required: true,
|
6744
6845
|
message: "Government Department is required",
|
@@ -6752,7 +6853,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6752
6853
|
val.length > 0 &&
|
6753
6854
|
selectedGovDepatments &&
|
6754
6855
|
!selectedGovDepatments.includes(val)) {
|
6755
|
-
throw new Error("Department not exist in Ministry");
|
6856
|
+
throw new Error("Department not exist in Selected Ministry");
|
6756
6857
|
}
|
6757
6858
|
return [2 /*return*/];
|
6758
6859
|
});
|
@@ -7001,7 +7102,7 @@ var CompanyProfileComponent = function (props) {
|
|
7001
7102
|
var _j = useState(false), openRejectModal = _j[0], setOpenRejectModal = _j[1];
|
7002
7103
|
var _k = useState(""), errorMsg = _k[0], setErrorMsg = _k[1];
|
7003
7104
|
var _l = useState(""); _l[0]; var setUserRole = _l[1];
|
7004
|
-
var _m = useState("")
|
7105
|
+
var _m = useState(""), companyRole = _m[0], setCompanyRole = _m[1];
|
7005
7106
|
var ability = useAbilityContext();
|
7006
7107
|
var getCompanyDetails = function (companyId) { return __awaiter(void 0, void 0, void 0, function () {
|
7007
7108
|
var response;
|
@@ -7338,27 +7439,30 @@ var CompanyProfileComponent = function (props) {
|
|
7338
7439
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:companyRole")),
|
7339
7440
|
React.createElement(Col, { span: 12, className: "field-value" },
|
7340
7441
|
React.createElement(CompanyRoleIcon, { role: companyDetails.companyRole }))),
|
7341
|
-
(
|
7342
|
-
React.createElement(
|
7442
|
+
(companyRole === CompanyRole.MINISTRY ||
|
7443
|
+
companyRole === CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
|
7444
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(Row, { className: "field" },
|
7343
7445
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:ministerName")),
|
7344
7446
|
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
|
7345
7447
|
? companyDetails.nameOfMinister
|
7346
|
-
: "-")),
|
7347
|
-
|
7348
|
-
React.createElement(
|
7349
|
-
React.createElement(
|
7350
|
-
|
7351
|
-
: "-"
|
7352
|
-
|
7353
|
-
|
7354
|
-
React.createElement(
|
7355
|
-
|
7356
|
-
: "-"
|
7357
|
-
|
7448
|
+
: "-"))),
|
7449
|
+
(companyRole === CompanyRole.MINISTRY ||
|
7450
|
+
companyRole === CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
|
7451
|
+
React.createElement(Row, { className: "field" },
|
7452
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
|
7453
|
+
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry
|
7454
|
+
? companyDetails.ministry
|
7455
|
+
: "-")),
|
7456
|
+
React.createElement(Row, { className: "field" },
|
7457
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
|
7458
|
+
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.govDep
|
7459
|
+
? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails.govDep)]
|
7460
|
+
: "-")))),
|
7461
|
+
companyRole === CompanyRole.MINISTRY && (React.createElement(Row, { className: "field" },
|
7358
7462
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
|
7359
7463
|
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
|
7360
7464
|
? getEnumKeysFromValues(companyDetails.sectoralScope).join(", ")
|
7361
|
-
: "-")))),
|
7465
|
+
: "-"))))),
|
7362
7466
|
React.createElement(Row, { className: "field" },
|
7363
7467
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:email")),
|
7364
7468
|
React.createElement(Col, { span: 12, className: "field-value nextline-overflow" }, companyDetails.email ? companyDetails.email : "-")),
|
@@ -7865,7 +7969,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7865
7969
|
} })))))));
|
7866
7970
|
};
|
7867
7971
|
|
7868
|
-
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";
|
7972
|
+
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";
|
7869
7973
|
styleInject(css_248z$o);
|
7870
7974
|
|
7871
7975
|
function commonjsRequire(path) {
|
@@ -13624,7 +13728,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
13624
13728
|
var userInfoState = useUserContext().userInfoState;
|
13625
13729
|
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
13626
13730
|
var _f = useState(false), loadingList = _f[0], setLoadingList = _f[1];
|
13627
|
-
var _g = useState()
|
13731
|
+
var _g = useState(); _g[0]; var setNdcScopeChanged = _g[1];
|
13628
13732
|
var _h = useState(), ndcScopeValue = _h[0], setNdcScopeValue = _h[1];
|
13629
13733
|
var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
13630
13734
|
var _k = useState(0), current = _k[0], setCurrent = _k[1];
|
@@ -13644,6 +13748,10 @@ var ProgrammeCreationComponent = function (props) {
|
|
13644
13748
|
var _z = useState([]), availableSecoralScope = _z[0], setAvailableSectoralScope = _z[1];
|
13645
13749
|
var _0 = useState([]), selectableSectoralScope = _0[0], setSelectableSectoralScope = _0[1];
|
13646
13750
|
var _1 = useState([]), availableSectar = _1[0], setAvailableSectar = _1[1];
|
13751
|
+
var _2 = useState(true), article6trade = _2[0], setArticletrade = _2[1];
|
13752
|
+
var _3 = useState([]), ministryList = _3[0], setMinistryList = _3[1];
|
13753
|
+
var _4 = useState(); _4[0]; _4[1];
|
13754
|
+
var _5 = useState(), implementOwner = _5[0], setimplementOwner = _5[1];
|
13647
13755
|
// const initialOrganisationOwnershipValues: any[] = [
|
13648
13756
|
// {
|
13649
13757
|
// organisation:
|
@@ -13768,7 +13876,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
13768
13876
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyName),
|
13769
13877
|
proponentPercentage: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
13770
13878
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY &&
|
13771
|
-
|
13879
|
+
100 - Number(response === null || response === void 0 ? void 0 : response.data[0].nationalSopValue),
|
13772
13880
|
},
|
13773
13881
|
]);
|
13774
13882
|
setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
|
@@ -13787,8 +13895,96 @@ var ProgrammeCreationComponent = function (props) {
|
|
13787
13895
|
}
|
13788
13896
|
});
|
13789
13897
|
}); };
|
13898
|
+
var getMinistryDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
13899
|
+
var response, error_4;
|
13900
|
+
return __generator(this, function (_a) {
|
13901
|
+
switch (_a.label) {
|
13902
|
+
case 0:
|
13903
|
+
setLoading(true);
|
13904
|
+
_a.label = 1;
|
13905
|
+
case 1:
|
13906
|
+
_a.trys.push([1, 3, 4, 5]);
|
13907
|
+
console.log("getting Ministry profile");
|
13908
|
+
return [4 /*yield*/, post("national/organisation/query", {
|
13909
|
+
page: 1,
|
13910
|
+
size: 100,
|
13911
|
+
filterOr: [
|
13912
|
+
{
|
13913
|
+
key: "companyRole",
|
13914
|
+
operation: "=",
|
13915
|
+
value: CompanyRole.MINISTRY,
|
13916
|
+
},
|
13917
|
+
{
|
13918
|
+
key: "companyRole",
|
13919
|
+
operation: "=",
|
13920
|
+
value: CompanyRole.GOVERNMENT,
|
13921
|
+
},
|
13922
|
+
],
|
13923
|
+
})];
|
13924
|
+
case 2:
|
13925
|
+
response = _a.sent();
|
13926
|
+
if (response.data) {
|
13927
|
+
setMinistryList(response === null || response === void 0 ? void 0 : response.data);
|
13928
|
+
}
|
13929
|
+
return [3 /*break*/, 5];
|
13930
|
+
case 3:
|
13931
|
+
error_4 = _a.sent();
|
13932
|
+
console.log("Error in getting ministry data", error_4);
|
13933
|
+
return [3 /*break*/, 5];
|
13934
|
+
case 4:
|
13935
|
+
setLoading(false);
|
13936
|
+
return [7 /*endfinally*/];
|
13937
|
+
case 5: return [2 /*return*/];
|
13938
|
+
}
|
13939
|
+
});
|
13940
|
+
}); };
|
13941
|
+
var getImplementOwnerDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
13942
|
+
var response, error_5;
|
13943
|
+
var _a, _b;
|
13944
|
+
return __generator(this, function (_c) {
|
13945
|
+
switch (_c.label) {
|
13946
|
+
case 0:
|
13947
|
+
setLoading(true);
|
13948
|
+
_c.label = 1;
|
13949
|
+
case 1:
|
13950
|
+
_c.trys.push([1, 3, , 4]);
|
13951
|
+
return [4 /*yield*/, post("national/user/query", {
|
13952
|
+
page: 1,
|
13953
|
+
size: 10,
|
13954
|
+
filterAnd: [
|
13955
|
+
{
|
13956
|
+
key: "id",
|
13957
|
+
operation: "=",
|
13958
|
+
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.id,
|
13959
|
+
},
|
13960
|
+
],
|
13961
|
+
})];
|
13962
|
+
case 2:
|
13963
|
+
response = _c.sent();
|
13964
|
+
if (response && response.data) {
|
13965
|
+
if ((_a = response === null || response === void 0 ? void 0 : response.data[0]) === null || _a === void 0 ? void 0 : _a.company) {
|
13966
|
+
setimplementOwner((_b = response === null || response === void 0 ? void 0 : response.data[0]) === null || _b === void 0 ? void 0 : _b.company);
|
13967
|
+
}
|
13968
|
+
}
|
13969
|
+
setLoading(false);
|
13970
|
+
return [3 /*break*/, 4];
|
13971
|
+
case 3:
|
13972
|
+
error_5 = _c.sent();
|
13973
|
+
console.log("Error in getting users", error_5);
|
13974
|
+
message.open({
|
13975
|
+
type: "error",
|
13976
|
+
content: error_5.message,
|
13977
|
+
duration: 3,
|
13978
|
+
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
13979
|
+
});
|
13980
|
+
setLoading(false);
|
13981
|
+
return [3 /*break*/, 4];
|
13982
|
+
case 4: return [2 /*return*/];
|
13983
|
+
}
|
13984
|
+
});
|
13985
|
+
}); };
|
13790
13986
|
var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
13791
|
-
var response, userOrganisation, taxId,
|
13987
|
+
var response, userOrganisation, taxId, error_6;
|
13792
13988
|
return __generator(this, function (_a) {
|
13793
13989
|
switch (_a.label) {
|
13794
13990
|
case 0:
|
@@ -13817,8 +14013,8 @@ var ProgrammeCreationComponent = function (props) {
|
|
13817
14013
|
}
|
13818
14014
|
return [3 /*break*/, 5];
|
13819
14015
|
case 3:
|
13820
|
-
|
13821
|
-
console.log("Error in getting organisation list",
|
14016
|
+
error_6 = _a.sent();
|
14017
|
+
console.log("Error in getting organisation list", error_6);
|
13822
14018
|
return [3 /*break*/, 5];
|
13823
14019
|
case 4:
|
13824
14020
|
setLoadingList(false);
|
@@ -13828,7 +14024,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
13828
14024
|
});
|
13829
14025
|
}); };
|
13830
14026
|
var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
13831
|
-
var response, sectScopeValues_1, sectSScope_1, sectors_1,
|
14027
|
+
var response, sectScopeValues_1, sectSScope_1, sectors_1, error_7;
|
13832
14028
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13833
14029
|
return __generator(this, function (_k) {
|
13834
14030
|
switch (_k.label) {
|
@@ -13888,11 +14084,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
13888
14084
|
setLoading(false);
|
13889
14085
|
return [3 /*break*/, 4];
|
13890
14086
|
case 3:
|
13891
|
-
|
13892
|
-
console.log("Error in getting users",
|
14087
|
+
error_7 = _k.sent();
|
14088
|
+
console.log("Error in getting users", error_7);
|
13893
14089
|
message.open({
|
13894
14090
|
type: "error",
|
13895
|
-
content:
|
14091
|
+
content: error_7.message,
|
13896
14092
|
duration: 3,
|
13897
14093
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
13898
14094
|
});
|
@@ -13907,8 +14103,10 @@ var ProgrammeCreationComponent = function (props) {
|
|
13907
14103
|
getCountryList();
|
13908
14104
|
getRegionList();
|
13909
14105
|
getGovernmentDetails();
|
14106
|
+
getMinistryDetails();
|
13910
14107
|
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) {
|
13911
14108
|
getUserDetails();
|
14109
|
+
getImplementOwnerDetails();
|
13912
14110
|
}
|
13913
14111
|
}, []);
|
13914
14112
|
var normFile = function (e) {
|
@@ -13925,46 +14123,74 @@ var ProgrammeCreationComponent = function (props) {
|
|
13925
14123
|
setCurrent(current - 1);
|
13926
14124
|
};
|
13927
14125
|
var onFinishStepOne = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
13928
|
-
var programmeDetails, ownershipPercentage,
|
13929
|
-
var _a, _b, _c, _d;
|
13930
|
-
return __generator(this, function (
|
13931
|
-
switch (
|
14126
|
+
var programmeDetails, totalPercentage, ownershipPercentage, duplicateIds, proponentTxIds, proponentPercentages, finalImplementingOwner, supportingOwners, propTaxIds, propTaxIds, environmentalImpactAssessmentData, logoBase64;
|
14127
|
+
var _a, _b, _c, _d, _e;
|
14128
|
+
return __generator(this, function (_f) {
|
14129
|
+
switch (_f.label) {
|
13932
14130
|
case 0:
|
13933
14131
|
setLoading(true);
|
13934
|
-
|
13935
|
-
|
13936
|
-
|
13937
|
-
|
13938
|
-
|
14132
|
+
if (article6trade) {
|
14133
|
+
ownershipPercentage = JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.ownershipPercentage));
|
14134
|
+
if (Number(govData.nationalSopValue) !== 0) {
|
14135
|
+
ownershipPercentage.push({
|
14136
|
+
organisation: govData.taxId,
|
14137
|
+
proponentPercentage: Number(govData.nationalSopValue),
|
14138
|
+
});
|
14139
|
+
}
|
14140
|
+
totalPercentage = ownershipPercentage.reduce(function (sum, field) { return sum + field.proponentPercentage; }, 0);
|
14141
|
+
proponentPercentages = ownershipPercentage.map(function (item) { return item.proponentPercentage; });
|
14142
|
+
proponentTxIds =
|
14143
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
14144
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14145
|
+
? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
|
14146
|
+
: ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
14147
|
+
propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
14148
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14149
|
+
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
|
14150
|
+
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
14151
|
+
console.log("proponentTxIds", proponentTxIds);
|
14152
|
+
console.log("ownershipPercentage", ownershipPercentage);
|
14153
|
+
}
|
14154
|
+
if (!article6trade) {
|
14155
|
+
ownershipPercentage = (values === null || values === void 0 ? void 0 : values.article6Percentage)
|
14156
|
+
? JSON.parse(JSON.stringify(values === null || values === void 0 ? void 0 : values.article6Percentage))
|
14157
|
+
: [];
|
14158
|
+
totalPercentage = 100;
|
14159
|
+
if ((values === null || values === void 0 ? void 0 : values.implementingOwner) && (values === null || values === void 0 ? void 0 : values.implementingOwner.length) > 0) {
|
14160
|
+
ownershipPercentage.push({
|
14161
|
+
organisation: implementOwner
|
14162
|
+
? implementOwner.taxId
|
14163
|
+
: values === null || values === void 0 ? void 0 : values.implementingOwner,
|
14164
|
+
proponentPercentage: 100,
|
14165
|
+
});
|
14166
|
+
}
|
14167
|
+
proponentPercentages = ownershipPercentage.map(function (item) {
|
14168
|
+
return item.proponentPercentage === "Supporting" ? 0 : 100;
|
13939
14169
|
});
|
14170
|
+
proponentTxIds = ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
14171
|
+
propTaxIds = proponentTxIds;
|
14172
|
+
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
14173
|
+
finalImplementingOwner = implementOwner
|
14174
|
+
? implementOwner.taxId
|
14175
|
+
: values === null || values === void 0 ? void 0 : values.implementingOwner;
|
14176
|
+
supportingOwners = (_a = values === null || values === void 0 ? void 0 : values.article6Percentage) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.organisation; });
|
14177
|
+
console.log("implementingOwner", finalImplementingOwner);
|
14178
|
+
console.log("supportingOwners", supportingOwners);
|
13940
14179
|
}
|
13941
|
-
|
13942
|
-
|
13943
|
-
|
13944
|
-
proponentTxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
13945
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
13946
|
-
? ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.slice(1).map(function (item) { return item.organisation; })
|
13947
|
-
: ownershipPercentage === null || ownershipPercentage === void 0 ? void 0 : ownershipPercentage.map(function (item) { return item.organisation; });
|
13948
|
-
logoBase64 = "";
|
13949
|
-
if (!(((_a = values === null || values === void 0 ? void 0 : values.designDocument) === null || _a === void 0 ? void 0 : _a.length) > 0)) return [3 /*break*/, 2];
|
13950
|
-
return [4 /*yield*/, getBase64((_b = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _b === void 0 ? void 0 : _b.originFileObj)];
|
14180
|
+
environmentalImpactAssessmentData = "";
|
14181
|
+
if (!(((_b = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment) === null || _b === void 0 ? void 0 : _b.length) > 0)) return [3 /*break*/, 2];
|
14182
|
+
return [4 /*yield*/, getBase64((_c = values === null || values === void 0 ? void 0 : values.environmentalImpactAssessment[0]) === null || _c === void 0 ? void 0 : _c.originFileObj)];
|
13951
14183
|
case 1:
|
13952
|
-
|
13953
|
-
|
14184
|
+
environmentalImpactAssessmentData = _f.sent();
|
14185
|
+
_f.label = 2;
|
13954
14186
|
case 2:
|
13955
|
-
|
13956
|
-
if (!(((
|
13957
|
-
return [4 /*yield*/, getBase64((
|
14187
|
+
logoBase64 = "";
|
14188
|
+
if (!(((_d = values === null || values === void 0 ? void 0 : values.designDocument) === null || _d === void 0 ? void 0 : _d.length) > 0)) return [3 /*break*/, 4];
|
14189
|
+
return [4 /*yield*/, getBase64((_e = values === null || values === void 0 ? void 0 : values.designDocument[0]) === null || _e === void 0 ? void 0 : _e.originFileObj)];
|
13958
14190
|
case 3:
|
13959
|
-
|
13960
|
-
|
14191
|
+
logoBase64 = _f.sent();
|
14192
|
+
_f.label = 4;
|
13961
14193
|
case 4:
|
13962
|
-
propTaxIds = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.GOVERNMENT &&
|
13963
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
13964
|
-
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds;
|
13965
|
-
duplicateIds = new Set(propTaxIds).size !== propTaxIds.length;
|
13966
|
-
console.log("proponentTxIds", proponentTxIds);
|
13967
|
-
console.log("ownershipPercentage", ownershipPercentage);
|
13968
14194
|
if (totalPercentage !== 100) {
|
13969
14195
|
if (Number(govData.nationalSopValue) !== 0) {
|
13970
14196
|
ownershipPercentage.pop();
|
@@ -14001,7 +14227,12 @@ var ProgrammeCreationComponent = function (props) {
|
|
14001
14227
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.MINISTRY
|
14002
14228
|
? __spreadArray([userOrgTaxId], proponentTxIds, true) : proponentTxIds,
|
14003
14229
|
proponentPercentage: proponentPercentages,
|
14004
|
-
|
14230
|
+
article6trade: article6trade,
|
14231
|
+
supportingowners: !article6trade ? supportingOwners : undefined,
|
14232
|
+
implementinguser: !article6trade ? finalImplementingOwner : undefined,
|
14233
|
+
programmeProperties: __assign(__assign({ buyerCountryEligibility: article6trade
|
14234
|
+
? values === null || values === void 0 ? void 0 : values.buyerCountryEligibility
|
14235
|
+
: 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 &&
|
14005
14236
|
(values === null || values === void 0 ? void 0 : values.ndcScope) !== null && {
|
14006
14237
|
ndcScope: (values === null || values === void 0 ? void 0 : values.ndcScope) === "true" ? true : false,
|
14007
14238
|
})), (includedInNDC !== undefined &&
|
@@ -14024,7 +14255,7 @@ var ProgrammeCreationComponent = function (props) {
|
|
14024
14255
|
});
|
14025
14256
|
}); };
|
14026
14257
|
var saveNewProgramme = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
|
14027
|
-
var response,
|
14258
|
+
var response, error_8;
|
14028
14259
|
return __generator(this, function (_a) {
|
14029
14260
|
switch (_a.label) {
|
14030
14261
|
case 0:
|
@@ -14047,11 +14278,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
14047
14278
|
onNavigateToProgrammeView();
|
14048
14279
|
return [3 /*break*/, 5];
|
14049
14280
|
case 3:
|
14050
|
-
|
14051
|
-
console.log("Error in programme creation - ",
|
14281
|
+
error_8 = _a.sent();
|
14282
|
+
console.log("Error in programme creation - ", error_8);
|
14052
14283
|
message.open({
|
14053
14284
|
type: "error",
|
14054
|
-
content:
|
14285
|
+
content: error_8 === null || error_8 === void 0 ? void 0 : error_8.message,
|
14055
14286
|
duration: 4,
|
14056
14287
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14057
14288
|
});
|
@@ -14067,7 +14298,9 @@ var ProgrammeCreationComponent = function (props) {
|
|
14067
14298
|
var programmeDetails = stepOneData;
|
14068
14299
|
programmeDetails.creditEst = Number(values === null || values === void 0 ? void 0 : values.creditEst);
|
14069
14300
|
programmeDetails.programmeProperties.estimatedProgrammeCostUSD = Number(values === null || values === void 0 ? void 0 : values.estimatedProgrammeCostUSD);
|
14070
|
-
programmeDetails.programmeProperties.carbonPriceUSDPerTon =
|
14301
|
+
programmeDetails.programmeProperties.carbonPriceUSDPerTon = article6trade
|
14302
|
+
? Number(values === null || values === void 0 ? void 0 : values.minViableCarbonPrice)
|
14303
|
+
: 0;
|
14071
14304
|
setProgrammeDetailsObj(programmeDetails);
|
14072
14305
|
return programmeDetails;
|
14073
14306
|
};
|
@@ -14080,7 +14313,8 @@ var ProgrammeCreationComponent = function (props) {
|
|
14080
14313
|
});
|
14081
14314
|
}); };
|
14082
14315
|
var onFormTwoValuesChane = function (changedValues, allValues) {
|
14083
|
-
if (
|
14316
|
+
if (article6trade &&
|
14317
|
+
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== undefined &&
|
14084
14318
|
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) !== null &&
|
14085
14319
|
(allValues === null || allValues === void 0 ? void 0 : allValues.creditEst) > 0 &&
|
14086
14320
|
(allValues === null || allValues === void 0 ? void 0 : allValues.estimatedProgrammeCostUSD) !== undefined &&
|
@@ -14112,13 +14346,11 @@ var ProgrammeCreationComponent = function (props) {
|
|
14112
14346
|
setIncludedInNDC(undefined);
|
14113
14347
|
}
|
14114
14348
|
};
|
14115
|
-
var
|
14116
|
-
|
14117
|
-
|
14118
|
-
|
14119
|
-
|
14120
|
-
setIncludedInNDC(value);
|
14121
|
-
}
|
14349
|
+
var onArticle6Trading = function (event) {
|
14350
|
+
setArticletrade(event.target.value);
|
14351
|
+
formOne.resetFields(["ownershipPercentage"]);
|
14352
|
+
formOne.resetFields(["article6Percentage"]);
|
14353
|
+
formOne.resetFields(["implementingOwner"]);
|
14122
14354
|
};
|
14123
14355
|
var onChangeGeoLocation = function (values) {
|
14124
14356
|
if (values.includes("National")) {
|
@@ -14127,22 +14359,19 @@ var ProgrammeCreationComponent = function (props) {
|
|
14127
14359
|
formOne.setFieldValue("geographicalLocation", __spreadArray([], newBuyerValues, true));
|
14128
14360
|
}
|
14129
14361
|
};
|
14130
|
-
var
|
14131
|
-
var _a, _b;
|
14132
|
-
|
14133
|
-
|
14362
|
+
var onChangeStepOne = function (changedValues, allValues) {
|
14363
|
+
var _a, _b, _c;
|
14364
|
+
var selectedCompanies;
|
14365
|
+
if (article6trade) {
|
14366
|
+
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; });
|
14367
|
+
var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
|
14368
|
+
? true
|
14369
|
+
: false;
|
14370
|
+
setOwnershipPercentageValidation(orgPercentValidation);
|
14134
14371
|
}
|
14135
|
-
else
|
14136
|
-
|
14372
|
+
else {
|
14373
|
+
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; });
|
14137
14374
|
}
|
14138
|
-
};
|
14139
|
-
var onChangeStepOne = function (changedValues, allValues) {
|
14140
|
-
var _a, _b;
|
14141
|
-
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; });
|
14142
|
-
var orgPercentValidation = ((_b = allValues === null || allValues === void 0 ? void 0 : allValues.ownershipPercentage[0]) === null || _b === void 0 ? void 0 : _b.proponentPercentage) === false
|
14143
|
-
? true
|
14144
|
-
: false;
|
14145
|
-
setOwnershipPercentageValidation(orgPercentValidation);
|
14146
14375
|
var uniqueOrgs = new Set(selectedCompanies);
|
14147
14376
|
setSelectedOrgs(__spreadArray([], uniqueOrgs, true));
|
14148
14377
|
};
|
@@ -14322,91 +14551,200 @@ var ProgrammeCreationComponent = function (props) {
|
|
14322
14551
|
React.createElement("div", { className: "addDoc-info" },
|
14323
14552
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: React.createElement("a", { style: { color: "#fff" }, href: "https://app-eff78ffabc4efb.app.unfccc.org/tools/cdm/testprodspt3/UNFCCC_CDM/Pages/PDDnew.aspx?t=pdd", target: "_blank" }, t("addProgramme:designDocTooltip")), overlayClassName: "custom-tooltip" },
|
14324
14553
|
React.createElement(InfoCircle, { color: "#000000", size: 12 })))),
|
14325
|
-
React.createElement(
|
14326
|
-
|
14327
|
-
|
14328
|
-
|
14329
|
-
|
14330
|
-
|
14331
|
-
|
14332
|
-
|
14333
|
-
|
14334
|
-
|
14335
|
-
|
14336
|
-
|
14337
|
-
|
14338
|
-
|
14339
|
-
|
14340
|
-
|
14341
|
-
|
14342
|
-
|
14343
|
-
|
14344
|
-
|
14345
|
-
|
14346
|
-
|
14347
|
-
|
14348
|
-
|
14349
|
-
|
14350
|
-
|
14351
|
-
|
14352
|
-
|
14353
|
-
|
14354
|
-
|
14355
|
-
React.createElement(
|
14356
|
-
|
14357
|
-
|
14358
|
-
|
14359
|
-
|
14360
|
-
|
14361
|
-
|
14362
|
-
|
14363
|
-
|
14364
|
-
|
14365
|
-
|
14366
|
-
|
14367
|
-
|
14368
|
-
|
14554
|
+
React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
|
14555
|
+
React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
|
14556
|
+
React.createElement(Row, { className: "in-ndc-row" },
|
14557
|
+
React.createElement(Col, { md: 16, lg: 18, xl: 18 },
|
14558
|
+
React.createElement("div", { className: "included-label" },
|
14559
|
+
React.createElement("div", null, t("addProgramme:article6trading")))),
|
14560
|
+
React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
|
14561
|
+
React.createElement(Radio.Group, { size: "middle", value: article6trade, onChange: onArticle6Trading, disabled: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
14562
|
+
CompanyRole.PROGRAMME_DEVELOPER },
|
14563
|
+
React.createElement("div", { className: "yes-no-radio-container" },
|
14564
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: true }, t("addProgramme:yes"))),
|
14565
|
+
React.createElement("div", { className: "yes-no-radio-container" },
|
14566
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: false }, t("addProgramme:no")))))))),
|
14567
|
+
article6trade && (React.createElement(React.Fragment, null,
|
14568
|
+
React.createElement(Form.Item, { label: t("addProgramme:buyerCountryEligibility"), name: "buyerCountryEligibility", initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.name, rules: [
|
14569
|
+
{
|
14570
|
+
required: false,
|
14571
|
+
},
|
14572
|
+
] },
|
14573
|
+
React.createElement(Select, { size: "large", loading: loadingList }, countries.map(function (country) { return (React.createElement(Select.Option, { key: country.alpha2, value: country.alpha2 }, country.name)); }))),
|
14574
|
+
govData &&
|
14575
|
+
Number(govData.nationalSopValue) !== 0 && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14576
|
+
React.createElement(Space, { wrap: true, style: {
|
14577
|
+
display: "flex",
|
14578
|
+
marginBottom: 8,
|
14579
|
+
}, align: "center", size: "large" },
|
14580
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14581
|
+
React.createElement(Form.Item, { label: t("addProgramme:company"), name: "governmentName", wrapperCol: { span: 24 }, className: "organisation", initialValue: govData
|
14582
|
+
? govData.name
|
14583
|
+
: "Government", required: true },
|
14584
|
+
React.createElement(Input, { size: "large", disabled: true })),
|
14585
|
+
React.createElement(Form.Item, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: "sopPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: govData
|
14586
|
+
? Number(govData.nationalSopValue)
|
14587
|
+
: 0 },
|
14588
|
+
React.createElement(InputNumber, { size: "large", disabled: true, min: 1, max: 100, formatter: function (value) {
|
14589
|
+
return "".concat(value, "%");
|
14590
|
+
}, parser: function (value) {
|
14591
|
+
return value.replace("%", "");
|
14592
|
+
} })))))),
|
14593
|
+
React.createElement(Form.List, { name: "ownershipPercentage", initialValue: initialOrganisationOwnershipValues }, function (fields, _a) {
|
14594
|
+
var add = _a.add, remove = _a.remove;
|
14595
|
+
return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14596
|
+
fields.map(function (_a) {
|
14597
|
+
var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
|
14598
|
+
return (React.createElement(Space, { wrap: true, key: key, style: {
|
14599
|
+
display: "flex",
|
14600
|
+
marginBottom: 8,
|
14601
|
+
}, align: "center", size: "large" },
|
14602
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14603
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:company"), name: [
|
14604
|
+
name,
|
14605
|
+
"organisation",
|
14606
|
+
], wrapperCol: { span: 24 }, className: "organisation", rules: [
|
14607
|
+
{
|
14608
|
+
required: true,
|
14609
|
+
message: "".concat(t("addProgramme:company"), " ").concat(t("isRequired")),
|
14610
|
+
validateTrigger: "onBlur",
|
14611
|
+
},
|
14612
|
+
], shouldUpdate: true }),
|
14613
|
+
React.createElement(Select, { size: "large", loading: loadingList, disabled: name === 0 &&
|
14614
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14615
|
+
CompanyRole.GOVERNMENT &&
|
14616
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14617
|
+
CompanyRole.MINISTRY }, organisationsList.map(function (organisation) { return (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId)) ||
|
14618
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14619
|
+
CompanyRole.GOVERNMENT &&
|
14620
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14621
|
+
CompanyRole.MINISTRY &&
|
14622
|
+
userOrgTaxId ===
|
14623
|
+
(organisation === null || organisation === void 0 ? void 0 : organisation.taxId)) }, organisation.name)); }))),
|
14624
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:proponentPercentage"), className: "ownership-percent", name: [
|
14625
|
+
name,
|
14626
|
+
"proponentPercentage",
|
14627
|
+
], labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, rules: [
|
14628
|
+
{
|
14629
|
+
required: true,
|
14630
|
+
message: "".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")),
|
14631
|
+
},
|
14632
|
+
{
|
14633
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
14634
|
+
return __generator(this, function (_a) {
|
14635
|
+
if (ownershipPercentageValidation &&
|
14636
|
+
name === 0) {
|
14637
|
+
throw new Error("".concat(t("addProgramme:proponentPercentage"), " ").concat(t("isRequired")));
|
14638
|
+
}
|
14639
|
+
return [2 /*return*/];
|
14640
|
+
});
|
14641
|
+
}); },
|
14642
|
+
},
|
14643
|
+
], shouldUpdate: true }),
|
14644
|
+
React.createElement(InputNumber, { size: "large", min: 1, max: 100, formatter: function (value) {
|
14645
|
+
return "".concat(value, "%");
|
14646
|
+
}, parser: function (value) {
|
14647
|
+
return value.replace("%", "");
|
14648
|
+
}, disabled: (fields === null || fields === void 0 ? void 0 : fields.length) < 2 &&
|
14649
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14650
|
+
CompanyRole.GOVERNMENT &&
|
14369
14651
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
14370
|
-
CompanyRole.MINISTRY
|
14371
|
-
|
14372
|
-
|
14373
|
-
|
14374
|
-
|
14375
|
-
|
14376
|
-
|
14377
|
-
|
14378
|
-
|
14379
|
-
|
14380
|
-
|
14381
|
-
|
14382
|
-
|
14383
|
-
|
14384
|
-
|
14385
|
-
|
14386
|
-
|
14387
|
-
|
14388
|
-
|
14389
|
-
|
14390
|
-
|
14391
|
-
|
14392
|
-
|
14393
|
-
|
14394
|
-
|
14395
|
-
|
14396
|
-
|
14397
|
-
|
14398
|
-
|
14399
|
-
|
14400
|
-
|
14401
|
-
|
14402
|
-
|
14403
|
-
|
14404
|
-
|
14405
|
-
}
|
14406
|
-
|
14407
|
-
|
14408
|
-
|
14409
|
-
|
14652
|
+
CompanyRole.MINISTRY })),
|
14653
|
+
(fields === null || fields === void 0 ? void 0 : fields.length) > 1 &&
|
14654
|
+
name !== 0 && (React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
|
14655
|
+
remove(name);
|
14656
|
+
} })))));
|
14657
|
+
}),
|
14658
|
+
React.createElement(Form.Item, null,
|
14659
|
+
React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
|
14660
|
+
}))),
|
14661
|
+
!article6trade && (React.createElement(React.Fragment, null,
|
14662
|
+
implementOwner ? (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14663
|
+
React.createElement(Space, { wrap: true, style: {
|
14664
|
+
display: "flex",
|
14665
|
+
marginBottom: 8,
|
14666
|
+
}, align: "center", size: "large" },
|
14667
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14668
|
+
React.createElement(Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", initialValue: implementOwner
|
14669
|
+
? implementOwner.name +
|
14670
|
+
" - " +
|
14671
|
+
Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(implementOwner.govDep)]
|
14672
|
+
: "Implementing Owner", required: true },
|
14673
|
+
React.createElement(Input, { size: "large", disabled: true })),
|
14674
|
+
React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: implementOwner
|
14675
|
+
? "Implementing"
|
14676
|
+
: "Supporting" },
|
14677
|
+
React.createElement(InputNumber, { size: "large", disabled: true })))))) : (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14678
|
+
React.createElement(Space, { wrap: true, style: {
|
14679
|
+
display: "flex",
|
14680
|
+
marginBottom: 8,
|
14681
|
+
}, align: "center", size: "large" },
|
14682
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14683
|
+
React.createElement(Form.Item, { label: t("addProgramme:governmentDepartment"), name: "implementingOwner", wrapperCol: { span: 24 }, className: "organisation", rules: [
|
14684
|
+
{
|
14685
|
+
required: true,
|
14686
|
+
message: "".concat(t("addProgramme:governmentDepartment"), " ").concat(t("isRequired")),
|
14687
|
+
},
|
14688
|
+
] },
|
14689
|
+
React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
|
14690
|
+
return organisation.govDep && (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId }, organisation.name +
|
14691
|
+
"-" +
|
14692
|
+
Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
|
14693
|
+
}))),
|
14694
|
+
React.createElement(Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },
|
14695
|
+
React.createElement(InputNumber, { size: "large", disabled: true })))))),
|
14696
|
+
React.createElement(Form.List, { name: "article6Percentage" }, function (fields, _a) {
|
14697
|
+
var add = _a.add, remove = _a.remove;
|
14698
|
+
return (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
14699
|
+
fields.map(function (_a) {
|
14700
|
+
var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
|
14701
|
+
return (React.createElement(Space, { wrap: true, key: key, style: {
|
14702
|
+
display: "flex",
|
14703
|
+
marginBottom: 8,
|
14704
|
+
}, align: "center", size: "large" },
|
14705
|
+
React.createElement("div", { className: "ownership-list-item" },
|
14706
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:governmentDepartment"), name: [
|
14707
|
+
name,
|
14708
|
+
"organisation",
|
14709
|
+
], rules: [
|
14710
|
+
{
|
14711
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
14712
|
+
return __generator(this, function (_a) {
|
14713
|
+
if (String(value).trim() === "" ||
|
14714
|
+
String(value).trim() ===
|
14715
|
+
undefined ||
|
14716
|
+
value === null ||
|
14717
|
+
value ===
|
14718
|
+
undefined) {
|
14719
|
+
throw new Error("".concat(t("addProgramme:governmentDepartment"), " shouldn't be empty"));
|
14720
|
+
}
|
14721
|
+
return [2 /*return*/];
|
14722
|
+
});
|
14723
|
+
}); },
|
14724
|
+
},
|
14725
|
+
], wrapperCol: { span: 24 }, className: "organisation", shouldUpdate: true }),
|
14726
|
+
React.createElement(Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
|
14727
|
+
var _a;
|
14728
|
+
return organisation.govDep && (React.createElement(Select.Option, { key: organisation.companyId, value: organisation.taxId, disabled: (selectedOrgs === null || selectedOrgs === void 0 ? void 0 : selectedOrgs.includes(organisation.taxId.trim())) ||
|
14729
|
+
(implementOwner === null || implementOwner === void 0 ? void 0 : implementOwner.taxId) ===
|
14730
|
+
organisation.taxId ||
|
14731
|
+
((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.implementingOwner.trim()) ===
|
14732
|
+
organisation.taxId }, organisation.name +
|
14733
|
+
" - " +
|
14734
|
+
Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisation.govDep)]));
|
14735
|
+
}))),
|
14736
|
+
React.createElement(Form.Item, __assign({}, restField, { label: t("addProgramme:ownership"), className: "ownership-percent", name: [
|
14737
|
+
name,
|
14738
|
+
"proponentPercentage",
|
14739
|
+
], initialValue: "Supporting", labelCol: { span: 24 }, wrapperCol: { span: 24 }, shouldUpdate: true }),
|
14740
|
+
React.createElement(InputNumber, { size: "large", disabled: true })),
|
14741
|
+
React.createElement(MinusCircleOutlined, { className: "dynamic-delete-button", onClick: function () {
|
14742
|
+
remove(name);
|
14743
|
+
} }))));
|
14744
|
+
}),
|
14745
|
+
React.createElement(Form.Item, null,
|
14746
|
+
React.createElement(Button, { type: "dashed", onClick: function () { return add(); }, icon: React.createElement(PlusOutlined, null) }))));
|
14747
|
+
}))),
|
14410
14748
|
React.createElement(Form.Item, { label: t("addProgramme:environmentalAssessmentRegistrationNo"), name: "environmentalAssessmentRegistrationNo", initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.environmentalAssessmentRegistrationNo, rules: [
|
14411
14749
|
{
|
14412
14750
|
required: true,
|
@@ -14534,25 +14872,6 @@ var ProgrammeCreationComponent = function (props) {
|
|
14534
14872
|
},
|
14535
14873
|
] },
|
14536
14874
|
React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeGeoLocation, loading: loadingList, className: "custom-select", allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))))),
|
14537
|
-
React.createElement(Row, { className: "selection-details-row", gutter: [16, 16] },
|
14538
|
-
React.createElement(Col, { md: 24, xl: 12, className: "in-ndc-col" },
|
14539
|
-
React.createElement(Row, { className: "in-ndc-row" },
|
14540
|
-
React.createElement(Col, { md: 16, lg: 18, xl: 18 },
|
14541
|
-
React.createElement("div", { className: "included-label" },
|
14542
|
-
React.createElement("div", null, t("addProgramme:inNDC")),
|
14543
|
-
React.createElement("div", { className: "info-container" },
|
14544
|
-
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("addProgramme:inNDCToolTip"), overlayClassName: "custom-tooltip" },
|
14545
|
-
React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
|
14546
|
-
React.createElement(Col, { md: 8, lg: 6, xl: 6, className: "included-val" },
|
14547
|
-
React.createElement(Radio.Group, { size: "middle", disabled: ndcScopeChanged, value: includedInNDC, onChange: onInCludedNDCChange },
|
14548
|
-
React.createElement("div", { className: "yes-no-radio-container" },
|
14549
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: true, onClick: function () {
|
14550
|
-
return onClickIncludedInNDCScope(true);
|
14551
|
-
} }, t("addProgramme:yes"))),
|
14552
|
-
React.createElement("div", { className: "yes-no-radio-container" },
|
14553
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: false, onClick: function () {
|
14554
|
-
return onClickIncludedInNDCScope(false);
|
14555
|
-
} }, t("addProgramme:no")))))))),
|
14556
14875
|
React.createElement("div", { className: "steps-actions" },
|
14557
14876
|
React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading, onClick: checkOrgPercentageValidation }, t("addProgramme:next"))))))),
|
14558
14877
|
},
|
@@ -14592,11 +14911,13 @@ var ProgrammeCreationComponent = function (props) {
|
|
14592
14911
|
},
|
14593
14912
|
] },
|
14594
14913
|
React.createElement(InputNumber, { size: "large", style: { width: "100%", paddingRight: 12 } })),
|
14595
|
-
React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
|
14596
|
-
React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } })))),
|
14914
|
+
article6trade && (React.createElement(Form.Item, { label: t("addProgramme:minViableCarbonPrice"), name: "minViableCarbonPrice" },
|
14915
|
+
React.createElement(InputNumber, { disabled: true, size: "large", style: { width: "100%", paddingRight: 12 } }))))),
|
14597
14916
|
React.createElement(Col, { xl: 12, md: 24 },
|
14598
14917
|
React.createElement("div", { className: "details-part-two" },
|
14599
|
-
React.createElement(Form.Item, { label:
|
14918
|
+
React.createElement(Form.Item, { label: article6trade
|
14919
|
+
? t("addProgramme:creditEst")
|
14920
|
+
: t("addProgramme:creditReduction"), name: "creditEst", rules: [
|
14600
14921
|
{
|
14601
14922
|
required: true,
|
14602
14923
|
message: "",
|
@@ -14608,7 +14929,9 @@ var ProgrammeCreationComponent = function (props) {
|
|
14608
14929
|
String(value).trim() === undefined ||
|
14609
14930
|
value === null ||
|
14610
14931
|
value === undefined) {
|
14611
|
-
throw new Error("".concat(
|
14932
|
+
throw new Error("".concat(article6trade
|
14933
|
+
? t("addProgramme:creditEst")
|
14934
|
+
: t("addProgramme:creditReduction"), " ").concat(t("isRequired")));
|
14612
14935
|
}
|
14613
14936
|
else if (!isNaN(value) &&
|
14614
14937
|
Number(value) > 0) {
|
@@ -15218,6 +15541,20 @@ var UserProfileComponent = function (props) {
|
|
15218
15541
|
React.createElement(Col, { span: 12, className: "field-key" }, t("userProfile:companyRole")),
|
15219
15542
|
React.createElement(Col, { span: 12, className: "field-value" },
|
15220
15543
|
React.createElement(CompanyRoleIcon, { role: organisationDetails.companyRole }))),
|
15544
|
+
((organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
|
15545
|
+
CompanyRole.MINISTRY ||
|
15546
|
+
(organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
|
15547
|
+
CompanyRole.GOVERNMENT) && (React.createElement(React.Fragment, null,
|
15548
|
+
React.createElement(Row, { className: "field" },
|
15549
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
|
15550
|
+
React.createElement(Col, { span: 12, className: "field-value" }, (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.ministry)
|
15551
|
+
? organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.ministry
|
15552
|
+
: "-")),
|
15553
|
+
React.createElement(Row, { className: "field" },
|
15554
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
|
15555
|
+
React.createElement(Col, { span: 12, className: "field-value" }, (organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.govDep)
|
15556
|
+
? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.govDep)]
|
15557
|
+
: "-")))),
|
15221
15558
|
(organisationDetails === null || organisationDetails === void 0 ? void 0 : organisationDetails.companyRole) ===
|
15222
15559
|
CompanyRole.MINISTRY && (React.createElement(React.Fragment, null,
|
15223
15560
|
React.createElement(Row, { className: "field" },
|