@undp/carbon-library 1.0.262-CARBON-386.1 → 1.0.262-CARBON-350.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6061,7 +6061,7 @@ var AddNewCompanyComponent = function (props) {
6061
6061
  React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
6062
6062
  React.createElement(antd.Col, { xl: 12, md: 24 },
6063
6063
  React.createElement("div", { className: "details-part-one" },
6064
- React.createElement(antd.Form.Item, { label: t("addCompany:name"), name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
6064
+ React.createElement(antd.Form.Item, { label: "Name", name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
6065
6065
  {
6066
6066
  required: true,
6067
6067
  message: "",
@@ -6073,7 +6073,7 @@ var AddNewCompanyComponent = function (props) {
6073
6073
  String(value).trim() === undefined ||
6074
6074
  value === null ||
6075
6075
  value === undefined) {
6076
- throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6076
+ throw new Error("Name ".concat(t("isRequired")));
6077
6077
  }
6078
6078
  return [2 /*return*/];
6079
6079
  });
@@ -6084,7 +6084,7 @@ var AddNewCompanyComponent = function (props) {
6084
6084
  companyRole !== exports.CompanyRole.MINISTRY
6085
6085
  ? (!isUpdate ||
6086
6086
  (isUpdate &&
6087
- companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.Form.Item, { label: t("addCompany:taxId"), initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.taxId, name: "taxId", rules: [
6087
+ companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.Form.Item, { label: "Tax ID", initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.taxId, name: "taxId", rules: [
6088
6088
  {
6089
6089
  required: true,
6090
6090
  message: "",
@@ -6096,7 +6096,7 @@ var AddNewCompanyComponent = function (props) {
6096
6096
  String(value).trim() === undefined ||
6097
6097
  value === null ||
6098
6098
  value === undefined) {
6099
- throw new Error("".concat(t("addCompany:taxId"), " ").concat(t("isRequired")));
6099
+ throw new Error("Tax ID ".concat(t("isRequired")));
6100
6100
  }
6101
6101
  return [2 /*return*/];
6102
6102
  });
@@ -6108,7 +6108,7 @@ var AddNewCompanyComponent = function (props) {
6108
6108
  companyRole !== exports.CompanyRole.MINISTRY
6109
6109
  ? (!isUpdate ||
6110
6110
  (isUpdate &&
6111
- companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.Form.Item, { label: t("addCompany:paymentId"), initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.paymentId, name: "paymentId", rules: [
6111
+ companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.Form.Item, { label: "Registration Payment ID", initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.paymentId, name: "paymentId", rules: [
6112
6112
  {
6113
6113
  required: true,
6114
6114
  message: "",
@@ -6120,7 +6120,7 @@ var AddNewCompanyComponent = function (props) {
6120
6120
  String(value).trim() === undefined ||
6121
6121
  value === null ||
6122
6122
  value === undefined) {
6123
- throw new Error("".concat(t("addCompany:paymentId"), " ").concat(t("isRequired")));
6123
+ throw new Error("Registration Payment ID ".concat(t("isRequired")));
6124
6124
  }
6125
6125
  return [2 /*return*/];
6126
6126
  });
@@ -6129,7 +6129,7 @@ var AddNewCompanyComponent = function (props) {
6129
6129
  ] },
6130
6130
  React.createElement(antd.Input, { size: "large" })))
6131
6131
  : null,
6132
- React.createElement(antd.Form.Item, { label: t("addCompany:email"), name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6132
+ React.createElement(antd.Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6133
6133
  {
6134
6134
  required: true,
6135
6135
  message: "",
@@ -6142,7 +6142,7 @@ var AddNewCompanyComponent = function (props) {
6142
6142
  String(value).trim() === undefined ||
6143
6143
  value === null ||
6144
6144
  value === undefined) {
6145
- throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6145
+ throw new Error("Email ".concat(t("isRequired")));
6146
6146
  }
6147
6147
  else {
6148
6148
  val = value.trim();
@@ -6160,7 +6160,7 @@ var AddNewCompanyComponent = function (props) {
6160
6160
  },
6161
6161
  ] },
6162
6162
  React.createElement(antd.Input, { size: "large" })),
6163
- React.createElement(antd.Form.Item, { className: "website", label: t("addCompany:website"), initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
6163
+ React.createElement(antd.Form.Item, { className: "website", label: "Website", initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
6164
6164
  {
6165
6165
  required: false,
6166
6166
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6170,7 +6170,7 @@ var AddNewCompanyComponent = function (props) {
6170
6170
  value !== null ||
6171
6171
  value !== undefined) {
6172
6172
  if (value && !validator.isURL("https://" + value))
6173
- throw new Error("".concat(t("addCompany:website"), " ").concat(t("isInvalid")));
6173
+ throw new Error("Website ".concat(t("isInvalid")));
6174
6174
  }
6175
6175
  return [2 /*return*/];
6176
6176
  });
@@ -6178,7 +6178,7 @@ var AddNewCompanyComponent = function (props) {
6178
6178
  },
6179
6179
  ], 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(); } },
6180
6180
  React.createElement(antd.Input, { addonBefore: "https://", size: "large" })),
6181
- React.createElement(antd.Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6181
+ React.createElement(antd.Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6182
6182
  {
6183
6183
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
6184
6184
  var isCorrectFormat;
@@ -6186,11 +6186,11 @@ var AddNewCompanyComponent = function (props) {
6186
6186
  return __generator(this, function (_f) {
6187
6187
  if (file === null || file === undefined) {
6188
6188
  if (!((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo))
6189
- throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6189
+ throw new Error("Organisation Logo ".concat(t("isRequired")));
6190
6190
  }
6191
6191
  else {
6192
6192
  if (file.length === 0) {
6193
- throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6193
+ throw new Error("Organisation Logo ".concat(t("isRequired")));
6194
6194
  }
6195
6195
  else {
6196
6196
  isCorrectFormat = false;
@@ -6220,8 +6220,8 @@ var AddNewCompanyComponent = function (props) {
6220
6220
  React.createElement(antd.Upload, { beforeUpload: function (file) {
6221
6221
  return false;
6222
6222
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6223
- React.createElement(antd.Button, { size: "large", icon: React.createElement(icons.UploadOutlined, null) }, t("addCompany:upload")))),
6224
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
6223
+ React.createElement(antd.Button, { size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload"))),
6224
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
6225
6225
  { required: true, message: "" },
6226
6226
  {
6227
6227
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6230,7 +6230,7 @@ var AddNewCompanyComponent = function (props) {
6230
6230
  String(value).trim() === undefined ||
6231
6231
  value === null ||
6232
6232
  value === undefined) {
6233
- throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6233
+ throw new Error("Address ".concat(t("isRequired")));
6234
6234
  }
6235
6235
  return [2 /*return*/];
6236
6236
  });
@@ -6243,7 +6243,7 @@ var AddNewCompanyComponent = function (props) {
6243
6243
  display: "flex",
6244
6244
  marginBottom: 8,
6245
6245
  }, align: "center", size: "large" },
6246
- React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
6246
+ React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
6247
6247
  { required: true, message: "" },
6248
6248
  {
6249
6249
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6252,7 +6252,7 @@ var AddNewCompanyComponent = function (props) {
6252
6252
  String(value).trim() === undefined ||
6253
6253
  value === null ||
6254
6254
  value === undefined) {
6255
- throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6255
+ throw new Error("National Share of Proceeds ".concat(t("isRequired")));
6256
6256
  }
6257
6257
  return [2 /*return*/];
6258
6258
  });
@@ -6262,10 +6262,10 @@ var AddNewCompanyComponent = function (props) {
6262
6262
  React.createElement(antd.InputNumber, { style: { width: "100%" }, size: "large", min: 0, max: 99, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) { return value.replace("%", ""); }, disabled: systemType == exports.CarbonSystemType.REGISTRY }))))))),
6263
6263
  React.createElement(antd.Col, { xl: 12, md: 24 },
6264
6264
  React.createElement("div", { className: "details-part-two" },
6265
- React.createElement(antd.Form.Item, { className: "role-group", label: t("addCompany:role"), name: "companyRole", initialValue: companyRole, rules: [
6265
+ React.createElement(antd.Form.Item, { className: "role-group", label: "Role", name: "companyRole", initialValue: companyRole, rules: [
6266
6266
  {
6267
6267
  required: true,
6268
- message: "".concat(t("addCompany:role"), " ").concat(t("isRequired")),
6268
+ message: "Role ".concat(t("isRequired")),
6269
6269
  },
6270
6270
  ] },
6271
6271
  React.createElement(antd.Radio.Group, { size: "large", disabled: isUpdate, onChange: onChangeCompanyRole, style: isGuest && { justifyContent: "start" } }, isUpdate ? (React.createElement("div", { className: "".concat(companyRoleClassName, "-radio-container") },
@@ -6279,10 +6279,10 @@ var AddNewCompanyComponent = function (props) {
6279
6279
  width: "45%",
6280
6280
  }
6281
6281
  : {} },
6282
- React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:viewerToolTip") },
6282
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6283
6283
  React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
6284
6284
  React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
6285
- t("addCompany:certifier")))),
6285
+ "Certifier"))),
6286
6286
  React.createElement("div", { className: "dev-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
6287
6287
  exports.CompanyRole.MINISTRY
6288
6288
  ? {
@@ -6290,18 +6290,18 @@ var AddNewCompanyComponent = function (props) {
6290
6290
  marginLeft: isGuest ? "30px" : 0,
6291
6291
  }
6292
6292
  : { marginLeft: isGuest ? "30px" : 0 } },
6293
- React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:programmeDeveleperToolTip") },
6293
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6294
6294
  React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6295
6295
  React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
6296
- t("addCompany:programmeDeveleper")))),
6296
+ "Developer"))),
6297
6297
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6298
6298
  exports.CompanyRole.MINISTRY &&
6299
6299
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6300
- React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
6300
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6301
6301
  React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6302
6302
  React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6303
- t("addCompany:min"))))))))),
6304
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: t("addCompany:ministerName"), name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
6303
+ "Ministry")))))))),
6304
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
6305
6305
  {
6306
6306
  required: true,
6307
6307
  message: "",
@@ -6313,7 +6313,7 @@ var AddNewCompanyComponent = function (props) {
6313
6313
  String(value).trim() === undefined ||
6314
6314
  value === null ||
6315
6315
  value === undefined) {
6316
- throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
6316
+ throw new Error("Name of the Minister ".concat(t("isRequired")));
6317
6317
  }
6318
6318
  return [2 /*return*/];
6319
6319
  });
@@ -6321,17 +6321,17 @@ var AddNewCompanyComponent = function (props) {
6321
6321
  },
6322
6322
  ] },
6323
6323
  React.createElement(antd.Input, { size: "large" }))),
6324
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
6324
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6325
6325
  {
6326
6326
  required: true,
6327
- message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
6327
+ message: "Sectoral Scope ".concat(t("isRequired")),
6328
6328
  },
6329
6329
  ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6330
6330
  React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(exports.SectoralScope).map(function (_a) {
6331
6331
  var key = _a[0], value = _a[1];
6332
6332
  return (React.createElement(antd.Select.Option, { key: value, value: value }, key));
6333
6333
  })))),
6334
- React.createElement(antd.Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
6334
+ React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
6335
6335
  {
6336
6336
  required: true,
6337
6337
  message: "",
@@ -6344,7 +6344,7 @@ var AddNewCompanyComponent = function (props) {
6344
6344
  String(value).trim() === undefined ||
6345
6345
  value === null ||
6346
6346
  value === undefined) {
6347
- throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6347
+ throw new Error("Phone Number ".concat(t("isRequired")));
6348
6348
  }
6349
6349
  else {
6350
6350
  phoneNo = PhoneInput.formatPhoneNumber(String(value));
@@ -6352,7 +6352,7 @@ var AddNewCompanyComponent = function (props) {
6352
6352
  if (phoneNo === null ||
6353
6353
  phoneNo === "" ||
6354
6354
  phoneNo === undefined) {
6355
- throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6355
+ throw new Error("Phone Number ".concat(t("isRequired")));
6356
6356
  }
6357
6357
  }
6358
6358
  }
@@ -6361,7 +6361,7 @@ var AddNewCompanyComponent = function (props) {
6361
6361
  }); },
6362
6362
  },
6363
6363
  ] },
6364
- React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6364
+ React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6365
6365
  regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.regions, rules: [
6366
6366
  {
6367
6367
  required: true,
@@ -6369,7 +6369,7 @@ var AddNewCompanyComponent = function (props) {
6369
6369
  },
6370
6370
  ] },
6371
6371
  React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(antd.Select.Option, { value: region }, region)); })))),
6372
- companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
6372
+ companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
6373
6373
  { required: true, message: "" },
6374
6374
  {
6375
6375
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6378,7 +6378,7 @@ var AddNewCompanyComponent = function (props) {
6378
6378
  String(value).trim() === undefined ||
6379
6379
  value === null ||
6380
6380
  value === undefined) {
6381
- throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6381
+ throw new Error("Address ".concat(t("isRequired")));
6382
6382
  }
6383
6383
  return [2 /*return*/];
6384
6384
  });
@@ -6392,7 +6392,7 @@ var AddNewCompanyComponent = function (props) {
6392
6392
  display: "flex",
6393
6393
  marginBottom: 8,
6394
6394
  }, align: "center", size: "large" },
6395
- React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
6395
+ React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
6396
6396
  { required: true, message: "" },
6397
6397
  {
6398
6398
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6401,7 +6401,7 @@ var AddNewCompanyComponent = function (props) {
6401
6401
  String(value).trim() === undefined ||
6402
6402
  value === null ||
6403
6403
  value === undefined) {
6404
- throw new Error("".concat(t("addCompany:omgePercentage"), " ").concat(t("isRequired")));
6404
+ throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
6405
6405
  }
6406
6406
  return [2 /*return*/];
6407
6407
  });
@@ -6411,7 +6411,7 @@ var AddNewCompanyComponent = function (props) {
6411
6411
  React.createElement(antd.InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
6412
6412
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(antd.Row, null,
6413
6413
  React.createElement(antd.Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6414
- React.createElement(antd.Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(antd.Button, { type: "primary", htmlType: "submit" }, t("addCompany:next")))))))));
6414
+ React.createElement(antd.Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(antd.Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
6415
6415
  };
6416
6416
  var CompanyAdminDetailsForm = function () {
6417
6417
  return (React.createElement("div", { className: "company-details-form-container" },
@@ -6419,7 +6419,7 @@ var AddNewCompanyComponent = function (props) {
6419
6419
  React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
6420
6420
  React.createElement(antd.Col, { xl: 12, md: 24 },
6421
6421
  React.createElement("div", { className: "details-part-one" },
6422
- React.createElement(antd.Form.Item, { label: t("addCompany:name"), name: "name", rules: [
6422
+ React.createElement(antd.Form.Item, { label: "Name", name: "name", rules: [
6423
6423
  {
6424
6424
  required: true,
6425
6425
  message: "",
@@ -6431,7 +6431,7 @@ var AddNewCompanyComponent = function (props) {
6431
6431
  String(value).trim() === undefined ||
6432
6432
  value === null ||
6433
6433
  value === undefined) {
6434
- throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6434
+ throw new Error("Name ".concat(t("isRequired")));
6435
6435
  }
6436
6436
  return [2 /*return*/];
6437
6437
  });
@@ -6439,15 +6439,15 @@ var AddNewCompanyComponent = function (props) {
6439
6439
  },
6440
6440
  ] },
6441
6441
  React.createElement(antd.Input, { size: "large" })),
6442
- React.createElement(antd.Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), rules: [
6442
+ React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", rules: [
6443
6443
  {
6444
6444
  required: false,
6445
6445
  },
6446
6446
  ] },
6447
- React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6447
+ React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6448
6448
  React.createElement(antd.Col, { xl: 12, md: 24 },
6449
6449
  React.createElement("div", { className: "details-part-two" },
6450
- React.createElement(antd.Form.Item, { label: t("addCompany:email"), name: "email", rules: [
6450
+ React.createElement(antd.Form.Item, { label: "Email", name: "email", rules: [
6451
6451
  {
6452
6452
  required: true,
6453
6453
  message: "",
@@ -6460,14 +6460,14 @@ var AddNewCompanyComponent = function (props) {
6460
6460
  String(value).trim() === undefined ||
6461
6461
  value === null ||
6462
6462
  value === undefined) {
6463
- throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6463
+ throw new Error("Email ".concat(t("isRequired")));
6464
6464
  }
6465
6465
  else {
6466
6466
  val = value.trim();
6467
6467
  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,}))$/;
6468
6468
  matches = val.match(reg) ? val.match(reg) : [];
6469
6469
  if (matches.length === 0) {
6470
- throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6470
+ throw new Error("Email ".concat(t("isInvalid")));
6471
6471
  }
6472
6472
  }
6473
6473
  return [2 /*return*/];
@@ -6477,8 +6477,8 @@ var AddNewCompanyComponent = function (props) {
6477
6477
  ] },
6478
6478
  React.createElement(antd.Input, { size: "large" }))))),
6479
6479
  React.createElement("div", { className: "steps-actions" },
6480
- current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, t("addCompany:submit"))),
6481
- current === 1 && (React.createElement(antd.Button, { onClick: function () { return prevOne(); }, loading: loading }, t("addCompany:back")))))));
6480
+ current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, "SUBMIT")),
6481
+ current === 1 && (React.createElement(antd.Button, { onClick: function () { return prevOne(); }, loading: loading }, "BACK"))))));
6482
6482
  };
6483
6483
  return (React.createElement("div", { className: "add-company-main-container" },
6484
6484
  React.createElement("div", { className: "title-container" },
@@ -18596,7 +18596,7 @@ var NdcActionDetails = function (props) {
18596
18596
  var css_248z$f = ".add-ndc-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-ndc-main-container .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n .add-ndc-main-container .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #ff4d4f !important; }\n .add-ndc-main-container .step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .add-ndc-main-container .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 .add-ndc-main-container .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541;\n white-space: nowrap; }\n .add-ndc-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-ndc-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #6642eb; }\n .add-ndc-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-ndc-main-container .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .add-ndc-main-container .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .add-ndc-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-ndc-main-container .adding-section .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: start;\n width: 100%; }\n .add-ndc-main-container .adding-section .design-upload-section .icon-color {\n color: #9155fd !important; }\n .add-ndc-main-container .adding-section .design-upload-section .ant-upload {\n width: 130px; }\n .add-ndc-main-container .adding-section .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 300px; }\n .add-ndc-main-container .adding-section .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .add-ndc-main-container .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: start;\n margin-left: 10px; }\n .add-ndc-main-container .upload-doc {\n height: 40px !important;\n margin-right: 240px; }\n .add-ndc-main-container .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n";
18597
18597
  styleInject(css_248z$f);
18598
18598
 
18599
- var css_248z$e = ".co-benifits-container {\n width: 100%; }\n .co-benifits-container .ant-form-item-label > label::after {\n content: none; }\n .co-benifits-container .ant-radio-button-wrapper {\n border-radius: 4px !important;\n color: rgba(140, 140, 140, 0.7) !important; }\n .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:first-child,\n .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:hover {\n color: rgba(140, 140, 140, 0.7);\n background-color: #ffffff;\n border-color: rgba(140, 140, 140, 0.7); }\n .co-benifits-container .view-section .ant-input[disabled] {\n color: rgba(140, 140, 140, 0.7) !important;\n background-color: #ffffff !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n .co-benifits-container .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .co-benifits-container .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .co-benifits-container .co-sub-title-text {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px;\n font-family: Inter;\n font-weight: 600;\n line-height: 22px; }\n .co-benifits-container .co-view-label-text {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px;\n font-family: Inter;\n font-weight: 400;\n line-height: 18.5px; }\n .co-benifits-container .benifits-tabs {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item {\n width: 100%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-form-item-label {\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio-container {\n width: 35%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container {\n display: flex;\n width: 88%;\n align-items: center;\n justify-content: center;\n padding-top: 1.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container .images {\n display: flex;\n border: 1px solid black;\n width: 100%;\n align-items: center;\n justify-content: center; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img {\n width: 100%;\n height: auto;\n border: 1px solid #e4e4e4;\n border-radius: 5px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img:hover {\n box-shadow: 0 0 11px rgba(33, 33, 33, 0.2); }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data {\n display: flex;\n width: 88%;\n align-items: center;\n justify-content: center;\n padding-top: 1.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data .images {\n display: flex;\n border: 1px solid black;\n width: 100%;\n align-items: center;\n justify-content: center; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data img {\n width: 100%;\n height: auto;\n border: 1px solid #e4e4e4;\n border-radius: 5px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section {\n width: 100%;\n display: flex;\n flex-direction: column; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .title {\n width: 100%;\n color: rgba(58, 53, 65, 0.5);\n font-weight: 600; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .field-margin {\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item {\n width: 100%;\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-form-item-label {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n margin-left: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio-container {\n width: 25%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section {\n width: 100%;\n display: flex;\n flex-direction: column; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .title {\n width: 100%;\n color: rgba(58, 53, 65, 0.5);\n font-weight: 600; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .field-margin {\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item {\n width: 100%;\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-form-item-label {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n margin-left: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio-container {\n width: 25%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .row .col {\n display: flex;\n flex-direction: column !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .assesment-tab-item Input {\n height: 40px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: start;\n width: 100%; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n max-width: 500px;\n margin-left: 5px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .upload-doc {\n height: 40px !important;\n margin-right: 240px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-form-item-label-left {\n padding-right: 5px; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item Input {\n height: 40px; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-form-item-label-left {\n padding-right: 5px; }\n .co-benifits-container .benifits-tabs .social-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .social-tab-item Input {\n height: 40px; }\n";
18599
+ var css_248z$e = ".co-benifits-container {\n width: 100%; }\n .co-benifits-container .ant-form-item-label > label::after {\n content: none; }\n .co-benifits-container .ant-radio-button-wrapper {\n border-radius: 4px !important;\n color: rgba(140, 140, 140, 0.7) !important; }\n .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:first-child,\n .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:hover {\n color: rgba(140, 140, 140, 0.7);\n background-color: #ffffff;\n border-color: rgba(140, 140, 140, 0.7); }\n .co-benifits-container .view-section .ant-input[disabled] {\n color: rgba(140, 140, 140, 0.7) !important;\n background-color: #ffffff !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n .co-benifits-container .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .co-benifits-container .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .co-benifits-container .co-sub-title-text {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px;\n font-family: Inter;\n font-weight: 600;\n line-height: 22px; }\n .co-benifits-container .co-sub-header-text {\n color: rgba(58, 53, 65, 0.5);\n font-size: 16px;\n font-family: Inter;\n font-weight: 600;\n line-height: 22px; }\n .co-benifits-container .co-view-label-text {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px;\n font-family: Inter;\n font-weight: 400;\n line-height: 18.5px; }\n .co-benifits-container .benifits-tabs {\n width: 100%; }\n .co-benifits-container .benifits-tabs .unfcccSdTool-section-title {\n text-align: center;\n margin-bottom: 5px;\n margin-top: 10px;\n font-weight: 700;\n color: rgba(58, 53, 65, 0.5); }\n .co-benifits-container .benifits-tabs .unfcccSdTool-section-title a {\n color: rgba(58, 53, 65, 0.5); }\n .co-benifits-container .benifits-tabs .unfccSdTool-section-wrapper {\n display: flex;\n justify-content: center;\n align-items: center; }\n .co-benifits-container .benifits-tabs .unfccSdTool-section-divider {\n border-bottom: 1px solid rgba(58, 53, 65, 0.5) !important;\n width: 100% !important; }\n .co-benifits-container .benifits-tabs .undpSesp-section-title {\n text-align: center;\n margin-bottom: 5px;\n margin-top: 5px;\n font-weight: 700;\n color: rgba(58, 53, 65, 0.5); }\n .co-benifits-container .benifits-tabs .undpSesp-section-wrapper {\n display: flex;\n justify-content: center;\n align-items: center; }\n .co-benifits-container .benifits-tabs .undpSesp-section-divider {\n border-bottom: 1px solid rgba(58, 53, 65, 0.5) !important;\n width: 100% !important;\n margin-bottom: 20px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item {\n width: 100%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-form-item-label {\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio-container {\n width: 35%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container {\n display: flex;\n width: 88%;\n align-items: center;\n justify-content: center;\n padding-top: 1.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container .images {\n display: flex;\n border: 1px solid black;\n width: 100%;\n align-items: center;\n justify-content: center; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img {\n width: 100%;\n height: auto;\n border: 1px solid #e4e4e4;\n border-radius: 5px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img:hover {\n box-shadow: 0 0 11px rgba(33, 33, 33, 0.2); }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data {\n display: flex;\n width: 88%;\n align-items: center;\n justify-content: center;\n padding-top: 1.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data .images {\n display: flex;\n border: 1px solid black;\n width: 100%;\n align-items: center;\n justify-content: center; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data img {\n width: 100%;\n height: auto;\n border: 1px solid #e4e4e4;\n border-radius: 5px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section {\n width: 100%;\n display: flex;\n flex-direction: column; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .title {\n width: 100%;\n color: rgba(58, 53, 65, 0.5);\n font-weight: 600; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .field-margin {\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item {\n width: 100%;\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-form-item-label {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n margin-left: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio-container {\n width: 25%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic {\n width: 95%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section {\n width: 100%;\n display: flex;\n flex-direction: column; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .title {\n width: 100%;\n color: rgba(58, 53, 65, 0.5);\n font-weight: 600; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .field-margin {\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item {\n width: 100%;\n padding-left: 2rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-form-item-label {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n text-align: left;\n justify-content: flex-start;\n white-space: initial; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group {\n width: 95%;\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n margin-right: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n margin-left: 1rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio-container {\n width: 25%;\n text-align: center;\n max-width: 90px; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .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 .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .anticon {\n margin-right: 0.5rem; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .co-benifits-tab-item .row .col {\n display: flex;\n flex-direction: column !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .assesment-tab-item Input {\n height: 40px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: start;\n width: 100%; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n max-width: 500px;\n margin-left: 5px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .upload-doc {\n height: 40px !important;\n margin-right: 240px; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n .co-benifits-container .benifits-tabs .assesment-tab-item .ant-form-item-label-left {\n padding-right: 5px; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item Input {\n height: 40px; }\n .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-form-item-label-left {\n padding-right: 5px; }\n .co-benifits-container .benifits-tabs .social-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view {\n margin-right: 2rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view .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 .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view-child {\n margin-right: 2rem;\n width: 28%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view-child .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 .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container-view-child .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .social-tab-item Input {\n height: 40px; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item {\n width: 95%;\n margin-left: 3rem; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-radio-group {\n text-align: center;\n align-items: center;\n justify-content: flex-end; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-radio-group .radio-container {\n margin-right: 1rem;\n width: 35%;\n max-width: 90px;\n text-align: center; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-radio-group .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 .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-radio-group .radio {\n width: 100%; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .social-environment-risk-title-section {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 15px;\n margin-top: 5px; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .social-environment-risk-title-section:not(:first-child) {\n border-top: 1px solid rgba(58, 53, 65, 0.5) !important; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .social-environment-risk-title-section:first-child {\n border-bottom: 1px solid rgba(58, 53, 65, 0.5) !important; }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .social-environment-risk-title {\n text-align: center;\n margin-bottom: 5px;\n margin-top: 10px;\n font-weight: 700;\n color: rgba(58, 53, 65, 0.5); }\n .co-benifits-container .benifits-tabs .social-environment-tab-item .ant-form-item-label > label {\n height: auto; }\n";
18600
18600
  styleInject(css_248z$e);
18601
18601
 
18602
18602
  var GenderParity = function (props) {
@@ -19698,6 +19698,13 @@ var Safeguards = function (props) {
19698
19698
  return (React.createElement(React.Fragment, null,
19699
19699
  viewOnly && !safeGuardViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
19700
19700
  ((viewOnly && safeGuardViewData) || !viewOnly) && (React.createElement("div", { className: "safeguard-tab-item" },
19701
+ React.createElement("div", { className: "undpSesp-section-wrapper" },
19702
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
19703
+ React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
19704
+ React.createElement("span", null,
19705
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("undpSespTitle")))),
19706
+ React.createElement(antd.Col, { span: 24 },
19707
+ React.createElement("div", { className: "undpSesp-section-divider" })))),
19701
19708
  React.createElement(antd.Form, { onValuesChange: onSafeguardValuesChanged, name: "safeguardDetails", labelWrap: true, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", form: form }, updatedFormElementList.map(function (sectionItem) {
19702
19709
  return (React.createElement(React.Fragment, null,
19703
19710
  (sectionItem.isVisible || !viewOnly) && (React.createElement("div", { style: { marginBottom: "15px" } },
@@ -19764,7 +19771,7 @@ var Safeguards = function (props) {
19764
19771
 
19765
19772
  var Environmental = function (props) {
19766
19773
  var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
19767
- translator.setDefaultNamespace('environment');
19774
+ translator.setDefaultNamespace("unfcccSdTool");
19768
19775
  var t = translator.t;
19769
19776
  var environmentalDetailsInitial = [
19770
19777
  {
@@ -20049,39 +20056,51 @@ var Environmental = function (props) {
20049
20056
  }, []);
20050
20057
  return (React.createElement("div", { className: "co-benifits-tab-item" },
20051
20058
  React.createElement(antd.Form, { name: "environmental-details", className: "benifits-details-environmental", labelCol: { md: 16, lg: 19, xl: 17 }, wrapperCol: { md: 8, lg: 5, xl: 7 }, layout: "horizontal", requiredMark: true, form: formOne, onFieldsChange: onFieldsChange, onValuesChange: onEnvironmentalValuesChanged },
20052
- (environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
20053
- React.createElement("div", { className: environmentalViewData ? "section view-section" : "section" }, environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.map(function (environmentalDetail) {
20054
- var _a;
20055
- return (React.createElement(React.Fragment, null,
20056
- React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
20057
- _a.map(function (field, index) {
20058
- return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
20059
- {
20060
- required: field === null || field === void 0 ? void 0 : field.required,
20061
- message: (field === null || field === void 0 ? void 0 : field.required) &&
20062
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20063
- },
20064
- ] },
20065
- React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
20066
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20067
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
20068
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20069
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
20070
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20071
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20072
- React.createElement("div", { className: "yes-no-radio-container" },
20073
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
20074
- React.createElement("div", { className: "yes-no-radio-container" },
20075
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
20076
- React.createElement("div", { className: "yes-no-radio-container" },
20077
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
20078
- })));
20079
- })))));
20059
+ React.createElement("div", { className: environmentalViewData ? "section view-section" : "section" },
20060
+ React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20061
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
20062
+ React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20063
+ React.createElement("span", null,
20064
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
20065
+ React.createElement(antd.Col, { span: 24 },
20066
+ React.createElement("div", { className: "unfccSdTool-section-divider" })),
20067
+ React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20068
+ React.createElement("span", null, t("environmental"))),
20069
+ React.createElement(antd.Col, { span: 24 },
20070
+ React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
20071
+ (environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })), environmentalDetails === null || environmentalDetails === void 0 ? void 0 :
20072
+ environmentalDetails.map(function (environmentalDetail) {
20073
+ var _a;
20074
+ return (React.createElement(React.Fragment, null,
20075
+ React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
20076
+ _a.map(function (field, index) {
20077
+ return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
20078
+ {
20079
+ required: field === null || field === void 0 ? void 0 : field.required,
20080
+ message: (field === null || field === void 0 ? void 0 : field.required) &&
20081
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20082
+ },
20083
+ ] },
20084
+ React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
20085
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20086
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
20087
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20088
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
20089
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20090
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20091
+ React.createElement("div", { className: "yes-no-radio-container" },
20092
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
20093
+ React.createElement("div", { className: "yes-no-radio-container" },
20094
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
20095
+ React.createElement("div", { className: "yes-no-radio-container" },
20096
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
20097
+ })));
20098
+ })))));
20080
20099
  };
20081
20100
 
20082
20101
  var Economic = function (props) {
20083
20102
  var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
20084
- translator.setDefaultNamespace("economic");
20103
+ translator.setDefaultNamespace("unfcccSdTool");
20085
20104
  var t = translator.t;
20086
20105
  var economicDetailsInitial = [
20087
20106
  {
@@ -20334,39 +20353,46 @@ var Economic = function (props) {
20334
20353
  }, []);
20335
20354
  return (React.createElement("div", { className: "co-benifits-tab-item" },
20336
20355
  React.createElement(antd.Form, { name: "economic-details", className: "benifits-details-economic", labelCol: { md: 16, lg: 19, xl: 17 }, wrapperCol: { md: 8, lg: 5, xl: 7 }, layout: "horizontal", requiredMark: true, form: formOne, onFieldsChange: onFieldsChange, onValuesChange: onEconomicValuesChanged },
20337
- (economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
20338
- React.createElement("div", { className: economicViewData ? "section view-section" : "section" }, economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.map(function (environmentalDetail) {
20339
- var _a;
20340
- return (React.createElement(React.Fragment, null,
20341
- React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
20342
- _a.map(function (field, index) {
20343
- return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
20344
- {
20345
- required: field === null || field === void 0 ? void 0 : field.required,
20346
- message: (field === null || field === void 0 ? void 0 : field.required) &&
20347
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20348
- },
20349
- ] },
20350
- React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
20351
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20352
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
20353
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20354
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
20355
- (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20356
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20357
- React.createElement("div", { className: "yes-no-radio-container" },
20358
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
20359
- React.createElement("div", { className: "yes-no-radio-container" },
20360
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
20361
- React.createElement("div", { className: "yes-no-radio-container" },
20362
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
20363
- })));
20364
- })))));
20356
+ React.createElement("div", { className: economicViewData ? "section view-section" : "section" },
20357
+ React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20358
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: '100%' } },
20359
+ React.createElement(antd.Col, { span: 24 },
20360
+ React.createElement("div", { className: "unfccSdTool-section-divider" })),
20361
+ React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20362
+ React.createElement("span", null, t("economic"))))),
20363
+ (economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })), economicDetails === null || economicDetails === void 0 ? void 0 :
20364
+ economicDetails.map(function (environmentalDetail) {
20365
+ var _a;
20366
+ return (React.createElement(React.Fragment, null,
20367
+ React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
20368
+ _a.map(function (field, index) {
20369
+ return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
20370
+ {
20371
+ required: field === null || field === void 0 ? void 0 : field.required,
20372
+ message: (field === null || field === void 0 ? void 0 : field.required) &&
20373
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20374
+ },
20375
+ ] },
20376
+ React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
20377
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20378
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
20379
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20380
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
20381
+ (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20382
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20383
+ React.createElement("div", { className: "yes-no-radio-container" },
20384
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
20385
+ React.createElement("div", { className: "yes-no-radio-container" },
20386
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
20387
+ React.createElement("div", { className: "yes-no-radio-container" },
20388
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
20389
+ })));
20390
+ })))));
20365
20391
  };
20366
20392
 
20367
20393
  var Social = function (props) {
20368
20394
  var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
20369
- translator.setDefaultNamespace("social");
20395
+ translator.setDefaultNamespace("unfcccSdTool");
20370
20396
  var t = translator.t;
20371
20397
  var form = antd.Form.useForm()[0];
20372
20398
  var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
@@ -20585,6 +20611,12 @@ var Social = function (props) {
20585
20611
  validateForm();
20586
20612
  });
20587
20613
  return (React.createElement("div", { className: "social-tab-item" },
20614
+ React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20615
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: '100%' } },
20616
+ React.createElement(antd.Col, { span: 24 },
20617
+ React.createElement("div", { className: "unfccSdTool-section-divider" })),
20618
+ React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20619
+ React.createElement("span", null, t("social"))))),
20588
20620
  viewOnly && !socialViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
20589
20621
  ((viewOnly && socialViewData) || !viewOnly) && (React.createElement(antd.Form, { name: "socialDetails", labelWrap: true, form: form, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", onValuesChange: onSocialValuesChanged }, SocialElementDetails.map(function (element) {
20590
20622
  return (React.createElement(React.Fragment, null,
@@ -20627,7 +20659,7 @@ var Social = function (props) {
20627
20659
  socialViewData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name) && (React.createElement("div", { className: "view-section" },
20628
20660
  React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
20629
20661
  React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
20630
- React.createElement("div", { className: "radio-container" },
20662
+ React.createElement("div", { className: "radio-container-view" },
20631
20663
  React.createElement(antd.Radio.Button, { className: "radio" }, socialViewData[element.name])))))),
20632
20664
  socialViewData[element.name] === exports.RadioButtonStatus.YES &&
20633
20665
  element.subItems.map(function (elementItem) {
@@ -20635,7 +20667,7 @@ var Social = function (props) {
20635
20667
  return (React.createElement(React.Fragment, null, socialViewData.hasOwnProperty(elementItem === null || elementItem === void 0 ? void 0 : elementItem.name) && (React.createElement("div", { className: "view-section" },
20636
20668
  React.createElement(antd.Form.Item, { label: elementItem.label, name: elementItem.name, className: "mg-left-4" },
20637
20669
  React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
20638
- React.createElement("div", { className: "radio-container" },
20670
+ React.createElement("div", { className: "radio-container-view-child" },
20639
20671
  React.createElement(antd.Radio.Button, { className: "radio" }, socialViewData[elementItem.name]))))))));
20640
20672
  }
20641
20673
  else if (elementItem.type === exports.FormElementType.Input) {
@@ -20650,12 +20682,464 @@ var Social = function (props) {
20650
20682
  })))));
20651
20683
  };
20652
20684
 
20685
+ var SocialEnvironmentalRisk = function (props) {
20686
+ var onFormSubmit = props.onFormSubmit, SocialEnvironmentalRiskData = props.SocialEnvironmentalRiskData, viewOnly = props.viewOnly, translator = props.translator;
20687
+ translator.setDefaultNamespace("socialEnvironmentalRisk");
20688
+ var t = translator.t;
20689
+ var form = antd.Form.useForm()[0];
20690
+ var _a = React.useState(), socialEnvironmentalFormDetails = _a[0], setSocialEnvironmentalFormDetails = _a[1];
20691
+ var _b = React.useState([
20692
+ {
20693
+ title: t("humanRightsSubHeader"),
20694
+ isTitleVisible: true,
20695
+ subItems: [
20696
+ {
20697
+ title: t("humanRights"),
20698
+ isTitleVisible: true,
20699
+ subItems: [
20700
+ {
20701
+ label: t("humanRightsQ1"),
20702
+ name: "humanRightsQ1",
20703
+ },
20704
+ {
20705
+ label: t("humanRightsQ2"),
20706
+ name: "humanRightsQ2",
20707
+ },
20708
+ {
20709
+ label: t("humanRightsQ3"),
20710
+ name: "humanRightsQ3",
20711
+ },
20712
+ {
20713
+ label: t("humanRightsQ4"),
20714
+ name: "humanRightsQ4",
20715
+ },
20716
+ {
20717
+ label: t("humanRightsQ5"),
20718
+ name: "humanRightsQ5",
20719
+ },
20720
+ {
20721
+ label: t("humanRightsQ6"),
20722
+ name: "humanRightsQ6",
20723
+ },
20724
+ {
20725
+ label: t("humanRightsQ7"),
20726
+ name: "humanRightsQ7",
20727
+ },
20728
+ ],
20729
+ },
20730
+ {
20731
+ title: t("genderEqalityWomenEmpower"),
20732
+ isTitleVisible: true,
20733
+ subItems: [
20734
+ {
20735
+ label: t("genderEqalityWomenEmpowerQ1"),
20736
+ name: "genderEqalityWomenEmpowerQ1",
20737
+ },
20738
+ {
20739
+ label: t("genderEqalityWomenEmpowerQ2"),
20740
+ name: "genderEqalityWomenEmpowerQ2",
20741
+ },
20742
+ {
20743
+ label: t("genderEqalityWomenEmpowerQ3"),
20744
+ name: "genderEqalityWomenEmpowerQ3",
20745
+ },
20746
+ {
20747
+ label: t("genderEqalityWomenEmpowerQ4"),
20748
+ name: "genderEqalityWomenEmpowerQ4",
20749
+ },
20750
+ {
20751
+ label: t("genderEqalityWomenEmpowerQ5"),
20752
+ name: "genderEqalityWomenEmpowerQ5",
20753
+ },
20754
+ ],
20755
+ },
20756
+ {
20757
+ title: t("accountability"),
20758
+ isTitleVisible: true,
20759
+ subItems: [
20760
+ {
20761
+ label: t("accountabilityQ1"),
20762
+ name: "accountabilityQ1",
20763
+ },
20764
+ {
20765
+ label: t("accountabilityQ2"),
20766
+ name: "AccountabilityQ2",
20767
+ },
20768
+ {
20769
+ label: t("accountabilityQ3"),
20770
+ name: "accountabilityQ3",
20771
+ },
20772
+ ],
20773
+ },
20774
+ ],
20775
+ },
20776
+ {
20777
+ title: t("standardSubHeader"),
20778
+ isTitleVisible: true,
20779
+ subItems: [
20780
+ {
20781
+ title: t("standard1"),
20782
+ isTitleVisible: true,
20783
+ subItems: [
20784
+ {
20785
+ label: t("standard1Q1"),
20786
+ name: "standard1Q1",
20787
+ },
20788
+ {
20789
+ label: t("standard1Q2"),
20790
+ name: "standard1Q2",
20791
+ },
20792
+ {
20793
+ label: t("standard1Q3"),
20794
+ name: "standard1Q3",
20795
+ },
20796
+ {
20797
+ label: t("standard1Q4"),
20798
+ name: "standard1Q4",
20799
+ },
20800
+ {
20801
+ label: t("standard1Q5"),
20802
+ name: "standard1Q5",
20803
+ },
20804
+ {
20805
+ label: t("standard1Q6"),
20806
+ name: "standard1Q6",
20807
+ },
20808
+ {
20809
+ label: t("standard1Q7"),
20810
+ name: "standard1Q7",
20811
+ },
20812
+ {
20813
+ label: t("standard1Q8"),
20814
+ name: "standard1Q8",
20815
+ },
20816
+ {
20817
+ label: t("standard1Q9"),
20818
+ name: "standard1Q9",
20819
+ },
20820
+ {
20821
+ label: t("standard1Q10"),
20822
+ name: "standard1Q10",
20823
+ },
20824
+ {
20825
+ label: t("standard1Q11"),
20826
+ name: "standard1Q11",
20827
+ },
20828
+ {
20829
+ label: t("standard1Q12"),
20830
+ name: "standard1Q12",
20831
+ },
20832
+ {
20833
+ label: t("standard1Q13"),
20834
+ name: "standard1Q13",
20835
+ },
20836
+ {
20837
+ label: t("standard1Q14"),
20838
+ name: "standard1Q14",
20839
+ },
20840
+ ],
20841
+ },
20842
+ {
20843
+ title: t("standard2"),
20844
+ isTitleVisible: true,
20845
+ subItems: [
20846
+ {
20847
+ label: t("standard2Q1"),
20848
+ name: "standard2Q1",
20849
+ },
20850
+ {
20851
+ label: t("standard2Q2"),
20852
+ name: "standard2Q2",
20853
+ },
20854
+ {
20855
+ label: t("standard2Q3"),
20856
+ name: "standard2Q3",
20857
+ },
20858
+ {
20859
+ label: t("standard2Q4"),
20860
+ name: "standard2Q4",
20861
+ },
20862
+ ],
20863
+ },
20864
+ {
20865
+ title: t("standard3"),
20866
+ isTitleVisible: true,
20867
+ subItems: [
20868
+ {
20869
+ label: t("standard3Q1"),
20870
+ name: "standard3Q1",
20871
+ },
20872
+ {
20873
+ label: t("standard3Q2"),
20874
+ name: "standard3Q2",
20875
+ },
20876
+ {
20877
+ label: t("standard3Q3"),
20878
+ name: "standard3Q3",
20879
+ },
20880
+ {
20881
+ label: t("standard3Q4"),
20882
+ name: "standard3Q4",
20883
+ },
20884
+ {
20885
+ label: t("standard3Q5"),
20886
+ name: "standard3Q5",
20887
+ },
20888
+ {
20889
+ label: t("standard3Q6"),
20890
+ name: "standard3Q6",
20891
+ },
20892
+ {
20893
+ label: t("standard3Q7"),
20894
+ name: "standard3Q7",
20895
+ },
20896
+ {
20897
+ label: t("standard3Q8"),
20898
+ name: "standard3Q8",
20899
+ },
20900
+ ],
20901
+ },
20902
+ {
20903
+ title: t("standard4"),
20904
+ isTitleVisible: true,
20905
+ subItems: [
20906
+ {
20907
+ label: t("standard4Q1"),
20908
+ name: "standard4Q1",
20909
+ },
20910
+ {
20911
+ label: t("standard4Q2"),
20912
+ name: "standard4Q2",
20913
+ },
20914
+ {
20915
+ label: t("standard4Q3"),
20916
+ name: "standard4Q3",
20917
+ },
20918
+ {
20919
+ label: t("standard4Q4"),
20920
+ name: "standard4Q4",
20921
+ },
20922
+ {
20923
+ label: t("standard4Q5"),
20924
+ name: "standard4Q5",
20925
+ },
20926
+ ],
20927
+ },
20928
+ {
20929
+ title: t("standard5"),
20930
+ isTitleVisible: true,
20931
+ subItems: [
20932
+ {
20933
+ label: t("standard5Q1"),
20934
+ name: "standard5Q1",
20935
+ },
20936
+ {
20937
+ label: t("standard5Q2"),
20938
+ name: "standard5Q2",
20939
+ },
20940
+ {
20941
+ label: t("standard5Q3"),
20942
+ name: "standard5Q3",
20943
+ },
20944
+ {
20945
+ label: t("standard5Q4"),
20946
+ name: "standard5Q4",
20947
+ },
20948
+ ],
20949
+ },
20950
+ {
20951
+ title: t("standard6"),
20952
+ isTitleVisible: true,
20953
+ subItems: [
20954
+ {
20955
+ label: t("standard6Q1"),
20956
+ name: "standard6Q1",
20957
+ },
20958
+ {
20959
+ label: t("standard6Q2"),
20960
+ name: "standard6Q2",
20961
+ },
20962
+ {
20963
+ label: t("standard6Q3"),
20964
+ name: "standard6Q3",
20965
+ },
20966
+ {
20967
+ label: t("standard6Q4"),
20968
+ name: "standard6Q4",
20969
+ },
20970
+ {
20971
+ label: t("standard6Q5"),
20972
+ name: "standard6Q5",
20973
+ },
20974
+ {
20975
+ label: t("standard6Q6"),
20976
+ name: "standard6Q6",
20977
+ },
20978
+ {
20979
+ label: t("standard6Q7"),
20980
+ name: "standard6Q7",
20981
+ },
20982
+ {
20983
+ label: t("standard6Q8"),
20984
+ name: "standard6Q8",
20985
+ },
20986
+ {
20987
+ label: t("standard6Q9"),
20988
+ name: "standard6Q9",
20989
+ },
20990
+ ],
20991
+ },
20992
+ {
20993
+ title: t("standard7"),
20994
+ isTitleVisible: true,
20995
+ subItems: [
20996
+ {
20997
+ label: t("standard7Q1"),
20998
+ name: "standard7Q1",
20999
+ },
21000
+ {
21001
+ label: t("standard7Q2"),
21002
+ name: "standard7Q2",
21003
+ },
21004
+ {
21005
+ label: t("standard7Q3"),
21006
+ name: "standard7Q3",
21007
+ },
21008
+ {
21009
+ label: t("standard7Q4"),
21010
+ name: "standard7Q4",
21011
+ },
21012
+ {
21013
+ label: t("standard7Q5"),
21014
+ name: "standard7Q5",
21015
+ },
21016
+ {
21017
+ label: t("standard7Q6"),
21018
+ name: "standard7Q6",
21019
+ },
21020
+ ],
21021
+ },
21022
+ {
21023
+ title: t("standard8"),
21024
+ isTitleVisible: true,
21025
+ subItems: [
21026
+ {
21027
+ label: t("standard8Q1"),
21028
+ name: "standard8Q1",
21029
+ },
21030
+ {
21031
+ label: t("standard8Q2"),
21032
+ name: "standard8Q2",
21033
+ },
21034
+ {
21035
+ label: t("standard8Q3"),
21036
+ name: "standard8Q3",
21037
+ },
21038
+ {
21039
+ label: t("standard8Q4"),
21040
+ name: "standard8Q4",
21041
+ },
21042
+ {
21043
+ label: t("standard8Q5"),
21044
+ name: "standard8Q5",
21045
+ },
21046
+ {
21047
+ label: t("standard8Q6"),
21048
+ name: "standard8Q6",
21049
+ },
21050
+ ],
21051
+ },
21052
+ ],
21053
+ },
21054
+ ]), socialEnvironmentalDetails = _b[0], setSocialEnvironmentalDetails = _b[1];
21055
+ React.useEffect(function () {
21056
+ onFormSubmit(socialEnvironmentalFormDetails);
21057
+ }, [socialEnvironmentalFormDetails]);
21058
+ React.useEffect(function () {
21059
+ if (SocialEnvironmentalRiskData && !viewOnly) {
21060
+ setSocialEnvironmentalFormDetails(SocialEnvironmentalRiskData);
21061
+ form.setFieldsValue(SocialEnvironmentalRiskData);
21062
+ }
21063
+ else if (SocialEnvironmentalRiskData && viewOnly) {
21064
+ checkHeaderAvailability();
21065
+ }
21066
+ }, [SocialEnvironmentalRiskData]);
21067
+ var checkHeaderAvailability = function () {
21068
+ socialEnvironmentalDetails.forEach(function (section) {
21069
+ section.isTitleVisible = false;
21070
+ section.subItems.forEach(function (subSection) {
21071
+ subSection.isTitleVisible = false;
21072
+ subSection.subItems.forEach(function (element) {
21073
+ if (SocialEnvironmentalRiskData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name)) {
21074
+ subSection.isTitleVisible = true;
21075
+ }
21076
+ });
21077
+ if (subSection.isTitleVisible) {
21078
+ section.isTitleVisible = true;
21079
+ }
21080
+ });
21081
+ });
21082
+ setSocialEnvironmentalDetails(socialEnvironmentalDetails);
21083
+ };
21084
+ var SocialEnvironmentalDetailsChanged = function (changedValues) { return __awaiter(void 0, void 0, void 0, function () {
21085
+ return __generator(this, function (_a) {
21086
+ setSocialEnvironmentalFormDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
21087
+ return [2 /*return*/];
21088
+ });
21089
+ }); };
21090
+ return (React.createElement("div", { className: "social-environment-tab-item" },
21091
+ viewOnly && !SocialEnvironmentalRiskData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
21092
+ ((viewOnly && SocialEnvironmentalRiskData) || !viewOnly) && (React.createElement(antd.Form, { name: "SocialEnvironmentalDetails", labelWrap: true, form: form, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", onValuesChange: SocialEnvironmentalDetailsChanged },
21093
+ !viewOnly &&
21094
+ socialEnvironmentalDetails.map(function (section) {
21095
+ return (React.createElement(React.Fragment, null,
21096
+ React.createElement("div", { className: "social-environment-risk-title-section" },
21097
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
21098
+ React.createElement(antd.Col, { span: 24, className: "social-environment-risk-title" },
21099
+ React.createElement("span", null, section.title)))),
21100
+ section.subItems.map(function (subSection) {
21101
+ return (React.createElement(React.Fragment, null,
21102
+ React.createElement("div", { style: { marginBottom: "15px" } },
21103
+ React.createElement("label", { className: "co-sub-title-text" }, subSection.title)),
21104
+ subSection.subItems.map(function (element) {
21105
+ return (React.createElement(antd.Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
21106
+ React.createElement(antd.Radio.Group, { size: "middle" },
21107
+ React.createElement("div", { className: "radio-container" },
21108
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21109
+ React.createElement("div", { className: "radio-container" },
21110
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))))));
21111
+ })));
21112
+ })));
21113
+ }),
21114
+ viewOnly &&
21115
+ SocialEnvironmentalRiskData &&
21116
+ socialEnvironmentalDetails.map(function (section) {
21117
+ return (React.createElement(React.Fragment, null,
21118
+ section.isTitleVisible && (React.createElement("div", { className: "social-environment-risk-title-section" },
21119
+ React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
21120
+ React.createElement(antd.Col, { span: 24, className: "social-environment-risk-title" },
21121
+ React.createElement("span", null, section.title))))),
21122
+ section.subItems.map(function (subSection) {
21123
+ return (React.createElement(React.Fragment, null,
21124
+ subSection.isTitleVisible && (React.createElement("div", { style: { marginBottom: "15px" } },
21125
+ React.createElement("label", { className: "co-sub-title-text" }, subSection.title))),
21126
+ subSection.subItems.map(function (element) {
21127
+ return (React.createElement(React.Fragment, null, SocialEnvironmentalRiskData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name) && (React.createElement("div", { className: "view-section" },
21128
+ React.createElement(antd.Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
21129
+ React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
21130
+ React.createElement("div", { className: "radio-container" },
21131
+ React.createElement(antd.Radio.Button, { className: "radio" }, SocialEnvironmentalRiskData[element.name]))))))));
21132
+ })));
21133
+ })));
21134
+ })))));
21135
+ };
21136
+
20653
21137
  var CoBenifitsComponent = function (props) {
20654
21138
  var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, translator = props.translator, useConnection = props.useConnection;
20655
21139
  var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
20656
21140
  var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
20657
21141
  var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
20658
- translator.setDefaultNamespace('coBenifits');
21142
+ translator.setDefaultNamespace("coBenifits");
20659
21143
  var t = translator.t;
20660
21144
  var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
20661
21145
  setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
@@ -20680,6 +21164,9 @@ var CoBenifitsComponent = function (props) {
20680
21164
  setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { socialValueDetails: socialValueDetails })); });
20681
21165
  setIsSocialFormValid(isFormValid);
20682
21166
  };
21167
+ var onSocialEnvironmentalFormSubmit = function (socialEnvironmentDetails) {
21168
+ setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { socialEnvironmentDetails: socialEnvironmentDetails })); });
21169
+ };
20683
21170
  var tabItems = [
20684
21171
  {
20685
21172
  label: t("coBenifits:sdgGoals"),
@@ -20696,34 +21183,27 @@ var CoBenifitsComponent = function (props) {
20696
21183
  children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false, translator: translator })),
20697
21184
  },
20698
21185
  {
20699
- label: t("coBenifits:safeguards"),
21186
+ label: t("coBenifits:undpSesp"),
20700
21187
  key: "3",
20701
21188
  children: (React.createElement(Safeguards, { safeGuardViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.safeguardDetails)) ||
20702
21189
  (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit, translator: translator })),
20703
21190
  },
20704
21191
  {
20705
- label: t("coBenifits:environmental"),
21192
+ label: t("coBenifits:unfcccSdTool"),
20706
21193
  key: "4",
20707
- children: (React.createElement(Environmental, { onFormSubmit: onEnvironmentalFormSubmit, environmentalViewData: viewOnly
20708
- ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
20709
- ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
20710
- : {}
20711
- : undefined, viewOnly: viewOnly || false, translator: translator })),
20712
- },
20713
- {
20714
- label: t("coBenifits:social"),
20715
- key: "5",
20716
- children: (React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
20717
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator })),
20718
- },
20719
- {
20720
- label: t("coBenifits:economic"),
20721
- key: "6",
20722
- children: (React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
20723
- ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
20724
- ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
20725
- : {}
20726
- : undefined, viewOnly: viewOnly || false, translator: translator })),
21194
+ children: (React.createElement(React.Fragment, null,
21195
+ React.createElement(Environmental, { onFormSubmit: onEnvironmentalFormSubmit, environmentalViewData: viewOnly
21196
+ ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
21197
+ ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
21198
+ : {}
21199
+ : undefined, viewOnly: viewOnly || false, translator: translator }),
21200
+ React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
21201
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator }),
21202
+ React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
21203
+ ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
21204
+ ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
21205
+ : {}
21206
+ : undefined, viewOnly: viewOnly || false, translator: translator }))),
20727
21207
  },
20728
21208
  {
20729
21209
  label: t("coBenifits:assessment"),
@@ -20731,6 +21211,12 @@ var CoBenifitsComponent = function (props) {
20731
21211
  children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
20732
21212
  (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
20733
21213
  },
21214
+ {
21215
+ label: t("coBenifits:socialEnvironmentalRisk"),
21216
+ key: "8",
21217
+ children: (React.createElement(SocialEnvironmentalRisk, { onFormSubmit: onSocialEnvironmentalFormSubmit, SocialEnvironmentalRiskData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialEnvironmentDetails)) ||
21218
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialEnvironmentDetails)), viewOnly: viewOnly || false, translator: translator })),
21219
+ },
20734
21220
  ];
20735
21221
  var onCoBenefitSubmit = function () {
20736
21222
  var economicOverallValidation = true;
@@ -20845,7 +21331,7 @@ var CoBenifitsComponent = function (props) {
20845
21331
  if (environmentalOverallValidation !== true) {
20846
21332
  antd.message.open({
20847
21333
  type: "error",
20848
- content: "Fill the required fields in Co-benifits Environmental section",
21334
+ content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20849
21335
  duration: 4,
20850
21336
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
20851
21337
  });
@@ -20854,7 +21340,7 @@ var CoBenifitsComponent = function (props) {
20854
21340
  if (!isSocialFormValid) {
20855
21341
  antd.message.open({
20856
21342
  type: "error",
20857
- content: "Fill the required fields in Co-benifits Social section",
21343
+ content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20858
21344
  duration: 4,
20859
21345
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
20860
21346
  });
@@ -20863,7 +21349,7 @@ var CoBenifitsComponent = function (props) {
20863
21349
  if (economicOverallValidation !== true) {
20864
21350
  antd.message.open({
20865
21351
  type: "error",
20866
- content: "Fill the required fields in Co-benifits Economic section",
21352
+ content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20867
21353
  duration: 4,
20868
21354
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
20869
21355
  });
@@ -20872,7 +21358,7 @@ var CoBenifitsComponent = function (props) {
20872
21358
  if (!isAssessmentFormValid) {
20873
21359
  antd.message.open({
20874
21360
  type: "error",
20875
- content: "Fill the required fields in Co-benifits Assessment section",
21361
+ content: "Fill the required fields in Co-benefits Assessment section",
20876
21362
  duration: 4,
20877
21363
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
20878
21364
  });
@@ -26288,7 +26774,7 @@ var NdcDetailsComponent = function (props) {
26288
26774
  return num >= min && num <= max;
26289
26775
  };
26290
26776
  function onAddNewSubNdcDetail() {
26291
- var range = selectedTab.split('-');
26777
+ var range = selectedTab.split("-");
26292
26778
  var ndcDetail = ndcDetailsData.find(function (item) { return item.key === selectedNdcDetail.current.key; });
26293
26779
  var ndcDetailItemIndex = ndcDetailsData.findIndex(function (item) { return item.key === selectedNdcDetail.current.key; });
26294
26780
  if (ndcDetail) {
@@ -26298,9 +26784,9 @@ var NdcDetailsComponent = function (props) {
26298
26784
  startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
26299
26785
  endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
26300
26786
  ndcActionId: ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.key,
26301
- nationalPlanObj: '',
26302
- kpi: '',
26303
- ministry: '',
26787
+ nationalPlanObj: "",
26788
+ kpi: "",
26789
+ ministry: "",
26304
26790
  };
26305
26791
  if (!ndcDetail.subNdcDetails) {
26306
26792
  ndcDetail.subNdcDetails = [];
@@ -26359,12 +26845,11 @@ var NdcDetailsComponent = function (props) {
26359
26845
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
26360
26846
  var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
26361
26847
  if (ndcDetail) {
26362
- if (((_b = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_a = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _a === void 0 ? void 0 : _a.length) - 1]) === null || _b === void 0 ? void 0 : _b.ministry.trim()) !== '' &&
26848
+ if (((_b = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_a = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _a === void 0 ? void 0 : _a.length) - 1]) === null || _b === void 0 ? void 0 : _b.ministry.trim()) !== "" &&
26363
26849
  ((_d = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_c = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _c === void 0 ? void 0 : _c.length) - 1]) === null || _d === void 0 ? void 0 : _d.ministry) &&
26364
- ((_f = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_e = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _e === void 0 ? void 0 : _e.length) - 1]) === null || _f === void 0 ? void 0 : _f.nationalPlanObj.trim()) !==
26365
- '' &&
26850
+ ((_f = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_e = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _e === void 0 ? void 0 : _e.length) - 1]) === null || _f === void 0 ? void 0 : _f.nationalPlanObj.trim()) !== "" &&
26366
26851
  ((_h = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_g = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _g === void 0 ? void 0 : _g.length) - 1]) === null || _h === void 0 ? void 0 : _h.nationalPlanObj) &&
26367
- String((_k = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_j = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _j === void 0 ? void 0 : _j.length) - 1]) === null || _k === void 0 ? void 0 : _k.kpi).trim() !== '' &&
26852
+ String((_k = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_j = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _j === void 0 ? void 0 : _j.length) - 1]) === null || _k === void 0 ? void 0 : _k.kpi).trim() !== "" &&
26368
26853
  String((_m = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_l = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _l === void 0 ? void 0 : _l.length) - 1]) === null || _m === void 0 ? void 0 : _m.kpi)) {
26369
26854
  onAddNewSubNdcDetail();
26370
26855
  }
@@ -26475,7 +26960,10 @@ var NdcDetailsComponent = function (props) {
26475
26960
  }
26476
26961
  var onCancelPeriod = function () { };
26477
26962
  var onAddNewPeriod = function () {
26478
- if (selectedPeriod && selectedPeriod.current) {
26963
+ if (selectedPeriod &&
26964
+ selectedPeriod.current &&
26965
+ selectedPeriod.current.start &&
26966
+ selectedPeriod.current.end) {
26479
26967
  var newPeriodItem_1 = {
26480
26968
  key: "".concat(selectedPeriod.current.start, "-").concat(selectedPeriod.current.end),
26481
26969
  label: "".concat(selectedPeriod.current.start, "-").concat(selectedPeriod.current.end),
@@ -26735,7 +27223,7 @@ var NdcDetailsComponent = function (props) {
26735
27223
  startDate: new Date("2022-03-25"),
26736
27224
  endDate: new Date("2023-03-25"),
26737
27225
  nationalPlanObj: "Other",
26738
- kpi: '',
27226
+ kpi: "",
26739
27227
  ministry: "Ministry of Environment",
26740
27228
  subNdcDetails: [
26741
27229
  {