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