@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/cjs/index.js +1803 -98
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/ndcAction.definitions.d.ts +15 -0
- package/dist/cjs/types/Definitions/Enums/mitigation.types.enum.d.ts +171 -1
- package/dist/esm/index.js +1802 -100
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/ndcAction.definitions.d.ts +15 -0
- package/dist/esm/types/Definitions/Enums/mitigation.types.enum.d.ts +171 -1
- package/dist/index.d.ts +186 -2
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
@@ -524,6 +524,7 @@ var CompanyManagementComponent = function (props) {
|
|
524
524
|
var _j = React.useState("All"), filterByOrganisationType = _j[0], setFilterByOrganisationType = _j[1];
|
525
525
|
var _k = React.useState(""), sortOrder = _k[0], setSortOrder = _k[1];
|
526
526
|
var _l = React.useState(""), sortField = _l[0], setSortField = _l[1];
|
527
|
+
var _m = React.useState(), dataQuery = _m[0], setDataQuery = _m[1];
|
527
528
|
var ability = useAbilityContext();
|
528
529
|
document.addEventListener("mousedown", function (event) {
|
529
530
|
var organisationFilterArea1 = document.querySelector(".filter-bar");
|
@@ -729,6 +730,11 @@ var CompanyManagementComponent = function (props) {
|
|
729
730
|
setTableData(availableCompanies);
|
730
731
|
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);
|
731
732
|
}
|
733
|
+
setDataQuery({
|
734
|
+
filterAnd: filterAnd(),
|
735
|
+
filterOr: filterOr(),
|
736
|
+
sort: sort(),
|
737
|
+
});
|
732
738
|
setLoading(false);
|
733
739
|
return [3 /*break*/, 4];
|
734
740
|
case 3:
|
@@ -745,6 +751,44 @@ var CompanyManagementComponent = function (props) {
|
|
745
751
|
}
|
746
752
|
});
|
747
753
|
}); };
|
754
|
+
var downloadCompanyData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
755
|
+
var response, url, a, error_2;
|
756
|
+
var _a;
|
757
|
+
return __generator(this, function (_b) {
|
758
|
+
switch (_b.label) {
|
759
|
+
case 0:
|
760
|
+
setLoading(true);
|
761
|
+
_b.label = 1;
|
762
|
+
case 1:
|
763
|
+
_b.trys.push([1, 3, , 4]);
|
764
|
+
return [4 /*yield*/, post("national/organisation/download", {
|
765
|
+
filterAnd: dataQuery.filterAnd,
|
766
|
+
filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
|
767
|
+
sort: dataQuery.sort,
|
768
|
+
})];
|
769
|
+
case 2:
|
770
|
+
response = _b.sent();
|
771
|
+
if (response && response.data) {
|
772
|
+
url = response.data.url;
|
773
|
+
a = document.createElement('a');
|
774
|
+
a.href = url;
|
775
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
776
|
+
document.body.appendChild(a);
|
777
|
+
a.click();
|
778
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
779
|
+
window.URL.revokeObjectURL(url);
|
780
|
+
}
|
781
|
+
setLoading(false);
|
782
|
+
return [3 /*break*/, 4];
|
783
|
+
case 3:
|
784
|
+
error_2 = _b.sent();
|
785
|
+
console.log("Error in downloading company data", error_2);
|
786
|
+
setLoading(false);
|
787
|
+
return [3 /*break*/, 4];
|
788
|
+
case 4: return [2 /*return*/];
|
789
|
+
}
|
790
|
+
});
|
791
|
+
}); };
|
748
792
|
React.useEffect(function () {
|
749
793
|
getAllCompany();
|
750
794
|
}, [
|
@@ -832,7 +876,13 @@ var CompanyManagementComponent = function (props) {
|
|
832
876
|
React.createElement(icons.FilterOutlined, { style: {
|
833
877
|
color: "rgba(58, 53, 65, 0.3)",
|
834
878
|
fontSize: "20px",
|
835
|
-
} }))))
|
879
|
+
} })))),
|
880
|
+
React.createElement("div", { className: "download-data-btn" },
|
881
|
+
React.createElement("a", { onClick: downloadCompanyData },
|
882
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
883
|
+
color: "rgba(58, 53, 65, 0.3)",
|
884
|
+
fontSize: "20px",
|
885
|
+
} })))))),
|
836
886
|
React.createElement(antd.Row, null,
|
837
887
|
React.createElement(antd.Col, { span: 24 },
|
838
888
|
React.createElement("div", { className: "userManagement-table-container" },
|
@@ -857,7 +907,7 @@ var CompanyManagementComponent = function (props) {
|
|
857
907
|
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";
|
858
908
|
styleInject(css_248z$q);
|
859
909
|
|
860
|
-
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";
|
910
|
+
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";
|
861
911
|
styleInject(css_248z$p);
|
862
912
|
|
863
913
|
exports.UserManagementColumns = void 0;
|
@@ -956,7 +1006,172 @@ exports.MitigationTypes = void 0;
|
|
956
1006
|
MitigationTypes["SOLAR"] = "Solar";
|
957
1007
|
MitigationTypes["TRANSPORT"] = "Transport";
|
958
1008
|
MitigationTypes["WIND"] = "Wind";
|
1009
|
+
MitigationTypes["CO2_USAGE"] = "CO2Usage";
|
1010
|
+
MitigationTypes["TIDAL"] = "Tidal";
|
959
1011
|
})(exports.MitigationTypes || (exports.MitigationTypes = {}));
|
1012
|
+
exports.MitigationSubTypes = void 0;
|
1013
|
+
(function (MitigationSubTypes) {
|
1014
|
+
MitigationSubTypes["IRRIGATION"] = "Irrigation";
|
1015
|
+
MitigationSubTypes["ENERGY_EFFICIENCY"] = "EnergyEfficiency";
|
1016
|
+
MitigationSubTypes["ALTERNATIVE_FERTILISER"] = "AlternativeFertilisers";
|
1017
|
+
MitigationSubTypes["NO_TILLAGE"] = "NoTillage";
|
1018
|
+
MitigationSubTypes["SOIL_ENRICHMENT_BIOCHAR"] = "SoilEnrichmentBiochar";
|
1019
|
+
MitigationSubTypes["RICE_CROPS"] = "RiceCrops";
|
1020
|
+
MitigationSubTypes["BAGASSE_POWER"] = "BagassePower";
|
1021
|
+
MitigationSubTypes["PALM_OIL_SOLID_WASTE"] = "Palm oil solid waste";
|
1022
|
+
MitigationSubTypes["AGRICULTURAL_RESIDUES_OTHER_KINDS"] = "AgriculturalResiduesOtherKinds";
|
1023
|
+
MitigationSubTypes["AGRICULTURAL_RESIDUES_RICE_HUSK"] = "AgriculturalResiduesRiceHusk";
|
1024
|
+
MitigationSubTypes["AGRICULTURAL_RESIDUES_MUSTARD_CROP"] = "AgriculturalResiduesMustardCrop";
|
1025
|
+
MitigationSubTypes["AGRICULTURAL_RESIDUES_POULTRY_LITTER"] = "AgriculturalResiduesPoultryLitter";
|
1026
|
+
MitigationSubTypes["BLACK_LIQUOR"] = "BlackLiquor";
|
1027
|
+
MitigationSubTypes["FOREST_RESIDUES_SAWMILL_WASTE"] = "ForestResiduesSawmillWaste";
|
1028
|
+
MitigationSubTypes["FOREST_RESIDUES_OTHER"] = "ForestResiduesOther";
|
1029
|
+
MitigationSubTypes["FOREST_BIOMASS"] = "ForestBiomass";
|
1030
|
+
MitigationSubTypes["INDUSTRIAL_WASTE"] = "IndustrialWaste";
|
1031
|
+
MitigationSubTypes["GASIFICATION_OF_BIOMASS"] = "GasificationOfBiomass";
|
1032
|
+
MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS"] = "SwitchFromFossilFuelToPipedBiogas";
|
1033
|
+
MitigationSubTypes["BIOMASS_BRIQUETTES_OR_PELLETS"] = "BiomassBriquettesOrPellets";
|
1034
|
+
MitigationSubTypes["BIODIESEL"] = "Biodiesel";
|
1035
|
+
MitigationSubTypes["BIODIESEL_FROM_WASTE_OIL"] = "BiodieselFromWasteOil";
|
1036
|
+
MitigationSubTypes["ETHANOL"] = "Ethanol";
|
1037
|
+
MitigationSubTypes["CLINKER_REPLACEMENT"] = "ClinkerReplacement";
|
1038
|
+
MitigationSubTypes["COAL_MINE_METHANE"] = "CoalMineMethane";
|
1039
|
+
MitigationSubTypes["COAL_BED_METHANE"] = "CoalBedMethane";
|
1040
|
+
MitigationSubTypes["CMM_VENTILATION_AIR_METHANE"] = "CMMVentilationAirMethane";
|
1041
|
+
MitigationSubTypes["VENTILATION_AIR_METHANE"] = "VentilationAirMethane";
|
1042
|
+
MitigationSubTypes["LIGHTING"] = "Lighting";
|
1043
|
+
MitigationSubTypes["SOLAR_LAMPS"] = "SolarLamps";
|
1044
|
+
MitigationSubTypes["STOVES"] = "Stoves";
|
1045
|
+
MitigationSubTypes["STOVES_SCHOOL_IN_GHANA"] = "StovesSchoolInGhana";
|
1046
|
+
MitigationSubTypes["STOVES_HOUSES_IN_NAMIBIA"] = "StovesHousesInNamibia";
|
1047
|
+
MitigationSubTypes["LIGHTING_INSULATION_SOLAR"] = "LightingInsulationSolar";
|
1048
|
+
MitigationSubTypes["APPLIANCES"] = "Appliances";
|
1049
|
+
MitigationSubTypes["CHEMICALS"] = "Chemicals";
|
1050
|
+
MitigationSubTypes["PETROCHEMICALS"] = "Petrochemicals";
|
1051
|
+
MitigationSubTypes["PAPER"] = "Paper";
|
1052
|
+
MitigationSubTypes["CEMENT"] = "Cement";
|
1053
|
+
MitigationSubTypes["IRON_STEEL"] = "IronSteel";
|
1054
|
+
MitigationSubTypes["MACHINERY"] = "Machinery";
|
1055
|
+
MitigationSubTypes["TEXTILES"] = "Textiles";
|
1056
|
+
MitigationSubTypes["ELECTRONICS"] = "Electronics";
|
1057
|
+
MitigationSubTypes["FOOD"] = "Food";
|
1058
|
+
MitigationSubTypes["BUILDING_MATERIALS"] = "BuildingMaterials";
|
1059
|
+
MitigationSubTypes["GLASS"] = "Glass";
|
1060
|
+
MitigationSubTypes["NON_FERROUS_METALS"] = "NonFerrousMetals";
|
1061
|
+
MitigationSubTypes["COKE_OVEN"] = "CokeOven";
|
1062
|
+
MitigationSubTypes["Mining"] = "Mining";
|
1063
|
+
MitigationSubTypes["CONSTRUCTION"] = "Construction";
|
1064
|
+
MitigationSubTypes["METAL_PRODUCTS"] = "MetalProducts";
|
1065
|
+
MitigationSubTypes["WOOD"] = "Wood";
|
1066
|
+
MitigationSubTypes["RECYCLING"] = "Recycling";
|
1067
|
+
MitigationSubTypes["CHEMICALS_HEAT"] = "ChemicalsHeat";
|
1068
|
+
MitigationSubTypes["PETROCHEMICALS_HEAT"] = "PetrochemicalsHeat";
|
1069
|
+
MitigationSubTypes["CARBON_BLACK_GAS"] = "CarbonBlackGas";
|
1070
|
+
MitigationSubTypes["CEMENT_HEAT"] = "CementHeat";
|
1071
|
+
MitigationSubTypes["IRON_STEEL_HEAT"] = "IronSteelHeat";
|
1072
|
+
MitigationSubTypes["BUILDING_MATERIALS_HEAT"] = "BuildingMaterialsHeat";
|
1073
|
+
MitigationSubTypes["GLASS_HEAT"] = "GlassHeat";
|
1074
|
+
MitigationSubTypes["NON_FERROUS_METALS_HEAT"] = "NonFerrousMetalsHeat";
|
1075
|
+
MitigationSubTypes["COKE_OVEN_GAS"] = "CokeOvenGas";
|
1076
|
+
MitigationSubTypes["HVAC_LIGHTING"] = "HvacLighting";
|
1077
|
+
MitigationSubTypes["AIR_CONDITIONING"] = "AirConditioning";
|
1078
|
+
MitigationSubTypes["EE_NEW_BUILDINGS"] = "EeNewBuildings";
|
1079
|
+
MitigationSubTypes["STREET_LIGHTING"] = "StreetLighting";
|
1080
|
+
MitigationSubTypes["LIGHTING_IN_SERVICE"] = "LightingInService";
|
1081
|
+
MitigationSubTypes["WATER_PUMPING"] = "WaterPumping";
|
1082
|
+
MitigationSubTypes["WATER_PURIFICATION"] = "WaterPurification";
|
1083
|
+
MitigationSubTypes["EE_PUBLIC_STOVES"] = "EePublicStoves";
|
1084
|
+
MitigationSubTypes["EE_PUBLIC_BUILDINGS"] = "EePublicBuildings";
|
1085
|
+
MitigationSubTypes["EE_COMMERCIAL_BUILDINGS"] = "EeCommercialBuildings";
|
1086
|
+
MitigationSubTypes["SINGLE_CYCLE_TO_COMBINED_CYCLE"] = "SingleCycleToCombinedCycle";
|
1087
|
+
MitigationSubTypes["COGENERATION"] = "Cogeneration";
|
1088
|
+
MitigationSubTypes["CO_FIRING_WITH_BIOMASS"] = "CoFiringWithBiomass";
|
1089
|
+
MitigationSubTypes["HIGHER_EFFICIENCY_COAL_POWER"] = "HigherEfficiencyCoalPower";
|
1090
|
+
MitigationSubTypes["HIGHER_EFFICIENCY_OIL_POWER"] = "HigherEfficiencyOilPower";
|
1091
|
+
MitigationSubTypes["HIGHER_EFFICIENCY_USING_WASTE_HEAT"] = "HigherEfficiencyUsingWasteHeat";
|
1092
|
+
MitigationSubTypes["POWER_PLANT_REHABILITATION"] = "PowerPlantRehabilitation";
|
1093
|
+
MitigationSubTypes["HIGHER_EFFICIENCY_STEAM_BOILER"] = "HigherEfficiencySteamBoiler";
|
1094
|
+
MitigationSubTypes["DISTRICT_HEATING"] = "DistrictHeating";
|
1095
|
+
MitigationSubTypes["REPLACEMENT_OF_DISTRICT_HEATING_BOILERS"] = "ReplacementOfDistrictHeatingBoilers";
|
1096
|
+
MitigationSubTypes["CONNECTION_OF_ISOLATED_GRID"] = "ConnectionOfIsolatedGrid";
|
1097
|
+
MitigationSubTypes["DISTRICT_COOLING"] = "DistrictCooling";
|
1098
|
+
MitigationSubTypes["EFFICIENT_ELECTRICITY_DISTRIBUTION"] = "EfficientElectricityDistribution";
|
1099
|
+
MitigationSubTypes["AFFORESTATION"] = "Afforestation";
|
1100
|
+
MitigationSubTypes["MANGROVES"] = "Mangroves";
|
1101
|
+
MitigationSubTypes["AGROFORESTRY"] = "Agroforestry";
|
1102
|
+
MitigationSubTypes["REFORESTATION"] = "Reforestation";
|
1103
|
+
MitigationSubTypes["COAL_TO_NATURAL_GAS"] = "CoalToNaturalGas";
|
1104
|
+
MitigationSubTypes["COAL_TO_OIL"] = "CoalToOil";
|
1105
|
+
MitigationSubTypes["LIGNITE_TO_NATURAL_GAS"] = "LigniteToNaturalGas";
|
1106
|
+
MitigationSubTypes["NEW_NATURAL_GAS_PLANT"] = "NewNaturalGasPlant";
|
1107
|
+
MitigationSubTypes["NEW_NATURAL_GAS_PLANT_USING_LNG"] = "NewNaturalGasPlantUsingLng";
|
1108
|
+
MitigationSubTypes["OIL_TO_ELECTRICITY"] = "OilToElectricity";
|
1109
|
+
MitigationSubTypes["OIL_TO_LPG"] = "OilToLpg";
|
1110
|
+
MitigationSubTypes["OIL_TO_NATURAL_GAS"] = "OilToNaturalGas";
|
1111
|
+
MitigationSubTypes["OIL_FIELD_FLARING_REDUCTION"] = "OilFieldFlaringReduction";
|
1112
|
+
MitigationSubTypes["OIL_AND_GAS_PROCESSING_FLARING"] = "OilAndGasProcessingFlaring";
|
1113
|
+
MitigationSubTypes["NATURAL_GAS_PIPELINES"] = "NaturalGasPipelines";
|
1114
|
+
MitigationSubTypes["NON_HYDROCARBON_MINING"] = "NonHydrocarbonMining";
|
1115
|
+
MitigationSubTypes["SPONTANEOUSLY_IGNITION_OF_COAL_PILES"] = "SpontaneouslyIgnitionOfCoalPiles";
|
1116
|
+
MitigationSubTypes["CHARCOAL_PRODUCTION"] = "CharcoalProduction";
|
1117
|
+
MitigationSubTypes["GEOTHERMAL_ELECTRICITY"] = "GeothermalElectricity";
|
1118
|
+
MitigationSubTypes["GEOTHERMAL_HEATING"] = "GeothermalHeating";
|
1119
|
+
MitigationSubTypes["HFC23"] = "Hfc23";
|
1120
|
+
MitigationSubTypes["HFC134A"] = "Hfc134A";
|
1121
|
+
MitigationSubTypes["PFCS"] = "Pfcs";
|
1122
|
+
MitigationSubTypes["SF6"] = "Sf6";
|
1123
|
+
MitigationSubTypes["RUN_OF_RIVER"] = "RunOfRiver";
|
1124
|
+
MitigationSubTypes["EXISTING_DAM"] = "ExistingDam";
|
1125
|
+
MitigationSubTypes["HIGHER_EFFICIENCY_HYDRO_POWER"] = "HigherEfficiencyHydroPower";
|
1126
|
+
MitigationSubTypes["NEW_DAM"] = "NewDam";
|
1127
|
+
MitigationSubTypes["LANDFILL_FLARING"] = "LandfillFlaring";
|
1128
|
+
MitigationSubTypes["LANDFILL_POWER"] = "LandfillPower";
|
1129
|
+
MitigationSubTypes["COMBUSTION_OF_MSW"] = "CombustionOfMsw";
|
1130
|
+
MitigationSubTypes["GASIFICATION_OF_MSW"] = "GasificationOfMsw";
|
1131
|
+
MitigationSubTypes["BIOGAS_FROM_MSW"] = "BiogasFromMsw";
|
1132
|
+
MitigationSubTypes["LANDFILL_AERATION"] = "LandfillAeration";
|
1133
|
+
MitigationSubTypes["INTEGRATED_SOLID_WASTE_MANAGEMENT"] = "IntegratedSolidWasteManagement";
|
1134
|
+
MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS"] = "SwitchFromFossilFuelToPipedLandfillGas";
|
1135
|
+
MitigationSubTypes["LANDFILL_COMPOSTING"] = "LandfillComposting";
|
1136
|
+
MitigationSubTypes["MANURE"] = "Manure";
|
1137
|
+
MitigationSubTypes["DOMESTIC_MANURE"] = "DomesticManure";
|
1138
|
+
MitigationSubTypes["WASTE_WATER"] = "WasteWater";
|
1139
|
+
MitigationSubTypes["INDUSTRIAL_SOLID_WASTE"] = "IndustrialSolidWaste";
|
1140
|
+
MitigationSubTypes["PALM_OIL_WASTE"] = "PalmOilWaste";
|
1141
|
+
MitigationSubTypes["AEROBIC_TREATMENT_OF_WASTE_WATER"] = "AerobicTreatmentOfWasteWater";
|
1142
|
+
MitigationSubTypes["COMPOSTING"] = "Composting";
|
1143
|
+
MitigationSubTypes["ADIPIC_ACID"] = "AdipicAcid";
|
1144
|
+
MitigationSubTypes["NITRIC_ACID"] = "NitricAcid";
|
1145
|
+
MitigationSubTypes["CAPROLACTAM"] = "Caprolactam";
|
1146
|
+
MitigationSubTypes["SOLAR_PHOTOVOLTAICS_PV"] = "SolarPhotovoltaicsPV";
|
1147
|
+
MitigationSubTypes["SOLAR_WATER_PUMPING_OFF_GRID"] = "SolarWaterPumpingOffGrid";
|
1148
|
+
MitigationSubTypes["SOLAR_WATER_PUMPING_ON_GRID"] = "SolarWaterPumpingOnGrid";
|
1149
|
+
MitigationSubTypes["SOLAR_PV_WATER_DISINFECTION"] = "SolarPVWaterDisinfection";
|
1150
|
+
MitigationSubTypes["SOLAR_THERMAL_POWER"] = "SolarThermalPower";
|
1151
|
+
MitigationSubTypes["SOLAR_THERMAL_HEAT"] = "SolarThermalHeat";
|
1152
|
+
MitigationSubTypes["SOLAR_WATER_HEATING"] = "SolarWaterHeating";
|
1153
|
+
MitigationSubTypes["SOLAR_COOKING"] = "SolarCooking";
|
1154
|
+
MitigationSubTypes["BUS_RAPID_TRANSIT"] = "BusRapidTransit";
|
1155
|
+
MitigationSubTypes["BUS_RAPID_TRANSIT_GREEN_HYDROGEN"] = "BusRapidTransitGreenHydrogen";
|
1156
|
+
MitigationSubTypes["MOTORBIKES"] = "Motorbikes";
|
1157
|
+
MitigationSubTypes["MODE_SHIFT_ROAD_TO_RAIL"] = "ModeShiftRoadToRail";
|
1158
|
+
MitigationSubTypes["MORE_EFFICIENT_TRAIN_SYSTEM"] = "MoreEfficientTrainSystem";
|
1159
|
+
MitigationSubTypes["MORE_EFFICIENT_VEHICLES"] = "MoreEfficientVehicles";
|
1160
|
+
MitigationSubTypes["RAIL_REGENERATIVE_BRAKING"] = "RailRegenerativeBraking";
|
1161
|
+
MitigationSubTypes["RAIL_GREEN_HYDROGEN"] = "RailGreenHydrogen";
|
1162
|
+
MitigationSubTypes["RAIL_EFFICIENT_OPERATION"] = "RailEfficientOperation";
|
1163
|
+
MitigationSubTypes["METRO_EFFICIENT_OPERATION"] = "MetroEfficientOperation";
|
1164
|
+
MitigationSubTypes["CARS_GREEN_HYDROGEN"] = "CarsGreenHydrogen";
|
1165
|
+
MitigationSubTypes["CARS_EFFICIENT_OPERATION"] = "CarsEfficientOperation";
|
1166
|
+
MitigationSubTypes["SCRAPPING_OLD_VEHICLES"] = "ScrappingOldVehicles";
|
1167
|
+
MitigationSubTypes["BIODIESEL_FOR_TRANSPORT"] = "BiodieselForTransport";
|
1168
|
+
MitigationSubTypes["CABLE_CARS"] = "CableCars";
|
1169
|
+
MitigationSubTypes["WIND"] = "Wind";
|
1170
|
+
MitigationSubTypes["OFFSHORE_WIND"] = "OffshoreWind";
|
1171
|
+
MitigationSubTypes["CO2_RECYCLING"] = "CO2Recycling";
|
1172
|
+
MitigationSubTypes["CO2_REPLACEMENT"] = "CO2Replacement";
|
1173
|
+
MitigationSubTypes["TIDAL"] = "Tidal";
|
1174
|
+
})(exports.MitigationSubTypes || (exports.MitigationSubTypes = {}));
|
960
1175
|
var mitigationTypeList = [
|
961
1176
|
{ value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
|
962
1177
|
{ value: exports.MitigationTypes.SOLAR.valueOf(), label: "Solar" },
|
@@ -1053,13 +1268,791 @@ var sectorMitigationTypesListMapped = {
|
|
1053
1268
|
},
|
1054
1269
|
],
|
1055
1270
|
Agriculture: [
|
1056
|
-
{ value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" }
|
1271
|
+
{ value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" }
|
1057
1272
|
],
|
1058
1273
|
Other: [
|
1059
1274
|
{ value: exports.MitigationTypes.MARINE.valueOf(), label: "Marine" },
|
1060
1275
|
{ value: exports.MitigationTypes.N20.valueOf(), label: "N2O" },
|
1061
1276
|
],
|
1062
1277
|
};
|
1278
|
+
var mitigationSubTypeList = [
|
1279
|
+
{ label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
|
1280
|
+
{ label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
|
1281
|
+
{ label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
|
1282
|
+
{ label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
|
1283
|
+
{ label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
|
1284
|
+
{ label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
|
1285
|
+
{ label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
|
1286
|
+
{ label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
|
1287
|
+
{ label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
|
1288
|
+
{ label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
|
1289
|
+
{ label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
|
1290
|
+
{ label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
|
1291
|
+
{ label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
|
1292
|
+
{ label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
|
1293
|
+
{ label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
|
1294
|
+
{ label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
|
1295
|
+
{ label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
|
1296
|
+
{ label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
|
1297
|
+
{ label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
|
1298
|
+
{ label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
|
1299
|
+
{ label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
|
1300
|
+
{ label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
|
1301
|
+
{ label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
|
1302
|
+
{ label: "Cement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
|
1303
|
+
{ label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
|
1304
|
+
{ label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
|
1305
|
+
{ label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
|
1306
|
+
{ label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
|
1307
|
+
{ label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
|
1308
|
+
{ label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
|
1309
|
+
{ label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
|
1310
|
+
{ label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
|
1311
|
+
{ label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
|
1312
|
+
{ label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
|
1313
|
+
{ label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
|
1314
|
+
{ label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
|
1315
|
+
{ label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
|
1316
|
+
{ label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
|
1317
|
+
{ label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
|
1318
|
+
{ label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
|
1319
|
+
{ label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
|
1320
|
+
{ label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
|
1321
|
+
{ label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
|
1322
|
+
{ label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
|
1323
|
+
{ label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
|
1324
|
+
{ label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
|
1325
|
+
{ label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
|
1326
|
+
{ label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
|
1327
|
+
{ label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
|
1328
|
+
{ label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
|
1329
|
+
{ label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
|
1330
|
+
{ label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
|
1331
|
+
{ label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
|
1332
|
+
{ label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
|
1333
|
+
{ label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
|
1334
|
+
{ label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
|
1335
|
+
{ label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
|
1336
|
+
{ label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
|
1337
|
+
{ label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
|
1338
|
+
{ label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
|
1339
|
+
{ label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
|
1340
|
+
{ label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
|
1341
|
+
{ label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
|
1342
|
+
{ label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
|
1343
|
+
{ label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
|
1344
|
+
{ label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
|
1345
|
+
{ label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
|
1346
|
+
{ label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
|
1347
|
+
{ label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
|
1348
|
+
{ label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
|
1349
|
+
{ label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
|
1350
|
+
{ label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
|
1351
|
+
{ label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
|
1352
|
+
{ label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
|
1353
|
+
{ label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
|
1354
|
+
{ label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
|
1355
|
+
{ label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
|
1356
|
+
{ label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
|
1357
|
+
{ label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
|
1358
|
+
{ label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
|
1359
|
+
{ label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
|
1360
|
+
{ label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
|
1361
|
+
{ label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
|
1362
|
+
{ label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
|
1363
|
+
{ label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
|
1364
|
+
{ label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
|
1365
|
+
{ label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
|
1366
|
+
{ label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
|
1367
|
+
{ label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
|
1368
|
+
{ label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
|
1369
|
+
{ label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
|
1370
|
+
{ label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
|
1371
|
+
{ label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
|
1372
|
+
{ label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
|
1373
|
+
{ label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
|
1374
|
+
{ label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
|
1375
|
+
{ label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
|
1376
|
+
{ label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
|
1377
|
+
{ label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
|
1378
|
+
{ label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
|
1379
|
+
{ label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
|
1380
|
+
{ label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
|
1381
|
+
{ label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
|
1382
|
+
{ label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
|
1383
|
+
{ label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
|
1384
|
+
{ label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
|
1385
|
+
{ label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
|
1386
|
+
{ label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
|
1387
|
+
{ label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
|
1388
|
+
{ label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
|
1389
|
+
{ label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
|
1390
|
+
{ label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
|
1391
|
+
{ label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
|
1392
|
+
{ label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
|
1393
|
+
{ label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
|
1394
|
+
{ label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
|
1395
|
+
{ label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
|
1396
|
+
{ label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
|
1397
|
+
{ label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
|
1398
|
+
{ label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
|
1399
|
+
{ label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
|
1400
|
+
{ label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
|
1401
|
+
{ label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
|
1402
|
+
{ label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
|
1403
|
+
{ label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
|
1404
|
+
{ label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
|
1405
|
+
{ label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
|
1406
|
+
{ label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
|
1407
|
+
{ label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
|
1408
|
+
{ label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
|
1409
|
+
{ label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
|
1410
|
+
{ label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
|
1411
|
+
{ label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
|
1412
|
+
{ label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
|
1413
|
+
{ label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
|
1414
|
+
{ label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
|
1415
|
+
{ label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
|
1416
|
+
{ label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
|
1417
|
+
{ label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
|
1418
|
+
{ label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
|
1419
|
+
{ label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
|
1420
|
+
{ label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
|
1421
|
+
{ label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
|
1422
|
+
{ label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
|
1423
|
+
{ label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
|
1424
|
+
{ label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
|
1425
|
+
{ label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
|
1426
|
+
{ label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
|
1427
|
+
{ label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
|
1428
|
+
{ label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
|
1429
|
+
{ label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
|
1430
|
+
{ label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
|
1431
|
+
{ label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
|
1432
|
+
{ label: "Biodiesel for transport", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
|
1433
|
+
{ label: "Cable cars", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
|
1434
|
+
{ label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
|
1435
|
+
{ label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
|
1436
|
+
{ label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
|
1437
|
+
{ label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
|
1438
|
+
{ label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
|
1439
|
+
];
|
1440
|
+
var mitigationSubTypesListMapped = {
|
1441
|
+
Agriculture: [
|
1442
|
+
{ label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
|
1443
|
+
{ label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
|
1444
|
+
{ label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
|
1445
|
+
{ label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
|
1446
|
+
{ label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
|
1447
|
+
{ label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
|
1448
|
+
],
|
1449
|
+
BiomassEnergy: [
|
1450
|
+
{ label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
|
1451
|
+
{ label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
|
1452
|
+
{ label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
|
1453
|
+
{ label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
|
1454
|
+
{ label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
|
1455
|
+
{ label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
|
1456
|
+
{ label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
|
1457
|
+
{ label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
|
1458
|
+
{ label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
|
1459
|
+
{ label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
|
1460
|
+
{ label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
|
1461
|
+
{ label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
|
1462
|
+
{ label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
|
1463
|
+
{ label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
|
1464
|
+
{ label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
|
1465
|
+
{ label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
|
1466
|
+
{ label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
|
1467
|
+
],
|
1468
|
+
Cement: [
|
1469
|
+
{ label: "Cement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
|
1470
|
+
],
|
1471
|
+
"Coal/Mine": [
|
1472
|
+
{ label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
|
1473
|
+
{ label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
|
1474
|
+
{ label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
|
1475
|
+
{ label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
|
1476
|
+
],
|
1477
|
+
EEHouseholds: [
|
1478
|
+
{ label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
|
1479
|
+
{ label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
|
1480
|
+
{ label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
|
1481
|
+
{ label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
|
1482
|
+
{ label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
|
1483
|
+
{ label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
|
1484
|
+
{ label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
|
1485
|
+
],
|
1486
|
+
EEIndustry: [
|
1487
|
+
{ label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
|
1488
|
+
{ label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
|
1489
|
+
{ label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
|
1490
|
+
{ label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
|
1491
|
+
{ label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
|
1492
|
+
{ label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
|
1493
|
+
{ label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
|
1494
|
+
{ label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
|
1495
|
+
{ label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
|
1496
|
+
{ label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
|
1497
|
+
{ label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
|
1498
|
+
{ label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
|
1499
|
+
{ label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
|
1500
|
+
{ label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
|
1501
|
+
{ label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
|
1502
|
+
{ label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
|
1503
|
+
{ label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
|
1504
|
+
{ label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
|
1505
|
+
],
|
1506
|
+
EEOwnGeneration: [
|
1507
|
+
{ label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
|
1508
|
+
{ label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
|
1509
|
+
{ label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
|
1510
|
+
{ label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
|
1511
|
+
{ label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
|
1512
|
+
{ label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
|
1513
|
+
{ label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
|
1514
|
+
{ label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
|
1515
|
+
{ label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
|
1516
|
+
],
|
1517
|
+
EEService: [
|
1518
|
+
{ label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
|
1519
|
+
{ label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
|
1520
|
+
{ label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
|
1521
|
+
{ label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
|
1522
|
+
{ label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
|
1523
|
+
{ label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
|
1524
|
+
{ label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
|
1525
|
+
{ label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
|
1526
|
+
{ label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
|
1527
|
+
{ label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
|
1528
|
+
],
|
1529
|
+
EESupplySide: [
|
1530
|
+
{ label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
|
1531
|
+
{ label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
|
1532
|
+
{ label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
|
1533
|
+
{ label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
|
1534
|
+
{ label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
|
1535
|
+
{ label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
|
1536
|
+
{ label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
|
1537
|
+
{ label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
|
1538
|
+
],
|
1539
|
+
EnergyDistribution: [
|
1540
|
+
{ label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
|
1541
|
+
{ label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
|
1542
|
+
{ label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
|
1543
|
+
{ label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
|
1544
|
+
{ label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
|
1545
|
+
],
|
1546
|
+
Forestry: [
|
1547
|
+
{ label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
|
1548
|
+
{ label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
|
1549
|
+
{ label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
|
1550
|
+
{ label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
|
1551
|
+
],
|
1552
|
+
FossilFuel: [
|
1553
|
+
{ label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
|
1554
|
+
{ label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
|
1555
|
+
{ label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
|
1556
|
+
{ label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
|
1557
|
+
{ label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
|
1558
|
+
{ label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
|
1559
|
+
{ label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
|
1560
|
+
{ label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
|
1561
|
+
],
|
1562
|
+
Fugitive: [
|
1563
|
+
{ label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
|
1564
|
+
{ label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
|
1565
|
+
{ label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
|
1566
|
+
{ label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
|
1567
|
+
{ label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
|
1568
|
+
{ label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
|
1569
|
+
],
|
1570
|
+
Geothermal: [
|
1571
|
+
{ label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
|
1572
|
+
{ label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
|
1573
|
+
],
|
1574
|
+
HFC_PFCs_SF6: [
|
1575
|
+
{ label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
|
1576
|
+
{ label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
|
1577
|
+
{ label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
|
1578
|
+
{ label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
|
1579
|
+
],
|
1580
|
+
Hydro: [
|
1581
|
+
{ label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
|
1582
|
+
{ label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
|
1583
|
+
{ label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
|
1584
|
+
{ label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
|
1585
|
+
],
|
1586
|
+
Landfills: [
|
1587
|
+
{ label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
|
1588
|
+
{ label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
|
1589
|
+
{ label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
|
1590
|
+
{ label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
|
1591
|
+
{ label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
|
1592
|
+
{ label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
|
1593
|
+
{ label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
|
1594
|
+
{ label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
|
1595
|
+
{ label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
|
1596
|
+
],
|
1597
|
+
MethaneAvoidance: [
|
1598
|
+
{ label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
|
1599
|
+
{ label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
|
1600
|
+
{ label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
|
1601
|
+
{ label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
|
1602
|
+
{ label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
|
1603
|
+
{ label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
|
1604
|
+
{ label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
|
1605
|
+
],
|
1606
|
+
N20: [
|
1607
|
+
{ label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
|
1608
|
+
{ label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
|
1609
|
+
{ label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
|
1610
|
+
],
|
1611
|
+
Solar: [
|
1612
|
+
{ label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
|
1613
|
+
{ label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
|
1614
|
+
{ label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
|
1615
|
+
{ label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
|
1616
|
+
{ label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
|
1617
|
+
{ label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
|
1618
|
+
{ label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
|
1619
|
+
{ label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
|
1620
|
+
],
|
1621
|
+
Transport: [
|
1622
|
+
{ label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
|
1623
|
+
{ label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
|
1624
|
+
{ label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
|
1625
|
+
{ label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
|
1626
|
+
{ label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
|
1627
|
+
{ label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
|
1628
|
+
{ label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
|
1629
|
+
{ label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
|
1630
|
+
{ label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
|
1631
|
+
{ label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
|
1632
|
+
{ label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
|
1633
|
+
{ label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
|
1634
|
+
{ label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
|
1635
|
+
{ label: "Biodiesel for transport", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
|
1636
|
+
{ label: "Cable cars", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
|
1637
|
+
],
|
1638
|
+
Wind: [
|
1639
|
+
{ label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
|
1640
|
+
{ label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
|
1641
|
+
],
|
1642
|
+
CO2Usage: [
|
1643
|
+
{ label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
|
1644
|
+
{ label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
|
1645
|
+
],
|
1646
|
+
Tidal: [
|
1647
|
+
{ label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
|
1648
|
+
],
|
1649
|
+
};
|
1650
|
+
var methodologyOptions = [
|
1651
|
+
"ACR - Truck Stop Electrification",
|
1652
|
+
"ACR - Advanced Refrigeration Systems",
|
1653
|
+
"ACR - Certified Reclaimed HFC Refrigerants, Propellants, and Fire Suppressants",
|
1654
|
+
"ACR - Destruction of Ozone Depleting Substances and High-GWP Foam",
|
1655
|
+
"ACR - Destruction of Ozone Depleting Substances from International Sources",
|
1656
|
+
"ACR - Transition to Advanced Formulation Blowing Agents in Foam Manufacturing and Use",
|
1657
|
+
"ACR - Afforestation and Reforestation of Degraded Lands",
|
1658
|
+
"ACR - Avoided Conversion of Grasslands and Shrublands to Crop Production",
|
1659
|
+
"ACR - Improved Forest Management (IFM) on Canadian Forestlands",
|
1660
|
+
"ACR - Improved Forest Management (IFM) on Non-Federal U.S. Forestlands",
|
1661
|
+
"ACR - Improved Forest Management (IFM) on Small Non-Industrial Private Forestlands",
|
1662
|
+
"ACR - Restoration of California Deltaic and Coastal Wetlands",
|
1663
|
+
"ACR - Restoration of Pocosin Wetlands",
|
1664
|
+
"ACR - Carbon Capture and Storage Projects",
|
1665
|
+
"ACR - Landfill Gas Destruction and Beneficial Use Projects",
|
1666
|
+
"CAR - Adipic Acid Production",
|
1667
|
+
"CAR - Biochar",
|
1668
|
+
"CAR - Canada Grassland",
|
1669
|
+
"CAR - Coal Mine Methane",
|
1670
|
+
"CAR - Forest",
|
1671
|
+
"CAR - Grassland",
|
1672
|
+
"CAR - Mexico Boiler Efficiency",
|
1673
|
+
"CAR - Mexico Forest",
|
1674
|
+
"CAR - Mexico Halocarbon",
|
1675
|
+
"CAR - Mexico Landfill",
|
1676
|
+
"CAR - Mexico Livestock",
|
1677
|
+
"CAR - Mexico Ozone Depleting Substances",
|
1678
|
+
"CAR - Nitric Acid Production",
|
1679
|
+
"CAR - Nitrogen Management",
|
1680
|
+
"CAR - Organic Waste Composting",
|
1681
|
+
"CAR - Organic Waste Digestion",
|
1682
|
+
"CAR - Ozone Depleting Substances",
|
1683
|
+
"CAR - Rice Cultivation",
|
1684
|
+
"CAR - Soil Enrichment",
|
1685
|
+
"CAR - Urban Forest Management",
|
1686
|
+
"CAR - Urban Tree Planting",
|
1687
|
+
"CAR - U.S. Landfill",
|
1688
|
+
"CAR - U.S. Livestock",
|
1689
|
+
"CDM - AM0001",
|
1690
|
+
"CDM - AM0007",
|
1691
|
+
"CDM - AM0009",
|
1692
|
+
"CDM - AM0017",
|
1693
|
+
"CDM - AM0018",
|
1694
|
+
"CDM - AM0019",
|
1695
|
+
"CDM - AM0020",
|
1696
|
+
"CDM - AM0021",
|
1697
|
+
"CDM - AM0023",
|
1698
|
+
"CDM - AM0026",
|
1699
|
+
"CDM - AM0027",
|
1700
|
+
"CDM - AM0028",
|
1701
|
+
"CDM - AM0030",
|
1702
|
+
"CDM - AM0031",
|
1703
|
+
"CDM - AM0035",
|
1704
|
+
"CDM - AM0036",
|
1705
|
+
"CDM - AM0037",
|
1706
|
+
"CDM - AM0038",
|
1707
|
+
"CDM - AM0043",
|
1708
|
+
"CDM - AM0044",
|
1709
|
+
"CDM - AM0045",
|
1710
|
+
"CDM - AM0046",
|
1711
|
+
"CDM - AM0048",
|
1712
|
+
"CDM - AM0049",
|
1713
|
+
"CDM - AM0050",
|
1714
|
+
"CDM - AM0052",
|
1715
|
+
"CDM - AM0053",
|
1716
|
+
"CDM - AM0055",
|
1717
|
+
"CDM - AM0056",
|
1718
|
+
"CDM - AM0057",
|
1719
|
+
"CDM - AM0058",
|
1720
|
+
"CDM - AM0059",
|
1721
|
+
"CDM - AM0060",
|
1722
|
+
"CDM - AM0061",
|
1723
|
+
"CDM - AM0062",
|
1724
|
+
"CDM - AM0063",
|
1725
|
+
"CDM - AM0064",
|
1726
|
+
"CDM - AM0065",
|
1727
|
+
"CDM - AM0066",
|
1728
|
+
"CDM - AM0067",
|
1729
|
+
"CDM - AM0068",
|
1730
|
+
"CDM - AM0069",
|
1731
|
+
"CDM - AM0070",
|
1732
|
+
"CDM - AM0071",
|
1733
|
+
"CDM - AM0072",
|
1734
|
+
"CDM - AM0073",
|
1735
|
+
"CDM - AM0074",
|
1736
|
+
"CDM - AM0075",
|
1737
|
+
"CDM - AM0076",
|
1738
|
+
"CDM - AM0077",
|
1739
|
+
"CDM - AM0078",
|
1740
|
+
"CDM - AM0079",
|
1741
|
+
"CDM - AM0080",
|
1742
|
+
"CDM - AM0081",
|
1743
|
+
"CDM - AM0082",
|
1744
|
+
"CDM - AM0083",
|
1745
|
+
"CDM - AM0084",
|
1746
|
+
"CDM - AM0086",
|
1747
|
+
"CDM - AM0088",
|
1748
|
+
"CDM - AM0089",
|
1749
|
+
"CDM - AM0090",
|
1750
|
+
"CDM - AM0091",
|
1751
|
+
"CDM - AM0092",
|
1752
|
+
"CDM - AM0093",
|
1753
|
+
"CDM - AM0094",
|
1754
|
+
"CDM - AM0095",
|
1755
|
+
"CDM - AM0096",
|
1756
|
+
"CDM - AM0097",
|
1757
|
+
"CDM - AM0098",
|
1758
|
+
"CDM - AM0099",
|
1759
|
+
"CDM - AM0100",
|
1760
|
+
"CDM - AM0101",
|
1761
|
+
"CDM - AM0103",
|
1762
|
+
"CDM - AM0104",
|
1763
|
+
"CDM - AM0105",
|
1764
|
+
"CDM - AM0106",
|
1765
|
+
"CDM - AM0107",
|
1766
|
+
"CDM - AM0108",
|
1767
|
+
"CDM - AM0109",
|
1768
|
+
"CDM - AM0110",
|
1769
|
+
"CDM - AM0111",
|
1770
|
+
"CDM - AM0112",
|
1771
|
+
"CDM - AM0113",
|
1772
|
+
"CDM - AM0114",
|
1773
|
+
"CDM - AM0115",
|
1774
|
+
"CDM - AM0116",
|
1775
|
+
"CDM - AM0117",
|
1776
|
+
"CDM - AM0118",
|
1777
|
+
"CDM - AM0119",
|
1778
|
+
"CDM - AM0120",
|
1779
|
+
"CDM - AM0121",
|
1780
|
+
"CDM - AM0122",
|
1781
|
+
"CDM - AMS-I.A.",
|
1782
|
+
"CDM - AMS-I.B.",
|
1783
|
+
"CDM - AMS-I.C.",
|
1784
|
+
"CDM - AMS-I.D.",
|
1785
|
+
"CDM - AMS-I.E.",
|
1786
|
+
"CDM - AMS-I.F.",
|
1787
|
+
"CDM - AMS-I.G.",
|
1788
|
+
"CDM - AMS-I.H.",
|
1789
|
+
"CDM - AMS-I.I.",
|
1790
|
+
"CDM - AMS-I.J.",
|
1791
|
+
"CDM - AMS-I.K.",
|
1792
|
+
"CDM - AMS-I.L.",
|
1793
|
+
"CDM - AMS-I.M.",
|
1794
|
+
"CDM - AMS-II.A.",
|
1795
|
+
"CDM - AMS-II.B.",
|
1796
|
+
"CDM - AMS-II.C.",
|
1797
|
+
"CDM - AMS-II.D.",
|
1798
|
+
"CDM - AMS-II.E.",
|
1799
|
+
"CDM - AMS-II.F.",
|
1800
|
+
"CDM - AMS-II.G.",
|
1801
|
+
"CDM - AMS-II.H.",
|
1802
|
+
"CDM - AMS-II.I.",
|
1803
|
+
"CDM - AMS-II.J.",
|
1804
|
+
"CDM - AMS-II.K.",
|
1805
|
+
"CDM - AMS-II.L.",
|
1806
|
+
"CDM - AMS-II.M.",
|
1807
|
+
"CDM - AMS-II.N.",
|
1808
|
+
"CDM - AMS-II.O.",
|
1809
|
+
"CDM - AMS-II.P.",
|
1810
|
+
"CDM - AMS-II.Q.",
|
1811
|
+
"CDM - AMS-II.R.",
|
1812
|
+
"CDM - AMS-II.S.",
|
1813
|
+
"CDM - AMS-II.T.",
|
1814
|
+
"CDM - AMS-III.A.",
|
1815
|
+
"CDM - AMS-III.B.",
|
1816
|
+
"CDM - AMS-III.C.",
|
1817
|
+
"CDM - AMS-III.D.",
|
1818
|
+
"CDM - AMS-III.E.",
|
1819
|
+
"CDM - AMS-III.F.",
|
1820
|
+
"CDM - AMS-III.G.",
|
1821
|
+
"CDM - AMS-III.H.",
|
1822
|
+
"CDM - AMS-III.I.",
|
1823
|
+
"CDM - AMS-III.J.",
|
1824
|
+
"CDM - AMS-III.K.",
|
1825
|
+
"CDM - AMS-III.L.",
|
1826
|
+
"CDM - AMS-III.M.",
|
1827
|
+
"CDM - AMS-III.N.",
|
1828
|
+
"CDM - AMS-III.O.",
|
1829
|
+
"CDM - AMS-III.P.",
|
1830
|
+
"CDM - AMS-III.Q.",
|
1831
|
+
"CDM - AMS-III.R.",
|
1832
|
+
"CDM - AMS-III.S.",
|
1833
|
+
"CDM - AMS-III.T.",
|
1834
|
+
"CDM - AMS-III.U.",
|
1835
|
+
"CDM - AMS-III.V.",
|
1836
|
+
"CDM - AMS-III.W.",
|
1837
|
+
"CDM - AMS-III.X.",
|
1838
|
+
"CDM - AMS-III.Y.",
|
1839
|
+
"CDM - AMS-III.Z.",
|
1840
|
+
"CDM - AMS-III.AA.",
|
1841
|
+
"CDM - AMS-III.AB.",
|
1842
|
+
"CDM - AMS-III.AC.",
|
1843
|
+
"CDM - AMS-III.AD.",
|
1844
|
+
"CDM - AMS-III.AE.",
|
1845
|
+
"CDM - AMS-III.AF.",
|
1846
|
+
"CDM - AMS-III.AG.",
|
1847
|
+
"CDM - AMS-III.AH.",
|
1848
|
+
"CDM - AMS-III.AI.",
|
1849
|
+
"CDM - AMS-III.AJ.",
|
1850
|
+
"CDM - AMS-III.AK.",
|
1851
|
+
"CDM - AMS-III.AL.",
|
1852
|
+
"CDM - AMS-III.AM.",
|
1853
|
+
"CDM - AMS-III.AN.",
|
1854
|
+
"CDM - AMS-III.AO.",
|
1855
|
+
"CDM - AMS-III.AP.",
|
1856
|
+
"CDM - AMS-III.AQ.",
|
1857
|
+
"CDM - AMS-III.AR.",
|
1858
|
+
"CDM - AMS-III.AS.",
|
1859
|
+
"CDM - AMS-III.AT.",
|
1860
|
+
"CDM - AMS-III.AU.",
|
1861
|
+
"CDM - AMS-III.AV.",
|
1862
|
+
"CDM - AMS-III.AW.",
|
1863
|
+
"CDM - AMS-III.AX.",
|
1864
|
+
"CDM - AMS-III.AY.",
|
1865
|
+
"CDM - AMS-III.BA.",
|
1866
|
+
"CDM - AMS-III.BB.",
|
1867
|
+
"CDM - AMS-III.BC.",
|
1868
|
+
"CDM - AMS-III.BD.",
|
1869
|
+
"CDM - AMS-III.BE.",
|
1870
|
+
"CDM - AMS-III.BF.",
|
1871
|
+
"CDM - AMS-III.BG.",
|
1872
|
+
"CDM - AMS-III.BH.",
|
1873
|
+
"CDM - AMS-III.BI.",
|
1874
|
+
"CDM - AMS-III.BJ.",
|
1875
|
+
"CDM - AMS-III.BK.",
|
1876
|
+
"CDM - AMS-III.BL.",
|
1877
|
+
"CDM - AMS-III.BM.",
|
1878
|
+
"CDM - AMS-III.BN.",
|
1879
|
+
"CDM - AMS-III.BO.",
|
1880
|
+
"CDM - AMS-III.BP.",
|
1881
|
+
"CDM - AR-AM0014",
|
1882
|
+
"CDM - AR-AMS0003",
|
1883
|
+
"CDM - AR-AMS0007",
|
1884
|
+
"GS - METHODOLOGY FOR METERED & MEASURED ENERGY COOKING DEVICES",
|
1885
|
+
"GS - METHODOLOGY FOR RETROFIT ENERGY EFFICIENCY MEASURES IN SHIPPING ",
|
1886
|
+
"GS - SOIL ORGANIC CARBON ACTIVITY MODULE FOR APPLICATION OF ORGANIC SOIL IMPROVERS FROM PULP AND PAPER MILL SLUDGES",
|
1887
|
+
"GS - REDUCED EMISSIONS FROM COOKING AND HEATING – TECHNOLOGIES AND PRACTICES TO DISPLACE DECENTRALIZED THERMAL ENERGY CONSUMPTION (TPDDTEC)",
|
1888
|
+
"GS - CARBON SEQUESTRATION THROUGH ACCELERATED CARBONATION OF CONCRETE AGGREGATE ",
|
1889
|
+
"VCS - VM0001",
|
1890
|
+
"VCS - VM0002",
|
1891
|
+
"VCS - VM0003",
|
1892
|
+
"VCS - VM0004",
|
1893
|
+
"VCS - VM0005",
|
1894
|
+
"VCS - VM0006",
|
1895
|
+
"VCS - VM0007",
|
1896
|
+
"VCS - VM0008",
|
1897
|
+
"VCS - VM0009",
|
1898
|
+
"VCS - VM0010",
|
1899
|
+
"VCS - VM0011",
|
1900
|
+
"VCS - VM0012",
|
1901
|
+
"VCS - VM0013",
|
1902
|
+
"VCS - VM0014",
|
1903
|
+
"VCS - VM0015",
|
1904
|
+
"VCS - VM0016",
|
1905
|
+
"VCS - VM0017",
|
1906
|
+
"VCS - VM0018",
|
1907
|
+
"VCS - VM0019",
|
1908
|
+
"VCS - VM0020",
|
1909
|
+
"VCS - VM0021",
|
1910
|
+
"VCS - VM0022",
|
1911
|
+
"VCS - VM0023",
|
1912
|
+
"VCS - VM0024",
|
1913
|
+
"VCS - VM0025",
|
1914
|
+
"VCS - VM0026",
|
1915
|
+
"VCS - VM0027",
|
1916
|
+
"VCS - VM0028",
|
1917
|
+
"VCS - VM0029",
|
1918
|
+
"VCS - VM0030",
|
1919
|
+
"VCS - VM0031",
|
1920
|
+
"VCS - VM0032",
|
1921
|
+
"VCS - VM0033",
|
1922
|
+
"VCS - VM0034",
|
1923
|
+
"VCS - VM0035",
|
1924
|
+
"VCS - VM0036",
|
1925
|
+
"VCS - VM0037",
|
1926
|
+
"VCS - VM0038",
|
1927
|
+
"VCS - VM0039",
|
1928
|
+
"VCS - VM0040",
|
1929
|
+
"VCS - VM0041",
|
1930
|
+
"VCS - VM0042",
|
1931
|
+
"VCS - VM0043",
|
1932
|
+
"VCS - VMR000",
|
1933
|
+
"VCS - VMR006",
|
1934
|
+
"ID_PM044",
|
1935
|
+
"ID_PM043",
|
1936
|
+
"ID_PM042",
|
1937
|
+
"ID_PM041",
|
1938
|
+
"ID_PM040",
|
1939
|
+
"ID_PM039",
|
1940
|
+
"ID_AM028",
|
1941
|
+
"ID_AM027",
|
1942
|
+
"ID_AM026",
|
1943
|
+
"ID_AM025",
|
1944
|
+
"ID_AM024",
|
1945
|
+
"ID_AM023",
|
1946
|
+
"ID_AM022",
|
1947
|
+
"ID_AM021",
|
1948
|
+
"ID_AM020",
|
1949
|
+
"ID_AM006",
|
1950
|
+
"VN_PM028",
|
1951
|
+
"ID_AM019",
|
1952
|
+
"VN_PM027",
|
1953
|
+
"ID_AM018",
|
1954
|
+
"ID_AM007",
|
1955
|
+
"TH_PM026",
|
1956
|
+
"VN_PM026",
|
1957
|
+
"VN_PM025",
|
1958
|
+
"TH_PM025",
|
1959
|
+
"ID_AM009",
|
1960
|
+
"VN_PM024",
|
1961
|
+
"ID_AM017",
|
1962
|
+
"TH_PM024",
|
1963
|
+
"ID_AM016",
|
1964
|
+
"VN_PM023",
|
1965
|
+
"TH_PM023",
|
1966
|
+
"ID_AM015",
|
1967
|
+
"TH_PM022",
|
1968
|
+
"VN_AM015",
|
1969
|
+
"VN_AM009",
|
1970
|
+
"ID_AM014",
|
1971
|
+
"TH_PM021",
|
1972
|
+
"TH_AM017",
|
1973
|
+
"ID_AM013",
|
1974
|
+
"VN_AM014",
|
1975
|
+
"VN_AM013",
|
1976
|
+
"TH_AM016",
|
1977
|
+
"VN_AM012",
|
1978
|
+
"TH_AM015",
|
1979
|
+
"ID_AM011",
|
1980
|
+
"TH_AM001",
|
1981
|
+
"VN_AM011",
|
1982
|
+
"ID_AM012",
|
1983
|
+
"VN_AM010",
|
1984
|
+
"TH_AM014",
|
1985
|
+
"ID_AM008",
|
1986
|
+
"VN_AM006",
|
1987
|
+
"TH_AM013",
|
1988
|
+
"TH_AM012",
|
1989
|
+
"VN_AM004",
|
1990
|
+
"ID_AM005",
|
1991
|
+
"ID_AM004",
|
1992
|
+
"TH_AM011",
|
1993
|
+
"VN_AM003",
|
1994
|
+
"ID_AM003",
|
1995
|
+
"VN_AM002",
|
1996
|
+
"TH_AM010",
|
1997
|
+
"ID_AM002",
|
1998
|
+
"TH_AM009",
|
1999
|
+
"ID_AM010",
|
2000
|
+
"VN_AM008",
|
2001
|
+
"TH_AM008",
|
2002
|
+
"TH_AM005",
|
2003
|
+
"VN_AM007",
|
2004
|
+
"TH_AM007",
|
2005
|
+
"VN_AM001",
|
2006
|
+
"MM_PM007",
|
2007
|
+
"TH_AM006",
|
2008
|
+
"MM_PM006",
|
2009
|
+
"VN_AM005",
|
2010
|
+
"KH_AM004",
|
2011
|
+
"TH_AM002",
|
2012
|
+
"KH_AM005",
|
2013
|
+
"BD_PM005",
|
2014
|
+
"MM_AM005",
|
2015
|
+
"TH_AM004",
|
2016
|
+
"LA_AM004",
|
2017
|
+
"BD_AM001",
|
2018
|
+
"MN_AM003",
|
2019
|
+
"MM_AM004",
|
2020
|
+
"KE_AM003",
|
2021
|
+
"LA_AM003",
|
2022
|
+
"MM_AM003",
|
2023
|
+
"CR_AM003",
|
2024
|
+
"KH_AM003",
|
2025
|
+
"PH_PM003",
|
2026
|
+
"TH_AM003",
|
2027
|
+
"CL_AM001",
|
2028
|
+
"ET_AM003",
|
2029
|
+
"BD_AM003",
|
2030
|
+
"BD_AM002",
|
2031
|
+
"ET_AM002",
|
2032
|
+
"KE_AM002",
|
2033
|
+
"CR_AM002",
|
2034
|
+
"LA_AM002",
|
2035
|
+
"KH_AM002",
|
2036
|
+
"MV_AM002",
|
2037
|
+
"MM_AM002",
|
2038
|
+
"PH_AM002",
|
2039
|
+
"MN_AM002",
|
2040
|
+
"CL_AM002",
|
2041
|
+
"PW_AM001",
|
2042
|
+
"PH_AM001",
|
2043
|
+
"KE_AM001",
|
2044
|
+
"KH_AM001",
|
2045
|
+
"SA_AM001",
|
2046
|
+
"MN_AM001",
|
2047
|
+
"MM_AM001",
|
2048
|
+
"CR_AM001",
|
2049
|
+
"ID_AM001",
|
2050
|
+
"MX_AM001",
|
2051
|
+
"ET_AM001",
|
2052
|
+
"LA_AM001",
|
2053
|
+
"MV_AM001",
|
2054
|
+
"Puro - BIO CHAR",
|
2055
|
+
];
|
1063
2056
|
|
1064
2057
|
exports.ESGType = void 0;
|
1065
2058
|
(function (ESGType) {
|
@@ -4188,6 +5181,26 @@ function requireAgricultureCal () {
|
|
4188
5181
|
return agricultureCal;
|
4189
5182
|
}
|
4190
5183
|
|
5184
|
+
var soilEnrichmentCal = {};
|
5185
|
+
|
5186
|
+
var hasRequiredSoilEnrichmentCal;
|
5187
|
+
|
5188
|
+
function requireSoilEnrichmentCal () {
|
5189
|
+
if (hasRequiredSoilEnrichmentCal) return soilEnrichmentCal;
|
5190
|
+
hasRequiredSoilEnrichmentCal = 1;
|
5191
|
+
Object.defineProperty(soilEnrichmentCal, "__esModule", { value: true });
|
5192
|
+
soilEnrichmentCal.SoilEnrichmentCal = void 0;
|
5193
|
+
const calculator_1 = requireCalculator();
|
5194
|
+
class SoilEnrichmentCal {
|
5195
|
+
static calculate(req) {
|
5196
|
+
const constants = req.soilEnrichmentConstants;
|
5197
|
+
return Number((constants.emissionFactor * req.weight).toFixed(calculator_1.PRECISION));
|
5198
|
+
}
|
5199
|
+
}
|
5200
|
+
soilEnrichmentCal.SoilEnrichmentCal = SoilEnrichmentCal;
|
5201
|
+
return soilEnrichmentCal;
|
5202
|
+
}
|
5203
|
+
|
4191
5204
|
var solarCal = {};
|
4192
5205
|
|
4193
5206
|
var hasRequiredSolarCal;
|
@@ -4264,6 +5277,53 @@ class AgricultureCreationRequest {
|
|
4264
5277
|
}
|
4265
5278
|
agricultureCreationRequest.AgricultureCreationRequest = AgricultureCreationRequest;
|
4266
5279
|
|
5280
|
+
var soilEnrichmentCreationRequest = {};
|
5281
|
+
|
5282
|
+
var soilEnrichmentConstants = {};
|
5283
|
+
|
5284
|
+
Object.defineProperty(soilEnrichmentConstants, "__esModule", { value: true });
|
5285
|
+
soilEnrichmentConstants.SoilEnrichmentConstants = void 0;
|
5286
|
+
class SoilEnrichmentConstants {
|
5287
|
+
constructor() {
|
5288
|
+
this.emissionFactor = 3.66;
|
5289
|
+
this.emissionFactorUnit = "tCO2e"; // emission factor
|
5290
|
+
}
|
5291
|
+
}
|
5292
|
+
soilEnrichmentConstants.SoilEnrichmentConstants = SoilEnrichmentConstants;
|
5293
|
+
|
5294
|
+
Object.defineProperty(soilEnrichmentCreationRequest, "__esModule", { value: true });
|
5295
|
+
soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = void 0;
|
5296
|
+
const soilEnrichmentConstants_1 = soilEnrichmentConstants;
|
5297
|
+
class SoilEnrichmentCreationRequest {
|
5298
|
+
constructor() {
|
5299
|
+
this.soilEnrichmentConstants = new soilEnrichmentConstants_1.SoilEnrichmentConstants();
|
5300
|
+
}
|
5301
|
+
}
|
5302
|
+
soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = SoilEnrichmentCreationRequest;
|
5303
|
+
|
5304
|
+
var stovesHousesNamibiaCreationRequest = {};
|
5305
|
+
|
5306
|
+
var stovesHousesNamibiaConstants = {};
|
5307
|
+
|
5308
|
+
Object.defineProperty(stovesHousesNamibiaConstants, "__esModule", { value: true });
|
5309
|
+
stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = void 0;
|
5310
|
+
class StovesHousesNamibiaConstants {
|
5311
|
+
constructor() {
|
5312
|
+
this.emissionFactor = 0.1;
|
5313
|
+
}
|
5314
|
+
}
|
5315
|
+
stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = StovesHousesNamibiaConstants;
|
5316
|
+
|
5317
|
+
Object.defineProperty(stovesHousesNamibiaCreationRequest, "__esModule", { value: true });
|
5318
|
+
stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = void 0;
|
5319
|
+
const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
|
5320
|
+
class StovesHousesNamibiaCreationRequest {
|
5321
|
+
constructor() {
|
5322
|
+
this.stovesHousesNamibiaConstants = new stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants();
|
5323
|
+
}
|
5324
|
+
}
|
5325
|
+
stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = StovesHousesNamibiaCreationRequest;
|
5326
|
+
|
4267
5327
|
var solarCreationRequest = {};
|
4268
5328
|
|
4269
5329
|
var solarConstants = {};
|
@@ -4301,6 +5361,134 @@ class SolarCreationRequest {
|
|
4301
5361
|
}
|
4302
5362
|
solarCreationRequest.SolarCreationRequest = SolarCreationRequest;
|
4303
5363
|
|
5364
|
+
var stovesHousesNamibiaCal = {};
|
5365
|
+
|
5366
|
+
var hasRequiredStovesHousesNamibiaCal;
|
5367
|
+
|
5368
|
+
function requireStovesHousesNamibiaCal () {
|
5369
|
+
if (hasRequiredStovesHousesNamibiaCal) return stovesHousesNamibiaCal;
|
5370
|
+
hasRequiredStovesHousesNamibiaCal = 1;
|
5371
|
+
Object.defineProperty(stovesHousesNamibiaCal, "__esModule", { value: true });
|
5372
|
+
stovesHousesNamibiaCal.StovesHousesNamibiaCal = void 0;
|
5373
|
+
const calculator_1 = requireCalculator();
|
5374
|
+
class StovesHousesNamibiaCal {
|
5375
|
+
static calculate(req) {
|
5376
|
+
const constants = req.stovesHousesNamibiaConstants;
|
5377
|
+
return Number((constants.emissionFactor * req.numberOfDays * req.numberOfPeopleInHousehold).toFixed(calculator_1.PRECISION));
|
5378
|
+
}
|
5379
|
+
}
|
5380
|
+
stovesHousesNamibiaCal.StovesHousesNamibiaCal = StovesHousesNamibiaCal;
|
5381
|
+
return stovesHousesNamibiaCal;
|
5382
|
+
}
|
5383
|
+
|
5384
|
+
var solarWaterPumpingOffGridCreationRequest = {};
|
5385
|
+
|
5386
|
+
var solarWaterPumpingOffGridConstants = {};
|
5387
|
+
|
5388
|
+
Object.defineProperty(solarWaterPumpingOffGridConstants, "__esModule", { value: true });
|
5389
|
+
solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = void 0;
|
5390
|
+
class SolarWaterPumpingOffGridConstants {
|
5391
|
+
constructor() {
|
5392
|
+
this.emissionFactor = 1.3;
|
5393
|
+
this.emissionFactorUnit = "kWh/year";
|
5394
|
+
}
|
5395
|
+
}
|
5396
|
+
solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = SolarWaterPumpingOffGridConstants;
|
5397
|
+
|
5398
|
+
Object.defineProperty(solarWaterPumpingOffGridCreationRequest, "__esModule", { value: true });
|
5399
|
+
solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = void 0;
|
5400
|
+
const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
|
5401
|
+
class SolarWaterPumpingOffGridCreationRequest {
|
5402
|
+
constructor() {
|
5403
|
+
this.solarWaterPumpingOffGridConstants = new solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants();
|
5404
|
+
}
|
5405
|
+
}
|
5406
|
+
solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = SolarWaterPumpingOffGridCreationRequest;
|
5407
|
+
|
5408
|
+
var solarWaterPumpingOffGridCal = {};
|
5409
|
+
|
5410
|
+
var hasRequiredSolarWaterPumpingOffGridCal;
|
5411
|
+
|
5412
|
+
function requireSolarWaterPumpingOffGridCal () {
|
5413
|
+
if (hasRequiredSolarWaterPumpingOffGridCal) return solarWaterPumpingOffGridCal;
|
5414
|
+
hasRequiredSolarWaterPumpingOffGridCal = 1;
|
5415
|
+
Object.defineProperty(solarWaterPumpingOffGridCal, "__esModule", { value: true });
|
5416
|
+
solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = void 0;
|
5417
|
+
const calculator_1 = requireCalculator();
|
5418
|
+
var convert = lib;
|
5419
|
+
let solarWaterPumpingOffGridCal$1 = class solarWaterPumpingOffGridCal {
|
5420
|
+
static calculate(req) {
|
5421
|
+
const constants = req.solarWaterPumpingOffGridConstants;
|
5422
|
+
const emissionUnitParts = constants.emissionFactorUnit.split('/');
|
5423
|
+
if (emissionUnitParts.length != 2) {
|
5424
|
+
throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
|
5425
|
+
}
|
5426
|
+
const measuredUnitParts = req.energyGenerationUnit.split('/');
|
5427
|
+
if (measuredUnitParts.length != 3) {
|
5428
|
+
throw Error("Invalid measured unit " + req.energyGenerationUnit);
|
5429
|
+
}
|
5430
|
+
const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
|
5431
|
+
return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
|
5432
|
+
}
|
5433
|
+
};
|
5434
|
+
solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = solarWaterPumpingOffGridCal$1;
|
5435
|
+
return solarWaterPumpingOffGridCal;
|
5436
|
+
}
|
5437
|
+
|
5438
|
+
var solarWaterPumpingOnGridCreationRequest = {};
|
5439
|
+
|
5440
|
+
var solarWaterPumpingOnGridConstants = {};
|
5441
|
+
|
5442
|
+
Object.defineProperty(solarWaterPumpingOnGridConstants, "__esModule", { value: true });
|
5443
|
+
solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = void 0;
|
5444
|
+
class SolarWaterPumpingOnGridConstants {
|
5445
|
+
constructor() {
|
5446
|
+
this.emissionFactor = 1.06;
|
5447
|
+
this.emissionFactorUnit = "kWh/year";
|
5448
|
+
}
|
5449
|
+
}
|
5450
|
+
solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = SolarWaterPumpingOnGridConstants;
|
5451
|
+
|
5452
|
+
Object.defineProperty(solarWaterPumpingOnGridCreationRequest, "__esModule", { value: true });
|
5453
|
+
solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = void 0;
|
5454
|
+
const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
|
5455
|
+
class SolarWaterPumpingOnGridCreationRequest {
|
5456
|
+
constructor() {
|
5457
|
+
this.solarWaterPumpingOnGridConstants = new solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants();
|
5458
|
+
}
|
5459
|
+
}
|
5460
|
+
solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = SolarWaterPumpingOnGridCreationRequest;
|
5461
|
+
|
5462
|
+
var solarWaterPumpingOnGridCal = {};
|
5463
|
+
|
5464
|
+
var hasRequiredSolarWaterPumpingOnGridCal;
|
5465
|
+
|
5466
|
+
function requireSolarWaterPumpingOnGridCal () {
|
5467
|
+
if (hasRequiredSolarWaterPumpingOnGridCal) return solarWaterPumpingOnGridCal;
|
5468
|
+
hasRequiredSolarWaterPumpingOnGridCal = 1;
|
5469
|
+
Object.defineProperty(solarWaterPumpingOnGridCal, "__esModule", { value: true });
|
5470
|
+
solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = void 0;
|
5471
|
+
const calculator_1 = requireCalculator();
|
5472
|
+
var convert = lib;
|
5473
|
+
let solarWaterPumpingOnGridCal$1 = class solarWaterPumpingOnGridCal {
|
5474
|
+
static calculate(req) {
|
5475
|
+
const constants = req.solarWaterPumpingOnGridConstants;
|
5476
|
+
const emissionUnitParts = constants.emissionFactorUnit.split('/');
|
5477
|
+
if (emissionUnitParts.length != 2) {
|
5478
|
+
throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
|
5479
|
+
}
|
5480
|
+
const measuredUnitParts = req.energyGenerationUnit.split('/');
|
5481
|
+
if (measuredUnitParts.length != 3) {
|
5482
|
+
throw Error("Invalid measured unit " + req.energyGenerationUnit);
|
5483
|
+
}
|
5484
|
+
const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
|
5485
|
+
return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
|
5486
|
+
}
|
5487
|
+
};
|
5488
|
+
solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = solarWaterPumpingOnGridCal$1;
|
5489
|
+
return solarWaterPumpingOnGridCal;
|
5490
|
+
}
|
5491
|
+
|
4304
5492
|
var hasRequiredCalculator;
|
4305
5493
|
|
4306
5494
|
function requireCalculator () {
|
@@ -4309,9 +5497,17 @@ function requireCalculator () {
|
|
4309
5497
|
Object.defineProperty(calculator, "__esModule", { value: true });
|
4310
5498
|
calculator.calculateCredit = calculator.PRECISION = void 0;
|
4311
5499
|
const agricultureCal_1 = requireAgricultureCal();
|
5500
|
+
const soilEnrichmentCal_1 = requireSoilEnrichmentCal();
|
4312
5501
|
const solarCal_1 = requireSolarCal();
|
4313
5502
|
const agricultureCreationRequest_1 = agricultureCreationRequest;
|
5503
|
+
const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
|
5504
|
+
const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
|
4314
5505
|
const solarCreationRequest_1 = solarCreationRequest;
|
5506
|
+
const stovesHousesNamibiaCal_1 = requireStovesHousesNamibiaCal();
|
5507
|
+
const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
|
5508
|
+
const solarWaterPumpingOffGridCal_1 = requireSolarWaterPumpingOffGridCal();
|
5509
|
+
const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
|
5510
|
+
const solarWaterPumpingOnGridCal_1 = requireSolarWaterPumpingOnGridCal();
|
4315
5511
|
calculator.PRECISION = 2;
|
4316
5512
|
const calculateCredit = (request) => {
|
4317
5513
|
if (request instanceof agricultureCreationRequest_1.AgricultureCreationRequest) {
|
@@ -4320,6 +5516,18 @@ function requireCalculator () {
|
|
4320
5516
|
else if (request instanceof solarCreationRequest_1.SolarCreationRequest) {
|
4321
5517
|
return solarCal_1.SolarCal.calculate(request);
|
4322
5518
|
}
|
5519
|
+
else if (request instanceof soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest) {
|
5520
|
+
return soilEnrichmentCal_1.SoilEnrichmentCal.calculate(request);
|
5521
|
+
}
|
5522
|
+
else if (request instanceof stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest) {
|
5523
|
+
return stovesHousesNamibiaCal_1.StovesHousesNamibiaCal.calculate(request);
|
5524
|
+
}
|
5525
|
+
else if (request instanceof solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest) {
|
5526
|
+
return solarWaterPumpingOffGridCal_1.solarWaterPumpingOffGridCal.calculate(request);
|
5527
|
+
}
|
5528
|
+
else if (request instanceof solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest) {
|
5529
|
+
return solarWaterPumpingOnGridCal_1.solarWaterPumpingOnGridCal.calculate(request);
|
5530
|
+
}
|
4323
5531
|
else {
|
4324
5532
|
throw Error("Not implemented");
|
4325
5533
|
}
|
@@ -4330,25 +5538,24 @@ function requireCalculator () {
|
|
4330
5538
|
|
4331
5539
|
var building_type_enum = {};
|
4332
5540
|
|
4333
|
-
(
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
|
4340
|
-
|
4341
|
-
|
4342
|
-
|
4343
|
-
|
4344
|
-
|
4345
|
-
|
4346
|
-
|
4347
|
-
} (building_type_enum));
|
5541
|
+
Object.defineProperty(building_type_enum, "__esModule", { value: true });
|
5542
|
+
building_type_enum.BuildingType = void 0;
|
5543
|
+
var BuildingType;
|
5544
|
+
(function (BuildingType) {
|
5545
|
+
BuildingType["Household"] = "Household";
|
5546
|
+
BuildingType["HealthCenter"] = "HealthCenter";
|
5547
|
+
BuildingType["Dispensary"] = "Dispensary";
|
5548
|
+
BuildingType["School"] = "School";
|
5549
|
+
BuildingType["PrimarySchool"] = "PrimarySchool";
|
5550
|
+
BuildingType["SecondarySchool"] = "SecondarySchool";
|
5551
|
+
BuildingType["PublicAdministration"] = "PublicAdministration";
|
5552
|
+
BuildingType["TradingPlace"] = "TradingPlace";
|
5553
|
+
BuildingType["BusStop"] = "BusStop";
|
5554
|
+
})(BuildingType || (building_type_enum.BuildingType = BuildingType = {}));
|
4348
5555
|
|
4349
5556
|
(function (exports) {
|
4350
5557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4351
|
-
exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
|
5558
|
+
exports.SolarWaterPumpingOnGridCreationRequest = exports.SolarWaterPumpingOnGridConstants = exports.SolarWaterPumpingOffGridCreationRequest = exports.SolarWaterPumpingOffGridConstants = exports.StovesHousesNamibiaCreationRequest = exports.StovesHousesNamibiaConstants = exports.SoilEnrichmentCreationRequest = exports.SoilEnrichmentConstants = exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
|
4352
5559
|
const calculator_1 = requireCalculator();
|
4353
5560
|
Object.defineProperty(exports, "calculateCredit", { enumerable: true, get: function () { return calculator_1.calculateCredit; } });
|
4354
5561
|
const agricultureConstants_1 = agricultureConstants;
|
@@ -4360,7 +5567,23 @@ var building_type_enum = {};
|
|
4360
5567
|
const agricultureCreationRequest_1 = agricultureCreationRequest;
|
4361
5568
|
Object.defineProperty(exports, "AgricultureCreationRequest", { enumerable: true, get: function () { return agricultureCreationRequest_1.AgricultureCreationRequest; } });
|
4362
5569
|
const solarCreationRequest_1 = solarCreationRequest;
|
4363
|
-
Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
|
5570
|
+
Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
|
5571
|
+
const soilEnrichmentConstants_1 = soilEnrichmentConstants;
|
5572
|
+
Object.defineProperty(exports, "SoilEnrichmentConstants", { enumerable: true, get: function () { return soilEnrichmentConstants_1.SoilEnrichmentConstants; } });
|
5573
|
+
const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
|
5574
|
+
Object.defineProperty(exports, "SoilEnrichmentCreationRequest", { enumerable: true, get: function () { return soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest; } });
|
5575
|
+
const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
|
5576
|
+
Object.defineProperty(exports, "StovesHousesNamibiaConstants", { enumerable: true, get: function () { return stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants; } });
|
5577
|
+
const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
|
5578
|
+
Object.defineProperty(exports, "StovesHousesNamibiaCreationRequest", { enumerable: true, get: function () { return stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest; } });
|
5579
|
+
const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
|
5580
|
+
Object.defineProperty(exports, "SolarWaterPumpingOffGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants; } });
|
5581
|
+
const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
|
5582
|
+
Object.defineProperty(exports, "SolarWaterPumpingOffGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest; } });
|
5583
|
+
const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
|
5584
|
+
Object.defineProperty(exports, "SolarWaterPumpingOnGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants; } });
|
5585
|
+
const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
|
5586
|
+
Object.defineProperty(exports, "SolarWaterPumpingOnGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest; } });
|
4364
5587
|
} (cjs));
|
4365
5588
|
|
4366
5589
|
var consumerGroupList = [
|
@@ -5735,14 +6958,15 @@ var ProgrammeManagementComponent = function (props) {
|
|
5735
6958
|
var _p = React.useState(false), ministryLevelFilter = _p[0], setMinistryLevelFilter = _p[1];
|
5736
6959
|
var userInfoState = useUserContext().userInfoState;
|
5737
6960
|
var ability = useAbilityContext();
|
6961
|
+
var _q = React.useState(), dataQuery = _q[0], setDataQuery = _q[1];
|
5738
6962
|
var stageObject = enableAddProgramme ? exports.ProgrammeStageMRV : exports.ProgrammeStageR;
|
5739
6963
|
var statusOptions = Object.keys(stageObject).map(function (k, index) { return ({
|
5740
6964
|
label: Object.values(stageObject)[index],
|
5741
6965
|
value: k,
|
5742
6966
|
}); });
|
5743
|
-
var
|
5744
|
-
var
|
5745
|
-
var
|
6967
|
+
var _r = React.useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _r[0], setSelectedStatus = _r[1];
|
6968
|
+
var _s = React.useState(false), indeterminate = _s[0], setIndeterminate = _s[1];
|
6969
|
+
var _t = React.useState(true), checkAll = _t[0], setCheckAll = _t[1];
|
5746
6970
|
var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
|
5747
6971
|
return __generator(this, function (_a) {
|
5748
6972
|
console.log(checkedValues);
|
@@ -5985,6 +7209,11 @@ var ProgrammeManagementComponent = function (props) {
|
|
5985
7209
|
setTableData(response.data);
|
5986
7210
|
setTotalProgramme(response.response.data.total);
|
5987
7211
|
setLoading(false);
|
7212
|
+
setDataQuery({
|
7213
|
+
filterAnd: filter,
|
7214
|
+
filterOr: (filterOr === null || filterOr === void 0 ? void 0 : filterOr.length) > 0 ? filterOr : undefined,
|
7215
|
+
sort: sort,
|
7216
|
+
});
|
5988
7217
|
return [3 /*break*/, 4];
|
5989
7218
|
case 3:
|
5990
7219
|
error_1 = _a.sent();
|
@@ -6042,6 +7271,44 @@ var ProgrammeManagementComponent = function (props) {
|
|
6042
7271
|
}
|
6043
7272
|
});
|
6044
7273
|
}); };
|
7274
|
+
var downloadProgrammeData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
7275
|
+
var response, url, a, error_3;
|
7276
|
+
var _a;
|
7277
|
+
return __generator(this, function (_b) {
|
7278
|
+
switch (_b.label) {
|
7279
|
+
case 0:
|
7280
|
+
setLoading(true);
|
7281
|
+
_b.label = 1;
|
7282
|
+
case 1:
|
7283
|
+
_b.trys.push([1, 3, , 4]);
|
7284
|
+
return [4 /*yield*/, post("national/programme/download", {
|
7285
|
+
filterAnd: dataQuery.filterAnd,
|
7286
|
+
filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
|
7287
|
+
sort: dataQuery.sort,
|
7288
|
+
})];
|
7289
|
+
case 2:
|
7290
|
+
response = _b.sent();
|
7291
|
+
if (response && response.data) {
|
7292
|
+
url = response.data.url;
|
7293
|
+
a = document.createElement('a');
|
7294
|
+
a.href = url;
|
7295
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
7296
|
+
document.body.appendChild(a);
|
7297
|
+
a.click();
|
7298
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
7299
|
+
window.URL.revokeObjectURL(url);
|
7300
|
+
}
|
7301
|
+
setLoading(false);
|
7302
|
+
return [3 /*break*/, 4];
|
7303
|
+
case 3:
|
7304
|
+
error_3 = _b.sent();
|
7305
|
+
console.log("Error in downloading programme data", error_3);
|
7306
|
+
setLoading(false);
|
7307
|
+
return [3 /*break*/, 4];
|
7308
|
+
case 4: return [2 /*return*/];
|
7309
|
+
}
|
7310
|
+
});
|
7311
|
+
}); };
|
6045
7312
|
var onSearch = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6046
7313
|
return __generator(this, function (_a) {
|
6047
7314
|
setSearch(searchText);
|
@@ -6130,7 +7397,13 @@ var ProgrammeManagementComponent = function (props) {
|
|
6130
7397
|
return e.target.value === ""
|
6131
7398
|
? setSearch(e.target.value)
|
6132
7399
|
: setSearchText(e.target.value);
|
6133
|
-
}, onSearch: setSearch, style: { width: 265 } }))
|
7400
|
+
}, onSearch: setSearch, style: { width: 265 } })),
|
7401
|
+
React.createElement("div", { className: "download-data-btn" },
|
7402
|
+
React.createElement("a", { onClick: downloadProgrammeData },
|
7403
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
7404
|
+
color: "rgba(58, 53, 65, 0.3)",
|
7405
|
+
fontSize: "20px",
|
7406
|
+
} })))))),
|
6134
7407
|
React.createElement(antd.Row, null,
|
6135
7408
|
React.createElement(antd.Col, { span: 24 },
|
6136
7409
|
React.createElement("div", { className: "programmeManagement-table-container" },
|
@@ -13478,6 +14751,7 @@ var UserManagementComponent = function (props) {
|
|
13478
14751
|
var _r = React.useState({}), actionInfo = _r[0], setActionInfo = _r[1];
|
13479
14752
|
var _s = React.useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
|
13480
14753
|
var _t = React.useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
14754
|
+
var _u = React.useState(), dataQuery = _u[0], setDataQuery = _u[1];
|
13481
14755
|
var ability = useAbilityContext();
|
13482
14756
|
document.addEventListener("mousedown", function (event) {
|
13483
14757
|
var userFilterArea1 = document.querySelector(".filter-bar");
|
@@ -13833,6 +15107,11 @@ var UserManagementComponent = function (props) {
|
|
13833
15107
|
setTableData(availableUsers);
|
13834
15108
|
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);
|
13835
15109
|
}
|
15110
|
+
setDataQuery({
|
15111
|
+
filterAnd: filterAnd(),
|
15112
|
+
filterOr: filterOr(),
|
15113
|
+
sort: sort(),
|
15114
|
+
});
|
13836
15115
|
setLoading(false);
|
13837
15116
|
return [3 /*break*/, 4];
|
13838
15117
|
case 3:
|
@@ -13850,6 +15129,44 @@ var UserManagementComponent = function (props) {
|
|
13850
15129
|
}
|
13851
15130
|
});
|
13852
15131
|
}); };
|
15132
|
+
var downloadUserData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
15133
|
+
var response, url, a, error_3;
|
15134
|
+
var _a;
|
15135
|
+
return __generator(this, function (_b) {
|
15136
|
+
switch (_b.label) {
|
15137
|
+
case 0:
|
15138
|
+
setLoading(true);
|
15139
|
+
_b.label = 1;
|
15140
|
+
case 1:
|
15141
|
+
_b.trys.push([1, 3, , 4]);
|
15142
|
+
return [4 /*yield*/, post("national/user/download", {
|
15143
|
+
filterAnd: dataQuery.filterAnd,
|
15144
|
+
filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
|
15145
|
+
sort: dataQuery.sort,
|
15146
|
+
})];
|
15147
|
+
case 2:
|
15148
|
+
response = _b.sent();
|
15149
|
+
if (response && response.data) {
|
15150
|
+
url = response.data.url;
|
15151
|
+
a = document.createElement('a');
|
15152
|
+
a.href = url;
|
15153
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
15154
|
+
document.body.appendChild(a);
|
15155
|
+
a.click();
|
15156
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
15157
|
+
window.URL.revokeObjectURL(url);
|
15158
|
+
}
|
15159
|
+
setLoading(false);
|
15160
|
+
return [3 /*break*/, 4];
|
15161
|
+
case 3:
|
15162
|
+
error_3 = _b.sent();
|
15163
|
+
console.log("Error in downloading user data", error_3);
|
15164
|
+
setLoading(false);
|
15165
|
+
return [3 /*break*/, 4];
|
15166
|
+
case 4: return [2 /*return*/];
|
15167
|
+
}
|
15168
|
+
});
|
15169
|
+
}); };
|
13853
15170
|
React.useEffect(function () {
|
13854
15171
|
getAllUser();
|
13855
15172
|
}, [
|
@@ -13972,7 +15289,13 @@ var UserManagementComponent = function (props) {
|
|
13972
15289
|
React.createElement(icons.FilterOutlined, { style: {
|
13973
15290
|
color: "rgba(58, 53, 65, 0.3)",
|
13974
15291
|
fontSize: "20px",
|
13975
|
-
} }))))
|
15292
|
+
} })))),
|
15293
|
+
React.createElement("div", { className: "download-data-btn" },
|
15294
|
+
React.createElement("a", { onClick: downloadUserData },
|
15295
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
15296
|
+
color: "rgba(58, 53, 65, 0.3)",
|
15297
|
+
fontSize: "20px",
|
15298
|
+
} })))))),
|
13976
15299
|
React.createElement(antd.Row, null,
|
13977
15300
|
React.createElement(antd.Col, { span: 24 },
|
13978
15301
|
React.createElement("div", { className: "userManagement-table-container" },
|
@@ -14589,6 +15912,7 @@ var InvestmentManagementComponent = function (props) {
|
|
14589
15912
|
var _u = useSettingsContext(), isTransferFrozen = _u.isTransferFrozen; _u.setTransferFrozen;
|
14590
15913
|
var _v = React.useState([]), ministrySectoralScope = _v[0], setMinistrySectoralScope = _v[1];
|
14591
15914
|
var _w = React.useState(false), ministryLevelFilter = _w[0], setMinistryLevelFilter = _w[1];
|
15915
|
+
var _x = React.useState(), dataQuery = _x[0], setDataQuery = _x[1];
|
14592
15916
|
var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
|
14593
15917
|
return __generator(this, function (_a) {
|
14594
15918
|
console.log(checkedValues);
|
@@ -14685,6 +16009,12 @@ var InvestmentManagementComponent = function (props) {
|
|
14685
16009
|
console.log(response);
|
14686
16010
|
setTableData(response.data);
|
14687
16011
|
setTotalProgramme(response.response.data.total);
|
16012
|
+
setDataQuery({
|
16013
|
+
filterAnd: filter,
|
16014
|
+
filterOr: dataFilter,
|
16015
|
+
sort: sort,
|
16016
|
+
filterBy: filterBy,
|
16017
|
+
});
|
14688
16018
|
setLoading(false);
|
14689
16019
|
return [3 /*break*/, 4];
|
14690
16020
|
case 3:
|
@@ -14702,8 +16032,47 @@ var InvestmentManagementComponent = function (props) {
|
|
14702
16032
|
}
|
14703
16033
|
});
|
14704
16034
|
}); };
|
16035
|
+
var downloadInvestmentData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
16036
|
+
var response, url, a, error_2;
|
16037
|
+
var _a;
|
16038
|
+
return __generator(this, function (_b) {
|
16039
|
+
switch (_b.label) {
|
16040
|
+
case 0:
|
16041
|
+
setLoading(true);
|
16042
|
+
_b.label = 1;
|
16043
|
+
case 1:
|
16044
|
+
_b.trys.push([1, 3, , 4]);
|
16045
|
+
return [4 /*yield*/, post("national/programme/investments/download", {
|
16046
|
+
filterAnd: dataQuery.filterAnd,
|
16047
|
+
filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
|
16048
|
+
sort: dataQuery.sort,
|
16049
|
+
filterBy: dataQuery.filterBy,
|
16050
|
+
})];
|
16051
|
+
case 2:
|
16052
|
+
response = _b.sent();
|
16053
|
+
if (response && response.data) {
|
16054
|
+
url = response.data.url;
|
16055
|
+
a = document.createElement('a');
|
16056
|
+
a.href = url;
|
16057
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
16058
|
+
document.body.appendChild(a);
|
16059
|
+
a.click();
|
16060
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
16061
|
+
window.URL.revokeObjectURL(url);
|
16062
|
+
}
|
16063
|
+
setLoading(false);
|
16064
|
+
return [3 /*break*/, 4];
|
16065
|
+
case 3:
|
16066
|
+
error_2 = _b.sent();
|
16067
|
+
console.log("Error in downloading investment data", error_2);
|
16068
|
+
setLoading(false);
|
16069
|
+
return [3 /*break*/, 4];
|
16070
|
+
case 4: return [2 /*return*/];
|
16071
|
+
}
|
16072
|
+
});
|
16073
|
+
}); };
|
14705
16074
|
var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
14706
|
-
var response,
|
16075
|
+
var response, error_3;
|
14707
16076
|
var _a, _b, _c, _d, _e, _f;
|
14708
16077
|
return __generator(this, function (_g) {
|
14709
16078
|
switch (_g.label) {
|
@@ -14735,8 +16104,8 @@ var InvestmentManagementComponent = function (props) {
|
|
14735
16104
|
setLoading(false);
|
14736
16105
|
return [3 /*break*/, 4];
|
14737
16106
|
case 3:
|
14738
|
-
|
14739
|
-
console.log("Error in getting users",
|
16107
|
+
error_3 = _g.sent();
|
16108
|
+
console.log("Error in getting users", error_3);
|
14740
16109
|
setLoading(false);
|
14741
16110
|
return [3 /*break*/, 4];
|
14742
16111
|
case 4: return [2 /*return*/];
|
@@ -14767,7 +16136,7 @@ var InvestmentManagementComponent = function (props) {
|
|
14767
16136
|
ministryLevelFilter,
|
14768
16137
|
]);
|
14769
16138
|
var handleRequestOk = function (reqId, remarks, endpoint, successText, isRetire) { return __awaiter(void 0, void 0, void 0, function () {
|
14770
|
-
var response, successMsg,
|
16139
|
+
var response, successMsg, error_4;
|
14771
16140
|
return __generator(this, function (_a) {
|
14772
16141
|
switch (_a.label) {
|
14773
16142
|
case 0:
|
@@ -14797,10 +16166,10 @@ var InvestmentManagementComponent = function (props) {
|
|
14797
16166
|
setModalVisible(false);
|
14798
16167
|
return [3 /*break*/, 4];
|
14799
16168
|
case 3:
|
14800
|
-
|
14801
|
-
console.log("Error in Cancelling transfer request",
|
16169
|
+
error_4 = _a.sent();
|
16170
|
+
console.log("Error in Cancelling transfer request", error_4);
|
14802
16171
|
setLoading(false);
|
14803
|
-
return [2 /*return*/,
|
16172
|
+
return [2 /*return*/, error_4.message];
|
14804
16173
|
case 4: return [2 /*return*/];
|
14805
16174
|
}
|
14806
16175
|
});
|
@@ -15065,7 +16434,13 @@ var InvestmentManagementComponent = function (props) {
|
|
15065
16434
|
return e.target.value === ""
|
15066
16435
|
? setSearch(e.target.value)
|
15067
16436
|
: setSearchText(e.target.value);
|
15068
|
-
}, onSearch: setSearch, style: { width: 265 } }))
|
16437
|
+
}, onSearch: setSearch, style: { width: 265 } })),
|
16438
|
+
React.createElement("div", { className: "download-data-btn" },
|
16439
|
+
React.createElement("a", { onClick: downloadInvestmentData },
|
16440
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
16441
|
+
color: "rgba(58, 53, 65, 0.3)",
|
16442
|
+
fontSize: "20px",
|
16443
|
+
} })))))),
|
15069
16444
|
React.createElement(antd.Row, null,
|
15070
16445
|
React.createElement(antd.Col, { span: 24 },
|
15071
16446
|
React.createElement("div", { className: "programmeManagement-table-container" },
|
@@ -15108,6 +16483,7 @@ var NdcActionManagementComponent = function (props) {
|
|
15108
16483
|
var _m = React.useState(), dataFilter = _m[0]; _m[1];
|
15109
16484
|
var _o = React.useState([]), ministrySectoralScope = _o[0], setMinistrySectoralScope = _o[1];
|
15110
16485
|
var _p = React.useState(false), ministryLevelFilter = _p[0], setMinistryLevelFilter = _p[1];
|
16486
|
+
var _q = React.useState(), dataQuery = _q[0], setDataQuery = _q[1];
|
15111
16487
|
var Search = antd.Input.Search;
|
15112
16488
|
var post = useConnection().post;
|
15113
16489
|
var userInfoState = useUserContext().userInfoState;
|
@@ -15115,7 +16491,7 @@ var NdcActionManagementComponent = function (props) {
|
|
15115
16491
|
label: addSpaces(Object.values(exports.NdcActionStatus)[index]),
|
15116
16492
|
value: Object.values(exports.NdcActionStatus)[index],
|
15117
16493
|
}); });
|
15118
|
-
var
|
16494
|
+
var _r = React.useState(statusOptions.map(function (e) { return e.value; })), selectedStatus = _r[0], setSelectedStatus = _r[1];
|
15119
16495
|
var getNdcActionNames = function (action) {
|
15120
16496
|
switch (action) {
|
15121
16497
|
case exports.NdcActionTypes.Adaptation:
|
@@ -15297,6 +16673,11 @@ var NdcActionManagementComponent = function (props) {
|
|
15297
16673
|
response = _a.sent();
|
15298
16674
|
setTableData(response.data);
|
15299
16675
|
setTotalProgramme(response.response.data.total);
|
16676
|
+
setDataQuery({
|
16677
|
+
filterAnd: filter,
|
16678
|
+
filterBy: filterBy,
|
16679
|
+
sort: sort,
|
16680
|
+
});
|
15300
16681
|
setLoading(false);
|
15301
16682
|
return [3 /*break*/, 4];
|
15302
16683
|
case 3:
|
@@ -15355,6 +16736,43 @@ var NdcActionManagementComponent = function (props) {
|
|
15355
16736
|
}
|
15356
16737
|
});
|
15357
16738
|
}); };
|
16739
|
+
var downloadNdcData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
16740
|
+
var response, url, a, error_3;
|
16741
|
+
return __generator(this, function (_a) {
|
16742
|
+
switch (_a.label) {
|
16743
|
+
case 0:
|
16744
|
+
setLoading(true);
|
16745
|
+
_a.label = 1;
|
16746
|
+
case 1:
|
16747
|
+
_a.trys.push([1, 3, , 4]);
|
16748
|
+
return [4 /*yield*/, post("national/programme/queryNdcActions/download", {
|
16749
|
+
filterAnd: dataQuery.filterAnd,
|
16750
|
+
filterBy: dataQuery.filterBy,
|
16751
|
+
sort: dataQuery.sort,
|
16752
|
+
})];
|
16753
|
+
case 2:
|
16754
|
+
response = _a.sent();
|
16755
|
+
if (response && response.data) {
|
16756
|
+
url = response.data.url;
|
16757
|
+
a = document.createElement('a');
|
16758
|
+
a.href = url;
|
16759
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
16760
|
+
document.body.appendChild(a);
|
16761
|
+
a.click();
|
16762
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
16763
|
+
window.URL.revokeObjectURL(url);
|
16764
|
+
}
|
16765
|
+
setLoading(false);
|
16766
|
+
return [3 /*break*/, 4];
|
16767
|
+
case 3:
|
16768
|
+
error_3 = _a.sent();
|
16769
|
+
console.log("Error in downloading NDC Action data", error_3);
|
16770
|
+
setLoading(false);
|
16771
|
+
return [3 /*break*/, 4];
|
16772
|
+
case 4: return [2 /*return*/];
|
16773
|
+
}
|
16774
|
+
});
|
16775
|
+
}); };
|
15358
16776
|
React.useEffect(function () {
|
15359
16777
|
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) {
|
15360
16778
|
getUserDetails();
|
@@ -15450,7 +16868,13 @@ var NdcActionManagementComponent = function (props) {
|
|
15450
16868
|
return e.target.value === ""
|
15451
16869
|
? setSearch(e.target.value)
|
15452
16870
|
: setSearchText(e.target.value);
|
15453
|
-
}, onSearch: setSearch, style: { width: 265 } }))
|
16871
|
+
}, onSearch: setSearch, style: { width: 265 } })),
|
16872
|
+
React.createElement("div", { className: "download-data-btn" },
|
16873
|
+
React.createElement("a", { onClick: downloadNdcData },
|
16874
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
16875
|
+
color: "rgba(58, 53, 65, 0.3)",
|
16876
|
+
fontSize: "20px",
|
16877
|
+
} })))))),
|
15454
16878
|
React.createElement(antd.Row, null,
|
15455
16879
|
React.createElement(antd.Col, { span: 24 },
|
15456
16880
|
React.createElement("div", { className: "programmeManagement-table-container" },
|
@@ -15495,14 +16919,16 @@ var NdcActionDetails = function (props) {
|
|
15495
16919
|
translator.setDefaultNamespace("ndcAction");
|
15496
16920
|
var t = translator.t;
|
15497
16921
|
var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
|
15498
|
-
var _b = React.useState(),
|
15499
|
-
var _c = React.useState(
|
15500
|
-
var _d = React.useState(
|
15501
|
-
var _e = React.useState(
|
15502
|
-
var _f = React.useState(
|
15503
|
-
var _g = React.useState(),
|
15504
|
-
var _h = React.useState(),
|
15505
|
-
var _j = React.useState(),
|
16922
|
+
var _b = React.useState(), methodology = _b[0], setMethodology = _b[1];
|
16923
|
+
var _c = React.useState(), mitigationType = _c[0], setmitigationType = _c[1];
|
16924
|
+
var _d = React.useState(""), mitigationSubType = _d[0], setMitigationSubType = _d[1];
|
16925
|
+
var _e = React.useState(""), sector = _e[0], setSector = _e[1];
|
16926
|
+
var _f = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _f[0]; _f[1];
|
16927
|
+
var _g = React.useState([]), checkedOptionsGhgReduced = _g[0], setCheckedOptionsGhgReduced = _g[1];
|
16928
|
+
var _h = React.useState([]), checkedOptionsGhgAvoided = _h[0], setCheckedOptionsGhgAvoided = _h[1];
|
16929
|
+
var _j = React.useState(), inputNumberValueGhgAvoidedGas = _j[0], setInputNumberValueGhgAvoidedGas = _j[1];
|
16930
|
+
var _k = React.useState(), inputNumberValueGhgReducedGas = _k[0], setInputNumberValueGhgReducedGas = _k[1];
|
16931
|
+
var _l = React.useState(), includedInNAP = _l[0], setIncludedInNAP = _l[1];
|
15506
16932
|
var form = antd.Form.useForm()[0];
|
15507
16933
|
var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
|
15508
16934
|
? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
|
@@ -15522,6 +16948,9 @@ var NdcActionDetails = function (props) {
|
|
15522
16948
|
if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) {
|
15523
16949
|
setmitigationType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation);
|
15524
16950
|
}
|
16951
|
+
if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) {
|
16952
|
+
setMitigationSubType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation);
|
16953
|
+
}
|
15525
16954
|
if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP) {
|
15526
16955
|
setIncludedInNAP(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP);
|
15527
16956
|
}
|
@@ -15534,6 +16963,7 @@ var NdcActionDetails = function (props) {
|
|
15534
16963
|
form.setFieldsValue({
|
15535
16964
|
ndcActionType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action,
|
15536
16965
|
mitigationType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation,
|
16966
|
+
mitigationSubType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation,
|
15537
16967
|
energyGeneration: (_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _a === void 0 ? void 0 : _a.energyGeneration,
|
15538
16968
|
energyGenerationUnit: (_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _b === void 0 ? void 0 : _b.energyGenerationUnit,
|
15539
16969
|
consumerGroup: (_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.consumerGroup,
|
@@ -15611,18 +17041,42 @@ var NdcActionDetails = function (props) {
|
|
15611
17041
|
if (formValues.ndcActionType === exports.NdcActionTypes.Mitigation ||
|
15612
17042
|
formValues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
|
15613
17043
|
if (formValues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
|
15614
|
-
|
15615
|
-
|
15616
|
-
|
15617
|
-
|
15618
|
-
|
15619
|
-
|
17044
|
+
if (formValues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
|
17045
|
+
creditRequest = new cjs.AgricultureCreationRequest();
|
17046
|
+
creditRequest.landArea = formValues.eligibleLandArea;
|
17047
|
+
creditRequest.landAreaUnit = formValues.landAreaUnit;
|
17048
|
+
creditRequest.duration =
|
17049
|
+
programmeDetails.endTime - programmeDetails.startTime;
|
17050
|
+
creditRequest.durationUnit = "s";
|
17051
|
+
}
|
17052
|
+
else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
|
17053
|
+
creditRequest = new cjs.SoilEnrichmentCreationRequest();
|
17054
|
+
creditRequest.weight = formValues.tonnesOnDryBasis;
|
17055
|
+
}
|
15620
17056
|
}
|
15621
17057
|
else if (formValues.mitigationType === exports.MitigationTypes.SOLAR) {
|
15622
|
-
|
15623
|
-
|
15624
|
-
|
15625
|
-
|
17058
|
+
if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
|
17059
|
+
creditRequest = new cjs.SolarCreationRequest();
|
17060
|
+
creditRequest.buildingType = formValues.consumerGroup;
|
17061
|
+
creditRequest.energyGeneration = formValues.energyGeneration;
|
17062
|
+
creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
|
17063
|
+
}
|
17064
|
+
else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
|
17065
|
+
creditRequest = new cjs.SolarWaterPumpingOffGridCreationRequest();
|
17066
|
+
creditRequest.energyGeneration = formValues.energyGeneration;
|
17067
|
+
creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
|
17068
|
+
}
|
17069
|
+
else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
|
17070
|
+
creditRequest = new cjs.SolarWaterPumpingOnGridCreationRequest();
|
17071
|
+
creditRequest.energyGeneration = formValues.energyGeneration;
|
17072
|
+
creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
|
17073
|
+
}
|
17074
|
+
}
|
17075
|
+
else if (formValues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
|
17076
|
+
&& formValues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
|
17077
|
+
creditRequest = new cjs.StovesHousesNamibiaCreationRequest();
|
17078
|
+
creditRequest.numberOfDays = formValues.numberOfDays;
|
17079
|
+
creditRequest.numberOfPeopleInHousehold = formValues.numberOfPeople;
|
15626
17080
|
}
|
15627
17081
|
}
|
15628
17082
|
var creditResponse = cjs.calculateCredit(creditRequest);
|
@@ -15649,8 +17103,37 @@ var NdcActionDetails = function (props) {
|
|
15649
17103
|
};
|
15650
17104
|
var handleMitigationTypeChange = function (selectedMitigationType) {
|
15651
17105
|
setmitigationType(selectedMitigationType);
|
17106
|
+
form.setFieldsValue({
|
17107
|
+
mitigationSubType: "",
|
17108
|
+
tonnesOnDryBasis: "",
|
17109
|
+
numberOfPeople: "",
|
17110
|
+
numberOfDays: "",
|
17111
|
+
landAreaUnit: "",
|
17112
|
+
eligibleLandArea: "",
|
17113
|
+
consumerGroup: "",
|
17114
|
+
energyGenerationUnit: "",
|
17115
|
+
energyGeneration: "",
|
17116
|
+
methodologyEstimatedCredits: 0,
|
17117
|
+
});
|
15652
17118
|
calculateMethodologyEstimatedCredits();
|
15653
17119
|
};
|
17120
|
+
var handleMitigationSubTypeChange = function (selectedSubMitigationType) {
|
17121
|
+
setMitigationSubType(selectedSubMitigationType);
|
17122
|
+
form.setFieldsValue({
|
17123
|
+
tonnesOnDryBasis: "",
|
17124
|
+
numberOfPeople: "",
|
17125
|
+
numberOfDays: "",
|
17126
|
+
landAreaUnit: "",
|
17127
|
+
eligibleLandArea: "",
|
17128
|
+
consumerGroup: "",
|
17129
|
+
energyGenerationUnit: "",
|
17130
|
+
energyGeneration: "",
|
17131
|
+
methodologyEstimatedCredits: 0,
|
17132
|
+
});
|
17133
|
+
};
|
17134
|
+
var handleMethodologyChange = function (selectedMethodology) {
|
17135
|
+
setMethodology(selectedMethodology);
|
17136
|
+
};
|
15654
17137
|
var onNdcActionDetailsFormSubmit = function (ndcActionFormvalues) { return __awaiter(void 0, void 0, void 0, function () {
|
15655
17138
|
var ndcActionDetailObj, enablementReport;
|
15656
17139
|
var _a;
|
@@ -15661,17 +17144,28 @@ var NdcActionDetails = function (props) {
|
|
15661
17144
|
ndcActionDetailObj.action = ndcActionFormvalues.ndcActionType;
|
15662
17145
|
if (ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Mitigation ||
|
15663
17146
|
ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
|
15664
|
-
ndcActionDetailObj.methodology =
|
17147
|
+
ndcActionDetailObj.methodology = ndcActionFormvalues.methodology;
|
15665
17148
|
ndcActionDetailObj.typeOfMitigation = ndcActionFormvalues.mitigationType;
|
15666
|
-
|
17149
|
+
ndcActionDetailObj.subTypeOfMitigation = ndcActionFormvalues.mitigationSubType;
|
17150
|
+
if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
|
17151
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
|
15667
17152
|
ndcActionDetailObj.agricultureProperties = {
|
15668
17153
|
landArea: ndcActionFormvalues.eligibleLandArea
|
15669
17154
|
? ndcActionFormvalues.eligibleLandArea
|
15670
17155
|
: 0,
|
15671
17156
|
landAreaUnit: ndcActionFormvalues.landAreaUnit,
|
15672
17157
|
};
|
17158
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17159
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17160
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17161
|
+
landArea: ndcActionFormvalues.eligibleLandArea
|
17162
|
+
? ndcActionFormvalues.eligibleLandArea
|
17163
|
+
: 0,
|
17164
|
+
landAreaUnit: ndcActionFormvalues.landAreaUnit,
|
17165
|
+
};
|
15673
17166
|
}
|
15674
|
-
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
|
17167
|
+
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
|
17168
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
|
15675
17169
|
ndcActionDetailObj.solarProperties = {
|
15676
17170
|
energyGeneration: ndcActionFormvalues.energyGeneration
|
15677
17171
|
? ndcActionFormvalues.energyGeneration
|
@@ -15679,18 +17173,54 @@ var NdcActionDetails = function (props) {
|
|
15679
17173
|
energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
|
15680
17174
|
consumerGroup: ndcActionFormvalues.consumerGroup,
|
15681
17175
|
};
|
17176
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17177
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17178
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17179
|
+
energyGeneration: ndcActionFormvalues.energyGeneration
|
17180
|
+
? ndcActionFormvalues.energyGeneration
|
17181
|
+
: 0,
|
17182
|
+
energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
|
17183
|
+
consumerGroup: ndcActionFormvalues.consumerGroup,
|
17184
|
+
};
|
15682
17185
|
}
|
15683
|
-
if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
|
15684
|
-
ndcActionFormvalues.
|
15685
|
-
|
15686
|
-
|
15687
|
-
|
15688
|
-
|
15689
|
-
|
15690
|
-
|
15691
|
-
|
15692
|
-
|
15693
|
-
|
17186
|
+
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
|
17187
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
|
17188
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17189
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17190
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17191
|
+
energyGeneration: ndcActionFormvalues.energyGeneration
|
17192
|
+
? ndcActionFormvalues.energyGeneration
|
17193
|
+
: 0,
|
17194
|
+
energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
|
17195
|
+
};
|
17196
|
+
}
|
17197
|
+
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
|
17198
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
|
17199
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17200
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17201
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17202
|
+
energyGeneration: ndcActionFormvalues.energyGeneration
|
17203
|
+
? ndcActionFormvalues.energyGeneration
|
17204
|
+
: 0,
|
17205
|
+
energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
|
17206
|
+
};
|
17207
|
+
}
|
17208
|
+
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
|
17209
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
|
17210
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17211
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17212
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17213
|
+
numberOfDays: ndcActionFormvalues.numberOfDays,
|
17214
|
+
numberOfPeopleInHousehold: ndcActionFormvalues.numberOfPeople,
|
17215
|
+
};
|
17216
|
+
}
|
17217
|
+
else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
|
17218
|
+
&& ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
|
17219
|
+
ndcActionDetailObj.creditCalculationProperties = {
|
17220
|
+
typeOfMitigation: ndcActionFormvalues.mitigationType,
|
17221
|
+
subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
|
17222
|
+
weight: ndcActionFormvalues.tonnesOnDryBasis,
|
17223
|
+
};
|
15694
17224
|
}
|
15695
17225
|
if (ndcActionFormvalues.userEstimatedCredits > programmeDetails.creditEst) {
|
15696
17226
|
antd.message.open({
|
@@ -15812,24 +17342,36 @@ var NdcActionDetails = function (props) {
|
|
15812
17342
|
(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Hospitality
|
15813
17343
|
? mitigationTypeList
|
15814
17344
|
: sectorMitigationTypesListMapped[sector] }))),
|
15815
|
-
|
15816
|
-
|
15817
|
-
|
15818
|
-
|
15819
|
-
|
15820
|
-
|
15821
|
-
|
17345
|
+
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
17346
|
+
ndcActionType === exports.NdcActionTypes.CrossCutting) &&
|
17347
|
+
mitigationType && mitigationSubTypesListMapped[mitigationType] && (React.createElement(antd.Col, { style: { marginLeft: "38px" } },
|
17348
|
+
React.createElement(antd.Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
|
17349
|
+
{
|
17350
|
+
required: true,
|
17351
|
+
message: "".concat(t("ndcAction:mitigationSubType"), " ").concat(t("ndcAction:isRequired")),
|
17352
|
+
},
|
17353
|
+
] },
|
17354
|
+
React.createElement(antd.Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
|
17355
|
+
width: "249px",
|
17356
|
+
borderRadius: "4px",
|
17357
|
+
}, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType }))))),
|
17358
|
+
React.createElement(antd.Row, { justify: "start", align: "middle" },
|
17359
|
+
React.createElement(antd.Col, { span: 20 },
|
17360
|
+
React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [
|
17361
|
+
{
|
17362
|
+
required: true,
|
17363
|
+
message: "".concat(t("ndcAction:methodology"), " ").concat(t("ndcAction:isRequired")),
|
17364
|
+
},
|
17365
|
+
] },
|
17366
|
+
React.createElement(antd.Select, { size: "large", onChange: handleMethodologyChange, style: {
|
15822
17367
|
borderRadius: "4px",
|
15823
|
-
|
15824
|
-
fontSize: "14px",
|
15825
|
-
backgroundColor: "#F0F0F0",
|
15826
|
-
color: "#8C8C8C",
|
15827
|
-
} },
|
15828
|
-
" ",
|
15829
|
-
t("ndcAction:goldStandard"))))))),
|
17368
|
+
}, value: methodology }, methodologyOptions.map(function (option) { return (React.createElement(antd.Select.Option, { key: option, value: option }, option)); }))))))),
|
15830
17369
|
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
15831
17370
|
ndcActionType === exports.NdcActionTypes.CrossCutting) &&
|
15832
|
-
mitigationType === exports.MitigationTypes.SOLAR &&
|
17371
|
+
mitigationType === exports.MitigationTypes.SOLAR &&
|
17372
|
+
(mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV ||
|
17373
|
+
mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
17374
|
+
mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) && (React.createElement(React.Fragment, null,
|
15833
17375
|
React.createElement(antd.Row, { justify: "start", align: "middle" },
|
15834
17376
|
React.createElement(antd.Col, null,
|
15835
17377
|
React.createElement(antd.Form.Item, { label: t("ndcAction:energyGeneration"), rules: [
|
@@ -15860,16 +17402,17 @@ var NdcActionDetails = function (props) {
|
|
15860
17402
|
},
|
15861
17403
|
] },
|
15862
17404
|
React.createElement(antd.Select, { size: "large", style: { width: 442 }, options: energyGenerationUnitList, onChange: calculateMethodologyEstimatedCredits })))),
|
15863
|
-
React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
|
17405
|
+
mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV && (React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
|
15864
17406
|
{
|
15865
17407
|
required: true,
|
15866
17408
|
message: "".concat(t("ndcAction:consumerGroup"), " ").concat(t("ndcAction:isRequired")),
|
15867
17409
|
},
|
15868
17410
|
] },
|
15869
|
-
React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList })))),
|
17411
|
+
React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList }))))),
|
15870
17412
|
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
15871
17413
|
ndcActionType === exports.NdcActionTypes.CrossCutting) &&
|
15872
|
-
mitigationType === exports.MitigationTypes.AGRICULTURE &&
|
17414
|
+
mitigationType === exports.MitigationTypes.AGRICULTURE &&
|
17415
|
+
mitigationSubType === exports.MitigationSubTypes.RICE_CROPS && (React.createElement(antd.Row, { justify: "start", align: "middle" },
|
15873
17416
|
React.createElement(antd.Col, null,
|
15874
17417
|
React.createElement(antd.Form.Item, { label: t("ndcAction:eligibleLandArea"), name: "eligibleLandArea", rules: [
|
15875
17418
|
{
|
@@ -15899,6 +17442,78 @@ var NdcActionDetails = function (props) {
|
|
15899
17442
|
},
|
15900
17443
|
] },
|
15901
17444
|
React.createElement(antd.Select, { onChange: calculateMethodologyEstimatedCredits, size: "large", style: { width: 442 }, options: landAreaUnitList }))))),
|
17445
|
+
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
17446
|
+
ndcActionType === exports.NdcActionTypes.CrossCutting) &&
|
17447
|
+
mitigationType === exports.MitigationTypes.AGRICULTURE &&
|
17448
|
+
mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR && (React.createElement(antd.Row, { justify: "start", align: "middle" },
|
17449
|
+
React.createElement(antd.Col, null,
|
17450
|
+
React.createElement(antd.Form.Item, { label: t("ndcAction:tonnesOnDryBasis"), name: "tonnesOnDryBasis", rules: [
|
17451
|
+
{
|
17452
|
+
required: true,
|
17453
|
+
message: "",
|
17454
|
+
},
|
17455
|
+
{
|
17456
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
17457
|
+
return __generator(this, function (_a) {
|
17458
|
+
if (String(value).trim() === "" ||
|
17459
|
+
String(value).trim() === undefined ||
|
17460
|
+
value === null ||
|
17461
|
+
value === undefined) {
|
17462
|
+
throw new Error("".concat(t("ndcAction:tonnesOnDryBasis"), " ").concat(t("ndcAction:isRequired")));
|
17463
|
+
}
|
17464
|
+
return [2 /*return*/];
|
17465
|
+
});
|
17466
|
+
}); },
|
17467
|
+
},
|
17468
|
+
] },
|
17469
|
+
React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))))),
|
17470
|
+
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
17471
|
+
ndcActionType === exports.NdcActionTypes.CrossCutting) &&
|
17472
|
+
mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS &&
|
17473
|
+
mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA && (React.createElement(React.Fragment, null,
|
17474
|
+
React.createElement(antd.Row, { justify: "start", align: "middle" },
|
17475
|
+
React.createElement(antd.Col, null,
|
17476
|
+
React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfDays"), rules: [
|
17477
|
+
{
|
17478
|
+
required: true,
|
17479
|
+
message: "",
|
17480
|
+
},
|
17481
|
+
{
|
17482
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
17483
|
+
return __generator(this, function (_a) {
|
17484
|
+
if (String(value).trim() === "" ||
|
17485
|
+
String(value).trim() === undefined ||
|
17486
|
+
value === null ||
|
17487
|
+
value === undefined) {
|
17488
|
+
throw new Error("".concat(t("ndcAction:numberOfDays"), " ").concat(t("ndcAction:isRequired")));
|
17489
|
+
}
|
17490
|
+
return [2 /*return*/];
|
17491
|
+
});
|
17492
|
+
}); },
|
17493
|
+
},
|
17494
|
+
], name: "numberOfDays" },
|
17495
|
+
React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
|
17496
|
+
React.createElement(antd.Col, { style: { marginLeft: "38px" } },
|
17497
|
+
React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfPeople"), rules: [
|
17498
|
+
{
|
17499
|
+
required: true,
|
17500
|
+
message: "",
|
17501
|
+
},
|
17502
|
+
{
|
17503
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
17504
|
+
return __generator(this, function (_a) {
|
17505
|
+
if (String(value).trim() === "" ||
|
17506
|
+
String(value).trim() === undefined ||
|
17507
|
+
value === null ||
|
17508
|
+
value === undefined) {
|
17509
|
+
throw new Error("".concat(t("ndcAction:numberOfPeople"), " ").concat(t("ndcAction:isRequired")));
|
17510
|
+
}
|
17511
|
+
return [2 /*return*/];
|
17512
|
+
});
|
17513
|
+
}); },
|
17514
|
+
},
|
17515
|
+
], name: "numberOfPeople" },
|
17516
|
+
React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits })))))),
|
15902
17517
|
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
15903
17518
|
ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, { justify: "start", align: "middle" },
|
15904
17519
|
React.createElement(antd.Col, null,
|
@@ -18845,26 +20460,55 @@ var NdcActionViewComponent = function (props) {
|
|
18845
20460
|
_a[t("ndcAction:viewCurrentStatus")] = (React.createElement(antd.Tag, { className: "clickable", color: getNdcStatusTagType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status) }, addSpaces(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.status))),
|
18846
20461
|
_a);
|
18847
20462
|
var getNdcActionMitigationDetails = function () {
|
18848
|
-
var _a, _b, _c, _d, _e;
|
20463
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18849
20464
|
var mitigationDetails = {};
|
18850
20465
|
mitigationTypeList === null || mitigationTypeList === void 0 ? void 0 : mitigationTypeList.map(function (type) {
|
18851
20466
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === type.value) {
|
18852
20467
|
mitigationDetails[t("ndcAction:viewMitigationType")] = type.label;
|
18853
20468
|
}
|
18854
20469
|
});
|
20470
|
+
mitigationSubTypeList === null || mitigationSubTypeList === void 0 ? void 0 : mitigationSubTypeList.map(function (type) {
|
20471
|
+
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === type.value) {
|
20472
|
+
mitigationDetails[t("ndcAction:viewMitigationSubType")] = type.label;
|
20473
|
+
}
|
20474
|
+
});
|
18855
20475
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
|
20476
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.RICE_CROPS &&
|
18856
20477
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties)) {
|
18857
20478
|
mitigationDetails[t("ndcAction:viewMitigationLandArea")] =
|
18858
20479
|
addCommSep((_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _a === void 0 ? void 0 : _a.landArea) +
|
18859
20480
|
((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
|
18860
20481
|
}
|
20482
|
+
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
|
20483
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
20484
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
20485
|
+
mitigationDetails[t("ndcAction:viewMitigationWeight")] =
|
20486
|
+
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
|
20487
|
+
}
|
18861
20488
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
20489
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
18862
20490
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
|
18863
20491
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
18864
|
-
addCommSep((
|
18865
|
-
((
|
20492
|
+
addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
|
20493
|
+
((_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.energyGenerationUnit);
|
18866
20494
|
mitigationDetails[t("ndcAction:viewMitigationConsumerGroup")] =
|
18867
|
-
(
|
20495
|
+
(_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
|
20496
|
+
}
|
20497
|
+
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
20498
|
+
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
20499
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
20500
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
20501
|
+
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
20502
|
+
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
20503
|
+
((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
|
20504
|
+
}
|
20505
|
+
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.EE_HOUSEHOLDS &&
|
20506
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
20507
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
20508
|
+
mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
|
20509
|
+
(_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
|
20510
|
+
mitigationDetails[t("ndcAction:viewMitigationNoOfPeople")] =
|
20511
|
+
(_k = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _k === void 0 ? void 0 : _k.numberOfPeopleInHousehold;
|
18868
20512
|
}
|
18869
20513
|
if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.ndcFinancing) {
|
18870
20514
|
mitigationDetails[t("ndcAction:viewMitigationUserEstimatedCredits")] =
|
@@ -19215,6 +20859,7 @@ var CreditTransferComponent = function (props) {
|
|
19215
20859
|
var _y = useSettingsContext(), isTransferFrozen = _y.isTransferFrozen, setTransferFrozen = _y.setTransferFrozen;
|
19216
20860
|
var _z = React.useState([]), ministrySectoralScope = _z[0], setMinistrySectoralScope = _z[1];
|
19217
20861
|
var _0 = React.useState(false), ministryLevelFilter = _0[0], setMinistryLevelFilter = _0[1];
|
20862
|
+
var _1 = React.useState(), dataQuery = _1[0], setDataQuery = _1[1];
|
19218
20863
|
var onStatusQuery = function (checkedValues) { return __awaiter(void 0, void 0, void 0, function () {
|
19219
20864
|
return __generator(this, function (_a) {
|
19220
20865
|
console.log(checkedValues);
|
@@ -19236,6 +20881,11 @@ var CreditTransferComponent = function (props) {
|
|
19236
20881
|
}); };
|
19237
20882
|
antd.Form.useForm()[0];
|
19238
20883
|
var Search = antd.Input.Search;
|
20884
|
+
var ministryLevelPermission = function (sectoralScope) {
|
20885
|
+
return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY &&
|
20886
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly &&
|
20887
|
+
ministrySectoralScope.includes(sectoralScope));
|
20888
|
+
};
|
19239
20889
|
var onCheckAllChange = function (e) {
|
19240
20890
|
var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
|
19241
20891
|
setSelectedStatus(nw);
|
@@ -19313,6 +20963,12 @@ var CreditTransferComponent = function (props) {
|
|
19313
20963
|
console.log(response);
|
19314
20964
|
setTableData(response.data);
|
19315
20965
|
setTotalProgramme(response.response.data.total);
|
20966
|
+
setDataQuery({
|
20967
|
+
filterAnd: filter,
|
20968
|
+
filterOr: dataFilter,
|
20969
|
+
sort: sort,
|
20970
|
+
filterBy: filterBy,
|
20971
|
+
});
|
19316
20972
|
setLoading(false);
|
19317
20973
|
return [3 /*break*/, 4];
|
19318
20974
|
case 3:
|
@@ -19330,8 +20986,47 @@ var CreditTransferComponent = function (props) {
|
|
19330
20986
|
}
|
19331
20987
|
});
|
19332
20988
|
}); };
|
20989
|
+
var downloadTransferData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
20990
|
+
var response, url, a, error_2;
|
20991
|
+
var _a;
|
20992
|
+
return __generator(this, function (_b) {
|
20993
|
+
switch (_b.label) {
|
20994
|
+
case 0:
|
20995
|
+
setLoading(true);
|
20996
|
+
_b.label = 1;
|
20997
|
+
case 1:
|
20998
|
+
_b.trys.push([1, 3, , 4]);
|
20999
|
+
return [4 /*yield*/, post("national/programme/transfers/download", {
|
21000
|
+
filterAnd: dataQuery.filterAnd,
|
21001
|
+
filterOr: ((_a = dataQuery.filterOr) === null || _a === void 0 ? void 0 : _a.length) > 0 ? dataQuery.filterOr : undefined,
|
21002
|
+
sort: dataQuery.sort,
|
21003
|
+
filterBy: dataQuery.filterBy,
|
21004
|
+
})];
|
21005
|
+
case 2:
|
21006
|
+
response = _b.sent();
|
21007
|
+
if (response && response.data) {
|
21008
|
+
url = response.data.url;
|
21009
|
+
a = document.createElement('a');
|
21010
|
+
a.href = url;
|
21011
|
+
a.download = response.data.csvFile; // Specify the filename for the downloaded file
|
21012
|
+
document.body.appendChild(a);
|
21013
|
+
a.click();
|
21014
|
+
document.body.removeChild(a); // Clean up the created <a> element
|
21015
|
+
window.URL.revokeObjectURL(url);
|
21016
|
+
}
|
21017
|
+
setLoading(false);
|
21018
|
+
return [3 /*break*/, 4];
|
21019
|
+
case 3:
|
21020
|
+
error_2 = _b.sent();
|
21021
|
+
console.log("Error in downloading transfer data", error_2);
|
21022
|
+
setLoading(false);
|
21023
|
+
return [3 /*break*/, 4];
|
21024
|
+
case 4: return [2 /*return*/];
|
21025
|
+
}
|
21026
|
+
});
|
21027
|
+
}); };
|
19333
21028
|
var getUserDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
19334
|
-
var response,
|
21029
|
+
var response, error_3;
|
19335
21030
|
var _a, _b, _c, _d, _e, _f;
|
19336
21031
|
return __generator(this, function (_g) {
|
19337
21032
|
switch (_g.label) {
|
@@ -19363,8 +21058,8 @@ var CreditTransferComponent = function (props) {
|
|
19363
21058
|
setLoading(false);
|
19364
21059
|
return [3 /*break*/, 4];
|
19365
21060
|
case 3:
|
19366
|
-
|
19367
|
-
console.log("Error in getting users",
|
21061
|
+
error_3 = _g.sent();
|
21062
|
+
console.log("Error in getting users", error_3);
|
19368
21063
|
setLoading(false);
|
19369
21064
|
return [3 /*break*/, 4];
|
19370
21065
|
case 4: return [2 /*return*/];
|
@@ -19388,7 +21083,7 @@ var CreditTransferComponent = function (props) {
|
|
19388
21083
|
}
|
19389
21084
|
}, []);
|
19390
21085
|
var handleRequestOk = function (reqId, remarks, endpoint, successText, isRetire) { return __awaiter(void 0, void 0, void 0, function () {
|
19391
|
-
var response, successMsg,
|
21086
|
+
var response, successMsg, error_4;
|
19392
21087
|
return __generator(this, function (_a) {
|
19393
21088
|
switch (_a.label) {
|
19394
21089
|
case 0:
|
@@ -19418,10 +21113,10 @@ var CreditTransferComponent = function (props) {
|
|
19418
21113
|
setModalVisible(false);
|
19419
21114
|
return [3 /*break*/, 4];
|
19420
21115
|
case 3:
|
19421
|
-
|
19422
|
-
console.log("Error in Cancelling transfer request",
|
21116
|
+
error_4 = _a.sent();
|
21117
|
+
console.log("Error in Cancelling transfer request", error_4);
|
19423
21118
|
setLoading(false);
|
19424
|
-
return [2 /*return*/,
|
21119
|
+
return [2 /*return*/, error_4.message];
|
19425
21120
|
case 4: return [2 /*return*/];
|
19426
21121
|
}
|
19427
21122
|
});
|
@@ -19496,7 +21191,8 @@ var CreditTransferComponent = function (props) {
|
|
19496
21191
|
], renderItem: function (item) { return (React.createElement(antd.List.Item, { onClick: item.click },
|
19497
21192
|
React.createElement(antd.Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
19498
21193
|
React.createElement("span", null, item.text))); } })) : record.isRetirement &&
|
19499
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
|
21194
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ||
|
21195
|
+
ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(antd.List, { className: "action-menu", size: "small", dataSource: [
|
19500
21196
|
{
|
19501
21197
|
text: t("creditTransfer:recognise"),
|
19502
21198
|
icon: React.createElement(Icon__namespace.Save, null),
|
@@ -19782,7 +21478,13 @@ var CreditTransferComponent = function (props) {
|
|
19782
21478
|
return e.target.value === ""
|
19783
21479
|
? setSearch(e.target.value)
|
19784
21480
|
: setSearchText(e.target.value);
|
19785
|
-
}, onSearch: setSearch, style: { width: 265 } }))
|
21481
|
+
}, onSearch: setSearch, style: { width: 265 } })),
|
21482
|
+
React.createElement("div", { className: "download-data-btn" },
|
21483
|
+
React.createElement("a", { onClick: downloadTransferData },
|
21484
|
+
React.createElement(icons.DownloadOutlined, { style: {
|
21485
|
+
color: "rgba(58, 53, 65, 0.3)",
|
21486
|
+
fontSize: "20px",
|
21487
|
+
} })))))),
|
19786
21488
|
React.createElement(antd.Row, null,
|
19787
21489
|
React.createElement(antd.Col, { span: 24 },
|
19788
21490
|
React.createElement("div", { className: "programmeManagement-table-container" },
|
@@ -25046,6 +26748,9 @@ exports.getStatusTagType = getStatusTagType;
|
|
25046
26748
|
exports.getTransferStageTagType = getTransferStageTagType;
|
25047
26749
|
exports.isBase64 = isBase64;
|
25048
26750
|
exports.landAreaUnitList = landAreaUnitList;
|
26751
|
+
exports.methodologyOptions = methodologyOptions;
|
26752
|
+
exports.mitigationSubTypeList = mitigationSubTypeList;
|
26753
|
+
exports.mitigationSubTypesListMapped = mitigationSubTypesListMapped;
|
25049
26754
|
exports.mitigationTypeList = mitigationTypeList;
|
25050
26755
|
exports.ndcActionTypeList = ndcActionTypeList;
|
25051
26756
|
exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;
|