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