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