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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -6041,7 +6041,7 @@ var AddNewCompanyComponent = function (props) {
6041
6041
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6042
6042
  React.createElement(Col, { xl: 12, md: 24 },
6043
6043
  React.createElement("div", { className: "details-part-one" },
6044
- React.createElement(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: [
6044
+ React.createElement(Form.Item, { label: t("addCompany:name"), name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
6045
6045
  {
6046
6046
  required: true,
6047
6047
  message: "",
@@ -6053,7 +6053,7 @@ var AddNewCompanyComponent = function (props) {
6053
6053
  String(value).trim() === undefined ||
6054
6054
  value === null ||
6055
6055
  value === undefined) {
6056
- throw new Error("Name ".concat(t("isRequired")));
6056
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6057
6057
  }
6058
6058
  return [2 /*return*/];
6059
6059
  });
@@ -6064,7 +6064,7 @@ var AddNewCompanyComponent = function (props) {
6064
6064
  companyRole !== CompanyRole.MINISTRY
6065
6065
  ? (!isUpdate ||
6066
6066
  (isUpdate &&
6067
- companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(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: [
6067
+ companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(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: [
6068
6068
  {
6069
6069
  required: true,
6070
6070
  message: "",
@@ -6076,7 +6076,7 @@ var AddNewCompanyComponent = function (props) {
6076
6076
  String(value).trim() === undefined ||
6077
6077
  value === null ||
6078
6078
  value === undefined) {
6079
- throw new Error("Tax ID ".concat(t("isRequired")));
6079
+ throw new Error("".concat(t("addCompany:taxId"), " ").concat(t("isRequired")));
6080
6080
  }
6081
6081
  return [2 /*return*/];
6082
6082
  });
@@ -6088,7 +6088,7 @@ var AddNewCompanyComponent = function (props) {
6088
6088
  companyRole !== CompanyRole.MINISTRY
6089
6089
  ? (!isUpdate ||
6090
6090
  (isUpdate &&
6091
- companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(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: [
6091
+ companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(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: [
6092
6092
  {
6093
6093
  required: true,
6094
6094
  message: "",
@@ -6100,7 +6100,7 @@ var AddNewCompanyComponent = function (props) {
6100
6100
  String(value).trim() === undefined ||
6101
6101
  value === null ||
6102
6102
  value === undefined) {
6103
- throw new Error("Registration Payment ID ".concat(t("isRequired")));
6103
+ throw new Error("".concat(t("addCompany:paymentId"), " ").concat(t("isRequired")));
6104
6104
  }
6105
6105
  return [2 /*return*/];
6106
6106
  });
@@ -6109,7 +6109,7 @@ var AddNewCompanyComponent = function (props) {
6109
6109
  ] },
6110
6110
  React.createElement(Input, { size: "large" })))
6111
6111
  : null,
6112
- React.createElement(Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6112
+ React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6113
6113
  {
6114
6114
  required: true,
6115
6115
  message: "",
@@ -6122,7 +6122,7 @@ var AddNewCompanyComponent = function (props) {
6122
6122
  String(value).trim() === undefined ||
6123
6123
  value === null ||
6124
6124
  value === undefined) {
6125
- throw new Error("Email ".concat(t("isRequired")));
6125
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6126
6126
  }
6127
6127
  else {
6128
6128
  val = value.trim();
@@ -6140,7 +6140,7 @@ var AddNewCompanyComponent = function (props) {
6140
6140
  },
6141
6141
  ] },
6142
6142
  React.createElement(Input, { size: "large" })),
6143
- React.createElement(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: [
6143
+ React.createElement(Form.Item, { className: "website", label: t("addCompany:website"), initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
6144
6144
  {
6145
6145
  required: false,
6146
6146
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6150,7 +6150,7 @@ var AddNewCompanyComponent = function (props) {
6150
6150
  value !== null ||
6151
6151
  value !== undefined) {
6152
6152
  if (value && !validator.isURL("https://" + value))
6153
- throw new Error("Website ".concat(t("isInvalid")));
6153
+ throw new Error("".concat(t("addCompany:website"), " ").concat(t("isInvalid")));
6154
6154
  }
6155
6155
  return [2 /*return*/];
6156
6156
  });
@@ -6158,7 +6158,7 @@ var AddNewCompanyComponent = function (props) {
6158
6158
  },
6159
6159
  ], 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(); } },
6160
6160
  React.createElement(Input, { addonBefore: "https://", size: "large" })),
6161
- React.createElement(Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6161
+ React.createElement(Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6162
6162
  {
6163
6163
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
6164
6164
  var isCorrectFormat;
@@ -6166,11 +6166,11 @@ var AddNewCompanyComponent = function (props) {
6166
6166
  return __generator(this, function (_f) {
6167
6167
  if (file === null || file === undefined) {
6168
6168
  if (!((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo))
6169
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6169
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6170
6170
  }
6171
6171
  else {
6172
6172
  if (file.length === 0) {
6173
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6173
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6174
6174
  }
6175
6175
  else {
6176
6176
  isCorrectFormat = false;
@@ -6200,8 +6200,8 @@ var AddNewCompanyComponent = function (props) {
6200
6200
  React.createElement(Upload, { beforeUpload: function (file) {
6201
6201
  return false;
6202
6202
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6203
- React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, "Upload"))),
6204
- companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
6203
+ React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, t("addCompany:upload")))),
6204
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
6205
6205
  { required: true, message: "" },
6206
6206
  {
6207
6207
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6210,7 +6210,7 @@ var AddNewCompanyComponent = function (props) {
6210
6210
  String(value).trim() === undefined ||
6211
6211
  value === null ||
6212
6212
  value === undefined) {
6213
- throw new Error("Address ".concat(t("isRequired")));
6213
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6214
6214
  }
6215
6215
  return [2 /*return*/];
6216
6216
  });
@@ -6223,7 +6223,7 @@ var AddNewCompanyComponent = function (props) {
6223
6223
  display: "flex",
6224
6224
  marginBottom: 8,
6225
6225
  }, align: "center", size: "large" },
6226
- React.createElement(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: [
6226
+ React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
6227
6227
  { required: true, message: "" },
6228
6228
  {
6229
6229
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6232,7 +6232,7 @@ var AddNewCompanyComponent = function (props) {
6232
6232
  String(value).trim() === undefined ||
6233
6233
  value === null ||
6234
6234
  value === undefined) {
6235
- throw new Error("National Share of Proceeds ".concat(t("isRequired")));
6235
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6236
6236
  }
6237
6237
  return [2 /*return*/];
6238
6238
  });
@@ -6242,10 +6242,10 @@ var AddNewCompanyComponent = function (props) {
6242
6242
  React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 0, max: 99, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) { return value.replace("%", ""); }, disabled: systemType == CarbonSystemType.REGISTRY }))))))),
6243
6243
  React.createElement(Col, { xl: 12, md: 24 },
6244
6244
  React.createElement("div", { className: "details-part-two" },
6245
- React.createElement(Form.Item, { className: "role-group", label: "Role", name: "companyRole", initialValue: companyRole, rules: [
6245
+ React.createElement(Form.Item, { className: "role-group", label: t("addCompany:role"), name: "companyRole", initialValue: companyRole, rules: [
6246
6246
  {
6247
6247
  required: true,
6248
- message: "Role ".concat(t("isRequired")),
6248
+ message: "".concat(t("addCompany:role"), " ").concat(t("isRequired")),
6249
6249
  },
6250
6250
  ] },
6251
6251
  React.createElement(Radio.Group, { size: "large", disabled: isUpdate, onChange: onChangeCompanyRole, style: isGuest && { justifyContent: "start" } }, isUpdate ? (React.createElement("div", { className: "".concat(companyRoleClassName, "-radio-container") },
@@ -6259,10 +6259,10 @@ var AddNewCompanyComponent = function (props) {
6259
6259
  width: "45%",
6260
6260
  }
6261
6261
  : {} },
6262
- React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6262
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:viewerToolTip") },
6263
6263
  React.createElement(Radio.Button, { className: "certifier", value: "Certifier" },
6264
6264
  React.createElement(SafetyOutlined, { className: "role-icons" }),
6265
- "Certifier"))),
6265
+ t("addCompany:certifier")))),
6266
6266
  React.createElement("div", { className: "dev-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
6267
6267
  CompanyRole.MINISTRY
6268
6268
  ? {
@@ -6270,18 +6270,18 @@ var AddNewCompanyComponent = function (props) {
6270
6270
  marginLeft: isGuest ? "30px" : 0,
6271
6271
  }
6272
6272
  : { marginLeft: isGuest ? "30px" : 0 } },
6273
- React.createElement(Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6273
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:programmeDeveleperToolTip") },
6274
6274
  React.createElement(Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6275
6275
  React.createElement(ExperimentOutlined, { className: "role-icons" }),
6276
- "Developer"))),
6276
+ t("addCompany:programmeDeveleper")))),
6277
6277
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6278
6278
  CompanyRole.MINISTRY &&
6279
6279
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6280
- React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6280
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
6281
6281
  React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6282
6282
  React.createElement(AuditOutlined, { className: "role-icons" }),
6283
- "Ministry")))))))),
6284
- companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
6283
+ t("addCompany:min"))))))))),
6284
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:ministerName"), name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
6285
6285
  {
6286
6286
  required: true,
6287
6287
  message: "",
@@ -6293,7 +6293,7 @@ var AddNewCompanyComponent = function (props) {
6293
6293
  String(value).trim() === undefined ||
6294
6294
  value === null ||
6295
6295
  value === undefined) {
6296
- throw new Error("Name of the Minister ".concat(t("isRequired")));
6296
+ throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
6297
6297
  }
6298
6298
  return [2 /*return*/];
6299
6299
  });
@@ -6301,17 +6301,17 @@ var AddNewCompanyComponent = function (props) {
6301
6301
  },
6302
6302
  ] },
6303
6303
  React.createElement(Input, { size: "large" }))),
6304
- companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6304
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
6305
6305
  {
6306
6306
  required: true,
6307
- message: "Sectoral Scope ".concat(t("isRequired")),
6307
+ message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
6308
6308
  },
6309
6309
  ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6310
6310
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
6311
6311
  var key = _a[0], value = _a[1];
6312
6312
  return (React.createElement(Select.Option, { key: value, value: value }, key));
6313
6313
  })))),
6314
- React.createElement(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: [
6314
+ React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
6315
6315
  {
6316
6316
  required: true,
6317
6317
  message: "",
@@ -6324,7 +6324,7 @@ var AddNewCompanyComponent = function (props) {
6324
6324
  String(value).trim() === undefined ||
6325
6325
  value === null ||
6326
6326
  value === undefined) {
6327
- throw new Error("Phone Number ".concat(t("isRequired")));
6327
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6328
6328
  }
6329
6329
  else {
6330
6330
  phoneNo = formatPhoneNumber(String(value));
@@ -6332,7 +6332,7 @@ var AddNewCompanyComponent = function (props) {
6332
6332
  if (phoneNo === null ||
6333
6333
  phoneNo === "" ||
6334
6334
  phoneNo === undefined) {
6335
- throw new Error("Phone Number ".concat(t("isRequired")));
6335
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6336
6336
  }
6337
6337
  }
6338
6338
  }
@@ -6341,7 +6341,7 @@ var AddNewCompanyComponent = function (props) {
6341
6341
  }); },
6342
6342
  },
6343
6343
  ] },
6344
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6344
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6345
6345
  regionField && (React.createElement(Form.Item, { label: t("region"), name: "regions", initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.regions, rules: [
6346
6346
  {
6347
6347
  required: true,
@@ -6349,7 +6349,7 @@ var AddNewCompanyComponent = function (props) {
6349
6349
  },
6350
6350
  ] },
6351
6351
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))),
6352
- companyRole !== CompanyRole.MINISTRY && (React.createElement(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: [
6352
+ companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
6353
6353
  { required: true, message: "" },
6354
6354
  {
6355
6355
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6358,7 +6358,7 @@ var AddNewCompanyComponent = function (props) {
6358
6358
  String(value).trim() === undefined ||
6359
6359
  value === null ||
6360
6360
  value === undefined) {
6361
- throw new Error("Address ".concat(t("isRequired")));
6361
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6362
6362
  }
6363
6363
  return [2 /*return*/];
6364
6364
  });
@@ -6372,7 +6372,7 @@ var AddNewCompanyComponent = function (props) {
6372
6372
  display: "flex",
6373
6373
  marginBottom: 8,
6374
6374
  }, align: "center", size: "large" },
6375
- React.createElement(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: [
6375
+ React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
6376
6376
  { required: true, message: "" },
6377
6377
  {
6378
6378
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6381,7 +6381,7 @@ var AddNewCompanyComponent = function (props) {
6381
6381
  String(value).trim() === undefined ||
6382
6382
  value === null ||
6383
6383
  value === undefined) {
6384
- throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
6384
+ throw new Error("".concat(t("addCompany:omgePercentage"), " ").concat(t("isRequired")));
6385
6385
  }
6386
6386
  return [2 /*return*/];
6387
6387
  });
@@ -6391,7 +6391,7 @@ var AddNewCompanyComponent = function (props) {
6391
6391
  React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
6392
6392
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(Row, null,
6393
6393
  React.createElement(Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6394
- React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
6394
+ React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, t("addCompany:next")))))))));
6395
6395
  };
6396
6396
  var CompanyAdminDetailsForm = function () {
6397
6397
  return (React.createElement("div", { className: "company-details-form-container" },
@@ -6399,7 +6399,7 @@ var AddNewCompanyComponent = function (props) {
6399
6399
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6400
6400
  React.createElement(Col, { xl: 12, md: 24 },
6401
6401
  React.createElement("div", { className: "details-part-one" },
6402
- React.createElement(Form.Item, { label: "Name", name: "name", rules: [
6402
+ React.createElement(Form.Item, { label: t("addCompany:name"), name: "name", rules: [
6403
6403
  {
6404
6404
  required: true,
6405
6405
  message: "",
@@ -6411,7 +6411,7 @@ var AddNewCompanyComponent = function (props) {
6411
6411
  String(value).trim() === undefined ||
6412
6412
  value === null ||
6413
6413
  value === undefined) {
6414
- throw new Error("Name ".concat(t("isRequired")));
6414
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6415
6415
  }
6416
6416
  return [2 /*return*/];
6417
6417
  });
@@ -6419,15 +6419,15 @@ var AddNewCompanyComponent = function (props) {
6419
6419
  },
6420
6420
  ] },
6421
6421
  React.createElement(Input, { size: "large" })),
6422
- React.createElement(Form.Item, { name: "phoneNo", label: "Phone Number", rules: [
6422
+ React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), rules: [
6423
6423
  {
6424
6424
  required: false,
6425
6425
  },
6426
6426
  ] },
6427
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6427
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6428
6428
  React.createElement(Col, { xl: 12, md: 24 },
6429
6429
  React.createElement("div", { className: "details-part-two" },
6430
- React.createElement(Form.Item, { label: "Email", name: "email", rules: [
6430
+ React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", rules: [
6431
6431
  {
6432
6432
  required: true,
6433
6433
  message: "",
@@ -6440,14 +6440,14 @@ var AddNewCompanyComponent = function (props) {
6440
6440
  String(value).trim() === undefined ||
6441
6441
  value === null ||
6442
6442
  value === undefined) {
6443
- throw new Error("Email ".concat(t("isRequired")));
6443
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6444
6444
  }
6445
6445
  else {
6446
6446
  val = value.trim();
6447
6447
  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,}))$/;
6448
6448
  matches = val.match(reg) ? val.match(reg) : [];
6449
6449
  if (matches.length === 0) {
6450
- throw new Error("Email ".concat(t("isInvalid")));
6450
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6451
6451
  }
6452
6452
  }
6453
6453
  return [2 /*return*/];
@@ -6457,8 +6457,8 @@ var AddNewCompanyComponent = function (props) {
6457
6457
  ] },
6458
6458
  React.createElement(Input, { size: "large" }))))),
6459
6459
  React.createElement("div", { className: "steps-actions" },
6460
- current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, "SUBMIT")),
6461
- current === 1 && (React.createElement(Button, { onClick: function () { return prevOne(); }, loading: loading }, "BACK"))))));
6460
+ current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, t("addCompany:submit"))),
6461
+ current === 1 && (React.createElement(Button, { onClick: function () { return prevOne(); }, loading: loading }, t("addCompany:back")))))));
6462
6462
  };
6463
6463
  return (React.createElement("div", { className: "add-company-main-container" },
6464
6464
  React.createElement("div", { className: "title-container" },
@@ -18576,7 +18576,7 @@ var NdcActionDetails = function (props) {
18576
18576
  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";
18577
18577
  styleInject(css_248z$f);
18578
18578
 
18579
- 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";
18579
+ 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";
18580
18580
  styleInject(css_248z$e);
18581
18581
 
18582
18582
  var GenderParity = function (props) {
@@ -19678,13 +19678,6 @@ var Safeguards = function (props) {
19678
19678
  return (React.createElement(React.Fragment, null,
19679
19679
  viewOnly && !safeGuardViewData && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
19680
19680
  ((viewOnly && safeGuardViewData) || !viewOnly) && (React.createElement("div", { className: "safeguard-tab-item" },
19681
- React.createElement("div", { className: "undpSesp-section-wrapper" },
19682
- React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
19683
- React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
19684
- React.createElement("span", null,
19685
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("undpSespTitle")))),
19686
- React.createElement(Col, { span: 24 },
19687
- React.createElement("div", { className: "undpSesp-section-divider" })))),
19688
19681
  React.createElement(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) {
19689
19682
  return (React.createElement(React.Fragment, null,
19690
19683
  (sectionItem.isVisible || !viewOnly) && (React.createElement("div", { style: { marginBottom: "15px" } },
@@ -19751,7 +19744,7 @@ var Safeguards = function (props) {
19751
19744
 
19752
19745
  var Environmental = function (props) {
19753
19746
  var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
19754
- translator.setDefaultNamespace("unfcccSdTool");
19747
+ translator.setDefaultNamespace('environment');
19755
19748
  var t = translator.t;
19756
19749
  var environmentalDetailsInitial = [
19757
19750
  {
@@ -20036,51 +20029,39 @@ var Environmental = function (props) {
20036
20029
  }, []);
20037
20030
  return (React.createElement("div", { className: "co-benifits-tab-item" },
20038
20031
  React.createElement(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 },
20039
- React.createElement("div", { className: environmentalViewData ? "section view-section" : "section" },
20040
- React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20041
- React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
20042
- React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
20043
- React.createElement("span", null,
20044
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
20045
- React.createElement(Col, { span: 24 },
20046
- React.createElement("div", { className: "unfccSdTool-section-divider" })),
20047
- React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
20048
- React.createElement("span", null, t("environmental"))),
20049
- React.createElement(Col, { span: 24 },
20050
- React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
20051
- (environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })), environmentalDetails === null || environmentalDetails === void 0 ? void 0 :
20052
- environmentalDetails.map(function (environmentalDetail) {
20053
- var _a;
20054
- return (React.createElement(React.Fragment, null,
20055
- 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 :
20056
- _a.map(function (field, index) {
20057
- return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(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: [
20058
- {
20059
- required: field === null || field === void 0 ? void 0 : field.required,
20060
- message: (field === null || field === void 0 ? void 0 : field.required) &&
20061
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20062
- },
20063
- ] },
20064
- React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
20065
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20066
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
20067
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20068
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
20069
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20070
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20071
- React.createElement("div", { className: "yes-no-radio-container" },
20072
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
20073
- React.createElement("div", { className: "yes-no-radio-container" },
20074
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
20075
- React.createElement("div", { className: "yes-no-radio-container" },
20076
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
20077
- })));
20078
- })))));
20032
+ (environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
20033
+ React.createElement("div", { className: environmentalViewData ? "section view-section" : "section" }, environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.map(function (environmentalDetail) {
20034
+ var _a;
20035
+ return (React.createElement(React.Fragment, null,
20036
+ 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 :
20037
+ _a.map(function (field, index) {
20038
+ return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(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: [
20039
+ {
20040
+ required: field === null || field === void 0 ? void 0 : field.required,
20041
+ message: (field === null || field === void 0 ? void 0 : field.required) &&
20042
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20043
+ },
20044
+ ] },
20045
+ React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
20046
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20047
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
20048
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20049
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
20050
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20051
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20052
+ React.createElement("div", { className: "yes-no-radio-container" },
20053
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
20054
+ React.createElement("div", { className: "yes-no-radio-container" },
20055
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
20056
+ React.createElement("div", { className: "yes-no-radio-container" },
20057
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
20058
+ })));
20059
+ })))));
20079
20060
  };
20080
20061
 
20081
20062
  var Economic = function (props) {
20082
20063
  var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
20083
- translator.setDefaultNamespace("unfcccSdTool");
20064
+ translator.setDefaultNamespace("economic");
20084
20065
  var t = translator.t;
20085
20066
  var economicDetailsInitial = [
20086
20067
  {
@@ -20333,46 +20314,39 @@ var Economic = function (props) {
20333
20314
  }, []);
20334
20315
  return (React.createElement("div", { className: "co-benifits-tab-item" },
20335
20316
  React.createElement(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 },
20336
- React.createElement("div", { className: economicViewData ? "section view-section" : "section" },
20337
- React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20338
- React.createElement(Row, { justify: "center", align: "middle", style: { width: '100%' } },
20339
- React.createElement(Col, { span: 24 },
20340
- React.createElement("div", { className: "unfccSdTool-section-divider" })),
20341
- React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
20342
- React.createElement("span", null, t("economic"))))),
20343
- (economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })), economicDetails === null || economicDetails === void 0 ? void 0 :
20344
- economicDetails.map(function (environmentalDetail) {
20345
- var _a;
20346
- return (React.createElement(React.Fragment, null,
20347
- 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 :
20348
- _a.map(function (field, index) {
20349
- return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(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: [
20350
- {
20351
- required: field === null || field === void 0 ? void 0 : field.required,
20352
- message: (field === null || field === void 0 ? void 0 : field.required) &&
20353
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20354
- },
20355
- ] },
20356
- React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
20357
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20358
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
20359
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20360
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
20361
- (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20362
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20363
- React.createElement("div", { className: "yes-no-radio-container" },
20364
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
20365
- React.createElement("div", { className: "yes-no-radio-container" },
20366
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
20367
- React.createElement("div", { className: "yes-no-radio-container" },
20368
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
20369
- })));
20370
- })))));
20317
+ (economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
20318
+ React.createElement("div", { className: economicViewData ? "section view-section" : "section" }, economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.map(function (environmentalDetail) {
20319
+ var _a;
20320
+ return (React.createElement(React.Fragment, null,
20321
+ 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 :
20322
+ _a.map(function (field, index) {
20323
+ return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(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: [
20324
+ {
20325
+ required: field === null || field === void 0 ? void 0 : field.required,
20326
+ message: (field === null || field === void 0 ? void 0 : field.required) &&
20327
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20328
+ },
20329
+ ] },
20330
+ React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
20331
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20332
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
20333
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20334
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
20335
+ (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20336
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20337
+ React.createElement("div", { className: "yes-no-radio-container" },
20338
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
20339
+ React.createElement("div", { className: "yes-no-radio-container" },
20340
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
20341
+ React.createElement("div", { className: "yes-no-radio-container" },
20342
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
20343
+ })));
20344
+ })))));
20371
20345
  };
20372
20346
 
20373
20347
  var Social = function (props) {
20374
20348
  var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
20375
- translator.setDefaultNamespace("unfcccSdTool");
20349
+ translator.setDefaultNamespace("social");
20376
20350
  var t = translator.t;
20377
20351
  var form = Form.useForm()[0];
20378
20352
  var _a = useState(0); _a[0]; var setRefreshCounter = _a[1];
@@ -20591,12 +20565,6 @@ var Social = function (props) {
20591
20565
  validateForm();
20592
20566
  });
20593
20567
  return (React.createElement("div", { className: "social-tab-item" },
20594
- React.createElement("div", { className: "unfccSdTool-section-wrapper" },
20595
- React.createElement(Row, { justify: "center", align: "middle", style: { width: '100%' } },
20596
- React.createElement(Col, { span: 24 },
20597
- React.createElement("div", { className: "unfccSdTool-section-divider" })),
20598
- React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
20599
- React.createElement("span", null, t("social"))))),
20600
20568
  viewOnly && !socialViewData && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
20601
20569
  ((viewOnly && socialViewData) || !viewOnly) && (React.createElement(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) {
20602
20570
  return (React.createElement(React.Fragment, null,
@@ -20639,7 +20607,7 @@ var Social = function (props) {
20639
20607
  socialViewData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name) && (React.createElement("div", { className: "view-section" },
20640
20608
  React.createElement(Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
20641
20609
  React.createElement(Radio.Group, { size: "middle", disabled: true },
20642
- React.createElement("div", { className: "radio-container-view" },
20610
+ React.createElement("div", { className: "radio-container" },
20643
20611
  React.createElement(Radio.Button, { className: "radio" }, socialViewData[element.name])))))),
20644
20612
  socialViewData[element.name] === RadioButtonStatus.YES &&
20645
20613
  element.subItems.map(function (elementItem) {
@@ -20647,7 +20615,7 @@ var Social = function (props) {
20647
20615
  return (React.createElement(React.Fragment, null, socialViewData.hasOwnProperty(elementItem === null || elementItem === void 0 ? void 0 : elementItem.name) && (React.createElement("div", { className: "view-section" },
20648
20616
  React.createElement(Form.Item, { label: elementItem.label, name: elementItem.name, className: "mg-left-4" },
20649
20617
  React.createElement(Radio.Group, { size: "middle", disabled: true },
20650
- React.createElement("div", { className: "radio-container-view-child" },
20618
+ React.createElement("div", { className: "radio-container" },
20651
20619
  React.createElement(Radio.Button, { className: "radio" }, socialViewData[elementItem.name]))))))));
20652
20620
  }
20653
20621
  else if (elementItem.type === FormElementType.Input) {
@@ -20662,465 +20630,12 @@ var Social = function (props) {
20662
20630
  })))));
20663
20631
  };
20664
20632
 
20665
- var SocialEnvironmentalRisk = function (props) {
20666
- var onFormSubmit = props.onFormSubmit, SocialEnvironmentalRiskData = props.SocialEnvironmentalRiskData, viewOnly = props.viewOnly, translator = props.translator;
20667
- translator.setDefaultNamespace("socialEnvironmentalRisk");
20668
- var t = translator.t;
20669
- var form = Form.useForm()[0];
20670
- var _a = useState(), socialEnvironmentalFormDetails = _a[0], setSocialEnvironmentalFormDetails = _a[1];
20671
- var _b = useState([
20672
- {
20673
- title: t("humanRightsSubHeader"),
20674
- isTitleVisible: true,
20675
- subItems: [
20676
- {
20677
- title: t("humanRights"),
20678
- isTitleVisible: true,
20679
- subItems: [
20680
- {
20681
- label: t("humanRightsQ1"),
20682
- name: "humanRightsQ1",
20683
- },
20684
- {
20685
- label: t("humanRightsQ2"),
20686
- name: "humanRightsQ2",
20687
- },
20688
- {
20689
- label: t("humanRightsQ3"),
20690
- name: "humanRightsQ3",
20691
- },
20692
- {
20693
- label: t("humanRightsQ4"),
20694
- name: "humanRightsQ4",
20695
- },
20696
- {
20697
- label: t("humanRightsQ5"),
20698
- name: "humanRightsQ5",
20699
- },
20700
- {
20701
- label: t("humanRightsQ6"),
20702
- name: "humanRightsQ6",
20703
- },
20704
- {
20705
- label: t("humanRightsQ7"),
20706
- name: "humanRightsQ7",
20707
- },
20708
- ],
20709
- },
20710
- {
20711
- title: t("genderEqalityWomenEmpower"),
20712
- isTitleVisible: true,
20713
- subItems: [
20714
- {
20715
- label: t("genderEqalityWomenEmpowerQ1"),
20716
- name: "genderEqalityWomenEmpowerQ1",
20717
- },
20718
- {
20719
- label: t("genderEqalityWomenEmpowerQ2"),
20720
- name: "genderEqalityWomenEmpowerQ2",
20721
- },
20722
- {
20723
- label: t("genderEqalityWomenEmpowerQ3"),
20724
- name: "genderEqalityWomenEmpowerQ3",
20725
- },
20726
- {
20727
- label: t("genderEqalityWomenEmpowerQ4"),
20728
- name: "genderEqalityWomenEmpowerQ4",
20729
- },
20730
- {
20731
- label: t("genderEqalityWomenEmpowerQ5"),
20732
- name: "genderEqalityWomenEmpowerQ5",
20733
- },
20734
- ],
20735
- },
20736
- {
20737
- title: t("accountability"),
20738
- isTitleVisible: true,
20739
- subItems: [
20740
- {
20741
- label: t("accountabilityQ1"),
20742
- name: "accountabilityQ1",
20743
- },
20744
- {
20745
- label: t("accountabilityQ2"),
20746
- name: "AccountabilityQ2",
20747
- },
20748
- {
20749
- label: t("accountabilityQ3"),
20750
- name: "accountabilityQ3",
20751
- },
20752
- ],
20753
- },
20754
- ],
20755
- },
20756
- {
20757
- title: t("standardSubHeader"),
20758
- isTitleVisible: true,
20759
- subItems: [
20760
- {
20761
- title: t("standard1"),
20762
- isTitleVisible: true,
20763
- subItems: [
20764
- {
20765
- label: t("standard1Q1"),
20766
- name: "standard1Q1",
20767
- },
20768
- {
20769
- label: t("standard1Q2"),
20770
- name: "standard1Q2",
20771
- },
20772
- {
20773
- label: t("standard1Q3"),
20774
- name: "standard1Q3",
20775
- },
20776
- {
20777
- label: t("standard1Q4"),
20778
- name: "standard1Q4",
20779
- },
20780
- {
20781
- label: t("standard1Q5"),
20782
- name: "standard1Q5",
20783
- },
20784
- {
20785
- label: t("standard1Q6"),
20786
- name: "standard1Q6",
20787
- },
20788
- {
20789
- label: t("standard1Q7"),
20790
- name: "standard1Q7",
20791
- },
20792
- {
20793
- label: t("standard1Q8"),
20794
- name: "standard1Q8",
20795
- },
20796
- {
20797
- label: t("standard1Q9"),
20798
- name: "standard1Q9",
20799
- },
20800
- {
20801
- label: t("standard1Q10"),
20802
- name: "standard1Q10",
20803
- },
20804
- {
20805
- label: t("standard1Q11"),
20806
- name: "standard1Q11",
20807
- },
20808
- {
20809
- label: t("standard1Q12"),
20810
- name: "standard1Q12",
20811
- },
20812
- {
20813
- label: t("standard1Q13"),
20814
- name: "standard1Q13",
20815
- },
20816
- {
20817
- label: t("standard1Q14"),
20818
- name: "standard1Q14",
20819
- },
20820
- ],
20821
- },
20822
- {
20823
- title: t("standard2"),
20824
- isTitleVisible: true,
20825
- subItems: [
20826
- {
20827
- label: t("standard2Q1"),
20828
- name: "standard2Q1",
20829
- },
20830
- {
20831
- label: t("standard2Q2"),
20832
- name: "standard2Q2",
20833
- },
20834
- {
20835
- label: t("standard2Q3"),
20836
- name: "standard2Q3",
20837
- },
20838
- {
20839
- label: t("standard2Q4"),
20840
- name: "standard2Q4",
20841
- },
20842
- ],
20843
- },
20844
- {
20845
- title: t("standard3"),
20846
- isTitleVisible: true,
20847
- subItems: [
20848
- {
20849
- label: t("standard3Q1"),
20850
- name: "standard3Q1",
20851
- },
20852
- {
20853
- label: t("standard3Q2"),
20854
- name: "standard3Q2",
20855
- },
20856
- {
20857
- label: t("standard3Q3"),
20858
- name: "standard3Q3",
20859
- },
20860
- {
20861
- label: t("standard3Q4"),
20862
- name: "standard3Q4",
20863
- },
20864
- {
20865
- label: t("standard3Q5"),
20866
- name: "standard3Q5",
20867
- },
20868
- {
20869
- label: t("standard3Q6"),
20870
- name: "standard3Q6",
20871
- },
20872
- {
20873
- label: t("standard3Q7"),
20874
- name: "standard3Q7",
20875
- },
20876
- {
20877
- label: t("standard3Q8"),
20878
- name: "standard3Q8",
20879
- },
20880
- ],
20881
- },
20882
- {
20883
- title: t("standard4"),
20884
- isTitleVisible: true,
20885
- subItems: [
20886
- {
20887
- label: t("standard4Q1"),
20888
- name: "standard4Q1",
20889
- },
20890
- {
20891
- label: t("standard4Q2"),
20892
- name: "standard4Q2",
20893
- },
20894
- {
20895
- label: t("standard4Q3"),
20896
- name: "standard4Q3",
20897
- },
20898
- {
20899
- label: t("standard4Q4"),
20900
- name: "standard4Q4",
20901
- },
20902
- {
20903
- label: t("standard4Q5"),
20904
- name: "standard4Q5",
20905
- },
20906
- ],
20907
- },
20908
- {
20909
- title: t("standard5"),
20910
- isTitleVisible: true,
20911
- subItems: [
20912
- {
20913
- label: t("standard5Q1"),
20914
- name: "standard5Q1",
20915
- },
20916
- {
20917
- label: t("standard5Q2"),
20918
- name: "standard5Q2",
20919
- },
20920
- {
20921
- label: t("standard5Q3"),
20922
- name: "standard5Q3",
20923
- },
20924
- {
20925
- label: t("standard5Q4"),
20926
- name: "standard5Q4",
20927
- },
20928
- ],
20929
- },
20930
- {
20931
- title: t("standard6"),
20932
- isTitleVisible: true,
20933
- subItems: [
20934
- {
20935
- label: t("standard6Q1"),
20936
- name: "standard6Q1",
20937
- },
20938
- {
20939
- label: t("standard6Q2"),
20940
- name: "standard6Q2",
20941
- },
20942
- {
20943
- label: t("standard6Q3"),
20944
- name: "standard6Q3",
20945
- },
20946
- {
20947
- label: t("standard6Q4"),
20948
- name: "standard6Q4",
20949
- },
20950
- {
20951
- label: t("standard6Q5"),
20952
- name: "standard6Q5",
20953
- },
20954
- {
20955
- label: t("standard6Q6"),
20956
- name: "standard6Q6",
20957
- },
20958
- {
20959
- label: t("standard6Q7"),
20960
- name: "standard6Q7",
20961
- },
20962
- {
20963
- label: t("standard6Q8"),
20964
- name: "standard6Q8",
20965
- },
20966
- {
20967
- label: t("standard6Q9"),
20968
- name: "standard6Q9",
20969
- },
20970
- ],
20971
- },
20972
- {
20973
- title: t("standard7"),
20974
- isTitleVisible: true,
20975
- subItems: [
20976
- {
20977
- label: t("standard7Q1"),
20978
- name: "standard7Q1",
20979
- },
20980
- {
20981
- label: t("standard7Q2"),
20982
- name: "standard7Q2",
20983
- },
20984
- {
20985
- label: t("standard7Q3"),
20986
- name: "standard7Q3",
20987
- },
20988
- {
20989
- label: t("standard7Q4"),
20990
- name: "standard7Q4",
20991
- },
20992
- {
20993
- label: t("standard7Q5"),
20994
- name: "standard7Q5",
20995
- },
20996
- {
20997
- label: t("standard7Q6"),
20998
- name: "standard7Q6",
20999
- },
21000
- ],
21001
- },
21002
- {
21003
- title: t("standard8"),
21004
- isTitleVisible: true,
21005
- subItems: [
21006
- {
21007
- label: t("standard8Q1"),
21008
- name: "standard8Q1",
21009
- },
21010
- {
21011
- label: t("standard8Q2"),
21012
- name: "standard8Q2",
21013
- },
21014
- {
21015
- label: t("standard8Q3"),
21016
- name: "standard8Q3",
21017
- },
21018
- {
21019
- label: t("standard8Q4"),
21020
- name: "standard8Q4",
21021
- },
21022
- {
21023
- label: t("standard8Q5"),
21024
- name: "standard8Q5",
21025
- },
21026
- {
21027
- label: t("standard8Q6"),
21028
- name: "standard8Q6",
21029
- },
21030
- ],
21031
- },
21032
- ],
21033
- },
21034
- ]), socialEnvironmentalDetails = _b[0], setSocialEnvironmentalDetails = _b[1];
21035
- useEffect(function () {
21036
- onFormSubmit(socialEnvironmentalFormDetails);
21037
- }, [socialEnvironmentalFormDetails]);
21038
- useEffect(function () {
21039
- if (SocialEnvironmentalRiskData && !viewOnly) {
21040
- setSocialEnvironmentalFormDetails(SocialEnvironmentalRiskData);
21041
- form.setFieldsValue(SocialEnvironmentalRiskData);
21042
- }
21043
- else if (SocialEnvironmentalRiskData && viewOnly) {
21044
- checkHeaderAvailability();
21045
- }
21046
- }, [SocialEnvironmentalRiskData]);
21047
- var checkHeaderAvailability = function () {
21048
- socialEnvironmentalDetails.forEach(function (section) {
21049
- section.isTitleVisible = false;
21050
- section.subItems.forEach(function (subSection) {
21051
- subSection.isTitleVisible = false;
21052
- subSection.subItems.forEach(function (element) {
21053
- if (SocialEnvironmentalRiskData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name)) {
21054
- subSection.isTitleVisible = true;
21055
- }
21056
- });
21057
- if (subSection.isTitleVisible) {
21058
- section.isTitleVisible = true;
21059
- }
21060
- });
21061
- });
21062
- setSocialEnvironmentalDetails(socialEnvironmentalDetails);
21063
- };
21064
- var SocialEnvironmentalDetailsChanged = function (changedValues) { return __awaiter(void 0, void 0, void 0, function () {
21065
- return __generator(this, function (_a) {
21066
- setSocialEnvironmentalFormDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
21067
- return [2 /*return*/];
21068
- });
21069
- }); };
21070
- return (React.createElement("div", { className: "social-environment-tab-item" },
21071
- viewOnly && !SocialEnvironmentalRiskData && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
21072
- ((viewOnly && SocialEnvironmentalRiskData) || !viewOnly) && (React.createElement(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 },
21073
- !viewOnly &&
21074
- socialEnvironmentalDetails.map(function (section) {
21075
- return (React.createElement(React.Fragment, null,
21076
- React.createElement("div", { className: "social-environment-risk-title-section" },
21077
- React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
21078
- React.createElement(Col, { span: 24, className: "social-environment-risk-title" },
21079
- React.createElement("span", null, section.title)))),
21080
- section.subItems.map(function (subSection) {
21081
- return (React.createElement(React.Fragment, null,
21082
- React.createElement("div", { style: { marginBottom: "15px" } },
21083
- React.createElement("label", { className: "co-sub-title-text" }, subSection.title)),
21084
- subSection.subItems.map(function (element) {
21085
- return (React.createElement(Row, null,
21086
- React.createElement(Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
21087
- React.createElement(Radio.Group, { size: "middle" },
21088
- React.createElement("div", { className: "radio-container" },
21089
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
21090
- React.createElement("div", { className: "radio-container" },
21091
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no")))))));
21092
- })));
21093
- })));
21094
- }),
21095
- viewOnly &&
21096
- SocialEnvironmentalRiskData &&
21097
- socialEnvironmentalDetails.map(function (section) {
21098
- return (React.createElement(React.Fragment, null,
21099
- section.isTitleVisible && (React.createElement("div", { className: "social-environment-risk-title-section" },
21100
- React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
21101
- React.createElement(Col, { span: 24, className: "social-environment-risk-title" },
21102
- React.createElement("span", null, section.title))))),
21103
- section.subItems.map(function (subSection) {
21104
- return (React.createElement(React.Fragment, null,
21105
- subSection.isTitleVisible && (React.createElement("div", { style: { marginBottom: "15px" } },
21106
- React.createElement("label", { className: "co-sub-title-text" }, subSection.title))),
21107
- subSection.subItems.map(function (element) {
21108
- return (React.createElement(React.Fragment, null, SocialEnvironmentalRiskData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name) && (React.createElement("div", { className: "view-section" },
21109
- React.createElement(Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
21110
- React.createElement(Radio.Group, { size: "middle", disabled: true },
21111
- React.createElement("div", { className: "radio-container" },
21112
- React.createElement(Radio.Button, { className: "radio" }, SocialEnvironmentalRiskData[element.name]))))))));
21113
- })));
21114
- })));
21115
- })))));
21116
- };
21117
-
21118
20633
  var CoBenifitsComponent = function (props) {
21119
20634
  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;
21120
20635
  var _b = useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
21121
20636
  var _c = useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
21122
20637
  var _d = useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
21123
- translator.setDefaultNamespace("coBenifits");
20638
+ translator.setDefaultNamespace('coBenifits');
21124
20639
  var t = translator.t;
21125
20640
  var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
21126
20641
  setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
@@ -21145,9 +20660,6 @@ var CoBenifitsComponent = function (props) {
21145
20660
  setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { socialValueDetails: socialValueDetails })); });
21146
20661
  setIsSocialFormValid(isFormValid);
21147
20662
  };
21148
- var onSocialEnvironmentalFormSubmit = function (socialEnvironmentDetails) {
21149
- setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { socialEnvironmentDetails: socialEnvironmentDetails })); });
21150
- };
21151
20663
  var tabItems = [
21152
20664
  {
21153
20665
  label: t("coBenifits:sdgGoals"),
@@ -21164,27 +20676,34 @@ var CoBenifitsComponent = function (props) {
21164
20676
  children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false, translator: translator })),
21165
20677
  },
21166
20678
  {
21167
- label: t("coBenifits:undpSesp"),
20679
+ label: t("coBenifits:safeguards"),
21168
20680
  key: "3",
21169
20681
  children: (React.createElement(Safeguards, { safeGuardViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.safeguardDetails)) ||
21170
20682
  (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit, translator: translator })),
21171
20683
  },
21172
20684
  {
21173
- label: t("coBenifits:unfcccSdTool"),
20685
+ label: t("coBenifits:environmental"),
21174
20686
  key: "4",
21175
- children: (React.createElement(React.Fragment, null,
21176
- React.createElement(Environmental, { onFormSubmit: onEnvironmentalFormSubmit, environmentalViewData: viewOnly
21177
- ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
21178
- ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
21179
- : {}
21180
- : undefined, viewOnly: viewOnly || false, translator: translator }),
21181
- React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
21182
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator }),
21183
- React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
21184
- ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
21185
- ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
21186
- : {}
21187
- : undefined, viewOnly: viewOnly || false, translator: translator }))),
20687
+ children: (React.createElement(Environmental, { onFormSubmit: onEnvironmentalFormSubmit, environmentalViewData: viewOnly
20688
+ ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
20689
+ ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
20690
+ : {}
20691
+ : undefined, viewOnly: viewOnly || false, translator: translator })),
20692
+ },
20693
+ {
20694
+ label: t("coBenifits:social"),
20695
+ key: "5",
20696
+ children: (React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
20697
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator })),
20698
+ },
20699
+ {
20700
+ label: t("coBenifits:economic"),
20701
+ key: "6",
20702
+ children: (React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
20703
+ ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
20704
+ ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
20705
+ : {}
20706
+ : undefined, viewOnly: viewOnly || false, translator: translator })),
21188
20707
  },
21189
20708
  {
21190
20709
  label: t("coBenifits:assessment"),
@@ -21192,12 +20711,6 @@ var CoBenifitsComponent = function (props) {
21192
20711
  children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
21193
20712
  (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
21194
20713
  },
21195
- {
21196
- label: t("coBenifits:socialEnvironmentalRisk"),
21197
- key: "8",
21198
- children: (React.createElement(SocialEnvironmentalRisk, { onFormSubmit: onSocialEnvironmentalFormSubmit, SocialEnvironmentalRiskData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialEnvironmentDetails)) ||
21199
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialEnvironmentDetails)), viewOnly: viewOnly || false, translator: translator })),
21200
- },
21201
20714
  ];
21202
20715
  var onCoBenefitSubmit = function () {
21203
20716
  var economicOverallValidation = true;
@@ -21312,7 +20825,7 @@ var CoBenifitsComponent = function (props) {
21312
20825
  if (environmentalOverallValidation !== true) {
21313
20826
  message.open({
21314
20827
  type: "error",
21315
- content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20828
+ content: "Fill the required fields in Co-benifits Environmental section",
21316
20829
  duration: 4,
21317
20830
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
21318
20831
  });
@@ -21321,7 +20834,7 @@ var CoBenifitsComponent = function (props) {
21321
20834
  if (!isSocialFormValid) {
21322
20835
  message.open({
21323
20836
  type: "error",
21324
- content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20837
+ content: "Fill the required fields in Co-benifits Social section",
21325
20838
  duration: 4,
21326
20839
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
21327
20840
  });
@@ -21330,7 +20843,7 @@ var CoBenifitsComponent = function (props) {
21330
20843
  if (economicOverallValidation !== true) {
21331
20844
  message.open({
21332
20845
  type: "error",
21333
- content: "Fill the required fields in Co-benefits UNFCCC SD Tool section",
20846
+ content: "Fill the required fields in Co-benifits Economic section",
21334
20847
  duration: 4,
21335
20848
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
21336
20849
  });
@@ -21339,7 +20852,7 @@ var CoBenifitsComponent = function (props) {
21339
20852
  if (!isAssessmentFormValid) {
21340
20853
  message.open({
21341
20854
  type: "error",
21342
- content: "Fill the required fields in Co-benefits Assessment section",
20855
+ content: "Fill the required fields in Co-benifits Assessment section",
21343
20856
  duration: 4,
21344
20857
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
21345
20858
  });