@undp/carbon-library 1.0.298-CARBON-444.0 → 1.0.298-CARBON-300.0

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