@undp/carbon-library 1.0.298-CARBON-Sprint-55.1 → 1.0.298-CARBON-428-hotfix.1

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