@undp/carbon-library 1.0.302-CARBON-Sprint-55.0 → 1.0.302-CARBON-433.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -6678,7 +6678,7 @@ var AddNewCompanyComponent = function (props) {
6678
6678
  String(value).trim() === undefined ||
6679
6679
  value === null ||
6680
6680
  value === undefined) {
6681
- throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6681
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
6682
6682
  }
6683
6683
  return [2 /*return*/];
6684
6684
  });
@@ -7855,6 +7855,15 @@ var ProgrammeManagementComponent = function (props) {
7855
7855
  setMinistryLevelFilter(false);
7856
7856
  }
7857
7857
  }
7858
+ else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER) {
7859
+ setDataFilter(v.target.checked
7860
+ ? {
7861
+ key: "certifierId",
7862
+ operation: "ANY",
7863
+ value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
7864
+ }
7865
+ : undefined);
7866
+ }
7858
7867
  else {
7859
7868
  setDataFilter(v.target.checked
7860
7869
  ? {
@@ -17685,7 +17694,7 @@ var InvestmentManagementComponent = function (props) {
17685
17694
  return handleTableChange(val, sorter);
17686
17695
  }, locale: {
17687
17696
  emptyText: (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: tableData.length === 0
17688
- ? t("programme:noInvestmentData")
17697
+ ? t("programme:noinvestment")
17689
17698
  : null })),
17690
17699
  } }))))),
17691
17700
  popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
@@ -19843,59 +19852,60 @@ var GenderParity = function (props) {
19843
19852
  var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly, translator = props.translator;
19844
19853
  var formOne = Form.useForm()[0];
19845
19854
  var formTwo = Form.useForm()[0];
19855
+ translator.setDefaultNamespace("genderParity");
19846
19856
  var t = translator.t;
19847
19857
  var _a = useState(), genderParityDetails = _a[0], setGenderParityDetails = _a[1];
19848
19858
  var genderParityDetailsOne = [
19849
19859
  {
19850
- label: t("genderParity:benifit1"),
19860
+ label: t("benifit1"),
19851
19861
  name: "descriminationAgainstGirls",
19852
19862
  value: true,
19853
19863
  },
19854
19864
  {
19855
- label: t("genderParity:benifit2"),
19865
+ label: t("benifit2"),
19856
19866
  name: "violationAgainstGirls",
19857
19867
  value: true,
19858
19868
  },
19859
19869
  {
19860
- label: t("genderParity:benifit3"),
19870
+ label: t("benifit3"),
19861
19871
  name: "harmfulPracticesAgainstGirls",
19862
19872
  value: true,
19863
19873
  },
19864
19874
  {
19865
- label: t("genderParity:benifit4"),
19875
+ label: t("benifit4"),
19866
19876
  name: "equealRightsToGirls",
19867
19877
  value: true,
19868
19878
  },
19869
19879
  {
19870
- label: t("genderParity:benifit5"),
19880
+ label: t("benifit5"),
19871
19881
  name: "equealRightsToHealthToGirls",
19872
19882
  value: true,
19873
19883
  },
19874
19884
  ];
19875
19885
  var genderParityDetailsTwo = [
19876
19886
  {
19877
- label: t("genderParity:benifit6"),
19887
+ label: t("benifit6"),
19878
19888
  name: "numberOfWomenEmpoyed",
19879
19889
  col: { md: 18, lg: 10 },
19880
19890
  labelCol: 24,
19881
19891
  wrapperCol: 18,
19882
19892
  },
19883
19893
  {
19884
- label: t("genderParity:benifit7"),
19894
+ label: t("benifit7"),
19885
19895
  name: "numberOfWomenTrained",
19886
19896
  col: { md: 18, lg: 10 },
19887
19897
  labelCol: 24,
19888
19898
  wrapperCol: 18,
19889
19899
  },
19890
19900
  {
19891
- label: t("genderParity:benifit8"),
19901
+ label: t("benifit8"),
19892
19902
  name: "numberOfWomenSelectedForDecisionMaking",
19893
19903
  col: { md: 18, lg: 16 },
19894
19904
  labelCol: 24,
19895
19905
  wrapperCol: 11,
19896
19906
  },
19897
19907
  {
19898
- label: t("genderParity:benifit9"),
19908
+ label: t("benifit9"),
19899
19909
  name: "numberOfWomenProvidedAccessForTech",
19900
19910
  col: { md: 18, lg: 16 },
19901
19911
  labelCol: 24,
@@ -19947,12 +19957,12 @@ var GenderParity = function (props) {
19947
19957
  React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: true },
19948
19958
  React.createElement("div", { className: "yes-no-radio-container" },
19949
19959
  React.createElement(Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, (genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) === true
19950
- ? t("genderParity:yes")
19951
- : t("genderParity:no")))))) : (React.createElement(Radio.Group, { size: "middle", onChange: function () { } },
19960
+ ? t("yes")
19961
+ : t("no")))))) : (React.createElement(Radio.Group, { size: "middle", onChange: function () { } },
19952
19962
  React.createElement("div", { className: "yes-no-radio-container" },
19953
- React.createElement(Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, t("genderParity:yes"))),
19963
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, t("yes"))),
19954
19964
  React.createElement("div", { className: "yes-no-radio-container" },
19955
- React.createElement(Radio.Button, { className: "yes-no-radio", value: !(genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) }, t("genderParity:no")))))));
19965
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: !(genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) }, t("no")))))));
19956
19966
  })),
19957
19967
  React.createElement("div", { className: "part-two" },
19958
19968
  React.createElement(Form, { name: "additional-details", layout: "vertical", form: formTwo, onValuesChange: onGenderParityValuesChangedSub },
@@ -19970,6 +19980,7 @@ var GenderParity = function (props) {
19970
19980
 
19971
19981
  var Assessment = function (props) {
19972
19982
  var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
19983
+ translator.setDefaultNamespace("coBenifits");
19973
19984
  var t = translator.t;
19974
19985
  var form1 = Form.useForm()[0];
19975
19986
  var form2 = Form.useForm()[0];
@@ -20064,23 +20075,11 @@ var Assessment = function (props) {
20064
20075
  changedValues = {};
20065
20076
  if (info.changedFields && info.changedFields.length > 0) {
20066
20077
  info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
20067
- var base64Value, values_1;
20068
20078
  return __generator(this, function (_a) {
20069
- switch (_a.label) {
20070
- case 0:
20071
- if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
20072
- return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
20073
- case 1:
20074
- base64Value = _a.sent();
20075
- console.log("FEAsibility document : ", base64Value);
20076
- values_1 = base64Value;
20077
- setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
20078
- return [3 /*break*/, 3];
20079
- case 2:
20080
- changedValues[changedField.name[0]] = changedField.value;
20081
- _a.label = 3;
20082
- case 3: return [2 /*return*/];
20079
+ if (changedField.name[0] !== "document") {
20080
+ changedValues[changedField.name[0]] = changedField.value;
20083
20081
  }
20082
+ return [2 /*return*/];
20084
20083
  });
20085
20084
  }); });
20086
20085
  setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
@@ -20115,6 +20114,34 @@ var Assessment = function (props) {
20115
20114
  setIsPersonListedDetailsVisible(false);
20116
20115
  }
20117
20116
  };
20117
+ var onAssesmentDocument = function (e) { return __awaiter(void 0, void 0, void 0, function () {
20118
+ var base64Value, values_1;
20119
+ var _a;
20120
+ return __generator(this, function (_b) {
20121
+ switch (_b.label) {
20122
+ case 0:
20123
+ if (!((e === null || e === void 0 ? void 0 : e.fileList.length) > 0 && ((_a = e === null || e === void 0 ? void 0 : e.fileList[0]) === null || _a === void 0 ? void 0 : _a.name))) return [3 /*break*/, 2];
20124
+ return [4 /*yield*/, getBase64(e.fileList[0].originFileObj)];
20125
+ case 1:
20126
+ base64Value = _b.sent();
20127
+ values_1 = base64Value;
20128
+ setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
20129
+ return [3 /*break*/, 3];
20130
+ case 2:
20131
+ setCobenefitsAssessmentDetails(function (pre) {
20132
+ pre.document; var rest = __rest(pre, ["document"]);
20133
+ if (Object.keys(rest).length === 0) {
20134
+ return undefined;
20135
+ }
20136
+ else {
20137
+ return __assign({}, rest);
20138
+ }
20139
+ });
20140
+ _b.label = 3;
20141
+ case 3: return [2 /*return*/];
20142
+ }
20143
+ });
20144
+ }); };
20118
20145
  var normFile = function (e) {
20119
20146
  if (Array.isArray(e)) {
20120
20147
  return e;
@@ -20127,105 +20154,105 @@ var Assessment = function (props) {
20127
20154
  React.createElement(Row, null,
20128
20155
  React.createElement(Form, { name: "from1", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form1, onValuesChange: function () { return validateForms(); } },
20129
20156
  !viewOnly && (React.createElement("div", { className: "radio-content" },
20130
- React.createElement(Form.Item, { label: t("coBenifits:assessmentIsThirdPartyVerified", {
20157
+ React.createElement(Form.Item, { label: t("assessmentIsThirdPartyVerified", {
20131
20158
  ns: "coBenifits",
20132
20159
  }), className: "form-item", name: "IsThirdPartyVerified" },
20133
20160
  React.createElement(Radio.Group, { size: "middle", onChange: onIsThirdPartyVerifiedChanged },
20134
20161
  React.createElement("div", { className: "radio-container" },
20135
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("coBenifits:yes"))),
20162
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
20136
20163
  React.createElement("div", { className: "radio-container" },
20137
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("coBenifits:no"))),
20164
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
20138
20165
  React.createElement("div", { className: "radio-container" },
20139
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("coBenifits:n/a"))))),
20140
- isVerifyingOrgVisible === true && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("coBenifits:verifyingOrgNamelbl"), name: "verifyingOrgName", rules: [
20166
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("n/a"))))),
20167
+ isVerifyingOrgVisible === true && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName", rules: [
20141
20168
  {
20142
20169
  required: true,
20143
20170
  message: "",
20144
20171
  },
20145
20172
  ] },
20146
20173
  React.createElement(Input, { style: { width: 303 } }))),
20147
- React.createElement(Form.Item, { label: t("coBenifits:assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
20174
+ React.createElement(Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
20148
20175
  React.createElement(Radio.Group, { size: "middle", onChange: onIsWillingToVerifiedChanged },
20149
20176
  React.createElement("div", { className: "radio-container" },
20150
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("coBenifits:yes"))),
20177
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
20151
20178
  React.createElement("div", { className: "radio-container" },
20152
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("coBenifits:no"))),
20179
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
20153
20180
  React.createElement("div", { className: "radio-container" },
20154
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("coBenifits:n/a"))))),
20155
- isVerifyingDetailsVisible === true && (React.createElement(Form.Item, { label: t("coBenifits:verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
20181
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("n/a"))))),
20182
+ isVerifyingDetailsVisible === true && (React.createElement(Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
20156
20183
  React.createElement(Input, { style: { width: 303 } }))))),
20157
20184
  viewOnly && (React.createElement("div", { className: "radio-content view-section" },
20158
- assessmentViewData.hasOwnProperty("IsThirdPartyVerified") && (React.createElement(Form.Item, { label: t("coBenifits:assessmentIsThirdPartyVerified"), className: "form-item", name: "IsThirdPartyVerified" },
20185
+ assessmentViewData.hasOwnProperty("IsThirdPartyVerified") && (React.createElement(Form.Item, { label: t("assessmentIsThirdPartyVerified"), className: "form-item", name: "IsThirdPartyVerified" },
20159
20186
  React.createElement(Radio.Group, { size: "middle", disabled: true },
20160
20187
  React.createElement("div", { className: "radio-container" },
20161
20188
  React.createElement(Radio.Button, { className: "radio" }, assessmentViewData.IsThirdPartyVerified))))),
20162
20189
  assessmentViewData.IsThirdPartyVerified ===
20163
- RadioButtonStatus.YES && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("coBenifits:verifyingOrgNamelbl"), name: "verifyingOrgName" },
20190
+ RadioButtonStatus.YES && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName" },
20164
20191
  React.createElement(Input, { disabled: true, style: { width: 303 }, defaultValue: assessmentViewData.verifyingOrgName
20165
20192
  ? assessmentViewData.verifyingOrgName
20166
20193
  : "-" }))),
20167
- assessmentViewData.hasOwnProperty("IsWillingToVerified") && (React.createElement(Form.Item, { label: t("coBenifits:assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
20194
+ assessmentViewData.hasOwnProperty("IsWillingToVerified") && (React.createElement(Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
20168
20195
  React.createElement(Radio.Group, { size: "middle", disabled: true },
20169
20196
  React.createElement("div", { className: "radio-container" },
20170
20197
  React.createElement(Radio.Button, { className: "radio" }, assessmentViewData.IsWillingToVerified))))),
20171
20198
  assessmentViewData.IsWillingToVerified ===
20172
- RadioButtonStatus.YES && (React.createElement(Form.Item, { label: t("coBenifits:verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
20199
+ RadioButtonStatus.YES && (React.createElement(Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
20173
20200
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.verifyingDetails
20174
20201
  ? assessmentViewData.verifyingDetails
20175
20202
  : "-", style: { width: 303 } }))))))),
20176
20203
  React.createElement(Row, null,
20177
20204
  React.createElement(Form, { name: "form2", labelCol: { span: 14 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 8 }, layout: "vertical", requiredMark: true, form: form2, className: "view-section" },
20178
20205
  React.createElement(Row, { className: "mg-bottom-1" },
20179
- React.createElement("label", { className: "co-sub-title-text" }, t("coBenifits:contactInformation"))),
20206
+ React.createElement("label", { className: "co-sub-title-text" }, t("contactInformation"))),
20180
20207
  React.createElement(Row, { justify: "start", gutter: 16 },
20181
20208
  React.createElement(Col, { flex: "139px" },
20182
20209
  React.createElement(React.Fragment, null,
20183
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentTitle"), name: "title" },
20210
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentTitle"), name: "title" },
20184
20211
  React.createElement(Select, { size: "large", style: {
20185
20212
  width: "139px",
20186
20213
  borderRadius: "4px",
20187
20214
  }, options: titleList }))),
20188
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentTitle"), name: "title" },
20215
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentTitle"), name: "title" },
20189
20216
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.title
20190
20217
  ? assessmentViewData.title
20191
20218
  : "-", style: { width: 303 } }))))),
20192
20219
  React.createElement(Col, { flex: "303px" },
20193
20220
  React.createElement(React.Fragment, null,
20194
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentFirstName"), name: "firstName" },
20221
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
20195
20222
  React.createElement(Input, { style: { width: 303 } }))),
20196
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentFirstName"), name: "firstName" },
20223
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
20197
20224
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.firstName
20198
20225
  ? assessmentViewData.firstName
20199
20226
  : "-", style: { width: 303 } }))))),
20200
20227
  React.createElement(Col, { flex: "303px" },
20201
20228
  React.createElement(React.Fragment, null,
20202
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentLastName"), name: "lastName" },
20229
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentLastName"), name: "lastName" },
20203
20230
  React.createElement(Input, { style: { width: 303 } }))),
20204
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentLastName"), name: "lastName" },
20231
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentLastName"), name: "lastName" },
20205
20232
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.lastName
20206
20233
  ? assessmentViewData.lastName
20207
20234
  : "-", style: { width: 303 } })))))),
20208
20235
  React.createElement(Row, { justify: "start", gutter: 16 },
20209
20236
  React.createElement(Col, { flex: "462px" },
20210
20237
  React.createElement(React.Fragment, null,
20211
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentOrganisation"), name: "organisation" },
20238
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
20212
20239
  React.createElement(Input, { style: { width: 462 } }))),
20213
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentOrganisation"), name: "organisation" },
20240
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
20214
20241
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.organisation
20215
20242
  ? assessmentViewData.organisation
20216
20243
  : "-", style: { width: 462 } }))))),
20217
20244
  React.createElement(Col, { flex: "303px" },
20218
20245
  React.createElement(React.Fragment, null,
20219
- React.createElement(Skeleton, { loading: isCountryListLoading, active: true }, !viewOnly && countries.length > 0 && (React.createElement(Form.Item, { label: t("coBenifits:assessmentTelephone"), name: "telephone" },
20246
+ React.createElement(Skeleton, { loading: isCountryListLoading, active: true }, !viewOnly && countries.length > 0 && (React.createElement(Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
20220
20247
  React.createElement(PhoneInput, { style: { width: 303 }, international: true, defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })))),
20221
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentTelephone"), name: "telephone" },
20248
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
20222
20249
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.telephone
20223
20250
  ? assessmentViewData.telephone
20224
20251
  : "-", style: { width: 303 } })))))),
20225
20252
  React.createElement(Row, { justify: "start", gutter: 16 },
20226
20253
  React.createElement(Col, { flex: "303px" },
20227
20254
  React.createElement(React.Fragment, null,
20228
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentEmail"), name: "email", rules: [
20255
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentEmail"), name: "email", rules: [
20229
20256
  {
20230
20257
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
20231
20258
  var val, reg, matches;
@@ -20246,15 +20273,15 @@ var Assessment = function (props) {
20246
20273
  },
20247
20274
  ] },
20248
20275
  React.createElement(Input, { style: { width: 303 } }))),
20249
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentEmail"), name: "email" },
20276
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentEmail"), name: "email" },
20250
20277
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.email
20251
20278
  ? assessmentViewData.email
20252
20279
  : "-", style: { width: 303 } }))))),
20253
20280
  React.createElement(Col, { flex: "462px" },
20254
20281
  React.createElement(React.Fragment, null,
20255
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentAffiliationCDM"), name: "affiliationCDM" },
20282
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
20256
20283
  React.createElement(Input, { style: { width: 462 } }))),
20257
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentAffiliationCDM"), name: "affiliationCDM" },
20284
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
20258
20285
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.affiliationCDM
20259
20286
  ? assessmentViewData.affiliationCDM
20260
20287
  : "-", style: { width: 462 } })))))))),
@@ -20262,15 +20289,15 @@ var Assessment = function (props) {
20262
20289
  React.createElement(Col, { span: 24 },
20263
20290
  React.createElement(Form, { name: "form3", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form3, onValuesChange: function () { return validateForms(); } },
20264
20291
  !viewOnly && (React.createElement("div", { className: "radio-content" },
20265
- React.createElement(Form.Item, { label: t("coBenifits:assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
20292
+ React.createElement(Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
20266
20293
  React.createElement(Radio.Group, { size: "middle", onChange: onIsThePersonListedChanged },
20267
20294
  React.createElement("div", { className: "radio-container" },
20268
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("coBenifits:yes"))),
20295
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
20269
20296
  React.createElement("div", { className: "radio-container" },
20270
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("coBenifits:no"))),
20297
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
20271
20298
  React.createElement("div", { className: "radio-container" },
20272
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("coBenifits:n/a"))))),
20273
- isPersonListedDetailsVisible === true && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("coBenifits:specify"), name: "personListedDetails", rules: [
20299
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("n/a"))))),
20300
+ isPersonListedDetailsVisible === true && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails", rules: [
20274
20301
  {
20275
20302
  required: true,
20276
20303
  message: "",
@@ -20278,45 +20305,45 @@ var Assessment = function (props) {
20278
20305
  ] },
20279
20306
  React.createElement(Input, { style: { width: 303 } }))))),
20280
20307
  viewOnly && (React.createElement("div", { className: "radio-content view-section" },
20281
- assessmentViewData.hasOwnProperty("isThePersonListed") && (React.createElement(Form.Item, { label: t("coBenifits:assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
20308
+ assessmentViewData.hasOwnProperty("isThePersonListed") && (React.createElement(Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
20282
20309
  React.createElement(Radio.Group, { size: "middle", disabled: true },
20283
20310
  React.createElement("div", { className: "radio-container" },
20284
20311
  React.createElement(Radio.Button, { className: "radio" }, assessmentViewData.isThePersonListed))))),
20285
20312
  assessmentViewData.isThePersonListed ===
20286
- RadioButtonStatus.NO && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("coBenifits:specify"), name: "personListedDetails" },
20313
+ RadioButtonStatus.NO && (React.createElement(Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails" },
20287
20314
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.personListedDetails
20288
20315
  ? assessmentViewData.personListedDetails
20289
20316
  : "-", style: { width: 303 } })))))))),
20290
20317
  React.createElement(Row, null,
20291
20318
  React.createElement(Form, { layout: "vertical", name: "form4", form: form4, className: "view-section" },
20292
20319
  React.createElement(Row, { className: "mg-bottom-1" },
20293
- React.createElement("label", { className: "co-sub-title-text" }, t("coBenifits:feasibilityReport"))),
20320
+ React.createElement("label", { className: "co-sub-title-text" }, t("feasibilityReport"))),
20294
20321
  React.createElement(Row, { justify: "start", gutter: 16 },
20295
20322
  React.createElement(Col, { flex: "303px" },
20296
20323
  React.createElement(React.Fragment, null,
20297
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentStudyName"), name: "studyName" },
20324
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
20298
20325
  React.createElement(Input, { style: { width: 303 } }))),
20299
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentStudyName"), name: "studyName" },
20326
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
20300
20327
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.studyName
20301
20328
  ? assessmentViewData.studyName
20302
20329
  : "-", style: { width: 303 } }))))),
20303
20330
  React.createElement(Col, { flex: "303px" },
20304
20331
  React.createElement(React.Fragment, null,
20305
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentFunder"), name: "funder" },
20332
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentFunder"), name: "funder" },
20306
20333
  React.createElement(Input, { style: { width: 303 } }))),
20307
- viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentFunder"), name: "funder" },
20334
+ viewOnly && (React.createElement(Form.Item, { label: t("assessmentFunder"), name: "funder" },
20308
20335
  React.createElement(Input, { disabled: true, defaultValue: assessmentViewData.funder
20309
20336
  ? assessmentViewData.funder
20310
20337
  : "-", style: { width: 303 } })))))),
20311
20338
  React.createElement(Row, null,
20312
- !viewOnly && (React.createElement(Form.Item, { label: t("coBenifits:assessmentDocuments"), name: "document", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
20339
+ !viewOnly && (React.createElement(Form.Item, { label: t("assessmentDocuments"), name: "document", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
20313
20340
  {
20314
20341
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
20315
20342
  var _a, _b;
20316
20343
  return __generator(this, function (_c) {
20317
20344
  if ((file === null || file === void 0 ? void 0 : file.length) > 0) {
20318
20345
  if (!isValidateFileType((_a = file[0]) === null || _a === void 0 ? void 0 : _a.type)) {
20319
- throw new Error("".concat(t("coBenifits:invalidFileFormat")));
20346
+ throw new Error("".concat(t("invalidFileFormat")));
20320
20347
  }
20321
20348
  else if (((_b = file[0]) === null || _b === void 0 ? void 0 : _b.size) > maximumFileSize) {
20322
20349
  throw new Error("".concat(t("common:maxSizeVal")));
@@ -20329,9 +20356,9 @@ var Assessment = function (props) {
20329
20356
  ] },
20330
20357
  React.createElement(Upload, { accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", beforeUpload: function (file) {
20331
20358
  return false;
20332
- }, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1 },
20359
+ }, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1, onChange: onAssesmentDocument },
20333
20360
  React.createElement(Button, { className: "upload-doc", size: "large", icon: React.createElement(UploadOutlined, null) }, "Upload")))),
20334
- viewOnly && assessmentViewData.document && (React.createElement(Form.Item, { label: t("coBenifits:assessmentDocuments"), name: "assessmentDocuments" },
20361
+ viewOnly && assessmentViewData.document && (React.createElement(Form.Item, { label: t("assessmentDocuments"), name: "assessmentDocuments" },
20335
20362
  React.createElement("a", { href: assessmentViewData.document, target: "_blank", rel: "noopener noreferrer", download: true }, assessmentViewData.document))))))))));
20336
20363
  };
20337
20364
 
@@ -20507,175 +20534,176 @@ var SdgGoals = function (props) {
20507
20534
 
20508
20535
  var Safeguards = function (props) {
20509
20536
  var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly, translator = props.translator;
20537
+ translator.setDefaultNamespace("safeguards");
20510
20538
  var t = translator.t;
20511
20539
  var _a = useState(), safeguardDetails = _a[0], setSafeguardDetails = _a[1];
20512
20540
  var form = Form.useForm()[0];
20513
20541
  var initialFormElementList = [
20514
20542
  {
20515
20543
  type: FormElementType.Label,
20516
- label: t("safeguards:humanRights"),
20544
+ label: t("humanRights"),
20517
20545
  items: [
20518
20546
  {
20519
20547
  type: FormElementType.Radio,
20520
- label: t("safeguards:isRespectHumanRights"),
20548
+ label: t("isRespectHumanRights"),
20521
20549
  name: "isRespectHumanRights",
20522
20550
  },
20523
20551
  {
20524
20552
  type: FormElementType.Radio,
20525
- label: t("safeguards:isProjectdiscriminate"),
20553
+ label: t("isProjectdiscriminate"),
20526
20554
  name: "isProjectdiscriminate",
20527
20555
  },
20528
20556
  ],
20529
20557
  },
20530
20558
  {
20531
20559
  type: FormElementType.Label,
20532
- label: t("safeguards:genderEquality"),
20560
+ label: t("genderEquality"),
20533
20561
  items: [
20534
20562
  {
20535
20563
  type: FormElementType.Radio,
20536
- label: t("safeguards:genderEqualityQ1"),
20564
+ label: t("genderEqualityQ1"),
20537
20565
  name: "genderEqualityQ1",
20538
20566
  },
20539
20567
  {
20540
20568
  type: FormElementType.Radio,
20541
- label: t("safeguards:genderEqualityQ2"),
20569
+ label: t("genderEqualityQ2"),
20542
20570
  name: "genderEqualityQ2",
20543
20571
  },
20544
20572
  {
20545
20573
  type: FormElementType.Radio,
20546
- label: t("safeguards:genderEqualityQ3"),
20574
+ label: t("genderEqualityQ3"),
20547
20575
  name: "genderEqualityQ3",
20548
20576
  },
20549
20577
  {
20550
20578
  type: FormElementType.Radio,
20551
- label: t("safeguards:genderEqualityQ4"),
20579
+ label: t("genderEqualityQ4"),
20552
20580
  name: "genderEqualityQ4",
20553
20581
  },
20554
20582
  ],
20555
20583
  },
20556
20584
  {
20557
20585
  type: FormElementType.Label,
20558
- label: t("safeguards:communityHealth"),
20586
+ label: t("communityHealth"),
20559
20587
  items: [
20560
20588
  {
20561
20589
  type: FormElementType.Radio,
20562
- label: t("safeguards:communityHealthQ1"),
20590
+ label: t("communityHealthQ1"),
20563
20591
  name: "communityHealthQ1",
20564
20592
  },
20565
20593
  ],
20566
20594
  },
20567
20595
  {
20568
20596
  type: FormElementType.Label,
20569
- label: t("safeguards:historicHeritage"),
20597
+ label: t("historicHeritage"),
20570
20598
  items: [
20571
20599
  {
20572
20600
  type: FormElementType.Radio,
20573
- label: t("safeguards:historicHeritageQ1"),
20601
+ label: t("historicHeritageQ1"),
20574
20602
  name: "historicHeritageQ1",
20575
20603
  },
20576
20604
  ],
20577
20605
  },
20578
20606
  {
20579
20607
  type: FormElementType.Label,
20580
- label: t("safeguards:forcedEviction"),
20608
+ label: t("forcedEviction"),
20581
20609
  items: [
20582
20610
  {
20583
20611
  type: FormElementType.Radio,
20584
- label: t("safeguards:forcedEvictionQ1"),
20612
+ label: t("forcedEvictionQ1"),
20585
20613
  name: "forcedEvictionQ1",
20586
20614
  },
20587
20615
  ],
20588
20616
  },
20589
20617
  {
20590
20618
  type: FormElementType.Label,
20591
- label: t("safeguards:landTenure"),
20619
+ label: t("landTenure"),
20592
20620
  items: [
20593
20621
  {
20594
20622
  type: FormElementType.Radio,
20595
- label: t("safeguards:landTenureQ1"),
20623
+ label: t("landTenureQ1"),
20596
20624
  name: "landTenureQ1",
20597
20625
  },
20598
20626
  {
20599
20627
  type: FormElementType.Radio,
20600
- label: t("safeguards:landTenureQ2"),
20628
+ label: t("landTenureQ2"),
20601
20629
  name: "landTenureQ2",
20602
20630
  },
20603
20631
  ],
20604
20632
  },
20605
20633
  {
20606
20634
  type: FormElementType.Label,
20607
- label: t("safeguards:indegenousPeople"),
20635
+ label: t("indegenousPeople"),
20608
20636
  items: [
20609
20637
  {
20610
20638
  type: FormElementType.Radio,
20611
- label: t("safeguards:indegenousPeopleQ1"),
20639
+ label: t("indegenousPeopleQ1"),
20612
20640
  name: "indegenousPeopleQ1",
20613
20641
  },
20614
20642
  ],
20615
20643
  },
20616
20644
  {
20617
20645
  type: FormElementType.Label,
20618
- label: t("safeguards:corruption"),
20646
+ label: t("corruption"),
20619
20647
  items: [
20620
20648
  {
20621
20649
  type: FormElementType.Radio,
20622
- label: t("safeguards:corruptionQ1"),
20650
+ label: t("corruptionQ1"),
20623
20651
  name: "corruptionQ1",
20624
20652
  },
20625
20653
  ],
20626
20654
  },
20627
20655
  {
20628
20656
  type: FormElementType.Label,
20629
- label: t("safeguards:labourRights"),
20657
+ label: t("labourRights"),
20630
20658
  items: [
20631
20659
  {
20632
20660
  type: FormElementType.Radio,
20633
- label: t("safeguards:labourRightsQ1"),
20661
+ label: t("labourRightsQ1"),
20634
20662
  name: "labourRightsQ1",
20635
20663
  },
20636
20664
  {
20637
20665
  type: FormElementType.Radio,
20638
- label: t("safeguards:labourRightsQ2"),
20666
+ label: t("labourRightsQ2"),
20639
20667
  name: "labourRightsQ2",
20640
20668
  },
20641
20669
  {
20642
20670
  type: FormElementType.Label,
20643
- label: t("safeguards:labourRightsSubLabel"),
20671
+ label: t("labourRightsSubLabel"),
20644
20672
  className: "mg-left-2",
20645
20673
  items: [
20646
20674
  {
20647
20675
  type: FormElementType.Radio,
20648
- label: t("safeguards:labourRightsSubQ1"),
20676
+ label: t("labourRightsSubQ1"),
20649
20677
  name: "labourRightsSubQ1",
20650
20678
  className: "mg-left-4",
20651
20679
  },
20652
20680
  {
20653
20681
  type: FormElementType.Radio,
20654
- label: t("safeguards:labourRightsSubQ2"),
20682
+ label: t("labourRightsSubQ2"),
20655
20683
  name: "labourRightsSubQ2",
20656
20684
  className: "mg-left-4",
20657
20685
  },
20658
20686
  {
20659
20687
  type: FormElementType.Radio,
20660
- label: t("safeguards:labourRightsSubQ3"),
20688
+ label: t("labourRightsSubQ3"),
20661
20689
  name: "labourRightsSubQ3",
20662
20690
  className: "mg-left-4",
20663
20691
  },
20664
20692
  {
20665
20693
  type: FormElementType.Radio,
20666
- label: t("safeguards:labourRightsSubQ4"),
20694
+ label: t("labourRightsSubQ4"),
20667
20695
  name: "labourRightsSubQ4",
20668
20696
  className: "mg-left-4",
20669
20697
  },
20670
20698
  {
20671
20699
  type: FormElementType.Radio,
20672
- label: t("safeguards:labourRightsSubQ5"),
20700
+ label: t("labourRightsSubQ5"),
20673
20701
  name: "labourRightsSubQ5",
20674
20702
  className: "mg-left-4",
20675
20703
  },
20676
20704
  {
20677
20705
  type: FormElementType.Radio,
20678
- label: t("safeguards:labourRightsSubQ6"),
20706
+ label: t("labourRightsSubQ6"),
20679
20707
  name: "labourRightsSubQ6",
20680
20708
  className: "mg-left-4",
20681
20709
  },
@@ -20683,198 +20711,198 @@ var Safeguards = function (props) {
20683
20711
  },
20684
20712
  {
20685
20713
  type: FormElementType.Radio,
20686
- label: t("safeguards:labourRightsQ3"),
20714
+ label: t("labourRightsQ3"),
20687
20715
  name: "labourRightsQ3",
20688
20716
  },
20689
20717
  {
20690
20718
  type: FormElementType.Radio,
20691
- label: t("safeguards:labourRightsQ4"),
20719
+ label: t("labourRightsQ4"),
20692
20720
  name: "labourRightsQ4",
20693
20721
  },
20694
20722
  ],
20695
20723
  },
20696
20724
  {
20697
20725
  type: FormElementType.Label,
20698
- label: t("safeguards:economicConsequences"),
20726
+ label: t("economicConsequences"),
20699
20727
  items: [
20700
20728
  {
20701
20729
  type: FormElementType.Radio,
20702
- label: t("safeguards:economicConsequencesQ1"),
20730
+ label: t("economicConsequencesQ1"),
20703
20731
  name: "economicConsequencesQ1",
20704
20732
  },
20705
20733
  ],
20706
20734
  },
20707
20735
  {
20708
20736
  type: FormElementType.Label,
20709
- label: t("safeguards:emissions"),
20737
+ label: t("emissions"),
20710
20738
  items: [
20711
20739
  {
20712
20740
  type: FormElementType.Radio,
20713
- label: t("safeguards:emissionsQ1"),
20741
+ label: t("emissionsQ1"),
20714
20742
  name: "emissionsQ1",
20715
20743
  },
20716
20744
  ],
20717
20745
  },
20718
20746
  {
20719
20747
  type: FormElementType.Label,
20720
- label: t("safeguards:energySupply"),
20748
+ label: t("energySupply"),
20721
20749
  items: [
20722
20750
  {
20723
20751
  type: FormElementType.Radio,
20724
- label: t("safeguards:energySupplyQ1"),
20752
+ label: t("energySupplyQ1"),
20725
20753
  name: "energySupplyQ1",
20726
20754
  },
20727
20755
  ],
20728
20756
  },
20729
20757
  {
20730
20758
  type: FormElementType.Label,
20731
- label: t("safeguards:waterPattern"),
20759
+ label: t("waterPattern"),
20732
20760
  items: [
20733
20761
  {
20734
20762
  type: FormElementType.Radio,
20735
- label: t("safeguards:waterPatternQ1"),
20763
+ label: t("waterPatternQ1"),
20736
20764
  name: "waterPatternQ1",
20737
20765
  },
20738
20766
  ],
20739
20767
  },
20740
20768
  {
20741
20769
  type: FormElementType.Label,
20742
- label: t("safeguards:erosoin"),
20770
+ label: t("erosoin"),
20743
20771
  items: [
20744
20772
  {
20745
20773
  type: FormElementType.Radio,
20746
- label: t("safeguards:erosoinQ1"),
20774
+ label: t("erosoinQ1"),
20747
20775
  name: "erosoinQ1",
20748
20776
  },
20749
20777
  {
20750
20778
  type: FormElementType.Radio,
20751
- label: t("safeguards:erosoinQ2"),
20779
+ label: t("erosoinQ2"),
20752
20780
  name: "erosoinQ2",
20753
20781
  },
20754
20782
  ],
20755
20783
  },
20756
20784
  {
20757
20785
  type: FormElementType.Label,
20758
- label: t("safeguards:landscape"),
20786
+ label: t("landscape"),
20759
20787
  items: [
20760
20788
  {
20761
20789
  type: FormElementType.Radio,
20762
- label: t("safeguards:landscapeQ1"),
20790
+ label: t("landscapeQ1"),
20763
20791
  name: "landscapeQ1",
20764
20792
  },
20765
20793
  ],
20766
20794
  },
20767
20795
  {
20768
20796
  type: FormElementType.Label,
20769
- label: t("safeguards:naturalDisaster"),
20797
+ label: t("naturalDisaster"),
20770
20798
  items: [
20771
20799
  {
20772
20800
  type: FormElementType.Radio,
20773
- label: t("safeguards:naturalDisasterQ1"),
20801
+ label: t("naturalDisasterQ1"),
20774
20802
  name: "naturalDisasterQ1",
20775
20803
  },
20776
20804
  ],
20777
20805
  },
20778
20806
  {
20779
20807
  type: FormElementType.Label,
20780
- label: t("safeguards:genetic"),
20808
+ label: t("genetic"),
20781
20809
  items: [
20782
20810
  {
20783
20811
  type: FormElementType.Radio,
20784
- label: t("safeguards:geneticQ1"),
20812
+ label: t("geneticQ1"),
20785
20813
  name: "geneticQ1",
20786
20814
  },
20787
20815
  ],
20788
20816
  },
20789
20817
  {
20790
20818
  type: FormElementType.Label,
20791
- label: t("safeguards:pollutants"),
20819
+ label: t("pollutants"),
20792
20820
  items: [
20793
20821
  {
20794
20822
  type: FormElementType.Radio,
20795
- label: t("safeguards:pollutantsQ1"),
20823
+ label: t("pollutantsQ1"),
20796
20824
  name: "pollutantsQ1",
20797
20825
  },
20798
20826
  ],
20799
20827
  },
20800
20828
  {
20801
20829
  type: FormElementType.Label,
20802
- label: t("safeguards:hazardousWaste"),
20830
+ label: t("hazardousWaste"),
20803
20831
  items: [
20804
20832
  {
20805
20833
  type: FormElementType.Radio,
20806
- label: t("safeguards:hazardousWasteQ1"),
20834
+ label: t("hazardousWasteQ1"),
20807
20835
  name: "hazardousWasteQ1",
20808
20836
  },
20809
20837
  ],
20810
20838
  },
20811
20839
  {
20812
20840
  type: FormElementType.Label,
20813
- label: t("safeguards:pesticides"),
20841
+ label: t("pesticides"),
20814
20842
  items: [
20815
20843
  {
20816
20844
  type: FormElementType.Radio,
20817
- label: t("safeguards:pesticidesQ1"),
20845
+ label: t("pesticidesQ1"),
20818
20846
  name: "pesticidesQ1",
20819
20847
  },
20820
20848
  ],
20821
20849
  },
20822
20850
  {
20823
20851
  type: FormElementType.Label,
20824
- label: t("safeguards:harvestForests"),
20852
+ label: t("harvestForests"),
20825
20853
  items: [
20826
20854
  {
20827
20855
  type: FormElementType.Radio,
20828
- label: t("safeguards:harvestForestsQ1"),
20856
+ label: t("harvestForestsQ1"),
20829
20857
  name: "harvestForestsQ1",
20830
20858
  },
20831
20859
  ],
20832
20860
  },
20833
20861
  {
20834
20862
  type: FormElementType.Label,
20835
- label: t("safeguards:food"),
20863
+ label: t("food"),
20836
20864
  items: [
20837
20865
  {
20838
20866
  type: FormElementType.Radio,
20839
- label: t("safeguards:foodQ1"),
20867
+ label: t("foodQ1"),
20840
20868
  name: "foodQ1",
20841
20869
  },
20842
20870
  ],
20843
20871
  },
20844
20872
  {
20845
20873
  type: FormElementType.Label,
20846
- label: t("safeguards:animalHusbandry"),
20874
+ label: t("animalHusbandry"),
20847
20875
  items: [
20848
20876
  {
20849
20877
  type: FormElementType.Radio,
20850
- label: t("safeguards:animalHusbandryQ1"),
20878
+ label: t("animalHusbandryQ1"),
20851
20879
  name: "animalHusbandryQ1",
20852
20880
  },
20853
20881
  ],
20854
20882
  },
20855
20883
  {
20856
20884
  type: FormElementType.Label,
20857
- label: t("safeguards:criticalHabitats"),
20885
+ label: t("criticalHabitats"),
20858
20886
  items: [
20859
20887
  {
20860
20888
  type: FormElementType.Radio,
20861
- label: t("safeguards:criticalHabitatsQ1"),
20889
+ label: t("criticalHabitatsQ1"),
20862
20890
  name: "criticalHabitatsQ1",
20863
20891
  },
20864
20892
  ],
20865
20893
  },
20866
20894
  {
20867
20895
  type: FormElementType.Label,
20868
- label: t("safeguards:endangeredSpecies"),
20896
+ label: t("endangeredSpecies"),
20869
20897
  items: [
20870
20898
  {
20871
20899
  type: FormElementType.Radio,
20872
- label: t("safeguards:endangeredSpeciesQ1"),
20900
+ label: t("endangeredSpeciesQ1"),
20873
20901
  name: "endangeredSpeciesQ1",
20874
20902
  },
20875
20903
  {
20876
20904
  type: FormElementType.Radio,
20877
- label: t("safeguards:endangeredSpeciesQ2"),
20905
+ label: t("endangeredSpeciesQ2"),
20878
20906
  name: "endangeredSpeciesQ2",
20879
20907
  },
20880
20908
  ],
@@ -20939,7 +20967,7 @@ var Safeguards = function (props) {
20939
20967
  React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
20940
20968
  React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
20941
20969
  React.createElement("span", null,
20942
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("safeguards:undpSespTitle")))),
20970
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("undpSespTitle")))),
20943
20971
  React.createElement(Col, { span: 24 },
20944
20972
  React.createElement("div", { className: "undpSesp-section-divider" })))),
20945
20973
  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) {
@@ -20958,11 +20986,11 @@ var Safeguards = function (props) {
20958
20986
  ] },
20959
20987
  React.createElement(Radio.Group, { size: "middle" },
20960
20988
  React.createElement("div", { className: "radio-container" },
20961
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.YES }, t("safeguards:yes"))),
20989
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.YES }, t("yes"))),
20962
20990
  React.createElement("div", { className: "radio-container" },
20963
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.MAYBE }, t("safeguards:maybe"))),
20991
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.MAYBE }, t("maybe"))),
20964
20992
  React.createElement("div", { className: "radio-container" },
20965
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.NO }, t("safeguards:no")))))),
20993
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.NO }, t("no")))))),
20966
20994
  viewOnly &&
20967
20995
  safeGuardViewData.hasOwnProperty(item === null || item === void 0 ? void 0 : item.name) && (React.createElement("div", { className: "view-section" },
20968
20996
  React.createElement(Form.Item, { label: item === null || item === void 0 ? void 0 : item.label, className: item.className
@@ -20987,11 +21015,11 @@ var Safeguards = function (props) {
20987
21015
  ] },
20988
21016
  React.createElement(Radio.Group, { size: "middle" },
20989
21017
  React.createElement("div", { className: "radio-container" },
20990
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.YES }, t("safeguards:yes"))),
21018
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.YES }, t("yes"))),
20991
21019
  React.createElement("div", { className: "radio-container" },
20992
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.MAYBE }, t("safeguards:maybe"))),
21020
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.MAYBE }, t("maybe"))),
20993
21021
  React.createElement("div", { className: "radio-container" },
20994
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.NO }, t("safeguards:no")))))),
21022
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus2.NO }, t("no")))))),
20995
21023
  viewOnly &&
20996
21024
  safeGuardViewData.hasOwnProperty(subItem === null || subItem === void 0 ? void 0 : subItem.name) && (React.createElement("div", { className: "view-section" },
20997
21025
  React.createElement(Form.Item, { label: subItem === null || subItem === void 0 ? void 0 : subItem.label, className: subItem.className
@@ -21008,203 +21036,204 @@ var Safeguards = function (props) {
21008
21036
 
21009
21037
  var Environmental = function (props) {
21010
21038
  var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
21039
+ translator.setDefaultNamespace("unfcccSdTool");
21011
21040
  var t = translator.t;
21012
21041
  var environmentalDetailsInitial = [
21013
21042
  {
21014
- section: t("unfcccSdTool:air"),
21043
+ section: t("air"),
21015
21044
  fields: [
21016
21045
  {
21017
21046
  name: "airQ1",
21018
- label: t("unfcccSdTool:airQ1"),
21047
+ label: t("airQ1"),
21019
21048
  hide: false,
21020
21049
  required: false,
21021
21050
  },
21022
21051
  {
21023
21052
  name: "airQ2",
21024
- label: t("unfcccSdTool:airQ2"),
21053
+ label: t("airQ2"),
21025
21054
  hide: true,
21026
21055
  required: true,
21027
21056
  },
21028
21057
  {
21029
21058
  name: "airQ3",
21030
- label: t("unfcccSdTool:airQ3"),
21059
+ label: t("airQ3"),
21031
21060
  hide: true,
21032
21061
  required: true,
21033
21062
  },
21034
21063
  {
21035
21064
  name: "airQ4",
21036
- label: t("unfcccSdTool:airQ4"),
21065
+ label: t("airQ4"),
21037
21066
  hide: true,
21038
21067
  required: true,
21039
21068
  },
21040
21069
  {
21041
21070
  name: "airQ5",
21042
- label: t("unfcccSdTool:airQ5"),
21071
+ label: t("airQ5"),
21043
21072
  hide: true,
21044
21073
  required: true,
21045
21074
  },
21046
21075
  {
21047
21076
  name: "airQ6",
21048
- label: t("unfcccSdTool:airQ6"),
21077
+ label: t("airQ6"),
21049
21078
  hide: true,
21050
21079
  required: true,
21051
21080
  },
21052
21081
  {
21053
21082
  name: "airQ7",
21054
- label: t("unfcccSdTool:airQ7"),
21083
+ label: t("airQ7"),
21055
21084
  hide: true,
21056
21085
  required: true,
21057
21086
  },
21058
21087
  {
21059
21088
  name: "airQ8",
21060
- label: t("unfcccSdTool:airQ8"),
21089
+ label: t("airQ8"),
21061
21090
  hide: true,
21062
21091
  required: true,
21063
21092
  },
21064
21093
  {
21065
21094
  name: "airQ9",
21066
- label: t("unfcccSdTool:airQ9"),
21095
+ label: t("airQ9"),
21067
21096
  hide: true,
21068
21097
  required: true,
21069
21098
  },
21070
21099
  ],
21071
21100
  },
21072
21101
  {
21073
- section: t("unfcccSdTool:land"),
21102
+ section: t("land"),
21074
21103
  fields: [
21075
21104
  {
21076
21105
  name: "landQ1",
21077
- label: t("unfcccSdTool:landQ1"),
21106
+ label: t("landQ1"),
21078
21107
  hide: false,
21079
21108
  required: false,
21080
21109
  },
21081
21110
  {
21082
21111
  name: "landQ2",
21083
- label: t("unfcccSdTool:landQ2"),
21112
+ label: t("landQ2"),
21084
21113
  hide: true,
21085
21114
  required: true,
21086
21115
  },
21087
21116
  {
21088
21117
  name: "landQ3",
21089
- label: t("unfcccSdTool:landQ3"),
21118
+ label: t("landQ3"),
21090
21119
  hide: true,
21091
21120
  required: true,
21092
21121
  },
21093
21122
  {
21094
21123
  name: "landQ4",
21095
- label: t("unfcccSdTool:landQ4"),
21124
+ label: t("landQ4"),
21096
21125
  hide: true,
21097
21126
  required: true,
21098
21127
  },
21099
21128
  {
21100
21129
  name: "landQ5",
21101
- label: t("unfcccSdTool:landQ5"),
21130
+ label: t("landQ5"),
21102
21131
  hide: true,
21103
21132
  required: true,
21104
21133
  },
21105
21134
  {
21106
21135
  name: "landQ6",
21107
- label: t("unfcccSdTool:landQ6"),
21136
+ label: t("landQ6"),
21108
21137
  hide: true,
21109
21138
  required: true,
21110
21139
  },
21111
21140
  {
21112
21141
  name: "landQ7",
21113
- label: t("unfcccSdTool:landQ7"),
21142
+ label: t("landQ7"),
21114
21143
  hide: true,
21115
21144
  required: true,
21116
21145
  },
21117
21146
  {
21118
21147
  name: "landQ8",
21119
- label: t("unfcccSdTool:landQ8"),
21148
+ label: t("landQ8"),
21120
21149
  hide: true,
21121
21150
  required: true,
21122
21151
  },
21123
21152
  ],
21124
21153
  },
21125
21154
  {
21126
- section: t("unfcccSdTool:water"),
21155
+ section: t("water"),
21127
21156
  fields: [
21128
21157
  {
21129
21158
  name: "waterQ1",
21130
- label: t("unfcccSdTool:waterQ1"),
21159
+ label: t("waterQ1"),
21131
21160
  hide: false,
21132
21161
  required: false,
21133
21162
  },
21134
21163
  {
21135
21164
  name: "waterQ2",
21136
- label: t("unfcccSdTool:waterQ2"),
21165
+ label: t("waterQ2"),
21137
21166
  hide: true,
21138
21167
  required: true,
21139
21168
  },
21140
21169
  {
21141
21170
  name: "waterQ3",
21142
- label: t("unfcccSdTool:waterQ3"),
21171
+ label: t("waterQ3"),
21143
21172
  hide: true,
21144
21173
  required: true,
21145
21174
  },
21146
21175
  {
21147
21176
  name: "waterQ4",
21148
- label: t("unfcccSdTool:waterQ4"),
21177
+ label: t("waterQ4"),
21149
21178
  hide: true,
21150
21179
  required: true,
21151
21180
  },
21152
21181
  {
21153
21182
  name: "waterQ5",
21154
- label: t("unfcccSdTool:waterQ5"),
21183
+ label: t("waterQ5"),
21155
21184
  hide: true,
21156
21185
  required: true,
21157
21186
  },
21158
21187
  {
21159
21188
  name: "waterQ6",
21160
- label: t("unfcccSdTool:waterQ6"),
21189
+ label: t("waterQ6"),
21161
21190
  hide: true,
21162
21191
  required: true,
21163
21192
  },
21164
21193
  {
21165
21194
  name: "waterQ7",
21166
- label: t("unfcccSdTool:waterQ7"),
21195
+ label: t("waterQ7"),
21167
21196
  hide: true,
21168
21197
  required: true,
21169
21198
  },
21170
21199
  ],
21171
21200
  },
21172
21201
  {
21173
- section: t("unfcccSdTool:naturalResource"),
21202
+ section: t("naturalResource"),
21174
21203
  fields: [
21175
21204
  {
21176
21205
  name: "naturalResourceQ1",
21177
- label: t("unfcccSdTool:naturalResourceQ1"),
21206
+ label: t("naturalResourceQ1"),
21178
21207
  hide: false,
21179
21208
  required: false,
21180
21209
  },
21181
21210
  {
21182
21211
  name: "naturalResourceQ2",
21183
- label: t("unfcccSdTool:naturalResourceQ2"),
21212
+ label: t("naturalResourceQ2"),
21184
21213
  hide: true,
21185
21214
  required: true,
21186
21215
  },
21187
21216
  {
21188
21217
  name: "naturalResourceQ3",
21189
- label: t("unfcccSdTool:naturalResourceQ3"),
21218
+ label: t("naturalResourceQ3"),
21190
21219
  hide: true,
21191
21220
  required: true,
21192
21221
  },
21193
21222
  {
21194
21223
  name: "naturalResourceQ4",
21195
- label: t("unfcccSdTool:naturalResourceQ4"),
21224
+ label: t("naturalResourceQ4"),
21196
21225
  hide: true,
21197
21226
  required: true,
21198
21227
  },
21199
21228
  {
21200
21229
  name: "naturalResourceQ5",
21201
- label: t("unfcccSdTool:naturalResourceQ5"),
21230
+ label: t("naturalResourceQ5"),
21202
21231
  hide: true,
21203
21232
  required: true,
21204
21233
  },
21205
21234
  {
21206
21235
  name: "naturalResourceQ6",
21207
- label: t("unfcccSdTool:naturalResourceQ6"),
21236
+ label: t("naturalResourceQ6"),
21208
21237
  hide: true,
21209
21238
  required: true,
21210
21239
  },
@@ -21222,7 +21251,7 @@ var Environmental = function (props) {
21222
21251
  if (changedFieldName.includes("1")) {
21223
21252
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
21224
21253
  var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
21225
- var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t("unfcccSdTool:" + sectionName_1); });
21254
+ var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
21226
21255
  updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
21227
21256
  if (field.name !== changedFieldName) {
21228
21257
  field.hide = changedFieldValue !== RadioButtonStatus.YES;
@@ -21241,41 +21270,41 @@ var Environmental = function (props) {
21241
21270
  if (environmentalViewData && viewOnly === true) {
21242
21271
  var updatedEnvironmentalData = [
21243
21272
  {
21244
- section: t("unfcccSdTool:air"),
21273
+ section: t("air"),
21245
21274
  fields: [],
21246
21275
  },
21247
21276
  {
21248
- section: t("unfcccSdTool:land"),
21277
+ section: t("land"),
21249
21278
  fields: [],
21250
21279
  },
21251
21280
  {
21252
- section: t("unfcccSdTool:water"),
21281
+ section: t("water"),
21253
21282
  fields: [],
21254
21283
  },
21255
21284
  {
21256
- section: t("unfcccSdTool:naturalResource"),
21285
+ section: t("naturalResource"),
21257
21286
  fields: [],
21258
21287
  },
21259
21288
  ];
21260
21289
  var _loop_1 = function (key) {
21261
21290
  var section = "";
21262
21291
  if (String(key).includes("air")) {
21263
- section = t("unfcccSdTool:air");
21292
+ section = t("air");
21264
21293
  }
21265
21294
  else if (String(key).includes("land")) {
21266
- section = t("unfcccSdTool:land");
21295
+ section = t("land");
21267
21296
  }
21268
21297
  else if (String(key).includes("water")) {
21269
- section = t("unfcccSdTool:water");
21298
+ section = t("water");
21270
21299
  }
21271
21300
  else if (String(key).includes("naturalResource")) {
21272
- section = t("unfcccSdTool:naturalResource");
21301
+ section = t("naturalResource");
21273
21302
  }
21274
21303
  var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
21275
21304
  if (environmentalItem) {
21276
21305
  environmentalItem.fields.push({
21277
21306
  name: key,
21278
- label: t("unfcccSdTool:" + key),
21307
+ label: t(key),
21279
21308
  hide: false,
21280
21309
  value: environmentalViewData[key],
21281
21310
  });
@@ -21297,11 +21326,11 @@ var Environmental = function (props) {
21297
21326
  React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
21298
21327
  React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
21299
21328
  React.createElement("span", null,
21300
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdTool:unfcccSdToolTitle")))),
21329
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
21301
21330
  React.createElement(Col, { span: 24 },
21302
21331
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21303
21332
  React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
21304
- React.createElement("span", null, t("unfcccSdTool:environmental"))),
21333
+ React.createElement("span", null, t("environmental"))),
21305
21334
  React.createElement(Col, { span: 24 },
21306
21335
  React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
21307
21336
  (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 :
@@ -21314,188 +21343,189 @@ var Environmental = function (props) {
21314
21343
  {
21315
21344
  required: field === null || field === void 0 ? void 0 : field.required,
21316
21345
  message: (field === null || field === void 0 ? void 0 : field.required) &&
21317
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("unfcccSdTool:isRequired")),
21346
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
21318
21347
  },
21319
21348
  ] },
21320
21349
  React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
21321
21350
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
21322
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes")))),
21351
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
21323
21352
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
21324
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no")))),
21353
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
21325
21354
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
21326
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na")))))) : (React.createElement(React.Fragment, null,
21355
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
21327
21356
  React.createElement("div", { className: "yes-no-radio-container" },
21328
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes"))),
21357
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
21329
21358
  React.createElement("div", { className: "yes-no-radio-container" },
21330
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no"))),
21359
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
21331
21360
  React.createElement("div", { className: "yes-no-radio-container" },
21332
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na"))))))));
21361
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
21333
21362
  })));
21334
21363
  })))));
21335
21364
  };
21336
21365
 
21337
21366
  var Economic = function (props) {
21338
21367
  var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
21368
+ translator.setDefaultNamespace("unfcccSdTool");
21339
21369
  var t = translator.t;
21340
21370
  var economicDetailsInitial = [
21341
21371
  {
21342
- section: t("unfcccSdTool:growth"),
21372
+ section: t("growth"),
21343
21373
  fields: [
21344
21374
  {
21345
21375
  name: "growthQ1",
21346
- label: t("unfcccSdTool:growthQ1"),
21376
+ label: t("growthQ1"),
21347
21377
  hide: false,
21348
21378
  required: false,
21349
21379
  },
21350
21380
  {
21351
21381
  name: "growthQ2",
21352
- label: t("unfcccSdTool:growthQ2"),
21382
+ label: t("growthQ2"),
21353
21383
  hide: true,
21354
21384
  required: true,
21355
21385
  },
21356
21386
  {
21357
21387
  name: "growthQ3",
21358
- label: t("unfcccSdTool:growthQ3"),
21388
+ label: t("growthQ3"),
21359
21389
  hide: true,
21360
21390
  required: true,
21361
21391
  },
21362
21392
  {
21363
21393
  name: "growthQ4",
21364
- label: t("unfcccSdTool:growthQ4"),
21394
+ label: t("growthQ4"),
21365
21395
  hide: true,
21366
21396
  required: true,
21367
21397
  },
21368
21398
  {
21369
21399
  name: "growthQ5",
21370
- label: t("unfcccSdTool:growthQ5"),
21400
+ label: t("growthQ5"),
21371
21401
  hide: true,
21372
21402
  required: true,
21373
21403
  },
21374
21404
  {
21375
21405
  name: "growthQ6",
21376
- label: t("unfcccSdTool:growthQ6"),
21406
+ label: t("growthQ6"),
21377
21407
  hide: true,
21378
21408
  required: true,
21379
21409
  },
21380
21410
  {
21381
21411
  name: "growthQ7",
21382
- label: t("unfcccSdTool:growthQ7"),
21412
+ label: t("growthQ7"),
21383
21413
  hide: true,
21384
21414
  required: true,
21385
21415
  },
21386
21416
  {
21387
21417
  name: "growthQ8",
21388
- label: t("unfcccSdTool:growthQ8"),
21418
+ label: t("growthQ8"),
21389
21419
  hide: true,
21390
21420
  required: true,
21391
21421
  },
21392
21422
  ],
21393
21423
  },
21394
21424
  {
21395
- section: t("unfcccSdTool:energy"),
21425
+ section: t("energy"),
21396
21426
  fields: [
21397
21427
  {
21398
21428
  name: "energyQ1",
21399
- label: t("unfcccSdTool:energyQ1"),
21429
+ label: t("energyQ1"),
21400
21430
  hide: false,
21401
21431
  required: false,
21402
21432
  },
21403
21433
  {
21404
21434
  name: "energyQ2",
21405
- label: t("unfcccSdTool:energyQ2"),
21435
+ label: t("energyQ2"),
21406
21436
  hide: true,
21407
21437
  required: true,
21408
21438
  },
21409
21439
  {
21410
21440
  name: "energyQ3",
21411
- label: t("unfcccSdTool:energyQ3"),
21441
+ label: t("energyQ3"),
21412
21442
  hide: true,
21413
21443
  required: true,
21414
21444
  },
21415
21445
  {
21416
21446
  name: "energyQ4",
21417
- label: t("unfcccSdTool:energyQ4"),
21447
+ label: t("energyQ4"),
21418
21448
  hide: true,
21419
21449
  required: true,
21420
21450
  },
21421
21451
  {
21422
21452
  name: "energyQ5",
21423
- label: t("unfcccSdTool:energyQ5"),
21453
+ label: t("energyQ5"),
21424
21454
  hide: true,
21425
21455
  required: true,
21426
21456
  },
21427
21457
  ],
21428
21458
  },
21429
21459
  {
21430
- section: t("unfcccSdTool:techTransfer"),
21460
+ section: t("techTransfer"),
21431
21461
  fields: [
21432
21462
  {
21433
21463
  name: "techTransferQ1",
21434
- label: t("unfcccSdTool:techTransferQ1"),
21464
+ label: t("techTransferQ1"),
21435
21465
  hide: false,
21436
21466
  required: false,
21437
21467
  },
21438
21468
  {
21439
21469
  name: "techTransferQ2",
21440
- label: t("unfcccSdTool:techTransferQ2"),
21470
+ label: t("techTransferQ2"),
21441
21471
  hide: true,
21442
21472
  required: true,
21443
21473
  },
21444
21474
  {
21445
21475
  name: "techTransferQ3",
21446
- label: t("unfcccSdTool:techTransferQ3"),
21476
+ label: t("techTransferQ3"),
21447
21477
  hide: true,
21448
21478
  required: true,
21449
21479
  },
21450
21480
  {
21451
21481
  name: "techTransferQ4",
21452
- label: t("unfcccSdTool:techTransferQ4"),
21482
+ label: t("techTransferQ4"),
21453
21483
  hide: true,
21454
21484
  required: true,
21455
21485
  },
21456
21486
  {
21457
21487
  name: "techTransferQ5",
21458
- label: t("unfcccSdTool:techTransferQ5"),
21488
+ label: t("techTransferQ5"),
21459
21489
  hide: true,
21460
21490
  required: true,
21461
21491
  },
21462
21492
  {
21463
21493
  name: "techTransferQ6",
21464
- label: t("unfcccSdTool:techTransferQ6"),
21494
+ label: t("techTransferQ6"),
21465
21495
  hide: true,
21466
21496
  required: true,
21467
21497
  },
21468
21498
  ],
21469
21499
  },
21470
21500
  {
21471
- section: t("unfcccSdTool:balanceOfPayments"),
21501
+ section: t("balanceOfPayments"),
21472
21502
  fields: [
21473
21503
  {
21474
21504
  name: "balanceOfPaymentsQ1",
21475
- label: t("unfcccSdTool:balanceOfPaymentsQ1"),
21505
+ label: t("balanceOfPaymentsQ1"),
21476
21506
  hide: false,
21477
21507
  required: false,
21478
21508
  },
21479
21509
  {
21480
21510
  name: "balanceOfPaymentsQ2",
21481
- label: t("unfcccSdTool:balanceOfPaymentsQ2"),
21511
+ label: t("balanceOfPaymentsQ2"),
21482
21512
  hide: true,
21483
21513
  required: true,
21484
21514
  },
21485
21515
  {
21486
21516
  name: "balanceOfPaymentsQ3",
21487
- label: t("unfcccSdTool:balanceOfPaymentsQ3"),
21517
+ label: t("balanceOfPaymentsQ3"),
21488
21518
  hide: true,
21489
21519
  required: true,
21490
21520
  },
21491
21521
  ],
21492
21522
  },
21493
21523
  {
21494
- section: t("unfcccSdTool:furtherInfo"),
21524
+ section: t("furtherInfo"),
21495
21525
  fields: [
21496
21526
  {
21497
21527
  name: "furtherInfoQ1",
21498
- label: t("unfcccSdTool:furtherInfoQ1"),
21528
+ label: t("furtherInfoQ1"),
21499
21529
  hide: false,
21500
21530
  required: false,
21501
21531
  },
@@ -21512,7 +21542,7 @@ var Economic = function (props) {
21512
21542
  if (changedFieldName.includes("1")) {
21513
21543
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
21514
21544
  var updatedEconomicDetails = __spreadArray([], economicDetails, true);
21515
- var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t("unfcccSdTool:" + sectionName_1); });
21545
+ var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
21516
21546
  updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
21517
21547
  if (field.name !== changedFieldName) {
21518
21548
  field.hide = changedFieldValue !== RadioButtonStatus.YES;
@@ -21531,48 +21561,48 @@ var Economic = function (props) {
21531
21561
  if (economicViewData && viewOnly === true) {
21532
21562
  var updatedEconomicData = [
21533
21563
  {
21534
- section: t("unfcccSdTool:growth"),
21564
+ section: t("growth"),
21535
21565
  fields: [],
21536
21566
  },
21537
21567
  {
21538
- section: t("unfcccSdTool:energy"),
21568
+ section: t("energy"),
21539
21569
  fields: [],
21540
21570
  },
21541
21571
  {
21542
- section: t("unfcccSdTool:techTransfer"),
21572
+ section: t("techTransfer"),
21543
21573
  fields: [],
21544
21574
  },
21545
21575
  {
21546
- section: t("unfcccSdTool:balanceOfPayments"),
21576
+ section: t("balanceOfPayments"),
21547
21577
  fields: [],
21548
21578
  },
21549
21579
  {
21550
- section: t("unfcccSdTool:furtherInfo"),
21580
+ section: t("furtherInfo"),
21551
21581
  fields: [],
21552
21582
  },
21553
21583
  ];
21554
21584
  var _loop_1 = function (key) {
21555
21585
  var section = "";
21556
21586
  if (String(key).includes("growth")) {
21557
- section = t("unfcccSdTool:growth");
21587
+ section = t("growth");
21558
21588
  }
21559
21589
  else if (String(key).includes("energy")) {
21560
- section = t("unfcccSdTool:energy");
21590
+ section = t("energy");
21561
21591
  }
21562
21592
  else if (String(key).includes("techTransfer")) {
21563
- section = t("unfcccSdTool:techTransfer");
21593
+ section = t("techTransfer");
21564
21594
  }
21565
21595
  else if (String(key).includes("balanceOfPayments")) {
21566
- section = t("unfcccSdTool:balanceOfPayments");
21596
+ section = t("balanceOfPayments");
21567
21597
  }
21568
21598
  else if (String(key).includes("furtherInfo")) {
21569
- section = t("unfcccSdTool:furtherInfo");
21599
+ section = t("furtherInfo");
21570
21600
  }
21571
21601
  var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
21572
21602
  if (economicItem) {
21573
21603
  economicItem.fields.push({
21574
21604
  name: key,
21575
- label: t("unfcccSdTool:" + key),
21605
+ label: t(key),
21576
21606
  hide: false,
21577
21607
  value: economicViewData[key],
21578
21608
  });
@@ -21594,7 +21624,7 @@ var Economic = function (props) {
21594
21624
  React.createElement(Col, { span: 24 },
21595
21625
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21596
21626
  React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
21597
- React.createElement("span", null, t("unfcccSdTool:economic"))))),
21627
+ React.createElement("span", null, t("economic"))))),
21598
21628
  (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 :
21599
21629
  economicDetails.map(function (environmentalDetail) {
21600
21630
  var _a;
@@ -21610,23 +21640,24 @@ var Economic = function (props) {
21610
21640
  ] },
21611
21641
  React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
21612
21642
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
21613
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes")))),
21643
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
21614
21644
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
21615
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no")))),
21645
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
21616
21646
  (field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
21617
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na")))))) : (React.createElement(React.Fragment, null,
21647
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
21618
21648
  React.createElement("div", { className: "yes-no-radio-container" },
21619
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes"))),
21649
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
21620
21650
  React.createElement("div", { className: "yes-no-radio-container" },
21621
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no"))),
21651
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
21622
21652
  React.createElement("div", { className: "yes-no-radio-container" },
21623
- React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na"))))))));
21653
+ React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
21624
21654
  })));
21625
21655
  })))));
21626
21656
  };
21627
21657
 
21628
21658
  var Social = function (props) {
21629
21659
  var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
21660
+ translator.setDefaultNamespace("unfcccSdTool");
21630
21661
  var t = translator.t;
21631
21662
  var form = Form.useForm()[0];
21632
21663
  var _a = useState(0); _a[0]; var setRefreshCounter = _a[1];
@@ -21634,164 +21665,164 @@ var Social = function (props) {
21634
21665
  var _c = useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
21635
21666
  var SocialElementDetails = [
21636
21667
  {
21637
- title: t("unfcccSdTool:jobs"),
21638
- label: t("unfcccSdTool:jobRelatedMainQ"),
21668
+ title: t("jobs"),
21669
+ label: t("jobRelatedMainQ"),
21639
21670
  name: "jobRelatedMainQ",
21640
21671
  subItems: [
21641
21672
  {
21642
21673
  type: FormElementType.Radio,
21643
- label: t("unfcccSdTool:jobRelatedSubQ1"),
21674
+ label: t("jobRelatedSubQ1"),
21644
21675
  name: "jobRelatedSubQ1",
21645
21676
  },
21646
21677
  {
21647
21678
  type: FormElementType.Radio,
21648
- label: t("unfcccSdTool:jobRelatedSubQ2"),
21679
+ label: t("jobRelatedSubQ2"),
21649
21680
  name: "jobRelatedSubQ2",
21650
21681
  },
21651
21682
  {
21652
21683
  type: FormElementType.Radio,
21653
- label: t("unfcccSdTool:jobRelatedSubQ3"),
21684
+ label: t("jobRelatedSubQ3"),
21654
21685
  name: "jobRelatedSubQ3",
21655
21686
  },
21656
21687
  {
21657
21688
  type: FormElementType.Radio,
21658
- label: t("unfcccSdTool:jobRelatedSubQ4"),
21689
+ label: t("jobRelatedSubQ4"),
21659
21690
  name: "jobRelatedSubQ4",
21660
21691
  },
21661
21692
  {
21662
21693
  type: FormElementType.Input,
21663
- label: t("unfcccSdTool:jobRelatedSubQ5"),
21694
+ label: t("jobRelatedSubQ5"),
21664
21695
  name: "jobRelatedSubQ5",
21665
21696
  },
21666
21697
  {
21667
21698
  type: FormElementType.Input,
21668
- label: t("unfcccSdTool:jobRelatedSubQ6"),
21699
+ label: t("jobRelatedSubQ6"),
21669
21700
  name: "jobRelatedSubQ6",
21670
21701
  },
21671
21702
  {
21672
21703
  type: FormElementType.Input,
21673
- label: t("unfcccSdTool:jobRelatedSubQ7"),
21704
+ label: t("jobRelatedSubQ7"),
21674
21705
  name: "jobRelatedSubQ7",
21675
21706
  },
21676
21707
  ],
21677
21708
  },
21678
21709
  {
21679
- title: t("unfcccSdTool:health"),
21680
- label: t("unfcccSdTool:healthRelatedMainQ"),
21710
+ title: t("health"),
21711
+ label: t("healthRelatedMainQ"),
21681
21712
  name: "healthRelatedMainQ",
21682
21713
  subItems: [
21683
21714
  {
21684
21715
  type: FormElementType.Radio,
21685
- label: t("unfcccSdTool:healthRelatedSubQ1"),
21716
+ label: t("healthRelatedSubQ1"),
21686
21717
  name: "healthRelatedSubQ1",
21687
21718
  },
21688
21719
  {
21689
21720
  type: FormElementType.Radio,
21690
- label: t("unfcccSdTool:healthRelatedSubQ2"),
21721
+ label: t("healthRelatedSubQ2"),
21691
21722
  name: "healthRelatedSubQ2",
21692
21723
  },
21693
21724
  {
21694
21725
  type: FormElementType.Radio,
21695
- label: t("unfcccSdTool:healthRelatedSubQ3"),
21726
+ label: t("healthRelatedSubQ3"),
21696
21727
  name: "healthRelatedSubQ3",
21697
21728
  },
21698
21729
  {
21699
21730
  type: FormElementType.Radio,
21700
- label: t("unfcccSdTool:healthRelatedSubQ4"),
21731
+ label: t("healthRelatedSubQ4"),
21701
21732
  name: "healthRelatedSubQ4",
21702
21733
  },
21703
21734
  {
21704
21735
  type: FormElementType.Radio,
21705
- label: t("unfcccSdTool:healthRelatedSubQ5"),
21736
+ label: t("healthRelatedSubQ5"),
21706
21737
  name: "healthRelatedSubQ5",
21707
21738
  },
21708
21739
  {
21709
21740
  type: FormElementType.Radio,
21710
- label: t("unfcccSdTool:healthRelatedSubQ6"),
21741
+ label: t("healthRelatedSubQ6"),
21711
21742
  name: "healthRelatedSubQ6",
21712
21743
  },
21713
21744
  {
21714
21745
  type: FormElementType.Radio,
21715
- label: t("unfcccSdTool:healthRelatedSubQ7"),
21746
+ label: t("healthRelatedSubQ7"),
21716
21747
  name: "healthRelatedSubQ7",
21717
21748
  },
21718
21749
  {
21719
21750
  type: FormElementType.Radio,
21720
- label: t("unfcccSdTool:healthRelatedSubQ8"),
21751
+ label: t("healthRelatedSubQ8"),
21721
21752
  name: "healthRelatedSubQ8",
21722
21753
  },
21723
21754
  ],
21724
21755
  },
21725
21756
  {
21726
- title: t("unfcccSdTool:educational"),
21727
- label: t("unfcccSdTool:educationRelatedMainQ"),
21757
+ title: t("educational"),
21758
+ label: t("educationRelatedMainQ"),
21728
21759
  name: "educationRelatedMainQ",
21729
21760
  subItems: [
21730
21761
  {
21731
21762
  type: FormElementType.Radio,
21732
- label: t("unfcccSdTool:educationRelatedSubQ1"),
21763
+ label: t("educationRelatedSubQ1"),
21733
21764
  name: "educationRelatedSubQ1",
21734
21765
  },
21735
21766
  {
21736
21767
  type: FormElementType.Radio,
21737
- label: t("unfcccSdTool:educationRelatedSubQ2"),
21768
+ label: t("educationRelatedSubQ2"),
21738
21769
  name: "educationRelatedSubQ2",
21739
21770
  },
21740
21771
  {
21741
21772
  type: FormElementType.Radio,
21742
- label: t("unfcccSdTool:educationRelatedSubQ3"),
21773
+ label: t("educationRelatedSubQ3"),
21743
21774
  name: "educationRelatedSubQ3",
21744
21775
  },
21745
21776
  {
21746
21777
  type: FormElementType.Radio,
21747
- label: t("unfcccSdTool:educationRelatedSubQ4"),
21778
+ label: t("educationRelatedSubQ4"),
21748
21779
  name: "educationRelatedSubQ4",
21749
21780
  },
21750
21781
  ],
21751
21782
  },
21752
21783
  {
21753
- title: t("unfcccSdTool:welfare"),
21754
- label: t("unfcccSdTool:welfareRelatedMainQ"),
21784
+ title: t("welfare"),
21785
+ label: t("welfareRelatedMainQ"),
21755
21786
  name: "welfareRelatedMainQ",
21756
21787
  subItems: [
21757
21788
  {
21758
21789
  type: FormElementType.Radio,
21759
- label: t("unfcccSdTool:welfareRelatedSubQ1"),
21790
+ label: t("welfareRelatedSubQ1"),
21760
21791
  name: "welfareRelatedSubQ1",
21761
21792
  },
21762
21793
  {
21763
21794
  type: FormElementType.Radio,
21764
- label: t("unfcccSdTool:welfareRelatedSubQ2"),
21795
+ label: t("welfareRelatedSubQ2"),
21765
21796
  name: "welfareRelatedSubQ2",
21766
21797
  },
21767
21798
  {
21768
21799
  type: FormElementType.Radio,
21769
- label: t("unfcccSdTool:welfareRelatedSubQ3"),
21800
+ label: t("welfareRelatedSubQ3"),
21770
21801
  name: "welfareRelatedSubQ3",
21771
21802
  },
21772
21803
  {
21773
21804
  type: FormElementType.Radio,
21774
- label: t("unfcccSdTool:welfareRelatedSubQ4"),
21805
+ label: t("welfareRelatedSubQ4"),
21775
21806
  name: "welfareRelatedSubQ4",
21776
21807
  },
21777
21808
  {
21778
21809
  type: FormElementType.Radio,
21779
- label: t("unfcccSdTool:welfareRelatedSubQ5"),
21810
+ label: t("welfareRelatedSubQ5"),
21780
21811
  name: "welfareRelatedSubQ5",
21781
21812
  },
21782
21813
  {
21783
21814
  type: FormElementType.Radio,
21784
- label: t("unfcccSdTool:welfareRelatedSubQ6"),
21815
+ label: t("welfareRelatedSubQ6"),
21785
21816
  name: "welfareRelatedSubQ6",
21786
21817
  },
21787
21818
  {
21788
21819
  type: FormElementType.Radio,
21789
- label: t("unfcccSdTool:welfareRelatedSubQ7"),
21820
+ label: t("welfareRelatedSubQ7"),
21790
21821
  name: "welfareRelatedSubQ7",
21791
21822
  },
21792
21823
  {
21793
21824
  type: FormElementType.Radio,
21794
- label: t("unfcccSdTool:welfareRelatedSubQ8"),
21825
+ label: t("welfareRelatedSubQ8"),
21795
21826
  name: "welfareRelatedSubQ8",
21796
21827
  },
21797
21828
  ],
@@ -21850,7 +21881,7 @@ var Social = function (props) {
21850
21881
  React.createElement(Col, { span: 24 },
21851
21882
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21852
21883
  React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
21853
- React.createElement("span", null, t("unfcccSdTool:social"))))),
21884
+ React.createElement("span", null, t("social"))))),
21854
21885
  viewOnly && !socialViewData && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
21855
21886
  ((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) {
21856
21887
  return (React.createElement(React.Fragment, null,
@@ -21861,11 +21892,11 @@ var Social = function (props) {
21861
21892
  React.createElement(Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
21862
21893
  React.createElement(Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
21863
21894
  React.createElement("div", { className: "radio-container" },
21864
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes"))),
21895
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
21865
21896
  React.createElement("div", { className: "radio-container" },
21866
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no"))),
21897
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
21867
21898
  React.createElement("div", { className: "radio-container" },
21868
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na"))))),
21899
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("na"))))),
21869
21900
  form.getFieldValue(element.name) ===
21870
21901
  RadioButtonStatus.YES &&
21871
21902
  element.subItems.map(function (elementItem) {
@@ -21878,11 +21909,11 @@ var Social = function (props) {
21878
21909
  ] },
21879
21910
  React.createElement(Radio.Group, { size: "middle" },
21880
21911
  React.createElement("div", { className: "radio-container" },
21881
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("unfcccSdTool:yes"))),
21912
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
21882
21913
  React.createElement("div", { className: "radio-container" },
21883
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("unfcccSdTool:no"))),
21914
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
21884
21915
  React.createElement("div", { className: "radio-container" },
21885
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("unfcccSdTool:na"))))));
21916
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("na"))))));
21886
21917
  }
21887
21918
  else if (elementItem.type === FormElementType.Input) {
21888
21919
  return (React.createElement(Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
@@ -21918,88 +21949,89 @@ var Social = function (props) {
21918
21949
 
21919
21950
  var SocialEnvironmentalRisk = function (props) {
21920
21951
  var onFormSubmit = props.onFormSubmit, SocialEnvironmentalRiskData = props.SocialEnvironmentalRiskData, viewOnly = props.viewOnly, translator = props.translator;
21952
+ translator.setDefaultNamespace("socialEnvironmentalRisk");
21921
21953
  var t = translator.t;
21922
21954
  var form = Form.useForm()[0];
21923
21955
  var _a = useState(), socialEnvironmentalFormDetails = _a[0], setSocialEnvironmentalFormDetails = _a[1];
21924
21956
  var _b = useState([
21925
21957
  {
21926
- title: t("socialEnvironmentalRisk:humanRightsSubHeader"),
21958
+ title: t("humanRightsSubHeader"),
21927
21959
  isTitleVisible: true,
21928
21960
  subItems: [
21929
21961
  {
21930
- title: t("socialEnvironmentalRisk:humanRights"),
21962
+ title: t("humanRights"),
21931
21963
  isTitleVisible: true,
21932
21964
  subItems: [
21933
21965
  {
21934
- label: t("socialEnvironmentalRisk:humanRightsQ1"),
21966
+ label: t("humanRightsQ1"),
21935
21967
  name: "humanRightsQ1",
21936
21968
  },
21937
21969
  {
21938
- label: t("socialEnvironmentalRisk:humanRightsQ2"),
21970
+ label: t("humanRightsQ2"),
21939
21971
  name: "humanRightsQ2",
21940
21972
  },
21941
21973
  {
21942
- label: t("socialEnvironmentalRisk:humanRightsQ3"),
21974
+ label: t("humanRightsQ3"),
21943
21975
  name: "humanRightsQ3",
21944
21976
  },
21945
21977
  {
21946
- label: t("socialEnvironmentalRisk:humanRightsQ4"),
21978
+ label: t("humanRightsQ4"),
21947
21979
  name: "humanRightsQ4",
21948
21980
  },
21949
21981
  {
21950
- label: t("socialEnvironmentalRisk:humanRightsQ5"),
21982
+ label: t("humanRightsQ5"),
21951
21983
  name: "humanRightsQ5",
21952
21984
  },
21953
21985
  {
21954
- label: t("socialEnvironmentalRisk:humanRightsQ6"),
21986
+ label: t("humanRightsQ6"),
21955
21987
  name: "humanRightsQ6",
21956
21988
  },
21957
21989
  {
21958
- label: t("socialEnvironmentalRisk:humanRightsQ7"),
21990
+ label: t("humanRightsQ7"),
21959
21991
  name: "humanRightsQ7",
21960
21992
  },
21961
21993
  ],
21962
21994
  },
21963
21995
  {
21964
- title: t("socialEnvironmentalRisk:genderEqalityWomenEmpower"),
21996
+ title: t("genderEqalityWomenEmpower"),
21965
21997
  isTitleVisible: true,
21966
21998
  subItems: [
21967
21999
  {
21968
- label: t("socialEnvironmentalRisk:genderEqalityWomenEmpowerQ1"),
22000
+ label: t("genderEqalityWomenEmpowerQ1"),
21969
22001
  name: "genderEqalityWomenEmpowerQ1",
21970
22002
  },
21971
22003
  {
21972
- label: t("socialEnvironmentalRisk:genderEqalityWomenEmpowerQ2"),
22004
+ label: t("genderEqalityWomenEmpowerQ2"),
21973
22005
  name: "genderEqalityWomenEmpowerQ2",
21974
22006
  },
21975
22007
  {
21976
- label: t("socialEnvironmentalRisk:genderEqalityWomenEmpowerQ3"),
22008
+ label: t("genderEqalityWomenEmpowerQ3"),
21977
22009
  name: "genderEqalityWomenEmpowerQ3",
21978
22010
  },
21979
22011
  {
21980
- label: t("socialEnvironmentalRisk:genderEqalityWomenEmpowerQ4"),
22012
+ label: t("genderEqalityWomenEmpowerQ4"),
21981
22013
  name: "genderEqalityWomenEmpowerQ4",
21982
22014
  },
21983
22015
  {
21984
- label: t("socialEnvironmentalRisk:genderEqalityWomenEmpowerQ5"),
22016
+ label: t("genderEqalityWomenEmpowerQ5"),
21985
22017
  name: "genderEqalityWomenEmpowerQ5",
21986
22018
  },
21987
22019
  ],
21988
22020
  },
21989
22021
  {
21990
- title: t("socialEnvironmentalRisk:accountability"),
22022
+ title: t("accountability"),
21991
22023
  isTitleVisible: true,
21992
22024
  subItems: [
21993
22025
  {
21994
- label: t("socialEnvironmentalRisk:accountabilityQ1"),
22026
+ label: t("accountabilityQ1"),
21995
22027
  name: "accountabilityQ1",
21996
22028
  },
21997
22029
  {
21998
- label: t("socialEnvironmentalRisk:accountabilityQ2"),
22030
+ label: t("accountabilityQ2"),
21999
22031
  name: "AccountabilityQ2",
22000
22032
  },
22001
22033
  {
22002
- label: t("socialEnvironmentalRisk:accountabilityQ3"),
22034
+ label: t("accountabilityQ3"),
22003
22035
  name: "accountabilityQ3",
22004
22036
  },
22005
22037
  ],
@@ -22007,277 +22039,277 @@ var SocialEnvironmentalRisk = function (props) {
22007
22039
  ],
22008
22040
  },
22009
22041
  {
22010
- title: t("socialEnvironmentalRisk:standardSubHeader"),
22042
+ title: t("standardSubHeader"),
22011
22043
  isTitleVisible: true,
22012
22044
  subItems: [
22013
22045
  {
22014
- title: t("socialEnvironmentalRisk:standard1"),
22046
+ title: t("standard1"),
22015
22047
  isTitleVisible: true,
22016
22048
  subItems: [
22017
22049
  {
22018
- label: t("socialEnvironmentalRisk:standard1Q1"),
22050
+ label: t("standard1Q1"),
22019
22051
  name: "standard1Q1",
22020
22052
  },
22021
22053
  {
22022
- label: t("socialEnvironmentalRisk:standard1Q2"),
22054
+ label: t("standard1Q2"),
22023
22055
  name: "standard1Q2",
22024
22056
  },
22025
22057
  {
22026
- label: t("socialEnvironmentalRisk:standard1Q3"),
22058
+ label: t("standard1Q3"),
22027
22059
  name: "standard1Q3",
22028
22060
  },
22029
22061
  {
22030
- label: t("socialEnvironmentalRisk:standard1Q4"),
22062
+ label: t("standard1Q4"),
22031
22063
  name: "standard1Q4",
22032
22064
  },
22033
22065
  {
22034
- label: t("socialEnvironmentalRisk:standard1Q5"),
22066
+ label: t("standard1Q5"),
22035
22067
  name: "standard1Q5",
22036
22068
  },
22037
22069
  {
22038
- label: t("socialEnvironmentalRisk:standard1Q6"),
22070
+ label: t("standard1Q6"),
22039
22071
  name: "standard1Q6",
22040
22072
  },
22041
22073
  {
22042
- label: t("socialEnvironmentalRisk:standard1Q7"),
22074
+ label: t("standard1Q7"),
22043
22075
  name: "standard1Q7",
22044
22076
  },
22045
22077
  {
22046
- label: t("socialEnvironmentalRisk:standard1Q8"),
22078
+ label: t("standard1Q8"),
22047
22079
  name: "standard1Q8",
22048
22080
  },
22049
22081
  {
22050
- label: t("socialEnvironmentalRisk:standard1Q9"),
22082
+ label: t("standard1Q9"),
22051
22083
  name: "standard1Q9",
22052
22084
  },
22053
22085
  {
22054
- label: t("socialEnvironmentalRisk:standard1Q10"),
22086
+ label: t("standard1Q10"),
22055
22087
  name: "standard1Q10",
22056
22088
  },
22057
22089
  {
22058
- label: t("socialEnvironmentalRisk:standard1Q11"),
22090
+ label: t("standard1Q11"),
22059
22091
  name: "standard1Q11",
22060
22092
  },
22061
22093
  {
22062
- label: t("socialEnvironmentalRisk:standard1Q12"),
22094
+ label: t("standard1Q12"),
22063
22095
  name: "standard1Q12",
22064
22096
  },
22065
22097
  {
22066
- label: t("socialEnvironmentalRisk:standard1Q13"),
22098
+ label: t("standard1Q13"),
22067
22099
  name: "standard1Q13",
22068
22100
  },
22069
22101
  {
22070
- label: t("socialEnvironmentalRisk:standard1Q14"),
22102
+ label: t("standard1Q14"),
22071
22103
  name: "standard1Q14",
22072
22104
  },
22073
22105
  ],
22074
22106
  },
22075
22107
  {
22076
- title: t("socialEnvironmentalRisk:standard2"),
22108
+ title: t("standard2"),
22077
22109
  isTitleVisible: true,
22078
22110
  subItems: [
22079
22111
  {
22080
- label: t("socialEnvironmentalRisk:standard2Q1"),
22112
+ label: t("standard2Q1"),
22081
22113
  name: "standard2Q1",
22082
22114
  },
22083
22115
  {
22084
- label: t("socialEnvironmentalRisk:standard2Q2"),
22116
+ label: t("standard2Q2"),
22085
22117
  name: "standard2Q2",
22086
22118
  },
22087
22119
  {
22088
- label: t("socialEnvironmentalRisk:standard2Q3"),
22120
+ label: t("standard2Q3"),
22089
22121
  name: "standard2Q3",
22090
22122
  },
22091
22123
  {
22092
- label: t("socialEnvironmentalRisk:standard2Q4"),
22124
+ label: t("standard2Q4"),
22093
22125
  name: "standard2Q4",
22094
22126
  },
22095
22127
  ],
22096
22128
  },
22097
22129
  {
22098
- title: t("socialEnvironmentalRisk:standard3"),
22130
+ title: t("standard3"),
22099
22131
  isTitleVisible: true,
22100
22132
  subItems: [
22101
22133
  {
22102
- label: t("socialEnvironmentalRisk:standard3Q1"),
22134
+ label: t("standard3Q1"),
22103
22135
  name: "standard3Q1",
22104
22136
  },
22105
22137
  {
22106
- label: t("socialEnvironmentalRisk:standard3Q2"),
22138
+ label: t("standard3Q2"),
22107
22139
  name: "standard3Q2",
22108
22140
  },
22109
22141
  {
22110
- label: t("socialEnvironmentalRisk:standard3Q3"),
22142
+ label: t("standard3Q3"),
22111
22143
  name: "standard3Q3",
22112
22144
  },
22113
22145
  {
22114
- label: t("socialEnvironmentalRisk:standard3Q4"),
22146
+ label: t("standard3Q4"),
22115
22147
  name: "standard3Q4",
22116
22148
  },
22117
22149
  {
22118
- label: t("socialEnvironmentalRisk:standard3Q5"),
22150
+ label: t("standard3Q5"),
22119
22151
  name: "standard3Q5",
22120
22152
  },
22121
22153
  {
22122
- label: t("socialEnvironmentalRisk:standard3Q6"),
22154
+ label: t("standard3Q6"),
22123
22155
  name: "standard3Q6",
22124
22156
  },
22125
22157
  {
22126
- label: t("socialEnvironmentalRisk:standard3Q7"),
22158
+ label: t("standard3Q7"),
22127
22159
  name: "standard3Q7",
22128
22160
  },
22129
22161
  {
22130
- label: t("socialEnvironmentalRisk:standard3Q8"),
22162
+ label: t("standard3Q8"),
22131
22163
  name: "standard3Q8",
22132
22164
  },
22133
22165
  ],
22134
22166
  },
22135
22167
  {
22136
- title: t("socialEnvironmentalRisk:standard4"),
22168
+ title: t("standard4"),
22137
22169
  isTitleVisible: true,
22138
22170
  subItems: [
22139
22171
  {
22140
- label: t("socialEnvironmentalRisk:standard4Q1"),
22172
+ label: t("standard4Q1"),
22141
22173
  name: "standard4Q1",
22142
22174
  },
22143
22175
  {
22144
- label: t("socialEnvironmentalRisk:standard4Q2"),
22176
+ label: t("standard4Q2"),
22145
22177
  name: "standard4Q2",
22146
22178
  },
22147
22179
  {
22148
- label: t("socialEnvironmentalRisk:standard4Q3"),
22180
+ label: t("standard4Q3"),
22149
22181
  name: "standard4Q3",
22150
22182
  },
22151
22183
  {
22152
- label: t("socialEnvironmentalRisk:standard4Q4"),
22184
+ label: t("standard4Q4"),
22153
22185
  name: "standard4Q4",
22154
22186
  },
22155
22187
  {
22156
- label: t("socialEnvironmentalRisk:standard4Q5"),
22188
+ label: t("standard4Q5"),
22157
22189
  name: "standard4Q5",
22158
22190
  },
22159
22191
  ],
22160
22192
  },
22161
22193
  {
22162
- title: t("socialEnvironmentalRisk:standard5"),
22194
+ title: t("standard5"),
22163
22195
  isTitleVisible: true,
22164
22196
  subItems: [
22165
22197
  {
22166
- label: t("socialEnvironmentalRisk:standard5Q1"),
22198
+ label: t("standard5Q1"),
22167
22199
  name: "standard5Q1",
22168
22200
  },
22169
22201
  {
22170
- label: t("socialEnvironmentalRisk:standard5Q2"),
22202
+ label: t("standard5Q2"),
22171
22203
  name: "standard5Q2",
22172
22204
  },
22173
22205
  {
22174
- label: t("socialEnvironmentalRisk:standard5Q3"),
22206
+ label: t("standard5Q3"),
22175
22207
  name: "standard5Q3",
22176
22208
  },
22177
22209
  {
22178
- label: t("socialEnvironmentalRisk:standard5Q4"),
22210
+ label: t("standard5Q4"),
22179
22211
  name: "standard5Q4",
22180
22212
  },
22181
22213
  ],
22182
22214
  },
22183
22215
  {
22184
- title: t("socialEnvironmentalRisk:standard6"),
22216
+ title: t("standard6"),
22185
22217
  isTitleVisible: true,
22186
22218
  subItems: [
22187
22219
  {
22188
- label: t("socialEnvironmentalRisk:standard6Q1"),
22220
+ label: t("standard6Q1"),
22189
22221
  name: "standard6Q1",
22190
22222
  },
22191
22223
  {
22192
- label: t("socialEnvironmentalRisk:standard6Q2"),
22224
+ label: t("standard6Q2"),
22193
22225
  name: "standard6Q2",
22194
22226
  },
22195
22227
  {
22196
- label: t("socialEnvironmentalRisk:standard6Q3"),
22228
+ label: t("standard6Q3"),
22197
22229
  name: "standard6Q3",
22198
22230
  },
22199
22231
  {
22200
- label: t("socialEnvironmentalRisk:standard6Q4"),
22232
+ label: t("standard6Q4"),
22201
22233
  name: "standard6Q4",
22202
22234
  },
22203
22235
  {
22204
- label: t("socialEnvironmentalRisk:standard6Q5"),
22236
+ label: t("standard6Q5"),
22205
22237
  name: "standard6Q5",
22206
22238
  },
22207
22239
  {
22208
- label: t("socialEnvironmentalRisk:standard6Q6"),
22240
+ label: t("standard6Q6"),
22209
22241
  name: "standard6Q6",
22210
22242
  },
22211
22243
  {
22212
- label: t("socialEnvironmentalRisk:standard6Q7"),
22244
+ label: t("standard6Q7"),
22213
22245
  name: "standard6Q7",
22214
22246
  },
22215
22247
  {
22216
- label: t("socialEnvironmentalRisk:standard6Q8"),
22248
+ label: t("standard6Q8"),
22217
22249
  name: "standard6Q8",
22218
22250
  },
22219
22251
  {
22220
- label: t("socialEnvironmentalRisk:standard6Q9"),
22252
+ label: t("standard6Q9"),
22221
22253
  name: "standard6Q9",
22222
22254
  },
22223
22255
  ],
22224
22256
  },
22225
22257
  {
22226
- title: t("socialEnvironmentalRisk:standard7"),
22258
+ title: t("standard7"),
22227
22259
  isTitleVisible: true,
22228
22260
  subItems: [
22229
22261
  {
22230
- label: t("socialEnvironmentalRisk:standard7Q1"),
22262
+ label: t("standard7Q1"),
22231
22263
  name: "standard7Q1",
22232
22264
  },
22233
22265
  {
22234
- label: t("socialEnvironmentalRisk:standard7Q2"),
22266
+ label: t("standard7Q2"),
22235
22267
  name: "standard7Q2",
22236
22268
  },
22237
22269
  {
22238
- label: t("socialEnvironmentalRisk:standard7Q3"),
22270
+ label: t("standard7Q3"),
22239
22271
  name: "standard7Q3",
22240
22272
  },
22241
22273
  {
22242
- label: t("socialEnvironmentalRisk:standard7Q4"),
22274
+ label: t("standard7Q4"),
22243
22275
  name: "standard7Q4",
22244
22276
  },
22245
22277
  {
22246
- label: t("socialEnvironmentalRisk:standard7Q5"),
22278
+ label: t("standard7Q5"),
22247
22279
  name: "standard7Q5",
22248
22280
  },
22249
22281
  {
22250
- label: t("socialEnvironmentalRisk:standard7Q6"),
22282
+ label: t("standard7Q6"),
22251
22283
  name: "standard7Q6",
22252
22284
  },
22253
22285
  ],
22254
22286
  },
22255
22287
  {
22256
- title: t("socialEnvironmentalRisk:standard8"),
22288
+ title: t("standard8"),
22257
22289
  isTitleVisible: true,
22258
22290
  subItems: [
22259
22291
  {
22260
- label: t("socialEnvironmentalRisk:standard8Q1"),
22292
+ label: t("standard8Q1"),
22261
22293
  name: "standard8Q1",
22262
22294
  },
22263
22295
  {
22264
- label: t("socialEnvironmentalRisk:standard8Q2"),
22296
+ label: t("standard8Q2"),
22265
22297
  name: "standard8Q2",
22266
22298
  },
22267
22299
  {
22268
- label: t("socialEnvironmentalRisk:standard8Q3"),
22300
+ label: t("standard8Q3"),
22269
22301
  name: "standard8Q3",
22270
22302
  },
22271
22303
  {
22272
- label: t("socialEnvironmentalRisk:standard8Q4"),
22304
+ label: t("standard8Q4"),
22273
22305
  name: "standard8Q4",
22274
22306
  },
22275
22307
  {
22276
- label: t("socialEnvironmentalRisk:standard8Q5"),
22308
+ label: t("standard8Q5"),
22277
22309
  name: "standard8Q5",
22278
22310
  },
22279
22311
  {
22280
- label: t("socialEnvironmentalRisk:standard8Q6"),
22312
+ label: t("standard8Q6"),
22281
22313
  name: "standard8Q6",
22282
22314
  },
22283
22315
  ],
@@ -22338,9 +22370,9 @@ var SocialEnvironmentalRisk = function (props) {
22338
22370
  return (React.createElement(Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
22339
22371
  React.createElement(Radio.Group, { size: "middle" },
22340
22372
  React.createElement("div", { className: "radio-container" },
22341
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("socialEnvironmentalRisk:yes"))),
22373
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
22342
22374
  React.createElement("div", { className: "radio-container" },
22343
- React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("socialEnvironmentalRisk:no"))))));
22375
+ React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))))));
22344
22376
  })));
22345
22377
  })));
22346
22378
  }),
@@ -22372,6 +22404,7 @@ var CoBenifitsComponent = function (props) {
22372
22404
  var _b = useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
22373
22405
  var _c = useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
22374
22406
  var _d = useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
22407
+ translator.setDefaultNamespace("coBenifits");
22375
22408
  var t = translator.t;
22376
22409
  var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
22377
22410
  setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
@@ -24192,7 +24225,7 @@ var CreditTransferComponent = function (props) {
24192
24225
  else {
24193
24226
  setMinistryLevelFilter(false);
24194
24227
  }
24195
- } }, t("ndcAction:ministryLevel")))),
24228
+ } }, t("view:ministryLevel")))),
24196
24229
  React.createElement("div", { className: "search-bar" },
24197
24230
  React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
24198
24231
  return e.target.value === ""
@@ -28737,7 +28770,9 @@ var InvestmentBody = function (props) {
28737
28770
  React.createElement("div", { className: "invester" },
28738
28771
  React.createElement("div", { className: "name-and-progress" },
28739
28772
  React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
28740
- React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
28773
+ React.createElement("div", { className: "progress" },
28774
+ (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28775
+ (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28741
28776
  React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
28742
28777
  React.createElement("div", { className: "amount" },
28743
28778
  "$",
@@ -29207,8 +29242,26 @@ var ProgrammeRetireForm = function (props) {
29207
29242
  var ProgrammeRevokeForm = function (props) {
29208
29243
  var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
29209
29244
  var t = translator.t;
29245
+ var form = Form.useForm()[0];
29210
29246
  var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
29211
29247
  var _b = useState(false), loading = _b[0], setLoading = _b[1];
29248
+ var _c = useState(false), remarks = _c[0], setRemarks = _c[1];
29249
+ var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
29250
+ var comment;
29251
+ return __generator(this, function (_a) {
29252
+ comment = form.getFieldValue("comment");
29253
+ if (comment === undefined || comment === "") {
29254
+ setRemarks(false);
29255
+ }
29256
+ else {
29257
+ setRemarks(true);
29258
+ }
29259
+ return [2 /*return*/];
29260
+ });
29261
+ }); };
29262
+ useEffect(function () {
29263
+ onRemarkValues();
29264
+ });
29212
29265
  return (React.createElement("div", { className: "transfer-form" },
29213
29266
  React.createElement(Row, null,
29214
29267
  React.createElement(Col, { span: 24, className: "sub-text" }, subText)),
@@ -29216,7 +29269,7 @@ var ProgrammeRevokeForm = function (props) {
29216
29269
  certifierId: programme.certifierId && programme.certifierId.length === 1
29217
29270
  ? Number(programme.certifierId[0])
29218
29271
  : undefined,
29219
- }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29272
+ }, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29220
29273
  var res;
29221
29274
  return __generator(this, function (_a) {
29222
29275
  switch (_a.label) {
@@ -29255,7 +29308,7 @@ var ProgrammeRevokeForm = function (props) {
29255
29308
  popupError ? (React.createElement(Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
29256
29309
  React.createElement(Form.Item, { className: "footer" },
29257
29310
  React.createElement(Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
29258
- React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
29311
+ React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
29259
29312
  };
29260
29313
 
29261
29314
  var ProgrammeTransferForm = function (props) {