@undp/carbon-library 1.0.302-CARBON-Sprint-55.0 → 1.0.302-CARBON-433.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +434 -381
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +434 -381
- package/dist/esm/index.js.map +1 -1
- package/dist/locales/i18n/programme/en.json +1 -1
- package/dist/locales/i18n/programme/es.json +2 -1
- package/dist/locales/i18n/programme/fr.json +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -6699,7 +6699,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6699
6699
|
String(value).trim() === undefined ||
|
6700
6700
|
value === null ||
|
6701
6701
|
value === undefined) {
|
6702
|
-
throw new Error("".concat(t("addCompany:nationalSopValue"), "
|
6702
|
+
throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
|
6703
6703
|
}
|
6704
6704
|
return [2 /*return*/];
|
6705
6705
|
});
|
@@ -7876,6 +7876,15 @@ var ProgrammeManagementComponent = function (props) {
|
|
7876
7876
|
setMinistryLevelFilter(false);
|
7877
7877
|
}
|
7878
7878
|
}
|
7879
|
+
else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER) {
|
7880
|
+
setDataFilter(v.target.checked
|
7881
|
+
? {
|
7882
|
+
key: "certifierId",
|
7883
|
+
operation: "ANY",
|
7884
|
+
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
|
7885
|
+
}
|
7886
|
+
: undefined);
|
7887
|
+
}
|
7879
7888
|
else {
|
7880
7889
|
setDataFilter(v.target.checked
|
7881
7890
|
? {
|
@@ -17706,7 +17715,7 @@ var InvestmentManagementComponent = function (props) {
|
|
17706
17715
|
return handleTableChange(val, sorter);
|
17707
17716
|
}, locale: {
|
17708
17717
|
emptyText: (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE, description: tableData.length === 0
|
17709
|
-
? t("programme:
|
17718
|
+
? t("programme:noinvestment")
|
17710
17719
|
: null })),
|
17711
17720
|
} }))))),
|
17712
17721
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
@@ -19864,59 +19873,60 @@ var GenderParity = function (props) {
|
|
19864
19873
|
var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly, translator = props.translator;
|
19865
19874
|
var formOne = antd.Form.useForm()[0];
|
19866
19875
|
var formTwo = antd.Form.useForm()[0];
|
19876
|
+
translator.setDefaultNamespace("genderParity");
|
19867
19877
|
var t = translator.t;
|
19868
19878
|
var _a = React.useState(), genderParityDetails = _a[0], setGenderParityDetails = _a[1];
|
19869
19879
|
var genderParityDetailsOne = [
|
19870
19880
|
{
|
19871
|
-
label: t("
|
19881
|
+
label: t("benifit1"),
|
19872
19882
|
name: "descriminationAgainstGirls",
|
19873
19883
|
value: true,
|
19874
19884
|
},
|
19875
19885
|
{
|
19876
|
-
label: t("
|
19886
|
+
label: t("benifit2"),
|
19877
19887
|
name: "violationAgainstGirls",
|
19878
19888
|
value: true,
|
19879
19889
|
},
|
19880
19890
|
{
|
19881
|
-
label: t("
|
19891
|
+
label: t("benifit3"),
|
19882
19892
|
name: "harmfulPracticesAgainstGirls",
|
19883
19893
|
value: true,
|
19884
19894
|
},
|
19885
19895
|
{
|
19886
|
-
label: t("
|
19896
|
+
label: t("benifit4"),
|
19887
19897
|
name: "equealRightsToGirls",
|
19888
19898
|
value: true,
|
19889
19899
|
},
|
19890
19900
|
{
|
19891
|
-
label: t("
|
19901
|
+
label: t("benifit5"),
|
19892
19902
|
name: "equealRightsToHealthToGirls",
|
19893
19903
|
value: true,
|
19894
19904
|
},
|
19895
19905
|
];
|
19896
19906
|
var genderParityDetailsTwo = [
|
19897
19907
|
{
|
19898
|
-
label: t("
|
19908
|
+
label: t("benifit6"),
|
19899
19909
|
name: "numberOfWomenEmpoyed",
|
19900
19910
|
col: { md: 18, lg: 10 },
|
19901
19911
|
labelCol: 24,
|
19902
19912
|
wrapperCol: 18,
|
19903
19913
|
},
|
19904
19914
|
{
|
19905
|
-
label: t("
|
19915
|
+
label: t("benifit7"),
|
19906
19916
|
name: "numberOfWomenTrained",
|
19907
19917
|
col: { md: 18, lg: 10 },
|
19908
19918
|
labelCol: 24,
|
19909
19919
|
wrapperCol: 18,
|
19910
19920
|
},
|
19911
19921
|
{
|
19912
|
-
label: t("
|
19922
|
+
label: t("benifit8"),
|
19913
19923
|
name: "numberOfWomenSelectedForDecisionMaking",
|
19914
19924
|
col: { md: 18, lg: 16 },
|
19915
19925
|
labelCol: 24,
|
19916
19926
|
wrapperCol: 11,
|
19917
19927
|
},
|
19918
19928
|
{
|
19919
|
-
label: t("
|
19929
|
+
label: t("benifit9"),
|
19920
19930
|
name: "numberOfWomenProvidedAccessForTech",
|
19921
19931
|
col: { md: 18, lg: 16 },
|
19922
19932
|
labelCol: 24,
|
@@ -19968,12 +19978,12 @@ var GenderParity = function (props) {
|
|
19968
19978
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: true },
|
19969
19979
|
React.createElement("div", { className: "yes-no-radio-container" },
|
19970
19980
|
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, (genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) === true
|
19971
|
-
? t("
|
19972
|
-
: t("
|
19981
|
+
? t("yes")
|
19982
|
+
: t("no")))))) : (React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { } },
|
19973
19983
|
React.createElement("div", { className: "yes-no-radio-container" },
|
19974
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, t("
|
19984
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, t("yes"))),
|
19975
19985
|
React.createElement("div", { className: "yes-no-radio-container" },
|
19976
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: !(genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) }, t("
|
19986
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: !(genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) }, t("no")))))));
|
19977
19987
|
})),
|
19978
19988
|
React.createElement("div", { className: "part-two" },
|
19979
19989
|
React.createElement(antd.Form, { name: "additional-details", layout: "vertical", form: formTwo, onValuesChange: onGenderParityValuesChangedSub },
|
@@ -19991,6 +20001,7 @@ var GenderParity = function (props) {
|
|
19991
20001
|
|
19992
20002
|
var Assessment = function (props) {
|
19993
20003
|
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
|
20004
|
+
translator.setDefaultNamespace("coBenifits");
|
19994
20005
|
var t = translator.t;
|
19995
20006
|
var form1 = antd.Form.useForm()[0];
|
19996
20007
|
var form2 = antd.Form.useForm()[0];
|
@@ -20085,23 +20096,11 @@ var Assessment = function (props) {
|
|
20085
20096
|
changedValues = {};
|
20086
20097
|
if (info.changedFields && info.changedFields.length > 0) {
|
20087
20098
|
info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
|
20088
|
-
var base64Value, values_1;
|
20089
20099
|
return __generator(this, function (_a) {
|
20090
|
-
|
20091
|
-
|
20092
|
-
if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
|
20093
|
-
return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
|
20094
|
-
case 1:
|
20095
|
-
base64Value = _a.sent();
|
20096
|
-
console.log("FEAsibility document : ", base64Value);
|
20097
|
-
values_1 = base64Value;
|
20098
|
-
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
20099
|
-
return [3 /*break*/, 3];
|
20100
|
-
case 2:
|
20101
|
-
changedValues[changedField.name[0]] = changedField.value;
|
20102
|
-
_a.label = 3;
|
20103
|
-
case 3: return [2 /*return*/];
|
20100
|
+
if (changedField.name[0] !== "document") {
|
20101
|
+
changedValues[changedField.name[0]] = changedField.value;
|
20104
20102
|
}
|
20103
|
+
return [2 /*return*/];
|
20105
20104
|
});
|
20106
20105
|
}); });
|
20107
20106
|
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
|
@@ -20136,6 +20135,34 @@ var Assessment = function (props) {
|
|
20136
20135
|
setIsPersonListedDetailsVisible(false);
|
20137
20136
|
}
|
20138
20137
|
};
|
20138
|
+
var onAssesmentDocument = function (e) { return __awaiter(void 0, void 0, void 0, function () {
|
20139
|
+
var base64Value, values_1;
|
20140
|
+
var _a;
|
20141
|
+
return __generator(this, function (_b) {
|
20142
|
+
switch (_b.label) {
|
20143
|
+
case 0:
|
20144
|
+
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];
|
20145
|
+
return [4 /*yield*/, getBase64(e.fileList[0].originFileObj)];
|
20146
|
+
case 1:
|
20147
|
+
base64Value = _b.sent();
|
20148
|
+
values_1 = base64Value;
|
20149
|
+
setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1 })); });
|
20150
|
+
return [3 /*break*/, 3];
|
20151
|
+
case 2:
|
20152
|
+
setCobenefitsAssessmentDetails(function (pre) {
|
20153
|
+
pre.document; var rest = __rest(pre, ["document"]);
|
20154
|
+
if (Object.keys(rest).length === 0) {
|
20155
|
+
return undefined;
|
20156
|
+
}
|
20157
|
+
else {
|
20158
|
+
return __assign({}, rest);
|
20159
|
+
}
|
20160
|
+
});
|
20161
|
+
_b.label = 3;
|
20162
|
+
case 3: return [2 /*return*/];
|
20163
|
+
}
|
20164
|
+
});
|
20165
|
+
}); };
|
20139
20166
|
var normFile = function (e) {
|
20140
20167
|
if (Array.isArray(e)) {
|
20141
20168
|
return e;
|
@@ -20148,105 +20175,105 @@ var Assessment = function (props) {
|
|
20148
20175
|
React.createElement(antd.Row, null,
|
20149
20176
|
React.createElement(antd.Form, { name: "from1", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form1, onValuesChange: function () { return validateForms(); } },
|
20150
20177
|
!viewOnly && (React.createElement("div", { className: "radio-content" },
|
20151
|
-
React.createElement(antd.Form.Item, { label: t("
|
20178
|
+
React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified", {
|
20152
20179
|
ns: "coBenifits",
|
20153
20180
|
}), className: "form-item", name: "IsThirdPartyVerified" },
|
20154
20181
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsThirdPartyVerifiedChanged },
|
20155
20182
|
React.createElement("div", { className: "radio-container" },
|
20156
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
20183
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
20157
20184
|
React.createElement("div", { className: "radio-container" },
|
20158
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
20185
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
20159
20186
|
React.createElement("div", { className: "radio-container" },
|
20160
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("
|
20161
|
-
isVerifyingOrgVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("
|
20187
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
|
20188
|
+
isVerifyingOrgVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName", rules: [
|
20162
20189
|
{
|
20163
20190
|
required: true,
|
20164
20191
|
message: "",
|
20165
20192
|
},
|
20166
20193
|
] },
|
20167
20194
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20168
|
-
React.createElement(antd.Form.Item, { label: t("
|
20195
|
+
React.createElement(antd.Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
|
20169
20196
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsWillingToVerifiedChanged },
|
20170
20197
|
React.createElement("div", { className: "radio-container" },
|
20171
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
20198
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
20172
20199
|
React.createElement("div", { className: "radio-container" },
|
20173
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
20200
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
20174
20201
|
React.createElement("div", { className: "radio-container" },
|
20175
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("
|
20176
|
-
isVerifyingDetailsVisible === true && (React.createElement(antd.Form.Item, { label: t("
|
20202
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
|
20203
|
+
isVerifyingDetailsVisible === true && (React.createElement(antd.Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
|
20177
20204
|
React.createElement(antd.Input, { style: { width: 303 } }))))),
|
20178
20205
|
viewOnly && (React.createElement("div", { className: "radio-content view-section" },
|
20179
|
-
assessmentViewData.hasOwnProperty("IsThirdPartyVerified") && (React.createElement(antd.Form.Item, { label: t("
|
20206
|
+
assessmentViewData.hasOwnProperty("IsThirdPartyVerified") && (React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified"), className: "form-item", name: "IsThirdPartyVerified" },
|
20180
20207
|
React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
|
20181
20208
|
React.createElement("div", { className: "radio-container" },
|
20182
20209
|
React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.IsThirdPartyVerified))))),
|
20183
20210
|
assessmentViewData.IsThirdPartyVerified ===
|
20184
|
-
exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("
|
20211
|
+
exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName" },
|
20185
20212
|
React.createElement(antd.Input, { disabled: true, style: { width: 303 }, defaultValue: assessmentViewData.verifyingOrgName
|
20186
20213
|
? assessmentViewData.verifyingOrgName
|
20187
20214
|
: "-" }))),
|
20188
|
-
assessmentViewData.hasOwnProperty("IsWillingToVerified") && (React.createElement(antd.Form.Item, { label: t("
|
20215
|
+
assessmentViewData.hasOwnProperty("IsWillingToVerified") && (React.createElement(antd.Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
|
20189
20216
|
React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
|
20190
20217
|
React.createElement("div", { className: "radio-container" },
|
20191
20218
|
React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.IsWillingToVerified))))),
|
20192
20219
|
assessmentViewData.IsWillingToVerified ===
|
20193
|
-
exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { label: t("
|
20220
|
+
exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
|
20194
20221
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.verifyingDetails
|
20195
20222
|
? assessmentViewData.verifyingDetails
|
20196
20223
|
: "-", style: { width: 303 } }))))))),
|
20197
20224
|
React.createElement(antd.Row, null,
|
20198
20225
|
React.createElement(antd.Form, { name: "form2", labelCol: { span: 14 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 8 }, layout: "vertical", requiredMark: true, form: form2, className: "view-section" },
|
20199
20226
|
React.createElement(antd.Row, { className: "mg-bottom-1" },
|
20200
|
-
React.createElement("label", { className: "co-sub-title-text" }, t("
|
20227
|
+
React.createElement("label", { className: "co-sub-title-text" }, t("contactInformation"))),
|
20201
20228
|
React.createElement(antd.Row, { justify: "start", gutter: 16 },
|
20202
20229
|
React.createElement(antd.Col, { flex: "139px" },
|
20203
20230
|
React.createElement(React.Fragment, null,
|
20204
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20231
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTitle"), name: "title" },
|
20205
20232
|
React.createElement(antd.Select, { size: "large", style: {
|
20206
20233
|
width: "139px",
|
20207
20234
|
borderRadius: "4px",
|
20208
20235
|
}, options: titleList }))),
|
20209
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20236
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTitle"), name: "title" },
|
20210
20237
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.title
|
20211
20238
|
? assessmentViewData.title
|
20212
20239
|
: "-", style: { width: 303 } }))))),
|
20213
20240
|
React.createElement(antd.Col, { flex: "303px" },
|
20214
20241
|
React.createElement(React.Fragment, null,
|
20215
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20242
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
|
20216
20243
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20217
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20244
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
|
20218
20245
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.firstName
|
20219
20246
|
? assessmentViewData.firstName
|
20220
20247
|
: "-", style: { width: 303 } }))))),
|
20221
20248
|
React.createElement(antd.Col, { flex: "303px" },
|
20222
20249
|
React.createElement(React.Fragment, null,
|
20223
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20250
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentLastName"), name: "lastName" },
|
20224
20251
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20225
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20252
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentLastName"), name: "lastName" },
|
20226
20253
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.lastName
|
20227
20254
|
? assessmentViewData.lastName
|
20228
20255
|
: "-", style: { width: 303 } })))))),
|
20229
20256
|
React.createElement(antd.Row, { justify: "start", gutter: 16 },
|
20230
20257
|
React.createElement(antd.Col, { flex: "462px" },
|
20231
20258
|
React.createElement(React.Fragment, null,
|
20232
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20259
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
|
20233
20260
|
React.createElement(antd.Input, { style: { width: 462 } }))),
|
20234
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20261
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
|
20235
20262
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.organisation
|
20236
20263
|
? assessmentViewData.organisation
|
20237
20264
|
: "-", style: { width: 462 } }))))),
|
20238
20265
|
React.createElement(antd.Col, { flex: "303px" },
|
20239
20266
|
React.createElement(React.Fragment, null,
|
20240
|
-
React.createElement(antd.Skeleton, { loading: isCountryListLoading, active: true }, !viewOnly && countries.length > 0 && (React.createElement(antd.Form.Item, { label: t("
|
20267
|
+
React.createElement(antd.Skeleton, { loading: isCountryListLoading, active: true }, !viewOnly && countries.length > 0 && (React.createElement(antd.Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
|
20241
20268
|
React.createElement(PhoneInput, { style: { width: 303 }, international: true, defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })))),
|
20242
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20269
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
|
20243
20270
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.telephone
|
20244
20271
|
? assessmentViewData.telephone
|
20245
20272
|
: "-", style: { width: 303 } })))))),
|
20246
20273
|
React.createElement(antd.Row, { justify: "start", gutter: 16 },
|
20247
20274
|
React.createElement(antd.Col, { flex: "303px" },
|
20248
20275
|
React.createElement(React.Fragment, null,
|
20249
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20276
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentEmail"), name: "email", rules: [
|
20250
20277
|
{
|
20251
20278
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
20252
20279
|
var val, reg, matches;
|
@@ -20267,15 +20294,15 @@ var Assessment = function (props) {
|
|
20267
20294
|
},
|
20268
20295
|
] },
|
20269
20296
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20270
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20297
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentEmail"), name: "email" },
|
20271
20298
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.email
|
20272
20299
|
? assessmentViewData.email
|
20273
20300
|
: "-", style: { width: 303 } }))))),
|
20274
20301
|
React.createElement(antd.Col, { flex: "462px" },
|
20275
20302
|
React.createElement(React.Fragment, null,
|
20276
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20303
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
|
20277
20304
|
React.createElement(antd.Input, { style: { width: 462 } }))),
|
20278
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20305
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
|
20279
20306
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.affiliationCDM
|
20280
20307
|
? assessmentViewData.affiliationCDM
|
20281
20308
|
: "-", style: { width: 462 } })))))))),
|
@@ -20283,15 +20310,15 @@ var Assessment = function (props) {
|
|
20283
20310
|
React.createElement(antd.Col, { span: 24 },
|
20284
20311
|
React.createElement(antd.Form, { name: "form3", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form3, onValuesChange: function () { return validateForms(); } },
|
20285
20312
|
!viewOnly && (React.createElement("div", { className: "radio-content" },
|
20286
|
-
React.createElement(antd.Form.Item, { label: t("
|
20313
|
+
React.createElement(antd.Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
|
20287
20314
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsThePersonListedChanged },
|
20288
20315
|
React.createElement("div", { className: "radio-container" },
|
20289
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
20316
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
20290
20317
|
React.createElement("div", { className: "radio-container" },
|
20291
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
20318
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
20292
20319
|
React.createElement("div", { className: "radio-container" },
|
20293
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("
|
20294
|
-
isPersonListedDetailsVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("
|
20320
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
|
20321
|
+
isPersonListedDetailsVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails", rules: [
|
20295
20322
|
{
|
20296
20323
|
required: true,
|
20297
20324
|
message: "",
|
@@ -20299,45 +20326,45 @@ var Assessment = function (props) {
|
|
20299
20326
|
] },
|
20300
20327
|
React.createElement(antd.Input, { style: { width: 303 } }))))),
|
20301
20328
|
viewOnly && (React.createElement("div", { className: "radio-content view-section" },
|
20302
|
-
assessmentViewData.hasOwnProperty("isThePersonListed") && (React.createElement(antd.Form.Item, { label: t("
|
20329
|
+
assessmentViewData.hasOwnProperty("isThePersonListed") && (React.createElement(antd.Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
|
20303
20330
|
React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
|
20304
20331
|
React.createElement("div", { className: "radio-container" },
|
20305
20332
|
React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.isThePersonListed))))),
|
20306
20333
|
assessmentViewData.isThePersonListed ===
|
20307
|
-
exports.RadioButtonStatus.NO && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("
|
20334
|
+
exports.RadioButtonStatus.NO && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails" },
|
20308
20335
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.personListedDetails
|
20309
20336
|
? assessmentViewData.personListedDetails
|
20310
20337
|
: "-", style: { width: 303 } })))))))),
|
20311
20338
|
React.createElement(antd.Row, null,
|
20312
20339
|
React.createElement(antd.Form, { layout: "vertical", name: "form4", form: form4, className: "view-section" },
|
20313
20340
|
React.createElement(antd.Row, { className: "mg-bottom-1" },
|
20314
|
-
React.createElement("label", { className: "co-sub-title-text" }, t("
|
20341
|
+
React.createElement("label", { className: "co-sub-title-text" }, t("feasibilityReport"))),
|
20315
20342
|
React.createElement(antd.Row, { justify: "start", gutter: 16 },
|
20316
20343
|
React.createElement(antd.Col, { flex: "303px" },
|
20317
20344
|
React.createElement(React.Fragment, null,
|
20318
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20345
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
|
20319
20346
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20320
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20347
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
|
20321
20348
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.studyName
|
20322
20349
|
? assessmentViewData.studyName
|
20323
20350
|
: "-", style: { width: 303 } }))))),
|
20324
20351
|
React.createElement(antd.Col, { flex: "303px" },
|
20325
20352
|
React.createElement(React.Fragment, null,
|
20326
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20353
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFunder"), name: "funder" },
|
20327
20354
|
React.createElement(antd.Input, { style: { width: 303 } }))),
|
20328
|
-
viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20355
|
+
viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFunder"), name: "funder" },
|
20329
20356
|
React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.funder
|
20330
20357
|
? assessmentViewData.funder
|
20331
20358
|
: "-", style: { width: 303 } })))))),
|
20332
20359
|
React.createElement(antd.Row, null,
|
20333
|
-
!viewOnly && (React.createElement(antd.Form.Item, { label: t("
|
20360
|
+
!viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentDocuments"), name: "document", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
|
20334
20361
|
{
|
20335
20362
|
validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
|
20336
20363
|
var _a, _b;
|
20337
20364
|
return __generator(this, function (_c) {
|
20338
20365
|
if ((file === null || file === void 0 ? void 0 : file.length) > 0) {
|
20339
20366
|
if (!isValidateFileType((_a = file[0]) === null || _a === void 0 ? void 0 : _a.type)) {
|
20340
|
-
throw new Error("".concat(t("
|
20367
|
+
throw new Error("".concat(t("invalidFileFormat")));
|
20341
20368
|
}
|
20342
20369
|
else if (((_b = file[0]) === null || _b === void 0 ? void 0 : _b.size) > maximumFileSize) {
|
20343
20370
|
throw new Error("".concat(t("common:maxSizeVal")));
|
@@ -20350,9 +20377,9 @@ var Assessment = function (props) {
|
|
20350
20377
|
] },
|
20351
20378
|
React.createElement(antd.Upload, { accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", beforeUpload: function (file) {
|
20352
20379
|
return false;
|
20353
|
-
}, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1 },
|
20380
|
+
}, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1, onChange: onAssesmentDocument },
|
20354
20381
|
React.createElement(antd.Button, { className: "upload-doc", size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload")))),
|
20355
|
-
viewOnly && assessmentViewData.document && (React.createElement(antd.Form.Item, { label: t("
|
20382
|
+
viewOnly && assessmentViewData.document && (React.createElement(antd.Form.Item, { label: t("assessmentDocuments"), name: "assessmentDocuments" },
|
20356
20383
|
React.createElement("a", { href: assessmentViewData.document, target: "_blank", rel: "noopener noreferrer", download: true }, assessmentViewData.document))))))))));
|
20357
20384
|
};
|
20358
20385
|
|
@@ -20528,175 +20555,176 @@ var SdgGoals = function (props) {
|
|
20528
20555
|
|
20529
20556
|
var Safeguards = function (props) {
|
20530
20557
|
var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly, translator = props.translator;
|
20558
|
+
translator.setDefaultNamespace("safeguards");
|
20531
20559
|
var t = translator.t;
|
20532
20560
|
var _a = React.useState(), safeguardDetails = _a[0], setSafeguardDetails = _a[1];
|
20533
20561
|
var form = antd.Form.useForm()[0];
|
20534
20562
|
var initialFormElementList = [
|
20535
20563
|
{
|
20536
20564
|
type: exports.FormElementType.Label,
|
20537
|
-
label: t("
|
20565
|
+
label: t("humanRights"),
|
20538
20566
|
items: [
|
20539
20567
|
{
|
20540
20568
|
type: exports.FormElementType.Radio,
|
20541
|
-
label: t("
|
20569
|
+
label: t("isRespectHumanRights"),
|
20542
20570
|
name: "isRespectHumanRights",
|
20543
20571
|
},
|
20544
20572
|
{
|
20545
20573
|
type: exports.FormElementType.Radio,
|
20546
|
-
label: t("
|
20574
|
+
label: t("isProjectdiscriminate"),
|
20547
20575
|
name: "isProjectdiscriminate",
|
20548
20576
|
},
|
20549
20577
|
],
|
20550
20578
|
},
|
20551
20579
|
{
|
20552
20580
|
type: exports.FormElementType.Label,
|
20553
|
-
label: t("
|
20581
|
+
label: t("genderEquality"),
|
20554
20582
|
items: [
|
20555
20583
|
{
|
20556
20584
|
type: exports.FormElementType.Radio,
|
20557
|
-
label: t("
|
20585
|
+
label: t("genderEqualityQ1"),
|
20558
20586
|
name: "genderEqualityQ1",
|
20559
20587
|
},
|
20560
20588
|
{
|
20561
20589
|
type: exports.FormElementType.Radio,
|
20562
|
-
label: t("
|
20590
|
+
label: t("genderEqualityQ2"),
|
20563
20591
|
name: "genderEqualityQ2",
|
20564
20592
|
},
|
20565
20593
|
{
|
20566
20594
|
type: exports.FormElementType.Radio,
|
20567
|
-
label: t("
|
20595
|
+
label: t("genderEqualityQ3"),
|
20568
20596
|
name: "genderEqualityQ3",
|
20569
20597
|
},
|
20570
20598
|
{
|
20571
20599
|
type: exports.FormElementType.Radio,
|
20572
|
-
label: t("
|
20600
|
+
label: t("genderEqualityQ4"),
|
20573
20601
|
name: "genderEqualityQ4",
|
20574
20602
|
},
|
20575
20603
|
],
|
20576
20604
|
},
|
20577
20605
|
{
|
20578
20606
|
type: exports.FormElementType.Label,
|
20579
|
-
label: t("
|
20607
|
+
label: t("communityHealth"),
|
20580
20608
|
items: [
|
20581
20609
|
{
|
20582
20610
|
type: exports.FormElementType.Radio,
|
20583
|
-
label: t("
|
20611
|
+
label: t("communityHealthQ1"),
|
20584
20612
|
name: "communityHealthQ1",
|
20585
20613
|
},
|
20586
20614
|
],
|
20587
20615
|
},
|
20588
20616
|
{
|
20589
20617
|
type: exports.FormElementType.Label,
|
20590
|
-
label: t("
|
20618
|
+
label: t("historicHeritage"),
|
20591
20619
|
items: [
|
20592
20620
|
{
|
20593
20621
|
type: exports.FormElementType.Radio,
|
20594
|
-
label: t("
|
20622
|
+
label: t("historicHeritageQ1"),
|
20595
20623
|
name: "historicHeritageQ1",
|
20596
20624
|
},
|
20597
20625
|
],
|
20598
20626
|
},
|
20599
20627
|
{
|
20600
20628
|
type: exports.FormElementType.Label,
|
20601
|
-
label: t("
|
20629
|
+
label: t("forcedEviction"),
|
20602
20630
|
items: [
|
20603
20631
|
{
|
20604
20632
|
type: exports.FormElementType.Radio,
|
20605
|
-
label: t("
|
20633
|
+
label: t("forcedEvictionQ1"),
|
20606
20634
|
name: "forcedEvictionQ1",
|
20607
20635
|
},
|
20608
20636
|
],
|
20609
20637
|
},
|
20610
20638
|
{
|
20611
20639
|
type: exports.FormElementType.Label,
|
20612
|
-
label: t("
|
20640
|
+
label: t("landTenure"),
|
20613
20641
|
items: [
|
20614
20642
|
{
|
20615
20643
|
type: exports.FormElementType.Radio,
|
20616
|
-
label: t("
|
20644
|
+
label: t("landTenureQ1"),
|
20617
20645
|
name: "landTenureQ1",
|
20618
20646
|
},
|
20619
20647
|
{
|
20620
20648
|
type: exports.FormElementType.Radio,
|
20621
|
-
label: t("
|
20649
|
+
label: t("landTenureQ2"),
|
20622
20650
|
name: "landTenureQ2",
|
20623
20651
|
},
|
20624
20652
|
],
|
20625
20653
|
},
|
20626
20654
|
{
|
20627
20655
|
type: exports.FormElementType.Label,
|
20628
|
-
label: t("
|
20656
|
+
label: t("indegenousPeople"),
|
20629
20657
|
items: [
|
20630
20658
|
{
|
20631
20659
|
type: exports.FormElementType.Radio,
|
20632
|
-
label: t("
|
20660
|
+
label: t("indegenousPeopleQ1"),
|
20633
20661
|
name: "indegenousPeopleQ1",
|
20634
20662
|
},
|
20635
20663
|
],
|
20636
20664
|
},
|
20637
20665
|
{
|
20638
20666
|
type: exports.FormElementType.Label,
|
20639
|
-
label: t("
|
20667
|
+
label: t("corruption"),
|
20640
20668
|
items: [
|
20641
20669
|
{
|
20642
20670
|
type: exports.FormElementType.Radio,
|
20643
|
-
label: t("
|
20671
|
+
label: t("corruptionQ1"),
|
20644
20672
|
name: "corruptionQ1",
|
20645
20673
|
},
|
20646
20674
|
],
|
20647
20675
|
},
|
20648
20676
|
{
|
20649
20677
|
type: exports.FormElementType.Label,
|
20650
|
-
label: t("
|
20678
|
+
label: t("labourRights"),
|
20651
20679
|
items: [
|
20652
20680
|
{
|
20653
20681
|
type: exports.FormElementType.Radio,
|
20654
|
-
label: t("
|
20682
|
+
label: t("labourRightsQ1"),
|
20655
20683
|
name: "labourRightsQ1",
|
20656
20684
|
},
|
20657
20685
|
{
|
20658
20686
|
type: exports.FormElementType.Radio,
|
20659
|
-
label: t("
|
20687
|
+
label: t("labourRightsQ2"),
|
20660
20688
|
name: "labourRightsQ2",
|
20661
20689
|
},
|
20662
20690
|
{
|
20663
20691
|
type: exports.FormElementType.Label,
|
20664
|
-
label: t("
|
20692
|
+
label: t("labourRightsSubLabel"),
|
20665
20693
|
className: "mg-left-2",
|
20666
20694
|
items: [
|
20667
20695
|
{
|
20668
20696
|
type: exports.FormElementType.Radio,
|
20669
|
-
label: t("
|
20697
|
+
label: t("labourRightsSubQ1"),
|
20670
20698
|
name: "labourRightsSubQ1",
|
20671
20699
|
className: "mg-left-4",
|
20672
20700
|
},
|
20673
20701
|
{
|
20674
20702
|
type: exports.FormElementType.Radio,
|
20675
|
-
label: t("
|
20703
|
+
label: t("labourRightsSubQ2"),
|
20676
20704
|
name: "labourRightsSubQ2",
|
20677
20705
|
className: "mg-left-4",
|
20678
20706
|
},
|
20679
20707
|
{
|
20680
20708
|
type: exports.FormElementType.Radio,
|
20681
|
-
label: t("
|
20709
|
+
label: t("labourRightsSubQ3"),
|
20682
20710
|
name: "labourRightsSubQ3",
|
20683
20711
|
className: "mg-left-4",
|
20684
20712
|
},
|
20685
20713
|
{
|
20686
20714
|
type: exports.FormElementType.Radio,
|
20687
|
-
label: t("
|
20715
|
+
label: t("labourRightsSubQ4"),
|
20688
20716
|
name: "labourRightsSubQ4",
|
20689
20717
|
className: "mg-left-4",
|
20690
20718
|
},
|
20691
20719
|
{
|
20692
20720
|
type: exports.FormElementType.Radio,
|
20693
|
-
label: t("
|
20721
|
+
label: t("labourRightsSubQ5"),
|
20694
20722
|
name: "labourRightsSubQ5",
|
20695
20723
|
className: "mg-left-4",
|
20696
20724
|
},
|
20697
20725
|
{
|
20698
20726
|
type: exports.FormElementType.Radio,
|
20699
|
-
label: t("
|
20727
|
+
label: t("labourRightsSubQ6"),
|
20700
20728
|
name: "labourRightsSubQ6",
|
20701
20729
|
className: "mg-left-4",
|
20702
20730
|
},
|
@@ -20704,198 +20732,198 @@ var Safeguards = function (props) {
|
|
20704
20732
|
},
|
20705
20733
|
{
|
20706
20734
|
type: exports.FormElementType.Radio,
|
20707
|
-
label: t("
|
20735
|
+
label: t("labourRightsQ3"),
|
20708
20736
|
name: "labourRightsQ3",
|
20709
20737
|
},
|
20710
20738
|
{
|
20711
20739
|
type: exports.FormElementType.Radio,
|
20712
|
-
label: t("
|
20740
|
+
label: t("labourRightsQ4"),
|
20713
20741
|
name: "labourRightsQ4",
|
20714
20742
|
},
|
20715
20743
|
],
|
20716
20744
|
},
|
20717
20745
|
{
|
20718
20746
|
type: exports.FormElementType.Label,
|
20719
|
-
label: t("
|
20747
|
+
label: t("economicConsequences"),
|
20720
20748
|
items: [
|
20721
20749
|
{
|
20722
20750
|
type: exports.FormElementType.Radio,
|
20723
|
-
label: t("
|
20751
|
+
label: t("economicConsequencesQ1"),
|
20724
20752
|
name: "economicConsequencesQ1",
|
20725
20753
|
},
|
20726
20754
|
],
|
20727
20755
|
},
|
20728
20756
|
{
|
20729
20757
|
type: exports.FormElementType.Label,
|
20730
|
-
label: t("
|
20758
|
+
label: t("emissions"),
|
20731
20759
|
items: [
|
20732
20760
|
{
|
20733
20761
|
type: exports.FormElementType.Radio,
|
20734
|
-
label: t("
|
20762
|
+
label: t("emissionsQ1"),
|
20735
20763
|
name: "emissionsQ1",
|
20736
20764
|
},
|
20737
20765
|
],
|
20738
20766
|
},
|
20739
20767
|
{
|
20740
20768
|
type: exports.FormElementType.Label,
|
20741
|
-
label: t("
|
20769
|
+
label: t("energySupply"),
|
20742
20770
|
items: [
|
20743
20771
|
{
|
20744
20772
|
type: exports.FormElementType.Radio,
|
20745
|
-
label: t("
|
20773
|
+
label: t("energySupplyQ1"),
|
20746
20774
|
name: "energySupplyQ1",
|
20747
20775
|
},
|
20748
20776
|
],
|
20749
20777
|
},
|
20750
20778
|
{
|
20751
20779
|
type: exports.FormElementType.Label,
|
20752
|
-
label: t("
|
20780
|
+
label: t("waterPattern"),
|
20753
20781
|
items: [
|
20754
20782
|
{
|
20755
20783
|
type: exports.FormElementType.Radio,
|
20756
|
-
label: t("
|
20784
|
+
label: t("waterPatternQ1"),
|
20757
20785
|
name: "waterPatternQ1",
|
20758
20786
|
},
|
20759
20787
|
],
|
20760
20788
|
},
|
20761
20789
|
{
|
20762
20790
|
type: exports.FormElementType.Label,
|
20763
|
-
label: t("
|
20791
|
+
label: t("erosoin"),
|
20764
20792
|
items: [
|
20765
20793
|
{
|
20766
20794
|
type: exports.FormElementType.Radio,
|
20767
|
-
label: t("
|
20795
|
+
label: t("erosoinQ1"),
|
20768
20796
|
name: "erosoinQ1",
|
20769
20797
|
},
|
20770
20798
|
{
|
20771
20799
|
type: exports.FormElementType.Radio,
|
20772
|
-
label: t("
|
20800
|
+
label: t("erosoinQ2"),
|
20773
20801
|
name: "erosoinQ2",
|
20774
20802
|
},
|
20775
20803
|
],
|
20776
20804
|
},
|
20777
20805
|
{
|
20778
20806
|
type: exports.FormElementType.Label,
|
20779
|
-
label: t("
|
20807
|
+
label: t("landscape"),
|
20780
20808
|
items: [
|
20781
20809
|
{
|
20782
20810
|
type: exports.FormElementType.Radio,
|
20783
|
-
label: t("
|
20811
|
+
label: t("landscapeQ1"),
|
20784
20812
|
name: "landscapeQ1",
|
20785
20813
|
},
|
20786
20814
|
],
|
20787
20815
|
},
|
20788
20816
|
{
|
20789
20817
|
type: exports.FormElementType.Label,
|
20790
|
-
label: t("
|
20818
|
+
label: t("naturalDisaster"),
|
20791
20819
|
items: [
|
20792
20820
|
{
|
20793
20821
|
type: exports.FormElementType.Radio,
|
20794
|
-
label: t("
|
20822
|
+
label: t("naturalDisasterQ1"),
|
20795
20823
|
name: "naturalDisasterQ1",
|
20796
20824
|
},
|
20797
20825
|
],
|
20798
20826
|
},
|
20799
20827
|
{
|
20800
20828
|
type: exports.FormElementType.Label,
|
20801
|
-
label: t("
|
20829
|
+
label: t("genetic"),
|
20802
20830
|
items: [
|
20803
20831
|
{
|
20804
20832
|
type: exports.FormElementType.Radio,
|
20805
|
-
label: t("
|
20833
|
+
label: t("geneticQ1"),
|
20806
20834
|
name: "geneticQ1",
|
20807
20835
|
},
|
20808
20836
|
],
|
20809
20837
|
},
|
20810
20838
|
{
|
20811
20839
|
type: exports.FormElementType.Label,
|
20812
|
-
label: t("
|
20840
|
+
label: t("pollutants"),
|
20813
20841
|
items: [
|
20814
20842
|
{
|
20815
20843
|
type: exports.FormElementType.Radio,
|
20816
|
-
label: t("
|
20844
|
+
label: t("pollutantsQ1"),
|
20817
20845
|
name: "pollutantsQ1",
|
20818
20846
|
},
|
20819
20847
|
],
|
20820
20848
|
},
|
20821
20849
|
{
|
20822
20850
|
type: exports.FormElementType.Label,
|
20823
|
-
label: t("
|
20851
|
+
label: t("hazardousWaste"),
|
20824
20852
|
items: [
|
20825
20853
|
{
|
20826
20854
|
type: exports.FormElementType.Radio,
|
20827
|
-
label: t("
|
20855
|
+
label: t("hazardousWasteQ1"),
|
20828
20856
|
name: "hazardousWasteQ1",
|
20829
20857
|
},
|
20830
20858
|
],
|
20831
20859
|
},
|
20832
20860
|
{
|
20833
20861
|
type: exports.FormElementType.Label,
|
20834
|
-
label: t("
|
20862
|
+
label: t("pesticides"),
|
20835
20863
|
items: [
|
20836
20864
|
{
|
20837
20865
|
type: exports.FormElementType.Radio,
|
20838
|
-
label: t("
|
20866
|
+
label: t("pesticidesQ1"),
|
20839
20867
|
name: "pesticidesQ1",
|
20840
20868
|
},
|
20841
20869
|
],
|
20842
20870
|
},
|
20843
20871
|
{
|
20844
20872
|
type: exports.FormElementType.Label,
|
20845
|
-
label: t("
|
20873
|
+
label: t("harvestForests"),
|
20846
20874
|
items: [
|
20847
20875
|
{
|
20848
20876
|
type: exports.FormElementType.Radio,
|
20849
|
-
label: t("
|
20877
|
+
label: t("harvestForestsQ1"),
|
20850
20878
|
name: "harvestForestsQ1",
|
20851
20879
|
},
|
20852
20880
|
],
|
20853
20881
|
},
|
20854
20882
|
{
|
20855
20883
|
type: exports.FormElementType.Label,
|
20856
|
-
label: t("
|
20884
|
+
label: t("food"),
|
20857
20885
|
items: [
|
20858
20886
|
{
|
20859
20887
|
type: exports.FormElementType.Radio,
|
20860
|
-
label: t("
|
20888
|
+
label: t("foodQ1"),
|
20861
20889
|
name: "foodQ1",
|
20862
20890
|
},
|
20863
20891
|
],
|
20864
20892
|
},
|
20865
20893
|
{
|
20866
20894
|
type: exports.FormElementType.Label,
|
20867
|
-
label: t("
|
20895
|
+
label: t("animalHusbandry"),
|
20868
20896
|
items: [
|
20869
20897
|
{
|
20870
20898
|
type: exports.FormElementType.Radio,
|
20871
|
-
label: t("
|
20899
|
+
label: t("animalHusbandryQ1"),
|
20872
20900
|
name: "animalHusbandryQ1",
|
20873
20901
|
},
|
20874
20902
|
],
|
20875
20903
|
},
|
20876
20904
|
{
|
20877
20905
|
type: exports.FormElementType.Label,
|
20878
|
-
label: t("
|
20906
|
+
label: t("criticalHabitats"),
|
20879
20907
|
items: [
|
20880
20908
|
{
|
20881
20909
|
type: exports.FormElementType.Radio,
|
20882
|
-
label: t("
|
20910
|
+
label: t("criticalHabitatsQ1"),
|
20883
20911
|
name: "criticalHabitatsQ1",
|
20884
20912
|
},
|
20885
20913
|
],
|
20886
20914
|
},
|
20887
20915
|
{
|
20888
20916
|
type: exports.FormElementType.Label,
|
20889
|
-
label: t("
|
20917
|
+
label: t("endangeredSpecies"),
|
20890
20918
|
items: [
|
20891
20919
|
{
|
20892
20920
|
type: exports.FormElementType.Radio,
|
20893
|
-
label: t("
|
20921
|
+
label: t("endangeredSpeciesQ1"),
|
20894
20922
|
name: "endangeredSpeciesQ1",
|
20895
20923
|
},
|
20896
20924
|
{
|
20897
20925
|
type: exports.FormElementType.Radio,
|
20898
|
-
label: t("
|
20926
|
+
label: t("endangeredSpeciesQ2"),
|
20899
20927
|
name: "endangeredSpeciesQ2",
|
20900
20928
|
},
|
20901
20929
|
],
|
@@ -20960,7 +20988,7 @@ var Safeguards = function (props) {
|
|
20960
20988
|
React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
|
20961
20989
|
React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
|
20962
20990
|
React.createElement("span", null,
|
20963
|
-
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("
|
20991
|
+
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("undpSespTitle")))),
|
20964
20992
|
React.createElement(antd.Col, { span: 24 },
|
20965
20993
|
React.createElement("div", { className: "undpSesp-section-divider" })))),
|
20966
20994
|
React.createElement(antd.Form, { onValuesChange: onSafeguardValuesChanged, name: "safeguardDetails", labelWrap: true, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", form: form }, updatedFormElementList.map(function (sectionItem) {
|
@@ -20979,11 +21007,11 @@ var Safeguards = function (props) {
|
|
20979
21007
|
] },
|
20980
21008
|
React.createElement(antd.Radio.Group, { size: "middle" },
|
20981
21009
|
React.createElement("div", { className: "radio-container" },
|
20982
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("
|
21010
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("yes"))),
|
20983
21011
|
React.createElement("div", { className: "radio-container" },
|
20984
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("
|
21012
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("maybe"))),
|
20985
21013
|
React.createElement("div", { className: "radio-container" },
|
20986
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("
|
21014
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("no")))))),
|
20987
21015
|
viewOnly &&
|
20988
21016
|
safeGuardViewData.hasOwnProperty(item === null || item === void 0 ? void 0 : item.name) && (React.createElement("div", { className: "view-section" },
|
20989
21017
|
React.createElement(antd.Form.Item, { label: item === null || item === void 0 ? void 0 : item.label, className: item.className
|
@@ -21008,11 +21036,11 @@ var Safeguards = function (props) {
|
|
21008
21036
|
] },
|
21009
21037
|
React.createElement(antd.Radio.Group, { size: "middle" },
|
21010
21038
|
React.createElement("div", { className: "radio-container" },
|
21011
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("
|
21039
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("yes"))),
|
21012
21040
|
React.createElement("div", { className: "radio-container" },
|
21013
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("
|
21041
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("maybe"))),
|
21014
21042
|
React.createElement("div", { className: "radio-container" },
|
21015
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("
|
21043
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("no")))))),
|
21016
21044
|
viewOnly &&
|
21017
21045
|
safeGuardViewData.hasOwnProperty(subItem === null || subItem === void 0 ? void 0 : subItem.name) && (React.createElement("div", { className: "view-section" },
|
21018
21046
|
React.createElement(antd.Form.Item, { label: subItem === null || subItem === void 0 ? void 0 : subItem.label, className: subItem.className
|
@@ -21029,203 +21057,204 @@ var Safeguards = function (props) {
|
|
21029
21057
|
|
21030
21058
|
var Environmental = function (props) {
|
21031
21059
|
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21060
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21032
21061
|
var t = translator.t;
|
21033
21062
|
var environmentalDetailsInitial = [
|
21034
21063
|
{
|
21035
|
-
section: t("
|
21064
|
+
section: t("air"),
|
21036
21065
|
fields: [
|
21037
21066
|
{
|
21038
21067
|
name: "airQ1",
|
21039
|
-
label: t("
|
21068
|
+
label: t("airQ1"),
|
21040
21069
|
hide: false,
|
21041
21070
|
required: false,
|
21042
21071
|
},
|
21043
21072
|
{
|
21044
21073
|
name: "airQ2",
|
21045
|
-
label: t("
|
21074
|
+
label: t("airQ2"),
|
21046
21075
|
hide: true,
|
21047
21076
|
required: true,
|
21048
21077
|
},
|
21049
21078
|
{
|
21050
21079
|
name: "airQ3",
|
21051
|
-
label: t("
|
21080
|
+
label: t("airQ3"),
|
21052
21081
|
hide: true,
|
21053
21082
|
required: true,
|
21054
21083
|
},
|
21055
21084
|
{
|
21056
21085
|
name: "airQ4",
|
21057
|
-
label: t("
|
21086
|
+
label: t("airQ4"),
|
21058
21087
|
hide: true,
|
21059
21088
|
required: true,
|
21060
21089
|
},
|
21061
21090
|
{
|
21062
21091
|
name: "airQ5",
|
21063
|
-
label: t("
|
21092
|
+
label: t("airQ5"),
|
21064
21093
|
hide: true,
|
21065
21094
|
required: true,
|
21066
21095
|
},
|
21067
21096
|
{
|
21068
21097
|
name: "airQ6",
|
21069
|
-
label: t("
|
21098
|
+
label: t("airQ6"),
|
21070
21099
|
hide: true,
|
21071
21100
|
required: true,
|
21072
21101
|
},
|
21073
21102
|
{
|
21074
21103
|
name: "airQ7",
|
21075
|
-
label: t("
|
21104
|
+
label: t("airQ7"),
|
21076
21105
|
hide: true,
|
21077
21106
|
required: true,
|
21078
21107
|
},
|
21079
21108
|
{
|
21080
21109
|
name: "airQ8",
|
21081
|
-
label: t("
|
21110
|
+
label: t("airQ8"),
|
21082
21111
|
hide: true,
|
21083
21112
|
required: true,
|
21084
21113
|
},
|
21085
21114
|
{
|
21086
21115
|
name: "airQ9",
|
21087
|
-
label: t("
|
21116
|
+
label: t("airQ9"),
|
21088
21117
|
hide: true,
|
21089
21118
|
required: true,
|
21090
21119
|
},
|
21091
21120
|
],
|
21092
21121
|
},
|
21093
21122
|
{
|
21094
|
-
section: t("
|
21123
|
+
section: t("land"),
|
21095
21124
|
fields: [
|
21096
21125
|
{
|
21097
21126
|
name: "landQ1",
|
21098
|
-
label: t("
|
21127
|
+
label: t("landQ1"),
|
21099
21128
|
hide: false,
|
21100
21129
|
required: false,
|
21101
21130
|
},
|
21102
21131
|
{
|
21103
21132
|
name: "landQ2",
|
21104
|
-
label: t("
|
21133
|
+
label: t("landQ2"),
|
21105
21134
|
hide: true,
|
21106
21135
|
required: true,
|
21107
21136
|
},
|
21108
21137
|
{
|
21109
21138
|
name: "landQ3",
|
21110
|
-
label: t("
|
21139
|
+
label: t("landQ3"),
|
21111
21140
|
hide: true,
|
21112
21141
|
required: true,
|
21113
21142
|
},
|
21114
21143
|
{
|
21115
21144
|
name: "landQ4",
|
21116
|
-
label: t("
|
21145
|
+
label: t("landQ4"),
|
21117
21146
|
hide: true,
|
21118
21147
|
required: true,
|
21119
21148
|
},
|
21120
21149
|
{
|
21121
21150
|
name: "landQ5",
|
21122
|
-
label: t("
|
21151
|
+
label: t("landQ5"),
|
21123
21152
|
hide: true,
|
21124
21153
|
required: true,
|
21125
21154
|
},
|
21126
21155
|
{
|
21127
21156
|
name: "landQ6",
|
21128
|
-
label: t("
|
21157
|
+
label: t("landQ6"),
|
21129
21158
|
hide: true,
|
21130
21159
|
required: true,
|
21131
21160
|
},
|
21132
21161
|
{
|
21133
21162
|
name: "landQ7",
|
21134
|
-
label: t("
|
21163
|
+
label: t("landQ7"),
|
21135
21164
|
hide: true,
|
21136
21165
|
required: true,
|
21137
21166
|
},
|
21138
21167
|
{
|
21139
21168
|
name: "landQ8",
|
21140
|
-
label: t("
|
21169
|
+
label: t("landQ8"),
|
21141
21170
|
hide: true,
|
21142
21171
|
required: true,
|
21143
21172
|
},
|
21144
21173
|
],
|
21145
21174
|
},
|
21146
21175
|
{
|
21147
|
-
section: t("
|
21176
|
+
section: t("water"),
|
21148
21177
|
fields: [
|
21149
21178
|
{
|
21150
21179
|
name: "waterQ1",
|
21151
|
-
label: t("
|
21180
|
+
label: t("waterQ1"),
|
21152
21181
|
hide: false,
|
21153
21182
|
required: false,
|
21154
21183
|
},
|
21155
21184
|
{
|
21156
21185
|
name: "waterQ2",
|
21157
|
-
label: t("
|
21186
|
+
label: t("waterQ2"),
|
21158
21187
|
hide: true,
|
21159
21188
|
required: true,
|
21160
21189
|
},
|
21161
21190
|
{
|
21162
21191
|
name: "waterQ3",
|
21163
|
-
label: t("
|
21192
|
+
label: t("waterQ3"),
|
21164
21193
|
hide: true,
|
21165
21194
|
required: true,
|
21166
21195
|
},
|
21167
21196
|
{
|
21168
21197
|
name: "waterQ4",
|
21169
|
-
label: t("
|
21198
|
+
label: t("waterQ4"),
|
21170
21199
|
hide: true,
|
21171
21200
|
required: true,
|
21172
21201
|
},
|
21173
21202
|
{
|
21174
21203
|
name: "waterQ5",
|
21175
|
-
label: t("
|
21204
|
+
label: t("waterQ5"),
|
21176
21205
|
hide: true,
|
21177
21206
|
required: true,
|
21178
21207
|
},
|
21179
21208
|
{
|
21180
21209
|
name: "waterQ6",
|
21181
|
-
label: t("
|
21210
|
+
label: t("waterQ6"),
|
21182
21211
|
hide: true,
|
21183
21212
|
required: true,
|
21184
21213
|
},
|
21185
21214
|
{
|
21186
21215
|
name: "waterQ7",
|
21187
|
-
label: t("
|
21216
|
+
label: t("waterQ7"),
|
21188
21217
|
hide: true,
|
21189
21218
|
required: true,
|
21190
21219
|
},
|
21191
21220
|
],
|
21192
21221
|
},
|
21193
21222
|
{
|
21194
|
-
section: t("
|
21223
|
+
section: t("naturalResource"),
|
21195
21224
|
fields: [
|
21196
21225
|
{
|
21197
21226
|
name: "naturalResourceQ1",
|
21198
|
-
label: t("
|
21227
|
+
label: t("naturalResourceQ1"),
|
21199
21228
|
hide: false,
|
21200
21229
|
required: false,
|
21201
21230
|
},
|
21202
21231
|
{
|
21203
21232
|
name: "naturalResourceQ2",
|
21204
|
-
label: t("
|
21233
|
+
label: t("naturalResourceQ2"),
|
21205
21234
|
hide: true,
|
21206
21235
|
required: true,
|
21207
21236
|
},
|
21208
21237
|
{
|
21209
21238
|
name: "naturalResourceQ3",
|
21210
|
-
label: t("
|
21239
|
+
label: t("naturalResourceQ3"),
|
21211
21240
|
hide: true,
|
21212
21241
|
required: true,
|
21213
21242
|
},
|
21214
21243
|
{
|
21215
21244
|
name: "naturalResourceQ4",
|
21216
|
-
label: t("
|
21245
|
+
label: t("naturalResourceQ4"),
|
21217
21246
|
hide: true,
|
21218
21247
|
required: true,
|
21219
21248
|
},
|
21220
21249
|
{
|
21221
21250
|
name: "naturalResourceQ5",
|
21222
|
-
label: t("
|
21251
|
+
label: t("naturalResourceQ5"),
|
21223
21252
|
hide: true,
|
21224
21253
|
required: true,
|
21225
21254
|
},
|
21226
21255
|
{
|
21227
21256
|
name: "naturalResourceQ6",
|
21228
|
-
label: t("
|
21257
|
+
label: t("naturalResourceQ6"),
|
21229
21258
|
hide: true,
|
21230
21259
|
required: true,
|
21231
21260
|
},
|
@@ -21243,7 +21272,7 @@ var Environmental = function (props) {
|
|
21243
21272
|
if (changedFieldName.includes("1")) {
|
21244
21273
|
var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
|
21245
21274
|
var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
|
21246
|
-
var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(
|
21275
|
+
var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
|
21247
21276
|
updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
|
21248
21277
|
if (field.name !== changedFieldName) {
|
21249
21278
|
field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
|
@@ -21262,41 +21291,41 @@ var Environmental = function (props) {
|
|
21262
21291
|
if (environmentalViewData && viewOnly === true) {
|
21263
21292
|
var updatedEnvironmentalData = [
|
21264
21293
|
{
|
21265
|
-
section: t("
|
21294
|
+
section: t("air"),
|
21266
21295
|
fields: [],
|
21267
21296
|
},
|
21268
21297
|
{
|
21269
|
-
section: t("
|
21298
|
+
section: t("land"),
|
21270
21299
|
fields: [],
|
21271
21300
|
},
|
21272
21301
|
{
|
21273
|
-
section: t("
|
21302
|
+
section: t("water"),
|
21274
21303
|
fields: [],
|
21275
21304
|
},
|
21276
21305
|
{
|
21277
|
-
section: t("
|
21306
|
+
section: t("naturalResource"),
|
21278
21307
|
fields: [],
|
21279
21308
|
},
|
21280
21309
|
];
|
21281
21310
|
var _loop_1 = function (key) {
|
21282
21311
|
var section = "";
|
21283
21312
|
if (String(key).includes("air")) {
|
21284
|
-
section = t("
|
21313
|
+
section = t("air");
|
21285
21314
|
}
|
21286
21315
|
else if (String(key).includes("land")) {
|
21287
|
-
section = t("
|
21316
|
+
section = t("land");
|
21288
21317
|
}
|
21289
21318
|
else if (String(key).includes("water")) {
|
21290
|
-
section = t("
|
21319
|
+
section = t("water");
|
21291
21320
|
}
|
21292
21321
|
else if (String(key).includes("naturalResource")) {
|
21293
|
-
section = t("
|
21322
|
+
section = t("naturalResource");
|
21294
21323
|
}
|
21295
21324
|
var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
|
21296
21325
|
if (environmentalItem) {
|
21297
21326
|
environmentalItem.fields.push({
|
21298
21327
|
name: key,
|
21299
|
-
label: t(
|
21328
|
+
label: t(key),
|
21300
21329
|
hide: false,
|
21301
21330
|
value: environmentalViewData[key],
|
21302
21331
|
});
|
@@ -21318,11 +21347,11 @@ var Environmental = function (props) {
|
|
21318
21347
|
React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
|
21319
21348
|
React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21320
21349
|
React.createElement("span", null,
|
21321
|
-
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("
|
21350
|
+
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
|
21322
21351
|
React.createElement(antd.Col, { span: 24 },
|
21323
21352
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21324
21353
|
React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21325
|
-
React.createElement("span", null, t("
|
21354
|
+
React.createElement("span", null, t("environmental"))),
|
21326
21355
|
React.createElement(antd.Col, { span: 24 },
|
21327
21356
|
React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
|
21328
21357
|
(environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })), environmentalDetails === null || environmentalDetails === void 0 ? void 0 :
|
@@ -21335,188 +21364,189 @@ var Environmental = function (props) {
|
|
21335
21364
|
{
|
21336
21365
|
required: field === null || field === void 0 ? void 0 : field.required,
|
21337
21366
|
message: (field === null || field === void 0 ? void 0 : field.required) &&
|
21338
|
-
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("
|
21367
|
+
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
|
21339
21368
|
},
|
21340
21369
|
] },
|
21341
21370
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
|
21342
21371
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
|
21343
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("
|
21372
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
|
21344
21373
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
|
21345
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("
|
21374
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
|
21346
21375
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
|
21347
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("
|
21376
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
|
21348
21377
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21349
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("
|
21378
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
21350
21379
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21351
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("
|
21380
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
21352
21381
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21353
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("
|
21382
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
|
21354
21383
|
})));
|
21355
21384
|
})))));
|
21356
21385
|
};
|
21357
21386
|
|
21358
21387
|
var Economic = function (props) {
|
21359
21388
|
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21389
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21360
21390
|
var t = translator.t;
|
21361
21391
|
var economicDetailsInitial = [
|
21362
21392
|
{
|
21363
|
-
section: t("
|
21393
|
+
section: t("growth"),
|
21364
21394
|
fields: [
|
21365
21395
|
{
|
21366
21396
|
name: "growthQ1",
|
21367
|
-
label: t("
|
21397
|
+
label: t("growthQ1"),
|
21368
21398
|
hide: false,
|
21369
21399
|
required: false,
|
21370
21400
|
},
|
21371
21401
|
{
|
21372
21402
|
name: "growthQ2",
|
21373
|
-
label: t("
|
21403
|
+
label: t("growthQ2"),
|
21374
21404
|
hide: true,
|
21375
21405
|
required: true,
|
21376
21406
|
},
|
21377
21407
|
{
|
21378
21408
|
name: "growthQ3",
|
21379
|
-
label: t("
|
21409
|
+
label: t("growthQ3"),
|
21380
21410
|
hide: true,
|
21381
21411
|
required: true,
|
21382
21412
|
},
|
21383
21413
|
{
|
21384
21414
|
name: "growthQ4",
|
21385
|
-
label: t("
|
21415
|
+
label: t("growthQ4"),
|
21386
21416
|
hide: true,
|
21387
21417
|
required: true,
|
21388
21418
|
},
|
21389
21419
|
{
|
21390
21420
|
name: "growthQ5",
|
21391
|
-
label: t("
|
21421
|
+
label: t("growthQ5"),
|
21392
21422
|
hide: true,
|
21393
21423
|
required: true,
|
21394
21424
|
},
|
21395
21425
|
{
|
21396
21426
|
name: "growthQ6",
|
21397
|
-
label: t("
|
21427
|
+
label: t("growthQ6"),
|
21398
21428
|
hide: true,
|
21399
21429
|
required: true,
|
21400
21430
|
},
|
21401
21431
|
{
|
21402
21432
|
name: "growthQ7",
|
21403
|
-
label: t("
|
21433
|
+
label: t("growthQ7"),
|
21404
21434
|
hide: true,
|
21405
21435
|
required: true,
|
21406
21436
|
},
|
21407
21437
|
{
|
21408
21438
|
name: "growthQ8",
|
21409
|
-
label: t("
|
21439
|
+
label: t("growthQ8"),
|
21410
21440
|
hide: true,
|
21411
21441
|
required: true,
|
21412
21442
|
},
|
21413
21443
|
],
|
21414
21444
|
},
|
21415
21445
|
{
|
21416
|
-
section: t("
|
21446
|
+
section: t("energy"),
|
21417
21447
|
fields: [
|
21418
21448
|
{
|
21419
21449
|
name: "energyQ1",
|
21420
|
-
label: t("
|
21450
|
+
label: t("energyQ1"),
|
21421
21451
|
hide: false,
|
21422
21452
|
required: false,
|
21423
21453
|
},
|
21424
21454
|
{
|
21425
21455
|
name: "energyQ2",
|
21426
|
-
label: t("
|
21456
|
+
label: t("energyQ2"),
|
21427
21457
|
hide: true,
|
21428
21458
|
required: true,
|
21429
21459
|
},
|
21430
21460
|
{
|
21431
21461
|
name: "energyQ3",
|
21432
|
-
label: t("
|
21462
|
+
label: t("energyQ3"),
|
21433
21463
|
hide: true,
|
21434
21464
|
required: true,
|
21435
21465
|
},
|
21436
21466
|
{
|
21437
21467
|
name: "energyQ4",
|
21438
|
-
label: t("
|
21468
|
+
label: t("energyQ4"),
|
21439
21469
|
hide: true,
|
21440
21470
|
required: true,
|
21441
21471
|
},
|
21442
21472
|
{
|
21443
21473
|
name: "energyQ5",
|
21444
|
-
label: t("
|
21474
|
+
label: t("energyQ5"),
|
21445
21475
|
hide: true,
|
21446
21476
|
required: true,
|
21447
21477
|
},
|
21448
21478
|
],
|
21449
21479
|
},
|
21450
21480
|
{
|
21451
|
-
section: t("
|
21481
|
+
section: t("techTransfer"),
|
21452
21482
|
fields: [
|
21453
21483
|
{
|
21454
21484
|
name: "techTransferQ1",
|
21455
|
-
label: t("
|
21485
|
+
label: t("techTransferQ1"),
|
21456
21486
|
hide: false,
|
21457
21487
|
required: false,
|
21458
21488
|
},
|
21459
21489
|
{
|
21460
21490
|
name: "techTransferQ2",
|
21461
|
-
label: t("
|
21491
|
+
label: t("techTransferQ2"),
|
21462
21492
|
hide: true,
|
21463
21493
|
required: true,
|
21464
21494
|
},
|
21465
21495
|
{
|
21466
21496
|
name: "techTransferQ3",
|
21467
|
-
label: t("
|
21497
|
+
label: t("techTransferQ3"),
|
21468
21498
|
hide: true,
|
21469
21499
|
required: true,
|
21470
21500
|
},
|
21471
21501
|
{
|
21472
21502
|
name: "techTransferQ4",
|
21473
|
-
label: t("
|
21503
|
+
label: t("techTransferQ4"),
|
21474
21504
|
hide: true,
|
21475
21505
|
required: true,
|
21476
21506
|
},
|
21477
21507
|
{
|
21478
21508
|
name: "techTransferQ5",
|
21479
|
-
label: t("
|
21509
|
+
label: t("techTransferQ5"),
|
21480
21510
|
hide: true,
|
21481
21511
|
required: true,
|
21482
21512
|
},
|
21483
21513
|
{
|
21484
21514
|
name: "techTransferQ6",
|
21485
|
-
label: t("
|
21515
|
+
label: t("techTransferQ6"),
|
21486
21516
|
hide: true,
|
21487
21517
|
required: true,
|
21488
21518
|
},
|
21489
21519
|
],
|
21490
21520
|
},
|
21491
21521
|
{
|
21492
|
-
section: t("
|
21522
|
+
section: t("balanceOfPayments"),
|
21493
21523
|
fields: [
|
21494
21524
|
{
|
21495
21525
|
name: "balanceOfPaymentsQ1",
|
21496
|
-
label: t("
|
21526
|
+
label: t("balanceOfPaymentsQ1"),
|
21497
21527
|
hide: false,
|
21498
21528
|
required: false,
|
21499
21529
|
},
|
21500
21530
|
{
|
21501
21531
|
name: "balanceOfPaymentsQ2",
|
21502
|
-
label: t("
|
21532
|
+
label: t("balanceOfPaymentsQ2"),
|
21503
21533
|
hide: true,
|
21504
21534
|
required: true,
|
21505
21535
|
},
|
21506
21536
|
{
|
21507
21537
|
name: "balanceOfPaymentsQ3",
|
21508
|
-
label: t("
|
21538
|
+
label: t("balanceOfPaymentsQ3"),
|
21509
21539
|
hide: true,
|
21510
21540
|
required: true,
|
21511
21541
|
},
|
21512
21542
|
],
|
21513
21543
|
},
|
21514
21544
|
{
|
21515
|
-
section: t("
|
21545
|
+
section: t("furtherInfo"),
|
21516
21546
|
fields: [
|
21517
21547
|
{
|
21518
21548
|
name: "furtherInfoQ1",
|
21519
|
-
label: t("
|
21549
|
+
label: t("furtherInfoQ1"),
|
21520
21550
|
hide: false,
|
21521
21551
|
required: false,
|
21522
21552
|
},
|
@@ -21533,7 +21563,7 @@ var Economic = function (props) {
|
|
21533
21563
|
if (changedFieldName.includes("1")) {
|
21534
21564
|
var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
|
21535
21565
|
var updatedEconomicDetails = __spreadArray([], economicDetails, true);
|
21536
|
-
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(
|
21566
|
+
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
|
21537
21567
|
updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
|
21538
21568
|
if (field.name !== changedFieldName) {
|
21539
21569
|
field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
|
@@ -21552,48 +21582,48 @@ var Economic = function (props) {
|
|
21552
21582
|
if (economicViewData && viewOnly === true) {
|
21553
21583
|
var updatedEconomicData = [
|
21554
21584
|
{
|
21555
|
-
section: t("
|
21585
|
+
section: t("growth"),
|
21556
21586
|
fields: [],
|
21557
21587
|
},
|
21558
21588
|
{
|
21559
|
-
section: t("
|
21589
|
+
section: t("energy"),
|
21560
21590
|
fields: [],
|
21561
21591
|
},
|
21562
21592
|
{
|
21563
|
-
section: t("
|
21593
|
+
section: t("techTransfer"),
|
21564
21594
|
fields: [],
|
21565
21595
|
},
|
21566
21596
|
{
|
21567
|
-
section: t("
|
21597
|
+
section: t("balanceOfPayments"),
|
21568
21598
|
fields: [],
|
21569
21599
|
},
|
21570
21600
|
{
|
21571
|
-
section: t("
|
21601
|
+
section: t("furtherInfo"),
|
21572
21602
|
fields: [],
|
21573
21603
|
},
|
21574
21604
|
];
|
21575
21605
|
var _loop_1 = function (key) {
|
21576
21606
|
var section = "";
|
21577
21607
|
if (String(key).includes("growth")) {
|
21578
|
-
section = t("
|
21608
|
+
section = t("growth");
|
21579
21609
|
}
|
21580
21610
|
else if (String(key).includes("energy")) {
|
21581
|
-
section = t("
|
21611
|
+
section = t("energy");
|
21582
21612
|
}
|
21583
21613
|
else if (String(key).includes("techTransfer")) {
|
21584
|
-
section = t("
|
21614
|
+
section = t("techTransfer");
|
21585
21615
|
}
|
21586
21616
|
else if (String(key).includes("balanceOfPayments")) {
|
21587
|
-
section = t("
|
21617
|
+
section = t("balanceOfPayments");
|
21588
21618
|
}
|
21589
21619
|
else if (String(key).includes("furtherInfo")) {
|
21590
|
-
section = t("
|
21620
|
+
section = t("furtherInfo");
|
21591
21621
|
}
|
21592
21622
|
var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
|
21593
21623
|
if (economicItem) {
|
21594
21624
|
economicItem.fields.push({
|
21595
21625
|
name: key,
|
21596
|
-
label: t(
|
21626
|
+
label: t(key),
|
21597
21627
|
hide: false,
|
21598
21628
|
value: economicViewData[key],
|
21599
21629
|
});
|
@@ -21615,7 +21645,7 @@ var Economic = function (props) {
|
|
21615
21645
|
React.createElement(antd.Col, { span: 24 },
|
21616
21646
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21617
21647
|
React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21618
|
-
React.createElement("span", null, t("
|
21648
|
+
React.createElement("span", null, t("economic"))))),
|
21619
21649
|
(economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })), economicDetails === null || economicDetails === void 0 ? void 0 :
|
21620
21650
|
economicDetails.map(function (environmentalDetail) {
|
21621
21651
|
var _a;
|
@@ -21631,23 +21661,24 @@ var Economic = function (props) {
|
|
21631
21661
|
] },
|
21632
21662
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
|
21633
21663
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
|
21634
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("
|
21664
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
|
21635
21665
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
|
21636
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("
|
21666
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
|
21637
21667
|
(field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
|
21638
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("
|
21668
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
|
21639
21669
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21640
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("
|
21670
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
21641
21671
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21642
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("
|
21672
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
21643
21673
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21644
|
-
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("
|
21674
|
+
React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
|
21645
21675
|
})));
|
21646
21676
|
})))));
|
21647
21677
|
};
|
21648
21678
|
|
21649
21679
|
var Social = function (props) {
|
21650
21680
|
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21681
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21651
21682
|
var t = translator.t;
|
21652
21683
|
var form = antd.Form.useForm()[0];
|
21653
21684
|
var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
|
@@ -21655,164 +21686,164 @@ var Social = function (props) {
|
|
21655
21686
|
var _c = React.useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
|
21656
21687
|
var SocialElementDetails = [
|
21657
21688
|
{
|
21658
|
-
title: t("
|
21659
|
-
label: t("
|
21689
|
+
title: t("jobs"),
|
21690
|
+
label: t("jobRelatedMainQ"),
|
21660
21691
|
name: "jobRelatedMainQ",
|
21661
21692
|
subItems: [
|
21662
21693
|
{
|
21663
21694
|
type: exports.FormElementType.Radio,
|
21664
|
-
label: t("
|
21695
|
+
label: t("jobRelatedSubQ1"),
|
21665
21696
|
name: "jobRelatedSubQ1",
|
21666
21697
|
},
|
21667
21698
|
{
|
21668
21699
|
type: exports.FormElementType.Radio,
|
21669
|
-
label: t("
|
21700
|
+
label: t("jobRelatedSubQ2"),
|
21670
21701
|
name: "jobRelatedSubQ2",
|
21671
21702
|
},
|
21672
21703
|
{
|
21673
21704
|
type: exports.FormElementType.Radio,
|
21674
|
-
label: t("
|
21705
|
+
label: t("jobRelatedSubQ3"),
|
21675
21706
|
name: "jobRelatedSubQ3",
|
21676
21707
|
},
|
21677
21708
|
{
|
21678
21709
|
type: exports.FormElementType.Radio,
|
21679
|
-
label: t("
|
21710
|
+
label: t("jobRelatedSubQ4"),
|
21680
21711
|
name: "jobRelatedSubQ4",
|
21681
21712
|
},
|
21682
21713
|
{
|
21683
21714
|
type: exports.FormElementType.Input,
|
21684
|
-
label: t("
|
21715
|
+
label: t("jobRelatedSubQ5"),
|
21685
21716
|
name: "jobRelatedSubQ5",
|
21686
21717
|
},
|
21687
21718
|
{
|
21688
21719
|
type: exports.FormElementType.Input,
|
21689
|
-
label: t("
|
21720
|
+
label: t("jobRelatedSubQ6"),
|
21690
21721
|
name: "jobRelatedSubQ6",
|
21691
21722
|
},
|
21692
21723
|
{
|
21693
21724
|
type: exports.FormElementType.Input,
|
21694
|
-
label: t("
|
21725
|
+
label: t("jobRelatedSubQ7"),
|
21695
21726
|
name: "jobRelatedSubQ7",
|
21696
21727
|
},
|
21697
21728
|
],
|
21698
21729
|
},
|
21699
21730
|
{
|
21700
|
-
title: t("
|
21701
|
-
label: t("
|
21731
|
+
title: t("health"),
|
21732
|
+
label: t("healthRelatedMainQ"),
|
21702
21733
|
name: "healthRelatedMainQ",
|
21703
21734
|
subItems: [
|
21704
21735
|
{
|
21705
21736
|
type: exports.FormElementType.Radio,
|
21706
|
-
label: t("
|
21737
|
+
label: t("healthRelatedSubQ1"),
|
21707
21738
|
name: "healthRelatedSubQ1",
|
21708
21739
|
},
|
21709
21740
|
{
|
21710
21741
|
type: exports.FormElementType.Radio,
|
21711
|
-
label: t("
|
21742
|
+
label: t("healthRelatedSubQ2"),
|
21712
21743
|
name: "healthRelatedSubQ2",
|
21713
21744
|
},
|
21714
21745
|
{
|
21715
21746
|
type: exports.FormElementType.Radio,
|
21716
|
-
label: t("
|
21747
|
+
label: t("healthRelatedSubQ3"),
|
21717
21748
|
name: "healthRelatedSubQ3",
|
21718
21749
|
},
|
21719
21750
|
{
|
21720
21751
|
type: exports.FormElementType.Radio,
|
21721
|
-
label: t("
|
21752
|
+
label: t("healthRelatedSubQ4"),
|
21722
21753
|
name: "healthRelatedSubQ4",
|
21723
21754
|
},
|
21724
21755
|
{
|
21725
21756
|
type: exports.FormElementType.Radio,
|
21726
|
-
label: t("
|
21757
|
+
label: t("healthRelatedSubQ5"),
|
21727
21758
|
name: "healthRelatedSubQ5",
|
21728
21759
|
},
|
21729
21760
|
{
|
21730
21761
|
type: exports.FormElementType.Radio,
|
21731
|
-
label: t("
|
21762
|
+
label: t("healthRelatedSubQ6"),
|
21732
21763
|
name: "healthRelatedSubQ6",
|
21733
21764
|
},
|
21734
21765
|
{
|
21735
21766
|
type: exports.FormElementType.Radio,
|
21736
|
-
label: t("
|
21767
|
+
label: t("healthRelatedSubQ7"),
|
21737
21768
|
name: "healthRelatedSubQ7",
|
21738
21769
|
},
|
21739
21770
|
{
|
21740
21771
|
type: exports.FormElementType.Radio,
|
21741
|
-
label: t("
|
21772
|
+
label: t("healthRelatedSubQ8"),
|
21742
21773
|
name: "healthRelatedSubQ8",
|
21743
21774
|
},
|
21744
21775
|
],
|
21745
21776
|
},
|
21746
21777
|
{
|
21747
|
-
title: t("
|
21748
|
-
label: t("
|
21778
|
+
title: t("educational"),
|
21779
|
+
label: t("educationRelatedMainQ"),
|
21749
21780
|
name: "educationRelatedMainQ",
|
21750
21781
|
subItems: [
|
21751
21782
|
{
|
21752
21783
|
type: exports.FormElementType.Radio,
|
21753
|
-
label: t("
|
21784
|
+
label: t("educationRelatedSubQ1"),
|
21754
21785
|
name: "educationRelatedSubQ1",
|
21755
21786
|
},
|
21756
21787
|
{
|
21757
21788
|
type: exports.FormElementType.Radio,
|
21758
|
-
label: t("
|
21789
|
+
label: t("educationRelatedSubQ2"),
|
21759
21790
|
name: "educationRelatedSubQ2",
|
21760
21791
|
},
|
21761
21792
|
{
|
21762
21793
|
type: exports.FormElementType.Radio,
|
21763
|
-
label: t("
|
21794
|
+
label: t("educationRelatedSubQ3"),
|
21764
21795
|
name: "educationRelatedSubQ3",
|
21765
21796
|
},
|
21766
21797
|
{
|
21767
21798
|
type: exports.FormElementType.Radio,
|
21768
|
-
label: t("
|
21799
|
+
label: t("educationRelatedSubQ4"),
|
21769
21800
|
name: "educationRelatedSubQ4",
|
21770
21801
|
},
|
21771
21802
|
],
|
21772
21803
|
},
|
21773
21804
|
{
|
21774
|
-
title: t("
|
21775
|
-
label: t("
|
21805
|
+
title: t("welfare"),
|
21806
|
+
label: t("welfareRelatedMainQ"),
|
21776
21807
|
name: "welfareRelatedMainQ",
|
21777
21808
|
subItems: [
|
21778
21809
|
{
|
21779
21810
|
type: exports.FormElementType.Radio,
|
21780
|
-
label: t("
|
21811
|
+
label: t("welfareRelatedSubQ1"),
|
21781
21812
|
name: "welfareRelatedSubQ1",
|
21782
21813
|
},
|
21783
21814
|
{
|
21784
21815
|
type: exports.FormElementType.Radio,
|
21785
|
-
label: t("
|
21816
|
+
label: t("welfareRelatedSubQ2"),
|
21786
21817
|
name: "welfareRelatedSubQ2",
|
21787
21818
|
},
|
21788
21819
|
{
|
21789
21820
|
type: exports.FormElementType.Radio,
|
21790
|
-
label: t("
|
21821
|
+
label: t("welfareRelatedSubQ3"),
|
21791
21822
|
name: "welfareRelatedSubQ3",
|
21792
21823
|
},
|
21793
21824
|
{
|
21794
21825
|
type: exports.FormElementType.Radio,
|
21795
|
-
label: t("
|
21826
|
+
label: t("welfareRelatedSubQ4"),
|
21796
21827
|
name: "welfareRelatedSubQ4",
|
21797
21828
|
},
|
21798
21829
|
{
|
21799
21830
|
type: exports.FormElementType.Radio,
|
21800
|
-
label: t("
|
21831
|
+
label: t("welfareRelatedSubQ5"),
|
21801
21832
|
name: "welfareRelatedSubQ5",
|
21802
21833
|
},
|
21803
21834
|
{
|
21804
21835
|
type: exports.FormElementType.Radio,
|
21805
|
-
label: t("
|
21836
|
+
label: t("welfareRelatedSubQ6"),
|
21806
21837
|
name: "welfareRelatedSubQ6",
|
21807
21838
|
},
|
21808
21839
|
{
|
21809
21840
|
type: exports.FormElementType.Radio,
|
21810
|
-
label: t("
|
21841
|
+
label: t("welfareRelatedSubQ7"),
|
21811
21842
|
name: "welfareRelatedSubQ7",
|
21812
21843
|
},
|
21813
21844
|
{
|
21814
21845
|
type: exports.FormElementType.Radio,
|
21815
|
-
label: t("
|
21846
|
+
label: t("welfareRelatedSubQ8"),
|
21816
21847
|
name: "welfareRelatedSubQ8",
|
21817
21848
|
},
|
21818
21849
|
],
|
@@ -21871,7 +21902,7 @@ var Social = function (props) {
|
|
21871
21902
|
React.createElement(antd.Col, { span: 24 },
|
21872
21903
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21873
21904
|
React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21874
|
-
React.createElement("span", null, t("
|
21905
|
+
React.createElement("span", null, t("social"))))),
|
21875
21906
|
viewOnly && !socialViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
|
21876
21907
|
((viewOnly && socialViewData) || !viewOnly) && (React.createElement(antd.Form, { name: "socialDetails", labelWrap: true, form: form, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", onValuesChange: onSocialValuesChanged }, SocialElementDetails.map(function (element) {
|
21877
21908
|
return (React.createElement(React.Fragment, null,
|
@@ -21882,11 +21913,11 @@ var Social = function (props) {
|
|
21882
21913
|
React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
|
21883
21914
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
|
21884
21915
|
React.createElement("div", { className: "radio-container" },
|
21885
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
21916
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
21886
21917
|
React.createElement("div", { className: "radio-container" },
|
21887
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
21918
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
21888
21919
|
React.createElement("div", { className: "radio-container" },
|
21889
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("
|
21920
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))),
|
21890
21921
|
form.getFieldValue(element.name) ===
|
21891
21922
|
exports.RadioButtonStatus.YES &&
|
21892
21923
|
element.subItems.map(function (elementItem) {
|
@@ -21899,11 +21930,11 @@ var Social = function (props) {
|
|
21899
21930
|
] },
|
21900
21931
|
React.createElement(antd.Radio.Group, { size: "middle" },
|
21901
21932
|
React.createElement("div", { className: "radio-container" },
|
21902
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
21933
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
21903
21934
|
React.createElement("div", { className: "radio-container" },
|
21904
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
21935
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
|
21905
21936
|
React.createElement("div", { className: "radio-container" },
|
21906
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("
|
21937
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))));
|
21907
21938
|
}
|
21908
21939
|
else if (elementItem.type === exports.FormElementType.Input) {
|
21909
21940
|
return (React.createElement(antd.Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
|
@@ -21939,88 +21970,89 @@ var Social = function (props) {
|
|
21939
21970
|
|
21940
21971
|
var SocialEnvironmentalRisk = function (props) {
|
21941
21972
|
var onFormSubmit = props.onFormSubmit, SocialEnvironmentalRiskData = props.SocialEnvironmentalRiskData, viewOnly = props.viewOnly, translator = props.translator;
|
21973
|
+
translator.setDefaultNamespace("socialEnvironmentalRisk");
|
21942
21974
|
var t = translator.t;
|
21943
21975
|
var form = antd.Form.useForm()[0];
|
21944
21976
|
var _a = React.useState(), socialEnvironmentalFormDetails = _a[0], setSocialEnvironmentalFormDetails = _a[1];
|
21945
21977
|
var _b = React.useState([
|
21946
21978
|
{
|
21947
|
-
title: t("
|
21979
|
+
title: t("humanRightsSubHeader"),
|
21948
21980
|
isTitleVisible: true,
|
21949
21981
|
subItems: [
|
21950
21982
|
{
|
21951
|
-
title: t("
|
21983
|
+
title: t("humanRights"),
|
21952
21984
|
isTitleVisible: true,
|
21953
21985
|
subItems: [
|
21954
21986
|
{
|
21955
|
-
label: t("
|
21987
|
+
label: t("humanRightsQ1"),
|
21956
21988
|
name: "humanRightsQ1",
|
21957
21989
|
},
|
21958
21990
|
{
|
21959
|
-
label: t("
|
21991
|
+
label: t("humanRightsQ2"),
|
21960
21992
|
name: "humanRightsQ2",
|
21961
21993
|
},
|
21962
21994
|
{
|
21963
|
-
label: t("
|
21995
|
+
label: t("humanRightsQ3"),
|
21964
21996
|
name: "humanRightsQ3",
|
21965
21997
|
},
|
21966
21998
|
{
|
21967
|
-
label: t("
|
21999
|
+
label: t("humanRightsQ4"),
|
21968
22000
|
name: "humanRightsQ4",
|
21969
22001
|
},
|
21970
22002
|
{
|
21971
|
-
label: t("
|
22003
|
+
label: t("humanRightsQ5"),
|
21972
22004
|
name: "humanRightsQ5",
|
21973
22005
|
},
|
21974
22006
|
{
|
21975
|
-
label: t("
|
22007
|
+
label: t("humanRightsQ6"),
|
21976
22008
|
name: "humanRightsQ6",
|
21977
22009
|
},
|
21978
22010
|
{
|
21979
|
-
label: t("
|
22011
|
+
label: t("humanRightsQ7"),
|
21980
22012
|
name: "humanRightsQ7",
|
21981
22013
|
},
|
21982
22014
|
],
|
21983
22015
|
},
|
21984
22016
|
{
|
21985
|
-
title: t("
|
22017
|
+
title: t("genderEqalityWomenEmpower"),
|
21986
22018
|
isTitleVisible: true,
|
21987
22019
|
subItems: [
|
21988
22020
|
{
|
21989
|
-
label: t("
|
22021
|
+
label: t("genderEqalityWomenEmpowerQ1"),
|
21990
22022
|
name: "genderEqalityWomenEmpowerQ1",
|
21991
22023
|
},
|
21992
22024
|
{
|
21993
|
-
label: t("
|
22025
|
+
label: t("genderEqalityWomenEmpowerQ2"),
|
21994
22026
|
name: "genderEqalityWomenEmpowerQ2",
|
21995
22027
|
},
|
21996
22028
|
{
|
21997
|
-
label: t("
|
22029
|
+
label: t("genderEqalityWomenEmpowerQ3"),
|
21998
22030
|
name: "genderEqalityWomenEmpowerQ3",
|
21999
22031
|
},
|
22000
22032
|
{
|
22001
|
-
label: t("
|
22033
|
+
label: t("genderEqalityWomenEmpowerQ4"),
|
22002
22034
|
name: "genderEqalityWomenEmpowerQ4",
|
22003
22035
|
},
|
22004
22036
|
{
|
22005
|
-
label: t("
|
22037
|
+
label: t("genderEqalityWomenEmpowerQ5"),
|
22006
22038
|
name: "genderEqalityWomenEmpowerQ5",
|
22007
22039
|
},
|
22008
22040
|
],
|
22009
22041
|
},
|
22010
22042
|
{
|
22011
|
-
title: t("
|
22043
|
+
title: t("accountability"),
|
22012
22044
|
isTitleVisible: true,
|
22013
22045
|
subItems: [
|
22014
22046
|
{
|
22015
|
-
label: t("
|
22047
|
+
label: t("accountabilityQ1"),
|
22016
22048
|
name: "accountabilityQ1",
|
22017
22049
|
},
|
22018
22050
|
{
|
22019
|
-
label: t("
|
22051
|
+
label: t("accountabilityQ2"),
|
22020
22052
|
name: "AccountabilityQ2",
|
22021
22053
|
},
|
22022
22054
|
{
|
22023
|
-
label: t("
|
22055
|
+
label: t("accountabilityQ3"),
|
22024
22056
|
name: "accountabilityQ3",
|
22025
22057
|
},
|
22026
22058
|
],
|
@@ -22028,277 +22060,277 @@ var SocialEnvironmentalRisk = function (props) {
|
|
22028
22060
|
],
|
22029
22061
|
},
|
22030
22062
|
{
|
22031
|
-
title: t("
|
22063
|
+
title: t("standardSubHeader"),
|
22032
22064
|
isTitleVisible: true,
|
22033
22065
|
subItems: [
|
22034
22066
|
{
|
22035
|
-
title: t("
|
22067
|
+
title: t("standard1"),
|
22036
22068
|
isTitleVisible: true,
|
22037
22069
|
subItems: [
|
22038
22070
|
{
|
22039
|
-
label: t("
|
22071
|
+
label: t("standard1Q1"),
|
22040
22072
|
name: "standard1Q1",
|
22041
22073
|
},
|
22042
22074
|
{
|
22043
|
-
label: t("
|
22075
|
+
label: t("standard1Q2"),
|
22044
22076
|
name: "standard1Q2",
|
22045
22077
|
},
|
22046
22078
|
{
|
22047
|
-
label: t("
|
22079
|
+
label: t("standard1Q3"),
|
22048
22080
|
name: "standard1Q3",
|
22049
22081
|
},
|
22050
22082
|
{
|
22051
|
-
label: t("
|
22083
|
+
label: t("standard1Q4"),
|
22052
22084
|
name: "standard1Q4",
|
22053
22085
|
},
|
22054
22086
|
{
|
22055
|
-
label: t("
|
22087
|
+
label: t("standard1Q5"),
|
22056
22088
|
name: "standard1Q5",
|
22057
22089
|
},
|
22058
22090
|
{
|
22059
|
-
label: t("
|
22091
|
+
label: t("standard1Q6"),
|
22060
22092
|
name: "standard1Q6",
|
22061
22093
|
},
|
22062
22094
|
{
|
22063
|
-
label: t("
|
22095
|
+
label: t("standard1Q7"),
|
22064
22096
|
name: "standard1Q7",
|
22065
22097
|
},
|
22066
22098
|
{
|
22067
|
-
label: t("
|
22099
|
+
label: t("standard1Q8"),
|
22068
22100
|
name: "standard1Q8",
|
22069
22101
|
},
|
22070
22102
|
{
|
22071
|
-
label: t("
|
22103
|
+
label: t("standard1Q9"),
|
22072
22104
|
name: "standard1Q9",
|
22073
22105
|
},
|
22074
22106
|
{
|
22075
|
-
label: t("
|
22107
|
+
label: t("standard1Q10"),
|
22076
22108
|
name: "standard1Q10",
|
22077
22109
|
},
|
22078
22110
|
{
|
22079
|
-
label: t("
|
22111
|
+
label: t("standard1Q11"),
|
22080
22112
|
name: "standard1Q11",
|
22081
22113
|
},
|
22082
22114
|
{
|
22083
|
-
label: t("
|
22115
|
+
label: t("standard1Q12"),
|
22084
22116
|
name: "standard1Q12",
|
22085
22117
|
},
|
22086
22118
|
{
|
22087
|
-
label: t("
|
22119
|
+
label: t("standard1Q13"),
|
22088
22120
|
name: "standard1Q13",
|
22089
22121
|
},
|
22090
22122
|
{
|
22091
|
-
label: t("
|
22123
|
+
label: t("standard1Q14"),
|
22092
22124
|
name: "standard1Q14",
|
22093
22125
|
},
|
22094
22126
|
],
|
22095
22127
|
},
|
22096
22128
|
{
|
22097
|
-
title: t("
|
22129
|
+
title: t("standard2"),
|
22098
22130
|
isTitleVisible: true,
|
22099
22131
|
subItems: [
|
22100
22132
|
{
|
22101
|
-
label: t("
|
22133
|
+
label: t("standard2Q1"),
|
22102
22134
|
name: "standard2Q1",
|
22103
22135
|
},
|
22104
22136
|
{
|
22105
|
-
label: t("
|
22137
|
+
label: t("standard2Q2"),
|
22106
22138
|
name: "standard2Q2",
|
22107
22139
|
},
|
22108
22140
|
{
|
22109
|
-
label: t("
|
22141
|
+
label: t("standard2Q3"),
|
22110
22142
|
name: "standard2Q3",
|
22111
22143
|
},
|
22112
22144
|
{
|
22113
|
-
label: t("
|
22145
|
+
label: t("standard2Q4"),
|
22114
22146
|
name: "standard2Q4",
|
22115
22147
|
},
|
22116
22148
|
],
|
22117
22149
|
},
|
22118
22150
|
{
|
22119
|
-
title: t("
|
22151
|
+
title: t("standard3"),
|
22120
22152
|
isTitleVisible: true,
|
22121
22153
|
subItems: [
|
22122
22154
|
{
|
22123
|
-
label: t("
|
22155
|
+
label: t("standard3Q1"),
|
22124
22156
|
name: "standard3Q1",
|
22125
22157
|
},
|
22126
22158
|
{
|
22127
|
-
label: t("
|
22159
|
+
label: t("standard3Q2"),
|
22128
22160
|
name: "standard3Q2",
|
22129
22161
|
},
|
22130
22162
|
{
|
22131
|
-
label: t("
|
22163
|
+
label: t("standard3Q3"),
|
22132
22164
|
name: "standard3Q3",
|
22133
22165
|
},
|
22134
22166
|
{
|
22135
|
-
label: t("
|
22167
|
+
label: t("standard3Q4"),
|
22136
22168
|
name: "standard3Q4",
|
22137
22169
|
},
|
22138
22170
|
{
|
22139
|
-
label: t("
|
22171
|
+
label: t("standard3Q5"),
|
22140
22172
|
name: "standard3Q5",
|
22141
22173
|
},
|
22142
22174
|
{
|
22143
|
-
label: t("
|
22175
|
+
label: t("standard3Q6"),
|
22144
22176
|
name: "standard3Q6",
|
22145
22177
|
},
|
22146
22178
|
{
|
22147
|
-
label: t("
|
22179
|
+
label: t("standard3Q7"),
|
22148
22180
|
name: "standard3Q7",
|
22149
22181
|
},
|
22150
22182
|
{
|
22151
|
-
label: t("
|
22183
|
+
label: t("standard3Q8"),
|
22152
22184
|
name: "standard3Q8",
|
22153
22185
|
},
|
22154
22186
|
],
|
22155
22187
|
},
|
22156
22188
|
{
|
22157
|
-
title: t("
|
22189
|
+
title: t("standard4"),
|
22158
22190
|
isTitleVisible: true,
|
22159
22191
|
subItems: [
|
22160
22192
|
{
|
22161
|
-
label: t("
|
22193
|
+
label: t("standard4Q1"),
|
22162
22194
|
name: "standard4Q1",
|
22163
22195
|
},
|
22164
22196
|
{
|
22165
|
-
label: t("
|
22197
|
+
label: t("standard4Q2"),
|
22166
22198
|
name: "standard4Q2",
|
22167
22199
|
},
|
22168
22200
|
{
|
22169
|
-
label: t("
|
22201
|
+
label: t("standard4Q3"),
|
22170
22202
|
name: "standard4Q3",
|
22171
22203
|
},
|
22172
22204
|
{
|
22173
|
-
label: t("
|
22205
|
+
label: t("standard4Q4"),
|
22174
22206
|
name: "standard4Q4",
|
22175
22207
|
},
|
22176
22208
|
{
|
22177
|
-
label: t("
|
22209
|
+
label: t("standard4Q5"),
|
22178
22210
|
name: "standard4Q5",
|
22179
22211
|
},
|
22180
22212
|
],
|
22181
22213
|
},
|
22182
22214
|
{
|
22183
|
-
title: t("
|
22215
|
+
title: t("standard5"),
|
22184
22216
|
isTitleVisible: true,
|
22185
22217
|
subItems: [
|
22186
22218
|
{
|
22187
|
-
label: t("
|
22219
|
+
label: t("standard5Q1"),
|
22188
22220
|
name: "standard5Q1",
|
22189
22221
|
},
|
22190
22222
|
{
|
22191
|
-
label: t("
|
22223
|
+
label: t("standard5Q2"),
|
22192
22224
|
name: "standard5Q2",
|
22193
22225
|
},
|
22194
22226
|
{
|
22195
|
-
label: t("
|
22227
|
+
label: t("standard5Q3"),
|
22196
22228
|
name: "standard5Q3",
|
22197
22229
|
},
|
22198
22230
|
{
|
22199
|
-
label: t("
|
22231
|
+
label: t("standard5Q4"),
|
22200
22232
|
name: "standard5Q4",
|
22201
22233
|
},
|
22202
22234
|
],
|
22203
22235
|
},
|
22204
22236
|
{
|
22205
|
-
title: t("
|
22237
|
+
title: t("standard6"),
|
22206
22238
|
isTitleVisible: true,
|
22207
22239
|
subItems: [
|
22208
22240
|
{
|
22209
|
-
label: t("
|
22241
|
+
label: t("standard6Q1"),
|
22210
22242
|
name: "standard6Q1",
|
22211
22243
|
},
|
22212
22244
|
{
|
22213
|
-
label: t("
|
22245
|
+
label: t("standard6Q2"),
|
22214
22246
|
name: "standard6Q2",
|
22215
22247
|
},
|
22216
22248
|
{
|
22217
|
-
label: t("
|
22249
|
+
label: t("standard6Q3"),
|
22218
22250
|
name: "standard6Q3",
|
22219
22251
|
},
|
22220
22252
|
{
|
22221
|
-
label: t("
|
22253
|
+
label: t("standard6Q4"),
|
22222
22254
|
name: "standard6Q4",
|
22223
22255
|
},
|
22224
22256
|
{
|
22225
|
-
label: t("
|
22257
|
+
label: t("standard6Q5"),
|
22226
22258
|
name: "standard6Q5",
|
22227
22259
|
},
|
22228
22260
|
{
|
22229
|
-
label: t("
|
22261
|
+
label: t("standard6Q6"),
|
22230
22262
|
name: "standard6Q6",
|
22231
22263
|
},
|
22232
22264
|
{
|
22233
|
-
label: t("
|
22265
|
+
label: t("standard6Q7"),
|
22234
22266
|
name: "standard6Q7",
|
22235
22267
|
},
|
22236
22268
|
{
|
22237
|
-
label: t("
|
22269
|
+
label: t("standard6Q8"),
|
22238
22270
|
name: "standard6Q8",
|
22239
22271
|
},
|
22240
22272
|
{
|
22241
|
-
label: t("
|
22273
|
+
label: t("standard6Q9"),
|
22242
22274
|
name: "standard6Q9",
|
22243
22275
|
},
|
22244
22276
|
],
|
22245
22277
|
},
|
22246
22278
|
{
|
22247
|
-
title: t("
|
22279
|
+
title: t("standard7"),
|
22248
22280
|
isTitleVisible: true,
|
22249
22281
|
subItems: [
|
22250
22282
|
{
|
22251
|
-
label: t("
|
22283
|
+
label: t("standard7Q1"),
|
22252
22284
|
name: "standard7Q1",
|
22253
22285
|
},
|
22254
22286
|
{
|
22255
|
-
label: t("
|
22287
|
+
label: t("standard7Q2"),
|
22256
22288
|
name: "standard7Q2",
|
22257
22289
|
},
|
22258
22290
|
{
|
22259
|
-
label: t("
|
22291
|
+
label: t("standard7Q3"),
|
22260
22292
|
name: "standard7Q3",
|
22261
22293
|
},
|
22262
22294
|
{
|
22263
|
-
label: t("
|
22295
|
+
label: t("standard7Q4"),
|
22264
22296
|
name: "standard7Q4",
|
22265
22297
|
},
|
22266
22298
|
{
|
22267
|
-
label: t("
|
22299
|
+
label: t("standard7Q5"),
|
22268
22300
|
name: "standard7Q5",
|
22269
22301
|
},
|
22270
22302
|
{
|
22271
|
-
label: t("
|
22303
|
+
label: t("standard7Q6"),
|
22272
22304
|
name: "standard7Q6",
|
22273
22305
|
},
|
22274
22306
|
],
|
22275
22307
|
},
|
22276
22308
|
{
|
22277
|
-
title: t("
|
22309
|
+
title: t("standard8"),
|
22278
22310
|
isTitleVisible: true,
|
22279
22311
|
subItems: [
|
22280
22312
|
{
|
22281
|
-
label: t("
|
22313
|
+
label: t("standard8Q1"),
|
22282
22314
|
name: "standard8Q1",
|
22283
22315
|
},
|
22284
22316
|
{
|
22285
|
-
label: t("
|
22317
|
+
label: t("standard8Q2"),
|
22286
22318
|
name: "standard8Q2",
|
22287
22319
|
},
|
22288
22320
|
{
|
22289
|
-
label: t("
|
22321
|
+
label: t("standard8Q3"),
|
22290
22322
|
name: "standard8Q3",
|
22291
22323
|
},
|
22292
22324
|
{
|
22293
|
-
label: t("
|
22325
|
+
label: t("standard8Q4"),
|
22294
22326
|
name: "standard8Q4",
|
22295
22327
|
},
|
22296
22328
|
{
|
22297
|
-
label: t("
|
22329
|
+
label: t("standard8Q5"),
|
22298
22330
|
name: "standard8Q5",
|
22299
22331
|
},
|
22300
22332
|
{
|
22301
|
-
label: t("
|
22333
|
+
label: t("standard8Q6"),
|
22302
22334
|
name: "standard8Q6",
|
22303
22335
|
},
|
22304
22336
|
],
|
@@ -22359,9 +22391,9 @@ var SocialEnvironmentalRisk = function (props) {
|
|
22359
22391
|
return (React.createElement(antd.Form.Item, { className: "mg-left-2 form-item", label: element.label, name: element.name },
|
22360
22392
|
React.createElement(antd.Radio.Group, { size: "middle" },
|
22361
22393
|
React.createElement("div", { className: "radio-container" },
|
22362
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("
|
22394
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
22363
22395
|
React.createElement("div", { className: "radio-container" },
|
22364
|
-
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("
|
22396
|
+
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))))));
|
22365
22397
|
})));
|
22366
22398
|
})));
|
22367
22399
|
}),
|
@@ -22393,6 +22425,7 @@ var CoBenifitsComponent = function (props) {
|
|
22393
22425
|
var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
22394
22426
|
var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
22395
22427
|
var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
22428
|
+
translator.setDefaultNamespace("coBenifits");
|
22396
22429
|
var t = translator.t;
|
22397
22430
|
var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
|
22398
22431
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
@@ -24213,7 +24246,7 @@ var CreditTransferComponent = function (props) {
|
|
24213
24246
|
else {
|
24214
24247
|
setMinistryLevelFilter(false);
|
24215
24248
|
}
|
24216
|
-
} }, t("
|
24249
|
+
} }, t("view:ministryLevel")))),
|
24217
24250
|
React.createElement("div", { className: "search-bar" },
|
24218
24251
|
React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
|
24219
24252
|
return e.target.value === ""
|
@@ -28758,7 +28791,9 @@ var InvestmentBody = function (props) {
|
|
28758
28791
|
React.createElement("div", { className: "invester" },
|
28759
28792
|
React.createElement("div", { className: "name-and-progress" },
|
28760
28793
|
React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
|
28761
|
-
React.createElement("div", { className: "progress" },
|
28794
|
+
React.createElement("div", { className: "progress" },
|
28795
|
+
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28796
|
+
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28762
28797
|
React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
|
28763
28798
|
React.createElement("div", { className: "amount" },
|
28764
28799
|
"$",
|
@@ -29228,8 +29263,26 @@ var ProgrammeRetireForm = function (props) {
|
|
29228
29263
|
var ProgrammeRevokeForm = function (props) {
|
29229
29264
|
var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
|
29230
29265
|
var t = translator.t;
|
29266
|
+
var form = antd.Form.useForm()[0];
|
29231
29267
|
var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
29232
29268
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
29269
|
+
var _c = React.useState(false), remarks = _c[0], setRemarks = _c[1];
|
29270
|
+
var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
|
29271
|
+
var comment;
|
29272
|
+
return __generator(this, function (_a) {
|
29273
|
+
comment = form.getFieldValue("comment");
|
29274
|
+
if (comment === undefined || comment === "") {
|
29275
|
+
setRemarks(false);
|
29276
|
+
}
|
29277
|
+
else {
|
29278
|
+
setRemarks(true);
|
29279
|
+
}
|
29280
|
+
return [2 /*return*/];
|
29281
|
+
});
|
29282
|
+
}); };
|
29283
|
+
React.useEffect(function () {
|
29284
|
+
onRemarkValues();
|
29285
|
+
});
|
29233
29286
|
return (React.createElement("div", { className: "transfer-form" },
|
29234
29287
|
React.createElement(antd.Row, null,
|
29235
29288
|
React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
|
@@ -29237,7 +29290,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29237
29290
|
certifierId: programme.certifierId && programme.certifierId.length === 1
|
29238
29291
|
? Number(programme.certifierId[0])
|
29239
29292
|
: undefined,
|
29240
|
-
}, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
|
29293
|
+
}, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
|
29241
29294
|
var res;
|
29242
29295
|
return __generator(this, function (_a) {
|
29243
29296
|
switch (_a.label) {
|
@@ -29276,7 +29329,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29276
29329
|
popupError ? (React.createElement(antd.Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
|
29277
29330
|
React.createElement(antd.Form.Item, { className: "footer" },
|
29278
29331
|
React.createElement(antd.Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
|
29279
|
-
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
|
29332
|
+
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
|
29280
29333
|
};
|
29281
29334
|
|
29282
29335
|
var ProgrammeTransferForm = function (props) {
|