@undp/carbon-library 1.0.298-CARBON-300.0 → 1.0.298-CARBON-Sprint-55.1

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