@undp/carbon-library 1.0.123 → 1.0.125-NAM-17.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -956,7 +956,172 @@ exports.MitigationTypes = void 0;
956
956
  MitigationTypes["SOLAR"] = "Solar";
957
957
  MitigationTypes["TRANSPORT"] = "Transport";
958
958
  MitigationTypes["WIND"] = "Wind";
959
+ MitigationTypes["CO2_USAGE"] = "CO2Usage";
960
+ MitigationTypes["TIDAL"] = "Tidal";
959
961
  })(exports.MitigationTypes || (exports.MitigationTypes = {}));
962
+ exports.MitigationSubTypes = void 0;
963
+ (function (MitigationSubTypes) {
964
+ MitigationSubTypes["IRRIGATION"] = "Irrigation";
965
+ MitigationSubTypes["ENERGY_EFFICIENCY"] = "EnergyEfficiency";
966
+ MitigationSubTypes["ALTERNATIVE_FERTILISER"] = "AlternativeFertilisers";
967
+ MitigationSubTypes["NO_TILLAGE"] = "NoTillage";
968
+ MitigationSubTypes["SOIL_ENRICHMENT_BIOCHAR"] = "SoilEnrichmentBiochar";
969
+ MitigationSubTypes["RICE_CROPS"] = "RiceCrops";
970
+ MitigationSubTypes["BAGASSE_POWER"] = "BagassePower";
971
+ MitigationSubTypes["PALM_OIL_SOLID_WASTE"] = "Palm oil solid waste";
972
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_OTHER_KINDS"] = "AgriculturalResiduesOtherKinds";
973
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_RICE_HUSK"] = "AgriculturalResiduesRiceHusk";
974
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_MUSTARD_CROP"] = "AgriculturalResiduesMustardCrop";
975
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_POULTRY_LITTER"] = "AgriculturalResiduesPoultryLitter";
976
+ MitigationSubTypes["BLACK_LIQUOR"] = "BlackLiquor";
977
+ MitigationSubTypes["FOREST_RESIDUES_SAWMILL_WASTE"] = "ForestResiduesSawmillWaste";
978
+ MitigationSubTypes["FOREST_RESIDUES_OTHER"] = "ForestResiduesOther";
979
+ MitigationSubTypes["FOREST_BIOMASS"] = "ForestBiomass";
980
+ MitigationSubTypes["INDUSTRIAL_WASTE"] = "IndustrialWaste";
981
+ MitigationSubTypes["GASIFICATION_OF_BIOMASS"] = "GasificationOfBiomass";
982
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS"] = "SwitchFromFossilFuelToPipedBiogas";
983
+ MitigationSubTypes["BIOMASS_BRIQUETTES_OR_PELLETS"] = "BiomassBriquettesOrPellets";
984
+ MitigationSubTypes["BIODIESEL"] = "Biodiesel";
985
+ MitigationSubTypes["BIODIESEL_FROM_WASTE_OIL"] = "BiodieselFromWasteOil";
986
+ MitigationSubTypes["ETHANOL"] = "Ethanol";
987
+ MitigationSubTypes["CLINKER_REPLACEMENT"] = "ClinkerReplacement";
988
+ MitigationSubTypes["COAL_MINE_METHANE"] = "CoalMineMethane";
989
+ MitigationSubTypes["COAL_BED_METHANE"] = "CoalBedMethane";
990
+ MitigationSubTypes["CMM_VENTILATION_AIR_METHANE"] = "CMMVentilationAirMethane";
991
+ MitigationSubTypes["VENTILATION_AIR_METHANE"] = "VentilationAirMethane";
992
+ MitigationSubTypes["LIGHTING"] = "Lighting";
993
+ MitigationSubTypes["SOLAR_LAMPS"] = "SolarLamps";
994
+ MitigationSubTypes["STOVES"] = "Stoves";
995
+ MitigationSubTypes["STOVES_SCHOOL_IN_GHANA"] = "StovesSchoolInGhana";
996
+ MitigationSubTypes["STOVES_HOUSES_IN_NAMIBIA"] = "StovesHousesInNamibia";
997
+ MitigationSubTypes["LIGHTING_INSULATION_SOLAR"] = "LightingInsulationSolar";
998
+ MitigationSubTypes["APPLIANCES"] = "Appliances";
999
+ MitigationSubTypes["CHEMICALS"] = "Chemicals";
1000
+ MitigationSubTypes["PETROCHEMICALS"] = "Petrochemicals";
1001
+ MitigationSubTypes["PAPER"] = "Paper";
1002
+ MitigationSubTypes["CEMENT"] = "Cement";
1003
+ MitigationSubTypes["IRON_STEEL"] = "IronSteel";
1004
+ MitigationSubTypes["MACHINERY"] = "Machinery";
1005
+ MitigationSubTypes["TEXTILES"] = "Textiles";
1006
+ MitigationSubTypes["ELECTRONICS"] = "Electronics";
1007
+ MitigationSubTypes["FOOD"] = "Food";
1008
+ MitigationSubTypes["BUILDING_MATERIALS"] = "BuildingMaterials";
1009
+ MitigationSubTypes["GLASS"] = "Glass";
1010
+ MitigationSubTypes["NON_FERROUS_METALS"] = "NonFerrousMetals";
1011
+ MitigationSubTypes["COKE_OVEN"] = "CokeOven";
1012
+ MitigationSubTypes["Mining"] = "Mining";
1013
+ MitigationSubTypes["CONSTRUCTION"] = "Construction";
1014
+ MitigationSubTypes["METAL_PRODUCTS"] = "MetalProducts";
1015
+ MitigationSubTypes["WOOD"] = "Wood";
1016
+ MitigationSubTypes["RECYCLING"] = "Recycling";
1017
+ MitigationSubTypes["CHEMICALS_HEAT"] = "ChemicalsHeat";
1018
+ MitigationSubTypes["PETROCHEMICALS_HEAT"] = "PetrochemicalsHeat";
1019
+ MitigationSubTypes["CARBON_BLACK_GAS"] = "CarbonBlackGas";
1020
+ MitigationSubTypes["CEMENT_HEAT"] = "CementHeat";
1021
+ MitigationSubTypes["IRON_STEEL_HEAT"] = "IronSteelHeat";
1022
+ MitigationSubTypes["BUILDING_MATERIALS_HEAT"] = "BuildingMaterialsHeat";
1023
+ MitigationSubTypes["GLASS_HEAT"] = "GlassHeat";
1024
+ MitigationSubTypes["NON_FERROUS_METALS_HEAT"] = "NonFerrousMetalsHeat";
1025
+ MitigationSubTypes["COKE_OVEN_GAS"] = "CokeOvenGas";
1026
+ MitigationSubTypes["HVAC_LIGHTING"] = "HvacLighting";
1027
+ MitigationSubTypes["AIR_CONDITIONING"] = "AirConditioning";
1028
+ MitigationSubTypes["EE_NEW_BUILDINGS"] = "EeNewBuildings";
1029
+ MitigationSubTypes["STREET_LIGHTING"] = "StreetLighting";
1030
+ MitigationSubTypes["LIGHTING_IN_SERVICE"] = "LightingInService";
1031
+ MitigationSubTypes["WATER_PUMPING"] = "WaterPumping";
1032
+ MitigationSubTypes["WATER_PURIFICATION"] = "WaterPurification";
1033
+ MitigationSubTypes["EE_PUBLIC_STOVES"] = "EePublicStoves";
1034
+ MitigationSubTypes["EE_PUBLIC_BUILDINGS"] = "EePublicBuildings";
1035
+ MitigationSubTypes["EE_COMMERCIAL_BUILDINGS"] = "EeCommercialBuildings";
1036
+ MitigationSubTypes["SINGLE_CYCLE_TO_COMBINED_CYCLE"] = "SingleCycleToCombinedCycle";
1037
+ MitigationSubTypes["COGENERATION"] = "Cogeneration";
1038
+ MitigationSubTypes["CO_FIRING_WITH_BIOMASS"] = "CoFiringWithBiomass";
1039
+ MitigationSubTypes["HIGHER_EFFICIENCY_COAL_POWER"] = "HigherEfficiencyCoalPower";
1040
+ MitigationSubTypes["HIGHER_EFFICIENCY_OIL_POWER"] = "HigherEfficiencyOilPower";
1041
+ MitigationSubTypes["HIGHER_EFFICIENCY_USING_WASTE_HEAT"] = "HigherEfficiencyUsingWasteHeat";
1042
+ MitigationSubTypes["POWER_PLANT_REHABILITATION"] = "PowerPlantRehabilitation";
1043
+ MitigationSubTypes["HIGHER_EFFICIENCY_STEAM_BOILER"] = "HigherEfficiencySteamBoiler";
1044
+ MitigationSubTypes["DISTRICT_HEATING"] = "DistrictHeating";
1045
+ MitigationSubTypes["REPLACEMENT_OF_DISTRICT_HEATING_BOILERS"] = "ReplacementOfDistrictHeatingBoilers";
1046
+ MitigationSubTypes["CONNECTION_OF_ISOLATED_GRID"] = "ConnectionOfIsolatedGrid";
1047
+ MitigationSubTypes["DISTRICT_COOLING"] = "DistrictCooling";
1048
+ MitigationSubTypes["EFFICIENT_ELECTRICITY_DISTRIBUTION"] = "EfficientElectricityDistribution";
1049
+ MitigationSubTypes["AFFORESTATION"] = "Afforestation";
1050
+ MitigationSubTypes["MANGROVES"] = "Mangroves";
1051
+ MitigationSubTypes["AGROFORESTRY"] = "Agroforestry";
1052
+ MitigationSubTypes["REFORESTATION"] = "Reforestation";
1053
+ MitigationSubTypes["COAL_TO_NATURAL_GAS"] = "CoalToNaturalGas";
1054
+ MitigationSubTypes["COAL_TO_OIL"] = "CoalToOil";
1055
+ MitigationSubTypes["LIGNITE_TO_NATURAL_GAS"] = "LigniteToNaturalGas";
1056
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT"] = "NewNaturalGasPlant";
1057
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT_USING_LNG"] = "NewNaturalGasPlantUsingLng";
1058
+ MitigationSubTypes["OIL_TO_ELECTRICITY"] = "OilToElectricity";
1059
+ MitigationSubTypes["OIL_TO_LPG"] = "OilToLpg";
1060
+ MitigationSubTypes["OIL_TO_NATURAL_GAS"] = "OilToNaturalGas";
1061
+ MitigationSubTypes["OIL_FIELD_FLARING_REDUCTION"] = "OilFieldFlaringReduction";
1062
+ MitigationSubTypes["OIL_AND_GAS_PROCESSING_FLARING"] = "OilAndGasProcessingFlaring";
1063
+ MitigationSubTypes["NATURAL_GAS_PIPELINES"] = "NaturalGasPipelines";
1064
+ MitigationSubTypes["NON_HYDROCARBON_MINING"] = "NonHydrocarbonMining";
1065
+ MitigationSubTypes["SPONTANEOUSLY_IGNITION_OF_COAL_PILES"] = "SpontaneouslyIgnitionOfCoalPiles";
1066
+ MitigationSubTypes["CHARCOAL_PRODUCTION"] = "CharcoalProduction";
1067
+ MitigationSubTypes["GEOTHERMAL_ELECTRICITY"] = "GeothermalElectricity";
1068
+ MitigationSubTypes["GEOTHERMAL_HEATING"] = "GeothermalHeating";
1069
+ MitigationSubTypes["HFC23"] = "Hfc23";
1070
+ MitigationSubTypes["HFC134A"] = "Hfc134A";
1071
+ MitigationSubTypes["PFCS"] = "Pfcs";
1072
+ MitigationSubTypes["SF6"] = "Sf6";
1073
+ MitigationSubTypes["RUN_OF_RIVER"] = "RunOfRiver";
1074
+ MitigationSubTypes["EXISTING_DAM"] = "ExistingDam";
1075
+ MitigationSubTypes["HIGHER_EFFICIENCY_HYDRO_POWER"] = "HigherEfficiencyHydroPower";
1076
+ MitigationSubTypes["NEW_DAM"] = "NewDam";
1077
+ MitigationSubTypes["LANDFILL_FLARING"] = "LandfillFlaring";
1078
+ MitigationSubTypes["LANDFILL_POWER"] = "LandfillPower";
1079
+ MitigationSubTypes["COMBUSTION_OF_MSW"] = "CombustionOfMsw";
1080
+ MitigationSubTypes["GASIFICATION_OF_MSW"] = "GasificationOfMsw";
1081
+ MitigationSubTypes["BIOGAS_FROM_MSW"] = "BiogasFromMsw";
1082
+ MitigationSubTypes["LANDFILL_AERATION"] = "LandfillAeration";
1083
+ MitigationSubTypes["INTEGRATED_SOLID_WASTE_MANAGEMENT"] = "IntegratedSolidWasteManagement";
1084
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS"] = "SwitchFromFossilFuelToPipedLandfillGas";
1085
+ MitigationSubTypes["LANDFILL_COMPOSTING"] = "LandfillComposting";
1086
+ MitigationSubTypes["MANURE"] = "Manure";
1087
+ MitigationSubTypes["DOMESTIC_MANURE"] = "DomesticManure";
1088
+ MitigationSubTypes["WASTE_WATER"] = "WasteWater";
1089
+ MitigationSubTypes["INDUSTRIAL_SOLID_WASTE"] = "IndustrialSolidWaste";
1090
+ MitigationSubTypes["PALM_OIL_WASTE"] = "PalmOilWaste";
1091
+ MitigationSubTypes["AEROBIC_TREATMENT_OF_WASTE_WATER"] = "AerobicTreatmentOfWasteWater";
1092
+ MitigationSubTypes["COMPOSTING"] = "Composting";
1093
+ MitigationSubTypes["ADIPIC_ACID"] = "AdipicAcid";
1094
+ MitigationSubTypes["NITRIC_ACID"] = "NitricAcid";
1095
+ MitigationSubTypes["CAPROLACTAM"] = "Caprolactam";
1096
+ MitigationSubTypes["SOLAR_PHOTOVOLTAICS_PV"] = "SolarPhotovoltaicsPV";
1097
+ MitigationSubTypes["SOLAR_WATER_PUMPING_OFF_GRID"] = "SolarWaterPumpingOffGrid";
1098
+ MitigationSubTypes["SOLAR_WATER_PUMPING_ON_GRID"] = "SolarWaterPumpingOnGrid";
1099
+ MitigationSubTypes["SOLAR_PV_WATER_DISINFECTION"] = "SolarPVWaterDisinfection";
1100
+ MitigationSubTypes["SOLAR_THERMAL_POWER"] = "SolarThermalPower";
1101
+ MitigationSubTypes["SOLAR_THERMAL_HEAT"] = "SolarThermalHeat";
1102
+ MitigationSubTypes["SOLAR_WATER_HEATING"] = "SolarWaterHeating";
1103
+ MitigationSubTypes["SOLAR_COOKING"] = "SolarCooking";
1104
+ MitigationSubTypes["BUS_RAPID_TRANSIT"] = "BusRapidTransit";
1105
+ MitigationSubTypes["BUS_RAPID_TRANSIT_GREEN_HYDROGEN"] = "BusRapidTransitGreenHydrogen";
1106
+ MitigationSubTypes["MOTORBIKES"] = "Motorbikes";
1107
+ MitigationSubTypes["MODE_SHIFT_ROAD_TO_RAIL"] = "ModeShiftRoadToRail";
1108
+ MitigationSubTypes["MORE_EFFICIENT_TRAIN_SYSTEM"] = "MoreEfficientTrainSystem";
1109
+ MitigationSubTypes["MORE_EFFICIENT_VEHICLES"] = "MoreEfficientVehicles";
1110
+ MitigationSubTypes["RAIL_REGENERATIVE_BRAKING"] = "RailRegenerativeBraking";
1111
+ MitigationSubTypes["RAIL_GREEN_HYDROGEN"] = "RailGreenHydrogen";
1112
+ MitigationSubTypes["RAIL_EFFICIENT_OPERATION"] = "RailEfficientOperation";
1113
+ MitigationSubTypes["METRO_EFFICIENT_OPERATION"] = "MetroEfficientOperation";
1114
+ MitigationSubTypes["CARS_GREEN_HYDROGEN"] = "CarsGreenHydrogen";
1115
+ MitigationSubTypes["CARS_EFFICIENT_OPERATION"] = "CarsEfficientOperation";
1116
+ MitigationSubTypes["SCRAPPING_OLD_VEHICLES"] = "ScrappingOldVehicles";
1117
+ MitigationSubTypes["BIODIESEL_FOR_TRANSPORT"] = "BiodieselForTransport";
1118
+ MitigationSubTypes["CABLE_CARS"] = "CableCars";
1119
+ MitigationSubTypes["WIND"] = "Wind";
1120
+ MitigationSubTypes["OFFSHORE_WIND"] = "OffshoreWind";
1121
+ MitigationSubTypes["CO2_RECYCLING"] = "CO2Recycling";
1122
+ MitigationSubTypes["CO2_REPLACEMENT"] = "CO2Replacement";
1123
+ MitigationSubTypes["TIDAL"] = "Tidal";
1124
+ })(exports.MitigationSubTypes || (exports.MitigationSubTypes = {}));
960
1125
  var mitigationTypeList = [
961
1126
  { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
962
1127
  { value: exports.MitigationTypes.SOLAR.valueOf(), label: "Solar" },
@@ -1053,13 +1218,385 @@ var sectorMitigationTypesListMapped = {
1053
1218
  },
1054
1219
  ],
1055
1220
  Agriculture: [
1056
- { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
1221
+ { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" }
1057
1222
  ],
1058
1223
  Other: [
1059
1224
  { value: exports.MitigationTypes.MARINE.valueOf(), label: "Marine" },
1060
1225
  { value: exports.MitigationTypes.N20.valueOf(), label: "N2O" },
1061
1226
  ],
1062
1227
  };
1228
+ var mitigationSubTypeList = [
1229
+ { label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
1230
+ { label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1231
+ { label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1232
+ { label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
1233
+ { label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1234
+ { label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
1235
+ { label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
1236
+ { label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1237
+ { label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1238
+ { label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1239
+ { label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1240
+ { label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1241
+ { label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1242
+ { label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1243
+ { label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1244
+ { label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1245
+ { label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1246
+ { label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1247
+ { label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1248
+ { label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1249
+ { label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
1250
+ { label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1251
+ { label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
1252
+ { label: "Cement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1253
+ { label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1254
+ { label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1255
+ { label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1256
+ { label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1257
+ { label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
1258
+ { label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1259
+ { label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
1260
+ { label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1261
+ { label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1262
+ { label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1263
+ { label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
1264
+ { label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1265
+ { label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
1266
+ { label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
1267
+ { label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
1268
+ { label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
1269
+ { label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
1270
+ { label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
1271
+ { label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
1272
+ { label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
1273
+ { label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1274
+ { label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
1275
+ { label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1276
+ { label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
1277
+ { label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
1278
+ { label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
1279
+ { label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1280
+ { label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
1281
+ { label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
1282
+ { label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1283
+ { label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1284
+ { label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1285
+ { label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
1286
+ { label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1287
+ { label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1288
+ { label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
1289
+ { label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1290
+ { label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1291
+ { label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1292
+ { label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1293
+ { label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1294
+ { label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
1295
+ { label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1296
+ { label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
1297
+ { label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1298
+ { label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1299
+ { label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1300
+ { label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1301
+ { label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1302
+ { label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
1303
+ { label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1304
+ { label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1305
+ { label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1306
+ { label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1307
+ { label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1308
+ { label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1309
+ { label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1310
+ { label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1311
+ { label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1312
+ { label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1313
+ { label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1314
+ { label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
1315
+ { label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
1316
+ { label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
1317
+ { label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
1318
+ { label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1319
+ { label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
1320
+ { label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1321
+ { label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1322
+ { label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1323
+ { label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1324
+ { label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
1325
+ { label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1326
+ { label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1327
+ { label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1328
+ { label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1329
+ { label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1330
+ { label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1331
+ { label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1332
+ { label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1333
+ { label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1334
+ { label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
1335
+ { label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
1336
+ { label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
1337
+ { label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
1338
+ { label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1339
+ { label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
1340
+ { label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1341
+ { label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
1342
+ { label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1343
+ { label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
1344
+ { label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1345
+ { label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1346
+ { label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1347
+ { label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1348
+ { label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1349
+ { label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1350
+ { label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1351
+ { label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
1352
+ { label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1353
+ { label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
1354
+ { label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1355
+ { label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1356
+ { label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1357
+ { label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
1358
+ { label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
1359
+ { label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
1360
+ { label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
1361
+ { label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1362
+ { label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1363
+ { label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1364
+ { label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1365
+ { label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1366
+ { label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1367
+ { label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1368
+ { label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
1369
+ { label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1370
+ { label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1371
+ { label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
1372
+ { label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1373
+ { label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1374
+ { label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1375
+ { label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1376
+ { label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1377
+ { label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1378
+ { label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1379
+ { label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1380
+ { label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1381
+ { label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1382
+ { label: "Biodiesel for transport", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
1383
+ { label: "Cable cars", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1384
+ { label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
1385
+ { label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1386
+ { label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
1387
+ { label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1388
+ { label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
1389
+ ];
1390
+ var mitigationSubTypesListMapped = {
1391
+ Agriculture: [
1392
+ { label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
1393
+ { label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1394
+ { label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1395
+ { label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
1396
+ { label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1397
+ { label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
1398
+ ],
1399
+ BiomassEnergy: [
1400
+ { label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
1401
+ { label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1402
+ { label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1403
+ { label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1404
+ { label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1405
+ { label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1406
+ { label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1407
+ { label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1408
+ { label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1409
+ { label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1410
+ { label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1411
+ { label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1412
+ { label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1413
+ { label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1414
+ { label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
1415
+ { label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1416
+ { label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
1417
+ ],
1418
+ Cement: [
1419
+ { label: "Cement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1420
+ ],
1421
+ "Coal/Mine": [
1422
+ { label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1423
+ { label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1424
+ { label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1425
+ { label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1426
+ ],
1427
+ EEHouseholds: [
1428
+ { label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
1429
+ { label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1430
+ { label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
1431
+ { label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1432
+ { label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1433
+ { label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1434
+ { label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
1435
+ ],
1436
+ EEIndustry: [
1437
+ { label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1438
+ { label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
1439
+ { label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
1440
+ { label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
1441
+ { label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
1442
+ { label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
1443
+ { label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
1444
+ { label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
1445
+ { label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
1446
+ { label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1447
+ { label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
1448
+ { label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1449
+ { label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
1450
+ { label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
1451
+ { label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
1452
+ { label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1453
+ { label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
1454
+ { label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
1455
+ ],
1456
+ EEOwnGeneration: [
1457
+ { label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1458
+ { label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1459
+ { label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1460
+ { label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
1461
+ { label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1462
+ { label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1463
+ { label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
1464
+ { label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1465
+ { label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1466
+ ],
1467
+ EEService: [
1468
+ { label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1469
+ { label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1470
+ { label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1471
+ { label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
1472
+ { label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1473
+ { label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
1474
+ { label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1475
+ { label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1476
+ { label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1477
+ { label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1478
+ ],
1479
+ EESupplySide: [
1480
+ { label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1481
+ { label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
1482
+ { label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1483
+ { label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1484
+ { label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1485
+ { label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1486
+ { label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1487
+ { label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1488
+ ],
1489
+ EnergyDistribution: [
1490
+ { label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1491
+ { label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1492
+ { label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1493
+ { label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1494
+ { label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1495
+ ],
1496
+ Forestry: [
1497
+ { label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
1498
+ { label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
1499
+ { label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
1500
+ { label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
1501
+ ],
1502
+ FossilFuel: [
1503
+ { label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1504
+ { label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
1505
+ { label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1506
+ { label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1507
+ { label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1508
+ { label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1509
+ { label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
1510
+ { label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1511
+ ],
1512
+ Fugitive: [
1513
+ { label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1514
+ { label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1515
+ { label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1516
+ { label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1517
+ { label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1518
+ { label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1519
+ ],
1520
+ Geothermal: [
1521
+ { label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1522
+ { label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1523
+ ],
1524
+ HFC_PFCs_SF6: [
1525
+ { label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
1526
+ { label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
1527
+ { label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
1528
+ { label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
1529
+ ],
1530
+ Hydro: [
1531
+ { label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1532
+ { label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
1533
+ { label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1534
+ { label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
1535
+ ],
1536
+ Landfills: [
1537
+ { label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1538
+ { label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
1539
+ { label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1540
+ { label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1541
+ { label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1542
+ { label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1543
+ { label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1544
+ { label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1545
+ { label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1546
+ ],
1547
+ MethaneAvoidance: [
1548
+ { label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
1549
+ { label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1550
+ { label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
1551
+ { label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1552
+ { label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1553
+ { label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1554
+ { label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
1555
+ ],
1556
+ N20: [
1557
+ { label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
1558
+ { label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
1559
+ { label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
1560
+ ],
1561
+ Solar: [
1562
+ { label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1563
+ { label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1564
+ { label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1565
+ { label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1566
+ { label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1567
+ { label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1568
+ { label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1569
+ { label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
1570
+ ],
1571
+ Transport: [
1572
+ { label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1573
+ { label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1574
+ { label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
1575
+ { label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1576
+ { label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1577
+ { label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1578
+ { label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1579
+ { label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1580
+ { label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1581
+ { label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1582
+ { label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1583
+ { label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1584
+ { label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1585
+ { label: "Biodiesel for transport", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
1586
+ { label: "Cable cars", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1587
+ ],
1588
+ Wind: [
1589
+ { label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
1590
+ { label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1591
+ ],
1592
+ CO2Usage: [
1593
+ { label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
1594
+ { label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1595
+ ],
1596
+ Tidal: [
1597
+ { label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
1598
+ ],
1599
+ };
1063
1600
 
1064
1601
  exports.ESGType = void 0;
1065
1602
  (function (ESGType) {
@@ -4188,6 +4725,26 @@ function requireAgricultureCal () {
4188
4725
  return agricultureCal;
4189
4726
  }
4190
4727
 
4728
+ var soilEnrichmentCal = {};
4729
+
4730
+ var hasRequiredSoilEnrichmentCal;
4731
+
4732
+ function requireSoilEnrichmentCal () {
4733
+ if (hasRequiredSoilEnrichmentCal) return soilEnrichmentCal;
4734
+ hasRequiredSoilEnrichmentCal = 1;
4735
+ Object.defineProperty(soilEnrichmentCal, "__esModule", { value: true });
4736
+ soilEnrichmentCal.SoilEnrichmentCal = void 0;
4737
+ const calculator_1 = requireCalculator();
4738
+ class SoilEnrichmentCal {
4739
+ static calculate(req) {
4740
+ const constants = req.soilEnrichmentConstants;
4741
+ return Number((constants.emissionFactor * req.weight).toFixed(calculator_1.PRECISION));
4742
+ }
4743
+ }
4744
+ soilEnrichmentCal.SoilEnrichmentCal = SoilEnrichmentCal;
4745
+ return soilEnrichmentCal;
4746
+ }
4747
+
4191
4748
  var solarCal = {};
4192
4749
 
4193
4750
  var hasRequiredSolarCal;
@@ -4264,6 +4821,53 @@ class AgricultureCreationRequest {
4264
4821
  }
4265
4822
  agricultureCreationRequest.AgricultureCreationRequest = AgricultureCreationRequest;
4266
4823
 
4824
+ var soilEnrichmentCreationRequest = {};
4825
+
4826
+ var soilEnrichmentConstants = {};
4827
+
4828
+ Object.defineProperty(soilEnrichmentConstants, "__esModule", { value: true });
4829
+ soilEnrichmentConstants.SoilEnrichmentConstants = void 0;
4830
+ class SoilEnrichmentConstants {
4831
+ constructor() {
4832
+ this.emissionFactor = 3.66;
4833
+ this.emissionFactorUnit = "tCO2e"; // emission factor
4834
+ }
4835
+ }
4836
+ soilEnrichmentConstants.SoilEnrichmentConstants = SoilEnrichmentConstants;
4837
+
4838
+ Object.defineProperty(soilEnrichmentCreationRequest, "__esModule", { value: true });
4839
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = void 0;
4840
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
4841
+ class SoilEnrichmentCreationRequest {
4842
+ constructor() {
4843
+ this.soilEnrichmentConstants = new soilEnrichmentConstants_1.SoilEnrichmentConstants();
4844
+ }
4845
+ }
4846
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = SoilEnrichmentCreationRequest;
4847
+
4848
+ var stovesHousesNamibiaCreationRequest = {};
4849
+
4850
+ var stovesHousesNamibiaConstants = {};
4851
+
4852
+ Object.defineProperty(stovesHousesNamibiaConstants, "__esModule", { value: true });
4853
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = void 0;
4854
+ class StovesHousesNamibiaConstants {
4855
+ constructor() {
4856
+ this.emissionFactor = 0.1;
4857
+ }
4858
+ }
4859
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = StovesHousesNamibiaConstants;
4860
+
4861
+ Object.defineProperty(stovesHousesNamibiaCreationRequest, "__esModule", { value: true });
4862
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = void 0;
4863
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
4864
+ class StovesHousesNamibiaCreationRequest {
4865
+ constructor() {
4866
+ this.stovesHousesNamibiaConstants = new stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants();
4867
+ }
4868
+ }
4869
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = StovesHousesNamibiaCreationRequest;
4870
+
4267
4871
  var solarCreationRequest = {};
4268
4872
 
4269
4873
  var solarConstants = {};
@@ -4301,6 +4905,134 @@ class SolarCreationRequest {
4301
4905
  }
4302
4906
  solarCreationRequest.SolarCreationRequest = SolarCreationRequest;
4303
4907
 
4908
+ var stovesHousesNamibiaCal = {};
4909
+
4910
+ var hasRequiredStovesHousesNamibiaCal;
4911
+
4912
+ function requireStovesHousesNamibiaCal () {
4913
+ if (hasRequiredStovesHousesNamibiaCal) return stovesHousesNamibiaCal;
4914
+ hasRequiredStovesHousesNamibiaCal = 1;
4915
+ Object.defineProperty(stovesHousesNamibiaCal, "__esModule", { value: true });
4916
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = void 0;
4917
+ const calculator_1 = requireCalculator();
4918
+ class StovesHousesNamibiaCal {
4919
+ static calculate(req) {
4920
+ const constants = req.stovesHousesNamibiaConstants;
4921
+ return Number((constants.emissionFactor * req.numberOfDays * req.numberOfPeopleInHousehold).toFixed(calculator_1.PRECISION));
4922
+ }
4923
+ }
4924
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = StovesHousesNamibiaCal;
4925
+ return stovesHousesNamibiaCal;
4926
+ }
4927
+
4928
+ var solarWaterPumpingOffGridCreationRequest = {};
4929
+
4930
+ var solarWaterPumpingOffGridConstants = {};
4931
+
4932
+ Object.defineProperty(solarWaterPumpingOffGridConstants, "__esModule", { value: true });
4933
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = void 0;
4934
+ class SolarWaterPumpingOffGridConstants {
4935
+ constructor() {
4936
+ this.emissionFactor = 1.3;
4937
+ this.emissionFactorUnit = "kWh/year";
4938
+ }
4939
+ }
4940
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = SolarWaterPumpingOffGridConstants;
4941
+
4942
+ Object.defineProperty(solarWaterPumpingOffGridCreationRequest, "__esModule", { value: true });
4943
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = void 0;
4944
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
4945
+ class SolarWaterPumpingOffGridCreationRequest {
4946
+ constructor() {
4947
+ this.solarWaterPumpingOffGridConstants = new solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants();
4948
+ }
4949
+ }
4950
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = SolarWaterPumpingOffGridCreationRequest;
4951
+
4952
+ var solarWaterPumpingOffGridCal = {};
4953
+
4954
+ var hasRequiredSolarWaterPumpingOffGridCal;
4955
+
4956
+ function requireSolarWaterPumpingOffGridCal () {
4957
+ if (hasRequiredSolarWaterPumpingOffGridCal) return solarWaterPumpingOffGridCal;
4958
+ hasRequiredSolarWaterPumpingOffGridCal = 1;
4959
+ Object.defineProperty(solarWaterPumpingOffGridCal, "__esModule", { value: true });
4960
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = void 0;
4961
+ const calculator_1 = requireCalculator();
4962
+ var convert = lib;
4963
+ let solarWaterPumpingOffGridCal$1 = class solarWaterPumpingOffGridCal {
4964
+ static calculate(req) {
4965
+ const constants = req.solarWaterPumpingOffGridConstants;
4966
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
4967
+ if (emissionUnitParts.length != 2) {
4968
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
4969
+ }
4970
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
4971
+ if (measuredUnitParts.length != 3) {
4972
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
4973
+ }
4974
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
4975
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
4976
+ }
4977
+ };
4978
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = solarWaterPumpingOffGridCal$1;
4979
+ return solarWaterPumpingOffGridCal;
4980
+ }
4981
+
4982
+ var solarWaterPumpingOnGridCreationRequest = {};
4983
+
4984
+ var solarWaterPumpingOnGridConstants = {};
4985
+
4986
+ Object.defineProperty(solarWaterPumpingOnGridConstants, "__esModule", { value: true });
4987
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = void 0;
4988
+ class SolarWaterPumpingOnGridConstants {
4989
+ constructor() {
4990
+ this.emissionFactor = 1.06;
4991
+ this.emissionFactorUnit = "kWh/year";
4992
+ }
4993
+ }
4994
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = SolarWaterPumpingOnGridConstants;
4995
+
4996
+ Object.defineProperty(solarWaterPumpingOnGridCreationRequest, "__esModule", { value: true });
4997
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = void 0;
4998
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
4999
+ class SolarWaterPumpingOnGridCreationRequest {
5000
+ constructor() {
5001
+ this.solarWaterPumpingOnGridConstants = new solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants();
5002
+ }
5003
+ }
5004
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = SolarWaterPumpingOnGridCreationRequest;
5005
+
5006
+ var solarWaterPumpingOnGridCal = {};
5007
+
5008
+ var hasRequiredSolarWaterPumpingOnGridCal;
5009
+
5010
+ function requireSolarWaterPumpingOnGridCal () {
5011
+ if (hasRequiredSolarWaterPumpingOnGridCal) return solarWaterPumpingOnGridCal;
5012
+ hasRequiredSolarWaterPumpingOnGridCal = 1;
5013
+ Object.defineProperty(solarWaterPumpingOnGridCal, "__esModule", { value: true });
5014
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = void 0;
5015
+ const calculator_1 = requireCalculator();
5016
+ var convert = lib;
5017
+ let solarWaterPumpingOnGridCal$1 = class solarWaterPumpingOnGridCal {
5018
+ static calculate(req) {
5019
+ const constants = req.solarWaterPumpingOnGridConstants;
5020
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
5021
+ if (emissionUnitParts.length != 2) {
5022
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
5023
+ }
5024
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
5025
+ if (measuredUnitParts.length != 3) {
5026
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
5027
+ }
5028
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
5029
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
5030
+ }
5031
+ };
5032
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = solarWaterPumpingOnGridCal$1;
5033
+ return solarWaterPumpingOnGridCal;
5034
+ }
5035
+
4304
5036
  var hasRequiredCalculator;
4305
5037
 
4306
5038
  function requireCalculator () {
@@ -4309,9 +5041,17 @@ function requireCalculator () {
4309
5041
  Object.defineProperty(calculator, "__esModule", { value: true });
4310
5042
  calculator.calculateCredit = calculator.PRECISION = void 0;
4311
5043
  const agricultureCal_1 = requireAgricultureCal();
5044
+ const soilEnrichmentCal_1 = requireSoilEnrichmentCal();
4312
5045
  const solarCal_1 = requireSolarCal();
4313
5046
  const agricultureCreationRequest_1 = agricultureCreationRequest;
5047
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5048
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
4314
5049
  const solarCreationRequest_1 = solarCreationRequest;
5050
+ const stovesHousesNamibiaCal_1 = requireStovesHousesNamibiaCal();
5051
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5052
+ const solarWaterPumpingOffGridCal_1 = requireSolarWaterPumpingOffGridCal();
5053
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5054
+ const solarWaterPumpingOnGridCal_1 = requireSolarWaterPumpingOnGridCal();
4315
5055
  calculator.PRECISION = 2;
4316
5056
  const calculateCredit = (request) => {
4317
5057
  if (request instanceof agricultureCreationRequest_1.AgricultureCreationRequest) {
@@ -4320,6 +5060,18 @@ function requireCalculator () {
4320
5060
  else if (request instanceof solarCreationRequest_1.SolarCreationRequest) {
4321
5061
  return solarCal_1.SolarCal.calculate(request);
4322
5062
  }
5063
+ else if (request instanceof soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest) {
5064
+ return soilEnrichmentCal_1.SoilEnrichmentCal.calculate(request);
5065
+ }
5066
+ else if (request instanceof stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest) {
5067
+ return stovesHousesNamibiaCal_1.StovesHousesNamibiaCal.calculate(request);
5068
+ }
5069
+ else if (request instanceof solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest) {
5070
+ return solarWaterPumpingOffGridCal_1.solarWaterPumpingOffGridCal.calculate(request);
5071
+ }
5072
+ else if (request instanceof solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest) {
5073
+ return solarWaterPumpingOnGridCal_1.solarWaterPumpingOnGridCal.calculate(request);
5074
+ }
4323
5075
  else {
4324
5076
  throw Error("Not implemented");
4325
5077
  }
@@ -4330,25 +5082,24 @@ function requireCalculator () {
4330
5082
 
4331
5083
  var building_type_enum = {};
4332
5084
 
4333
- (function (exports) {
4334
- Object.defineProperty(exports, "__esModule", { value: true });
4335
- exports.BuildingType = void 0;
4336
- (function (BuildingType) {
4337
- BuildingType["Household"] = "Household";
4338
- BuildingType["HealthCenter"] = "HealthCenter";
4339
- BuildingType["Dispensary"] = "Dispensary";
4340
- BuildingType["School"] = "School";
4341
- BuildingType["PrimarySchool"] = "PrimarySchool";
4342
- BuildingType["SecondarySchool"] = "SecondarySchool";
4343
- BuildingType["PublicAdministration"] = "PublicAdministration";
4344
- BuildingType["TradingPlace"] = "TradingPlace";
4345
- BuildingType["BusStop"] = "BusStop";
4346
- })(exports.BuildingType || (exports.BuildingType = {}));
4347
- } (building_type_enum));
5085
+ Object.defineProperty(building_type_enum, "__esModule", { value: true });
5086
+ building_type_enum.BuildingType = void 0;
5087
+ var BuildingType;
5088
+ (function (BuildingType) {
5089
+ BuildingType["Household"] = "Household";
5090
+ BuildingType["HealthCenter"] = "HealthCenter";
5091
+ BuildingType["Dispensary"] = "Dispensary";
5092
+ BuildingType["School"] = "School";
5093
+ BuildingType["PrimarySchool"] = "PrimarySchool";
5094
+ BuildingType["SecondarySchool"] = "SecondarySchool";
5095
+ BuildingType["PublicAdministration"] = "PublicAdministration";
5096
+ BuildingType["TradingPlace"] = "TradingPlace";
5097
+ BuildingType["BusStop"] = "BusStop";
5098
+ })(BuildingType || (building_type_enum.BuildingType = BuildingType = {}));
4348
5099
 
4349
5100
  (function (exports) {
4350
5101
  Object.defineProperty(exports, "__esModule", { value: true });
4351
- exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
5102
+ exports.SolarWaterPumpingOnGridCreationRequest = exports.SolarWaterPumpingOnGridConstants = exports.SolarWaterPumpingOffGridCreationRequest = exports.SolarWaterPumpingOffGridConstants = exports.StovesHousesNamibiaCreationRequest = exports.StovesHousesNamibiaConstants = exports.SoilEnrichmentCreationRequest = exports.SoilEnrichmentConstants = exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
4352
5103
  const calculator_1 = requireCalculator();
4353
5104
  Object.defineProperty(exports, "calculateCredit", { enumerable: true, get: function () { return calculator_1.calculateCredit; } });
4354
5105
  const agricultureConstants_1 = agricultureConstants;
@@ -4360,7 +5111,23 @@ var building_type_enum = {};
4360
5111
  const agricultureCreationRequest_1 = agricultureCreationRequest;
4361
5112
  Object.defineProperty(exports, "AgricultureCreationRequest", { enumerable: true, get: function () { return agricultureCreationRequest_1.AgricultureCreationRequest; } });
4362
5113
  const solarCreationRequest_1 = solarCreationRequest;
4363
- Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5114
+ Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5115
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
5116
+ Object.defineProperty(exports, "SoilEnrichmentConstants", { enumerable: true, get: function () { return soilEnrichmentConstants_1.SoilEnrichmentConstants; } });
5117
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5118
+ Object.defineProperty(exports, "SoilEnrichmentCreationRequest", { enumerable: true, get: function () { return soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest; } });
5119
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
5120
+ Object.defineProperty(exports, "StovesHousesNamibiaConstants", { enumerable: true, get: function () { return stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants; } });
5121
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
5122
+ Object.defineProperty(exports, "StovesHousesNamibiaCreationRequest", { enumerable: true, get: function () { return stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest; } });
5123
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
5124
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants; } });
5125
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5126
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest; } });
5127
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
5128
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants; } });
5129
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5130
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest; } });
4364
5131
  } (cjs));
4365
5132
 
4366
5133
  var consumerGroupList = [
@@ -15483,19 +16250,35 @@ var NdcActionDetails = function (props) {
15483
16250
  translator.setDefaultNamespace("ndcAction");
15484
16251
  var t = translator.t;
15485
16252
  var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
15486
- var _b = React.useState(), mitigationType = _b[0], setmitigationType = _b[1];
15487
- var _c = React.useState(""), sector = _c[0], setSector = _c[1];
15488
- var _d = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
15489
- var _e = React.useState([]), checkedOptionsGhgReduced = _e[0], setCheckedOptionsGhgReduced = _e[1];
15490
- var _f = React.useState([]), checkedOptionsGhgAvoided = _f[0], setCheckedOptionsGhgAvoided = _f[1];
15491
- var _g = React.useState(), inputNumberValueGhgAvoidedGas = _g[0], setInputNumberValueGhgAvoidedGas = _g[1];
15492
- var _h = React.useState(), inputNumberValueGhgReducedGas = _h[0], setInputNumberValueGhgReducedGas = _h[1];
15493
- var _j = React.useState(), includedInNAP = _j[0], setIncludedInNAP = _j[1];
16253
+ var _b = React.useState(), methodology = _b[0], setMethodology = _b[1];
16254
+ var _c = React.useState(), mitigationType = _c[0], setmitigationType = _c[1];
16255
+ var _d = React.useState(""), mitigationSubType = _d[0], setMitigationSubType = _d[1];
16256
+ var _e = React.useState(""), sector = _e[0], setSector = _e[1];
16257
+ var _f = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _f[0]; _f[1];
16258
+ var _g = React.useState([]), checkedOptionsGhgReduced = _g[0], setCheckedOptionsGhgReduced = _g[1];
16259
+ var _h = React.useState([]), checkedOptionsGhgAvoided = _h[0], setCheckedOptionsGhgAvoided = _h[1];
16260
+ var _j = React.useState(), inputNumberValueGhgAvoidedGas = _j[0], setInputNumberValueGhgAvoidedGas = _j[1];
16261
+ var _k = React.useState(), inputNumberValueGhgReducedGas = _k[0], setInputNumberValueGhgReducedGas = _k[1];
16262
+ var _l = React.useState(), includedInNAP = _l[0], setIncludedInNAP = _l[1];
15494
16263
  var form = antd.Form.useForm()[0];
15495
16264
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
15496
16265
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
15497
16266
  : 5000000;
15498
16267
  var ghgEmissionsGas = ["CO2", "CH4", "N20", "HFCs", "PFCs", "SF6"];
16268
+ [
16269
+ exports.MitigationSubTypes.RICE_CROPS,
16270
+ exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV,
16271
+ exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID,
16272
+ exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID,
16273
+ exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR,
16274
+ exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA,
16275
+ ];
16276
+ var methodologyOptions = [
16277
+ { value: 'UNFCCC CDM', label: 'UNFCCC CDM' },
16278
+ { value: 'Gold Standard', label: 'Gold Standard' },
16279
+ { value: 'Verra VCS', label: 'Verra VCS' },
16280
+ { value: 'Other', label: 'Other' },
16281
+ ];
15499
16282
  React.useEffect(function () {
15500
16283
  if (programmeDetails) {
15501
16284
  setSector(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector);
@@ -15510,6 +16293,9 @@ var NdcActionDetails = function (props) {
15510
16293
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) {
15511
16294
  setmitigationType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation);
15512
16295
  }
16296
+ if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) {
16297
+ setMitigationSubType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation);
16298
+ }
15513
16299
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP) {
15514
16300
  setIncludedInNAP(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP);
15515
16301
  }
@@ -15522,6 +16308,7 @@ var NdcActionDetails = function (props) {
15522
16308
  form.setFieldsValue({
15523
16309
  ndcActionType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action,
15524
16310
  mitigationType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation,
16311
+ mitigationSubType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation,
15525
16312
  energyGeneration: (_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _a === void 0 ? void 0 : _a.energyGeneration,
15526
16313
  energyGenerationUnit: (_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _b === void 0 ? void 0 : _b.energyGenerationUnit,
15527
16314
  consumerGroup: (_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.consumerGroup,
@@ -15599,18 +16386,42 @@ var NdcActionDetails = function (props) {
15599
16386
  if (formValues.ndcActionType === exports.NdcActionTypes.Mitigation ||
15600
16387
  formValues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
15601
16388
  if (formValues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
15602
- creditRequest = new cjs.AgricultureCreationRequest();
15603
- creditRequest.landArea = formValues.eligibleLandArea;
15604
- creditRequest.landAreaUnit = formValues.landAreaUnit;
15605
- creditRequest.duration =
15606
- programmeDetails.endTime - programmeDetails.startTime;
15607
- creditRequest.durationUnit = "s";
16389
+ if (formValues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
16390
+ creditRequest = new cjs.AgricultureCreationRequest();
16391
+ creditRequest.landArea = formValues.eligibleLandArea;
16392
+ creditRequest.landAreaUnit = formValues.landAreaUnit;
16393
+ creditRequest.duration =
16394
+ programmeDetails.endTime - programmeDetails.startTime;
16395
+ creditRequest.durationUnit = "s";
16396
+ }
16397
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
16398
+ creditRequest = new cjs.SoilEnrichmentCreationRequest();
16399
+ creditRequest.weight = formValues.tonnesOnDryBasis;
16400
+ }
15608
16401
  }
15609
16402
  else if (formValues.mitigationType === exports.MitigationTypes.SOLAR) {
15610
- creditRequest = new cjs.SolarCreationRequest();
15611
- creditRequest.buildingType = formValues.consumerGroup;
15612
- creditRequest.energyGeneration = formValues.energyGeneration;
15613
- creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
16403
+ if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
16404
+ creditRequest = new cjs.SolarCreationRequest();
16405
+ creditRequest.buildingType = formValues.consumerGroup;
16406
+ creditRequest.energyGeneration = formValues.energyGeneration;
16407
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
16408
+ }
16409
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
16410
+ creditRequest = new cjs.SolarWaterPumpingOffGridCreationRequest();
16411
+ creditRequest.energyGeneration = formValues.energyGeneration;
16412
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
16413
+ }
16414
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
16415
+ creditRequest = new cjs.SolarWaterPumpingOnGridCreationRequest();
16416
+ creditRequest.energyGeneration = formValues.energyGeneration;
16417
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
16418
+ }
16419
+ }
16420
+ else if (formValues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
16421
+ && formValues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
16422
+ creditRequest = new cjs.StovesHousesNamibiaCreationRequest();
16423
+ creditRequest.numberOfDays = formValues.numberOfDays;
16424
+ creditRequest.numberOfPeopleInHousehold = formValues.numberOfPeople;
15614
16425
  }
15615
16426
  }
15616
16427
  var creditResponse = cjs.calculateCredit(creditRequest);
@@ -15637,8 +16448,37 @@ var NdcActionDetails = function (props) {
15637
16448
  };
15638
16449
  var handleMitigationTypeChange = function (selectedMitigationType) {
15639
16450
  setmitigationType(selectedMitigationType);
16451
+ form.setFieldsValue({
16452
+ mitigationSubType: "",
16453
+ tonnesOnDryBasis: "",
16454
+ numberOfPeople: "",
16455
+ numberOfDays: "",
16456
+ landAreaUnit: "",
16457
+ eligibleLandArea: "",
16458
+ consumerGroup: "",
16459
+ energyGenerationUnit: "",
16460
+ energyGeneration: "",
16461
+ methodologyEstimatedCredits: 0,
16462
+ });
15640
16463
  calculateMethodologyEstimatedCredits();
15641
16464
  };
16465
+ var handleMitigationSubTypeChange = function (selectedSubMitigationType) {
16466
+ setMitigationSubType(selectedSubMitigationType);
16467
+ form.setFieldsValue({
16468
+ tonnesOnDryBasis: "",
16469
+ numberOfPeople: "",
16470
+ numberOfDays: "",
16471
+ landAreaUnit: "",
16472
+ eligibleLandArea: "",
16473
+ consumerGroup: "",
16474
+ energyGenerationUnit: "",
16475
+ energyGeneration: "",
16476
+ methodologyEstimatedCredits: 0,
16477
+ });
16478
+ };
16479
+ var handleMethodologyChange = function (selectedMethodology) {
16480
+ setMethodology(selectedMethodology);
16481
+ };
15642
16482
  var onNdcActionDetailsFormSubmit = function (ndcActionFormvalues) { return __awaiter(void 0, void 0, void 0, function () {
15643
16483
  var ndcActionDetailObj, enablementReport;
15644
16484
  var _a;
@@ -15649,17 +16489,28 @@ var NdcActionDetails = function (props) {
15649
16489
  ndcActionDetailObj.action = ndcActionFormvalues.ndcActionType;
15650
16490
  if (ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Mitigation ||
15651
16491
  ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
15652
- ndcActionDetailObj.methodology = t("ndcAction:goldStandard");
16492
+ ndcActionDetailObj.methodology = ndcActionFormvalues.methodology;
15653
16493
  ndcActionDetailObj.typeOfMitigation = ndcActionFormvalues.mitigationType;
15654
- if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
16494
+ ndcActionDetailObj.subTypeOfMitigation = ndcActionFormvalues.mitigationSubType;
16495
+ if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
16496
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
15655
16497
  ndcActionDetailObj.agricultureProperties = {
15656
16498
  landArea: ndcActionFormvalues.eligibleLandArea
15657
16499
  ? ndcActionFormvalues.eligibleLandArea
15658
16500
  : 0,
15659
16501
  landAreaUnit: ndcActionFormvalues.landAreaUnit,
15660
16502
  };
16503
+ ndcActionDetailObj.creditCalculationProperties = {
16504
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16505
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16506
+ landArea: ndcActionFormvalues.eligibleLandArea
16507
+ ? ndcActionFormvalues.eligibleLandArea
16508
+ : 0,
16509
+ landAreaUnit: ndcActionFormvalues.landAreaUnit,
16510
+ };
15661
16511
  }
15662
- else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR) {
16512
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
16513
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
15663
16514
  ndcActionDetailObj.solarProperties = {
15664
16515
  energyGeneration: ndcActionFormvalues.energyGeneration
15665
16516
  ? ndcActionFormvalues.energyGeneration
@@ -15667,18 +16518,54 @@ var NdcActionDetails = function (props) {
15667
16518
  energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
15668
16519
  consumerGroup: ndcActionFormvalues.consumerGroup,
15669
16520
  };
16521
+ ndcActionDetailObj.creditCalculationProperties = {
16522
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16523
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16524
+ energyGeneration: ndcActionFormvalues.energyGeneration
16525
+ ? ndcActionFormvalues.energyGeneration
16526
+ : 0,
16527
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
16528
+ consumerGroup: ndcActionFormvalues.consumerGroup,
16529
+ };
15670
16530
  }
15671
- if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR ||
15672
- ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
15673
- if (parseFloat(ndcActionFormvalues.methodologyEstimatedCredits) <= 0) {
15674
- antd.message.open({
15675
- type: "error",
15676
- content: t("methodologyEstimatedCreditsInvalid"),
15677
- duration: 4,
15678
- style: { textAlign: "right", marginRight: 15, marginTop: 10 },
15679
- });
15680
- return [2 /*return*/];
15681
- }
16531
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
16532
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
16533
+ ndcActionDetailObj.creditCalculationProperties = {
16534
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16535
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16536
+ energyGeneration: ndcActionFormvalues.energyGeneration
16537
+ ? ndcActionFormvalues.energyGeneration
16538
+ : 0,
16539
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
16540
+ };
16541
+ }
16542
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
16543
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
16544
+ ndcActionDetailObj.creditCalculationProperties = {
16545
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16546
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16547
+ energyGeneration: ndcActionFormvalues.energyGeneration
16548
+ ? ndcActionFormvalues.energyGeneration
16549
+ : 0,
16550
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
16551
+ };
16552
+ }
16553
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
16554
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
16555
+ ndcActionDetailObj.creditCalculationProperties = {
16556
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16557
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16558
+ numberOfDays: ndcActionFormvalues.numberOfDays,
16559
+ numberOfPeopleInHousehold: ndcActionFormvalues.numberOfPeople,
16560
+ };
16561
+ }
16562
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
16563
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
16564
+ ndcActionDetailObj.creditCalculationProperties = {
16565
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
16566
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
16567
+ weight: ndcActionFormvalues.tonnesOnDryBasis,
16568
+ };
15682
16569
  }
15683
16570
  if (ndcActionFormvalues.userEstimatedCredits > programmeDetails.creditEst) {
15684
16571
  antd.message.open({
@@ -15800,24 +16687,36 @@ var NdcActionDetails = function (props) {
15800
16687
  (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Hospitality
15801
16688
  ? mitigationTypeList
15802
16689
  : sectorMitigationTypesListMapped[sector] }))),
16690
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
16691
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
16692
+ mitigationType && mitigationSubTypesListMapped[mitigationType] && (React.createElement(antd.Col, { style: { marginLeft: "38px" } },
16693
+ React.createElement(antd.Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
16694
+ {
16695
+ required: true,
16696
+ message: "".concat(t("ndcAction:mitigationSubType"), " ").concat(t("ndcAction:isRequired")),
16697
+ },
16698
+ ] },
16699
+ React.createElement(antd.Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
16700
+ width: "249px",
16701
+ borderRadius: "4px",
16702
+ }, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType })))),
15803
16703
  React.createElement(antd.Col, { style: { marginLeft: "38px" } },
15804
- React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology" },
15805
- React.createElement("span", { style: {
15806
- display: "inline-block",
15807
- border: "1px solid #D9D9D9",
16704
+ React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [
16705
+ {
16706
+ required: true,
16707
+ message: "".concat(t("ndcAction:methodology"), " ").concat(t("ndcAction:isRequired")),
16708
+ },
16709
+ ] },
16710
+ React.createElement(antd.Select, { size: "large", onChange: handleMethodologyChange, style: {
15808
16711
  width: "154px",
15809
- height: "38px",
15810
16712
  borderRadius: "4px",
15811
- padding: "7px 8px",
15812
- fontSize: "14px",
15813
- backgroundColor: "#F0F0F0",
15814
- color: "#8C8C8C",
15815
- } },
15816
- " ",
15817
- t("ndcAction:goldStandard"))))))),
16713
+ }, options: methodologyOptions, value: methodology })))))),
15818
16714
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
15819
16715
  ndcActionType === exports.NdcActionTypes.CrossCutting) &&
15820
- mitigationType === exports.MitigationTypes.SOLAR && (React.createElement(React.Fragment, null,
16716
+ mitigationType === exports.MitigationTypes.SOLAR &&
16717
+ (mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV ||
16718
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
16719
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) && (React.createElement(React.Fragment, null,
15821
16720
  React.createElement(antd.Row, { justify: "start", align: "middle" },
15822
16721
  React.createElement(antd.Col, null,
15823
16722
  React.createElement(antd.Form.Item, { label: t("ndcAction:energyGeneration"), rules: [
@@ -15848,16 +16747,17 @@ var NdcActionDetails = function (props) {
15848
16747
  },
15849
16748
  ] },
15850
16749
  React.createElement(antd.Select, { size: "large", style: { width: 442 }, options: energyGenerationUnitList, onChange: calculateMethodologyEstimatedCredits })))),
15851
- React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
16750
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV && (React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
15852
16751
  {
15853
16752
  required: true,
15854
16753
  message: "".concat(t("ndcAction:consumerGroup"), " ").concat(t("ndcAction:isRequired")),
15855
16754
  },
15856
16755
  ] },
15857
- React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList })))),
16756
+ React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList }))))),
15858
16757
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
15859
16758
  ndcActionType === exports.NdcActionTypes.CrossCutting) &&
15860
- mitigationType === exports.MitigationTypes.AGRICULTURE && (React.createElement(antd.Row, { justify: "start", align: "middle" },
16759
+ mitigationType === exports.MitigationTypes.AGRICULTURE &&
16760
+ mitigationSubType === exports.MitigationSubTypes.RICE_CROPS && (React.createElement(antd.Row, { justify: "start", align: "middle" },
15861
16761
  React.createElement(antd.Col, null,
15862
16762
  React.createElement(antd.Form.Item, { label: t("ndcAction:eligibleLandArea"), name: "eligibleLandArea", rules: [
15863
16763
  {
@@ -15887,6 +16787,78 @@ var NdcActionDetails = function (props) {
15887
16787
  },
15888
16788
  ] },
15889
16789
  React.createElement(antd.Select, { onChange: calculateMethodologyEstimatedCredits, size: "large", style: { width: 442 }, options: landAreaUnitList }))))),
16790
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
16791
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
16792
+ mitigationType === exports.MitigationTypes.AGRICULTURE &&
16793
+ mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR && (React.createElement(antd.Row, { justify: "start", align: "middle" },
16794
+ React.createElement(antd.Col, null,
16795
+ React.createElement(antd.Form.Item, { label: t("ndcAction:tonnesOnDryBasis"), name: "tonnesOnDryBasis", rules: [
16796
+ {
16797
+ required: true,
16798
+ message: "",
16799
+ },
16800
+ {
16801
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
16802
+ return __generator(this, function (_a) {
16803
+ if (String(value).trim() === "" ||
16804
+ String(value).trim() === undefined ||
16805
+ value === null ||
16806
+ value === undefined) {
16807
+ throw new Error("".concat(t("ndcAction:tonnesOnDryBasis"), " ").concat(t("ndcAction:isRequired")));
16808
+ }
16809
+ return [2 /*return*/];
16810
+ });
16811
+ }); },
16812
+ },
16813
+ ] },
16814
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))))),
16815
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
16816
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
16817
+ mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS &&
16818
+ mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA && (React.createElement(React.Fragment, null,
16819
+ React.createElement(antd.Row, { justify: "start", align: "middle" },
16820
+ React.createElement(antd.Col, null,
16821
+ React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfDays"), rules: [
16822
+ {
16823
+ required: true,
16824
+ message: "",
16825
+ },
16826
+ {
16827
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
16828
+ return __generator(this, function (_a) {
16829
+ if (String(value).trim() === "" ||
16830
+ String(value).trim() === undefined ||
16831
+ value === null ||
16832
+ value === undefined) {
16833
+ throw new Error("".concat(t("ndcAction:numberOfDays"), " ").concat(t("ndcAction:isRequired")));
16834
+ }
16835
+ return [2 /*return*/];
16836
+ });
16837
+ }); },
16838
+ },
16839
+ ], name: "numberOfDays" },
16840
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
16841
+ React.createElement(antd.Col, { style: { marginLeft: "38px" } },
16842
+ React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfPeople"), rules: [
16843
+ {
16844
+ required: true,
16845
+ message: "",
16846
+ },
16847
+ {
16848
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
16849
+ return __generator(this, function (_a) {
16850
+ if (String(value).trim() === "" ||
16851
+ String(value).trim() === undefined ||
16852
+ value === null ||
16853
+ value === undefined) {
16854
+ throw new Error("".concat(t("ndcAction:numberOfPeople"), " ").concat(t("ndcAction:isRequired")));
16855
+ }
16856
+ return [2 /*return*/];
16857
+ });
16858
+ }); },
16859
+ },
16860
+ ], name: "numberOfPeople" },
16861
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits })))))),
15890
16862
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
15891
16863
  ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, { justify: "start", align: "middle" },
15892
16864
  React.createElement(antd.Col, null,
@@ -18781,26 +19753,55 @@ var NdcActionViewComponent = function (props) {
18781
19753
  _a[t("ndcAction:viewCurrentStatus")] = (React.createElement(antd.Tag, { className: "clickable", color: getNdcStatusTagType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status) }, addSpaces(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status))),
18782
19754
  _a);
18783
19755
  var getNdcActionMitigationDetails = function () {
18784
- var _a, _b, _c, _d, _e;
19756
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18785
19757
  var mitigationDetails = {};
18786
19758
  mitigationTypeList === null || mitigationTypeList === void 0 ? void 0 : mitigationTypeList.map(function (type) {
18787
19759
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === type.value) {
18788
19760
  mitigationDetails[t("ndcAction:viewMitigationType")] = type.label;
18789
19761
  }
18790
19762
  });
19763
+ mitigationSubTypeList === null || mitigationSubTypeList === void 0 ? void 0 : mitigationSubTypeList.map(function (type) {
19764
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === type.value) {
19765
+ mitigationDetails[t("ndcAction:viewMitigationSubType")] = type.label;
19766
+ }
19767
+ });
18791
19768
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
19769
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.RICE_CROPS &&
18792
19770
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties)) {
18793
19771
  mitigationDetails[t("ndcAction:viewMitigationLandArea")] =
18794
19772
  addCommSep((_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _a === void 0 ? void 0 : _a.landArea) +
18795
19773
  ((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
18796
19774
  }
19775
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
19776
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
19777
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
19778
+ mitigationDetails[t("ndcAction:viewMitigationWeight")] =
19779
+ addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
19780
+ }
18797
19781
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
19782
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
18798
19783
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
18799
19784
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
18800
- addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.energyGeneration) +
18801
- ((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGenerationUnit);
19785
+ addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
19786
+ ((_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.energyGenerationUnit);
18802
19787
  mitigationDetails[t("ndcAction:viewMitigationConsumerGroup")] =
18803
- (_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.consumerGroup;
19788
+ (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
19789
+ }
19790
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
19791
+ ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
19792
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
19793
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
19794
+ mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
19795
+ addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
19796
+ ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
19797
+ }
19798
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.EE_HOUSEHOLDS &&
19799
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
19800
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
19801
+ mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
19802
+ (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
19803
+ mitigationDetails[t("ndcAction:viewMitigationNoOfPeople")] =
19804
+ (_k = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _k === void 0 ? void 0 : _k.numberOfPeopleInHousehold;
18804
19805
  }
18805
19806
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.ndcFinancing) {
18806
19807
  mitigationDetails[t("ndcAction:viewMitigationUserEstimatedCredits")] =
@@ -24984,6 +25985,8 @@ exports.getStatusTagType = getStatusTagType;
24984
25985
  exports.getTransferStageTagType = getTransferStageTagType;
24985
25986
  exports.isBase64 = isBase64;
24986
25987
  exports.landAreaUnitList = landAreaUnitList;
25988
+ exports.mitigationSubTypeList = mitigationSubTypeList;
25989
+ exports.mitigationSubTypesListMapped = mitigationSubTypesListMapped;
24987
25990
  exports.mitigationTypeList = mitigationTypeList;
24988
25991
  exports.ndcActionTypeList = ndcActionTypeList;
24989
25992
  exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;