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