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