@undp/carbon-library 1.0.301-CARBON-261.0 → 1.0.302-CARBON-337.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -21032,204 +21032,203 @@ var Safeguards = function (props) {
21032
21032
 
21033
21033
  var Environmental = function (props) {
21034
21034
  var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
21035
- translator.setDefaultNamespace("unfcccSdTool");
21036
- var t = translator.t;
21035
+ var t = translator;
21037
21036
  var environmentalDetailsInitial = [
21038
21037
  {
21039
- section: t("air"),
21038
+ section: t("coBenifits:air"),
21040
21039
  fields: [
21041
21040
  {
21042
21041
  name: "airQ1",
21043
- label: t("airQ1"),
21042
+ label: t("coBenifits:airQ1"),
21044
21043
  hide: false,
21045
21044
  required: false,
21046
21045
  },
21047
21046
  {
21048
21047
  name: "airQ2",
21049
- label: t("airQ2"),
21048
+ label: t("coBenifits:airQ2"),
21050
21049
  hide: true,
21051
21050
  required: true,
21052
21051
  },
21053
21052
  {
21054
21053
  name: "airQ3",
21055
- label: t("airQ3"),
21054
+ label: t("coBenifits:airQ3"),
21056
21055
  hide: true,
21057
21056
  required: true,
21058
21057
  },
21059
21058
  {
21060
21059
  name: "airQ4",
21061
- label: t("airQ4"),
21060
+ label: t("coBenifits:airQ4"),
21062
21061
  hide: true,
21063
21062
  required: true,
21064
21063
  },
21065
21064
  {
21066
21065
  name: "airQ5",
21067
- label: t("airQ5"),
21066
+ label: t("coBenifits:airQ5"),
21068
21067
  hide: true,
21069
21068
  required: true,
21070
21069
  },
21071
21070
  {
21072
21071
  name: "airQ6",
21073
- label: t("airQ6"),
21072
+ label: t("coBenifits:airQ6"),
21074
21073
  hide: true,
21075
21074
  required: true,
21076
21075
  },
21077
21076
  {
21078
21077
  name: "airQ7",
21079
- label: t("airQ7"),
21078
+ label: t("coBenifits:airQ7"),
21080
21079
  hide: true,
21081
21080
  required: true,
21082
21081
  },
21083
21082
  {
21084
21083
  name: "airQ8",
21085
- label: t("airQ8"),
21084
+ label: t("coBenifits:airQ8"),
21086
21085
  hide: true,
21087
21086
  required: true,
21088
21087
  },
21089
21088
  {
21090
21089
  name: "airQ9",
21091
- label: t("airQ9"),
21090
+ label: t("coBenifits:airQ9"),
21092
21091
  hide: true,
21093
21092
  required: true,
21094
21093
  },
21095
21094
  ],
21096
21095
  },
21097
21096
  {
21098
- section: t("land"),
21097
+ section: t("coBenifits:land"),
21099
21098
  fields: [
21100
21099
  {
21101
21100
  name: "landQ1",
21102
- label: t("landQ1"),
21101
+ label: t("coBenifits:landQ1"),
21103
21102
  hide: false,
21104
21103
  required: false,
21105
21104
  },
21106
21105
  {
21107
21106
  name: "landQ2",
21108
- label: t("landQ2"),
21107
+ label: t("coBenifits:landQ2"),
21109
21108
  hide: true,
21110
21109
  required: true,
21111
21110
  },
21112
21111
  {
21113
21112
  name: "landQ3",
21114
- label: t("landQ3"),
21113
+ label: t("coBenifits:landQ3"),
21115
21114
  hide: true,
21116
21115
  required: true,
21117
21116
  },
21118
21117
  {
21119
21118
  name: "landQ4",
21120
- label: t("landQ4"),
21119
+ label: t("coBenifits:landQ4"),
21121
21120
  hide: true,
21122
21121
  required: true,
21123
21122
  },
21124
21123
  {
21125
21124
  name: "landQ5",
21126
- label: t("landQ5"),
21125
+ label: t("coBenifits:landQ5"),
21127
21126
  hide: true,
21128
21127
  required: true,
21129
21128
  },
21130
21129
  {
21131
21130
  name: "landQ6",
21132
- label: t("landQ6"),
21131
+ label: t("coBenifits:landQ6"),
21133
21132
  hide: true,
21134
21133
  required: true,
21135
21134
  },
21136
21135
  {
21137
21136
  name: "landQ7",
21138
- label: t("landQ7"),
21137
+ label: t("coBenifits:landQ7"),
21139
21138
  hide: true,
21140
21139
  required: true,
21141
21140
  },
21142
21141
  {
21143
21142
  name: "landQ8",
21144
- label: t("landQ8"),
21143
+ label: t("coBenifits:landQ8"),
21145
21144
  hide: true,
21146
21145
  required: true,
21147
21146
  },
21148
21147
  ],
21149
21148
  },
21150
21149
  {
21151
- section: t("water"),
21150
+ section: t("coBenifits:water"),
21152
21151
  fields: [
21153
21152
  {
21154
21153
  name: "waterQ1",
21155
- label: t("waterQ1"),
21154
+ label: t("coBenifits:waterQ1"),
21156
21155
  hide: false,
21157
21156
  required: false,
21158
21157
  },
21159
21158
  {
21160
21159
  name: "waterQ2",
21161
- label: t("waterQ2"),
21160
+ label: t("coBenifits:waterQ2"),
21162
21161
  hide: true,
21163
21162
  required: true,
21164
21163
  },
21165
21164
  {
21166
21165
  name: "waterQ3",
21167
- label: t("waterQ3"),
21166
+ label: t("coBenifits:waterQ3"),
21168
21167
  hide: true,
21169
21168
  required: true,
21170
21169
  },
21171
21170
  {
21172
21171
  name: "waterQ4",
21173
- label: t("waterQ4"),
21172
+ label: t("coBenifits:waterQ4"),
21174
21173
  hide: true,
21175
21174
  required: true,
21176
21175
  },
21177
21176
  {
21178
21177
  name: "waterQ5",
21179
- label: t("waterQ5"),
21178
+ label: t("coBenifits:waterQ5"),
21180
21179
  hide: true,
21181
21180
  required: true,
21182
21181
  },
21183
21182
  {
21184
21183
  name: "waterQ6",
21185
- label: t("waterQ6"),
21184
+ label: t("coBenifits:waterQ6"),
21186
21185
  hide: true,
21187
21186
  required: true,
21188
21187
  },
21189
21188
  {
21190
21189
  name: "waterQ7",
21191
- label: t("waterQ7"),
21190
+ label: t("coBenifits:waterQ7"),
21192
21191
  hide: true,
21193
21192
  required: true,
21194
21193
  },
21195
21194
  ],
21196
21195
  },
21197
21196
  {
21198
- section: t("naturalResource"),
21197
+ section: t("coBenifits:naturalResource"),
21199
21198
  fields: [
21200
21199
  {
21201
21200
  name: "naturalResourceQ1",
21202
- label: t("naturalResourceQ1"),
21201
+ label: t("coBenifits:naturalResourceQ1"),
21203
21202
  hide: false,
21204
21203
  required: false,
21205
21204
  },
21206
21205
  {
21207
21206
  name: "naturalResourceQ2",
21208
- label: t("naturalResourceQ2"),
21207
+ label: t("coBenifits:naturalResourceQ2"),
21209
21208
  hide: true,
21210
21209
  required: true,
21211
21210
  },
21212
21211
  {
21213
21212
  name: "naturalResourceQ3",
21214
- label: t("naturalResourceQ3"),
21213
+ label: t("coBenifits:naturalResourceQ3"),
21215
21214
  hide: true,
21216
21215
  required: true,
21217
21216
  },
21218
21217
  {
21219
21218
  name: "naturalResourceQ4",
21220
- label: t("naturalResourceQ4"),
21219
+ label: t("coBenifits:naturalResourceQ4"),
21221
21220
  hide: true,
21222
21221
  required: true,
21223
21222
  },
21224
21223
  {
21225
21224
  name: "naturalResourceQ5",
21226
- label: t("naturalResourceQ5"),
21225
+ label: t("coBenifits:naturalResourceQ5"),
21227
21226
  hide: true,
21228
21227
  required: true,
21229
21228
  },
21230
21229
  {
21231
21230
  name: "naturalResourceQ6",
21232
- label: t("naturalResourceQ6"),
21231
+ label: t("coBenifits:naturalResourceQ6"),
21233
21232
  hide: true,
21234
21233
  required: true,
21235
21234
  },
@@ -21247,7 +21246,7 @@ var Environmental = function (props) {
21247
21246
  if (changedFieldName.includes("1")) {
21248
21247
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
21249
21248
  var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
21250
- var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
21249
+ var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t("coBenifits:".concat(sectionName_1)); });
21251
21250
  updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
21252
21251
  if (field.name !== changedFieldName) {
21253
21252
  field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
@@ -21266,35 +21265,35 @@ var Environmental = function (props) {
21266
21265
  if (environmentalViewData && viewOnly === true) {
21267
21266
  var updatedEnvironmentalData = [
21268
21267
  {
21269
- section: t("air"),
21268
+ section: t("coBenifits:air"),
21270
21269
  fields: [],
21271
21270
  },
21272
21271
  {
21273
- section: t("land"),
21272
+ section: t("coBenifits:land"),
21274
21273
  fields: [],
21275
21274
  },
21276
21275
  {
21277
- section: t("water"),
21276
+ section: t("coBenifits:water"),
21278
21277
  fields: [],
21279
21278
  },
21280
21279
  {
21281
- section: t("naturalResource"),
21280
+ section: t("coBenifits:naturalResource"),
21282
21281
  fields: [],
21283
21282
  },
21284
21283
  ];
21285
21284
  var _loop_1 = function (key) {
21286
21285
  var section = "";
21287
21286
  if (String(key).includes("air")) {
21288
- section = t("air");
21287
+ section = t("coBenifits:air");
21289
21288
  }
21290
21289
  else if (String(key).includes("land")) {
21291
- section = t("land");
21290
+ section = t("coBenifits:land");
21292
21291
  }
21293
21292
  else if (String(key).includes("water")) {
21294
- section = t("water");
21293
+ section = t("coBenifits:water");
21295
21294
  }
21296
21295
  else if (String(key).includes("naturalResource")) {
21297
- section = t("naturalResource");
21296
+ section = t("coBenifits:naturalResource");
21298
21297
  }
21299
21298
  var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
21300
21299
  if (environmentalItem) {
@@ -21322,11 +21321,11 @@ var Environmental = function (props) {
21322
21321
  React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
21323
21322
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21324
21323
  React.createElement("span", null,
21325
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
21324
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("coBenifits:unfcccSdToolTitle")))),
21326
21325
  React.createElement(antd.Col, { span: 24 },
21327
21326
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21328
21327
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21329
- React.createElement("span", null, t("environmental"))),
21328
+ React.createElement("span", null, t("coBenifits:environmental"))),
21330
21329
  React.createElement(antd.Col, { span: 24 },
21331
21330
  React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
21332
21331
  (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 :
@@ -21339,189 +21338,188 @@ var Environmental = function (props) {
21339
21338
  {
21340
21339
  required: field === null || field === void 0 ? void 0 : field.required,
21341
21340
  message: (field === null || field === void 0 ? void 0 : field.required) &&
21342
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
21341
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("coBenifits:isRequired")),
21343
21342
  },
21344
21343
  ] },
21345
21344
  React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
21346
21345
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
21347
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
21346
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes")))),
21348
21347
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
21349
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
21348
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no")))),
21350
21349
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
21351
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
21350
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na")))))) : (React.createElement(React.Fragment, null,
21352
21351
  React.createElement("div", { className: "yes-no-radio-container" },
21353
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21352
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21354
21353
  React.createElement("div", { className: "yes-no-radio-container" },
21355
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21354
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21356
21355
  React.createElement("div", { className: "yes-no-radio-container" },
21357
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
21356
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))))));
21358
21357
  })));
21359
21358
  })))));
21360
21359
  };
21361
21360
 
21362
21361
  var Economic = function (props) {
21363
21362
  var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
21364
- translator.setDefaultNamespace("unfcccSdTool");
21365
- var t = translator.t;
21363
+ var t = translator;
21366
21364
  var economicDetailsInitial = [
21367
21365
  {
21368
- section: t("growth"),
21366
+ section: t("coBenifits:growth"),
21369
21367
  fields: [
21370
21368
  {
21371
21369
  name: "growthQ1",
21372
- label: t("growthQ1"),
21370
+ label: t("coBenifits:growthQ1"),
21373
21371
  hide: false,
21374
21372
  required: false,
21375
21373
  },
21376
21374
  {
21377
21375
  name: "growthQ2",
21378
- label: t("growthQ2"),
21376
+ label: t("coBenifits:growthQ2"),
21379
21377
  hide: true,
21380
21378
  required: true,
21381
21379
  },
21382
21380
  {
21383
21381
  name: "growthQ3",
21384
- label: t("growthQ3"),
21382
+ label: t("coBenifits:growthQ3"),
21385
21383
  hide: true,
21386
21384
  required: true,
21387
21385
  },
21388
21386
  {
21389
21387
  name: "growthQ4",
21390
- label: t("growthQ4"),
21388
+ label: t("coBenifits:growthQ4"),
21391
21389
  hide: true,
21392
21390
  required: true,
21393
21391
  },
21394
21392
  {
21395
21393
  name: "growthQ5",
21396
- label: t("growthQ5"),
21394
+ label: t("coBenifits:growthQ5"),
21397
21395
  hide: true,
21398
21396
  required: true,
21399
21397
  },
21400
21398
  {
21401
21399
  name: "growthQ6",
21402
- label: t("growthQ6"),
21400
+ label: t("coBenifits:growthQ6"),
21403
21401
  hide: true,
21404
21402
  required: true,
21405
21403
  },
21406
21404
  {
21407
21405
  name: "growthQ7",
21408
- label: t("growthQ7"),
21406
+ label: t("coBenifits:growthQ7"),
21409
21407
  hide: true,
21410
21408
  required: true,
21411
21409
  },
21412
21410
  {
21413
21411
  name: "growthQ8",
21414
- label: t("growthQ8"),
21412
+ label: t("coBenifits:growthQ8"),
21415
21413
  hide: true,
21416
21414
  required: true,
21417
21415
  },
21418
21416
  ],
21419
21417
  },
21420
21418
  {
21421
- section: t("energy"),
21419
+ section: t("coBenifits:energy"),
21422
21420
  fields: [
21423
21421
  {
21424
21422
  name: "energyQ1",
21425
- label: t("energyQ1"),
21423
+ label: t("coBenifits:energyQ1"),
21426
21424
  hide: false,
21427
21425
  required: false,
21428
21426
  },
21429
21427
  {
21430
21428
  name: "energyQ2",
21431
- label: t("energyQ2"),
21429
+ label: t("coBenifits:energyQ2"),
21432
21430
  hide: true,
21433
21431
  required: true,
21434
21432
  },
21435
21433
  {
21436
21434
  name: "energyQ3",
21437
- label: t("energyQ3"),
21435
+ label: t("coBenifits:energyQ3"),
21438
21436
  hide: true,
21439
21437
  required: true,
21440
21438
  },
21441
21439
  {
21442
21440
  name: "energyQ4",
21443
- label: t("energyQ4"),
21441
+ label: t("coBenifits:energyQ4"),
21444
21442
  hide: true,
21445
21443
  required: true,
21446
21444
  },
21447
21445
  {
21448
21446
  name: "energyQ5",
21449
- label: t("energyQ5"),
21447
+ label: t("coBenifits:energyQ5"),
21450
21448
  hide: true,
21451
21449
  required: true,
21452
21450
  },
21453
21451
  ],
21454
21452
  },
21455
21453
  {
21456
- section: t("techTransfer"),
21454
+ section: t("coBenifits:techTransfer"),
21457
21455
  fields: [
21458
21456
  {
21459
21457
  name: "techTransferQ1",
21460
- label: t("techTransferQ1"),
21458
+ label: t("coBenifits:techTransferQ1"),
21461
21459
  hide: false,
21462
21460
  required: false,
21463
21461
  },
21464
21462
  {
21465
21463
  name: "techTransferQ2",
21466
- label: t("techTransferQ2"),
21464
+ label: t("coBenifits:techTransferQ2"),
21467
21465
  hide: true,
21468
21466
  required: true,
21469
21467
  },
21470
21468
  {
21471
21469
  name: "techTransferQ3",
21472
- label: t("techTransferQ3"),
21470
+ label: t("coBenifits:techTransferQ3"),
21473
21471
  hide: true,
21474
21472
  required: true,
21475
21473
  },
21476
21474
  {
21477
21475
  name: "techTransferQ4",
21478
- label: t("techTransferQ4"),
21476
+ label: t("coBenifits:techTransferQ4"),
21479
21477
  hide: true,
21480
21478
  required: true,
21481
21479
  },
21482
21480
  {
21483
21481
  name: "techTransferQ5",
21484
- label: t("techTransferQ5"),
21482
+ label: t("coBenifits:techTransferQ5"),
21485
21483
  hide: true,
21486
21484
  required: true,
21487
21485
  },
21488
21486
  {
21489
21487
  name: "techTransferQ6",
21490
- label: t("techTransferQ6"),
21488
+ label: t("coBenifits:techTransferQ6"),
21491
21489
  hide: true,
21492
21490
  required: true,
21493
21491
  },
21494
21492
  ],
21495
21493
  },
21496
21494
  {
21497
- section: t("balanceOfPayments"),
21495
+ section: t("coBenifits:balanceOfPayments"),
21498
21496
  fields: [
21499
21497
  {
21500
21498
  name: "balanceOfPaymentsQ1",
21501
- label: t("balanceOfPaymentsQ1"),
21499
+ label: t("coBenifits:balanceOfPaymentsQ1"),
21502
21500
  hide: false,
21503
21501
  required: false,
21504
21502
  },
21505
21503
  {
21506
21504
  name: "balanceOfPaymentsQ2",
21507
- label: t("balanceOfPaymentsQ2"),
21505
+ label: t("coBenifits:balanceOfPaymentsQ2"),
21508
21506
  hide: true,
21509
21507
  required: true,
21510
21508
  },
21511
21509
  {
21512
21510
  name: "balanceOfPaymentsQ3",
21513
- label: t("balanceOfPaymentsQ3"),
21511
+ label: t("coBenifits:balanceOfPaymentsQ3"),
21514
21512
  hide: true,
21515
21513
  required: true,
21516
21514
  },
21517
21515
  ],
21518
21516
  },
21519
21517
  {
21520
- section: t("furtherInfo"),
21518
+ section: t("coBenifits:furtherInfo"),
21521
21519
  fields: [
21522
21520
  {
21523
21521
  name: "furtherInfoQ1",
21524
- label: t("furtherInfoQ1"),
21522
+ label: t("coBenifits:furtherInfoQ1"),
21525
21523
  hide: false,
21526
21524
  required: false,
21527
21525
  },
@@ -21538,7 +21536,7 @@ var Economic = function (props) {
21538
21536
  if (changedFieldName.includes("1")) {
21539
21537
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
21540
21538
  var updatedEconomicDetails = __spreadArray([], economicDetails, true);
21541
- var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
21539
+ var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t("coBenifits:".concat(sectionName_1)); });
21542
21540
  updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
21543
21541
  if (field.name !== changedFieldName) {
21544
21542
  field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
@@ -21557,42 +21555,42 @@ var Economic = function (props) {
21557
21555
  if (economicViewData && viewOnly === true) {
21558
21556
  var updatedEconomicData = [
21559
21557
  {
21560
- section: t("growth"),
21558
+ section: t("coBenifits:growth"),
21561
21559
  fields: [],
21562
21560
  },
21563
21561
  {
21564
- section: t("energy"),
21562
+ section: t("coBenifits:energy"),
21565
21563
  fields: [],
21566
21564
  },
21567
21565
  {
21568
- section: t("techTransfer"),
21566
+ section: t("coBenifits:techTransfer"),
21569
21567
  fields: [],
21570
21568
  },
21571
21569
  {
21572
- section: t("balanceOfPayments"),
21570
+ section: t("coBenifits:balanceOfPayments"),
21573
21571
  fields: [],
21574
21572
  },
21575
21573
  {
21576
- section: t("furtherInfo"),
21574
+ section: t("coBenifits:furtherInfo"),
21577
21575
  fields: [],
21578
21576
  },
21579
21577
  ];
21580
21578
  var _loop_1 = function (key) {
21581
21579
  var section = "";
21582
21580
  if (String(key).includes("growth")) {
21583
- section = t("growth");
21581
+ section = t("coBenifits:growth");
21584
21582
  }
21585
21583
  else if (String(key).includes("energy")) {
21586
- section = t("energy");
21584
+ section = t("coBenifits:energy");
21587
21585
  }
21588
21586
  else if (String(key).includes("techTransfer")) {
21589
- section = t("techTransfer");
21587
+ section = t("coBenifits:techTransfer");
21590
21588
  }
21591
21589
  else if (String(key).includes("balanceOfPayments")) {
21592
- section = t("balanceOfPayments");
21590
+ section = t("coBenifits:balanceOfPayments");
21593
21591
  }
21594
21592
  else if (String(key).includes("furtherInfo")) {
21595
- section = t("furtherInfo");
21593
+ section = t("coBenifits:furtherInfo");
21596
21594
  }
21597
21595
  var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
21598
21596
  if (economicItem) {
@@ -21620,7 +21618,7 @@ var Economic = function (props) {
21620
21618
  React.createElement(antd.Col, { span: 24 },
21621
21619
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21622
21620
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21623
- React.createElement("span", null, t("economic"))))),
21621
+ React.createElement("span", null, t("coBenifits:economic"))))),
21624
21622
  (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 :
21625
21623
  economicDetails.map(function (environmentalDetail) {
21626
21624
  var _a;
@@ -21631,194 +21629,193 @@ var Economic = function (props) {
21631
21629
  {
21632
21630
  required: field === null || field === void 0 ? void 0 : field.required,
21633
21631
  message: (field === null || field === void 0 ? void 0 : field.required) &&
21634
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
21632
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("coBenifits:isRequired")),
21635
21633
  },
21636
21634
  ] },
21637
21635
  React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
21638
21636
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
21639
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
21637
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes")))),
21640
21638
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
21641
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
21639
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no")))),
21642
21640
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
21643
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
21641
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na")))))) : (React.createElement(React.Fragment, null,
21644
21642
  React.createElement("div", { className: "yes-no-radio-container" },
21645
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21643
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21646
21644
  React.createElement("div", { className: "yes-no-radio-container" },
21647
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21645
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21648
21646
  React.createElement("div", { className: "yes-no-radio-container" },
21649
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
21647
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))))));
21650
21648
  })));
21651
21649
  })))));
21652
21650
  };
21653
21651
 
21654
21652
  var Social = function (props) {
21655
21653
  var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
21656
- translator.setDefaultNamespace("unfcccSdTool");
21657
- var t = translator.t;
21654
+ var t = translator;
21658
21655
  var form = antd.Form.useForm()[0];
21659
21656
  var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
21660
21657
  var _b = React.useState(), socialDetails = _b[0], setSocialDetails = _b[1];
21661
21658
  var _c = React.useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
21662
21659
  var SocialElementDetails = [
21663
21660
  {
21664
- title: t("jobs"),
21665
- label: t("jobRelatedMainQ"),
21661
+ title: t("coBenifits:jobs"),
21662
+ label: t("coBenifits:jobRelatedMainQ"),
21666
21663
  name: "jobRelatedMainQ",
21667
21664
  subItems: [
21668
21665
  {
21669
21666
  type: exports.FormElementType.Radio,
21670
- label: t("jobRelatedSubQ1"),
21667
+ label: t("coBenifits:jobRelatedSubQ1"),
21671
21668
  name: "jobRelatedSubQ1",
21672
21669
  },
21673
21670
  {
21674
21671
  type: exports.FormElementType.Radio,
21675
- label: t("jobRelatedSubQ2"),
21672
+ label: t("coBenifits:jobRelatedSubQ2"),
21676
21673
  name: "jobRelatedSubQ2",
21677
21674
  },
21678
21675
  {
21679
21676
  type: exports.FormElementType.Radio,
21680
- label: t("jobRelatedSubQ3"),
21677
+ label: t("coBenifits:jobRelatedSubQ3"),
21681
21678
  name: "jobRelatedSubQ3",
21682
21679
  },
21683
21680
  {
21684
21681
  type: exports.FormElementType.Radio,
21685
- label: t("jobRelatedSubQ4"),
21682
+ label: t("coBenifits:jobRelatedSubQ4"),
21686
21683
  name: "jobRelatedSubQ4",
21687
21684
  },
21688
21685
  {
21689
21686
  type: exports.FormElementType.Input,
21690
- label: t("jobRelatedSubQ5"),
21687
+ label: t("coBenifits:jobRelatedSubQ5"),
21691
21688
  name: "jobRelatedSubQ5",
21692
21689
  },
21693
21690
  {
21694
21691
  type: exports.FormElementType.Input,
21695
- label: t("jobRelatedSubQ6"),
21692
+ label: t("coBenifits:jobRelatedSubQ6"),
21696
21693
  name: "jobRelatedSubQ6",
21697
21694
  },
21698
21695
  {
21699
21696
  type: exports.FormElementType.Input,
21700
- label: t("jobRelatedSubQ7"),
21697
+ label: t("coBenifits:jobRelatedSubQ7"),
21701
21698
  name: "jobRelatedSubQ7",
21702
21699
  },
21703
21700
  ],
21704
21701
  },
21705
21702
  {
21706
- title: t("health"),
21707
- label: t("healthRelatedMainQ"),
21703
+ title: t("coBenifits:health"),
21704
+ label: t("coBenifits:healthRelatedMainQ"),
21708
21705
  name: "healthRelatedMainQ",
21709
21706
  subItems: [
21710
21707
  {
21711
21708
  type: exports.FormElementType.Radio,
21712
- label: t("healthRelatedSubQ1"),
21709
+ label: t("coBenifits:healthRelatedSubQ1"),
21713
21710
  name: "healthRelatedSubQ1",
21714
21711
  },
21715
21712
  {
21716
21713
  type: exports.FormElementType.Radio,
21717
- label: t("healthRelatedSubQ2"),
21714
+ label: t("coBenifits:healthRelatedSubQ2"),
21718
21715
  name: "healthRelatedSubQ2",
21719
21716
  },
21720
21717
  {
21721
21718
  type: exports.FormElementType.Radio,
21722
- label: t("healthRelatedSubQ3"),
21719
+ label: t("coBenifits:healthRelatedSubQ3"),
21723
21720
  name: "healthRelatedSubQ3",
21724
21721
  },
21725
21722
  {
21726
21723
  type: exports.FormElementType.Radio,
21727
- label: t("healthRelatedSubQ4"),
21724
+ label: t("coBenifits:healthRelatedSubQ4"),
21728
21725
  name: "healthRelatedSubQ4",
21729
21726
  },
21730
21727
  {
21731
21728
  type: exports.FormElementType.Radio,
21732
- label: t("healthRelatedSubQ5"),
21729
+ label: t("coBenifits:healthRelatedSubQ5"),
21733
21730
  name: "healthRelatedSubQ5",
21734
21731
  },
21735
21732
  {
21736
21733
  type: exports.FormElementType.Radio,
21737
- label: t("healthRelatedSubQ6"),
21734
+ label: t("coBenifits:healthRelatedSubQ6"),
21738
21735
  name: "healthRelatedSubQ6",
21739
21736
  },
21740
21737
  {
21741
21738
  type: exports.FormElementType.Radio,
21742
- label: t("healthRelatedSubQ7"),
21739
+ label: t("coBenifits:healthRelatedSubQ7"),
21743
21740
  name: "healthRelatedSubQ7",
21744
21741
  },
21745
21742
  {
21746
21743
  type: exports.FormElementType.Radio,
21747
- label: t("healthRelatedSubQ8"),
21744
+ label: t("coBenifits:healthRelatedSubQ8"),
21748
21745
  name: "healthRelatedSubQ8",
21749
21746
  },
21750
21747
  ],
21751
21748
  },
21752
21749
  {
21753
- title: t("educational"),
21754
- label: t("educationRelatedMainQ"),
21750
+ title: t("coBenifits:educational"),
21751
+ label: t("coBenifits:educationRelatedMainQ"),
21755
21752
  name: "educationRelatedMainQ",
21756
21753
  subItems: [
21757
21754
  {
21758
21755
  type: exports.FormElementType.Radio,
21759
- label: t("educationRelatedSubQ1"),
21756
+ label: t("coBenifits:educationRelatedSubQ1"),
21760
21757
  name: "educationRelatedSubQ1",
21761
21758
  },
21762
21759
  {
21763
21760
  type: exports.FormElementType.Radio,
21764
- label: t("educationRelatedSubQ2"),
21761
+ label: t("coBenifits:educationRelatedSubQ2"),
21765
21762
  name: "educationRelatedSubQ2",
21766
21763
  },
21767
21764
  {
21768
21765
  type: exports.FormElementType.Radio,
21769
- label: t("educationRelatedSubQ3"),
21766
+ label: t("coBenifits:educationRelatedSubQ3"),
21770
21767
  name: "educationRelatedSubQ3",
21771
21768
  },
21772
21769
  {
21773
21770
  type: exports.FormElementType.Radio,
21774
- label: t("educationRelatedSubQ4"),
21771
+ label: t("coBenifits:educationRelatedSubQ4"),
21775
21772
  name: "educationRelatedSubQ4",
21776
21773
  },
21777
21774
  ],
21778
21775
  },
21779
21776
  {
21780
- title: t("welfare"),
21781
- label: t("welfareRelatedMainQ"),
21777
+ title: t("coBenifits:welfare"),
21778
+ label: t("coBenifits:welfareRelatedMainQ"),
21782
21779
  name: "welfareRelatedMainQ",
21783
21780
  subItems: [
21784
21781
  {
21785
21782
  type: exports.FormElementType.Radio,
21786
- label: t("welfareRelatedSubQ1"),
21783
+ label: t("coBenifits:welfareRelatedSubQ1"),
21787
21784
  name: "welfareRelatedSubQ1",
21788
21785
  },
21789
21786
  {
21790
21787
  type: exports.FormElementType.Radio,
21791
- label: t("welfareRelatedSubQ2"),
21788
+ label: t("coBenifits:welfareRelatedSubQ2"),
21792
21789
  name: "welfareRelatedSubQ2",
21793
21790
  },
21794
21791
  {
21795
21792
  type: exports.FormElementType.Radio,
21796
- label: t("welfareRelatedSubQ3"),
21793
+ label: t("coBenifits:welfareRelatedSubQ3"),
21797
21794
  name: "welfareRelatedSubQ3",
21798
21795
  },
21799
21796
  {
21800
21797
  type: exports.FormElementType.Radio,
21801
- label: t("welfareRelatedSubQ4"),
21798
+ label: t("coBenifits:welfareRelatedSubQ4"),
21802
21799
  name: "welfareRelatedSubQ4",
21803
21800
  },
21804
21801
  {
21805
21802
  type: exports.FormElementType.Radio,
21806
- label: t("welfareRelatedSubQ5"),
21803
+ label: t("coBenifits:welfareRelatedSubQ5"),
21807
21804
  name: "welfareRelatedSubQ5",
21808
21805
  },
21809
21806
  {
21810
21807
  type: exports.FormElementType.Radio,
21811
- label: t("welfareRelatedSubQ6"),
21808
+ label: t("coBenifits:welfareRelatedSubQ6"),
21812
21809
  name: "welfareRelatedSubQ6",
21813
21810
  },
21814
21811
  {
21815
21812
  type: exports.FormElementType.Radio,
21816
- label: t("welfareRelatedSubQ7"),
21813
+ label: t("coBenifits:welfareRelatedSubQ7"),
21817
21814
  name: "welfareRelatedSubQ7",
21818
21815
  },
21819
21816
  {
21820
21817
  type: exports.FormElementType.Radio,
21821
- label: t("welfareRelatedSubQ8"),
21818
+ label: t("coBenifits:welfareRelatedSubQ8"),
21822
21819
  name: "welfareRelatedSubQ8",
21823
21820
  },
21824
21821
  ],
@@ -21877,7 +21874,7 @@ var Social = function (props) {
21877
21874
  React.createElement(antd.Col, { span: 24 },
21878
21875
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21879
21876
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21880
- React.createElement("span", null, t("social"))))),
21877
+ React.createElement("span", null, t("coBenifits:social"))))),
21881
21878
  viewOnly && !socialViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
21882
21879
  ((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) {
21883
21880
  return (React.createElement(React.Fragment, null,
@@ -21888,11 +21885,11 @@ var Social = function (props) {
21888
21885
  React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
21889
21886
  React.createElement(antd.Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
21890
21887
  React.createElement("div", { className: "radio-container" },
21891
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21888
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21892
21889
  React.createElement("div", { className: "radio-container" },
21893
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21890
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21894
21891
  React.createElement("div", { className: "radio-container" },
21895
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))),
21892
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))),
21896
21893
  form.getFieldValue(element.name) ===
21897
21894
  exports.RadioButtonStatus.YES &&
21898
21895
  element.subItems.map(function (elementItem) {
@@ -21905,11 +21902,11 @@ var Social = function (props) {
21905
21902
  ] },
21906
21903
  React.createElement(antd.Radio.Group, { size: "middle" },
21907
21904
  React.createElement("div", { className: "radio-container" },
21908
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21905
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21909
21906
  React.createElement("div", { className: "radio-container" },
21910
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21907
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21911
21908
  React.createElement("div", { className: "radio-container" },
21912
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))));
21909
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))));
21913
21910
  }
21914
21911
  else if (elementItem.type === exports.FormElementType.Input) {
21915
21912
  return (React.createElement(antd.Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
@@ -22457,14 +22454,14 @@ var CoBenifitsComponent = function (props) {
22457
22454
  ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
22458
22455
  ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
22459
22456
  : {}
22460
- : undefined, viewOnly: viewOnly || false, translator: translator }),
22457
+ : undefined, viewOnly: viewOnly || false, translator: t }),
22461
22458
  React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
22462
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator }),
22459
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: t }),
22463
22460
  React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
22464
22461
  ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
22465
22462
  ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
22466
22463
  : {}
22467
- : undefined, viewOnly: viewOnly || false, translator: translator }))),
22464
+ : undefined, viewOnly: viewOnly || false, translator: t }))),
22468
22465
  },
22469
22466
  {
22470
22467
  label: t("coBenifits:assessment"),