@undp/carbon-library 1.0.302-CARBON-337.0 → 1.0.302-CARBON-433.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +151 -148
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +151 -148
- package/dist/esm/index.js.map +1 -1
- package/dist/locales/i18n/coBenifits/en.json +1 -104
- package/dist/locales/i18n/programme/en.json +1 -1
- package/dist/locales/i18n/programme/es.json +2 -1
- package/dist/locales/i18n/programme/fr.json +2 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -17685,7 +17685,7 @@ var InvestmentManagementComponent = function (props) {
|
|
17685
17685
|
return handleTableChange(val, sorter);
|
17686
17686
|
}, locale: {
|
17687
17687
|
emptyText: (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: tableData.length === 0
|
17688
|
-
? t("programme:
|
17688
|
+
? t("programme:noinvestment")
|
17689
17689
|
: null })),
|
17690
17690
|
} }))))),
|
17691
17691
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
@@ -21011,203 +21011,204 @@ var Safeguards = function (props) {
|
|
21011
21011
|
|
21012
21012
|
var Environmental = function (props) {
|
21013
21013
|
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21014
|
-
|
21014
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21015
|
+
var t = translator.t;
|
21015
21016
|
var environmentalDetailsInitial = [
|
21016
21017
|
{
|
21017
|
-
section: t("
|
21018
|
+
section: t("air"),
|
21018
21019
|
fields: [
|
21019
21020
|
{
|
21020
21021
|
name: "airQ1",
|
21021
|
-
label: t("
|
21022
|
+
label: t("airQ1"),
|
21022
21023
|
hide: false,
|
21023
21024
|
required: false,
|
21024
21025
|
},
|
21025
21026
|
{
|
21026
21027
|
name: "airQ2",
|
21027
|
-
label: t("
|
21028
|
+
label: t("airQ2"),
|
21028
21029
|
hide: true,
|
21029
21030
|
required: true,
|
21030
21031
|
},
|
21031
21032
|
{
|
21032
21033
|
name: "airQ3",
|
21033
|
-
label: t("
|
21034
|
+
label: t("airQ3"),
|
21034
21035
|
hide: true,
|
21035
21036
|
required: true,
|
21036
21037
|
},
|
21037
21038
|
{
|
21038
21039
|
name: "airQ4",
|
21039
|
-
label: t("
|
21040
|
+
label: t("airQ4"),
|
21040
21041
|
hide: true,
|
21041
21042
|
required: true,
|
21042
21043
|
},
|
21043
21044
|
{
|
21044
21045
|
name: "airQ5",
|
21045
|
-
label: t("
|
21046
|
+
label: t("airQ5"),
|
21046
21047
|
hide: true,
|
21047
21048
|
required: true,
|
21048
21049
|
},
|
21049
21050
|
{
|
21050
21051
|
name: "airQ6",
|
21051
|
-
label: t("
|
21052
|
+
label: t("airQ6"),
|
21052
21053
|
hide: true,
|
21053
21054
|
required: true,
|
21054
21055
|
},
|
21055
21056
|
{
|
21056
21057
|
name: "airQ7",
|
21057
|
-
label: t("
|
21058
|
+
label: t("airQ7"),
|
21058
21059
|
hide: true,
|
21059
21060
|
required: true,
|
21060
21061
|
},
|
21061
21062
|
{
|
21062
21063
|
name: "airQ8",
|
21063
|
-
label: t("
|
21064
|
+
label: t("airQ8"),
|
21064
21065
|
hide: true,
|
21065
21066
|
required: true,
|
21066
21067
|
},
|
21067
21068
|
{
|
21068
21069
|
name: "airQ9",
|
21069
|
-
label: t("
|
21070
|
+
label: t("airQ9"),
|
21070
21071
|
hide: true,
|
21071
21072
|
required: true,
|
21072
21073
|
},
|
21073
21074
|
],
|
21074
21075
|
},
|
21075
21076
|
{
|
21076
|
-
section: t("
|
21077
|
+
section: t("land"),
|
21077
21078
|
fields: [
|
21078
21079
|
{
|
21079
21080
|
name: "landQ1",
|
21080
|
-
label: t("
|
21081
|
+
label: t("landQ1"),
|
21081
21082
|
hide: false,
|
21082
21083
|
required: false,
|
21083
21084
|
},
|
21084
21085
|
{
|
21085
21086
|
name: "landQ2",
|
21086
|
-
label: t("
|
21087
|
+
label: t("landQ2"),
|
21087
21088
|
hide: true,
|
21088
21089
|
required: true,
|
21089
21090
|
},
|
21090
21091
|
{
|
21091
21092
|
name: "landQ3",
|
21092
|
-
label: t("
|
21093
|
+
label: t("landQ3"),
|
21093
21094
|
hide: true,
|
21094
21095
|
required: true,
|
21095
21096
|
},
|
21096
21097
|
{
|
21097
21098
|
name: "landQ4",
|
21098
|
-
label: t("
|
21099
|
+
label: t("landQ4"),
|
21099
21100
|
hide: true,
|
21100
21101
|
required: true,
|
21101
21102
|
},
|
21102
21103
|
{
|
21103
21104
|
name: "landQ5",
|
21104
|
-
label: t("
|
21105
|
+
label: t("landQ5"),
|
21105
21106
|
hide: true,
|
21106
21107
|
required: true,
|
21107
21108
|
},
|
21108
21109
|
{
|
21109
21110
|
name: "landQ6",
|
21110
|
-
label: t("
|
21111
|
+
label: t("landQ6"),
|
21111
21112
|
hide: true,
|
21112
21113
|
required: true,
|
21113
21114
|
},
|
21114
21115
|
{
|
21115
21116
|
name: "landQ7",
|
21116
|
-
label: t("
|
21117
|
+
label: t("landQ7"),
|
21117
21118
|
hide: true,
|
21118
21119
|
required: true,
|
21119
21120
|
},
|
21120
21121
|
{
|
21121
21122
|
name: "landQ8",
|
21122
|
-
label: t("
|
21123
|
+
label: t("landQ8"),
|
21123
21124
|
hide: true,
|
21124
21125
|
required: true,
|
21125
21126
|
},
|
21126
21127
|
],
|
21127
21128
|
},
|
21128
21129
|
{
|
21129
|
-
section: t("
|
21130
|
+
section: t("water"),
|
21130
21131
|
fields: [
|
21131
21132
|
{
|
21132
21133
|
name: "waterQ1",
|
21133
|
-
label: t("
|
21134
|
+
label: t("waterQ1"),
|
21134
21135
|
hide: false,
|
21135
21136
|
required: false,
|
21136
21137
|
},
|
21137
21138
|
{
|
21138
21139
|
name: "waterQ2",
|
21139
|
-
label: t("
|
21140
|
+
label: t("waterQ2"),
|
21140
21141
|
hide: true,
|
21141
21142
|
required: true,
|
21142
21143
|
},
|
21143
21144
|
{
|
21144
21145
|
name: "waterQ3",
|
21145
|
-
label: t("
|
21146
|
+
label: t("waterQ3"),
|
21146
21147
|
hide: true,
|
21147
21148
|
required: true,
|
21148
21149
|
},
|
21149
21150
|
{
|
21150
21151
|
name: "waterQ4",
|
21151
|
-
label: t("
|
21152
|
+
label: t("waterQ4"),
|
21152
21153
|
hide: true,
|
21153
21154
|
required: true,
|
21154
21155
|
},
|
21155
21156
|
{
|
21156
21157
|
name: "waterQ5",
|
21157
|
-
label: t("
|
21158
|
+
label: t("waterQ5"),
|
21158
21159
|
hide: true,
|
21159
21160
|
required: true,
|
21160
21161
|
},
|
21161
21162
|
{
|
21162
21163
|
name: "waterQ6",
|
21163
|
-
label: t("
|
21164
|
+
label: t("waterQ6"),
|
21164
21165
|
hide: true,
|
21165
21166
|
required: true,
|
21166
21167
|
},
|
21167
21168
|
{
|
21168
21169
|
name: "waterQ7",
|
21169
|
-
label: t("
|
21170
|
+
label: t("waterQ7"),
|
21170
21171
|
hide: true,
|
21171
21172
|
required: true,
|
21172
21173
|
},
|
21173
21174
|
],
|
21174
21175
|
},
|
21175
21176
|
{
|
21176
|
-
section: t("
|
21177
|
+
section: t("naturalResource"),
|
21177
21178
|
fields: [
|
21178
21179
|
{
|
21179
21180
|
name: "naturalResourceQ1",
|
21180
|
-
label: t("
|
21181
|
+
label: t("naturalResourceQ1"),
|
21181
21182
|
hide: false,
|
21182
21183
|
required: false,
|
21183
21184
|
},
|
21184
21185
|
{
|
21185
21186
|
name: "naturalResourceQ2",
|
21186
|
-
label: t("
|
21187
|
+
label: t("naturalResourceQ2"),
|
21187
21188
|
hide: true,
|
21188
21189
|
required: true,
|
21189
21190
|
},
|
21190
21191
|
{
|
21191
21192
|
name: "naturalResourceQ3",
|
21192
|
-
label: t("
|
21193
|
+
label: t("naturalResourceQ3"),
|
21193
21194
|
hide: true,
|
21194
21195
|
required: true,
|
21195
21196
|
},
|
21196
21197
|
{
|
21197
21198
|
name: "naturalResourceQ4",
|
21198
|
-
label: t("
|
21199
|
+
label: t("naturalResourceQ4"),
|
21199
21200
|
hide: true,
|
21200
21201
|
required: true,
|
21201
21202
|
},
|
21202
21203
|
{
|
21203
21204
|
name: "naturalResourceQ5",
|
21204
|
-
label: t("
|
21205
|
+
label: t("naturalResourceQ5"),
|
21205
21206
|
hide: true,
|
21206
21207
|
required: true,
|
21207
21208
|
},
|
21208
21209
|
{
|
21209
21210
|
name: "naturalResourceQ6",
|
21210
|
-
label: t("
|
21211
|
+
label: t("naturalResourceQ6"),
|
21211
21212
|
hide: true,
|
21212
21213
|
required: true,
|
21213
21214
|
},
|
@@ -21225,7 +21226,7 @@ var Environmental = function (props) {
|
|
21225
21226
|
if (changedFieldName.includes("1")) {
|
21226
21227
|
var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
|
21227
21228
|
var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
|
21228
|
-
var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(
|
21229
|
+
var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
|
21229
21230
|
updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
|
21230
21231
|
if (field.name !== changedFieldName) {
|
21231
21232
|
field.hide = changedFieldValue !== RadioButtonStatus.YES;
|
@@ -21244,35 +21245,35 @@ var Environmental = function (props) {
|
|
21244
21245
|
if (environmentalViewData && viewOnly === true) {
|
21245
21246
|
var updatedEnvironmentalData = [
|
21246
21247
|
{
|
21247
|
-
section: t("
|
21248
|
+
section: t("air"),
|
21248
21249
|
fields: [],
|
21249
21250
|
},
|
21250
21251
|
{
|
21251
|
-
section: t("
|
21252
|
+
section: t("land"),
|
21252
21253
|
fields: [],
|
21253
21254
|
},
|
21254
21255
|
{
|
21255
|
-
section: t("
|
21256
|
+
section: t("water"),
|
21256
21257
|
fields: [],
|
21257
21258
|
},
|
21258
21259
|
{
|
21259
|
-
section: t("
|
21260
|
+
section: t("naturalResource"),
|
21260
21261
|
fields: [],
|
21261
21262
|
},
|
21262
21263
|
];
|
21263
21264
|
var _loop_1 = function (key) {
|
21264
21265
|
var section = "";
|
21265
21266
|
if (String(key).includes("air")) {
|
21266
|
-
section = t("
|
21267
|
+
section = t("air");
|
21267
21268
|
}
|
21268
21269
|
else if (String(key).includes("land")) {
|
21269
|
-
section = t("
|
21270
|
+
section = t("land");
|
21270
21271
|
}
|
21271
21272
|
else if (String(key).includes("water")) {
|
21272
|
-
section = t("
|
21273
|
+
section = t("water");
|
21273
21274
|
}
|
21274
21275
|
else if (String(key).includes("naturalResource")) {
|
21275
|
-
section = t("
|
21276
|
+
section = t("naturalResource");
|
21276
21277
|
}
|
21277
21278
|
var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
|
21278
21279
|
if (environmentalItem) {
|
@@ -21300,11 +21301,11 @@ var Environmental = function (props) {
|
|
21300
21301
|
React.createElement(Row, { justify: "center", align: "middle", style: { width: "100%" } },
|
21301
21302
|
React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21302
21303
|
React.createElement("span", null,
|
21303
|
-
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("
|
21304
|
+
React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
|
21304
21305
|
React.createElement(Col, { span: 24 },
|
21305
21306
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21306
21307
|
React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21307
|
-
React.createElement("span", null, t("
|
21308
|
+
React.createElement("span", null, t("environmental"))),
|
21308
21309
|
React.createElement(Col, { span: 24 },
|
21309
21310
|
React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
|
21310
21311
|
(environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })), environmentalDetails === null || environmentalDetails === void 0 ? void 0 :
|
@@ -21317,188 +21318,189 @@ var Environmental = function (props) {
|
|
21317
21318
|
{
|
21318
21319
|
required: field === null || field === void 0 ? void 0 : field.required,
|
21319
21320
|
message: (field === null || field === void 0 ? void 0 : field.required) &&
|
21320
|
-
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("
|
21321
|
+
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
|
21321
21322
|
},
|
21322
21323
|
] },
|
21323
21324
|
React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
|
21324
21325
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
|
21325
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("
|
21326
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
|
21326
21327
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
|
21327
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("
|
21328
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
|
21328
21329
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
|
21329
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("
|
21330
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
|
21330
21331
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21331
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("
|
21332
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
|
21332
21333
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21333
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("
|
21334
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
|
21334
21335
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21335
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("
|
21336
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
|
21336
21337
|
})));
|
21337
21338
|
})))));
|
21338
21339
|
};
|
21339
21340
|
|
21340
21341
|
var Economic = function (props) {
|
21341
21342
|
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21342
|
-
|
21343
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21344
|
+
var t = translator.t;
|
21343
21345
|
var economicDetailsInitial = [
|
21344
21346
|
{
|
21345
|
-
section: t("
|
21347
|
+
section: t("growth"),
|
21346
21348
|
fields: [
|
21347
21349
|
{
|
21348
21350
|
name: "growthQ1",
|
21349
|
-
label: t("
|
21351
|
+
label: t("growthQ1"),
|
21350
21352
|
hide: false,
|
21351
21353
|
required: false,
|
21352
21354
|
},
|
21353
21355
|
{
|
21354
21356
|
name: "growthQ2",
|
21355
|
-
label: t("
|
21357
|
+
label: t("growthQ2"),
|
21356
21358
|
hide: true,
|
21357
21359
|
required: true,
|
21358
21360
|
},
|
21359
21361
|
{
|
21360
21362
|
name: "growthQ3",
|
21361
|
-
label: t("
|
21363
|
+
label: t("growthQ3"),
|
21362
21364
|
hide: true,
|
21363
21365
|
required: true,
|
21364
21366
|
},
|
21365
21367
|
{
|
21366
21368
|
name: "growthQ4",
|
21367
|
-
label: t("
|
21369
|
+
label: t("growthQ4"),
|
21368
21370
|
hide: true,
|
21369
21371
|
required: true,
|
21370
21372
|
},
|
21371
21373
|
{
|
21372
21374
|
name: "growthQ5",
|
21373
|
-
label: t("
|
21375
|
+
label: t("growthQ5"),
|
21374
21376
|
hide: true,
|
21375
21377
|
required: true,
|
21376
21378
|
},
|
21377
21379
|
{
|
21378
21380
|
name: "growthQ6",
|
21379
|
-
label: t("
|
21381
|
+
label: t("growthQ6"),
|
21380
21382
|
hide: true,
|
21381
21383
|
required: true,
|
21382
21384
|
},
|
21383
21385
|
{
|
21384
21386
|
name: "growthQ7",
|
21385
|
-
label: t("
|
21387
|
+
label: t("growthQ7"),
|
21386
21388
|
hide: true,
|
21387
21389
|
required: true,
|
21388
21390
|
},
|
21389
21391
|
{
|
21390
21392
|
name: "growthQ8",
|
21391
|
-
label: t("
|
21393
|
+
label: t("growthQ8"),
|
21392
21394
|
hide: true,
|
21393
21395
|
required: true,
|
21394
21396
|
},
|
21395
21397
|
],
|
21396
21398
|
},
|
21397
21399
|
{
|
21398
|
-
section: t("
|
21400
|
+
section: t("energy"),
|
21399
21401
|
fields: [
|
21400
21402
|
{
|
21401
21403
|
name: "energyQ1",
|
21402
|
-
label: t("
|
21404
|
+
label: t("energyQ1"),
|
21403
21405
|
hide: false,
|
21404
21406
|
required: false,
|
21405
21407
|
},
|
21406
21408
|
{
|
21407
21409
|
name: "energyQ2",
|
21408
|
-
label: t("
|
21410
|
+
label: t("energyQ2"),
|
21409
21411
|
hide: true,
|
21410
21412
|
required: true,
|
21411
21413
|
},
|
21412
21414
|
{
|
21413
21415
|
name: "energyQ3",
|
21414
|
-
label: t("
|
21416
|
+
label: t("energyQ3"),
|
21415
21417
|
hide: true,
|
21416
21418
|
required: true,
|
21417
21419
|
},
|
21418
21420
|
{
|
21419
21421
|
name: "energyQ4",
|
21420
|
-
label: t("
|
21422
|
+
label: t("energyQ4"),
|
21421
21423
|
hide: true,
|
21422
21424
|
required: true,
|
21423
21425
|
},
|
21424
21426
|
{
|
21425
21427
|
name: "energyQ5",
|
21426
|
-
label: t("
|
21428
|
+
label: t("energyQ5"),
|
21427
21429
|
hide: true,
|
21428
21430
|
required: true,
|
21429
21431
|
},
|
21430
21432
|
],
|
21431
21433
|
},
|
21432
21434
|
{
|
21433
|
-
section: t("
|
21435
|
+
section: t("techTransfer"),
|
21434
21436
|
fields: [
|
21435
21437
|
{
|
21436
21438
|
name: "techTransferQ1",
|
21437
|
-
label: t("
|
21439
|
+
label: t("techTransferQ1"),
|
21438
21440
|
hide: false,
|
21439
21441
|
required: false,
|
21440
21442
|
},
|
21441
21443
|
{
|
21442
21444
|
name: "techTransferQ2",
|
21443
|
-
label: t("
|
21445
|
+
label: t("techTransferQ2"),
|
21444
21446
|
hide: true,
|
21445
21447
|
required: true,
|
21446
21448
|
},
|
21447
21449
|
{
|
21448
21450
|
name: "techTransferQ3",
|
21449
|
-
label: t("
|
21451
|
+
label: t("techTransferQ3"),
|
21450
21452
|
hide: true,
|
21451
21453
|
required: true,
|
21452
21454
|
},
|
21453
21455
|
{
|
21454
21456
|
name: "techTransferQ4",
|
21455
|
-
label: t("
|
21457
|
+
label: t("techTransferQ4"),
|
21456
21458
|
hide: true,
|
21457
21459
|
required: true,
|
21458
21460
|
},
|
21459
21461
|
{
|
21460
21462
|
name: "techTransferQ5",
|
21461
|
-
label: t("
|
21463
|
+
label: t("techTransferQ5"),
|
21462
21464
|
hide: true,
|
21463
21465
|
required: true,
|
21464
21466
|
},
|
21465
21467
|
{
|
21466
21468
|
name: "techTransferQ6",
|
21467
|
-
label: t("
|
21469
|
+
label: t("techTransferQ6"),
|
21468
21470
|
hide: true,
|
21469
21471
|
required: true,
|
21470
21472
|
},
|
21471
21473
|
],
|
21472
21474
|
},
|
21473
21475
|
{
|
21474
|
-
section: t("
|
21476
|
+
section: t("balanceOfPayments"),
|
21475
21477
|
fields: [
|
21476
21478
|
{
|
21477
21479
|
name: "balanceOfPaymentsQ1",
|
21478
|
-
label: t("
|
21480
|
+
label: t("balanceOfPaymentsQ1"),
|
21479
21481
|
hide: false,
|
21480
21482
|
required: false,
|
21481
21483
|
},
|
21482
21484
|
{
|
21483
21485
|
name: "balanceOfPaymentsQ2",
|
21484
|
-
label: t("
|
21486
|
+
label: t("balanceOfPaymentsQ2"),
|
21485
21487
|
hide: true,
|
21486
21488
|
required: true,
|
21487
21489
|
},
|
21488
21490
|
{
|
21489
21491
|
name: "balanceOfPaymentsQ3",
|
21490
|
-
label: t("
|
21492
|
+
label: t("balanceOfPaymentsQ3"),
|
21491
21493
|
hide: true,
|
21492
21494
|
required: true,
|
21493
21495
|
},
|
21494
21496
|
],
|
21495
21497
|
},
|
21496
21498
|
{
|
21497
|
-
section: t("
|
21499
|
+
section: t("furtherInfo"),
|
21498
21500
|
fields: [
|
21499
21501
|
{
|
21500
21502
|
name: "furtherInfoQ1",
|
21501
|
-
label: t("
|
21503
|
+
label: t("furtherInfoQ1"),
|
21502
21504
|
hide: false,
|
21503
21505
|
required: false,
|
21504
21506
|
},
|
@@ -21515,7 +21517,7 @@ var Economic = function (props) {
|
|
21515
21517
|
if (changedFieldName.includes("1")) {
|
21516
21518
|
var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
|
21517
21519
|
var updatedEconomicDetails = __spreadArray([], economicDetails, true);
|
21518
|
-
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(
|
21520
|
+
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
|
21519
21521
|
updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
|
21520
21522
|
if (field.name !== changedFieldName) {
|
21521
21523
|
field.hide = changedFieldValue !== RadioButtonStatus.YES;
|
@@ -21534,42 +21536,42 @@ var Economic = function (props) {
|
|
21534
21536
|
if (economicViewData && viewOnly === true) {
|
21535
21537
|
var updatedEconomicData = [
|
21536
21538
|
{
|
21537
|
-
section: t("
|
21539
|
+
section: t("growth"),
|
21538
21540
|
fields: [],
|
21539
21541
|
},
|
21540
21542
|
{
|
21541
|
-
section: t("
|
21543
|
+
section: t("energy"),
|
21542
21544
|
fields: [],
|
21543
21545
|
},
|
21544
21546
|
{
|
21545
|
-
section: t("
|
21547
|
+
section: t("techTransfer"),
|
21546
21548
|
fields: [],
|
21547
21549
|
},
|
21548
21550
|
{
|
21549
|
-
section: t("
|
21551
|
+
section: t("balanceOfPayments"),
|
21550
21552
|
fields: [],
|
21551
21553
|
},
|
21552
21554
|
{
|
21553
|
-
section: t("
|
21555
|
+
section: t("furtherInfo"),
|
21554
21556
|
fields: [],
|
21555
21557
|
},
|
21556
21558
|
];
|
21557
21559
|
var _loop_1 = function (key) {
|
21558
21560
|
var section = "";
|
21559
21561
|
if (String(key).includes("growth")) {
|
21560
|
-
section = t("
|
21562
|
+
section = t("growth");
|
21561
21563
|
}
|
21562
21564
|
else if (String(key).includes("energy")) {
|
21563
|
-
section = t("
|
21565
|
+
section = t("energy");
|
21564
21566
|
}
|
21565
21567
|
else if (String(key).includes("techTransfer")) {
|
21566
|
-
section = t("
|
21568
|
+
section = t("techTransfer");
|
21567
21569
|
}
|
21568
21570
|
else if (String(key).includes("balanceOfPayments")) {
|
21569
|
-
section = t("
|
21571
|
+
section = t("balanceOfPayments");
|
21570
21572
|
}
|
21571
21573
|
else if (String(key).includes("furtherInfo")) {
|
21572
|
-
section = t("
|
21574
|
+
section = t("furtherInfo");
|
21573
21575
|
}
|
21574
21576
|
var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
|
21575
21577
|
if (economicItem) {
|
@@ -21597,7 +21599,7 @@ var Economic = function (props) {
|
|
21597
21599
|
React.createElement(Col, { span: 24 },
|
21598
21600
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21599
21601
|
React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21600
|
-
React.createElement("span", null, t("
|
21602
|
+
React.createElement("span", null, t("economic"))))),
|
21601
21603
|
(economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })), economicDetails === null || economicDetails === void 0 ? void 0 :
|
21602
21604
|
economicDetails.map(function (environmentalDetail) {
|
21603
21605
|
var _a;
|
@@ -21608,193 +21610,194 @@ var Economic = function (props) {
|
|
21608
21610
|
{
|
21609
21611
|
required: field === null || field === void 0 ? void 0 : field.required,
|
21610
21612
|
message: (field === null || field === void 0 ? void 0 : field.required) &&
|
21611
|
-
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("
|
21613
|
+
"".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
|
21612
21614
|
},
|
21613
21615
|
] },
|
21614
21616
|
React.createElement(Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
|
21615
21617
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
|
21616
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("
|
21618
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes")))),
|
21617
21619
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
|
21618
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("
|
21620
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no")))),
|
21619
21621
|
(field === null || field === void 0 ? void 0 : field.value) === RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
|
21620
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("
|
21622
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
|
21621
21623
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21622
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("
|
21624
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.YES }, t("yes"))),
|
21623
21625
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21624
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("
|
21626
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NO }, t("no"))),
|
21625
21627
|
React.createElement("div", { className: "yes-no-radio-container" },
|
21626
|
-
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("
|
21628
|
+
React.createElement(Radio.Button, { className: "yes-no-radio", value: RadioButtonStatus.NA }, t("na"))))))));
|
21627
21629
|
})));
|
21628
21630
|
})))));
|
21629
21631
|
};
|
21630
21632
|
|
21631
21633
|
var Social = function (props) {
|
21632
21634
|
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
|
21633
|
-
|
21635
|
+
translator.setDefaultNamespace("unfcccSdTool");
|
21636
|
+
var t = translator.t;
|
21634
21637
|
var form = Form.useForm()[0];
|
21635
21638
|
var _a = useState(0); _a[0]; var setRefreshCounter = _a[1];
|
21636
21639
|
var _b = useState(), socialDetails = _b[0], setSocialDetails = _b[1];
|
21637
21640
|
var _c = useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
|
21638
21641
|
var SocialElementDetails = [
|
21639
21642
|
{
|
21640
|
-
title: t("
|
21641
|
-
label: t("
|
21643
|
+
title: t("jobs"),
|
21644
|
+
label: t("jobRelatedMainQ"),
|
21642
21645
|
name: "jobRelatedMainQ",
|
21643
21646
|
subItems: [
|
21644
21647
|
{
|
21645
21648
|
type: FormElementType.Radio,
|
21646
|
-
label: t("
|
21649
|
+
label: t("jobRelatedSubQ1"),
|
21647
21650
|
name: "jobRelatedSubQ1",
|
21648
21651
|
},
|
21649
21652
|
{
|
21650
21653
|
type: FormElementType.Radio,
|
21651
|
-
label: t("
|
21654
|
+
label: t("jobRelatedSubQ2"),
|
21652
21655
|
name: "jobRelatedSubQ2",
|
21653
21656
|
},
|
21654
21657
|
{
|
21655
21658
|
type: FormElementType.Radio,
|
21656
|
-
label: t("
|
21659
|
+
label: t("jobRelatedSubQ3"),
|
21657
21660
|
name: "jobRelatedSubQ3",
|
21658
21661
|
},
|
21659
21662
|
{
|
21660
21663
|
type: FormElementType.Radio,
|
21661
|
-
label: t("
|
21664
|
+
label: t("jobRelatedSubQ4"),
|
21662
21665
|
name: "jobRelatedSubQ4",
|
21663
21666
|
},
|
21664
21667
|
{
|
21665
21668
|
type: FormElementType.Input,
|
21666
|
-
label: t("
|
21669
|
+
label: t("jobRelatedSubQ5"),
|
21667
21670
|
name: "jobRelatedSubQ5",
|
21668
21671
|
},
|
21669
21672
|
{
|
21670
21673
|
type: FormElementType.Input,
|
21671
|
-
label: t("
|
21674
|
+
label: t("jobRelatedSubQ6"),
|
21672
21675
|
name: "jobRelatedSubQ6",
|
21673
21676
|
},
|
21674
21677
|
{
|
21675
21678
|
type: FormElementType.Input,
|
21676
|
-
label: t("
|
21679
|
+
label: t("jobRelatedSubQ7"),
|
21677
21680
|
name: "jobRelatedSubQ7",
|
21678
21681
|
},
|
21679
21682
|
],
|
21680
21683
|
},
|
21681
21684
|
{
|
21682
|
-
title: t("
|
21683
|
-
label: t("
|
21685
|
+
title: t("health"),
|
21686
|
+
label: t("healthRelatedMainQ"),
|
21684
21687
|
name: "healthRelatedMainQ",
|
21685
21688
|
subItems: [
|
21686
21689
|
{
|
21687
21690
|
type: FormElementType.Radio,
|
21688
|
-
label: t("
|
21691
|
+
label: t("healthRelatedSubQ1"),
|
21689
21692
|
name: "healthRelatedSubQ1",
|
21690
21693
|
},
|
21691
21694
|
{
|
21692
21695
|
type: FormElementType.Radio,
|
21693
|
-
label: t("
|
21696
|
+
label: t("healthRelatedSubQ2"),
|
21694
21697
|
name: "healthRelatedSubQ2",
|
21695
21698
|
},
|
21696
21699
|
{
|
21697
21700
|
type: FormElementType.Radio,
|
21698
|
-
label: t("
|
21701
|
+
label: t("healthRelatedSubQ3"),
|
21699
21702
|
name: "healthRelatedSubQ3",
|
21700
21703
|
},
|
21701
21704
|
{
|
21702
21705
|
type: FormElementType.Radio,
|
21703
|
-
label: t("
|
21706
|
+
label: t("healthRelatedSubQ4"),
|
21704
21707
|
name: "healthRelatedSubQ4",
|
21705
21708
|
},
|
21706
21709
|
{
|
21707
21710
|
type: FormElementType.Radio,
|
21708
|
-
label: t("
|
21711
|
+
label: t("healthRelatedSubQ5"),
|
21709
21712
|
name: "healthRelatedSubQ5",
|
21710
21713
|
},
|
21711
21714
|
{
|
21712
21715
|
type: FormElementType.Radio,
|
21713
|
-
label: t("
|
21716
|
+
label: t("healthRelatedSubQ6"),
|
21714
21717
|
name: "healthRelatedSubQ6",
|
21715
21718
|
},
|
21716
21719
|
{
|
21717
21720
|
type: FormElementType.Radio,
|
21718
|
-
label: t("
|
21721
|
+
label: t("healthRelatedSubQ7"),
|
21719
21722
|
name: "healthRelatedSubQ7",
|
21720
21723
|
},
|
21721
21724
|
{
|
21722
21725
|
type: FormElementType.Radio,
|
21723
|
-
label: t("
|
21726
|
+
label: t("healthRelatedSubQ8"),
|
21724
21727
|
name: "healthRelatedSubQ8",
|
21725
21728
|
},
|
21726
21729
|
],
|
21727
21730
|
},
|
21728
21731
|
{
|
21729
|
-
title: t("
|
21730
|
-
label: t("
|
21732
|
+
title: t("educational"),
|
21733
|
+
label: t("educationRelatedMainQ"),
|
21731
21734
|
name: "educationRelatedMainQ",
|
21732
21735
|
subItems: [
|
21733
21736
|
{
|
21734
21737
|
type: FormElementType.Radio,
|
21735
|
-
label: t("
|
21738
|
+
label: t("educationRelatedSubQ1"),
|
21736
21739
|
name: "educationRelatedSubQ1",
|
21737
21740
|
},
|
21738
21741
|
{
|
21739
21742
|
type: FormElementType.Radio,
|
21740
|
-
label: t("
|
21743
|
+
label: t("educationRelatedSubQ2"),
|
21741
21744
|
name: "educationRelatedSubQ2",
|
21742
21745
|
},
|
21743
21746
|
{
|
21744
21747
|
type: FormElementType.Radio,
|
21745
|
-
label: t("
|
21748
|
+
label: t("educationRelatedSubQ3"),
|
21746
21749
|
name: "educationRelatedSubQ3",
|
21747
21750
|
},
|
21748
21751
|
{
|
21749
21752
|
type: FormElementType.Radio,
|
21750
|
-
label: t("
|
21753
|
+
label: t("educationRelatedSubQ4"),
|
21751
21754
|
name: "educationRelatedSubQ4",
|
21752
21755
|
},
|
21753
21756
|
],
|
21754
21757
|
},
|
21755
21758
|
{
|
21756
|
-
title: t("
|
21757
|
-
label: t("
|
21759
|
+
title: t("welfare"),
|
21760
|
+
label: t("welfareRelatedMainQ"),
|
21758
21761
|
name: "welfareRelatedMainQ",
|
21759
21762
|
subItems: [
|
21760
21763
|
{
|
21761
21764
|
type: FormElementType.Radio,
|
21762
|
-
label: t("
|
21765
|
+
label: t("welfareRelatedSubQ1"),
|
21763
21766
|
name: "welfareRelatedSubQ1",
|
21764
21767
|
},
|
21765
21768
|
{
|
21766
21769
|
type: FormElementType.Radio,
|
21767
|
-
label: t("
|
21770
|
+
label: t("welfareRelatedSubQ2"),
|
21768
21771
|
name: "welfareRelatedSubQ2",
|
21769
21772
|
},
|
21770
21773
|
{
|
21771
21774
|
type: FormElementType.Radio,
|
21772
|
-
label: t("
|
21775
|
+
label: t("welfareRelatedSubQ3"),
|
21773
21776
|
name: "welfareRelatedSubQ3",
|
21774
21777
|
},
|
21775
21778
|
{
|
21776
21779
|
type: FormElementType.Radio,
|
21777
|
-
label: t("
|
21780
|
+
label: t("welfareRelatedSubQ4"),
|
21778
21781
|
name: "welfareRelatedSubQ4",
|
21779
21782
|
},
|
21780
21783
|
{
|
21781
21784
|
type: FormElementType.Radio,
|
21782
|
-
label: t("
|
21785
|
+
label: t("welfareRelatedSubQ5"),
|
21783
21786
|
name: "welfareRelatedSubQ5",
|
21784
21787
|
},
|
21785
21788
|
{
|
21786
21789
|
type: FormElementType.Radio,
|
21787
|
-
label: t("
|
21790
|
+
label: t("welfareRelatedSubQ6"),
|
21788
21791
|
name: "welfareRelatedSubQ6",
|
21789
21792
|
},
|
21790
21793
|
{
|
21791
21794
|
type: FormElementType.Radio,
|
21792
|
-
label: t("
|
21795
|
+
label: t("welfareRelatedSubQ7"),
|
21793
21796
|
name: "welfareRelatedSubQ7",
|
21794
21797
|
},
|
21795
21798
|
{
|
21796
21799
|
type: FormElementType.Radio,
|
21797
|
-
label: t("
|
21800
|
+
label: t("welfareRelatedSubQ8"),
|
21798
21801
|
name: "welfareRelatedSubQ8",
|
21799
21802
|
},
|
21800
21803
|
],
|
@@ -21853,7 +21856,7 @@ var Social = function (props) {
|
|
21853
21856
|
React.createElement(Col, { span: 24 },
|
21854
21857
|
React.createElement("div", { className: "unfccSdTool-section-divider" })),
|
21855
21858
|
React.createElement(Col, { span: 24, className: "unfcccSdTool-section-title" },
|
21856
|
-
React.createElement("span", null, t("
|
21859
|
+
React.createElement("span", null, t("social"))))),
|
21857
21860
|
viewOnly && !socialViewData && (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
|
21858
21861
|
((viewOnly && socialViewData) || !viewOnly) && (React.createElement(Form, { name: "socialDetails", labelWrap: true, form: form, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", onValuesChange: onSocialValuesChanged }, SocialElementDetails.map(function (element) {
|
21859
21862
|
return (React.createElement(React.Fragment, null,
|
@@ -21864,11 +21867,11 @@ var Social = function (props) {
|
|
21864
21867
|
React.createElement(Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
|
21865
21868
|
React.createElement(Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
|
21866
21869
|
React.createElement("div", { className: "radio-container" },
|
21867
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("
|
21870
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
|
21868
21871
|
React.createElement("div", { className: "radio-container" },
|
21869
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("
|
21872
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
|
21870
21873
|
React.createElement("div", { className: "radio-container" },
|
21871
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("
|
21874
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("na"))))),
|
21872
21875
|
form.getFieldValue(element.name) ===
|
21873
21876
|
RadioButtonStatus.YES &&
|
21874
21877
|
element.subItems.map(function (elementItem) {
|
@@ -21881,11 +21884,11 @@ var Social = function (props) {
|
|
21881
21884
|
] },
|
21882
21885
|
React.createElement(Radio.Group, { size: "middle" },
|
21883
21886
|
React.createElement("div", { className: "radio-container" },
|
21884
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("
|
21887
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
|
21885
21888
|
React.createElement("div", { className: "radio-container" },
|
21886
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("
|
21889
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NO }, t("no"))),
|
21887
21890
|
React.createElement("div", { className: "radio-container" },
|
21888
|
-
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("
|
21891
|
+
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.NA }, t("na"))))));
|
21889
21892
|
}
|
21890
21893
|
else if (elementItem.type === FormElementType.Input) {
|
21891
21894
|
return (React.createElement(Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
|
@@ -22433,14 +22436,14 @@ var CoBenifitsComponent = function (props) {
|
|
22433
22436
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
|
22434
22437
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
|
22435
22438
|
: {}
|
22436
|
-
: undefined, viewOnly: viewOnly || false, translator:
|
22439
|
+
: undefined, viewOnly: viewOnly || false, translator: translator }),
|
22437
22440
|
React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
|
22438
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator:
|
22441
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator }),
|
22439
22442
|
React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
|
22440
22443
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
|
22441
22444
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
|
22442
22445
|
: {}
|
22443
|
-
: undefined, viewOnly: viewOnly || false, translator:
|
22446
|
+
: undefined, viewOnly: viewOnly || false, translator: translator }))),
|
22444
22447
|
},
|
22445
22448
|
{
|
22446
22449
|
label: t("coBenifits:assessment"),
|