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