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