@undp/carbon-library 1.0.131-NAM-4.0 → 1.0.133-CARBON-325.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, LinkOutlined, CaretDownOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
1
+ import { PlusOutlined, FilterOutlined, DownloadOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, LinkOutlined, CaretDownOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
2
2
  import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, Tooltip, Select, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, InputNumber, Popover, List, Typography, Spin, Tabs, Progress } from 'antd';
3
3
  import React, { useState, useEffect, useRef } from 'react';
4
4
  import { DateTime } from 'luxon';
@@ -504,6 +504,7 @@ var CompanyManagementComponent = function (props) {
504
504
  var _j = useState("All"), filterByOrganisationType = _j[0], setFilterByOrganisationType = _j[1];
505
505
  var _k = useState(""), sortOrder = _k[0], setSortOrder = _k[1];
506
506
  var _l = useState(""), sortField = _l[0], setSortField = _l[1];
507
+ var _m = useState(), dataQuery = _m[0], setDataQuery = _m[1];
507
508
  var ability = useAbilityContext();
508
509
  document.addEventListener("mousedown", function (event) {
509
510
  var organisationFilterArea1 = document.querySelector(".filter-bar");
@@ -709,6 +710,11 @@ var CompanyManagementComponent = function (props) {
709
710
  setTableData(availableCompanies);
710
711
  setTotalCompany((_b = (_a = response === null || response === void 0 ? void 0 : response.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.total);
711
712
  }
713
+ setDataQuery({
714
+ filterAnd: filterAnd(),
715
+ filterOr: filterOr(),
716
+ sort: sort(),
717
+ });
712
718
  setLoading(false);
713
719
  return [3 /*break*/, 4];
714
720
  case 3:
@@ -725,6 +731,44 @@ var CompanyManagementComponent = function (props) {
725
731
  }
726
732
  });
727
733
  }); };
734
+ var downloadCompanyData = function () { return __awaiter(void 0, void 0, void 0, function () {
735
+ var response, url, a, error_2;
736
+ var _a;
737
+ return __generator(this, function (_b) {
738
+ switch (_b.label) {
739
+ case 0:
740
+ setLoading(true);
741
+ _b.label = 1;
742
+ case 1:
743
+ _b.trys.push([1, 3, , 4]);
744
+ return [4 /*yield*/, post("national/organisation/download", {
745
+ filterAnd: dataQuery.filterAnd,
746
+ filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
747
+ sort: dataQuery.sort,
748
+ })];
749
+ case 2:
750
+ response = _b.sent();
751
+ if (response && response.data) {
752
+ url = response.data.url;
753
+ a = document.createElement('a');
754
+ a.href = url;
755
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
756
+ document.body.appendChild(a);
757
+ a.click();
758
+ document.body.removeChild(a); // Clean up the created <a> element
759
+ window.URL.revokeObjectURL(url);
760
+ }
761
+ setLoading(false);
762
+ return [3 /*break*/, 4];
763
+ case 3:
764
+ error_2 = _b.sent();
765
+ console.log("Error in downloading company data", error_2);
766
+ setLoading(false);
767
+ return [3 /*break*/, 4];
768
+ case 4: return [2 /*return*/];
769
+ }
770
+ });
771
+ }); };
728
772
  useEffect(function () {
729
773
  getAllCompany();
730
774
  }, [
@@ -812,7 +856,13 @@ var CompanyManagementComponent = function (props) {
812
856
  React.createElement(FilterOutlined, { style: {
813
857
  color: "rgba(58, 53, 65, 0.3)",
814
858
  fontSize: "20px",
815
- } }))))))),
859
+ } })))),
860
+ React.createElement("div", { className: "download-data-btn" },
861
+ React.createElement("a", { onClick: downloadCompanyData },
862
+ React.createElement(DownloadOutlined, { style: {
863
+ color: "rgba(58, 53, 65, 0.3)",
864
+ fontSize: "20px",
865
+ } })))))),
816
866
  React.createElement(Row, null,
817
867
  React.createElement(Col, { span: 24 },
818
868
  React.createElement("div", { className: "userManagement-table-container" },
@@ -837,7 +887,7 @@ var CompanyManagementComponent = function (props) {
837
887
  var css_248z$q = ".company-details-form-container {\n width: 100%; }\n .company-details-form-container .company-details-form .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .company-details-form-container .company-details-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .company-details-form-container .company-details-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .company-details-form-container .company-details-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .logo-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload {\n width: 20%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #519e4f !important;\n border-color: #519e4f !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffa070 !important;\n border-color: #ffa070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #9155fd !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container {\n width: 45%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #16b1ff !important;\n border-color: #16b1ff !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container {\n width: 25%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #707070 !important;\n border-color: #707070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier .ant-radio-button-checked {\n background: rgba(128, 255, 0, 0.12);\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev .ant-radio-button-checked {\n background: rgba(254, 241, 173, 0.5);\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov .ant-radio-button-checked {\n background: rgba(185, 226, 244, 0.56);\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister .ant-radio-button-checked {\n background: rgba(198, 144, 251, 0.12);\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer .ant-radio-button-checked {\n background: rgba(176, 190, 197, 0.23);\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-company-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-company-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-company-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-company-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-company-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-company-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-company-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-company-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-company-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-company-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n\n.hide {\n display: none !important; }\n";
838
888
  styleInject(css_248z$q);
839
889
 
840
- var css_248z$p = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n\n.ant-menu {\n background-color: #f4f5fa; }\n\n.ant-layout-header {\n background-color: #f4f5fa; }\n\n.ant-layout {\n background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n\n.ant-menu-item {\n background-color: #f4f5fa; }\n\n.ant-menu-sub {\n background-color: #f4f5fa; }\n\n.ant-table-content {\n font-family: \"Inter\"; }\n\n.ant-input {\n border-radius: 5px !important; }\n\n.ant-btn {\n border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n width: 99% !important; }\n\n.ant-tooltip-inner {\n border-radius: 5px !important;\n background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n background-color: transparent !important; }\n\n.ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n margin-left: 0.2rem !important;\n color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n\n.PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border: 1px solid #d9d9d9 !important;\n outline: none; }\n\n.filter-title {\n color: rgba(58, 53, 65, 0.8);\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border-right: 1px solid #40a9ff !important;\n outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n padding-bottom: 100px; }\n .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n .layout-content-container .ant-btn {\n height: 32px;\n font-weight: 500;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n min-width: 80px;\n box-shadow: none; }\n .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n\n.content-container {\n padding: 0px 20px; }\n .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n\n.content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n .content-card .action-bar button {\n width: fit-content; }\n .content-card .filter-section {\n padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: end; }\n .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n min-width: 50px !important; }\n\n.table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n\n.action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n .action-menu .anticon-edit {\n color: #16b1ff; }\n .action-menu .anticon-delete {\n color: #f25a29; }\n\n.ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n\n.ant-tag {\n border-radius: 20px; }\n\n.clickable {\n cursor: pointer; }\n\n.text-center {\n text-align: center; }\n\n.float-left {\n float: left; }\n\n.float-right {\n float: right; }\n\n.apexcharts-canvas {\n font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n\n.ant-tag {\n padding: 1px 10px; }\n\n.flex-display {\n display: flex; }\n\n.ant-modal-footer {\n border-top: none;\n text-align: center; }\n .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n\n.ant-modal-header {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-content {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-header {\n border: none; }\n\n.ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n .ant-modal-body .form-label {\n text-align: left; }\n .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n\n.popup-header {\n text-align: center;\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n font-family: \"Inter\";\n font-size: 0.9rem;\n margin: 25px 20px -20px 20px; }\n .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n .popup-header img {\n height: 100px; }\n\n.popup-success .icon {\n color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-primary .icon {\n color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n background: rgba(255, 77, 79, 0.8);\n border-radius: rgba(255, 77, 79, 0.8);\n border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n color: rgba(140, 140, 140, 0.7) !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n\n.pull-right {\n float: right; }\n\n.disabled {\n opacity: 0.5; }\n\n.mg-left-3 {\n margin-left: 3rem; }\n\n.mg-left-2 {\n margin-left: 2rem !important; }\n\n.mg-left-1 {\n margin-left: 1rem; }\n\n.mg-top-1 {\n margin-top: 1rem; }\n\n.mg-top-2 {\n margin-top: 2rem; }\n\n.mg-bottom-1 {\n margin-bottom: 1rem !important; }\n\n.transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n .transfer-form .ant-row {\n align-items: unset; }\n .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n .transfer-form label {\n font-size: 0.8rem; }\n .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n\n.color-error {\n color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n color: #16b1ff; }\n\n.ant-input-number-input {\n text-align: right; }\n\n.text-left {\n text-align: left; }\n\n.ant-form-item .ant-radio-group {\n text-align: left; }\n\n.loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n\n.ant-tag-purple {\n color: #976ed7; }\n\n.ant-tag-orange {\n color: #ff8f56; }\n\n.ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n border-radius: 4px; }\n\n.ant-input-number {\n border-radius: 5px; }\n\n.ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n\n.flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n\n.b-icon {\n vertical-align: middle; }\n\n.ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n .ant-message-notice-content .ant-message-error {\n color: rgba(255, 77, 79, 0.8);\n border: 1px solid rgba(255, 77, 79, 0.8); }\n .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n\n.search-filter {\n margin-right: 15px; }\n\n.mg-bottom-0 {\n margin-bottom: 0px; }\n\n.padding-bottom-0 {\n padding-bottom: 0px; }\n\n.ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n overflow-wrap: break-word; }\n\n.ant-message {\n width: 50%;\n right: 0px;\n left: auto;\n min-width: 400px; }\n";
890
+ var css_248z$p = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n\n.ant-menu {\n background-color: #f4f5fa; }\n\n.ant-layout-header {\n background-color: #f4f5fa; }\n\n.ant-layout {\n background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n\n.ant-menu-item {\n background-color: #f4f5fa; }\n\n.ant-menu-sub {\n background-color: #f4f5fa; }\n\n.ant-table-content {\n font-family: \"Inter\"; }\n\n.ant-input {\n border-radius: 5px !important; }\n\n.ant-btn {\n border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n width: 99% !important; }\n\n.ant-tooltip-inner {\n border-radius: 5px !important;\n background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n background-color: transparent !important; }\n\n.ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n margin-left: 0.2rem !important;\n color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n\n.PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border: 1px solid #d9d9d9 !important;\n outline: none; }\n\n.filter-title {\n color: rgba(58, 53, 65, 0.8);\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border-right: 1px solid #40a9ff !important;\n outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n padding-bottom: 100px; }\n .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n .layout-content-container .ant-btn {\n height: 32px;\n font-weight: 500;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n min-width: 80px;\n box-shadow: none; }\n .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n\n.content-container {\n padding: 0px 20px; }\n .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n\n.content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n .content-card .action-bar button {\n width: fit-content; }\n .content-card .filter-section {\n padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: end; }\n .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n min-width: 50px !important; }\n\n.table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n\n.action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n .action-menu .anticon-edit {\n color: #16b1ff; }\n .action-menu .anticon-delete {\n color: #f25a29; }\n\n.ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n\n.ant-tag {\n border-radius: 20px; }\n\n.clickable {\n cursor: pointer; }\n\n.text-center {\n text-align: center; }\n\n.float-left {\n float: left; }\n\n.float-right {\n float: right; }\n\n.apexcharts-canvas {\n font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n\n.ant-tag {\n padding: 1px 10px; }\n\n.flex-display {\n display: flex; }\n\n.ant-modal-footer {\n border-top: none;\n text-align: center; }\n .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n\n.ant-modal-header {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-content {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-header {\n border: none; }\n\n.ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n .ant-modal-body .form-label {\n text-align: left; }\n .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n\n.popup-header {\n text-align: center;\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n font-family: \"Inter\";\n font-size: 0.9rem;\n margin: 25px 20px -20px 20px; }\n .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n .popup-header img {\n height: 100px; }\n\n.popup-success .icon {\n color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-primary .icon {\n color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n background: rgba(255, 77, 79, 0.8);\n border-radius: rgba(255, 77, 79, 0.8);\n border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n color: rgba(140, 140, 140, 0.7) !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n\n.pull-right {\n float: right; }\n\n.disabled {\n opacity: 0.5; }\n\n.mg-left-3 {\n margin-left: 3rem; }\n\n.mg-left-2 {\n margin-left: 2rem !important; }\n\n.mg-left-1 {\n margin-left: 1rem; }\n\n.mg-top-1 {\n margin-top: 1rem; }\n\n.mg-top-2 {\n margin-top: 2rem; }\n\n.mg-bottom-1 {\n margin-bottom: 1rem !important; }\n\n.transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n .transfer-form .ant-row {\n align-items: unset; }\n .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n .transfer-form label {\n font-size: 0.8rem; }\n .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n\n.color-error {\n color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n color: #16b1ff; }\n\n.ant-input-number-input {\n text-align: right; }\n\n.text-left {\n text-align: left; }\n\n.ant-form-item .ant-radio-group {\n text-align: left; }\n\n.loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n\n.ant-tag-purple {\n color: #976ed7; }\n\n.ant-tag-orange {\n color: #ff8f56; }\n\n.ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n border-radius: 4px; }\n\n.ant-input-number {\n border-radius: 5px; }\n\n.ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n\n.flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n\n.b-icon {\n vertical-align: middle; }\n\n.ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n .ant-message-notice-content .ant-message-error {\n color: rgba(255, 77, 79, 0.8);\n border: 1px solid rgba(255, 77, 79, 0.8); }\n .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n\n.search-filter {\n margin-right: 15px; }\n\n.download-data-btn {\n margin-left: 15px; }\n\n.mg-bottom-0 {\n margin-bottom: 0px; }\n\n.padding-bottom-0 {\n padding-bottom: 0px; }\n\n.ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n overflow-wrap: break-word; }\n\n.ant-message {\n width: 50%;\n right: 0px;\n left: auto;\n min-width: 400px; }\n";
841
891
  styleInject(css_248z$p);
842
892
 
843
893
  var UserManagementColumns;
@@ -936,7 +986,172 @@ var MitigationTypes;
936
986
  MitigationTypes["SOLAR"] = "Solar";
937
987
  MitigationTypes["TRANSPORT"] = "Transport";
938
988
  MitigationTypes["WIND"] = "Wind";
989
+ MitigationTypes["CO2_USAGE"] = "CO2Usage";
990
+ MitigationTypes["TIDAL"] = "Tidal";
939
991
  })(MitigationTypes || (MitigationTypes = {}));
992
+ var MitigationSubTypes;
993
+ (function (MitigationSubTypes) {
994
+ MitigationSubTypes["IRRIGATION"] = "Irrigation";
995
+ MitigationSubTypes["ENERGY_EFFICIENCY"] = "EnergyEfficiency";
996
+ MitigationSubTypes["ALTERNATIVE_FERTILISER"] = "AlternativeFertilisers";
997
+ MitigationSubTypes["NO_TILLAGE"] = "NoTillage";
998
+ MitigationSubTypes["SOIL_ENRICHMENT_BIOCHAR"] = "SoilEnrichmentBiochar";
999
+ MitigationSubTypes["RICE_CROPS"] = "RiceCrops";
1000
+ MitigationSubTypes["BAGASSE_POWER"] = "BagassePower";
1001
+ MitigationSubTypes["PALM_OIL_SOLID_WASTE"] = "Palm oil solid waste";
1002
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_OTHER_KINDS"] = "AgriculturalResiduesOtherKinds";
1003
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_RICE_HUSK"] = "AgriculturalResiduesRiceHusk";
1004
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_MUSTARD_CROP"] = "AgriculturalResiduesMustardCrop";
1005
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_POULTRY_LITTER"] = "AgriculturalResiduesPoultryLitter";
1006
+ MitigationSubTypes["BLACK_LIQUOR"] = "BlackLiquor";
1007
+ MitigationSubTypes["FOREST_RESIDUES_SAWMILL_WASTE"] = "ForestResiduesSawmillWaste";
1008
+ MitigationSubTypes["FOREST_RESIDUES_OTHER"] = "ForestResiduesOther";
1009
+ MitigationSubTypes["FOREST_BIOMASS"] = "ForestBiomass";
1010
+ MitigationSubTypes["INDUSTRIAL_WASTE"] = "IndustrialWaste";
1011
+ MitigationSubTypes["GASIFICATION_OF_BIOMASS"] = "GasificationOfBiomass";
1012
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS"] = "SwitchFromFossilFuelToPipedBiogas";
1013
+ MitigationSubTypes["BIOMASS_BRIQUETTES_OR_PELLETS"] = "BiomassBriquettesOrPellets";
1014
+ MitigationSubTypes["BIODIESEL"] = "Biodiesel";
1015
+ MitigationSubTypes["BIODIESEL_FROM_WASTE_OIL"] = "BiodieselFromWasteOil";
1016
+ MitigationSubTypes["ETHANOL"] = "Ethanol";
1017
+ MitigationSubTypes["CLINKER_REPLACEMENT"] = "ClinkerReplacement";
1018
+ MitigationSubTypes["COAL_MINE_METHANE"] = "CoalMineMethane";
1019
+ MitigationSubTypes["COAL_BED_METHANE"] = "CoalBedMethane";
1020
+ MitigationSubTypes["CMM_VENTILATION_AIR_METHANE"] = "CMMVentilationAirMethane";
1021
+ MitigationSubTypes["VENTILATION_AIR_METHANE"] = "VentilationAirMethane";
1022
+ MitigationSubTypes["LIGHTING"] = "Lighting";
1023
+ MitigationSubTypes["SOLAR_LAMPS"] = "SolarLamps";
1024
+ MitigationSubTypes["STOVES"] = "Stoves";
1025
+ MitigationSubTypes["STOVES_SCHOOL_IN_GHANA"] = "StovesSchoolInGhana";
1026
+ MitigationSubTypes["STOVES_HOUSES_IN_NAMIBIA"] = "StovesHousesInNamibia";
1027
+ MitigationSubTypes["LIGHTING_INSULATION_SOLAR"] = "LightingInsulationSolar";
1028
+ MitigationSubTypes["APPLIANCES"] = "Appliances";
1029
+ MitigationSubTypes["CHEMICALS"] = "Chemicals";
1030
+ MitigationSubTypes["PETROCHEMICALS"] = "Petrochemicals";
1031
+ MitigationSubTypes["PAPER"] = "Paper";
1032
+ MitigationSubTypes["CEMENT"] = "Cement";
1033
+ MitigationSubTypes["IRON_STEEL"] = "IronSteel";
1034
+ MitigationSubTypes["MACHINERY"] = "Machinery";
1035
+ MitigationSubTypes["TEXTILES"] = "Textiles";
1036
+ MitigationSubTypes["ELECTRONICS"] = "Electronics";
1037
+ MitigationSubTypes["FOOD"] = "Food";
1038
+ MitigationSubTypes["BUILDING_MATERIALS"] = "BuildingMaterials";
1039
+ MitigationSubTypes["GLASS"] = "Glass";
1040
+ MitigationSubTypes["NON_FERROUS_METALS"] = "NonFerrousMetals";
1041
+ MitigationSubTypes["COKE_OVEN"] = "CokeOven";
1042
+ MitigationSubTypes["Mining"] = "Mining";
1043
+ MitigationSubTypes["CONSTRUCTION"] = "Construction";
1044
+ MitigationSubTypes["METAL_PRODUCTS"] = "MetalProducts";
1045
+ MitigationSubTypes["WOOD"] = "Wood";
1046
+ MitigationSubTypes["RECYCLING"] = "Recycling";
1047
+ MitigationSubTypes["CHEMICALS_HEAT"] = "ChemicalsHeat";
1048
+ MitigationSubTypes["PETROCHEMICALS_HEAT"] = "PetrochemicalsHeat";
1049
+ MitigationSubTypes["CARBON_BLACK_GAS"] = "CarbonBlackGas";
1050
+ MitigationSubTypes["CEMENT_HEAT"] = "CementHeat";
1051
+ MitigationSubTypes["IRON_STEEL_HEAT"] = "IronSteelHeat";
1052
+ MitigationSubTypes["BUILDING_MATERIALS_HEAT"] = "BuildingMaterialsHeat";
1053
+ MitigationSubTypes["GLASS_HEAT"] = "GlassHeat";
1054
+ MitigationSubTypes["NON_FERROUS_METALS_HEAT"] = "NonFerrousMetalsHeat";
1055
+ MitigationSubTypes["COKE_OVEN_GAS"] = "CokeOvenGas";
1056
+ MitigationSubTypes["HVAC_LIGHTING"] = "HvacLighting";
1057
+ MitigationSubTypes["AIR_CONDITIONING"] = "AirConditioning";
1058
+ MitigationSubTypes["EE_NEW_BUILDINGS"] = "EeNewBuildings";
1059
+ MitigationSubTypes["STREET_LIGHTING"] = "StreetLighting";
1060
+ MitigationSubTypes["LIGHTING_IN_SERVICE"] = "LightingInService";
1061
+ MitigationSubTypes["WATER_PUMPING"] = "WaterPumping";
1062
+ MitigationSubTypes["WATER_PURIFICATION"] = "WaterPurification";
1063
+ MitigationSubTypes["EE_PUBLIC_STOVES"] = "EePublicStoves";
1064
+ MitigationSubTypes["EE_PUBLIC_BUILDINGS"] = "EePublicBuildings";
1065
+ MitigationSubTypes["EE_COMMERCIAL_BUILDINGS"] = "EeCommercialBuildings";
1066
+ MitigationSubTypes["SINGLE_CYCLE_TO_COMBINED_CYCLE"] = "SingleCycleToCombinedCycle";
1067
+ MitigationSubTypes["COGENERATION"] = "Cogeneration";
1068
+ MitigationSubTypes["CO_FIRING_WITH_BIOMASS"] = "CoFiringWithBiomass";
1069
+ MitigationSubTypes["HIGHER_EFFICIENCY_COAL_POWER"] = "HigherEfficiencyCoalPower";
1070
+ MitigationSubTypes["HIGHER_EFFICIENCY_OIL_POWER"] = "HigherEfficiencyOilPower";
1071
+ MitigationSubTypes["HIGHER_EFFICIENCY_USING_WASTE_HEAT"] = "HigherEfficiencyUsingWasteHeat";
1072
+ MitigationSubTypes["POWER_PLANT_REHABILITATION"] = "PowerPlantRehabilitation";
1073
+ MitigationSubTypes["HIGHER_EFFICIENCY_STEAM_BOILER"] = "HigherEfficiencySteamBoiler";
1074
+ MitigationSubTypes["DISTRICT_HEATING"] = "DistrictHeating";
1075
+ MitigationSubTypes["REPLACEMENT_OF_DISTRICT_HEATING_BOILERS"] = "ReplacementOfDistrictHeatingBoilers";
1076
+ MitigationSubTypes["CONNECTION_OF_ISOLATED_GRID"] = "ConnectionOfIsolatedGrid";
1077
+ MitigationSubTypes["DISTRICT_COOLING"] = "DistrictCooling";
1078
+ MitigationSubTypes["EFFICIENT_ELECTRICITY_DISTRIBUTION"] = "EfficientElectricityDistribution";
1079
+ MitigationSubTypes["AFFORESTATION"] = "Afforestation";
1080
+ MitigationSubTypes["MANGROVES"] = "Mangroves";
1081
+ MitigationSubTypes["AGROFORESTRY"] = "Agroforestry";
1082
+ MitigationSubTypes["REFORESTATION"] = "Reforestation";
1083
+ MitigationSubTypes["COAL_TO_NATURAL_GAS"] = "CoalToNaturalGas";
1084
+ MitigationSubTypes["COAL_TO_OIL"] = "CoalToOil";
1085
+ MitigationSubTypes["LIGNITE_TO_NATURAL_GAS"] = "LigniteToNaturalGas";
1086
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT"] = "NewNaturalGasPlant";
1087
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT_USING_LNG"] = "NewNaturalGasPlantUsingLng";
1088
+ MitigationSubTypes["OIL_TO_ELECTRICITY"] = "OilToElectricity";
1089
+ MitigationSubTypes["OIL_TO_LPG"] = "OilToLpg";
1090
+ MitigationSubTypes["OIL_TO_NATURAL_GAS"] = "OilToNaturalGas";
1091
+ MitigationSubTypes["OIL_FIELD_FLARING_REDUCTION"] = "OilFieldFlaringReduction";
1092
+ MitigationSubTypes["OIL_AND_GAS_PROCESSING_FLARING"] = "OilAndGasProcessingFlaring";
1093
+ MitigationSubTypes["NATURAL_GAS_PIPELINES"] = "NaturalGasPipelines";
1094
+ MitigationSubTypes["NON_HYDROCARBON_MINING"] = "NonHydrocarbonMining";
1095
+ MitigationSubTypes["SPONTANEOUSLY_IGNITION_OF_COAL_PILES"] = "SpontaneouslyIgnitionOfCoalPiles";
1096
+ MitigationSubTypes["CHARCOAL_PRODUCTION"] = "CharcoalProduction";
1097
+ MitigationSubTypes["GEOTHERMAL_ELECTRICITY"] = "GeothermalElectricity";
1098
+ MitigationSubTypes["GEOTHERMAL_HEATING"] = "GeothermalHeating";
1099
+ MitigationSubTypes["HFC23"] = "Hfc23";
1100
+ MitigationSubTypes["HFC134A"] = "Hfc134A";
1101
+ MitigationSubTypes["PFCS"] = "Pfcs";
1102
+ MitigationSubTypes["SF6"] = "Sf6";
1103
+ MitigationSubTypes["RUN_OF_RIVER"] = "RunOfRiver";
1104
+ MitigationSubTypes["EXISTING_DAM"] = "ExistingDam";
1105
+ MitigationSubTypes["HIGHER_EFFICIENCY_HYDRO_POWER"] = "HigherEfficiencyHydroPower";
1106
+ MitigationSubTypes["NEW_DAM"] = "NewDam";
1107
+ MitigationSubTypes["LANDFILL_FLARING"] = "LandfillFlaring";
1108
+ MitigationSubTypes["LANDFILL_POWER"] = "LandfillPower";
1109
+ MitigationSubTypes["COMBUSTION_OF_MSW"] = "CombustionOfMsw";
1110
+ MitigationSubTypes["GASIFICATION_OF_MSW"] = "GasificationOfMsw";
1111
+ MitigationSubTypes["BIOGAS_FROM_MSW"] = "BiogasFromMsw";
1112
+ MitigationSubTypes["LANDFILL_AERATION"] = "LandfillAeration";
1113
+ MitigationSubTypes["INTEGRATED_SOLID_WASTE_MANAGEMENT"] = "IntegratedSolidWasteManagement";
1114
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS"] = "SwitchFromFossilFuelToPipedLandfillGas";
1115
+ MitigationSubTypes["LANDFILL_COMPOSTING"] = "LandfillComposting";
1116
+ MitigationSubTypes["MANURE"] = "Manure";
1117
+ MitigationSubTypes["DOMESTIC_MANURE"] = "DomesticManure";
1118
+ MitigationSubTypes["WASTE_WATER"] = "WasteWater";
1119
+ MitigationSubTypes["INDUSTRIAL_SOLID_WASTE"] = "IndustrialSolidWaste";
1120
+ MitigationSubTypes["PALM_OIL_WASTE"] = "PalmOilWaste";
1121
+ MitigationSubTypes["AEROBIC_TREATMENT_OF_WASTE_WATER"] = "AerobicTreatmentOfWasteWater";
1122
+ MitigationSubTypes["COMPOSTING"] = "Composting";
1123
+ MitigationSubTypes["ADIPIC_ACID"] = "AdipicAcid";
1124
+ MitigationSubTypes["NITRIC_ACID"] = "NitricAcid";
1125
+ MitigationSubTypes["CAPROLACTAM"] = "Caprolactam";
1126
+ MitigationSubTypes["SOLAR_PHOTOVOLTAICS_PV"] = "SolarPhotovoltaicsPV";
1127
+ MitigationSubTypes["SOLAR_WATER_PUMPING_OFF_GRID"] = "SolarWaterPumpingOffGrid";
1128
+ MitigationSubTypes["SOLAR_WATER_PUMPING_ON_GRID"] = "SolarWaterPumpingOnGrid";
1129
+ MitigationSubTypes["SOLAR_PV_WATER_DISINFECTION"] = "SolarPVWaterDisinfection";
1130
+ MitigationSubTypes["SOLAR_THERMAL_POWER"] = "SolarThermalPower";
1131
+ MitigationSubTypes["SOLAR_THERMAL_HEAT"] = "SolarThermalHeat";
1132
+ MitigationSubTypes["SOLAR_WATER_HEATING"] = "SolarWaterHeating";
1133
+ MitigationSubTypes["SOLAR_COOKING"] = "SolarCooking";
1134
+ MitigationSubTypes["BUS_RAPID_TRANSIT"] = "BusRapidTransit";
1135
+ MitigationSubTypes["BUS_RAPID_TRANSIT_GREEN_HYDROGEN"] = "BusRapidTransitGreenHydrogen";
1136
+ MitigationSubTypes["MOTORBIKES"] = "Motorbikes";
1137
+ MitigationSubTypes["MODE_SHIFT_ROAD_TO_RAIL"] = "ModeShiftRoadToRail";
1138
+ MitigationSubTypes["MORE_EFFICIENT_TRAIN_SYSTEM"] = "MoreEfficientTrainSystem";
1139
+ MitigationSubTypes["MORE_EFFICIENT_VEHICLES"] = "MoreEfficientVehicles";
1140
+ MitigationSubTypes["RAIL_REGENERATIVE_BRAKING"] = "RailRegenerativeBraking";
1141
+ MitigationSubTypes["RAIL_GREEN_HYDROGEN"] = "RailGreenHydrogen";
1142
+ MitigationSubTypes["RAIL_EFFICIENT_OPERATION"] = "RailEfficientOperation";
1143
+ MitigationSubTypes["METRO_EFFICIENT_OPERATION"] = "MetroEfficientOperation";
1144
+ MitigationSubTypes["CARS_GREEN_HYDROGEN"] = "CarsGreenHydrogen";
1145
+ MitigationSubTypes["CARS_EFFICIENT_OPERATION"] = "CarsEfficientOperation";
1146
+ MitigationSubTypes["SCRAPPING_OLD_VEHICLES"] = "ScrappingOldVehicles";
1147
+ MitigationSubTypes["BIODIESEL_FOR_TRANSPORT"] = "BiodieselForTransport";
1148
+ MitigationSubTypes["CABLE_CARS"] = "CableCars";
1149
+ MitigationSubTypes["WIND"] = "Wind";
1150
+ MitigationSubTypes["OFFSHORE_WIND"] = "OffshoreWind";
1151
+ MitigationSubTypes["CO2_RECYCLING"] = "CO2Recycling";
1152
+ MitigationSubTypes["CO2_REPLACEMENT"] = "CO2Replacement";
1153
+ MitigationSubTypes["TIDAL"] = "Tidal";
1154
+ })(MitigationSubTypes || (MitigationSubTypes = {}));
940
1155
  var mitigationTypeList = [
941
1156
  { value: MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
942
1157
  { value: MitigationTypes.SOLAR.valueOf(), label: "Solar" },
@@ -1033,13 +1248,791 @@ var sectorMitigationTypesListMapped = {
1033
1248
  },
1034
1249
  ],
1035
1250
  Agriculture: [
1036
- { value: MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
1251
+ { value: MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" }
1037
1252
  ],
1038
1253
  Other: [
1039
1254
  { value: MitigationTypes.MARINE.valueOf(), label: "Marine" },
1040
1255
  { value: MitigationTypes.N20.valueOf(), label: "N2O" },
1041
1256
  ],
1042
1257
  };
1258
+ var mitigationSubTypeList = [
1259
+ { label: "Irrigation", value: MitigationSubTypes.IRRIGATION.valueOf() },
1260
+ { label: "Energy efficiency", value: MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1261
+ { label: "Alternative fertilisers", value: MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1262
+ { label: "No tillage", value: MitigationSubTypes.NO_TILLAGE.valueOf() },
1263
+ { label: "Soil Enrichment / Biochar", value: MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1264
+ { label: "Rice crops", value: MitigationSubTypes.RICE_CROPS.valueOf() },
1265
+ { label: "Bagasse power", value: MitigationSubTypes.BAGASSE_POWER.valueOf() },
1266
+ { label: "Palm oil solid waste", value: MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1267
+ { label: "Agricultural residues: other kinds", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1268
+ { label: "Agricultural residues: rice husk", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1269
+ { label: "Agricultural residues: mustard crop", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1270
+ { label: "Agricultural residues: poultry litter", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1271
+ { label: "Black liquor", value: MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1272
+ { label: "Forest residues: sawmill waste", value: MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1273
+ { label: "Forest residues: other", value: MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1274
+ { label: "Forest biomass", value: MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1275
+ { label: "Industrial waste", value: MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1276
+ { label: "Gasification of biomass", value: MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1277
+ { label: "Switch from fossil fuel to piped biogas", value: MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1278
+ { label: "Biomass briquettes or pellets", value: MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1279
+ { label: "Biodiesel", value: MitigationSubTypes.BIODIESEL.valueOf() },
1280
+ { label: "Biodiesel from waste oil", value: MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1281
+ { label: "Ethanol", value: MitigationSubTypes.ETHANOL.valueOf() },
1282
+ { label: "Cement", value: MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1283
+ { label: "Coal Mine Methane", value: MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1284
+ { label: "Coal Bed Methane", value: MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1285
+ { label: "CMM & Ventilation Air Methane", value: MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1286
+ { label: "Ventilation Air Methane", value: MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1287
+ { label: "Lighting", value: MitigationSubTypes.LIGHTING.valueOf() },
1288
+ { label: "Solar lamps", value: MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1289
+ { label: "Stoves", value: MitigationSubTypes.STOVES.valueOf() },
1290
+ { label: "Stoves (School in Ghana)", value: MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1291
+ { label: "Stoves (Houses in Namibia)", value: MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1292
+ { label: "Lighting & Insulation & Solar", value: MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1293
+ { label: "Appliances", value: MitigationSubTypes.APPLIANCES.valueOf() },
1294
+ { label: "Chemicals", value: MitigationSubTypes.CHEMICALS.valueOf() },
1295
+ { label: "Petrochemicals", value: MitigationSubTypes.PETROCHEMICALS.valueOf() },
1296
+ { label: "Paper", value: MitigationSubTypes.PAPER.valueOf() },
1297
+ { label: "Cement", value: MitigationSubTypes.CEMENT.valueOf() },
1298
+ { label: "Iron & steel ", value: MitigationSubTypes.IRON_STEEL.valueOf() },
1299
+ { label: "Machinery", value: MitigationSubTypes.MACHINERY.valueOf() },
1300
+ { label: "Textiles", value: MitigationSubTypes.TEXTILES.valueOf() },
1301
+ { label: "Electronics", value: MitigationSubTypes.ELECTRONICS.valueOf() },
1302
+ { label: "Food", value: MitigationSubTypes.FOOD.valueOf() },
1303
+ { label: "Building materials", value: MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1304
+ { label: "Glass", value: MitigationSubTypes.GLASS.valueOf() },
1305
+ { label: "Non-ferrous metals", value: MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1306
+ { label: "Coke oven", value: MitigationSubTypes.COKE_OVEN.valueOf() },
1307
+ { label: "Mining", value: MitigationSubTypes.Mining.valueOf() },
1308
+ { label: "Construction", value: MitigationSubTypes.CONSTRUCTION.valueOf() },
1309
+ { label: "Metal products", value: MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1310
+ { label: "Wood", value: MitigationSubTypes.WOOD.valueOf() },
1311
+ { label: "Recycling", value: MitigationSubTypes.RECYCLING.valueOf() },
1312
+ { label: "Chemicals heat", value: MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1313
+ { label: "Petrochemicals heat", value: MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1314
+ { label: "Carbon black gas", value: MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1315
+ { label: "Cement heat", value: MitigationSubTypes.CEMENT_HEAT.valueOf() },
1316
+ { label: "Iron & steel heat", value: MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1317
+ { label: "Building materials heat", value: MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1318
+ { label: "Glass heat", value: MitigationSubTypes.GLASS_HEAT.valueOf() },
1319
+ { label: "Non-ferrous metals heat", value: MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1320
+ { label: "Coke oven gas", value: MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1321
+ { label: "HVAC & lighting", value: MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1322
+ { label: "Air conditioning", value: MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1323
+ { label: "EE new buildings", value: MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1324
+ { label: "Street lighting", value: MitigationSubTypes.STREET_LIGHTING.valueOf() },
1325
+ { label: "Lighting in service", value: MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1326
+ { label: "Water pumping", value: MitigationSubTypes.WATER_PUMPING.valueOf() },
1327
+ { label: "Water purification", value: MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1328
+ { label: "EE public stoves", value: MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1329
+ { label: "EE public buildings", value: MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1330
+ { label: "EE commercial buildings", value: MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1331
+ { label: "Single cycle to combined cycle", value: MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1332
+ { label: "Cogeneration", value: MitigationSubTypes.COGENERATION.valueOf() },
1333
+ { label: "Co-firing with biomass", value: MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1334
+ { label: "Higher efficiency coal power", value: MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1335
+ { label: "Higher efficiency oil power", value: MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1336
+ { label: "Higher efficiency using waste heat", value: MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1337
+ { label: "Power plant rehabilitation", value: MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1338
+ { label: "Higher efficiency steam boiler", value: MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1339
+ { label: "District heating", value: MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1340
+ { label: "Replacement of district heating boilers", value: MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1341
+ { label: "Connection of Isolated grid", value: MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1342
+ { label: "District cooling", value: MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1343
+ { label: "Efficient electricity distribution", value: MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1344
+ { label: "Afforestation", value: MitigationSubTypes.AFFORESTATION.valueOf() },
1345
+ { label: "Mangroves", value: MitigationSubTypes.MANGROVES.valueOf() },
1346
+ { label: "Agroforestry", value: MitigationSubTypes.AGROFORESTRY.valueOf() },
1347
+ { label: "Reforestation", value: MitigationSubTypes.REFORESTATION.valueOf() },
1348
+ { label: "Coal to natural gas", value: MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1349
+ { label: "Coal to oil", value: MitigationSubTypes.COAL_TO_OIL.valueOf() },
1350
+ { label: "Lignite to natural gas", value: MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1351
+ { label: "New natural gas plant", value: MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1352
+ { label: "New natural gas plant using LNG", value: MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1353
+ { label: "Oil to electricity", value: MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1354
+ { label: "Oil to LPG", value: MitigationSubTypes.OIL_TO_LPG.valueOf() },
1355
+ { label: "Oil to natural gas", value: MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1356
+ { label: "Oil field flaring reduction", value: MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1357
+ { label: "Oil and gas processing flaring", value: MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1358
+ { label: "Natural gas pipelines", value: MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1359
+ { label: "Non-hydrocarbon mining", value: MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1360
+ { label: "Spontaneously ignition of coal piles", value: MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1361
+ { label: "Charcoal production", value: MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1362
+ { label: "Geothermal electricity", value: MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1363
+ { label: "Geothermal heating", value: MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1364
+ { label: "HFC23", value: MitigationSubTypes.HFC23.valueOf() },
1365
+ { label: "HFC134a", value: MitigationSubTypes.HFC134A.valueOf() },
1366
+ { label: "PFCs", value: MitigationSubTypes.PFCS.valueOf() },
1367
+ { label: "SF6", value: MitigationSubTypes.SF6.valueOf() },
1368
+ { label: "Run of river", value: MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1369
+ { label: "Existing dam", value: MitigationSubTypes.EXISTING_DAM.valueOf() },
1370
+ { label: "Higher efficiency hydro power", value: MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1371
+ { label: "New dam", value: MitigationSubTypes.NEW_DAM.valueOf() },
1372
+ { label: "Landfill flaring", value: MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1373
+ { label: "Landfill power", value: MitigationSubTypes.LANDFILL_POWER.valueOf() },
1374
+ { label: "Combustion of MSW", value: MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1375
+ { label: "Gasification of MSW", value: MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1376
+ { label: "Biogas from MSW", value: MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1377
+ { label: "Landfill aeration", value: MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1378
+ { label: "Integrated solid waste management", value: MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1379
+ { label: "Switch from fossil fuel to piped landfill gas", value: MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1380
+ { label: "Landfill composting", value: MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1381
+ { label: "Manure", value: MitigationSubTypes.MANURE.valueOf() },
1382
+ { label: "Domestic manure", value: MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1383
+ { label: "Waste water", value: MitigationSubTypes.WASTE_WATER.valueOf() },
1384
+ { label: "Industrial solid waste", value: MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1385
+ { label: "Palm oil waste", value: MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1386
+ { label: "Aerobic treatment of waste water", value: MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1387
+ { label: "Composting", value: MitigationSubTypes.COMPOSTING.valueOf() },
1388
+ { label: "Adipic acid", value: MitigationSubTypes.ADIPIC_ACID.valueOf() },
1389
+ { label: "Nitric acid", value: MitigationSubTypes.NITRIC_ACID.valueOf() },
1390
+ { label: "Caprolactam", value: MitigationSubTypes.CAPROLACTAM.valueOf() },
1391
+ { label: "Solar Photovoltaics(PV)", value: MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1392
+ { label: "Solar Water pumping (off-grid)", value: MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1393
+ { label: "Solar Water pumping (on-grid)", value: MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1394
+ { label: "Solar PV water disinfection", value: MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1395
+ { label: "Solar thermal power", value: MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1396
+ { label: "Solar thermal heat", value: MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1397
+ { label: "Solar water heating", value: MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1398
+ { label: "Solar cooking", value: MitigationSubTypes.SOLAR_COOKING.valueOf() },
1399
+ { label: "Bus Rapid Transit", value: MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1400
+ { label: "Bus Rapid Transit: Green hydrogen", value: MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1401
+ { label: "Motorbikes", value: MitigationSubTypes.MOTORBIKES.valueOf() },
1402
+ { label: "Mode shift: Road to rail", value: MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1403
+ { label: "More efficient train system", value: MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1404
+ { label: "More efficient vehicles", value: MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1405
+ { label: "Rail: regenerative braking", value: MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1406
+ { label: "Rail: Green hydrogen", value: MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1407
+ { label: "Rail: efficient operation", value: MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1408
+ { label: "Metro: efficient operation", value: MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1409
+ { label: "Cars: Green hydrogen", value: MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1410
+ { label: "Cars: efficient operation", value: MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1411
+ { label: "Scrapping old vehicles", value: MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1412
+ { label: "Biodiesel for transport", value: MitigationSubTypes.CABLE_CARS.valueOf() },
1413
+ { label: "Cable cars", value: MitigationSubTypes.CHEMICALS.valueOf() },
1414
+ { label: "Wind", value: MitigationSubTypes.WIND.valueOf() },
1415
+ { label: "Offshore wind", value: MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1416
+ { label: "CO2 recycling", value: MitigationSubTypes.CO2_RECYCLING.valueOf() },
1417
+ { label: "CO2 replacement", value: MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1418
+ { label: "Tidal", value: MitigationSubTypes.TIDAL.valueOf() },
1419
+ ];
1420
+ var mitigationSubTypesListMapped = {
1421
+ Agriculture: [
1422
+ { label: "Irrigation", value: MitigationSubTypes.IRRIGATION.valueOf() },
1423
+ { label: "Energy efficiency", value: MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1424
+ { label: "Alternative fertilisers", value: MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1425
+ { label: "No tillage", value: MitigationSubTypes.NO_TILLAGE.valueOf() },
1426
+ { label: "Soil Enrichment / Biochar", value: MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1427
+ { label: "Rice crops", value: MitigationSubTypes.RICE_CROPS.valueOf() },
1428
+ ],
1429
+ BiomassEnergy: [
1430
+ { label: "Bagasse power", value: MitigationSubTypes.BAGASSE_POWER.valueOf() },
1431
+ { label: "Palm oil solid waste", value: MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1432
+ { label: "Agricultural residues: other kinds", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1433
+ { label: "Agricultural residues: rice husk", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1434
+ { label: "Agricultural residues: mustard crop", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1435
+ { label: "Agricultural residues: poultry litter", value: MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1436
+ { label: "Black liquor", value: MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1437
+ { label: "Forest residues: sawmill waste", value: MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1438
+ { label: "Forest residues: other", value: MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1439
+ { label: "Forest biomass", value: MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1440
+ { label: "Industrial waste", value: MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1441
+ { label: "Gasification of biomass", value: MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1442
+ { label: "Switch from fossil fuel to piped biogas", value: MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1443
+ { label: "Biomass briquettes or pellets", value: MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1444
+ { label: "Biodiesel", value: MitigationSubTypes.BIODIESEL.valueOf() },
1445
+ { label: "Biodiesel from waste oil", value: MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1446
+ { label: "Ethanol", value: MitigationSubTypes.ETHANOL.valueOf() },
1447
+ ],
1448
+ Cement: [
1449
+ { label: "Cement", value: MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1450
+ ],
1451
+ "Coal/Mine": [
1452
+ { label: "Coal Mine Methane", value: MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1453
+ { label: "Coal Bed Methane", value: MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1454
+ { label: "CMM & Ventilation Air Methane", value: MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1455
+ { label: "Ventilation Air Methane", value: MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1456
+ ],
1457
+ EEHouseholds: [
1458
+ { label: "Lighting", value: MitigationSubTypes.LIGHTING.valueOf() },
1459
+ { label: "Solar lamps", value: MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1460
+ { label: "Stoves", value: MitigationSubTypes.STOVES.valueOf() },
1461
+ { label: "Stoves (School in Ghana)", value: MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1462
+ { label: "Stoves (Houses in Namibia)", value: MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1463
+ { label: "Lighting & Insulation & Solar", value: MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1464
+ { label: "Appliances", value: MitigationSubTypes.APPLIANCES.valueOf() },
1465
+ ],
1466
+ EEIndustry: [
1467
+ { label: "Chemicals", value: MitigationSubTypes.CHEMICALS.valueOf() },
1468
+ { label: "Petrochemicals", value: MitigationSubTypes.PETROCHEMICALS.valueOf() },
1469
+ { label: "Paper", value: MitigationSubTypes.PAPER.valueOf() },
1470
+ { label: "Cement", value: MitigationSubTypes.CEMENT.valueOf() },
1471
+ { label: "Iron & steel ", value: MitigationSubTypes.IRON_STEEL.valueOf() },
1472
+ { label: "Machinery", value: MitigationSubTypes.MACHINERY.valueOf() },
1473
+ { label: "Textiles", value: MitigationSubTypes.TEXTILES.valueOf() },
1474
+ { label: "Electronics", value: MitigationSubTypes.ELECTRONICS.valueOf() },
1475
+ { label: "Food", value: MitigationSubTypes.FOOD.valueOf() },
1476
+ { label: "Building materials", value: MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1477
+ { label: "Glass", value: MitigationSubTypes.GLASS.valueOf() },
1478
+ { label: "Non-ferrous metals", value: MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1479
+ { label: "Coke oven", value: MitigationSubTypes.COKE_OVEN.valueOf() },
1480
+ { label: "Mining", value: MitigationSubTypes.Mining.valueOf() },
1481
+ { label: "Construction", value: MitigationSubTypes.CONSTRUCTION.valueOf() },
1482
+ { label: "Metal products", value: MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1483
+ { label: "Wood", value: MitigationSubTypes.WOOD.valueOf() },
1484
+ { label: "Recycling", value: MitigationSubTypes.RECYCLING.valueOf() },
1485
+ ],
1486
+ EEOwnGeneration: [
1487
+ { label: "Chemicals heat", value: MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1488
+ { label: "Petrochemicals heat", value: MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1489
+ { label: "Carbon black gas", value: MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1490
+ { label: "Cement heat", value: MitigationSubTypes.CEMENT_HEAT.valueOf() },
1491
+ { label: "Iron & steel heat", value: MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1492
+ { label: "Building materials heat", value: MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1493
+ { label: "Glass heat", value: MitigationSubTypes.GLASS_HEAT.valueOf() },
1494
+ { label: "Non-ferrous metals heat", value: MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1495
+ { label: "Coke oven gas", value: MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1496
+ ],
1497
+ EEService: [
1498
+ { label: "HVAC & lighting", value: MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1499
+ { label: "Air conditioning", value: MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1500
+ { label: "EE new buildings", value: MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1501
+ { label: "Street lighting", value: MitigationSubTypes.STREET_LIGHTING.valueOf() },
1502
+ { label: "Lighting in service", value: MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1503
+ { label: "Water pumping", value: MitigationSubTypes.WATER_PUMPING.valueOf() },
1504
+ { label: "Water purification", value: MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1505
+ { label: "EE public stoves", value: MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1506
+ { label: "EE public buildings", value: MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1507
+ { label: "EE commercial buildings", value: MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1508
+ ],
1509
+ EESupplySide: [
1510
+ { label: "Single cycle to combined cycle", value: MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1511
+ { label: "Cogeneration", value: MitigationSubTypes.COGENERATION.valueOf() },
1512
+ { label: "Co-firing with biomass", value: MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1513
+ { label: "Higher efficiency coal power", value: MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1514
+ { label: "Higher efficiency oil power", value: MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1515
+ { label: "Higher efficiency using waste heat", value: MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1516
+ { label: "Power plant rehabilitation", value: MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1517
+ { label: "Higher efficiency steam boiler", value: MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1518
+ ],
1519
+ EnergyDistribution: [
1520
+ { label: "District heating", value: MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1521
+ { label: "Replacement of district heating boilers", value: MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1522
+ { label: "Connection of Isolated grid", value: MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1523
+ { label: "District cooling", value: MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1524
+ { label: "Efficient electricity distribution", value: MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1525
+ ],
1526
+ Forestry: [
1527
+ { label: "Afforestation", value: MitigationSubTypes.AFFORESTATION.valueOf() },
1528
+ { label: "Mangroves", value: MitigationSubTypes.MANGROVES.valueOf() },
1529
+ { label: "Agroforestry", value: MitigationSubTypes.AGROFORESTRY.valueOf() },
1530
+ { label: "Reforestation", value: MitigationSubTypes.REFORESTATION.valueOf() },
1531
+ ],
1532
+ FossilFuel: [
1533
+ { label: "Coal to natural gas", value: MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1534
+ { label: "Coal to oil", value: MitigationSubTypes.COAL_TO_OIL.valueOf() },
1535
+ { label: "Lignite to natural gas", value: MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1536
+ { label: "New natural gas plant", value: MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1537
+ { label: "New natural gas plant using LNG", value: MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1538
+ { label: "Oil to electricity", value: MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1539
+ { label: "Oil to LPG", value: MitigationSubTypes.OIL_TO_LPG.valueOf() },
1540
+ { label: "Oil to natural gas", value: MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1541
+ ],
1542
+ Fugitive: [
1543
+ { label: "Oil field flaring reduction", value: MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1544
+ { label: "Oil and gas processing flaring", value: MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1545
+ { label: "Natural gas pipelines", value: MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1546
+ { label: "Non-hydrocarbon mining", value: MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1547
+ { label: "Spontaneously ignition of coal piles", value: MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1548
+ { label: "Charcoal production", value: MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1549
+ ],
1550
+ Geothermal: [
1551
+ { label: "Geothermal electricity", value: MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1552
+ { label: "Geothermal heating", value: MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1553
+ ],
1554
+ HFC_PFCs_SF6: [
1555
+ { label: "HFC23", value: MitigationSubTypes.HFC23.valueOf() },
1556
+ { label: "HFC134a", value: MitigationSubTypes.HFC134A.valueOf() },
1557
+ { label: "PFCs", value: MitigationSubTypes.PFCS.valueOf() },
1558
+ { label: "SF6", value: MitigationSubTypes.SF6.valueOf() },
1559
+ ],
1560
+ Hydro: [
1561
+ { label: "Run of river", value: MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1562
+ { label: "Existing dam", value: MitigationSubTypes.EXISTING_DAM.valueOf() },
1563
+ { label: "Higher efficiency hydro power", value: MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1564
+ { label: "New dam", value: MitigationSubTypes.NEW_DAM.valueOf() },
1565
+ ],
1566
+ Landfills: [
1567
+ { label: "Landfill flaring", value: MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1568
+ { label: "Landfill power", value: MitigationSubTypes.LANDFILL_POWER.valueOf() },
1569
+ { label: "Combustion of MSW", value: MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1570
+ { label: "Gasification of MSW", value: MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1571
+ { label: "Biogas from MSW", value: MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1572
+ { label: "Landfill aeration", value: MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1573
+ { label: "Integrated solid waste management", value: MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1574
+ { label: "Switch from fossil fuel to piped landfill gas", value: MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1575
+ { label: "Landfill composting", value: MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1576
+ ],
1577
+ MethaneAvoidance: [
1578
+ { label: "Manure", value: MitigationSubTypes.MANURE.valueOf() },
1579
+ { label: "Domestic manure", value: MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1580
+ { label: "Waste water", value: MitigationSubTypes.WASTE_WATER.valueOf() },
1581
+ { label: "Industrial solid waste", value: MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1582
+ { label: "Palm oil waste", value: MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1583
+ { label: "Aerobic treatment of waste water", value: MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1584
+ { label: "Composting", value: MitigationSubTypes.COMPOSTING.valueOf() },
1585
+ ],
1586
+ N20: [
1587
+ { label: "Adipic acid", value: MitigationSubTypes.ADIPIC_ACID.valueOf() },
1588
+ { label: "Nitric acid", value: MitigationSubTypes.NITRIC_ACID.valueOf() },
1589
+ { label: "Caprolactam", value: MitigationSubTypes.CAPROLACTAM.valueOf() },
1590
+ ],
1591
+ Solar: [
1592
+ { label: "Solar Photovoltaics(PV)", value: MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1593
+ { label: "Solar Water pumping (off-grid)", value: MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1594
+ { label: "Solar Water pumping (on-grid)", value: MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1595
+ { label: "Solar PV water disinfection", value: MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1596
+ { label: "Solar thermal power", value: MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1597
+ { label: "Solar thermal heat", value: MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1598
+ { label: "Solar water heating", value: MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1599
+ { label: "Solar cooking", value: MitigationSubTypes.SOLAR_COOKING.valueOf() },
1600
+ ],
1601
+ Transport: [
1602
+ { label: "Bus Rapid Transit", value: MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1603
+ { label: "Bus Rapid Transit: Green hydrogen", value: MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1604
+ { label: "Motorbikes", value: MitigationSubTypes.MOTORBIKES.valueOf() },
1605
+ { label: "Mode shift: Road to rail", value: MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1606
+ { label: "More efficient train system", value: MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1607
+ { label: "More efficient vehicles", value: MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1608
+ { label: "Rail: regenerative braking", value: MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1609
+ { label: "Rail: Green hydrogen", value: MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1610
+ { label: "Rail: efficient operation", value: MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1611
+ { label: "Metro: efficient operation", value: MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1612
+ { label: "Cars: Green hydrogen", value: MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1613
+ { label: "Cars: efficient operation", value: MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1614
+ { label: "Scrapping old vehicles", value: MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1615
+ { label: "Biodiesel for transport", value: MitigationSubTypes.CABLE_CARS.valueOf() },
1616
+ { label: "Cable cars", value: MitigationSubTypes.CHEMICALS.valueOf() },
1617
+ ],
1618
+ Wind: [
1619
+ { label: "Wind", value: MitigationSubTypes.WIND.valueOf() },
1620
+ { label: "Offshore wind", value: MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1621
+ ],
1622
+ CO2Usage: [
1623
+ { label: "CO2 recycling", value: MitigationSubTypes.CO2_RECYCLING.valueOf() },
1624
+ { label: "CO2 replacement", value: MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1625
+ ],
1626
+ Tidal: [
1627
+ { label: "Tidal", value: MitigationSubTypes.TIDAL.valueOf() },
1628
+ ],
1629
+ };
1630
+ var methodologyOptions = [
1631
+ "ACR - Truck Stop Electrification",
1632
+ "ACR - Advanced Refrigeration Systems",
1633
+ "ACR - Certified Reclaimed HFC Refrigerants, Propellants, and Fire Suppressants",
1634
+ "ACR - Destruction of Ozone Depleting Substances and High-GWP Foam",
1635
+ "ACR - Destruction of Ozone Depleting Substances from International Sources",
1636
+ "ACR - Transition to Advanced Formulation Blowing Agents in Foam Manufacturing and Use",
1637
+ "ACR - Afforestation and Reforestation of Degraded Lands",
1638
+ "ACR - Avoided Conversion of Grasslands and Shrublands to Crop Production",
1639
+ "ACR - Improved Forest Management (IFM) on Canadian Forestlands",
1640
+ "ACR - Improved Forest Management (IFM) on Non-Federal U.S. Forestlands",
1641
+ "ACR - Improved Forest Management (IFM) on Small Non-Industrial Private Forestlands",
1642
+ "ACR - Restoration of California Deltaic and Coastal Wetlands",
1643
+ "ACR - Restoration of Pocosin Wetlands",
1644
+ "ACR - Carbon Capture and Storage Projects",
1645
+ "ACR - Landfill Gas Destruction and Beneficial Use Projects",
1646
+ "CAR - Adipic Acid Production",
1647
+ "CAR - Biochar",
1648
+ "CAR - Canada Grassland",
1649
+ "CAR - Coal Mine Methane",
1650
+ "CAR - Forest",
1651
+ "CAR - Grassland",
1652
+ "CAR - Mexico Boiler Efficiency",
1653
+ "CAR - Mexico Forest",
1654
+ "CAR - Mexico Halocarbon",
1655
+ "CAR - Mexico Landfill",
1656
+ "CAR - Mexico Livestock",
1657
+ "CAR - Mexico Ozone Depleting Substances",
1658
+ "CAR - Nitric Acid Production",
1659
+ "CAR - Nitrogen Management",
1660
+ "CAR - Organic Waste Composting",
1661
+ "CAR - Organic Waste Digestion",
1662
+ "CAR - Ozone Depleting Substances",
1663
+ "CAR - Rice Cultivation",
1664
+ "CAR - Soil Enrichment",
1665
+ "CAR - Urban Forest Management",
1666
+ "CAR - Urban Tree Planting",
1667
+ "CAR - U.S. Landfill",
1668
+ "CAR - U.S. Livestock",
1669
+ "CDM - AM0001",
1670
+ "CDM - AM0007",
1671
+ "CDM - AM0009",
1672
+ "CDM - AM0017",
1673
+ "CDM - AM0018",
1674
+ "CDM - AM0019",
1675
+ "CDM - AM0020",
1676
+ "CDM - AM0021",
1677
+ "CDM - AM0023",
1678
+ "CDM - AM0026",
1679
+ "CDM - AM0027",
1680
+ "CDM - AM0028",
1681
+ "CDM - AM0030",
1682
+ "CDM - AM0031",
1683
+ "CDM - AM0035",
1684
+ "CDM - AM0036",
1685
+ "CDM - AM0037",
1686
+ "CDM - AM0038",
1687
+ "CDM - AM0043",
1688
+ "CDM - AM0044",
1689
+ "CDM - AM0045",
1690
+ "CDM - AM0046",
1691
+ "CDM - AM0048",
1692
+ "CDM - AM0049",
1693
+ "CDM - AM0050",
1694
+ "CDM - AM0052",
1695
+ "CDM - AM0053",
1696
+ "CDM - AM0055",
1697
+ "CDM - AM0056",
1698
+ "CDM - AM0057",
1699
+ "CDM - AM0058",
1700
+ "CDM - AM0059",
1701
+ "CDM - AM0060",
1702
+ "CDM - AM0061",
1703
+ "CDM - AM0062",
1704
+ "CDM - AM0063",
1705
+ "CDM - AM0064",
1706
+ "CDM - AM0065",
1707
+ "CDM - AM0066",
1708
+ "CDM - AM0067",
1709
+ "CDM - AM0068",
1710
+ "CDM - AM0069",
1711
+ "CDM - AM0070",
1712
+ "CDM - AM0071",
1713
+ "CDM - AM0072",
1714
+ "CDM - AM0073",
1715
+ "CDM - AM0074",
1716
+ "CDM - AM0075",
1717
+ "CDM - AM0076",
1718
+ "CDM - AM0077",
1719
+ "CDM - AM0078",
1720
+ "CDM - AM0079",
1721
+ "CDM - AM0080",
1722
+ "CDM - AM0081",
1723
+ "CDM - AM0082",
1724
+ "CDM - AM0083",
1725
+ "CDM - AM0084",
1726
+ "CDM - AM0086",
1727
+ "CDM - AM0088",
1728
+ "CDM - AM0089",
1729
+ "CDM - AM0090",
1730
+ "CDM - AM0091",
1731
+ "CDM - AM0092",
1732
+ "CDM - AM0093",
1733
+ "CDM - AM0094",
1734
+ "CDM - AM0095",
1735
+ "CDM - AM0096",
1736
+ "CDM - AM0097",
1737
+ "CDM - AM0098",
1738
+ "CDM - AM0099",
1739
+ "CDM - AM0100",
1740
+ "CDM - AM0101",
1741
+ "CDM - AM0103",
1742
+ "CDM - AM0104",
1743
+ "CDM - AM0105",
1744
+ "CDM - AM0106",
1745
+ "CDM - AM0107",
1746
+ "CDM - AM0108",
1747
+ "CDM - AM0109",
1748
+ "CDM - AM0110",
1749
+ "CDM - AM0111",
1750
+ "CDM - AM0112",
1751
+ "CDM - AM0113",
1752
+ "CDM - AM0114",
1753
+ "CDM - AM0115",
1754
+ "CDM - AM0116",
1755
+ "CDM - AM0117",
1756
+ "CDM - AM0118",
1757
+ "CDM - AM0119",
1758
+ "CDM - AM0120",
1759
+ "CDM - AM0121",
1760
+ "CDM - AM0122",
1761
+ "CDM - AMS-I.A.",
1762
+ "CDM - AMS-I.B.",
1763
+ "CDM - AMS-I.C.",
1764
+ "CDM - AMS-I.D.",
1765
+ "CDM - AMS-I.E.",
1766
+ "CDM - AMS-I.F.",
1767
+ "CDM - AMS-I.G.",
1768
+ "CDM - AMS-I.H.",
1769
+ "CDM - AMS-I.I.",
1770
+ "CDM - AMS-I.J.",
1771
+ "CDM - AMS-I.K.",
1772
+ "CDM - AMS-I.L.",
1773
+ "CDM - AMS-I.M.",
1774
+ "CDM - AMS-II.A.",
1775
+ "CDM - AMS-II.B.",
1776
+ "CDM - AMS-II.C.",
1777
+ "CDM - AMS-II.D.",
1778
+ "CDM - AMS-II.E.",
1779
+ "CDM - AMS-II.F.",
1780
+ "CDM - AMS-II.G.",
1781
+ "CDM - AMS-II.H.",
1782
+ "CDM - AMS-II.I.",
1783
+ "CDM - AMS-II.J.",
1784
+ "CDM - AMS-II.K.",
1785
+ "CDM - AMS-II.L.",
1786
+ "CDM - AMS-II.M.",
1787
+ "CDM - AMS-II.N.",
1788
+ "CDM - AMS-II.O.",
1789
+ "CDM - AMS-II.P.",
1790
+ "CDM - AMS-II.Q.",
1791
+ "CDM - AMS-II.R.",
1792
+ "CDM - AMS-II.S.",
1793
+ "CDM - AMS-II.T.",
1794
+ "CDM - AMS-III.A.",
1795
+ "CDM - AMS-III.B.",
1796
+ "CDM - AMS-III.C.",
1797
+ "CDM - AMS-III.D.",
1798
+ "CDM - AMS-III.E.",
1799
+ "CDM - AMS-III.F.",
1800
+ "CDM - AMS-III.G.",
1801
+ "CDM - AMS-III.H.",
1802
+ "CDM - AMS-III.I.",
1803
+ "CDM - AMS-III.J.",
1804
+ "CDM - AMS-III.K.",
1805
+ "CDM - AMS-III.L.",
1806
+ "CDM - AMS-III.M.",
1807
+ "CDM - AMS-III.N.",
1808
+ "CDM - AMS-III.O.",
1809
+ "CDM - AMS-III.P.",
1810
+ "CDM - AMS-III.Q.",
1811
+ "CDM - AMS-III.R.",
1812
+ "CDM - AMS-III.S.",
1813
+ "CDM - AMS-III.T.",
1814
+ "CDM - AMS-III.U.",
1815
+ "CDM - AMS-III.V.",
1816
+ "CDM - AMS-III.W.",
1817
+ "CDM - AMS-III.X.",
1818
+ "CDM - AMS-III.Y.",
1819
+ "CDM - AMS-III.Z.",
1820
+ "CDM - AMS-III.AA.",
1821
+ "CDM - AMS-III.AB.",
1822
+ "CDM - AMS-III.AC.",
1823
+ "CDM - AMS-III.AD.",
1824
+ "CDM - AMS-III.AE.",
1825
+ "CDM - AMS-III.AF.",
1826
+ "CDM - AMS-III.AG.",
1827
+ "CDM - AMS-III.AH.",
1828
+ "CDM - AMS-III.AI.",
1829
+ "CDM - AMS-III.AJ.",
1830
+ "CDM - AMS-III.AK.",
1831
+ "CDM - AMS-III.AL.",
1832
+ "CDM - AMS-III.AM.",
1833
+ "CDM - AMS-III.AN.",
1834
+ "CDM - AMS-III.AO.",
1835
+ "CDM - AMS-III.AP.",
1836
+ "CDM - AMS-III.AQ.",
1837
+ "CDM - AMS-III.AR.",
1838
+ "CDM - AMS-III.AS.",
1839
+ "CDM - AMS-III.AT.",
1840
+ "CDM - AMS-III.AU.",
1841
+ "CDM - AMS-III.AV.",
1842
+ "CDM - AMS-III.AW.",
1843
+ "CDM - AMS-III.AX.",
1844
+ "CDM - AMS-III.AY.",
1845
+ "CDM - AMS-III.BA.",
1846
+ "CDM - AMS-III.BB.",
1847
+ "CDM - AMS-III.BC.",
1848
+ "CDM - AMS-III.BD.",
1849
+ "CDM - AMS-III.BE.",
1850
+ "CDM - AMS-III.BF.",
1851
+ "CDM - AMS-III.BG.",
1852
+ "CDM - AMS-III.BH.",
1853
+ "CDM - AMS-III.BI.",
1854
+ "CDM - AMS-III.BJ.",
1855
+ "CDM - AMS-III.BK.",
1856
+ "CDM - AMS-III.BL.",
1857
+ "CDM - AMS-III.BM.",
1858
+ "CDM - AMS-III.BN.",
1859
+ "CDM - AMS-III.BO.",
1860
+ "CDM - AMS-III.BP.",
1861
+ "CDM - AR-AM0014",
1862
+ "CDM - AR-AMS0003",
1863
+ "CDM - AR-AMS0007",
1864
+ "GS - METHODOLOGY FOR METERED & MEASURED ENERGY COOKING DEVICES",
1865
+ "GS - METHODOLOGY FOR RETROFIT ENERGY EFFICIENCY MEASURES IN SHIPPING ",
1866
+ "GS - SOIL ORGANIC CARBON ACTIVITY MODULE FOR APPLICATION OF ORGANIC SOIL IMPROVERS FROM PULP AND PAPER MILL SLUDGES",
1867
+ "GS - REDUCED EMISSIONS FROM COOKING AND HEATING – TECHNOLOGIES AND PRACTICES TO DISPLACE DECENTRALIZED THERMAL ENERGY CONSUMPTION (TPDDTEC)",
1868
+ "GS - CARBON SEQUESTRATION THROUGH ACCELERATED CARBONATION OF CONCRETE AGGREGATE ",
1869
+ "VCS - VM0001",
1870
+ "VCS - VM0002",
1871
+ "VCS - VM0003",
1872
+ "VCS - VM0004",
1873
+ "VCS - VM0005",
1874
+ "VCS - VM0006",
1875
+ "VCS - VM0007",
1876
+ "VCS - VM0008",
1877
+ "VCS - VM0009",
1878
+ "VCS - VM0010",
1879
+ "VCS - VM0011",
1880
+ "VCS - VM0012",
1881
+ "VCS - VM0013",
1882
+ "VCS - VM0014",
1883
+ "VCS - VM0015",
1884
+ "VCS - VM0016",
1885
+ "VCS - VM0017",
1886
+ "VCS - VM0018",
1887
+ "VCS - VM0019",
1888
+ "VCS - VM0020",
1889
+ "VCS - VM0021",
1890
+ "VCS - VM0022",
1891
+ "VCS - VM0023",
1892
+ "VCS - VM0024",
1893
+ "VCS - VM0025",
1894
+ "VCS - VM0026",
1895
+ "VCS - VM0027",
1896
+ "VCS - VM0028",
1897
+ "VCS - VM0029",
1898
+ "VCS - VM0030",
1899
+ "VCS - VM0031",
1900
+ "VCS - VM0032",
1901
+ "VCS - VM0033",
1902
+ "VCS - VM0034",
1903
+ "VCS - VM0035",
1904
+ "VCS - VM0036",
1905
+ "VCS - VM0037",
1906
+ "VCS - VM0038",
1907
+ "VCS - VM0039",
1908
+ "VCS - VM0040",
1909
+ "VCS - VM0041",
1910
+ "VCS - VM0042",
1911
+ "VCS - VM0043",
1912
+ "VCS - VMR000",
1913
+ "VCS - VMR006",
1914
+ "ID_PM044",
1915
+ "ID_PM043",
1916
+ "ID_PM042",
1917
+ "ID_PM041",
1918
+ "ID_PM040",
1919
+ "ID_PM039",
1920
+ "ID_AM028",
1921
+ "ID_AM027",
1922
+ "ID_AM026",
1923
+ "ID_AM025",
1924
+ "ID_AM024",
1925
+ "ID_AM023",
1926
+ "ID_AM022",
1927
+ "ID_AM021",
1928
+ "ID_AM020",
1929
+ "ID_AM006",
1930
+ "VN_PM028",
1931
+ "ID_AM019",
1932
+ "VN_PM027",
1933
+ "ID_AM018",
1934
+ "ID_AM007",
1935
+ "TH_PM026",
1936
+ "VN_PM026",
1937
+ "VN_PM025",
1938
+ "TH_PM025",
1939
+ "ID_AM009",
1940
+ "VN_PM024",
1941
+ "ID_AM017",
1942
+ "TH_PM024",
1943
+ "ID_AM016",
1944
+ "VN_PM023",
1945
+ "TH_PM023",
1946
+ "ID_AM015",
1947
+ "TH_PM022",
1948
+ "VN_AM015",
1949
+ "VN_AM009",
1950
+ "ID_AM014",
1951
+ "TH_PM021",
1952
+ "TH_AM017",
1953
+ "ID_AM013",
1954
+ "VN_AM014",
1955
+ "VN_AM013",
1956
+ "TH_AM016",
1957
+ "VN_AM012",
1958
+ "TH_AM015",
1959
+ "ID_AM011",
1960
+ "TH_AM001",
1961
+ "VN_AM011",
1962
+ "ID_AM012",
1963
+ "VN_AM010",
1964
+ "TH_AM014",
1965
+ "ID_AM008",
1966
+ "VN_AM006",
1967
+ "TH_AM013",
1968
+ "TH_AM012",
1969
+ "VN_AM004",
1970
+ "ID_AM005",
1971
+ "ID_AM004",
1972
+ "TH_AM011",
1973
+ "VN_AM003",
1974
+ "ID_AM003",
1975
+ "VN_AM002",
1976
+ "TH_AM010",
1977
+ "ID_AM002",
1978
+ "TH_AM009",
1979
+ "ID_AM010",
1980
+ "VN_AM008",
1981
+ "TH_AM008",
1982
+ "TH_AM005",
1983
+ "VN_AM007",
1984
+ "TH_AM007",
1985
+ "VN_AM001",
1986
+ "MM_PM007",
1987
+ "TH_AM006",
1988
+ "MM_PM006",
1989
+ "VN_AM005",
1990
+ "KH_AM004",
1991
+ "TH_AM002",
1992
+ "KH_AM005",
1993
+ "BD_PM005",
1994
+ "MM_AM005",
1995
+ "TH_AM004",
1996
+ "LA_AM004",
1997
+ "BD_AM001",
1998
+ "MN_AM003",
1999
+ "MM_AM004",
2000
+ "KE_AM003",
2001
+ "LA_AM003",
2002
+ "MM_AM003",
2003
+ "CR_AM003",
2004
+ "KH_AM003",
2005
+ "PH_PM003",
2006
+ "TH_AM003",
2007
+ "CL_AM001",
2008
+ "ET_AM003",
2009
+ "BD_AM003",
2010
+ "BD_AM002",
2011
+ "ET_AM002",
2012
+ "KE_AM002",
2013
+ "CR_AM002",
2014
+ "LA_AM002",
2015
+ "KH_AM002",
2016
+ "MV_AM002",
2017
+ "MM_AM002",
2018
+ "PH_AM002",
2019
+ "MN_AM002",
2020
+ "CL_AM002",
2021
+ "PW_AM001",
2022
+ "PH_AM001",
2023
+ "KE_AM001",
2024
+ "KH_AM001",
2025
+ "SA_AM001",
2026
+ "MN_AM001",
2027
+ "MM_AM001",
2028
+ "CR_AM001",
2029
+ "ID_AM001",
2030
+ "MX_AM001",
2031
+ "ET_AM001",
2032
+ "LA_AM001",
2033
+ "MV_AM001",
2034
+ "Puro - BIO CHAR",
2035
+ ];
1043
2036
 
1044
2037
  var ESGType;
1045
2038
  (function (ESGType) {
@@ -4168,6 +5161,26 @@ function requireAgricultureCal () {
4168
5161
  return agricultureCal;
4169
5162
  }
4170
5163
 
5164
+ var soilEnrichmentCal = {};
5165
+
5166
+ var hasRequiredSoilEnrichmentCal;
5167
+
5168
+ function requireSoilEnrichmentCal () {
5169
+ if (hasRequiredSoilEnrichmentCal) return soilEnrichmentCal;
5170
+ hasRequiredSoilEnrichmentCal = 1;
5171
+ Object.defineProperty(soilEnrichmentCal, "__esModule", { value: true });
5172
+ soilEnrichmentCal.SoilEnrichmentCal = void 0;
5173
+ const calculator_1 = requireCalculator();
5174
+ class SoilEnrichmentCal {
5175
+ static calculate(req) {
5176
+ const constants = req.soilEnrichmentConstants;
5177
+ return Number((constants.emissionFactor * req.weight).toFixed(calculator_1.PRECISION));
5178
+ }
5179
+ }
5180
+ soilEnrichmentCal.SoilEnrichmentCal = SoilEnrichmentCal;
5181
+ return soilEnrichmentCal;
5182
+ }
5183
+
4171
5184
  var solarCal = {};
4172
5185
 
4173
5186
  var hasRequiredSolarCal;
@@ -4244,6 +5257,53 @@ class AgricultureCreationRequest {
4244
5257
  }
4245
5258
  agricultureCreationRequest.AgricultureCreationRequest = AgricultureCreationRequest;
4246
5259
 
5260
+ var soilEnrichmentCreationRequest = {};
5261
+
5262
+ var soilEnrichmentConstants = {};
5263
+
5264
+ Object.defineProperty(soilEnrichmentConstants, "__esModule", { value: true });
5265
+ soilEnrichmentConstants.SoilEnrichmentConstants = void 0;
5266
+ class SoilEnrichmentConstants {
5267
+ constructor() {
5268
+ this.emissionFactor = 3.66;
5269
+ this.emissionFactorUnit = "tCO2e"; // emission factor
5270
+ }
5271
+ }
5272
+ soilEnrichmentConstants.SoilEnrichmentConstants = SoilEnrichmentConstants;
5273
+
5274
+ Object.defineProperty(soilEnrichmentCreationRequest, "__esModule", { value: true });
5275
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = void 0;
5276
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
5277
+ class SoilEnrichmentCreationRequest {
5278
+ constructor() {
5279
+ this.soilEnrichmentConstants = new soilEnrichmentConstants_1.SoilEnrichmentConstants();
5280
+ }
5281
+ }
5282
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = SoilEnrichmentCreationRequest;
5283
+
5284
+ var stovesHousesNamibiaCreationRequest = {};
5285
+
5286
+ var stovesHousesNamibiaConstants = {};
5287
+
5288
+ Object.defineProperty(stovesHousesNamibiaConstants, "__esModule", { value: true });
5289
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = void 0;
5290
+ class StovesHousesNamibiaConstants {
5291
+ constructor() {
5292
+ this.emissionFactor = 0.1;
5293
+ }
5294
+ }
5295
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = StovesHousesNamibiaConstants;
5296
+
5297
+ Object.defineProperty(stovesHousesNamibiaCreationRequest, "__esModule", { value: true });
5298
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = void 0;
5299
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
5300
+ class StovesHousesNamibiaCreationRequest {
5301
+ constructor() {
5302
+ this.stovesHousesNamibiaConstants = new stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants();
5303
+ }
5304
+ }
5305
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = StovesHousesNamibiaCreationRequest;
5306
+
4247
5307
  var solarCreationRequest = {};
4248
5308
 
4249
5309
  var solarConstants = {};
@@ -4281,6 +5341,134 @@ class SolarCreationRequest {
4281
5341
  }
4282
5342
  solarCreationRequest.SolarCreationRequest = SolarCreationRequest;
4283
5343
 
5344
+ var stovesHousesNamibiaCal = {};
5345
+
5346
+ var hasRequiredStovesHousesNamibiaCal;
5347
+
5348
+ function requireStovesHousesNamibiaCal () {
5349
+ if (hasRequiredStovesHousesNamibiaCal) return stovesHousesNamibiaCal;
5350
+ hasRequiredStovesHousesNamibiaCal = 1;
5351
+ Object.defineProperty(stovesHousesNamibiaCal, "__esModule", { value: true });
5352
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = void 0;
5353
+ const calculator_1 = requireCalculator();
5354
+ class StovesHousesNamibiaCal {
5355
+ static calculate(req) {
5356
+ const constants = req.stovesHousesNamibiaConstants;
5357
+ return Number((constants.emissionFactor * req.numberOfDays * req.numberOfPeopleInHousehold).toFixed(calculator_1.PRECISION));
5358
+ }
5359
+ }
5360
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = StovesHousesNamibiaCal;
5361
+ return stovesHousesNamibiaCal;
5362
+ }
5363
+
5364
+ var solarWaterPumpingOffGridCreationRequest = {};
5365
+
5366
+ var solarWaterPumpingOffGridConstants = {};
5367
+
5368
+ Object.defineProperty(solarWaterPumpingOffGridConstants, "__esModule", { value: true });
5369
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = void 0;
5370
+ class SolarWaterPumpingOffGridConstants {
5371
+ constructor() {
5372
+ this.emissionFactor = 1.3;
5373
+ this.emissionFactorUnit = "kWh/year";
5374
+ }
5375
+ }
5376
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = SolarWaterPumpingOffGridConstants;
5377
+
5378
+ Object.defineProperty(solarWaterPumpingOffGridCreationRequest, "__esModule", { value: true });
5379
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = void 0;
5380
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
5381
+ class SolarWaterPumpingOffGridCreationRequest {
5382
+ constructor() {
5383
+ this.solarWaterPumpingOffGridConstants = new solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants();
5384
+ }
5385
+ }
5386
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = SolarWaterPumpingOffGridCreationRequest;
5387
+
5388
+ var solarWaterPumpingOffGridCal = {};
5389
+
5390
+ var hasRequiredSolarWaterPumpingOffGridCal;
5391
+
5392
+ function requireSolarWaterPumpingOffGridCal () {
5393
+ if (hasRequiredSolarWaterPumpingOffGridCal) return solarWaterPumpingOffGridCal;
5394
+ hasRequiredSolarWaterPumpingOffGridCal = 1;
5395
+ Object.defineProperty(solarWaterPumpingOffGridCal, "__esModule", { value: true });
5396
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = void 0;
5397
+ const calculator_1 = requireCalculator();
5398
+ var convert = lib;
5399
+ let solarWaterPumpingOffGridCal$1 = class solarWaterPumpingOffGridCal {
5400
+ static calculate(req) {
5401
+ const constants = req.solarWaterPumpingOffGridConstants;
5402
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
5403
+ if (emissionUnitParts.length != 2) {
5404
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
5405
+ }
5406
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
5407
+ if (measuredUnitParts.length != 3) {
5408
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
5409
+ }
5410
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
5411
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
5412
+ }
5413
+ };
5414
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = solarWaterPumpingOffGridCal$1;
5415
+ return solarWaterPumpingOffGridCal;
5416
+ }
5417
+
5418
+ var solarWaterPumpingOnGridCreationRequest = {};
5419
+
5420
+ var solarWaterPumpingOnGridConstants = {};
5421
+
5422
+ Object.defineProperty(solarWaterPumpingOnGridConstants, "__esModule", { value: true });
5423
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = void 0;
5424
+ class SolarWaterPumpingOnGridConstants {
5425
+ constructor() {
5426
+ this.emissionFactor = 1.06;
5427
+ this.emissionFactorUnit = "kWh/year";
5428
+ }
5429
+ }
5430
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = SolarWaterPumpingOnGridConstants;
5431
+
5432
+ Object.defineProperty(solarWaterPumpingOnGridCreationRequest, "__esModule", { value: true });
5433
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = void 0;
5434
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
5435
+ class SolarWaterPumpingOnGridCreationRequest {
5436
+ constructor() {
5437
+ this.solarWaterPumpingOnGridConstants = new solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants();
5438
+ }
5439
+ }
5440
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = SolarWaterPumpingOnGridCreationRequest;
5441
+
5442
+ var solarWaterPumpingOnGridCal = {};
5443
+
5444
+ var hasRequiredSolarWaterPumpingOnGridCal;
5445
+
5446
+ function requireSolarWaterPumpingOnGridCal () {
5447
+ if (hasRequiredSolarWaterPumpingOnGridCal) return solarWaterPumpingOnGridCal;
5448
+ hasRequiredSolarWaterPumpingOnGridCal = 1;
5449
+ Object.defineProperty(solarWaterPumpingOnGridCal, "__esModule", { value: true });
5450
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = void 0;
5451
+ const calculator_1 = requireCalculator();
5452
+ var convert = lib;
5453
+ let solarWaterPumpingOnGridCal$1 = class solarWaterPumpingOnGridCal {
5454
+ static calculate(req) {
5455
+ const constants = req.solarWaterPumpingOnGridConstants;
5456
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
5457
+ if (emissionUnitParts.length != 2) {
5458
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
5459
+ }
5460
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
5461
+ if (measuredUnitParts.length != 3) {
5462
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
5463
+ }
5464
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
5465
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
5466
+ }
5467
+ };
5468
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = solarWaterPumpingOnGridCal$1;
5469
+ return solarWaterPumpingOnGridCal;
5470
+ }
5471
+
4284
5472
  var hasRequiredCalculator;
4285
5473
 
4286
5474
  function requireCalculator () {
@@ -4289,9 +5477,17 @@ function requireCalculator () {
4289
5477
  Object.defineProperty(calculator, "__esModule", { value: true });
4290
5478
  calculator.calculateCredit = calculator.PRECISION = void 0;
4291
5479
  const agricultureCal_1 = requireAgricultureCal();
5480
+ const soilEnrichmentCal_1 = requireSoilEnrichmentCal();
4292
5481
  const solarCal_1 = requireSolarCal();
4293
5482
  const agricultureCreationRequest_1 = agricultureCreationRequest;
5483
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5484
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
4294
5485
  const solarCreationRequest_1 = solarCreationRequest;
5486
+ const stovesHousesNamibiaCal_1 = requireStovesHousesNamibiaCal();
5487
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5488
+ const solarWaterPumpingOffGridCal_1 = requireSolarWaterPumpingOffGridCal();
5489
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5490
+ const solarWaterPumpingOnGridCal_1 = requireSolarWaterPumpingOnGridCal();
4295
5491
  calculator.PRECISION = 2;
4296
5492
  const calculateCredit = (request) => {
4297
5493
  if (request instanceof agricultureCreationRequest_1.AgricultureCreationRequest) {
@@ -4300,6 +5496,18 @@ function requireCalculator () {
4300
5496
  else if (request instanceof solarCreationRequest_1.SolarCreationRequest) {
4301
5497
  return solarCal_1.SolarCal.calculate(request);
4302
5498
  }
5499
+ else if (request instanceof soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest) {
5500
+ return soilEnrichmentCal_1.SoilEnrichmentCal.calculate(request);
5501
+ }
5502
+ else if (request instanceof stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest) {
5503
+ return stovesHousesNamibiaCal_1.StovesHousesNamibiaCal.calculate(request);
5504
+ }
5505
+ else if (request instanceof solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest) {
5506
+ return solarWaterPumpingOffGridCal_1.solarWaterPumpingOffGridCal.calculate(request);
5507
+ }
5508
+ else if (request instanceof solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest) {
5509
+ return solarWaterPumpingOnGridCal_1.solarWaterPumpingOnGridCal.calculate(request);
5510
+ }
4303
5511
  else {
4304
5512
  throw Error("Not implemented");
4305
5513
  }
@@ -4310,25 +5518,24 @@ function requireCalculator () {
4310
5518
 
4311
5519
  var building_type_enum = {};
4312
5520
 
4313
- (function (exports) {
4314
- Object.defineProperty(exports, "__esModule", { value: true });
4315
- exports.BuildingType = void 0;
4316
- (function (BuildingType) {
4317
- BuildingType["Household"] = "Household";
4318
- BuildingType["HealthCenter"] = "HealthCenter";
4319
- BuildingType["Dispensary"] = "Dispensary";
4320
- BuildingType["School"] = "School";
4321
- BuildingType["PrimarySchool"] = "PrimarySchool";
4322
- BuildingType["SecondarySchool"] = "SecondarySchool";
4323
- BuildingType["PublicAdministration"] = "PublicAdministration";
4324
- BuildingType["TradingPlace"] = "TradingPlace";
4325
- BuildingType["BusStop"] = "BusStop";
4326
- })(exports.BuildingType || (exports.BuildingType = {}));
4327
- } (building_type_enum));
5521
+ Object.defineProperty(building_type_enum, "__esModule", { value: true });
5522
+ building_type_enum.BuildingType = void 0;
5523
+ var BuildingType;
5524
+ (function (BuildingType) {
5525
+ BuildingType["Household"] = "Household";
5526
+ BuildingType["HealthCenter"] = "HealthCenter";
5527
+ BuildingType["Dispensary"] = "Dispensary";
5528
+ BuildingType["School"] = "School";
5529
+ BuildingType["PrimarySchool"] = "PrimarySchool";
5530
+ BuildingType["SecondarySchool"] = "SecondarySchool";
5531
+ BuildingType["PublicAdministration"] = "PublicAdministration";
5532
+ BuildingType["TradingPlace"] = "TradingPlace";
5533
+ BuildingType["BusStop"] = "BusStop";
5534
+ })(BuildingType || (building_type_enum.BuildingType = BuildingType = {}));
4328
5535
 
4329
5536
  (function (exports) {
4330
5537
  Object.defineProperty(exports, "__esModule", { value: true });
4331
- exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
5538
+ 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;
4332
5539
  const calculator_1 = requireCalculator();
4333
5540
  Object.defineProperty(exports, "calculateCredit", { enumerable: true, get: function () { return calculator_1.calculateCredit; } });
4334
5541
  const agricultureConstants_1 = agricultureConstants;
@@ -4340,7 +5547,23 @@ var building_type_enum = {};
4340
5547
  const agricultureCreationRequest_1 = agricultureCreationRequest;
4341
5548
  Object.defineProperty(exports, "AgricultureCreationRequest", { enumerable: true, get: function () { return agricultureCreationRequest_1.AgricultureCreationRequest; } });
4342
5549
  const solarCreationRequest_1 = solarCreationRequest;
4343
- Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5550
+ Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5551
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
5552
+ Object.defineProperty(exports, "SoilEnrichmentConstants", { enumerable: true, get: function () { return soilEnrichmentConstants_1.SoilEnrichmentConstants; } });
5553
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5554
+ Object.defineProperty(exports, "SoilEnrichmentCreationRequest", { enumerable: true, get: function () { return soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest; } });
5555
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
5556
+ Object.defineProperty(exports, "StovesHousesNamibiaConstants", { enumerable: true, get: function () { return stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants; } });
5557
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
5558
+ Object.defineProperty(exports, "StovesHousesNamibiaCreationRequest", { enumerable: true, get: function () { return stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest; } });
5559
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
5560
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants; } });
5561
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5562
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest; } });
5563
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
5564
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants; } });
5565
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5566
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest; } });
4344
5567
  } (cjs));
4345
5568
 
4346
5569
  var consumerGroupList = [
@@ -5715,14 +6938,15 @@ var ProgrammeManagementComponent = function (props) {
5715
6938
  var _p = useState(false), ministryLevelFilter = _p[0], setMinistryLevelFilter = _p[1];
5716
6939
  var userInfoState = useUserContext().userInfoState;
5717
6940
  var ability = useAbilityContext();
6941
+ var _q = useState(), dataQuery = _q[0], setDataQuery = _q[1];
5718
6942
  var stageObject = enableAddProgramme ? ProgrammeStageMRV : ProgrammeStageR;
5719
6943
  var statusOptions = Object.keys(stageObject).map(function (k, index) { return ({
5720
6944
  label: Object.values(stageObject)[index],
5721
6945
  value: k,
5722
6946
  }); });
5723
- var _q = useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _q[0], setSelectedStatus = _q[1];
5724
- var _r = useState(false), indeterminate = _r[0], setIndeterminate = _r[1];
5725
- var _s = useState(true), checkAll = _s[0], setCheckAll = _s[1];
6947
+ var _r = useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _r[0], setSelectedStatus = _r[1];
6948
+ var _s = useState(false), indeterminate = _s[0], setIndeterminate = _s[1];
6949
+ var _t = useState(true), checkAll = _t[0], setCheckAll = _t[1];
5726
6950
  var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
5727
6951
  return __generator(this, function (_a) {
5728
6952
  console.log(checkedValues);
@@ -5965,6 +7189,11 @@ var ProgrammeManagementComponent = function (props) {
5965
7189
  setTableData(response.data);
5966
7190
  setTotalProgramme(response.response.data.total);
5967
7191
  setLoading(false);
7192
+ setDataQuery({
7193
+ filterAnd: filter,
7194
+ filterOr: (filterOr === null || filterOr === void 0 ? void 0 : filterOr.length) > 0 ? filterOr : undefined,
7195
+ sort: sort,
7196
+ });
5968
7197
  return [3 /*break*/, 4];
5969
7198
  case 3:
5970
7199
  error_1 = _a.sent();
@@ -6022,6 +7251,44 @@ var ProgrammeManagementComponent = function (props) {
6022
7251
  }
6023
7252
  });
6024
7253
  }); };
7254
+ var downloadProgrammeData = function () { return __awaiter(void 0, void 0, void 0, function () {
7255
+ var response, url, a, error_3;
7256
+ var _a;
7257
+ return __generator(this, function (_b) {
7258
+ switch (_b.label) {
7259
+ case 0:
7260
+ setLoading(true);
7261
+ _b.label = 1;
7262
+ case 1:
7263
+ _b.trys.push([1, 3, , 4]);
7264
+ return [4 /*yield*/, post("national/programme/download", {
7265
+ filterAnd: dataQuery.filterAnd,
7266
+ filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
7267
+ sort: dataQuery.sort,
7268
+ })];
7269
+ case 2:
7270
+ response = _b.sent();
7271
+ if (response && response.data) {
7272
+ url = response.data.url;
7273
+ a = document.createElement('a');
7274
+ a.href = url;
7275
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
7276
+ document.body.appendChild(a);
7277
+ a.click();
7278
+ document.body.removeChild(a); // Clean up the created <a> element
7279
+ window.URL.revokeObjectURL(url);
7280
+ }
7281
+ setLoading(false);
7282
+ return [3 /*break*/, 4];
7283
+ case 3:
7284
+ error_3 = _b.sent();
7285
+ console.log("Error in downloading programme data", error_3);
7286
+ setLoading(false);
7287
+ return [3 /*break*/, 4];
7288
+ case 4: return [2 /*return*/];
7289
+ }
7290
+ });
7291
+ }); };
6025
7292
  var onSearch = function () { return __awaiter(void 0, void 0, void 0, function () {
6026
7293
  return __generator(this, function (_a) {
6027
7294
  setSearch(searchText);
@@ -6110,7 +7377,13 @@ var ProgrammeManagementComponent = function (props) {
6110
7377
  return e.target.value === ""
6111
7378
  ? setSearch(e.target.value)
6112
7379
  : setSearchText(e.target.value);
6113
- }, onSearch: setSearch, style: { width: 265 } }))))),
7380
+ }, onSearch: setSearch, style: { width: 265 } })),
7381
+ React.createElement("div", { className: "download-data-btn" },
7382
+ React.createElement("a", { onClick: downloadProgrammeData },
7383
+ React.createElement(DownloadOutlined, { style: {
7384
+ color: "rgba(58, 53, 65, 0.3)",
7385
+ fontSize: "20px",
7386
+ } })))))),
6114
7387
  React.createElement(Row, null,
6115
7388
  React.createElement(Col, { span: 24 },
6116
7389
  React.createElement("div", { className: "programmeManagement-table-container" },
@@ -13458,6 +14731,7 @@ var UserManagementComponent = function (props) {
13458
14731
  var _r = useState({}), actionInfo = _r[0], setActionInfo = _r[1];
13459
14732
  var _s = useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
13460
14733
  var _t = useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
14734
+ var _u = useState(), dataQuery = _u[0], setDataQuery = _u[1];
13461
14735
  var ability = useAbilityContext();
13462
14736
  document.addEventListener("mousedown", function (event) {
13463
14737
  var userFilterArea1 = document.querySelector(".filter-bar");
@@ -13813,6 +15087,11 @@ var UserManagementComponent = function (props) {
13813
15087
  setTableData(availableUsers);
13814
15088
  setTotalUser((_b = (_a = response === null || response === void 0 ? void 0 : response.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.total);
13815
15089
  }
15090
+ setDataQuery({
15091
+ filterAnd: filterAnd(),
15092
+ filterOr: filterOr(),
15093
+ sort: sort(),
15094
+ });
13816
15095
  setLoading(false);
13817
15096
  return [3 /*break*/, 4];
13818
15097
  case 3:
@@ -13830,6 +15109,44 @@ var UserManagementComponent = function (props) {
13830
15109
  }
13831
15110
  });
13832
15111
  }); };
15112
+ var downloadUserData = function () { return __awaiter(void 0, void 0, void 0, function () {
15113
+ var response, url, a, error_3;
15114
+ var _a;
15115
+ return __generator(this, function (_b) {
15116
+ switch (_b.label) {
15117
+ case 0:
15118
+ setLoading(true);
15119
+ _b.label = 1;
15120
+ case 1:
15121
+ _b.trys.push([1, 3, , 4]);
15122
+ return [4 /*yield*/, post("national/user/download", {
15123
+ filterAnd: dataQuery.filterAnd,
15124
+ filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
15125
+ sort: dataQuery.sort,
15126
+ })];
15127
+ case 2:
15128
+ response = _b.sent();
15129
+ if (response && response.data) {
15130
+ url = response.data.url;
15131
+ a = document.createElement('a');
15132
+ a.href = url;
15133
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
15134
+ document.body.appendChild(a);
15135
+ a.click();
15136
+ document.body.removeChild(a); // Clean up the created <a> element
15137
+ window.URL.revokeObjectURL(url);
15138
+ }
15139
+ setLoading(false);
15140
+ return [3 /*break*/, 4];
15141
+ case 3:
15142
+ error_3 = _b.sent();
15143
+ console.log("Error in downloading user data", error_3);
15144
+ setLoading(false);
15145
+ return [3 /*break*/, 4];
15146
+ case 4: return [2 /*return*/];
15147
+ }
15148
+ });
15149
+ }); };
13833
15150
  useEffect(function () {
13834
15151
  getAllUser();
13835
15152
  }, [
@@ -13952,7 +15269,13 @@ var UserManagementComponent = function (props) {
13952
15269
  React.createElement(FilterOutlined, { style: {
13953
15270
  color: "rgba(58, 53, 65, 0.3)",
13954
15271
  fontSize: "20px",
13955
- } }))))))),
15272
+ } })))),
15273
+ React.createElement("div", { className: "download-data-btn" },
15274
+ React.createElement("a", { onClick: downloadUserData },
15275
+ React.createElement(DownloadOutlined, { style: {
15276
+ color: "rgba(58, 53, 65, 0.3)",
15277
+ fontSize: "20px",
15278
+ } })))))),
13956
15279
  React.createElement(Row, null,
13957
15280
  React.createElement(Col, { span: 24 },
13958
15281
  React.createElement("div", { className: "userManagement-table-container" },
@@ -14569,6 +15892,7 @@ var InvestmentManagementComponent = function (props) {
14569
15892
  var _u = useSettingsContext(), isTransferFrozen = _u.isTransferFrozen; _u.setTransferFrozen;
14570
15893
  var _v = useState([]), ministrySectoralScope = _v[0], setMinistrySectoralScope = _v[1];
14571
15894
  var _w = useState(false), ministryLevelFilter = _w[0], setMinistryLevelFilter = _w[1];
15895
+ var _x = useState(), dataQuery = _x[0], setDataQuery = _x[1];
14572
15896
  var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
14573
15897
  return __generator(this, function (_a) {
14574
15898
  console.log(checkedValues);
@@ -14665,6 +15989,12 @@ var InvestmentManagementComponent = function (props) {
14665
15989
  console.log(response);
14666
15990
  setTableData(response.data);
14667
15991
  setTotalProgramme(response.response.data.total);
15992
+ setDataQuery({
15993
+ filterAnd: filter,
15994
+ filterOr: dataFilter,
15995
+ sort: sort,
15996
+ filterBy: filterBy,
15997
+ });
14668
15998
  setLoading(false);
14669
15999
  return [3 /*break*/, 4];
14670
16000
  case 3:
@@ -14682,8 +16012,47 @@ var InvestmentManagementComponent = function (props) {
14682
16012
  }
14683
16013
  });
14684
16014
  }); };
16015
+ var downloadInvestmentData = function () { return __awaiter(void 0, void 0, void 0, function () {
16016
+ var response, url, a, error_2;
16017
+ var _a;
16018
+ return __generator(this, function (_b) {
16019
+ switch (_b.label) {
16020
+ case 0:
16021
+ setLoading(true);
16022
+ _b.label = 1;
16023
+ case 1:
16024
+ _b.trys.push([1, 3, , 4]);
16025
+ return [4 /*yield*/, post("national/programme/investments/download", {
16026
+ filterAnd: dataQuery.filterAnd,
16027
+ filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
16028
+ sort: dataQuery.sort,
16029
+ filterBy: dataQuery.filterBy,
16030
+ })];
16031
+ case 2:
16032
+ response = _b.sent();
16033
+ if (response && response.data) {
16034
+ url = response.data.url;
16035
+ a = document.createElement('a');
16036
+ a.href = url;
16037
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
16038
+ document.body.appendChild(a);
16039
+ a.click();
16040
+ document.body.removeChild(a); // Clean up the created <a> element
16041
+ window.URL.revokeObjectURL(url);
16042
+ }
16043
+ setLoading(false);
16044
+ return [3 /*break*/, 4];
16045
+ case 3:
16046
+ error_2 = _b.sent();
16047
+ console.log("Error in downloading investment data", error_2);
16048
+ setLoading(false);
16049
+ return [3 /*break*/, 4];
16050
+ case 4: return [2 /*return*/];
16051
+ }
16052
+ });
16053
+ }); };
14685
16054
  var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
14686
- var response, error_2;
16055
+ var response, error_3;
14687
16056
  var _a, _b, _c, _d, _e, _f;
14688
16057
  return __generator(this, function (_g) {
14689
16058
  switch (_g.label) {
@@ -14715,8 +16084,8 @@ var InvestmentManagementComponent = function (props) {
14715
16084
  setLoading(false);
14716
16085
  return [3 /*break*/, 4];
14717
16086
  case 3:
14718
- error_2 = _g.sent();
14719
- console.log("Error in getting users", error_2);
16087
+ error_3 = _g.sent();
16088
+ console.log("Error in getting users", error_3);
14720
16089
  setLoading(false);
14721
16090
  return [3 /*break*/, 4];
14722
16091
  case 4: return [2 /*return*/];
@@ -14747,7 +16116,7 @@ var InvestmentManagementComponent = function (props) {
14747
16116
  ministryLevelFilter,
14748
16117
  ]);
14749
16118
  var handleRequestOk = function (reqId, remarks, endpoint, successText, isRetire) { return __awaiter(void 0, void 0, void 0, function () {
14750
- var response, successMsg, error_3;
16119
+ var response, successMsg, error_4;
14751
16120
  return __generator(this, function (_a) {
14752
16121
  switch (_a.label) {
14753
16122
  case 0:
@@ -14777,10 +16146,10 @@ var InvestmentManagementComponent = function (props) {
14777
16146
  setModalVisible(false);
14778
16147
  return [3 /*break*/, 4];
14779
16148
  case 3:
14780
- error_3 = _a.sent();
14781
- console.log("Error in Cancelling transfer request", error_3);
16149
+ error_4 = _a.sent();
16150
+ console.log("Error in Cancelling transfer request", error_4);
14782
16151
  setLoading(false);
14783
- return [2 /*return*/, error_3.message];
16152
+ return [2 /*return*/, error_4.message];
14784
16153
  case 4: return [2 /*return*/];
14785
16154
  }
14786
16155
  });
@@ -15045,7 +16414,13 @@ var InvestmentManagementComponent = function (props) {
15045
16414
  return e.target.value === ""
15046
16415
  ? setSearch(e.target.value)
15047
16416
  : setSearchText(e.target.value);
15048
- }, onSearch: setSearch, style: { width: 265 } }))))),
16417
+ }, onSearch: setSearch, style: { width: 265 } })),
16418
+ React.createElement("div", { className: "download-data-btn" },
16419
+ React.createElement("a", { onClick: downloadInvestmentData },
16420
+ React.createElement(DownloadOutlined, { style: {
16421
+ color: "rgba(58, 53, 65, 0.3)",
16422
+ fontSize: "20px",
16423
+ } })))))),
15049
16424
  React.createElement(Row, null,
15050
16425
  React.createElement(Col, { span: 24 },
15051
16426
  React.createElement("div", { className: "programmeManagement-table-container" },
@@ -15088,6 +16463,7 @@ var NdcActionManagementComponent = function (props) {
15088
16463
  var _m = useState(), dataFilter = _m[0]; _m[1];
15089
16464
  var _o = useState([]), ministrySectoralScope = _o[0], setMinistrySectoralScope = _o[1];
15090
16465
  var _p = useState(false), ministryLevelFilter = _p[0], setMinistryLevelFilter = _p[1];
16466
+ var _q = useState(), dataQuery = _q[0], setDataQuery = _q[1];
15091
16467
  var Search = Input.Search;
15092
16468
  var post = useConnection().post;
15093
16469
  var userInfoState = useUserContext().userInfoState;
@@ -15095,7 +16471,7 @@ var NdcActionManagementComponent = function (props) {
15095
16471
  label: addSpaces(Object.values(NdcActionStatus)[index]),
15096
16472
  value: Object.values(NdcActionStatus)[index],
15097
16473
  }); });
15098
- var _q = useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _q[0], setSelectedStatus = _q[1];
16474
+ var _r = useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _r[0], setSelectedStatus = _r[1];
15099
16475
  var getNdcActionNames = function (action) {
15100
16476
  switch (action) {
15101
16477
  case NdcActionTypes.Adaptation:
@@ -15277,6 +16653,11 @@ var NdcActionManagementComponent = function (props) {
15277
16653
  response = _a.sent();
15278
16654
  setTableData(response.data);
15279
16655
  setTotalProgramme(response.response.data.total);
16656
+ setDataQuery({
16657
+ filterAnd: filter,
16658
+ filterBy: filterBy,
16659
+ sort: sort,
16660
+ });
15280
16661
  setLoading(false);
15281
16662
  return [3 /*break*/, 4];
15282
16663
  case 3:
@@ -15335,6 +16716,43 @@ var NdcActionManagementComponent = function (props) {
15335
16716
  }
15336
16717
  });
15337
16718
  }); };
16719
+ var downloadNdcData = function () { return __awaiter(void 0, void 0, void 0, function () {
16720
+ var response, url, a, error_3;
16721
+ return __generator(this, function (_a) {
16722
+ switch (_a.label) {
16723
+ case 0:
16724
+ setLoading(true);
16725
+ _a.label = 1;
16726
+ case 1:
16727
+ _a.trys.push([1, 3, , 4]);
16728
+ return [4 /*yield*/, post("national/programme/queryNdcActions/download", {
16729
+ filterAnd: dataQuery.filterAnd,
16730
+ filterBy: dataQuery.filterBy,
16731
+ sort: dataQuery.sort,
16732
+ })];
16733
+ case 2:
16734
+ response = _a.sent();
16735
+ if (response && response.data) {
16736
+ url = response.data.url;
16737
+ a = document.createElement('a');
16738
+ a.href = url;
16739
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
16740
+ document.body.appendChild(a);
16741
+ a.click();
16742
+ document.body.removeChild(a); // Clean up the created <a> element
16743
+ window.URL.revokeObjectURL(url);
16744
+ }
16745
+ setLoading(false);
16746
+ return [3 /*break*/, 4];
16747
+ case 3:
16748
+ error_3 = _a.sent();
16749
+ console.log("Error in downloading NDC Action data", error_3);
16750
+ setLoading(false);
16751
+ return [3 /*break*/, 4];
16752
+ case 4: return [2 /*return*/];
16753
+ }
16754
+ });
16755
+ }); };
15338
16756
  useEffect(function () {
15339
16757
  if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) {
15340
16758
  getUserDetails();
@@ -15430,7 +16848,13 @@ var NdcActionManagementComponent = function (props) {
15430
16848
  return e.target.value === ""
15431
16849
  ? setSearch(e.target.value)
15432
16850
  : setSearchText(e.target.value);
15433
- }, onSearch: setSearch, style: { width: 265 } }))))),
16851
+ }, onSearch: setSearch, style: { width: 265 } })),
16852
+ React.createElement("div", { className: "download-data-btn" },
16853
+ React.createElement("a", { onClick: downloadNdcData },
16854
+ React.createElement(DownloadOutlined, { style: {
16855
+ color: "rgba(58, 53, 65, 0.3)",
16856
+ fontSize: "20px",
16857
+ } })))))),
15434
16858
  React.createElement(Row, null,
15435
16859
  React.createElement(Col, { span: 24 },
15436
16860
  React.createElement("div", { className: "programmeManagement-table-container" },
@@ -15475,14 +16899,16 @@ var NdcActionDetails = function (props) {
15475
16899
  translator.setDefaultNamespace("ndcAction");
15476
16900
  var t = translator.t;
15477
16901
  var _a = useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
15478
- var _b = useState(), mitigationType = _b[0], setmitigationType = _b[1];
15479
- var _c = useState(""), sector = _c[0], setSector = _c[1];
15480
- var _d = useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
15481
- var _e = useState([]), checkedOptionsGhgReduced = _e[0], setCheckedOptionsGhgReduced = _e[1];
15482
- var _f = useState([]), checkedOptionsGhgAvoided = _f[0], setCheckedOptionsGhgAvoided = _f[1];
15483
- var _g = useState(), inputNumberValueGhgAvoidedGas = _g[0], setInputNumberValueGhgAvoidedGas = _g[1];
15484
- var _h = useState(), inputNumberValueGhgReducedGas = _h[0], setInputNumberValueGhgReducedGas = _h[1];
15485
- var _j = useState(), includedInNAP = _j[0], setIncludedInNAP = _j[1];
16902
+ var _b = useState(), methodology = _b[0], setMethodology = _b[1];
16903
+ var _c = useState(), mitigationType = _c[0], setmitigationType = _c[1];
16904
+ var _d = useState(""), mitigationSubType = _d[0], setMitigationSubType = _d[1];
16905
+ var _e = useState(""), sector = _e[0], setSector = _e[1];
16906
+ var _f = useState(ndcActionTypeList), ndcActionTypeListFiltered = _f[0]; _f[1];
16907
+ var _g = useState([]), checkedOptionsGhgReduced = _g[0], setCheckedOptionsGhgReduced = _g[1];
16908
+ var _h = useState([]), checkedOptionsGhgAvoided = _h[0], setCheckedOptionsGhgAvoided = _h[1];
16909
+ var _j = useState(), inputNumberValueGhgAvoidedGas = _j[0], setInputNumberValueGhgAvoidedGas = _j[1];
16910
+ var _k = useState(), inputNumberValueGhgReducedGas = _k[0], setInputNumberValueGhgReducedGas = _k[1];
16911
+ var _l = useState(), includedInNAP = _l[0], setIncludedInNAP = _l[1];
15486
16912
  var form = Form.useForm()[0];
15487
16913
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
15488
16914
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
@@ -15502,6 +16928,9 @@ var NdcActionDetails = function (props) {
15502
16928
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) {
15503
16929
  setmitigationType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation);
15504
16930
  }
16931
+ if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) {
16932
+ setMitigationSubType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation);
16933
+ }
15505
16934
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP) {
15506
16935
  setIncludedInNAP(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP);
15507
16936
  }
@@ -15514,6 +16943,7 @@ var NdcActionDetails = function (props) {
15514
16943
  form.setFieldsValue({
15515
16944
  ndcActionType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action,
15516
16945
  mitigationType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation,
16946
+ mitigationSubType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation,
15517
16947
  energyGeneration: (_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _a === void 0 ? void 0 : _a.energyGeneration,
15518
16948
  energyGenerationUnit: (_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _b === void 0 ? void 0 : _b.energyGenerationUnit,
15519
16949
  consumerGroup: (_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.consumerGroup,
@@ -15591,18 +17021,42 @@ var NdcActionDetails = function (props) {
15591
17021
  if (formValues.ndcActionType === NdcActionTypes.Mitigation ||
15592
17022
  formValues.ndcActionType === NdcActionTypes.CrossCutting) {
15593
17023
  if (formValues.mitigationType === MitigationTypes.AGRICULTURE) {
15594
- creditRequest = new cjs.AgricultureCreationRequest();
15595
- creditRequest.landArea = formValues.eligibleLandArea;
15596
- creditRequest.landAreaUnit = formValues.landAreaUnit;
15597
- creditRequest.duration =
15598
- programmeDetails.endTime - programmeDetails.startTime;
15599
- creditRequest.durationUnit = "s";
17024
+ if (formValues.mitigationSubType === MitigationSubTypes.RICE_CROPS) {
17025
+ creditRequest = new cjs.AgricultureCreationRequest();
17026
+ creditRequest.landArea = formValues.eligibleLandArea;
17027
+ creditRequest.landAreaUnit = formValues.landAreaUnit;
17028
+ creditRequest.duration =
17029
+ programmeDetails.endTime - programmeDetails.startTime;
17030
+ creditRequest.durationUnit = "s";
17031
+ }
17032
+ else if (formValues.mitigationSubType === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
17033
+ creditRequest = new cjs.SoilEnrichmentCreationRequest();
17034
+ creditRequest.weight = formValues.tonnesOnDryBasis;
17035
+ }
15600
17036
  }
15601
17037
  else if (formValues.mitigationType === MitigationTypes.SOLAR) {
15602
- creditRequest = new cjs.SolarCreationRequest();
15603
- creditRequest.buildingType = formValues.consumerGroup;
15604
- creditRequest.energyGeneration = formValues.energyGeneration;
15605
- creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17038
+ if (formValues.mitigationSubType === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
17039
+ creditRequest = new cjs.SolarCreationRequest();
17040
+ creditRequest.buildingType = formValues.consumerGroup;
17041
+ creditRequest.energyGeneration = formValues.energyGeneration;
17042
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17043
+ }
17044
+ else if (formValues.mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
17045
+ creditRequest = new cjs.SolarWaterPumpingOffGridCreationRequest();
17046
+ creditRequest.energyGeneration = formValues.energyGeneration;
17047
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17048
+ }
17049
+ else if (formValues.mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
17050
+ creditRequest = new cjs.SolarWaterPumpingOnGridCreationRequest();
17051
+ creditRequest.energyGeneration = formValues.energyGeneration;
17052
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17053
+ }
17054
+ }
17055
+ else if (formValues.mitigationType === MitigationTypes.EE_HOUSEHOLDS
17056
+ && formValues.mitigationSubType === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
17057
+ creditRequest = new cjs.StovesHousesNamibiaCreationRequest();
17058
+ creditRequest.numberOfDays = formValues.numberOfDays;
17059
+ creditRequest.numberOfPeopleInHousehold = formValues.numberOfPeople;
15606
17060
  }
15607
17061
  }
15608
17062
  var creditResponse = cjs.calculateCredit(creditRequest);
@@ -15629,8 +17083,37 @@ var NdcActionDetails = function (props) {
15629
17083
  };
15630
17084
  var handleMitigationTypeChange = function (selectedMitigationType) {
15631
17085
  setmitigationType(selectedMitigationType);
17086
+ form.setFieldsValue({
17087
+ mitigationSubType: "",
17088
+ tonnesOnDryBasis: "",
17089
+ numberOfPeople: "",
17090
+ numberOfDays: "",
17091
+ landAreaUnit: "",
17092
+ eligibleLandArea: "",
17093
+ consumerGroup: "",
17094
+ energyGenerationUnit: "",
17095
+ energyGeneration: "",
17096
+ methodologyEstimatedCredits: 0,
17097
+ });
15632
17098
  calculateMethodologyEstimatedCredits();
15633
17099
  };
17100
+ var handleMitigationSubTypeChange = function (selectedSubMitigationType) {
17101
+ setMitigationSubType(selectedSubMitigationType);
17102
+ form.setFieldsValue({
17103
+ tonnesOnDryBasis: "",
17104
+ numberOfPeople: "",
17105
+ numberOfDays: "",
17106
+ landAreaUnit: "",
17107
+ eligibleLandArea: "",
17108
+ consumerGroup: "",
17109
+ energyGenerationUnit: "",
17110
+ energyGeneration: "",
17111
+ methodologyEstimatedCredits: 0,
17112
+ });
17113
+ };
17114
+ var handleMethodologyChange = function (selectedMethodology) {
17115
+ setMethodology(selectedMethodology);
17116
+ };
15634
17117
  var onNdcActionDetailsFormSubmit = function (ndcActionFormvalues) { return __awaiter(void 0, void 0, void 0, function () {
15635
17118
  var ndcActionDetailObj, enablementReport;
15636
17119
  var _a;
@@ -15641,17 +17124,28 @@ var NdcActionDetails = function (props) {
15641
17124
  ndcActionDetailObj.action = ndcActionFormvalues.ndcActionType;
15642
17125
  if (ndcActionFormvalues.ndcActionType === NdcActionTypes.Mitigation ||
15643
17126
  ndcActionFormvalues.ndcActionType === NdcActionTypes.CrossCutting) {
15644
- ndcActionDetailObj.methodology = t("ndcAction:goldStandard");
17127
+ ndcActionDetailObj.methodology = ndcActionFormvalues.methodology;
15645
17128
  ndcActionDetailObj.typeOfMitigation = ndcActionFormvalues.mitigationType;
15646
- if (ndcActionFormvalues.mitigationType === MitigationTypes.AGRICULTURE) {
17129
+ ndcActionDetailObj.subTypeOfMitigation = ndcActionFormvalues.mitigationSubType;
17130
+ if (ndcActionFormvalues.mitigationType === MitigationTypes.AGRICULTURE
17131
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.RICE_CROPS) {
15647
17132
  ndcActionDetailObj.agricultureProperties = {
15648
17133
  landArea: ndcActionFormvalues.eligibleLandArea
15649
17134
  ? ndcActionFormvalues.eligibleLandArea
15650
17135
  : 0,
15651
17136
  landAreaUnit: ndcActionFormvalues.landAreaUnit,
15652
17137
  };
17138
+ ndcActionDetailObj.creditCalculationProperties = {
17139
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17140
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17141
+ landArea: ndcActionFormvalues.eligibleLandArea
17142
+ ? ndcActionFormvalues.eligibleLandArea
17143
+ : 0,
17144
+ landAreaUnit: ndcActionFormvalues.landAreaUnit,
17145
+ };
15653
17146
  }
15654
- else if (ndcActionFormvalues.mitigationType === MitigationTypes.SOLAR) {
17147
+ else if (ndcActionFormvalues.mitigationType === MitigationTypes.SOLAR
17148
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
15655
17149
  ndcActionDetailObj.solarProperties = {
15656
17150
  energyGeneration: ndcActionFormvalues.energyGeneration
15657
17151
  ? ndcActionFormvalues.energyGeneration
@@ -15659,18 +17153,54 @@ var NdcActionDetails = function (props) {
15659
17153
  energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
15660
17154
  consumerGroup: ndcActionFormvalues.consumerGroup,
15661
17155
  };
17156
+ ndcActionDetailObj.creditCalculationProperties = {
17157
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17158
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17159
+ energyGeneration: ndcActionFormvalues.energyGeneration
17160
+ ? ndcActionFormvalues.energyGeneration
17161
+ : 0,
17162
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
17163
+ consumerGroup: ndcActionFormvalues.consumerGroup,
17164
+ };
15662
17165
  }
15663
- if (ndcActionFormvalues.mitigationType === MitigationTypes.SOLAR ||
15664
- ndcActionFormvalues.mitigationType === MitigationTypes.AGRICULTURE) {
15665
- if (parseFloat(ndcActionFormvalues.methodologyEstimatedCredits) <= 0) {
15666
- message.open({
15667
- type: "error",
15668
- content: t("methodologyEstimatedCreditsInvalid"),
15669
- duration: 4,
15670
- style: { textAlign: "right", marginRight: 15, marginTop: 10 },
15671
- });
15672
- return [2 /*return*/];
15673
- }
17166
+ else if (ndcActionFormvalues.mitigationType === MitigationTypes.SOLAR
17167
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
17168
+ ndcActionDetailObj.creditCalculationProperties = {
17169
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17170
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17171
+ energyGeneration: ndcActionFormvalues.energyGeneration
17172
+ ? ndcActionFormvalues.energyGeneration
17173
+ : 0,
17174
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
17175
+ };
17176
+ }
17177
+ else if (ndcActionFormvalues.mitigationType === MitigationTypes.SOLAR
17178
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
17179
+ ndcActionDetailObj.creditCalculationProperties = {
17180
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17181
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17182
+ energyGeneration: ndcActionFormvalues.energyGeneration
17183
+ ? ndcActionFormvalues.energyGeneration
17184
+ : 0,
17185
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
17186
+ };
17187
+ }
17188
+ else if (ndcActionFormvalues.mitigationType === MitigationTypes.EE_HOUSEHOLDS
17189
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
17190
+ ndcActionDetailObj.creditCalculationProperties = {
17191
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17192
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17193
+ numberOfDays: ndcActionFormvalues.numberOfDays,
17194
+ numberOfPeopleInHousehold: ndcActionFormvalues.numberOfPeople,
17195
+ };
17196
+ }
17197
+ else if (ndcActionFormvalues.mitigationType === MitigationTypes.AGRICULTURE
17198
+ && ndcActionFormvalues.mitigationSubType === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
17199
+ ndcActionDetailObj.creditCalculationProperties = {
17200
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17201
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17202
+ weight: ndcActionFormvalues.tonnesOnDryBasis,
17203
+ };
15674
17204
  }
15675
17205
  if (ndcActionFormvalues.userEstimatedCredits > programmeDetails.creditEst) {
15676
17206
  message.open({
@@ -15792,24 +17322,36 @@ var NdcActionDetails = function (props) {
15792
17322
  (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === Sector.Hospitality
15793
17323
  ? mitigationTypeList
15794
17324
  : sectorMitigationTypesListMapped[sector] }))),
15795
- React.createElement(Col, { style: { marginLeft: "38px" } },
15796
- React.createElement(Form.Item, { label: t("ndcAction:methodology"), name: "methodology" },
15797
- React.createElement("span", { style: {
15798
- display: "inline-block",
15799
- border: "1px solid #D9D9D9",
15800
- width: "154px",
15801
- height: "38px",
17325
+ (ndcActionType === NdcActionTypes.Mitigation ||
17326
+ ndcActionType === NdcActionTypes.CrossCutting) &&
17327
+ mitigationType && mitigationSubTypesListMapped[mitigationType] && (React.createElement(Col, { style: { marginLeft: "38px" } },
17328
+ React.createElement(Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
17329
+ {
17330
+ required: true,
17331
+ message: "".concat(t("ndcAction:mitigationSubType"), " ").concat(t("ndcAction:isRequired")),
17332
+ },
17333
+ ] },
17334
+ React.createElement(Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
17335
+ width: "249px",
17336
+ borderRadius: "4px",
17337
+ }, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType }))))),
17338
+ React.createElement(Row, { justify: "start", align: "middle" },
17339
+ React.createElement(Col, { span: 20 },
17340
+ React.createElement(Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [
17341
+ {
17342
+ required: true,
17343
+ message: "".concat(t("ndcAction:methodology"), " ").concat(t("ndcAction:isRequired")),
17344
+ },
17345
+ ] },
17346
+ React.createElement(Select, { size: "large", onChange: handleMethodologyChange, style: {
15802
17347
  borderRadius: "4px",
15803
- padding: "7px 8px",
15804
- fontSize: "14px",
15805
- backgroundColor: "#F0F0F0",
15806
- color: "#8C8C8C",
15807
- } },
15808
- " ",
15809
- t("ndcAction:goldStandard"))))))),
17348
+ }, value: methodology }, methodologyOptions.map(function (option) { return (React.createElement(Select.Option, { key: option, value: option }, option)); }))))))),
15810
17349
  (ndcActionType === NdcActionTypes.Mitigation ||
15811
17350
  ndcActionType === NdcActionTypes.CrossCutting) &&
15812
- mitigationType === MitigationTypes.SOLAR && (React.createElement(React.Fragment, null,
17351
+ mitigationType === MitigationTypes.SOLAR &&
17352
+ (mitigationSubType === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV ||
17353
+ mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
17354
+ mitigationSubType === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) && (React.createElement(React.Fragment, null,
15813
17355
  React.createElement(Row, { justify: "start", align: "middle" },
15814
17356
  React.createElement(Col, null,
15815
17357
  React.createElement(Form.Item, { label: t("ndcAction:energyGeneration"), rules: [
@@ -15840,16 +17382,17 @@ var NdcActionDetails = function (props) {
15840
17382
  },
15841
17383
  ] },
15842
17384
  React.createElement(Select, { size: "large", style: { width: 442 }, options: energyGenerationUnitList, onChange: calculateMethodologyEstimatedCredits })))),
15843
- React.createElement(Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
17385
+ mitigationSubType === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV && (React.createElement(Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
15844
17386
  {
15845
17387
  required: true,
15846
17388
  message: "".concat(t("ndcAction:consumerGroup"), " ").concat(t("ndcAction:isRequired")),
15847
17389
  },
15848
17390
  ] },
15849
- React.createElement(Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList })))),
17391
+ React.createElement(Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList }))))),
15850
17392
  (ndcActionType === NdcActionTypes.Mitigation ||
15851
17393
  ndcActionType === NdcActionTypes.CrossCutting) &&
15852
- mitigationType === MitigationTypes.AGRICULTURE && (React.createElement(Row, { justify: "start", align: "middle" },
17394
+ mitigationType === MitigationTypes.AGRICULTURE &&
17395
+ mitigationSubType === MitigationSubTypes.RICE_CROPS && (React.createElement(Row, { justify: "start", align: "middle" },
15853
17396
  React.createElement(Col, null,
15854
17397
  React.createElement(Form.Item, { label: t("ndcAction:eligibleLandArea"), name: "eligibleLandArea", rules: [
15855
17398
  {
@@ -15879,6 +17422,78 @@ var NdcActionDetails = function (props) {
15879
17422
  },
15880
17423
  ] },
15881
17424
  React.createElement(Select, { onChange: calculateMethodologyEstimatedCredits, size: "large", style: { width: 442 }, options: landAreaUnitList }))))),
17425
+ (ndcActionType === NdcActionTypes.Mitigation ||
17426
+ ndcActionType === NdcActionTypes.CrossCutting) &&
17427
+ mitigationType === MitigationTypes.AGRICULTURE &&
17428
+ mitigationSubType === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR && (React.createElement(Row, { justify: "start", align: "middle" },
17429
+ React.createElement(Col, null,
17430
+ React.createElement(Form.Item, { label: t("ndcAction:tonnesOnDryBasis"), name: "tonnesOnDryBasis", rules: [
17431
+ {
17432
+ required: true,
17433
+ message: "",
17434
+ },
17435
+ {
17436
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
17437
+ return __generator(this, function (_a) {
17438
+ if (String(value).trim() === "" ||
17439
+ String(value).trim() === undefined ||
17440
+ value === null ||
17441
+ value === undefined) {
17442
+ throw new Error("".concat(t("ndcAction:tonnesOnDryBasis"), " ").concat(t("ndcAction:isRequired")));
17443
+ }
17444
+ return [2 /*return*/];
17445
+ });
17446
+ }); },
17447
+ },
17448
+ ] },
17449
+ React.createElement(InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))))),
17450
+ (ndcActionType === NdcActionTypes.Mitigation ||
17451
+ ndcActionType === NdcActionTypes.CrossCutting) &&
17452
+ mitigationType === MitigationTypes.EE_HOUSEHOLDS &&
17453
+ mitigationSubType === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA && (React.createElement(React.Fragment, null,
17454
+ React.createElement(Row, { justify: "start", align: "middle" },
17455
+ React.createElement(Col, null,
17456
+ React.createElement(Form.Item, { label: t("ndcAction:numberOfDays"), rules: [
17457
+ {
17458
+ required: true,
17459
+ message: "",
17460
+ },
17461
+ {
17462
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
17463
+ return __generator(this, function (_a) {
17464
+ if (String(value).trim() === "" ||
17465
+ String(value).trim() === undefined ||
17466
+ value === null ||
17467
+ value === undefined) {
17468
+ throw new Error("".concat(t("ndcAction:numberOfDays"), " ").concat(t("ndcAction:isRequired")));
17469
+ }
17470
+ return [2 /*return*/];
17471
+ });
17472
+ }); },
17473
+ },
17474
+ ], name: "numberOfDays" },
17475
+ React.createElement(InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
17476
+ React.createElement(Col, { style: { marginLeft: "38px" } },
17477
+ React.createElement(Form.Item, { label: t("ndcAction:numberOfPeople"), rules: [
17478
+ {
17479
+ required: true,
17480
+ message: "",
17481
+ },
17482
+ {
17483
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
17484
+ return __generator(this, function (_a) {
17485
+ if (String(value).trim() === "" ||
17486
+ String(value).trim() === undefined ||
17487
+ value === null ||
17488
+ value === undefined) {
17489
+ throw new Error("".concat(t("ndcAction:numberOfPeople"), " ").concat(t("ndcAction:isRequired")));
17490
+ }
17491
+ return [2 /*return*/];
17492
+ });
17493
+ }); },
17494
+ },
17495
+ ], name: "numberOfPeople" },
17496
+ React.createElement(InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits })))))),
15882
17497
  (ndcActionType === NdcActionTypes.Mitigation ||
15883
17498
  ndcActionType === NdcActionTypes.CrossCutting) && (React.createElement(Row, { justify: "start", align: "middle" },
15884
17499
  React.createElement(Col, null,
@@ -18825,26 +20440,55 @@ var NdcActionViewComponent = function (props) {
18825
20440
  _a[t("ndcAction:viewCurrentStatus")] = (React.createElement(Tag, { className: "clickable", color: getNdcStatusTagType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status) }, addSpaces(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status))),
18826
20441
  _a);
18827
20442
  var getNdcActionMitigationDetails = function () {
18828
- var _a, _b, _c, _d, _e;
20443
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18829
20444
  var mitigationDetails = {};
18830
20445
  mitigationTypeList === null || mitigationTypeList === void 0 ? void 0 : mitigationTypeList.map(function (type) {
18831
20446
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === type.value) {
18832
20447
  mitigationDetails[t("ndcAction:viewMitigationType")] = type.label;
18833
20448
  }
18834
20449
  });
20450
+ mitigationSubTypeList === null || mitigationSubTypeList === void 0 ? void 0 : mitigationSubTypeList.map(function (type) {
20451
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === type.value) {
20452
+ mitigationDetails[t("ndcAction:viewMitigationSubType")] = type.label;
20453
+ }
20454
+ });
18835
20455
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.AGRICULTURE &&
20456
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.RICE_CROPS &&
18836
20457
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties)) {
18837
20458
  mitigationDetails[t("ndcAction:viewMitigationLandArea")] =
18838
20459
  addCommSep((_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _a === void 0 ? void 0 : _a.landArea) +
18839
20460
  ((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
18840
20461
  }
20462
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.AGRICULTURE &&
20463
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
20464
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
20465
+ mitigationDetails[t("ndcAction:viewMitigationWeight")] =
20466
+ addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
20467
+ }
18841
20468
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
20469
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
18842
20470
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
18843
20471
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
18844
- addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.energyGeneration) +
18845
- ((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGenerationUnit);
20472
+ addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
20473
+ ((_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.energyGenerationUnit);
18846
20474
  mitigationDetails[t("ndcAction:viewMitigationConsumerGroup")] =
18847
- (_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.consumerGroup;
20475
+ (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
20476
+ }
20477
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
20478
+ ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
20479
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
20480
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
20481
+ mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
20482
+ addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
20483
+ ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
20484
+ }
20485
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.EE_HOUSEHOLDS &&
20486
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
20487
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
20488
+ mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
20489
+ (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
20490
+ mitigationDetails[t("ndcAction:viewMitigationNoOfPeople")] =
20491
+ (_k = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _k === void 0 ? void 0 : _k.numberOfPeopleInHousehold;
18848
20492
  }
18849
20493
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.ndcFinancing) {
18850
20494
  mitigationDetails[t("ndcAction:viewMitigationUserEstimatedCredits")] =
@@ -19195,6 +20839,7 @@ var CreditTransferComponent = function (props) {
19195
20839
  var _y = useSettingsContext(), isTransferFrozen = _y.isTransferFrozen, setTransferFrozen = _y.setTransferFrozen;
19196
20840
  var _z = useState([]), ministrySectoralScope = _z[0], setMinistrySectoralScope = _z[1];
19197
20841
  var _0 = useState(false), ministryLevelFilter = _0[0], setMinistryLevelFilter = _0[1];
20842
+ var _1 = useState(), dataQuery = _1[0], setDataQuery = _1[1];
19198
20843
  var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
19199
20844
  return __generator(this, function (_a) {
19200
20845
  console.log(checkedValues);
@@ -19216,6 +20861,11 @@ var CreditTransferComponent = function (props) {
19216
20861
  }); };
19217
20862
  Form.useForm()[0];
19218
20863
  var Search = Input.Search;
20864
+ var ministryLevelPermission = function (sectoralScope) {
20865
+ return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY &&
20866
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== Role.ViewOnly &&
20867
+ ministrySectoralScope.includes(sectoralScope));
20868
+ };
19219
20869
  var onCheckAllChange = function (e) {
19220
20870
  var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
19221
20871
  setSelectedStatus(nw);
@@ -19293,6 +20943,12 @@ var CreditTransferComponent = function (props) {
19293
20943
  console.log(response);
19294
20944
  setTableData(response.data);
19295
20945
  setTotalProgramme(response.response.data.total);
20946
+ setDataQuery({
20947
+ filterAnd: filter,
20948
+ filterOr: dataFilter,
20949
+ sort: sort,
20950
+ filterBy: filterBy,
20951
+ });
19296
20952
  setLoading(false);
19297
20953
  return [3 /*break*/, 4];
19298
20954
  case 3:
@@ -19310,8 +20966,47 @@ var CreditTransferComponent = function (props) {
19310
20966
  }
19311
20967
  });
19312
20968
  }); };
20969
+ var downloadTransferData = function () { return __awaiter(void 0, void 0, void 0, function () {
20970
+ var response, url, a, error_2;
20971
+ var _a;
20972
+ return __generator(this, function (_b) {
20973
+ switch (_b.label) {
20974
+ case 0:
20975
+ setLoading(true);
20976
+ _b.label = 1;
20977
+ case 1:
20978
+ _b.trys.push([1, 3, , 4]);
20979
+ return [4 /*yield*/, post("national/programme/transfers/download", {
20980
+ filterAnd: dataQuery.filterAnd,
20981
+ filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
20982
+ sort: dataQuery.sort,
20983
+ filterBy: dataQuery.filterBy,
20984
+ })];
20985
+ case 2:
20986
+ response = _b.sent();
20987
+ if (response && response.data) {
20988
+ url = response.data.url;
20989
+ a = document.createElement('a');
20990
+ a.href = url;
20991
+ a.download = response.data.csvFile; // Specify the filename for the downloaded file
20992
+ document.body.appendChild(a);
20993
+ a.click();
20994
+ document.body.removeChild(a); // Clean up the created <a> element
20995
+ window.URL.revokeObjectURL(url);
20996
+ }
20997
+ setLoading(false);
20998
+ return [3 /*break*/, 4];
20999
+ case 3:
21000
+ error_2 = _b.sent();
21001
+ console.log("Error in downloading transfer data", error_2);
21002
+ setLoading(false);
21003
+ return [3 /*break*/, 4];
21004
+ case 4: return [2 /*return*/];
21005
+ }
21006
+ });
21007
+ }); };
19313
21008
  var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
19314
- var response, error_2;
21009
+ var response, error_3;
19315
21010
  var _a, _b, _c, _d, _e, _f;
19316
21011
  return __generator(this, function (_g) {
19317
21012
  switch (_g.label) {
@@ -19343,8 +21038,8 @@ var CreditTransferComponent = function (props) {
19343
21038
  setLoading(false);
19344
21039
  return [3 /*break*/, 4];
19345
21040
  case 3:
19346
- error_2 = _g.sent();
19347
- console.log("Error in getting users", error_2);
21041
+ error_3 = _g.sent();
21042
+ console.log("Error in getting users", error_3);
19348
21043
  setLoading(false);
19349
21044
  return [3 /*break*/, 4];
19350
21045
  case 4: return [2 /*return*/];
@@ -19368,7 +21063,7 @@ var CreditTransferComponent = function (props) {
19368
21063
  }
19369
21064
  }, []);
19370
21065
  var handleRequestOk = function (reqId, remarks, endpoint, successText, isRetire) { return __awaiter(void 0, void 0, void 0, function () {
19371
- var response, successMsg, error_3;
21066
+ var response, successMsg, error_4;
19372
21067
  return __generator(this, function (_a) {
19373
21068
  switch (_a.label) {
19374
21069
  case 0:
@@ -19398,10 +21093,10 @@ var CreditTransferComponent = function (props) {
19398
21093
  setModalVisible(false);
19399
21094
  return [3 /*break*/, 4];
19400
21095
  case 3:
19401
- error_3 = _a.sent();
19402
- console.log("Error in Cancelling transfer request", error_3);
21096
+ error_4 = _a.sent();
21097
+ console.log("Error in Cancelling transfer request", error_4);
19403
21098
  setLoading(false);
19404
- return [2 /*return*/, error_3.message];
21099
+ return [2 /*return*/, error_4.message];
19405
21100
  case 4: return [2 /*return*/];
19406
21101
  }
19407
21102
  });
@@ -19476,7 +21171,8 @@ var CreditTransferComponent = function (props) {
19476
21171
  ], renderItem: function (item) { return (React.createElement(List.Item, { onClick: item.click },
19477
21172
  React.createElement(Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
19478
21173
  React.createElement("span", null, item.text))); } })) : record.isRetirement &&
19479
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
21174
+ ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ||
21175
+ ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
19480
21176
  {
19481
21177
  text: t("creditTransfer:recognise"),
19482
21178
  icon: React.createElement(Icon.Save, null),
@@ -19762,7 +21458,13 @@ var CreditTransferComponent = function (props) {
19762
21458
  return e.target.value === ""
19763
21459
  ? setSearch(e.target.value)
19764
21460
  : setSearchText(e.target.value);
19765
- }, onSearch: setSearch, style: { width: 265 } }))))),
21461
+ }, onSearch: setSearch, style: { width: 265 } })),
21462
+ React.createElement("div", { className: "download-data-btn" },
21463
+ React.createElement("a", { onClick: downloadTransferData },
21464
+ React.createElement(DownloadOutlined, { style: {
21465
+ color: "rgba(58, 53, 65, 0.3)",
21466
+ fontSize: "20px",
21467
+ } })))))),
19766
21468
  React.createElement(Row, null,
19767
21469
  React.createElement(Col, { span: 24 },
19768
21470
  React.createElement("div", { className: "programmeManagement-table-container" },
@@ -24936,5 +26638,5 @@ var TimelineBody = function (props) {
24936
26638
  React.createElement("div", { className: "remark-body" }, remark)))));
24937
26639
  };
24938
26640
 
24939
- export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
26641
+ export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
24940
26642
  //# sourceMappingURL=index.js.map