@undp/carbon-library 1.0.302-CARBON-423.0 → 1.0.302-CARBON-Sprint-55.0

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