@undp/carbon-library 1.0.292-CARBON-369.2 → 1.0.292-CARBON-337.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -20599,204 +20599,203 @@ var Safeguards = function (props) {
20599
20599
 
20600
20600
  var Environmental = function (props) {
20601
20601
  var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
20602
- translator.setDefaultNamespace("unfcccSdTool");
20603
- var t = translator.t;
20602
+ var t = translator;
20604
20603
  var environmentalDetailsInitial = [
20605
20604
  {
20606
- section: t("air"),
20605
+ section: t("coBenifits:air"),
20607
20606
  fields: [
20608
20607
  {
20609
20608
  name: "airQ1",
20610
- label: t("airQ1"),
20609
+ label: t("coBenifits:airQ1"),
20611
20610
  hide: false,
20612
20611
  required: false,
20613
20612
  },
20614
20613
  {
20615
20614
  name: "airQ2",
20616
- label: t("airQ2"),
20615
+ label: t("coBenifits:airQ2"),
20617
20616
  hide: true,
20618
20617
  required: true,
20619
20618
  },
20620
20619
  {
20621
20620
  name: "airQ3",
20622
- label: t("airQ3"),
20621
+ label: t("coBenifits:airQ3"),
20623
20622
  hide: true,
20624
20623
  required: true,
20625
20624
  },
20626
20625
  {
20627
20626
  name: "airQ4",
20628
- label: t("airQ4"),
20627
+ label: t("coBenifits:airQ4"),
20629
20628
  hide: true,
20630
20629
  required: true,
20631
20630
  },
20632
20631
  {
20633
20632
  name: "airQ5",
20634
- label: t("airQ5"),
20633
+ label: t("coBenifits:airQ5"),
20635
20634
  hide: true,
20636
20635
  required: true,
20637
20636
  },
20638
20637
  {
20639
20638
  name: "airQ6",
20640
- label: t("airQ6"),
20639
+ label: t("coBenifits:airQ6"),
20641
20640
  hide: true,
20642
20641
  required: true,
20643
20642
  },
20644
20643
  {
20645
20644
  name: "airQ7",
20646
- label: t("airQ7"),
20645
+ label: t("coBenifits:airQ7"),
20647
20646
  hide: true,
20648
20647
  required: true,
20649
20648
  },
20650
20649
  {
20651
20650
  name: "airQ8",
20652
- label: t("airQ8"),
20651
+ label: t("coBenifits:airQ8"),
20653
20652
  hide: true,
20654
20653
  required: true,
20655
20654
  },
20656
20655
  {
20657
20656
  name: "airQ9",
20658
- label: t("airQ9"),
20657
+ label: t("coBenifits:airQ9"),
20659
20658
  hide: true,
20660
20659
  required: true,
20661
20660
  },
20662
20661
  ],
20663
20662
  },
20664
20663
  {
20665
- section: t("land"),
20664
+ section: t("coBenifits:land"),
20666
20665
  fields: [
20667
20666
  {
20668
20667
  name: "landQ1",
20669
- label: t("landQ1"),
20668
+ label: t("coBenifits:landQ1"),
20670
20669
  hide: false,
20671
20670
  required: false,
20672
20671
  },
20673
20672
  {
20674
20673
  name: "landQ2",
20675
- label: t("landQ2"),
20674
+ label: t("coBenifits:landQ2"),
20676
20675
  hide: true,
20677
20676
  required: true,
20678
20677
  },
20679
20678
  {
20680
20679
  name: "landQ3",
20681
- label: t("landQ3"),
20680
+ label: t("coBenifits:landQ3"),
20682
20681
  hide: true,
20683
20682
  required: true,
20684
20683
  },
20685
20684
  {
20686
20685
  name: "landQ4",
20687
- label: t("landQ4"),
20686
+ label: t("coBenifits:landQ4"),
20688
20687
  hide: true,
20689
20688
  required: true,
20690
20689
  },
20691
20690
  {
20692
20691
  name: "landQ5",
20693
- label: t("landQ5"),
20692
+ label: t("coBenifits:landQ5"),
20694
20693
  hide: true,
20695
20694
  required: true,
20696
20695
  },
20697
20696
  {
20698
20697
  name: "landQ6",
20699
- label: t("landQ6"),
20698
+ label: t("coBenifits:landQ6"),
20700
20699
  hide: true,
20701
20700
  required: true,
20702
20701
  },
20703
20702
  {
20704
20703
  name: "landQ7",
20705
- label: t("landQ7"),
20704
+ label: t("coBenifits:landQ7"),
20706
20705
  hide: true,
20707
20706
  required: true,
20708
20707
  },
20709
20708
  {
20710
20709
  name: "landQ8",
20711
- label: t("landQ8"),
20710
+ label: t("coBenifits:landQ8"),
20712
20711
  hide: true,
20713
20712
  required: true,
20714
20713
  },
20715
20714
  ],
20716
20715
  },
20717
20716
  {
20718
- section: t("water"),
20717
+ section: t("coBenifits:water"),
20719
20718
  fields: [
20720
20719
  {
20721
20720
  name: "waterQ1",
20722
- label: t("waterQ1"),
20721
+ label: t("coBenifits:waterQ1"),
20723
20722
  hide: false,
20724
20723
  required: false,
20725
20724
  },
20726
20725
  {
20727
20726
  name: "waterQ2",
20728
- label: t("waterQ2"),
20727
+ label: t("coBenifits:waterQ2"),
20729
20728
  hide: true,
20730
20729
  required: true,
20731
20730
  },
20732
20731
  {
20733
20732
  name: "waterQ3",
20734
- label: t("waterQ3"),
20733
+ label: t("coBenifits:waterQ3"),
20735
20734
  hide: true,
20736
20735
  required: true,
20737
20736
  },
20738
20737
  {
20739
20738
  name: "waterQ4",
20740
- label: t("waterQ4"),
20739
+ label: t("coBenifits:waterQ4"),
20741
20740
  hide: true,
20742
20741
  required: true,
20743
20742
  },
20744
20743
  {
20745
20744
  name: "waterQ5",
20746
- label: t("waterQ5"),
20745
+ label: t("coBenifits:waterQ5"),
20747
20746
  hide: true,
20748
20747
  required: true,
20749
20748
  },
20750
20749
  {
20751
20750
  name: "waterQ6",
20752
- label: t("waterQ6"),
20751
+ label: t("coBenifits:waterQ6"),
20753
20752
  hide: true,
20754
20753
  required: true,
20755
20754
  },
20756
20755
  {
20757
20756
  name: "waterQ7",
20758
- label: t("waterQ7"),
20757
+ label: t("coBenifits:waterQ7"),
20759
20758
  hide: true,
20760
20759
  required: true,
20761
20760
  },
20762
20761
  ],
20763
20762
  },
20764
20763
  {
20765
- section: t("naturalResource"),
20764
+ section: t("coBenifits:naturalResource"),
20766
20765
  fields: [
20767
20766
  {
20768
20767
  name: "naturalResourceQ1",
20769
- label: t("naturalResourceQ1"),
20768
+ label: t("coBenifits:naturalResourceQ1"),
20770
20769
  hide: false,
20771
20770
  required: false,
20772
20771
  },
20773
20772
  {
20774
20773
  name: "naturalResourceQ2",
20775
- label: t("naturalResourceQ2"),
20774
+ label: t("coBenifits:naturalResourceQ2"),
20776
20775
  hide: true,
20777
20776
  required: true,
20778
20777
  },
20779
20778
  {
20780
20779
  name: "naturalResourceQ3",
20781
- label: t("naturalResourceQ3"),
20780
+ label: t("coBenifits:naturalResourceQ3"),
20782
20781
  hide: true,
20783
20782
  required: true,
20784
20783
  },
20785
20784
  {
20786
20785
  name: "naturalResourceQ4",
20787
- label: t("naturalResourceQ4"),
20786
+ label: t("coBenifits:naturalResourceQ4"),
20788
20787
  hide: true,
20789
20788
  required: true,
20790
20789
  },
20791
20790
  {
20792
20791
  name: "naturalResourceQ5",
20793
- label: t("naturalResourceQ5"),
20792
+ label: t("coBenifits:naturalResourceQ5"),
20794
20793
  hide: true,
20795
20794
  required: true,
20796
20795
  },
20797
20796
  {
20798
20797
  name: "naturalResourceQ6",
20799
- label: t("naturalResourceQ6"),
20798
+ label: t("coBenifits:naturalResourceQ6"),
20800
20799
  hide: true,
20801
20800
  required: true,
20802
20801
  },
@@ -20814,7 +20813,7 @@ var Environmental = function (props) {
20814
20813
  if (changedFieldName.includes("1")) {
20815
20814
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
20816
20815
  var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
20817
- var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
20816
+ var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t("coBenifits:".concat(sectionName_1)); });
20818
20817
  updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
20819
20818
  if (field.name !== changedFieldName) {
20820
20819
  field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
@@ -20833,35 +20832,35 @@ var Environmental = function (props) {
20833
20832
  if (environmentalViewData && viewOnly === true) {
20834
20833
  var updatedEnvironmentalData = [
20835
20834
  {
20836
- section: t("air"),
20835
+ section: t("coBenifits:air"),
20837
20836
  fields: [],
20838
20837
  },
20839
20838
  {
20840
- section: t("land"),
20839
+ section: t("coBenifits:land"),
20841
20840
  fields: [],
20842
20841
  },
20843
20842
  {
20844
- section: t("water"),
20843
+ section: t("coBenifits:water"),
20845
20844
  fields: [],
20846
20845
  },
20847
20846
  {
20848
- section: t("naturalResource"),
20847
+ section: t("coBenifits:naturalResource"),
20849
20848
  fields: [],
20850
20849
  },
20851
20850
  ];
20852
20851
  var _loop_1 = function (key) {
20853
20852
  var section = "";
20854
20853
  if (String(key).includes("air")) {
20855
- section = t("air");
20854
+ section = t("coBenifits:air");
20856
20855
  }
20857
20856
  else if (String(key).includes("land")) {
20858
- section = t("land");
20857
+ section = t("coBenifits:land");
20859
20858
  }
20860
20859
  else if (String(key).includes("water")) {
20861
- section = t("water");
20860
+ section = t("coBenifits:water");
20862
20861
  }
20863
20862
  else if (String(key).includes("naturalResource")) {
20864
- section = t("naturalResource");
20863
+ section = t("coBenifits:naturalResource");
20865
20864
  }
20866
20865
  var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
20867
20866
  if (environmentalItem) {
@@ -20889,11 +20888,11 @@ var Environmental = function (props) {
20889
20888
  React.createElement(antd.Row, { justify: "center", align: "middle", style: { width: "100%" } },
20890
20889
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20891
20890
  React.createElement("span", null,
20892
- React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("unfcccSdToolTitle")))),
20891
+ React.createElement("a", { target: "_blank", href: "https://www4.unfccc.int/sites/sdcmicrosite/Pages/Create-a-report.aspx" }, t("coBenifits:unfcccSdToolTitle")))),
20893
20892
  React.createElement(antd.Col, { span: 24 },
20894
20893
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
20895
20894
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
20896
- React.createElement("span", null, t("environmental"))),
20895
+ React.createElement("span", null, t("coBenifits:environmental"))),
20897
20896
  React.createElement(antd.Col, { span: 24 },
20898
20897
  React.createElement("div", { className: "unfccSdTool-section-divider", style: { marginBottom: "20px" } })))),
20899
20898
  (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 :
@@ -20906,189 +20905,188 @@ var Environmental = function (props) {
20906
20905
  {
20907
20906
  required: field === null || field === void 0 ? void 0 : field.required,
20908
20907
  message: (field === null || field === void 0 ? void 0 : field.required) &&
20909
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
20908
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("coBenifits:isRequired")),
20910
20909
  },
20911
20910
  ] },
20912
20911
  React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
20913
20912
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
20914
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
20913
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes")))),
20915
20914
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
20916
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
20915
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no")))),
20917
20916
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
20918
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
20917
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na")))))) : (React.createElement(React.Fragment, null,
20919
20918
  React.createElement("div", { className: "yes-no-radio-container" },
20920
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
20919
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
20921
20920
  React.createElement("div", { className: "yes-no-radio-container" },
20922
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
20921
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
20923
20922
  React.createElement("div", { className: "yes-no-radio-container" },
20924
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
20923
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))))));
20925
20924
  })));
20926
20925
  })))));
20927
20926
  };
20928
20927
 
20929
20928
  var Economic = function (props) {
20930
20929
  var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
20931
- translator.setDefaultNamespace("unfcccSdTool");
20932
- var t = translator.t;
20930
+ var t = translator;
20933
20931
  var economicDetailsInitial = [
20934
20932
  {
20935
- section: t("growth"),
20933
+ section: t("coBenifits:growth"),
20936
20934
  fields: [
20937
20935
  {
20938
20936
  name: "growthQ1",
20939
- label: t("growthQ1"),
20937
+ label: t("coBenifits:growthQ1"),
20940
20938
  hide: false,
20941
20939
  required: false,
20942
20940
  },
20943
20941
  {
20944
20942
  name: "growthQ2",
20945
- label: t("growthQ2"),
20943
+ label: t("coBenifits:growthQ2"),
20946
20944
  hide: true,
20947
20945
  required: true,
20948
20946
  },
20949
20947
  {
20950
20948
  name: "growthQ3",
20951
- label: t("growthQ3"),
20949
+ label: t("coBenifits:growthQ3"),
20952
20950
  hide: true,
20953
20951
  required: true,
20954
20952
  },
20955
20953
  {
20956
20954
  name: "growthQ4",
20957
- label: t("growthQ4"),
20955
+ label: t("coBenifits:growthQ4"),
20958
20956
  hide: true,
20959
20957
  required: true,
20960
20958
  },
20961
20959
  {
20962
20960
  name: "growthQ5",
20963
- label: t("growthQ5"),
20961
+ label: t("coBenifits:growthQ5"),
20964
20962
  hide: true,
20965
20963
  required: true,
20966
20964
  },
20967
20965
  {
20968
20966
  name: "growthQ6",
20969
- label: t("growthQ6"),
20967
+ label: t("coBenifits:growthQ6"),
20970
20968
  hide: true,
20971
20969
  required: true,
20972
20970
  },
20973
20971
  {
20974
20972
  name: "growthQ7",
20975
- label: t("growthQ7"),
20973
+ label: t("coBenifits:growthQ7"),
20976
20974
  hide: true,
20977
20975
  required: true,
20978
20976
  },
20979
20977
  {
20980
20978
  name: "growthQ8",
20981
- label: t("growthQ8"),
20979
+ label: t("coBenifits:growthQ8"),
20982
20980
  hide: true,
20983
20981
  required: true,
20984
20982
  },
20985
20983
  ],
20986
20984
  },
20987
20985
  {
20988
- section: t("energy"),
20986
+ section: t("coBenifits:energy"),
20989
20987
  fields: [
20990
20988
  {
20991
20989
  name: "energyQ1",
20992
- label: t("energyQ1"),
20990
+ label: t("coBenifits:energyQ1"),
20993
20991
  hide: false,
20994
20992
  required: false,
20995
20993
  },
20996
20994
  {
20997
20995
  name: "energyQ2",
20998
- label: t("energyQ2"),
20996
+ label: t("coBenifits:energyQ2"),
20999
20997
  hide: true,
21000
20998
  required: true,
21001
20999
  },
21002
21000
  {
21003
21001
  name: "energyQ3",
21004
- label: t("energyQ3"),
21002
+ label: t("coBenifits:energyQ3"),
21005
21003
  hide: true,
21006
21004
  required: true,
21007
21005
  },
21008
21006
  {
21009
21007
  name: "energyQ4",
21010
- label: t("energyQ4"),
21008
+ label: t("coBenifits:energyQ4"),
21011
21009
  hide: true,
21012
21010
  required: true,
21013
21011
  },
21014
21012
  {
21015
21013
  name: "energyQ5",
21016
- label: t("energyQ5"),
21014
+ label: t("coBenifits:energyQ5"),
21017
21015
  hide: true,
21018
21016
  required: true,
21019
21017
  },
21020
21018
  ],
21021
21019
  },
21022
21020
  {
21023
- section: t("techTransfer"),
21021
+ section: t("coBenifits:techTransfer"),
21024
21022
  fields: [
21025
21023
  {
21026
21024
  name: "techTransferQ1",
21027
- label: t("techTransferQ1"),
21025
+ label: t("coBenifits:techTransferQ1"),
21028
21026
  hide: false,
21029
21027
  required: false,
21030
21028
  },
21031
21029
  {
21032
21030
  name: "techTransferQ2",
21033
- label: t("techTransferQ2"),
21031
+ label: t("coBenifits:techTransferQ2"),
21034
21032
  hide: true,
21035
21033
  required: true,
21036
21034
  },
21037
21035
  {
21038
21036
  name: "techTransferQ3",
21039
- label: t("techTransferQ3"),
21037
+ label: t("coBenifits:techTransferQ3"),
21040
21038
  hide: true,
21041
21039
  required: true,
21042
21040
  },
21043
21041
  {
21044
21042
  name: "techTransferQ4",
21045
- label: t("techTransferQ4"),
21043
+ label: t("coBenifits:techTransferQ4"),
21046
21044
  hide: true,
21047
21045
  required: true,
21048
21046
  },
21049
21047
  {
21050
21048
  name: "techTransferQ5",
21051
- label: t("techTransferQ5"),
21049
+ label: t("coBenifits:techTransferQ5"),
21052
21050
  hide: true,
21053
21051
  required: true,
21054
21052
  },
21055
21053
  {
21056
21054
  name: "techTransferQ6",
21057
- label: t("techTransferQ6"),
21055
+ label: t("coBenifits:techTransferQ6"),
21058
21056
  hide: true,
21059
21057
  required: true,
21060
21058
  },
21061
21059
  ],
21062
21060
  },
21063
21061
  {
21064
- section: t("balanceOfPayments"),
21062
+ section: t("coBenifits:balanceOfPayments"),
21065
21063
  fields: [
21066
21064
  {
21067
21065
  name: "balanceOfPaymentsQ1",
21068
- label: t("balanceOfPaymentsQ1"),
21066
+ label: t("coBenifits:balanceOfPaymentsQ1"),
21069
21067
  hide: false,
21070
21068
  required: false,
21071
21069
  },
21072
21070
  {
21073
21071
  name: "balanceOfPaymentsQ2",
21074
- label: t("balanceOfPaymentsQ2"),
21072
+ label: t("coBenifits:balanceOfPaymentsQ2"),
21075
21073
  hide: true,
21076
21074
  required: true,
21077
21075
  },
21078
21076
  {
21079
21077
  name: "balanceOfPaymentsQ3",
21080
- label: t("balanceOfPaymentsQ3"),
21078
+ label: t("coBenifits:balanceOfPaymentsQ3"),
21081
21079
  hide: true,
21082
21080
  required: true,
21083
21081
  },
21084
21082
  ],
21085
21083
  },
21086
21084
  {
21087
- section: t("furtherInfo"),
21085
+ section: t("coBenifits:furtherInfo"),
21088
21086
  fields: [
21089
21087
  {
21090
21088
  name: "furtherInfoQ1",
21091
- label: t("furtherInfoQ1"),
21089
+ label: t("coBenifits:furtherInfoQ1"),
21092
21090
  hide: false,
21093
21091
  required: false,
21094
21092
  },
@@ -21124,42 +21122,42 @@ var Economic = function (props) {
21124
21122
  if (economicViewData && viewOnly === true) {
21125
21123
  var updatedEconomicData = [
21126
21124
  {
21127
- section: t("growth"),
21125
+ section: t("coBenifits:growth"),
21128
21126
  fields: [],
21129
21127
  },
21130
21128
  {
21131
- section: t("energy"),
21129
+ section: t("coBenifits:energy"),
21132
21130
  fields: [],
21133
21131
  },
21134
21132
  {
21135
- section: t("techTransfer"),
21133
+ section: t("coBenifits:techTransfer"),
21136
21134
  fields: [],
21137
21135
  },
21138
21136
  {
21139
- section: t("balanceOfPayments"),
21137
+ section: t("coBenifits:balanceOfPayments"),
21140
21138
  fields: [],
21141
21139
  },
21142
21140
  {
21143
- section: t("furtherInfo"),
21141
+ section: t("coBenifits:furtherInfo"),
21144
21142
  fields: [],
21145
21143
  },
21146
21144
  ];
21147
21145
  var _loop_1 = function (key) {
21148
21146
  var section = "";
21149
21147
  if (String(key).includes("growth")) {
21150
- section = t("growth");
21148
+ section = t("coBenifits:growth");
21151
21149
  }
21152
21150
  else if (String(key).includes("energy")) {
21153
- section = t("energy");
21151
+ section = t("coBenifits:energy");
21154
21152
  }
21155
21153
  else if (String(key).includes("techTransfer")) {
21156
- section = t("techTransfer");
21154
+ section = t("coBenifits:techTransfer");
21157
21155
  }
21158
21156
  else if (String(key).includes("balanceOfPayments")) {
21159
- section = t("balanceOfPayments");
21157
+ section = t("coBenifits:balanceOfPayments");
21160
21158
  }
21161
21159
  else if (String(key).includes("furtherInfo")) {
21162
- section = t("furtherInfo");
21160
+ section = t("coBenifits:furtherInfo");
21163
21161
  }
21164
21162
  var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
21165
21163
  if (economicItem) {
@@ -21187,7 +21185,7 @@ var Economic = function (props) {
21187
21185
  React.createElement(antd.Col, { span: 24 },
21188
21186
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21189
21187
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21190
- React.createElement("span", null, t("economic"))))),
21188
+ React.createElement("span", null, t("coBenifits:economic"))))),
21191
21189
  (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 :
21192
21190
  economicDetails.map(function (environmentalDetail) {
21193
21191
  var _a;
@@ -21198,194 +21196,193 @@ var Economic = function (props) {
21198
21196
  {
21199
21197
  required: field === null || field === void 0 ? void 0 : field.required,
21200
21198
  message: (field === null || field === void 0 ? void 0 : field.required) &&
21201
- "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
21199
+ "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("coBenifits:isRequired")),
21202
21200
  },
21203
21201
  ] },
21204
21202
  React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
21205
21203
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
21206
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
21204
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes")))),
21207
21205
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
21208
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
21206
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no")))),
21209
21207
  (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
21210
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
21208
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na")))))) : (React.createElement(React.Fragment, null,
21211
21209
  React.createElement("div", { className: "yes-no-radio-container" },
21212
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21210
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21213
21211
  React.createElement("div", { className: "yes-no-radio-container" },
21214
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21212
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21215
21213
  React.createElement("div", { className: "yes-no-radio-container" },
21216
- React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
21214
+ React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))))));
21217
21215
  })));
21218
21216
  })))));
21219
21217
  };
21220
21218
 
21221
21219
  var Social = function (props) {
21222
21220
  var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
21223
- translator.setDefaultNamespace("unfcccSdTool");
21224
- var t = translator.t;
21221
+ var t = translator;
21225
21222
  var form = antd.Form.useForm()[0];
21226
21223
  var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
21227
21224
  var _b = React.useState(), socialDetails = _b[0], setSocialDetails = _b[1];
21228
21225
  var _c = React.useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
21229
21226
  var SocialElementDetails = [
21230
21227
  {
21231
- title: t("jobs"),
21232
- label: t("jobRelatedMainQ"),
21228
+ title: t("coBenifits:jobs"),
21229
+ label: t("coBenifits:jobRelatedMainQ"),
21233
21230
  name: "jobRelatedMainQ",
21234
21231
  subItems: [
21235
21232
  {
21236
21233
  type: exports.FormElementType.Radio,
21237
- label: t("jobRelatedSubQ1"),
21234
+ label: t("coBenifits:jobRelatedSubQ1"),
21238
21235
  name: "jobRelatedSubQ1",
21239
21236
  },
21240
21237
  {
21241
21238
  type: exports.FormElementType.Radio,
21242
- label: t("jobRelatedSubQ2"),
21239
+ label: t("coBenifits:jobRelatedSubQ2"),
21243
21240
  name: "jobRelatedSubQ2",
21244
21241
  },
21245
21242
  {
21246
21243
  type: exports.FormElementType.Radio,
21247
- label: t("jobRelatedSubQ3"),
21244
+ label: t("coBenifits:jobRelatedSubQ3"),
21248
21245
  name: "jobRelatedSubQ3",
21249
21246
  },
21250
21247
  {
21251
21248
  type: exports.FormElementType.Radio,
21252
- label: t("jobRelatedSubQ4"),
21249
+ label: t("coBenifits:jobRelatedSubQ4"),
21253
21250
  name: "jobRelatedSubQ4",
21254
21251
  },
21255
21252
  {
21256
21253
  type: exports.FormElementType.Input,
21257
- label: t("jobRelatedSubQ5"),
21254
+ label: t("coBenifits:jobRelatedSubQ5"),
21258
21255
  name: "jobRelatedSubQ5",
21259
21256
  },
21260
21257
  {
21261
21258
  type: exports.FormElementType.Input,
21262
- label: t("jobRelatedSubQ6"),
21259
+ label: t("coBenifits:jobRelatedSubQ6"),
21263
21260
  name: "jobRelatedSubQ6",
21264
21261
  },
21265
21262
  {
21266
21263
  type: exports.FormElementType.Input,
21267
- label: t("jobRelatedSubQ7"),
21264
+ label: t("coBenifits:jobRelatedSubQ7"),
21268
21265
  name: "jobRelatedSubQ7",
21269
21266
  },
21270
21267
  ],
21271
21268
  },
21272
21269
  {
21273
- title: t("health"),
21274
- label: t("healthRelatedMainQ"),
21270
+ title: t("coBenifits:health"),
21271
+ label: t("coBenifits:healthRelatedMainQ"),
21275
21272
  name: "healthRelatedMainQ",
21276
21273
  subItems: [
21277
21274
  {
21278
21275
  type: exports.FormElementType.Radio,
21279
- label: t("healthRelatedSubQ1"),
21276
+ label: t("coBenifits:healthRelatedSubQ1"),
21280
21277
  name: "healthRelatedSubQ1",
21281
21278
  },
21282
21279
  {
21283
21280
  type: exports.FormElementType.Radio,
21284
- label: t("healthRelatedSubQ2"),
21281
+ label: t("coBenifits:healthRelatedSubQ2"),
21285
21282
  name: "healthRelatedSubQ2",
21286
21283
  },
21287
21284
  {
21288
21285
  type: exports.FormElementType.Radio,
21289
- label: t("healthRelatedSubQ3"),
21286
+ label: t("coBenifits:healthRelatedSubQ3"),
21290
21287
  name: "healthRelatedSubQ3",
21291
21288
  },
21292
21289
  {
21293
21290
  type: exports.FormElementType.Radio,
21294
- label: t("healthRelatedSubQ4"),
21291
+ label: t("coBenifits:healthRelatedSubQ4"),
21295
21292
  name: "healthRelatedSubQ4",
21296
21293
  },
21297
21294
  {
21298
21295
  type: exports.FormElementType.Radio,
21299
- label: t("healthRelatedSubQ5"),
21296
+ label: t("coBenifits:healthRelatedSubQ5"),
21300
21297
  name: "healthRelatedSubQ5",
21301
21298
  },
21302
21299
  {
21303
21300
  type: exports.FormElementType.Radio,
21304
- label: t("healthRelatedSubQ6"),
21301
+ label: t("coBenifits:healthRelatedSubQ6"),
21305
21302
  name: "healthRelatedSubQ6",
21306
21303
  },
21307
21304
  {
21308
21305
  type: exports.FormElementType.Radio,
21309
- label: t("healthRelatedSubQ7"),
21306
+ label: t("coBenifits:healthRelatedSubQ7"),
21310
21307
  name: "healthRelatedSubQ7",
21311
21308
  },
21312
21309
  {
21313
21310
  type: exports.FormElementType.Radio,
21314
- label: t("healthRelatedSubQ8"),
21311
+ label: t("coBenifits:healthRelatedSubQ8"),
21315
21312
  name: "healthRelatedSubQ8",
21316
21313
  },
21317
21314
  ],
21318
21315
  },
21319
21316
  {
21320
- title: t("educational"),
21321
- label: t("educationRelatedMainQ"),
21317
+ title: t("coBenifits:educational"),
21318
+ label: t("coBenifits:educationRelatedMainQ"),
21322
21319
  name: "educationRelatedMainQ",
21323
21320
  subItems: [
21324
21321
  {
21325
21322
  type: exports.FormElementType.Radio,
21326
- label: t("educationRelatedSubQ1"),
21323
+ label: t("coBenifits:educationRelatedSubQ1"),
21327
21324
  name: "educationRelatedSubQ1",
21328
21325
  },
21329
21326
  {
21330
21327
  type: exports.FormElementType.Radio,
21331
- label: t("educationRelatedSubQ2"),
21328
+ label: t("coBenifits:educationRelatedSubQ2"),
21332
21329
  name: "educationRelatedSubQ2",
21333
21330
  },
21334
21331
  {
21335
21332
  type: exports.FormElementType.Radio,
21336
- label: t("educationRelatedSubQ3"),
21333
+ label: t("coBenifits:educationRelatedSubQ3"),
21337
21334
  name: "educationRelatedSubQ3",
21338
21335
  },
21339
21336
  {
21340
21337
  type: exports.FormElementType.Radio,
21341
- label: t("educationRelatedSubQ4"),
21338
+ label: t("coBenifits:educationRelatedSubQ4"),
21342
21339
  name: "educationRelatedSubQ4",
21343
21340
  },
21344
21341
  ],
21345
21342
  },
21346
21343
  {
21347
- title: t("welfare"),
21348
- label: t("welfareRelatedMainQ"),
21344
+ title: t("coBenifits:welfare"),
21345
+ label: t("coBenifits:welfareRelatedMainQ"),
21349
21346
  name: "welfareRelatedMainQ",
21350
21347
  subItems: [
21351
21348
  {
21352
21349
  type: exports.FormElementType.Radio,
21353
- label: t("welfareRelatedSubQ1"),
21350
+ label: t("coBenifits:welfareRelatedSubQ1"),
21354
21351
  name: "welfareRelatedSubQ1",
21355
21352
  },
21356
21353
  {
21357
21354
  type: exports.FormElementType.Radio,
21358
- label: t("welfareRelatedSubQ2"),
21355
+ label: t("coBenifits:welfareRelatedSubQ2"),
21359
21356
  name: "welfareRelatedSubQ2",
21360
21357
  },
21361
21358
  {
21362
21359
  type: exports.FormElementType.Radio,
21363
- label: t("welfareRelatedSubQ3"),
21360
+ label: t("coBenifits:welfareRelatedSubQ3"),
21364
21361
  name: "welfareRelatedSubQ3",
21365
21362
  },
21366
21363
  {
21367
21364
  type: exports.FormElementType.Radio,
21368
- label: t("welfareRelatedSubQ4"),
21365
+ label: t("coBenifits:welfareRelatedSubQ4"),
21369
21366
  name: "welfareRelatedSubQ4",
21370
21367
  },
21371
21368
  {
21372
21369
  type: exports.FormElementType.Radio,
21373
- label: t("welfareRelatedSubQ5"),
21370
+ label: t("coBenifits:welfareRelatedSubQ5"),
21374
21371
  name: "welfareRelatedSubQ5",
21375
21372
  },
21376
21373
  {
21377
21374
  type: exports.FormElementType.Radio,
21378
- label: t("welfareRelatedSubQ6"),
21375
+ label: t("coBenifits:welfareRelatedSubQ6"),
21379
21376
  name: "welfareRelatedSubQ6",
21380
21377
  },
21381
21378
  {
21382
21379
  type: exports.FormElementType.Radio,
21383
- label: t("welfareRelatedSubQ7"),
21380
+ label: t("coBenifits:welfareRelatedSubQ7"),
21384
21381
  name: "welfareRelatedSubQ7",
21385
21382
  },
21386
21383
  {
21387
21384
  type: exports.FormElementType.Radio,
21388
- label: t("welfareRelatedSubQ8"),
21385
+ label: t("coBenifits:welfareRelatedSubQ8"),
21389
21386
  name: "welfareRelatedSubQ8",
21390
21387
  },
21391
21388
  ],
@@ -21444,7 +21441,7 @@ var Social = function (props) {
21444
21441
  React.createElement(antd.Col, { span: 24 },
21445
21442
  React.createElement("div", { className: "unfccSdTool-section-divider" })),
21446
21443
  React.createElement(antd.Col, { span: 24, className: "unfcccSdTool-section-title" },
21447
- React.createElement("span", null, t("social"))))),
21444
+ React.createElement("span", null, t("coBenifits:social"))))),
21448
21445
  viewOnly && !socialViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
21449
21446
  ((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) {
21450
21447
  return (React.createElement(React.Fragment, null,
@@ -21455,11 +21452,11 @@ var Social = function (props) {
21455
21452
  React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
21456
21453
  React.createElement(antd.Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
21457
21454
  React.createElement("div", { className: "radio-container" },
21458
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21455
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21459
21456
  React.createElement("div", { className: "radio-container" },
21460
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21457
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21461
21458
  React.createElement("div", { className: "radio-container" },
21462
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))),
21459
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))),
21463
21460
  form.getFieldValue(element.name) ===
21464
21461
  exports.RadioButtonStatus.YES &&
21465
21462
  element.subItems.map(function (elementItem) {
@@ -21472,11 +21469,11 @@ var Social = function (props) {
21472
21469
  ] },
21473
21470
  React.createElement(antd.Radio.Group, { size: "middle" },
21474
21471
  React.createElement("div", { className: "radio-container" },
21475
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
21472
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("coBenifits:yes"))),
21476
21473
  React.createElement("div", { className: "radio-container" },
21477
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
21474
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("coBenifits:no"))),
21478
21475
  React.createElement("div", { className: "radio-container" },
21479
- React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))));
21476
+ React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("coBenifits:na"))))));
21480
21477
  }
21481
21478
  else if (elementItem.type === exports.FormElementType.Input) {
21482
21479
  return (React.createElement(antd.Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
@@ -22024,14 +22021,14 @@ var CoBenifitsComponent = function (props) {
22024
22021
  ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
22025
22022
  ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
22026
22023
  : {}
22027
- : undefined, viewOnly: viewOnly || false, translator: translator }),
22024
+ : undefined, viewOnly: viewOnly || false, translator: t }),
22028
22025
  React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
22029
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator }),
22026
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: t }),
22030
22027
  React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
22031
22028
  ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
22032
22029
  ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
22033
22030
  : {}
22034
- : undefined, viewOnly: viewOnly || false, translator: translator }))),
22031
+ : undefined, viewOnly: viewOnly || false, translator: t }))),
22035
22032
  },
22036
22033
  {
22037
22034
  label: t("coBenifits:assessment"),