@undp/carbon-library 1.0.170-CARBON-364.1 → 1.0.170-CARBON-364.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -857,7 +857,7 @@ var CompanyManagementComponent = function (props) {
857
857
  var css_248z$s = ".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-one .space-container {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\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
858
  styleInject(css_248z$s);
859
859
 
860
- var css_248z$r = "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";
860
+ var css_248z$r = "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.space-container {\n width: 100%; }\n .space-container .ant-space-item {\n width: 100%; }\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";
861
861
  styleInject(css_248z$r);
862
862
 
863
863
  exports.UserManagementColumns = void 0;
@@ -961,7 +961,172 @@ exports.MitigationTypes = void 0;
961
961
  MitigationTypes["SOLAR"] = "Solar";
962
962
  MitigationTypes["TRANSPORT"] = "Transport";
963
963
  MitigationTypes["WIND"] = "Wind";
964
+ MitigationTypes["CO2_USAGE"] = "CO2Usage";
965
+ MitigationTypes["TIDAL"] = "Tidal";
964
966
  })(exports.MitigationTypes || (exports.MitigationTypes = {}));
967
+ exports.MitigationSubTypes = void 0;
968
+ (function (MitigationSubTypes) {
969
+ MitigationSubTypes["IRRIGATION"] = "Irrigation";
970
+ MitigationSubTypes["ENERGY_EFFICIENCY"] = "EnergyEfficiency";
971
+ MitigationSubTypes["ALTERNATIVE_FERTILISER"] = "AlternativeFertilisers";
972
+ MitigationSubTypes["NO_TILLAGE"] = "NoTillage";
973
+ MitigationSubTypes["SOIL_ENRICHMENT_BIOCHAR"] = "SoilEnrichmentBiochar";
974
+ MitigationSubTypes["RICE_CROPS"] = "RiceCrops";
975
+ MitigationSubTypes["BAGASSE_POWER"] = "BagassePower";
976
+ MitigationSubTypes["PALM_OIL_SOLID_WASTE"] = "Palm oil solid waste";
977
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_OTHER_KINDS"] = "AgriculturalResiduesOtherKinds";
978
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_RICE_HUSK"] = "AgriculturalResiduesRiceHusk";
979
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_MUSTARD_CROP"] = "AgriculturalResiduesMustardCrop";
980
+ MitigationSubTypes["AGRICULTURAL_RESIDUES_POULTRY_LITTER"] = "AgriculturalResiduesPoultryLitter";
981
+ MitigationSubTypes["BLACK_LIQUOR"] = "BlackLiquor";
982
+ MitigationSubTypes["FOREST_RESIDUES_SAWMILL_WASTE"] = "ForestResiduesSawmillWaste";
983
+ MitigationSubTypes["FOREST_RESIDUES_OTHER"] = "ForestResiduesOther";
984
+ MitigationSubTypes["FOREST_BIOMASS"] = "ForestBiomass";
985
+ MitigationSubTypes["INDUSTRIAL_WASTE"] = "IndustrialWaste";
986
+ MitigationSubTypes["GASIFICATION_OF_BIOMASS"] = "GasificationOfBiomass";
987
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS"] = "SwitchFromFossilFuelToPipedBiogas";
988
+ MitigationSubTypes["BIOMASS_BRIQUETTES_OR_PELLETS"] = "BiomassBriquettesOrPellets";
989
+ MitigationSubTypes["BIODIESEL"] = "Biodiesel";
990
+ MitigationSubTypes["BIODIESEL_FROM_WASTE_OIL"] = "BiodieselFromWasteOil";
991
+ MitigationSubTypes["ETHANOL"] = "Ethanol";
992
+ MitigationSubTypes["CLINKER_REPLACEMENT"] = "ClinkerReplacement";
993
+ MitigationSubTypes["COAL_MINE_METHANE"] = "CoalMineMethane";
994
+ MitigationSubTypes["COAL_BED_METHANE"] = "CoalBedMethane";
995
+ MitigationSubTypes["CMM_VENTILATION_AIR_METHANE"] = "CMMVentilationAirMethane";
996
+ MitigationSubTypes["VENTILATION_AIR_METHANE"] = "VentilationAirMethane";
997
+ MitigationSubTypes["LIGHTING"] = "Lighting";
998
+ MitigationSubTypes["SOLAR_LAMPS"] = "SolarLamps";
999
+ MitigationSubTypes["STOVES"] = "Stoves";
1000
+ MitigationSubTypes["STOVES_SCHOOL_IN_GHANA"] = "StovesSchoolInGhana";
1001
+ MitigationSubTypes["STOVES_HOUSES_IN_NAMIBIA"] = "StovesHousesInNamibia";
1002
+ MitigationSubTypes["LIGHTING_INSULATION_SOLAR"] = "LightingInsulationSolar";
1003
+ MitigationSubTypes["APPLIANCES"] = "Appliances";
1004
+ MitigationSubTypes["CHEMICALS"] = "Chemicals";
1005
+ MitigationSubTypes["PETROCHEMICALS"] = "Petrochemicals";
1006
+ MitigationSubTypes["PAPER"] = "Paper";
1007
+ MitigationSubTypes["CEMENT"] = "Cement";
1008
+ MitigationSubTypes["IRON_STEEL"] = "IronSteel";
1009
+ MitigationSubTypes["MACHINERY"] = "Machinery";
1010
+ MitigationSubTypes["TEXTILES"] = "Textiles";
1011
+ MitigationSubTypes["ELECTRONICS"] = "Electronics";
1012
+ MitigationSubTypes["FOOD"] = "Food";
1013
+ MitigationSubTypes["BUILDING_MATERIALS"] = "BuildingMaterials";
1014
+ MitigationSubTypes["GLASS"] = "Glass";
1015
+ MitigationSubTypes["NON_FERROUS_METALS"] = "NonFerrousMetals";
1016
+ MitigationSubTypes["COKE_OVEN"] = "CokeOven";
1017
+ MitigationSubTypes["Mining"] = "Mining";
1018
+ MitigationSubTypes["CONSTRUCTION"] = "Construction";
1019
+ MitigationSubTypes["METAL_PRODUCTS"] = "MetalProducts";
1020
+ MitigationSubTypes["WOOD"] = "Wood";
1021
+ MitigationSubTypes["RECYCLING"] = "Recycling";
1022
+ MitigationSubTypes["CHEMICALS_HEAT"] = "ChemicalsHeat";
1023
+ MitigationSubTypes["PETROCHEMICALS_HEAT"] = "PetrochemicalsHeat";
1024
+ MitigationSubTypes["CARBON_BLACK_GAS"] = "CarbonBlackGas";
1025
+ MitigationSubTypes["CEMENT_HEAT"] = "CementHeat";
1026
+ MitigationSubTypes["IRON_STEEL_HEAT"] = "IronSteelHeat";
1027
+ MitigationSubTypes["BUILDING_MATERIALS_HEAT"] = "BuildingMaterialsHeat";
1028
+ MitigationSubTypes["GLASS_HEAT"] = "GlassHeat";
1029
+ MitigationSubTypes["NON_FERROUS_METALS_HEAT"] = "NonFerrousMetalsHeat";
1030
+ MitigationSubTypes["COKE_OVEN_GAS"] = "CokeOvenGas";
1031
+ MitigationSubTypes["HVAC_LIGHTING"] = "HvacLighting";
1032
+ MitigationSubTypes["AIR_CONDITIONING"] = "AirConditioning";
1033
+ MitigationSubTypes["EE_NEW_BUILDINGS"] = "EeNewBuildings";
1034
+ MitigationSubTypes["STREET_LIGHTING"] = "StreetLighting";
1035
+ MitigationSubTypes["LIGHTING_IN_SERVICE"] = "LightingInService";
1036
+ MitigationSubTypes["WATER_PUMPING"] = "WaterPumping";
1037
+ MitigationSubTypes["WATER_PURIFICATION"] = "WaterPurification";
1038
+ MitigationSubTypes["EE_PUBLIC_STOVES"] = "EePublicStoves";
1039
+ MitigationSubTypes["EE_PUBLIC_BUILDINGS"] = "EePublicBuildings";
1040
+ MitigationSubTypes["EE_COMMERCIAL_BUILDINGS"] = "EeCommercialBuildings";
1041
+ MitigationSubTypes["SINGLE_CYCLE_TO_COMBINED_CYCLE"] = "SingleCycleToCombinedCycle";
1042
+ MitigationSubTypes["COGENERATION"] = "Cogeneration";
1043
+ MitigationSubTypes["CO_FIRING_WITH_BIOMASS"] = "CoFiringWithBiomass";
1044
+ MitigationSubTypes["HIGHER_EFFICIENCY_COAL_POWER"] = "HigherEfficiencyCoalPower";
1045
+ MitigationSubTypes["HIGHER_EFFICIENCY_OIL_POWER"] = "HigherEfficiencyOilPower";
1046
+ MitigationSubTypes["HIGHER_EFFICIENCY_USING_WASTE_HEAT"] = "HigherEfficiencyUsingWasteHeat";
1047
+ MitigationSubTypes["POWER_PLANT_REHABILITATION"] = "PowerPlantRehabilitation";
1048
+ MitigationSubTypes["HIGHER_EFFICIENCY_STEAM_BOILER"] = "HigherEfficiencySteamBoiler";
1049
+ MitigationSubTypes["DISTRICT_HEATING"] = "DistrictHeating";
1050
+ MitigationSubTypes["REPLACEMENT_OF_DISTRICT_HEATING_BOILERS"] = "ReplacementOfDistrictHeatingBoilers";
1051
+ MitigationSubTypes["CONNECTION_OF_ISOLATED_GRID"] = "ConnectionOfIsolatedGrid";
1052
+ MitigationSubTypes["DISTRICT_COOLING"] = "DistrictCooling";
1053
+ MitigationSubTypes["EFFICIENT_ELECTRICITY_DISTRIBUTION"] = "EfficientElectricityDistribution";
1054
+ MitigationSubTypes["AFFORESTATION"] = "Afforestation";
1055
+ MitigationSubTypes["MANGROVES"] = "Mangroves";
1056
+ MitigationSubTypes["AGROFORESTRY"] = "Agroforestry";
1057
+ MitigationSubTypes["REFORESTATION"] = "Reforestation";
1058
+ MitigationSubTypes["COAL_TO_NATURAL_GAS"] = "CoalToNaturalGas";
1059
+ MitigationSubTypes["COAL_TO_OIL"] = "CoalToOil";
1060
+ MitigationSubTypes["LIGNITE_TO_NATURAL_GAS"] = "LigniteToNaturalGas";
1061
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT"] = "NewNaturalGasPlant";
1062
+ MitigationSubTypes["NEW_NATURAL_GAS_PLANT_USING_LNG"] = "NewNaturalGasPlantUsingLng";
1063
+ MitigationSubTypes["OIL_TO_ELECTRICITY"] = "OilToElectricity";
1064
+ MitigationSubTypes["OIL_TO_LPG"] = "OilToLpg";
1065
+ MitigationSubTypes["OIL_TO_NATURAL_GAS"] = "OilToNaturalGas";
1066
+ MitigationSubTypes["OIL_FIELD_FLARING_REDUCTION"] = "OilFieldFlaringReduction";
1067
+ MitigationSubTypes["OIL_AND_GAS_PROCESSING_FLARING"] = "OilAndGasProcessingFlaring";
1068
+ MitigationSubTypes["NATURAL_GAS_PIPELINES"] = "NaturalGasPipelines";
1069
+ MitigationSubTypes["NON_HYDROCARBON_MINING"] = "NonHydrocarbonMining";
1070
+ MitigationSubTypes["SPONTANEOUSLY_IGNITION_OF_COAL_PILES"] = "SpontaneouslyIgnitionOfCoalPiles";
1071
+ MitigationSubTypes["CHARCOAL_PRODUCTION"] = "CharcoalProduction";
1072
+ MitigationSubTypes["GEOTHERMAL_ELECTRICITY"] = "GeothermalElectricity";
1073
+ MitigationSubTypes["GEOTHERMAL_HEATING"] = "GeothermalHeating";
1074
+ MitigationSubTypes["HFC23"] = "Hfc23";
1075
+ MitigationSubTypes["HFC134A"] = "Hfc134A";
1076
+ MitigationSubTypes["PFCS"] = "Pfcs";
1077
+ MitigationSubTypes["SF6"] = "Sf6";
1078
+ MitigationSubTypes["RUN_OF_RIVER"] = "RunOfRiver";
1079
+ MitigationSubTypes["EXISTING_DAM"] = "ExistingDam";
1080
+ MitigationSubTypes["HIGHER_EFFICIENCY_HYDRO_POWER"] = "HigherEfficiencyHydroPower";
1081
+ MitigationSubTypes["NEW_DAM"] = "NewDam";
1082
+ MitigationSubTypes["LANDFILL_FLARING"] = "LandfillFlaring";
1083
+ MitigationSubTypes["LANDFILL_POWER"] = "LandfillPower";
1084
+ MitigationSubTypes["COMBUSTION_OF_MSW"] = "CombustionOfMsw";
1085
+ MitigationSubTypes["GASIFICATION_OF_MSW"] = "GasificationOfMsw";
1086
+ MitigationSubTypes["BIOGAS_FROM_MSW"] = "BiogasFromMsw";
1087
+ MitigationSubTypes["LANDFILL_AERATION"] = "LandfillAeration";
1088
+ MitigationSubTypes["INTEGRATED_SOLID_WASTE_MANAGEMENT"] = "IntegratedSolidWasteManagement";
1089
+ MitigationSubTypes["SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS"] = "SwitchFromFossilFuelToPipedLandfillGas";
1090
+ MitigationSubTypes["LANDFILL_COMPOSTING"] = "LandfillComposting";
1091
+ MitigationSubTypes["MANURE"] = "Manure";
1092
+ MitigationSubTypes["DOMESTIC_MANURE"] = "DomesticManure";
1093
+ MitigationSubTypes["WASTE_WATER"] = "WasteWater";
1094
+ MitigationSubTypes["INDUSTRIAL_SOLID_WASTE"] = "IndustrialSolidWaste";
1095
+ MitigationSubTypes["PALM_OIL_WASTE"] = "PalmOilWaste";
1096
+ MitigationSubTypes["AEROBIC_TREATMENT_OF_WASTE_WATER"] = "AerobicTreatmentOfWasteWater";
1097
+ MitigationSubTypes["COMPOSTING"] = "Composting";
1098
+ MitigationSubTypes["ADIPIC_ACID"] = "AdipicAcid";
1099
+ MitigationSubTypes["NITRIC_ACID"] = "NitricAcid";
1100
+ MitigationSubTypes["CAPROLACTAM"] = "Caprolactam";
1101
+ MitigationSubTypes["SOLAR_PHOTOVOLTAICS_PV"] = "SolarPhotovoltaicsPV";
1102
+ MitigationSubTypes["SOLAR_WATER_PUMPING_OFF_GRID"] = "SolarWaterPumpingOffGrid";
1103
+ MitigationSubTypes["SOLAR_WATER_PUMPING_ON_GRID"] = "SolarWaterPumpingOnGrid";
1104
+ MitigationSubTypes["SOLAR_PV_WATER_DISINFECTION"] = "SolarPVWaterDisinfection";
1105
+ MitigationSubTypes["SOLAR_THERMAL_POWER"] = "SolarThermalPower";
1106
+ MitigationSubTypes["SOLAR_THERMAL_HEAT"] = "SolarThermalHeat";
1107
+ MitigationSubTypes["SOLAR_WATER_HEATING"] = "SolarWaterHeating";
1108
+ MitigationSubTypes["SOLAR_COOKING"] = "SolarCooking";
1109
+ MitigationSubTypes["BUS_RAPID_TRANSIT"] = "BusRapidTransit";
1110
+ MitigationSubTypes["BUS_RAPID_TRANSIT_GREEN_HYDROGEN"] = "BusRapidTransitGreenHydrogen";
1111
+ MitigationSubTypes["MOTORBIKES"] = "Motorbikes";
1112
+ MitigationSubTypes["MODE_SHIFT_ROAD_TO_RAIL"] = "ModeShiftRoadToRail";
1113
+ MitigationSubTypes["MORE_EFFICIENT_TRAIN_SYSTEM"] = "MoreEfficientTrainSystem";
1114
+ MitigationSubTypes["MORE_EFFICIENT_VEHICLES"] = "MoreEfficientVehicles";
1115
+ MitigationSubTypes["RAIL_REGENERATIVE_BRAKING"] = "RailRegenerativeBraking";
1116
+ MitigationSubTypes["RAIL_GREEN_HYDROGEN"] = "RailGreenHydrogen";
1117
+ MitigationSubTypes["RAIL_EFFICIENT_OPERATION"] = "RailEfficientOperation";
1118
+ MitigationSubTypes["METRO_EFFICIENT_OPERATION"] = "MetroEfficientOperation";
1119
+ MitigationSubTypes["CARS_GREEN_HYDROGEN"] = "CarsGreenHydrogen";
1120
+ MitigationSubTypes["CARS_EFFICIENT_OPERATION"] = "CarsEfficientOperation";
1121
+ MitigationSubTypes["SCRAPPING_OLD_VEHICLES"] = "ScrappingOldVehicles";
1122
+ MitigationSubTypes["BIODIESEL_FOR_TRANSPORT"] = "BiodieselForTransport";
1123
+ MitigationSubTypes["CABLE_CARS"] = "CableCars";
1124
+ MitigationSubTypes["WIND"] = "Wind";
1125
+ MitigationSubTypes["OFFSHORE_WIND"] = "OffshoreWind";
1126
+ MitigationSubTypes["CO2_RECYCLING"] = "CO2Recycling";
1127
+ MitigationSubTypes["CO2_REPLACEMENT"] = "CO2Replacement";
1128
+ MitigationSubTypes["TIDAL"] = "Tidal";
1129
+ })(exports.MitigationSubTypes || (exports.MitigationSubTypes = {}));
965
1130
  var mitigationTypeList = [
966
1131
  { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
967
1132
  { value: exports.MitigationTypes.SOLAR.valueOf(), label: "Solar" },
@@ -1002,6 +1167,8 @@ var mitigationTypeList = [
1002
1167
  { value: exports.MitigationTypes.N20.valueOf(), label: "N2O" },
1003
1168
  { value: exports.MitigationTypes.TRANSPORT.valueOf(), label: "Transport" },
1004
1169
  { value: exports.MitigationTypes.WIND.valueOf(), label: "Wind" },
1170
+ { value: exports.MitigationTypes.CO2_USAGE.valueOf(), label: "CO2 usage" },
1171
+ { value: exports.MitigationTypes.TIDAL.valueOf(), label: "Tidal" },
1005
1172
  ];
1006
1173
  var sectorMitigationTypesListMapped = {
1007
1174
  Energy: [
@@ -1058,13 +1225,793 @@ var sectorMitigationTypesListMapped = {
1058
1225
  },
1059
1226
  ],
1060
1227
  Agriculture: [
1061
- { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
1228
+ { value: exports.MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" }
1062
1229
  ],
1063
1230
  Other: [
1064
1231
  { value: exports.MitigationTypes.MARINE.valueOf(), label: "Marine" },
1065
1232
  { value: exports.MitigationTypes.N20.valueOf(), label: "N2O" },
1233
+ { value: exports.MitigationTypes.CO2_USAGE.valueOf(), label: "CO2 usage" },
1234
+ { value: exports.MitigationTypes.TIDAL.valueOf(), label: "Tidal" },
1066
1235
  ],
1067
1236
  };
1237
+ var mitigationSubTypeList = [
1238
+ { label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
1239
+ { label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1240
+ { label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1241
+ { label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
1242
+ { label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1243
+ { label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
1244
+ { label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
1245
+ { label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1246
+ { label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1247
+ { label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1248
+ { label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1249
+ { label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1250
+ { label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1251
+ { label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1252
+ { label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1253
+ { label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1254
+ { label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1255
+ { label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1256
+ { label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1257
+ { label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1258
+ { label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
1259
+ { label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1260
+ { label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
1261
+ { label: "Clinker replacement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1262
+ { label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1263
+ { label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1264
+ { label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1265
+ { label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1266
+ { label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
1267
+ { label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1268
+ { label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
1269
+ { label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1270
+ { label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1271
+ { label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1272
+ { label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
1273
+ { label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1274
+ { label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
1275
+ { label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
1276
+ { label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
1277
+ { label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
1278
+ { label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
1279
+ { label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
1280
+ { label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
1281
+ { label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
1282
+ { label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1283
+ { label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
1284
+ { label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1285
+ { label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
1286
+ { label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
1287
+ { label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
1288
+ { label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1289
+ { label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
1290
+ { label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
1291
+ { label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1292
+ { label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1293
+ { label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1294
+ { label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
1295
+ { label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1296
+ { label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1297
+ { label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
1298
+ { label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1299
+ { label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1300
+ { label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1301
+ { label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1302
+ { label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1303
+ { label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
1304
+ { label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1305
+ { label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
1306
+ { label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1307
+ { label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1308
+ { label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1309
+ { label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1310
+ { label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1311
+ { label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
1312
+ { label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1313
+ { label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1314
+ { label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1315
+ { label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1316
+ { label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1317
+ { label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1318
+ { label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1319
+ { label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1320
+ { label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1321
+ { label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1322
+ { label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1323
+ { label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
1324
+ { label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
1325
+ { label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
1326
+ { label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
1327
+ { label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1328
+ { label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
1329
+ { label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1330
+ { label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1331
+ { label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1332
+ { label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1333
+ { label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
1334
+ { label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1335
+ { label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1336
+ { label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1337
+ { label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1338
+ { label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1339
+ { label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1340
+ { label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1341
+ { label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1342
+ { label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1343
+ { label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
1344
+ { label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
1345
+ { label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
1346
+ { label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
1347
+ { label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1348
+ { label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
1349
+ { label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1350
+ { label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
1351
+ { label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1352
+ { label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
1353
+ { label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1354
+ { label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1355
+ { label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1356
+ { label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1357
+ { label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1358
+ { label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1359
+ { label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1360
+ { label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
1361
+ { label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1362
+ { label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
1363
+ { label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1364
+ { label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1365
+ { label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1366
+ { label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
1367
+ { label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
1368
+ { label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
1369
+ { label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
1370
+ { label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1371
+ { label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1372
+ { label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1373
+ { label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1374
+ { label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1375
+ { label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1376
+ { label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1377
+ { label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
1378
+ { label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1379
+ { label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1380
+ { label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
1381
+ { label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1382
+ { label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1383
+ { label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1384
+ { label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1385
+ { label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1386
+ { label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1387
+ { label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1388
+ { label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1389
+ { label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1390
+ { label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1391
+ { label: "Biodiesel for transport", value: exports.MitigationSubTypes.BIODIESEL_FOR_TRANSPORT.valueOf() },
1392
+ { label: "Cable cars", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
1393
+ { label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
1394
+ { label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1395
+ { label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
1396
+ { label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1397
+ { label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
1398
+ ];
1399
+ var mitigationSubTypesListMapped = {
1400
+ Agriculture: [
1401
+ { label: "Irrigation", value: exports.MitigationSubTypes.IRRIGATION.valueOf() },
1402
+ { label: "Energy efficiency", value: exports.MitigationSubTypes.ENERGY_EFFICIENCY.valueOf() },
1403
+ { label: "Alternative fertilisers", value: exports.MitigationSubTypes.ALTERNATIVE_FERTILISER.valueOf() },
1404
+ { label: "No tillage", value: exports.MitigationSubTypes.NO_TILLAGE.valueOf() },
1405
+ { label: "Soil Enrichment / Biochar", value: exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR.valueOf() },
1406
+ { label: "Rice crops", value: exports.MitigationSubTypes.RICE_CROPS.valueOf() },
1407
+ ],
1408
+ BiomassEnergy: [
1409
+ { label: "Bagasse power", value: exports.MitigationSubTypes.BAGASSE_POWER.valueOf() },
1410
+ { label: "Palm oil solid waste", value: exports.MitigationSubTypes.PALM_OIL_SOLID_WASTE.valueOf() },
1411
+ { label: "Agricultural residues: other kinds", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_OTHER_KINDS.valueOf() },
1412
+ { label: "Agricultural residues: rice husk", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_RICE_HUSK.valueOf() },
1413
+ { label: "Agricultural residues: mustard crop", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_MUSTARD_CROP.valueOf() },
1414
+ { label: "Agricultural residues: poultry litter", value: exports.MitigationSubTypes.AGRICULTURAL_RESIDUES_POULTRY_LITTER.valueOf() },
1415
+ { label: "Black liquor", value: exports.MitigationSubTypes.BLACK_LIQUOR.valueOf() },
1416
+ { label: "Forest residues: sawmill waste", value: exports.MitigationSubTypes.FOREST_RESIDUES_SAWMILL_WASTE.valueOf() },
1417
+ { label: "Forest residues: other", value: exports.MitigationSubTypes.FOREST_RESIDUES_OTHER.valueOf() },
1418
+ { label: "Forest biomass", value: exports.MitigationSubTypes.FOREST_BIOMASS.valueOf() },
1419
+ { label: "Industrial waste", value: exports.MitigationSubTypes.INDUSTRIAL_WASTE.valueOf() },
1420
+ { label: "Gasification of biomass", value: exports.MitigationSubTypes.GASIFICATION_OF_BIOMASS.valueOf() },
1421
+ { label: "Switch from fossil fuel to piped biogas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_BIOGAS.valueOf() },
1422
+ { label: "Biomass briquettes or pellets", value: exports.MitigationSubTypes.BIOMASS_BRIQUETTES_OR_PELLETS.valueOf() },
1423
+ { label: "Biodiesel", value: exports.MitigationSubTypes.BIODIESEL.valueOf() },
1424
+ { label: "Biodiesel from waste oil", value: exports.MitigationSubTypes.BIODIESEL_FROM_WASTE_OIL.valueOf() },
1425
+ { label: "Ethanol", value: exports.MitigationSubTypes.ETHANOL.valueOf() },
1426
+ ],
1427
+ Cement: [
1428
+ { label: "Clinker replacement", value: exports.MitigationSubTypes.CLINKER_REPLACEMENT.valueOf() },
1429
+ ],
1430
+ "Coal/Mine": [
1431
+ { label: "Coal Mine Methane", value: exports.MitigationSubTypes.COAL_MINE_METHANE.valueOf() },
1432
+ { label: "Coal Bed Methane", value: exports.MitigationSubTypes.COAL_BED_METHANE.valueOf() },
1433
+ { label: "CMM & Ventilation Air Methane", value: exports.MitigationSubTypes.CMM_VENTILATION_AIR_METHANE.valueOf() },
1434
+ { label: "Ventilation Air Methane", value: exports.MitigationSubTypes.VENTILATION_AIR_METHANE.valueOf() },
1435
+ ],
1436
+ EEHouseholds: [
1437
+ { label: "Lighting", value: exports.MitigationSubTypes.LIGHTING.valueOf() },
1438
+ { label: "Solar lamps", value: exports.MitigationSubTypes.SOLAR_LAMPS.valueOf() },
1439
+ { label: "Stoves", value: exports.MitigationSubTypes.STOVES.valueOf() },
1440
+ { label: "Stoves (School in Ghana)", value: exports.MitigationSubTypes.STOVES_SCHOOL_IN_GHANA.valueOf() },
1441
+ { label: "Stoves (Houses in Namibia)", value: exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA.valueOf() },
1442
+ { label: "Lighting & Insulation & Solar", value: exports.MitigationSubTypes.LIGHTING_INSULATION_SOLAR.valueOf() },
1443
+ { label: "Appliances", value: exports.MitigationSubTypes.APPLIANCES.valueOf() },
1444
+ ],
1445
+ EEIndustry: [
1446
+ { label: "Chemicals", value: exports.MitigationSubTypes.CHEMICALS.valueOf() },
1447
+ { label: "Petrochemicals", value: exports.MitigationSubTypes.PETROCHEMICALS.valueOf() },
1448
+ { label: "Paper", value: exports.MitigationSubTypes.PAPER.valueOf() },
1449
+ { label: "Cement", value: exports.MitigationSubTypes.CEMENT.valueOf() },
1450
+ { label: "Iron & steel ", value: exports.MitigationSubTypes.IRON_STEEL.valueOf() },
1451
+ { label: "Machinery", value: exports.MitigationSubTypes.MACHINERY.valueOf() },
1452
+ { label: "Textiles", value: exports.MitigationSubTypes.TEXTILES.valueOf() },
1453
+ { label: "Electronics", value: exports.MitigationSubTypes.ELECTRONICS.valueOf() },
1454
+ { label: "Food", value: exports.MitigationSubTypes.FOOD.valueOf() },
1455
+ { label: "Building materials", value: exports.MitigationSubTypes.BUILDING_MATERIALS.valueOf() },
1456
+ { label: "Glass", value: exports.MitigationSubTypes.GLASS.valueOf() },
1457
+ { label: "Non-ferrous metals", value: exports.MitigationSubTypes.NON_FERROUS_METALS.valueOf() },
1458
+ { label: "Coke oven", value: exports.MitigationSubTypes.COKE_OVEN.valueOf() },
1459
+ { label: "Mining", value: exports.MitigationSubTypes.Mining.valueOf() },
1460
+ { label: "Construction", value: exports.MitigationSubTypes.CONSTRUCTION.valueOf() },
1461
+ { label: "Metal products", value: exports.MitigationSubTypes.METAL_PRODUCTS.valueOf() },
1462
+ { label: "Wood", value: exports.MitigationSubTypes.WOOD.valueOf() },
1463
+ { label: "Recycling", value: exports.MitigationSubTypes.RECYCLING.valueOf() },
1464
+ ],
1465
+ EEOwnGeneration: [
1466
+ { label: "Chemicals heat", value: exports.MitigationSubTypes.CHEMICALS_HEAT.valueOf() },
1467
+ { label: "Petrochemicals heat", value: exports.MitigationSubTypes.PETROCHEMICALS_HEAT.valueOf() },
1468
+ { label: "Carbon black gas", value: exports.MitigationSubTypes.CARBON_BLACK_GAS.valueOf() },
1469
+ { label: "Cement heat", value: exports.MitigationSubTypes.CEMENT_HEAT.valueOf() },
1470
+ { label: "Iron & steel heat", value: exports.MitigationSubTypes.IRON_STEEL_HEAT.valueOf() },
1471
+ { label: "Building materials heat", value: exports.MitigationSubTypes.BUILDING_MATERIALS_HEAT.valueOf() },
1472
+ { label: "Glass heat", value: exports.MitigationSubTypes.GLASS_HEAT.valueOf() },
1473
+ { label: "Non-ferrous metals heat", value: exports.MitigationSubTypes.NON_FERROUS_METALS_HEAT.valueOf() },
1474
+ { label: "Coke oven gas", value: exports.MitigationSubTypes.COKE_OVEN_GAS.valueOf() },
1475
+ ],
1476
+ EEService: [
1477
+ { label: "HVAC & lighting", value: exports.MitigationSubTypes.HVAC_LIGHTING.valueOf() },
1478
+ { label: "Air conditioning", value: exports.MitigationSubTypes.AIR_CONDITIONING.valueOf() },
1479
+ { label: "EE new buildings", value: exports.MitigationSubTypes.EE_NEW_BUILDINGS.valueOf() },
1480
+ { label: "Street lighting", value: exports.MitigationSubTypes.STREET_LIGHTING.valueOf() },
1481
+ { label: "Lighting in service", value: exports.MitigationSubTypes.LIGHTING_IN_SERVICE.valueOf() },
1482
+ { label: "Water pumping", value: exports.MitigationSubTypes.WATER_PUMPING.valueOf() },
1483
+ { label: "Water purification", value: exports.MitigationSubTypes.WATER_PURIFICATION.valueOf() },
1484
+ { label: "EE public stoves", value: exports.MitigationSubTypes.EE_PUBLIC_STOVES.valueOf() },
1485
+ { label: "EE public buildings", value: exports.MitigationSubTypes.EE_PUBLIC_BUILDINGS.valueOf() },
1486
+ { label: "EE commercial buildings", value: exports.MitigationSubTypes.EE_COMMERCIAL_BUILDINGS.valueOf() },
1487
+ ],
1488
+ EESupplySide: [
1489
+ { label: "Single cycle to combined cycle", value: exports.MitigationSubTypes.SINGLE_CYCLE_TO_COMBINED_CYCLE.valueOf() },
1490
+ { label: "Cogeneration", value: exports.MitigationSubTypes.COGENERATION.valueOf() },
1491
+ { label: "Co-firing with biomass", value: exports.MitigationSubTypes.CO_FIRING_WITH_BIOMASS.valueOf() },
1492
+ { label: "Higher efficiency coal power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_COAL_POWER.valueOf() },
1493
+ { label: "Higher efficiency oil power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_OIL_POWER.valueOf() },
1494
+ { label: "Higher efficiency using waste heat", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_USING_WASTE_HEAT.valueOf() },
1495
+ { label: "Power plant rehabilitation", value: exports.MitigationSubTypes.POWER_PLANT_REHABILITATION.valueOf() },
1496
+ { label: "Higher efficiency steam boiler", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_STEAM_BOILER.valueOf() },
1497
+ ],
1498
+ EnergyDistribution: [
1499
+ { label: "District heating", value: exports.MitigationSubTypes.DISTRICT_HEATING.valueOf() },
1500
+ { label: "Replacement of district heating boilers", value: exports.MitigationSubTypes.REPLACEMENT_OF_DISTRICT_HEATING_BOILERS.valueOf() },
1501
+ { label: "Connection of Isolated grid", value: exports.MitigationSubTypes.CONNECTION_OF_ISOLATED_GRID.valueOf() },
1502
+ { label: "District cooling", value: exports.MitigationSubTypes.DISTRICT_COOLING.valueOf() },
1503
+ { label: "Efficient electricity distribution", value: exports.MitigationSubTypes.EFFICIENT_ELECTRICITY_DISTRIBUTION.valueOf() },
1504
+ ],
1505
+ Forestry: [
1506
+ { label: "Afforestation", value: exports.MitigationSubTypes.AFFORESTATION.valueOf() },
1507
+ { label: "Mangroves", value: exports.MitigationSubTypes.MANGROVES.valueOf() },
1508
+ { label: "Agroforestry", value: exports.MitigationSubTypes.AGROFORESTRY.valueOf() },
1509
+ { label: "Reforestation", value: exports.MitigationSubTypes.REFORESTATION.valueOf() },
1510
+ ],
1511
+ FossilFuel: [
1512
+ { label: "Coal to natural gas", value: exports.MitigationSubTypes.COAL_TO_NATURAL_GAS.valueOf() },
1513
+ { label: "Coal to oil", value: exports.MitigationSubTypes.COAL_TO_OIL.valueOf() },
1514
+ { label: "Lignite to natural gas", value: exports.MitigationSubTypes.LIGNITE_TO_NATURAL_GAS.valueOf() },
1515
+ { label: "New natural gas plant", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT.valueOf() },
1516
+ { label: "New natural gas plant using LNG", value: exports.MitigationSubTypes.NEW_NATURAL_GAS_PLANT_USING_LNG.valueOf() },
1517
+ { label: "Oil to electricity", value: exports.MitigationSubTypes.OIL_TO_ELECTRICITY.valueOf() },
1518
+ { label: "Oil to LPG", value: exports.MitigationSubTypes.OIL_TO_LPG.valueOf() },
1519
+ { label: "Oil to natural gas", value: exports.MitigationSubTypes.OIL_TO_NATURAL_GAS.valueOf() },
1520
+ ],
1521
+ Fugitive: [
1522
+ { label: "Oil field flaring reduction", value: exports.MitigationSubTypes.OIL_FIELD_FLARING_REDUCTION.valueOf() },
1523
+ { label: "Oil and gas processing flaring", value: exports.MitigationSubTypes.OIL_AND_GAS_PROCESSING_FLARING.valueOf() },
1524
+ { label: "Natural gas pipelines", value: exports.MitigationSubTypes.NATURAL_GAS_PIPELINES.valueOf() },
1525
+ { label: "Non-hydrocarbon mining", value: exports.MitigationSubTypes.NON_HYDROCARBON_MINING.valueOf() },
1526
+ { label: "Spontaneously ignition of coal piles", value: exports.MitigationSubTypes.SPONTANEOUSLY_IGNITION_OF_COAL_PILES.valueOf() },
1527
+ { label: "Charcoal production", value: exports.MitigationSubTypes.CHARCOAL_PRODUCTION.valueOf() },
1528
+ ],
1529
+ Geothermal: [
1530
+ { label: "Geothermal electricity", value: exports.MitigationSubTypes.GEOTHERMAL_ELECTRICITY.valueOf() },
1531
+ { label: "Geothermal heating", value: exports.MitigationSubTypes.GEOTHERMAL_HEATING.valueOf() },
1532
+ ],
1533
+ HFC_PFCs_SF6: [
1534
+ { label: "HFC23", value: exports.MitigationSubTypes.HFC23.valueOf() },
1535
+ { label: "HFC134a", value: exports.MitigationSubTypes.HFC134A.valueOf() },
1536
+ { label: "PFCs", value: exports.MitigationSubTypes.PFCS.valueOf() },
1537
+ { label: "SF6", value: exports.MitigationSubTypes.SF6.valueOf() },
1538
+ ],
1539
+ Hydro: [
1540
+ { label: "Run of river", value: exports.MitigationSubTypes.RUN_OF_RIVER.valueOf() },
1541
+ { label: "Existing dam", value: exports.MitigationSubTypes.EXISTING_DAM.valueOf() },
1542
+ { label: "Higher efficiency hydro power", value: exports.MitigationSubTypes.HIGHER_EFFICIENCY_HYDRO_POWER.valueOf() },
1543
+ { label: "New dam", value: exports.MitigationSubTypes.NEW_DAM.valueOf() },
1544
+ ],
1545
+ Landfills: [
1546
+ { label: "Landfill flaring", value: exports.MitigationSubTypes.LANDFILL_FLARING.valueOf() },
1547
+ { label: "Landfill power", value: exports.MitigationSubTypes.LANDFILL_POWER.valueOf() },
1548
+ { label: "Combustion of MSW", value: exports.MitigationSubTypes.COMBUSTION_OF_MSW.valueOf() },
1549
+ { label: "Gasification of MSW", value: exports.MitigationSubTypes.GASIFICATION_OF_MSW.valueOf() },
1550
+ { label: "Biogas from MSW", value: exports.MitigationSubTypes.BIOGAS_FROM_MSW.valueOf() },
1551
+ { label: "Landfill aeration", value: exports.MitigationSubTypes.LANDFILL_AERATION.valueOf() },
1552
+ { label: "Integrated solid waste management", value: exports.MitigationSubTypes.INTEGRATED_SOLID_WASTE_MANAGEMENT.valueOf() },
1553
+ { label: "Switch from fossil fuel to piped landfill gas", value: exports.MitigationSubTypes.SWITCH_FROM_FOSSIL_FUEL_TO_PIPED_LANDFILL_GAS.valueOf() },
1554
+ { label: "Landfill composting", value: exports.MitigationSubTypes.LANDFILL_COMPOSTING.valueOf() },
1555
+ ],
1556
+ MethaneAvoidance: [
1557
+ { label: "Manure", value: exports.MitigationSubTypes.MANURE.valueOf() },
1558
+ { label: "Domestic manure", value: exports.MitigationSubTypes.DOMESTIC_MANURE.valueOf() },
1559
+ { label: "Waste water", value: exports.MitigationSubTypes.WASTE_WATER.valueOf() },
1560
+ { label: "Industrial solid waste", value: exports.MitigationSubTypes.INDUSTRIAL_SOLID_WASTE.valueOf() },
1561
+ { label: "Palm oil waste", value: exports.MitigationSubTypes.PALM_OIL_WASTE.valueOf() },
1562
+ { label: "Aerobic treatment of waste water", value: exports.MitigationSubTypes.AEROBIC_TREATMENT_OF_WASTE_WATER.valueOf() },
1563
+ { label: "Composting", value: exports.MitigationSubTypes.COMPOSTING.valueOf() },
1564
+ ],
1565
+ N20: [
1566
+ { label: "Adipic acid", value: exports.MitigationSubTypes.ADIPIC_ACID.valueOf() },
1567
+ { label: "Nitric acid", value: exports.MitigationSubTypes.NITRIC_ACID.valueOf() },
1568
+ { label: "Caprolactam", value: exports.MitigationSubTypes.CAPROLACTAM.valueOf() },
1569
+ ],
1570
+ Solar: [
1571
+ { label: "Solar Photovoltaics(PV)", value: exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV.valueOf() },
1572
+ { label: "Solar Water pumping (off-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID.valueOf() },
1573
+ { label: "Solar Water pumping (on-grid)", value: exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID.valueOf() },
1574
+ { label: "Solar PV water disinfection", value: exports.MitigationSubTypes.SOLAR_PV_WATER_DISINFECTION.valueOf() },
1575
+ { label: "Solar thermal power", value: exports.MitigationSubTypes.SOLAR_THERMAL_POWER.valueOf() },
1576
+ { label: "Solar thermal heat", value: exports.MitigationSubTypes.SOLAR_THERMAL_HEAT.valueOf() },
1577
+ { label: "Solar water heating", value: exports.MitigationSubTypes.SOLAR_WATER_HEATING.valueOf() },
1578
+ { label: "Solar cooking", value: exports.MitigationSubTypes.SOLAR_COOKING.valueOf() },
1579
+ ],
1580
+ Transport: [
1581
+ { label: "Bus Rapid Transit", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT.valueOf() },
1582
+ { label: "Bus Rapid Transit: Green hydrogen", value: exports.MitigationSubTypes.BUS_RAPID_TRANSIT_GREEN_HYDROGEN.valueOf() },
1583
+ { label: "Motorbikes", value: exports.MitigationSubTypes.MOTORBIKES.valueOf() },
1584
+ { label: "Mode shift: Road to rail", value: exports.MitigationSubTypes.MODE_SHIFT_ROAD_TO_RAIL.valueOf() },
1585
+ { label: "More efficient train system", value: exports.MitigationSubTypes.MORE_EFFICIENT_TRAIN_SYSTEM.valueOf() },
1586
+ { label: "More efficient vehicles", value: exports.MitigationSubTypes.MORE_EFFICIENT_VEHICLES.valueOf() },
1587
+ { label: "Rail: regenerative braking", value: exports.MitigationSubTypes.RAIL_REGENERATIVE_BRAKING.valueOf() },
1588
+ { label: "Rail: Green hydrogen", value: exports.MitigationSubTypes.RAIL_GREEN_HYDROGEN.valueOf() },
1589
+ { label: "Rail: efficient operation", value: exports.MitigationSubTypes.RAIL_EFFICIENT_OPERATION.valueOf() },
1590
+ { label: "Metro: efficient operation", value: exports.MitigationSubTypes.METRO_EFFICIENT_OPERATION.valueOf() },
1591
+ { label: "Cars: Green hydrogen", value: exports.MitigationSubTypes.CARS_GREEN_HYDROGEN.valueOf() },
1592
+ { label: "Cars: efficient operation", value: exports.MitigationSubTypes.CARS_EFFICIENT_OPERATION.valueOf() },
1593
+ { label: "Scrapping old vehicles", value: exports.MitigationSubTypes.SCRAPPING_OLD_VEHICLES.valueOf() },
1594
+ { label: "Biodiesel for transport", value: exports.MitigationSubTypes.BIODIESEL_FOR_TRANSPORT.valueOf() },
1595
+ { label: "Cable cars", value: exports.MitigationSubTypes.CABLE_CARS.valueOf() },
1596
+ ],
1597
+ Wind: [
1598
+ { label: "Wind", value: exports.MitigationSubTypes.WIND.valueOf() },
1599
+ { label: "Offshore wind", value: exports.MitigationSubTypes.OFFSHORE_WIND.valueOf() },
1600
+ ],
1601
+ CO2Usage: [
1602
+ { label: "CO2 recycling", value: exports.MitigationSubTypes.CO2_RECYCLING.valueOf() },
1603
+ { label: "CO2 replacement", value: exports.MitigationSubTypes.CO2_REPLACEMENT.valueOf() },
1604
+ ],
1605
+ Tidal: [
1606
+ { label: "Tidal", value: exports.MitigationSubTypes.TIDAL.valueOf() },
1607
+ ],
1608
+ };
1609
+ var methodologyOptions = [
1610
+ "ACR - Truck Stop Electrification",
1611
+ "ACR - Advanced Refrigeration Systems",
1612
+ "ACR - Certified Reclaimed HFC Refrigerants, Propellants, and Fire Suppressants",
1613
+ "ACR - Destruction of Ozone Depleting Substances and High-GWP Foam",
1614
+ "ACR - Destruction of Ozone Depleting Substances from International Sources",
1615
+ "ACR - Transition to Advanced Formulation Blowing Agents in Foam Manufacturing and Use",
1616
+ "ACR - Afforestation and Reforestation of Degraded Lands",
1617
+ "ACR - Avoided Conversion of Grasslands and Shrublands to Crop Production",
1618
+ "ACR - Improved Forest Management (IFM) on Canadian Forestlands",
1619
+ "ACR - Improved Forest Management (IFM) on Non-Federal U.S. Forestlands",
1620
+ "ACR - Improved Forest Management (IFM) on Small Non-Industrial Private Forestlands",
1621
+ "ACR - Restoration of California Deltaic and Coastal Wetlands",
1622
+ "ACR - Restoration of Pocosin Wetlands",
1623
+ "ACR - Carbon Capture and Storage Projects",
1624
+ "ACR - Landfill Gas Destruction and Beneficial Use Projects",
1625
+ "CAR - Adipic Acid Production",
1626
+ "CAR - Biochar",
1627
+ "CAR - Canada Grassland",
1628
+ "CAR - Coal Mine Methane",
1629
+ "CAR - Forest",
1630
+ "CAR - Grassland",
1631
+ "CAR - Mexico Boiler Efficiency",
1632
+ "CAR - Mexico Forest",
1633
+ "CAR - Mexico Halocarbon",
1634
+ "CAR - Mexico Landfill",
1635
+ "CAR - Mexico Livestock",
1636
+ "CAR - Mexico Ozone Depleting Substances",
1637
+ "CAR - Nitric Acid Production",
1638
+ "CAR - Nitrogen Management",
1639
+ "CAR - Organic Waste Composting",
1640
+ "CAR - Organic Waste Digestion",
1641
+ "CAR - Ozone Depleting Substances",
1642
+ "CAR - Rice Cultivation",
1643
+ "CAR - Soil Enrichment",
1644
+ "CAR - Urban Forest Management",
1645
+ "CAR - Urban Tree Planting",
1646
+ "CAR - U.S. Landfill",
1647
+ "CAR - U.S. Livestock",
1648
+ "CDM - AM0001",
1649
+ "CDM - AM0007",
1650
+ "CDM - AM0009",
1651
+ "CDM - AM0017",
1652
+ "CDM - AM0018",
1653
+ "CDM - AM0019",
1654
+ "CDM - AM0020",
1655
+ "CDM - AM0021",
1656
+ "CDM - AM0023",
1657
+ "CDM - AM0026",
1658
+ "CDM - AM0027",
1659
+ "CDM - AM0028",
1660
+ "CDM - AM0030",
1661
+ "CDM - AM0031",
1662
+ "CDM - AM0035",
1663
+ "CDM - AM0036",
1664
+ "CDM - AM0037",
1665
+ "CDM - AM0038",
1666
+ "CDM - AM0043",
1667
+ "CDM - AM0044",
1668
+ "CDM - AM0045",
1669
+ "CDM - AM0046",
1670
+ "CDM - AM0048",
1671
+ "CDM - AM0049",
1672
+ "CDM - AM0050",
1673
+ "CDM - AM0052",
1674
+ "CDM - AM0053",
1675
+ "CDM - AM0055",
1676
+ "CDM - AM0056",
1677
+ "CDM - AM0057",
1678
+ "CDM - AM0058",
1679
+ "CDM - AM0059",
1680
+ "CDM - AM0060",
1681
+ "CDM - AM0061",
1682
+ "CDM - AM0062",
1683
+ "CDM - AM0063",
1684
+ "CDM - AM0064",
1685
+ "CDM - AM0065",
1686
+ "CDM - AM0066",
1687
+ "CDM - AM0067",
1688
+ "CDM - AM0068",
1689
+ "CDM - AM0069",
1690
+ "CDM - AM0070",
1691
+ "CDM - AM0071",
1692
+ "CDM - AM0072",
1693
+ "CDM - AM0073",
1694
+ "CDM - AM0074",
1695
+ "CDM - AM0075",
1696
+ "CDM - AM0076",
1697
+ "CDM - AM0077",
1698
+ "CDM - AM0078",
1699
+ "CDM - AM0079",
1700
+ "CDM - AM0080",
1701
+ "CDM - AM0081",
1702
+ "CDM - AM0082",
1703
+ "CDM - AM0083",
1704
+ "CDM - AM0084",
1705
+ "CDM - AM0086",
1706
+ "CDM - AM0088",
1707
+ "CDM - AM0089",
1708
+ "CDM - AM0090",
1709
+ "CDM - AM0091",
1710
+ "CDM - AM0092",
1711
+ "CDM - AM0093",
1712
+ "CDM - AM0094",
1713
+ "CDM - AM0095",
1714
+ "CDM - AM0096",
1715
+ "CDM - AM0097",
1716
+ "CDM - AM0098",
1717
+ "CDM - AM0099",
1718
+ "CDM - AM0100",
1719
+ "CDM - AM0101",
1720
+ "CDM - AM0103",
1721
+ "CDM - AM0104",
1722
+ "CDM - AM0105",
1723
+ "CDM - AM0106",
1724
+ "CDM - AM0107",
1725
+ "CDM - AM0108",
1726
+ "CDM - AM0109",
1727
+ "CDM - AM0110",
1728
+ "CDM - AM0111",
1729
+ "CDM - AM0112",
1730
+ "CDM - AM0113",
1731
+ "CDM - AM0114",
1732
+ "CDM - AM0115",
1733
+ "CDM - AM0116",
1734
+ "CDM - AM0117",
1735
+ "CDM - AM0118",
1736
+ "CDM - AM0119",
1737
+ "CDM - AM0120",
1738
+ "CDM - AM0121",
1739
+ "CDM - AM0122",
1740
+ "CDM - AMS-I.A.",
1741
+ "CDM - AMS-I.B.",
1742
+ "CDM - AMS-I.C.",
1743
+ "CDM - AMS-I.D.",
1744
+ "CDM - AMS-I.E.",
1745
+ "CDM - AMS-I.F.",
1746
+ "CDM - AMS-I.G.",
1747
+ "CDM - AMS-I.H.",
1748
+ "CDM - AMS-I.I.",
1749
+ "CDM - AMS-I.J.",
1750
+ "CDM - AMS-I.K.",
1751
+ "CDM - AMS-I.L.",
1752
+ "CDM - AMS-I.M.",
1753
+ "CDM - AMS-II.A.",
1754
+ "CDM - AMS-II.B.",
1755
+ "CDM - AMS-II.C.",
1756
+ "CDM - AMS-II.D.",
1757
+ "CDM - AMS-II.E.",
1758
+ "CDM - AMS-II.F.",
1759
+ "CDM - AMS-II.G.",
1760
+ "CDM - AMS-II.H.",
1761
+ "CDM - AMS-II.I.",
1762
+ "CDM - AMS-II.J.",
1763
+ "CDM - AMS-II.K.",
1764
+ "CDM - AMS-II.L.",
1765
+ "CDM - AMS-II.M.",
1766
+ "CDM - AMS-II.N.",
1767
+ "CDM - AMS-II.O.",
1768
+ "CDM - AMS-II.P.",
1769
+ "CDM - AMS-II.Q.",
1770
+ "CDM - AMS-II.R.",
1771
+ "CDM - AMS-II.S.",
1772
+ "CDM - AMS-II.T.",
1773
+ "CDM - AMS-III.A.",
1774
+ "CDM - AMS-III.B.",
1775
+ "CDM - AMS-III.C.",
1776
+ "CDM - AMS-III.D.",
1777
+ "CDM - AMS-III.E.",
1778
+ "CDM - AMS-III.F.",
1779
+ "CDM - AMS-III.G.",
1780
+ "CDM - AMS-III.H.",
1781
+ "CDM - AMS-III.I.",
1782
+ "CDM - AMS-III.J.",
1783
+ "CDM - AMS-III.K.",
1784
+ "CDM - AMS-III.L.",
1785
+ "CDM - AMS-III.M.",
1786
+ "CDM - AMS-III.N.",
1787
+ "CDM - AMS-III.O.",
1788
+ "CDM - AMS-III.P.",
1789
+ "CDM - AMS-III.Q.",
1790
+ "CDM - AMS-III.R.",
1791
+ "CDM - AMS-III.S.",
1792
+ "CDM - AMS-III.T.",
1793
+ "CDM - AMS-III.U.",
1794
+ "CDM - AMS-III.V.",
1795
+ "CDM - AMS-III.W.",
1796
+ "CDM - AMS-III.X.",
1797
+ "CDM - AMS-III.Y.",
1798
+ "CDM - AMS-III.Z.",
1799
+ "CDM - AMS-III.AA.",
1800
+ "CDM - AMS-III.AB.",
1801
+ "CDM - AMS-III.AC.",
1802
+ "CDM - AMS-III.AD.",
1803
+ "CDM - AMS-III.AE.",
1804
+ "CDM - AMS-III.AF.",
1805
+ "CDM - AMS-III.AG.",
1806
+ "CDM - AMS-III.AH.",
1807
+ "CDM - AMS-III.AI.",
1808
+ "CDM - AMS-III.AJ.",
1809
+ "CDM - AMS-III.AK.",
1810
+ "CDM - AMS-III.AL.",
1811
+ "CDM - AMS-III.AM.",
1812
+ "CDM - AMS-III.AN.",
1813
+ "CDM - AMS-III.AO.",
1814
+ "CDM - AMS-III.AP.",
1815
+ "CDM - AMS-III.AQ.",
1816
+ "CDM - AMS-III.AR.",
1817
+ "CDM - AMS-III.AS.",
1818
+ "CDM - AMS-III.AT.",
1819
+ "CDM - AMS-III.AU.",
1820
+ "CDM - AMS-III.AV.",
1821
+ "CDM - AMS-III.AW.",
1822
+ "CDM - AMS-III.AX.",
1823
+ "CDM - AMS-III.AY.",
1824
+ "CDM - AMS-III.BA.",
1825
+ "CDM - AMS-III.BB.",
1826
+ "CDM - AMS-III.BC.",
1827
+ "CDM - AMS-III.BD.",
1828
+ "CDM - AMS-III.BE.",
1829
+ "CDM - AMS-III.BF.",
1830
+ "CDM - AMS-III.BG.",
1831
+ "CDM - AMS-III.BH.",
1832
+ "CDM - AMS-III.BI.",
1833
+ "CDM - AMS-III.BJ.",
1834
+ "CDM - AMS-III.BK.",
1835
+ "CDM - AMS-III.BL.",
1836
+ "CDM - AMS-III.BM.",
1837
+ "CDM - AMS-III.BN.",
1838
+ "CDM - AMS-III.BO.",
1839
+ "CDM - AMS-III.BP.",
1840
+ "CDM - AR-AM0014",
1841
+ "CDM - AR-AMS0003",
1842
+ "CDM - AR-AMS0007",
1843
+ "GS - METHODOLOGY FOR METERED & MEASURED ENERGY COOKING DEVICES",
1844
+ "GS - METHODOLOGY FOR RETROFIT ENERGY EFFICIENCY MEASURES IN SHIPPING ",
1845
+ "GS - SOIL ORGANIC CARBON ACTIVITY MODULE FOR APPLICATION OF ORGANIC SOIL IMPROVERS FROM PULP AND PAPER MILL SLUDGES",
1846
+ "GS - REDUCED EMISSIONS FROM COOKING AND HEATING – TECHNOLOGIES AND PRACTICES TO DISPLACE DECENTRALIZED THERMAL ENERGY CONSUMPTION (TPDDTEC)",
1847
+ "GS - CARBON SEQUESTRATION THROUGH ACCELERATED CARBONATION OF CONCRETE AGGREGATE ",
1848
+ "VCS - VM0001",
1849
+ "VCS - VM0002",
1850
+ "VCS - VM0003",
1851
+ "VCS - VM0004",
1852
+ "VCS - VM0005",
1853
+ "VCS - VM0006",
1854
+ "VCS - VM0007",
1855
+ "VCS - VM0008",
1856
+ "VCS - VM0009",
1857
+ "VCS - VM0010",
1858
+ "VCS - VM0011",
1859
+ "VCS - VM0012",
1860
+ "VCS - VM0013",
1861
+ "VCS - VM0014",
1862
+ "VCS - VM0015",
1863
+ "VCS - VM0016",
1864
+ "VCS - VM0017",
1865
+ "VCS - VM0018",
1866
+ "VCS - VM0019",
1867
+ "VCS - VM0020",
1868
+ "VCS - VM0021",
1869
+ "VCS - VM0022",
1870
+ "VCS - VM0023",
1871
+ "VCS - VM0024",
1872
+ "VCS - VM0025",
1873
+ "VCS - VM0026",
1874
+ "VCS - VM0027",
1875
+ "VCS - VM0028",
1876
+ "VCS - VM0029",
1877
+ "VCS - VM0030",
1878
+ "VCS - VM0031",
1879
+ "VCS - VM0032",
1880
+ "VCS - VM0033",
1881
+ "VCS - VM0034",
1882
+ "VCS - VM0035",
1883
+ "VCS - VM0036",
1884
+ "VCS - VM0037",
1885
+ "VCS - VM0038",
1886
+ "VCS - VM0039",
1887
+ "VCS - VM0040",
1888
+ "VCS - VM0041",
1889
+ "VCS - VM0042",
1890
+ "VCS - VM0043",
1891
+ "VCS - VMR000",
1892
+ "VCS - VMR006",
1893
+ "ID_PM044",
1894
+ "ID_PM043",
1895
+ "ID_PM042",
1896
+ "ID_PM041",
1897
+ "ID_PM040",
1898
+ "ID_PM039",
1899
+ "ID_AM028",
1900
+ "ID_AM027",
1901
+ "ID_AM026",
1902
+ "ID_AM025",
1903
+ "ID_AM024",
1904
+ "ID_AM023",
1905
+ "ID_AM022",
1906
+ "ID_AM021",
1907
+ "ID_AM020",
1908
+ "ID_AM006",
1909
+ "VN_PM028",
1910
+ "ID_AM019",
1911
+ "VN_PM027",
1912
+ "ID_AM018",
1913
+ "ID_AM007",
1914
+ "TH_PM026",
1915
+ "VN_PM026",
1916
+ "VN_PM025",
1917
+ "TH_PM025",
1918
+ "ID_AM009",
1919
+ "VN_PM024",
1920
+ "ID_AM017",
1921
+ "TH_PM024",
1922
+ "ID_AM016",
1923
+ "VN_PM023",
1924
+ "TH_PM023",
1925
+ "ID_AM015",
1926
+ "TH_PM022",
1927
+ "VN_AM015",
1928
+ "VN_AM009",
1929
+ "ID_AM014",
1930
+ "TH_PM021",
1931
+ "TH_AM017",
1932
+ "ID_AM013",
1933
+ "VN_AM014",
1934
+ "VN_AM013",
1935
+ "TH_AM016",
1936
+ "VN_AM012",
1937
+ "TH_AM015",
1938
+ "ID_AM011",
1939
+ "TH_AM001",
1940
+ "VN_AM011",
1941
+ "ID_AM012",
1942
+ "VN_AM010",
1943
+ "TH_AM014",
1944
+ "ID_AM008",
1945
+ "VN_AM006",
1946
+ "TH_AM013",
1947
+ "TH_AM012",
1948
+ "VN_AM004",
1949
+ "ID_AM005",
1950
+ "ID_AM004",
1951
+ "TH_AM011",
1952
+ "VN_AM003",
1953
+ "ID_AM003",
1954
+ "VN_AM002",
1955
+ "TH_AM010",
1956
+ "ID_AM002",
1957
+ "TH_AM009",
1958
+ "ID_AM010",
1959
+ "VN_AM008",
1960
+ "TH_AM008",
1961
+ "TH_AM005",
1962
+ "VN_AM007",
1963
+ "TH_AM007",
1964
+ "VN_AM001",
1965
+ "MM_PM007",
1966
+ "TH_AM006",
1967
+ "MM_PM006",
1968
+ "VN_AM005",
1969
+ "KH_AM004",
1970
+ "TH_AM002",
1971
+ "KH_AM005",
1972
+ "BD_PM005",
1973
+ "MM_AM005",
1974
+ "TH_AM004",
1975
+ "LA_AM004",
1976
+ "BD_AM001",
1977
+ "MN_AM003",
1978
+ "MM_AM004",
1979
+ "KE_AM003",
1980
+ "LA_AM003",
1981
+ "MM_AM003",
1982
+ "CR_AM003",
1983
+ "KH_AM003",
1984
+ "PH_PM003",
1985
+ "TH_AM003",
1986
+ "CL_AM001",
1987
+ "ET_AM003",
1988
+ "BD_AM003",
1989
+ "BD_AM002",
1990
+ "ET_AM002",
1991
+ "KE_AM002",
1992
+ "CR_AM002",
1993
+ "LA_AM002",
1994
+ "KH_AM002",
1995
+ "MV_AM002",
1996
+ "MM_AM002",
1997
+ "PH_AM002",
1998
+ "MN_AM002",
1999
+ "CL_AM002",
2000
+ "PW_AM001",
2001
+ "PH_AM001",
2002
+ "KE_AM001",
2003
+ "KH_AM001",
2004
+ "SA_AM001",
2005
+ "MN_AM001",
2006
+ "MM_AM001",
2007
+ "CR_AM001",
2008
+ "ID_AM001",
2009
+ "MX_AM001",
2010
+ "ET_AM001",
2011
+ "LA_AM001",
2012
+ "MV_AM001",
2013
+ "Puro - BIO CHAR",
2014
+ ];
1068
2015
 
1069
2016
  exports.ESGType = void 0;
1070
2017
  (function (ESGType) {
@@ -1144,7 +2091,18 @@ exports.TypeOfMitigation = void 0;
1144
2091
  (function (TypeOfMitigation) {
1145
2092
  TypeOfMitigation["AGRICULTURE"] = "Agriculture";
1146
2093
  TypeOfMitigation["SOLAR"] = "Solar";
2094
+ TypeOfMitigation["EE_HOUSEHOLDS"] = "EEHouseholds";
1147
2095
  })(exports.TypeOfMitigation || (exports.TypeOfMitigation = {}));
2096
+ // sub types of mitigation
2097
+ exports.SubTypeOfMitigation = void 0;
2098
+ (function (SubTypeOfMitigation) {
2099
+ SubTypeOfMitigation["SOIL_ENRICHMENT_BIOCHAR"] = "SoilEnrichmentBiochar";
2100
+ SubTypeOfMitigation["RICE_CROPS"] = "RiceCrops";
2101
+ SubTypeOfMitigation["SOLAR_PHOTOVOLTAICS_PV"] = "SolarPhotovoltaicsPV";
2102
+ SubTypeOfMitigation["SOLAR_WATER_PUMPING_OFF_GRID"] = "SolarWaterPumpingOffGrid";
2103
+ SubTypeOfMitigation["SOLAR_WATER_PUMPING_ON_GRID"] = "SolarWaterPumpingOnGrid";
2104
+ SubTypeOfMitigation["STOVES_HOUSES_IN_NAMIBIA"] = "StovesHousesInNamibia";
2105
+ })(exports.SubTypeOfMitigation || (exports.SubTypeOfMitigation = {}));
1148
2106
 
1149
2107
  exports.TxType = void 0;
1150
2108
  (function (TxType) {
@@ -4193,6 +5151,26 @@ function requireAgricultureCal () {
4193
5151
  return agricultureCal;
4194
5152
  }
4195
5153
 
5154
+ var soilEnrichmentCal = {};
5155
+
5156
+ var hasRequiredSoilEnrichmentCal;
5157
+
5158
+ function requireSoilEnrichmentCal () {
5159
+ if (hasRequiredSoilEnrichmentCal) return soilEnrichmentCal;
5160
+ hasRequiredSoilEnrichmentCal = 1;
5161
+ Object.defineProperty(soilEnrichmentCal, "__esModule", { value: true });
5162
+ soilEnrichmentCal.SoilEnrichmentCal = void 0;
5163
+ const calculator_1 = requireCalculator();
5164
+ class SoilEnrichmentCal {
5165
+ static calculate(req) {
5166
+ const constants = req.soilEnrichmentConstants;
5167
+ return Number((constants.emissionFactor * req.weight).toFixed(calculator_1.PRECISION));
5168
+ }
5169
+ }
5170
+ soilEnrichmentCal.SoilEnrichmentCal = SoilEnrichmentCal;
5171
+ return soilEnrichmentCal;
5172
+ }
5173
+
4196
5174
  var solarCal = {};
4197
5175
 
4198
5176
  var hasRequiredSolarCal;
@@ -4269,6 +5247,53 @@ class AgricultureCreationRequest {
4269
5247
  }
4270
5248
  agricultureCreationRequest.AgricultureCreationRequest = AgricultureCreationRequest;
4271
5249
 
5250
+ var soilEnrichmentCreationRequest = {};
5251
+
5252
+ var soilEnrichmentConstants = {};
5253
+
5254
+ Object.defineProperty(soilEnrichmentConstants, "__esModule", { value: true });
5255
+ soilEnrichmentConstants.SoilEnrichmentConstants = void 0;
5256
+ class SoilEnrichmentConstants {
5257
+ constructor() {
5258
+ this.emissionFactor = 3.66;
5259
+ this.emissionFactorUnit = "tCO2e"; // emission factor
5260
+ }
5261
+ }
5262
+ soilEnrichmentConstants.SoilEnrichmentConstants = SoilEnrichmentConstants;
5263
+
5264
+ Object.defineProperty(soilEnrichmentCreationRequest, "__esModule", { value: true });
5265
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = void 0;
5266
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
5267
+ class SoilEnrichmentCreationRequest {
5268
+ constructor() {
5269
+ this.soilEnrichmentConstants = new soilEnrichmentConstants_1.SoilEnrichmentConstants();
5270
+ }
5271
+ }
5272
+ soilEnrichmentCreationRequest.SoilEnrichmentCreationRequest = SoilEnrichmentCreationRequest;
5273
+
5274
+ var stovesHousesNamibiaCreationRequest = {};
5275
+
5276
+ var stovesHousesNamibiaConstants = {};
5277
+
5278
+ Object.defineProperty(stovesHousesNamibiaConstants, "__esModule", { value: true });
5279
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = void 0;
5280
+ class StovesHousesNamibiaConstants {
5281
+ constructor() {
5282
+ this.emissionFactor = 0.1;
5283
+ }
5284
+ }
5285
+ stovesHousesNamibiaConstants.StovesHousesNamibiaConstants = StovesHousesNamibiaConstants;
5286
+
5287
+ Object.defineProperty(stovesHousesNamibiaCreationRequest, "__esModule", { value: true });
5288
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = void 0;
5289
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
5290
+ class StovesHousesNamibiaCreationRequest {
5291
+ constructor() {
5292
+ this.stovesHousesNamibiaConstants = new stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants();
5293
+ }
5294
+ }
5295
+ stovesHousesNamibiaCreationRequest.StovesHousesNamibiaCreationRequest = StovesHousesNamibiaCreationRequest;
5296
+
4272
5297
  var solarCreationRequest = {};
4273
5298
 
4274
5299
  var solarConstants = {};
@@ -4306,6 +5331,134 @@ class SolarCreationRequest {
4306
5331
  }
4307
5332
  solarCreationRequest.SolarCreationRequest = SolarCreationRequest;
4308
5333
 
5334
+ var stovesHousesNamibiaCal = {};
5335
+
5336
+ var hasRequiredStovesHousesNamibiaCal;
5337
+
5338
+ function requireStovesHousesNamibiaCal () {
5339
+ if (hasRequiredStovesHousesNamibiaCal) return stovesHousesNamibiaCal;
5340
+ hasRequiredStovesHousesNamibiaCal = 1;
5341
+ Object.defineProperty(stovesHousesNamibiaCal, "__esModule", { value: true });
5342
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = void 0;
5343
+ const calculator_1 = requireCalculator();
5344
+ class StovesHousesNamibiaCal {
5345
+ static calculate(req) {
5346
+ const constants = req.stovesHousesNamibiaConstants;
5347
+ return Number((constants.emissionFactor * req.numberOfDays * req.numberOfPeopleInHousehold).toFixed(calculator_1.PRECISION));
5348
+ }
5349
+ }
5350
+ stovesHousesNamibiaCal.StovesHousesNamibiaCal = StovesHousesNamibiaCal;
5351
+ return stovesHousesNamibiaCal;
5352
+ }
5353
+
5354
+ var solarWaterPumpingOffGridCreationRequest = {};
5355
+
5356
+ var solarWaterPumpingOffGridConstants = {};
5357
+
5358
+ Object.defineProperty(solarWaterPumpingOffGridConstants, "__esModule", { value: true });
5359
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = void 0;
5360
+ class SolarWaterPumpingOffGridConstants {
5361
+ constructor() {
5362
+ this.emissionFactor = 1.3;
5363
+ this.emissionFactorUnit = "kWh/year";
5364
+ }
5365
+ }
5366
+ solarWaterPumpingOffGridConstants.SolarWaterPumpingOffGridConstants = SolarWaterPumpingOffGridConstants;
5367
+
5368
+ Object.defineProperty(solarWaterPumpingOffGridCreationRequest, "__esModule", { value: true });
5369
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = void 0;
5370
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
5371
+ class SolarWaterPumpingOffGridCreationRequest {
5372
+ constructor() {
5373
+ this.solarWaterPumpingOffGridConstants = new solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants();
5374
+ }
5375
+ }
5376
+ solarWaterPumpingOffGridCreationRequest.SolarWaterPumpingOffGridCreationRequest = SolarWaterPumpingOffGridCreationRequest;
5377
+
5378
+ var solarWaterPumpingOffGridCal = {};
5379
+
5380
+ var hasRequiredSolarWaterPumpingOffGridCal;
5381
+
5382
+ function requireSolarWaterPumpingOffGridCal () {
5383
+ if (hasRequiredSolarWaterPumpingOffGridCal) return solarWaterPumpingOffGridCal;
5384
+ hasRequiredSolarWaterPumpingOffGridCal = 1;
5385
+ Object.defineProperty(solarWaterPumpingOffGridCal, "__esModule", { value: true });
5386
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = void 0;
5387
+ const calculator_1 = requireCalculator();
5388
+ var convert = lib;
5389
+ let solarWaterPumpingOffGridCal$1 = class solarWaterPumpingOffGridCal {
5390
+ static calculate(req) {
5391
+ const constants = req.solarWaterPumpingOffGridConstants;
5392
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
5393
+ if (emissionUnitParts.length != 2) {
5394
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
5395
+ }
5396
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
5397
+ if (measuredUnitParts.length != 3) {
5398
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
5399
+ }
5400
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
5401
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
5402
+ }
5403
+ };
5404
+ solarWaterPumpingOffGridCal.solarWaterPumpingOffGridCal = solarWaterPumpingOffGridCal$1;
5405
+ return solarWaterPumpingOffGridCal;
5406
+ }
5407
+
5408
+ var solarWaterPumpingOnGridCreationRequest = {};
5409
+
5410
+ var solarWaterPumpingOnGridConstants = {};
5411
+
5412
+ Object.defineProperty(solarWaterPumpingOnGridConstants, "__esModule", { value: true });
5413
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = void 0;
5414
+ class SolarWaterPumpingOnGridConstants {
5415
+ constructor() {
5416
+ this.emissionFactor = 1.06;
5417
+ this.emissionFactorUnit = "kWh/year";
5418
+ }
5419
+ }
5420
+ solarWaterPumpingOnGridConstants.SolarWaterPumpingOnGridConstants = SolarWaterPumpingOnGridConstants;
5421
+
5422
+ Object.defineProperty(solarWaterPumpingOnGridCreationRequest, "__esModule", { value: true });
5423
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = void 0;
5424
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
5425
+ class SolarWaterPumpingOnGridCreationRequest {
5426
+ constructor() {
5427
+ this.solarWaterPumpingOnGridConstants = new solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants();
5428
+ }
5429
+ }
5430
+ solarWaterPumpingOnGridCreationRequest.SolarWaterPumpingOnGridCreationRequest = SolarWaterPumpingOnGridCreationRequest;
5431
+
5432
+ var solarWaterPumpingOnGridCal = {};
5433
+
5434
+ var hasRequiredSolarWaterPumpingOnGridCal;
5435
+
5436
+ function requireSolarWaterPumpingOnGridCal () {
5437
+ if (hasRequiredSolarWaterPumpingOnGridCal) return solarWaterPumpingOnGridCal;
5438
+ hasRequiredSolarWaterPumpingOnGridCal = 1;
5439
+ Object.defineProperty(solarWaterPumpingOnGridCal, "__esModule", { value: true });
5440
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = void 0;
5441
+ const calculator_1 = requireCalculator();
5442
+ var convert = lib;
5443
+ let solarWaterPumpingOnGridCal$1 = class solarWaterPumpingOnGridCal {
5444
+ static calculate(req) {
5445
+ const constants = req.solarWaterPumpingOnGridConstants;
5446
+ const emissionUnitParts = constants.emissionFactorUnit.split('/');
5447
+ if (emissionUnitParts.length != 2) {
5448
+ throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
5449
+ }
5450
+ const measuredUnitParts = req.energyGenerationUnit.split('/');
5451
+ if (measuredUnitParts.length != 3) {
5452
+ throw Error("Invalid measured unit " + req.energyGenerationUnit);
5453
+ }
5454
+ const unitX = convert(req.energyGeneration).from(measuredUnitParts[0]).to(emissionUnitParts[0]);
5455
+ return Number((constants.emissionFactor * unitX).toFixed(calculator_1.PRECISION));
5456
+ }
5457
+ };
5458
+ solarWaterPumpingOnGridCal.solarWaterPumpingOnGridCal = solarWaterPumpingOnGridCal$1;
5459
+ return solarWaterPumpingOnGridCal;
5460
+ }
5461
+
4309
5462
  var hasRequiredCalculator;
4310
5463
 
4311
5464
  function requireCalculator () {
@@ -4314,9 +5467,17 @@ function requireCalculator () {
4314
5467
  Object.defineProperty(calculator, "__esModule", { value: true });
4315
5468
  calculator.calculateCredit = calculator.PRECISION = void 0;
4316
5469
  const agricultureCal_1 = requireAgricultureCal();
5470
+ const soilEnrichmentCal_1 = requireSoilEnrichmentCal();
4317
5471
  const solarCal_1 = requireSolarCal();
4318
5472
  const agricultureCreationRequest_1 = agricultureCreationRequest;
5473
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5474
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
4319
5475
  const solarCreationRequest_1 = solarCreationRequest;
5476
+ const stovesHousesNamibiaCal_1 = requireStovesHousesNamibiaCal();
5477
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5478
+ const solarWaterPumpingOffGridCal_1 = requireSolarWaterPumpingOffGridCal();
5479
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5480
+ const solarWaterPumpingOnGridCal_1 = requireSolarWaterPumpingOnGridCal();
4320
5481
  calculator.PRECISION = 2;
4321
5482
  const calculateCredit = (request) => {
4322
5483
  if (request instanceof agricultureCreationRequest_1.AgricultureCreationRequest) {
@@ -4325,6 +5486,18 @@ function requireCalculator () {
4325
5486
  else if (request instanceof solarCreationRequest_1.SolarCreationRequest) {
4326
5487
  return solarCal_1.SolarCal.calculate(request);
4327
5488
  }
5489
+ else if (request instanceof soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest) {
5490
+ return soilEnrichmentCal_1.SoilEnrichmentCal.calculate(request);
5491
+ }
5492
+ else if (request instanceof stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest) {
5493
+ return stovesHousesNamibiaCal_1.StovesHousesNamibiaCal.calculate(request);
5494
+ }
5495
+ else if (request instanceof solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest) {
5496
+ return solarWaterPumpingOffGridCal_1.solarWaterPumpingOffGridCal.calculate(request);
5497
+ }
5498
+ else if (request instanceof solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest) {
5499
+ return solarWaterPumpingOnGridCal_1.solarWaterPumpingOnGridCal.calculate(request);
5500
+ }
4328
5501
  else {
4329
5502
  throw Error("Not implemented");
4330
5503
  }
@@ -4335,25 +5508,24 @@ function requireCalculator () {
4335
5508
 
4336
5509
  var building_type_enum = {};
4337
5510
 
4338
- (function (exports) {
4339
- Object.defineProperty(exports, "__esModule", { value: true });
4340
- exports.BuildingType = void 0;
4341
- (function (BuildingType) {
4342
- BuildingType["Household"] = "Household";
4343
- BuildingType["HealthCenter"] = "HealthCenter";
4344
- BuildingType["Dispensary"] = "Dispensary";
4345
- BuildingType["School"] = "School";
4346
- BuildingType["PrimarySchool"] = "PrimarySchool";
4347
- BuildingType["SecondarySchool"] = "SecondarySchool";
4348
- BuildingType["PublicAdministration"] = "PublicAdministration";
4349
- BuildingType["TradingPlace"] = "TradingPlace";
4350
- BuildingType["BusStop"] = "BusStop";
4351
- })(exports.BuildingType || (exports.BuildingType = {}));
4352
- } (building_type_enum));
5511
+ Object.defineProperty(building_type_enum, "__esModule", { value: true });
5512
+ building_type_enum.BuildingType = void 0;
5513
+ var BuildingType;
5514
+ (function (BuildingType) {
5515
+ BuildingType["Household"] = "Household";
5516
+ BuildingType["HealthCenter"] = "HealthCenter";
5517
+ BuildingType["Dispensary"] = "Dispensary";
5518
+ BuildingType["School"] = "School";
5519
+ BuildingType["PrimarySchool"] = "PrimarySchool";
5520
+ BuildingType["SecondarySchool"] = "SecondarySchool";
5521
+ BuildingType["PublicAdministration"] = "PublicAdministration";
5522
+ BuildingType["TradingPlace"] = "TradingPlace";
5523
+ BuildingType["BusStop"] = "BusStop";
5524
+ })(BuildingType || (building_type_enum.BuildingType = BuildingType = {}));
4353
5525
 
4354
5526
  (function (exports) {
4355
5527
  Object.defineProperty(exports, "__esModule", { value: true });
4356
- exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
5528
+ 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;
4357
5529
  const calculator_1 = requireCalculator();
4358
5530
  Object.defineProperty(exports, "calculateCredit", { enumerable: true, get: function () { return calculator_1.calculateCredit; } });
4359
5531
  const agricultureConstants_1 = agricultureConstants;
@@ -4365,7 +5537,23 @@ var building_type_enum = {};
4365
5537
  const agricultureCreationRequest_1 = agricultureCreationRequest;
4366
5538
  Object.defineProperty(exports, "AgricultureCreationRequest", { enumerable: true, get: function () { return agricultureCreationRequest_1.AgricultureCreationRequest; } });
4367
5539
  const solarCreationRequest_1 = solarCreationRequest;
4368
- Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5540
+ Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
5541
+ const soilEnrichmentConstants_1 = soilEnrichmentConstants;
5542
+ Object.defineProperty(exports, "SoilEnrichmentConstants", { enumerable: true, get: function () { return soilEnrichmentConstants_1.SoilEnrichmentConstants; } });
5543
+ const soilEnrichmentCreationRequest_1 = soilEnrichmentCreationRequest;
5544
+ Object.defineProperty(exports, "SoilEnrichmentCreationRequest", { enumerable: true, get: function () { return soilEnrichmentCreationRequest_1.SoilEnrichmentCreationRequest; } });
5545
+ const stovesHousesNamibiaConstants_1 = stovesHousesNamibiaConstants;
5546
+ Object.defineProperty(exports, "StovesHousesNamibiaConstants", { enumerable: true, get: function () { return stovesHousesNamibiaConstants_1.StovesHousesNamibiaConstants; } });
5547
+ const stovesHousesNamibiaCreationRequest_1 = stovesHousesNamibiaCreationRequest;
5548
+ Object.defineProperty(exports, "StovesHousesNamibiaCreationRequest", { enumerable: true, get: function () { return stovesHousesNamibiaCreationRequest_1.StovesHousesNamibiaCreationRequest; } });
5549
+ const solarWaterPumpingOffGridConstants_1 = solarWaterPumpingOffGridConstants;
5550
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOffGridConstants_1.SolarWaterPumpingOffGridConstants; } });
5551
+ const solarWaterPumpingOffGridCreationRequest_1 = solarWaterPumpingOffGridCreationRequest;
5552
+ Object.defineProperty(exports, "SolarWaterPumpingOffGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOffGridCreationRequest_1.SolarWaterPumpingOffGridCreationRequest; } });
5553
+ const solarWaterPumpingOnGridConstants_1 = solarWaterPumpingOnGridConstants;
5554
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridConstants", { enumerable: true, get: function () { return solarWaterPumpingOnGridConstants_1.SolarWaterPumpingOnGridConstants; } });
5555
+ const solarWaterPumpingOnGridCreationRequest_1 = solarWaterPumpingOnGridCreationRequest;
5556
+ Object.defineProperty(exports, "SolarWaterPumpingOnGridCreationRequest", { enumerable: true, get: function () { return solarWaterPumpingOnGridCreationRequest_1.SolarWaterPumpingOnGridCreationRequest; } });
4369
5557
  } (cjs));
4370
5558
 
4371
5559
  var consumerGroupList = [
@@ -16553,14 +17741,16 @@ var NdcActionDetails = function (props) {
16553
17741
  translator.setDefaultNamespace("ndcAction");
16554
17742
  var t = translator.t;
16555
17743
  var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
16556
- var _b = React.useState(), mitigationType = _b[0], setmitigationType = _b[1];
16557
- var _c = React.useState(""), sector = _c[0], setSector = _c[1];
16558
- var _d = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
16559
- var _e = React.useState([]), checkedOptionsGhgReduced = _e[0], setCheckedOptionsGhgReduced = _e[1];
16560
- var _f = React.useState([]), checkedOptionsGhgAvoided = _f[0], setCheckedOptionsGhgAvoided = _f[1];
16561
- var _g = React.useState(), inputNumberValueGhgAvoidedGas = _g[0], setInputNumberValueGhgAvoidedGas = _g[1];
16562
- var _h = React.useState(), inputNumberValueGhgReducedGas = _h[0], setInputNumberValueGhgReducedGas = _h[1];
16563
- var _j = React.useState(), includedInNAP = _j[0], setIncludedInNAP = _j[1];
17744
+ var _b = React.useState(), methodology = _b[0], setMethodology = _b[1];
17745
+ var _c = React.useState(), mitigationType = _c[0], setmitigationType = _c[1];
17746
+ var _d = React.useState(""), mitigationSubType = _d[0], setMitigationSubType = _d[1];
17747
+ var _e = React.useState(""), sector = _e[0], setSector = _e[1];
17748
+ var _f = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _f[0]; _f[1];
17749
+ var _g = React.useState([]), checkedOptionsGhgReduced = _g[0], setCheckedOptionsGhgReduced = _g[1];
17750
+ var _h = React.useState([]), checkedOptionsGhgAvoided = _h[0], setCheckedOptionsGhgAvoided = _h[1];
17751
+ var _j = React.useState(), inputNumberValueGhgAvoidedGas = _j[0], setInputNumberValueGhgAvoidedGas = _j[1];
17752
+ var _k = React.useState(), inputNumberValueGhgReducedGas = _k[0], setInputNumberValueGhgReducedGas = _k[1];
17753
+ var _l = React.useState(), includedInNAP = _l[0], setIncludedInNAP = _l[1];
16564
17754
  var form = antd.Form.useForm()[0];
16565
17755
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
16566
17756
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
@@ -16580,6 +17770,9 @@ var NdcActionDetails = function (props) {
16580
17770
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) {
16581
17771
  setmitigationType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation);
16582
17772
  }
17773
+ if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) {
17774
+ setMitigationSubType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation);
17775
+ }
16583
17776
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP) {
16584
17777
  setIncludedInNAP(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.includedInNAP);
16585
17778
  }
@@ -16592,6 +17785,7 @@ var NdcActionDetails = function (props) {
16592
17785
  form.setFieldsValue({
16593
17786
  ndcActionType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action,
16594
17787
  mitigationType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation,
17788
+ mitigationSubType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation,
16595
17789
  energyGeneration: (_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _a === void 0 ? void 0 : _a.energyGeneration,
16596
17790
  energyGenerationUnit: (_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _b === void 0 ? void 0 : _b.energyGenerationUnit,
16597
17791
  consumerGroup: (_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.consumerGroup,
@@ -16669,18 +17863,42 @@ var NdcActionDetails = function (props) {
16669
17863
  if (formValues.ndcActionType === exports.NdcActionTypes.Mitigation ||
16670
17864
  formValues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
16671
17865
  if (formValues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
16672
- creditRequest = new cjs.AgricultureCreationRequest();
16673
- creditRequest.landArea = formValues.eligibleLandArea;
16674
- creditRequest.landAreaUnit = formValues.landAreaUnit;
16675
- creditRequest.duration =
16676
- programmeDetails.endTime - programmeDetails.startTime;
16677
- creditRequest.durationUnit = "s";
17866
+ if (formValues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
17867
+ creditRequest = new cjs.AgricultureCreationRequest();
17868
+ creditRequest.landArea = formValues.eligibleLandArea;
17869
+ creditRequest.landAreaUnit = formValues.landAreaUnit;
17870
+ creditRequest.duration =
17871
+ programmeDetails.endTime - programmeDetails.startTime;
17872
+ creditRequest.durationUnit = "s";
17873
+ }
17874
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
17875
+ creditRequest = new cjs.SoilEnrichmentCreationRequest();
17876
+ creditRequest.weight = formValues.tonnesOnDryBasis;
17877
+ }
16678
17878
  }
16679
17879
  else if (formValues.mitigationType === exports.MitigationTypes.SOLAR) {
16680
- creditRequest = new cjs.SolarCreationRequest();
16681
- creditRequest.buildingType = formValues.consumerGroup;
16682
- creditRequest.energyGeneration = formValues.energyGeneration;
16683
- creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17880
+ if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
17881
+ creditRequest = new cjs.SolarCreationRequest();
17882
+ creditRequest.buildingType = formValues.consumerGroup;
17883
+ creditRequest.energyGeneration = formValues.energyGeneration;
17884
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17885
+ }
17886
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
17887
+ creditRequest = new cjs.SolarWaterPumpingOffGridCreationRequest();
17888
+ creditRequest.energyGeneration = formValues.energyGeneration;
17889
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17890
+ }
17891
+ else if (formValues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
17892
+ creditRequest = new cjs.SolarWaterPumpingOnGridCreationRequest();
17893
+ creditRequest.energyGeneration = formValues.energyGeneration;
17894
+ creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
17895
+ }
17896
+ }
17897
+ else if (formValues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
17898
+ && formValues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
17899
+ creditRequest = new cjs.StovesHousesNamibiaCreationRequest();
17900
+ creditRequest.numberOfDays = formValues.numberOfDays;
17901
+ creditRequest.numberOfPeopleInHousehold = formValues.numberOfPeople;
16684
17902
  }
16685
17903
  }
16686
17904
  var creditResponse = cjs.calculateCredit(creditRequest);
@@ -16707,8 +17925,37 @@ var NdcActionDetails = function (props) {
16707
17925
  };
16708
17926
  var handleMitigationTypeChange = function (selectedMitigationType) {
16709
17927
  setmitigationType(selectedMitigationType);
17928
+ form.setFieldsValue({
17929
+ mitigationSubType: "",
17930
+ tonnesOnDryBasis: "",
17931
+ numberOfPeople: "",
17932
+ numberOfDays: "",
17933
+ landAreaUnit: "",
17934
+ eligibleLandArea: "",
17935
+ consumerGroup: "",
17936
+ energyGenerationUnit: "",
17937
+ energyGeneration: "",
17938
+ methodologyEstimatedCredits: 0,
17939
+ });
16710
17940
  calculateMethodologyEstimatedCredits();
16711
17941
  };
17942
+ var handleMitigationSubTypeChange = function (selectedSubMitigationType) {
17943
+ setMitigationSubType(selectedSubMitigationType);
17944
+ form.setFieldsValue({
17945
+ tonnesOnDryBasis: "",
17946
+ numberOfPeople: "",
17947
+ numberOfDays: "",
17948
+ landAreaUnit: "",
17949
+ eligibleLandArea: "",
17950
+ consumerGroup: "",
17951
+ energyGenerationUnit: "",
17952
+ energyGeneration: "",
17953
+ methodologyEstimatedCredits: 0,
17954
+ });
17955
+ };
17956
+ var handleMethodologyChange = function (selectedMethodology) {
17957
+ setMethodology(selectedMethodology);
17958
+ };
16712
17959
  var onNdcActionDetailsFormSubmit = function (ndcActionFormvalues) { return __awaiter(void 0, void 0, void 0, function () {
16713
17960
  var ndcActionDetailObj, enablementReport;
16714
17961
  var _a;
@@ -16719,17 +17966,28 @@ var NdcActionDetails = function (props) {
16719
17966
  ndcActionDetailObj.action = ndcActionFormvalues.ndcActionType;
16720
17967
  if (ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Mitigation ||
16721
17968
  ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
16722
- ndcActionDetailObj.methodology = t("ndcAction:goldStandard");
17969
+ ndcActionDetailObj.methodology = ndcActionFormvalues.methodology;
16723
17970
  ndcActionDetailObj.typeOfMitigation = ndcActionFormvalues.mitigationType;
16724
- if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
17971
+ ndcActionDetailObj.subTypeOfMitigation = ndcActionFormvalues.mitigationSubType;
17972
+ if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
17973
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.RICE_CROPS) {
16725
17974
  ndcActionDetailObj.agricultureProperties = {
16726
17975
  landArea: ndcActionFormvalues.eligibleLandArea
16727
17976
  ? ndcActionFormvalues.eligibleLandArea
16728
17977
  : 0,
16729
17978
  landAreaUnit: ndcActionFormvalues.landAreaUnit,
16730
17979
  };
17980
+ ndcActionDetailObj.creditCalculationProperties = {
17981
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
17982
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
17983
+ landArea: ndcActionFormvalues.eligibleLandArea
17984
+ ? ndcActionFormvalues.eligibleLandArea
17985
+ : 0,
17986
+ landAreaUnit: ndcActionFormvalues.landAreaUnit,
17987
+ };
16731
17988
  }
16732
- else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR) {
17989
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
17990
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV) {
16733
17991
  ndcActionDetailObj.solarProperties = {
16734
17992
  energyGeneration: ndcActionFormvalues.energyGeneration
16735
17993
  ? ndcActionFormvalues.energyGeneration
@@ -16737,18 +17995,54 @@ var NdcActionDetails = function (props) {
16737
17995
  energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
16738
17996
  consumerGroup: ndcActionFormvalues.consumerGroup,
16739
17997
  };
17998
+ ndcActionDetailObj.creditCalculationProperties = {
17999
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
18000
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
18001
+ energyGeneration: ndcActionFormvalues.energyGeneration
18002
+ ? ndcActionFormvalues.energyGeneration
18003
+ : 0,
18004
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
18005
+ consumerGroup: ndcActionFormvalues.consumerGroup,
18006
+ };
16740
18007
  }
16741
- if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR ||
16742
- ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
16743
- if (parseFloat(ndcActionFormvalues.methodologyEstimatedCredits) <= 0) {
16744
- antd.message.open({
16745
- type: "error",
16746
- content: t("methodologyEstimatedCreditsInvalid"),
16747
- duration: 4,
16748
- style: { textAlign: "right", marginRight: 15, marginTop: 10 },
16749
- });
16750
- return [2 /*return*/];
16751
- }
18008
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
18009
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID) {
18010
+ ndcActionDetailObj.creditCalculationProperties = {
18011
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
18012
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
18013
+ energyGeneration: ndcActionFormvalues.energyGeneration
18014
+ ? ndcActionFormvalues.energyGeneration
18015
+ : 0,
18016
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
18017
+ };
18018
+ }
18019
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR
18020
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) {
18021
+ ndcActionDetailObj.creditCalculationProperties = {
18022
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
18023
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
18024
+ energyGeneration: ndcActionFormvalues.energyGeneration
18025
+ ? ndcActionFormvalues.energyGeneration
18026
+ : 0,
18027
+ energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
18028
+ };
18029
+ }
18030
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS
18031
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA) {
18032
+ ndcActionDetailObj.creditCalculationProperties = {
18033
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
18034
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
18035
+ numberOfDays: ndcActionFormvalues.numberOfDays,
18036
+ numberOfPeopleInHousehold: ndcActionFormvalues.numberOfPeople,
18037
+ };
18038
+ }
18039
+ else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE
18040
+ && ndcActionFormvalues.mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR) {
18041
+ ndcActionDetailObj.creditCalculationProperties = {
18042
+ typeOfMitigation: ndcActionFormvalues.mitigationType,
18043
+ subTypeOfMitigation: ndcActionFormvalues.mitigationSubType,
18044
+ weight: ndcActionFormvalues.tonnesOnDryBasis,
18045
+ };
16752
18046
  }
16753
18047
  if (ndcActionFormvalues.userEstimatedCredits > programmeDetails.creditEst) {
16754
18048
  antd.message.open({
@@ -16870,24 +18164,36 @@ var NdcActionDetails = function (props) {
16870
18164
  (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Hospitality
16871
18165
  ? mitigationTypeList
16872
18166
  : sectorMitigationTypesListMapped[sector] }))),
16873
- React.createElement(antd.Col, { style: { marginLeft: "38px" } },
16874
- React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology" },
16875
- React.createElement("span", { style: {
16876
- display: "inline-block",
16877
- border: "1px solid #D9D9D9",
16878
- width: "154px",
16879
- height: "38px",
18167
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
18168
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
18169
+ mitigationType && mitigationSubTypesListMapped[mitigationType] && (React.createElement(antd.Col, { style: { marginLeft: "38px" } },
18170
+ React.createElement(antd.Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
18171
+ {
18172
+ required: true,
18173
+ message: "".concat(t("ndcAction:mitigationSubType"), " ").concat(t("ndcAction:isRequired")),
18174
+ },
18175
+ ] },
18176
+ React.createElement(antd.Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
18177
+ width: "249px",
16880
18178
  borderRadius: "4px",
16881
- padding: "7px 8px",
16882
- fontSize: "14px",
16883
- backgroundColor: "#F0F0F0",
16884
- color: "#8C8C8C",
16885
- } },
16886
- " ",
16887
- t("ndcAction:goldStandard"))))))),
18179
+ }, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType }))))),
18180
+ React.createElement(antd.Row, { justify: "start", align: "middle" },
18181
+ React.createElement(antd.Col, { span: 20 },
18182
+ React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [
18183
+ {
18184
+ required: true,
18185
+ message: "".concat(t("ndcAction:methodology"), " ").concat(t("ndcAction:isRequired")),
18186
+ },
18187
+ ] },
18188
+ React.createElement(antd.Select, { size: "large", onChange: handleMethodologyChange, style: {
18189
+ borderRadius: "4px",
18190
+ }, value: methodology }, methodologyOptions.map(function (option) { return (React.createElement(antd.Select.Option, { key: option, value: option }, option)); }))))))),
16888
18191
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
16889
18192
  ndcActionType === exports.NdcActionTypes.CrossCutting) &&
16890
- mitigationType === exports.MitigationTypes.SOLAR && (React.createElement(React.Fragment, null,
18193
+ mitigationType === exports.MitigationTypes.SOLAR &&
18194
+ (mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV ||
18195
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
18196
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) && (React.createElement(React.Fragment, null,
16891
18197
  React.createElement(antd.Row, { justify: "start", align: "middle" },
16892
18198
  React.createElement(antd.Col, null,
16893
18199
  React.createElement(antd.Form.Item, { label: t("ndcAction:energyGeneration"), rules: [
@@ -16904,12 +18210,20 @@ var NdcActionDetails = function (props) {
16904
18210
  value === undefined) {
16905
18211
  throw new Error("".concat(t("ndcAction:energyGeneration"), " ").concat(t("ndcAction:isRequired")));
16906
18212
  }
18213
+ if (value < 0) {
18214
+ throw new Error("".concat(t("ndcAction:allowOnlyNumericValueAndDecimal")));
18215
+ }
16907
18216
  return [2 /*return*/];
16908
18217
  });
16909
18218
  }); },
16910
18219
  },
16911
18220
  ], name: "energyGeneration" },
16912
- React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
18221
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: function (value) {
18222
+ var numericValue = Number(value); // Convert value to a number
18223
+ if (!isNaN(numericValue) && numericValue >= 0) {
18224
+ calculateMethodologyEstimatedCredits();
18225
+ }
18226
+ } }))),
16913
18227
  React.createElement(antd.Col, { style: { marginLeft: "38px" } },
16914
18228
  React.createElement(antd.Form.Item, { label: t("ndcAction:energyGenerationUnit"), name: "energyGenerationUnit", rules: [
16915
18229
  {
@@ -16918,16 +18232,17 @@ var NdcActionDetails = function (props) {
16918
18232
  },
16919
18233
  ] },
16920
18234
  React.createElement(antd.Select, { size: "large", style: { width: 442 }, options: energyGenerationUnitList, onChange: calculateMethodologyEstimatedCredits })))),
16921
- React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
18235
+ mitigationSubType === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV && (React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
16922
18236
  {
16923
18237
  required: true,
16924
18238
  message: "".concat(t("ndcAction:consumerGroup"), " ").concat(t("ndcAction:isRequired")),
16925
18239
  },
16926
18240
  ] },
16927
- React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList })))),
18241
+ React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList }))))),
16928
18242
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
16929
18243
  ndcActionType === exports.NdcActionTypes.CrossCutting) &&
16930
- mitigationType === exports.MitigationTypes.AGRICULTURE && (React.createElement(antd.Row, { justify: "start", align: "middle" },
18244
+ mitigationType === exports.MitigationTypes.AGRICULTURE &&
18245
+ mitigationSubType === exports.MitigationSubTypes.RICE_CROPS && (React.createElement(antd.Row, { justify: "start", align: "middle" },
16931
18246
  React.createElement(antd.Col, null,
16932
18247
  React.createElement(antd.Form.Item, { label: t("ndcAction:eligibleLandArea"), name: "eligibleLandArea", rules: [
16933
18248
  {
@@ -16943,12 +18258,20 @@ var NdcActionDetails = function (props) {
16943
18258
  value === undefined) {
16944
18259
  throw new Error("".concat(t("ndcAction:eligibleLandArea"), " ").concat(t("ndcAction:isRequired")));
16945
18260
  }
18261
+ if (value < 0) {
18262
+ throw new Error("".concat(t("ndcAction:allowOnlyNumericValueAndDecimal")));
18263
+ }
16946
18264
  return [2 /*return*/];
16947
18265
  });
16948
18266
  }); },
16949
18267
  },
16950
18268
  ] },
16951
- React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
18269
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: function (value) {
18270
+ var numericValue = Number(value); // Convert value to a number
18271
+ if (!isNaN(numericValue) && numericValue >= 0) {
18272
+ calculateMethodologyEstimatedCredits();
18273
+ }
18274
+ } }))),
16952
18275
  React.createElement(antd.Col, { style: { marginLeft: "38px" } },
16953
18276
  React.createElement(antd.Form.Item, { label: t("ndcAction:landAreaUnit"), name: "landAreaUnit", rules: [
16954
18277
  {
@@ -16957,6 +18280,108 @@ var NdcActionDetails = function (props) {
16957
18280
  },
16958
18281
  ] },
16959
18282
  React.createElement(antd.Select, { onChange: calculateMethodologyEstimatedCredits, size: "large", style: { width: 442 }, options: landAreaUnitList }))))),
18283
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
18284
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
18285
+ mitigationType === exports.MitigationTypes.AGRICULTURE &&
18286
+ mitigationSubType === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR && (React.createElement(antd.Row, { justify: "start", align: "middle" },
18287
+ React.createElement(antd.Col, null,
18288
+ React.createElement(antd.Form.Item, { label: t("ndcAction:tonnesOnDryBasis"), name: "tonnesOnDryBasis", rules: [
18289
+ {
18290
+ required: true,
18291
+ message: "",
18292
+ },
18293
+ {
18294
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
18295
+ return __generator(this, function (_a) {
18296
+ if (String(value).trim() === "" ||
18297
+ String(value).trim() === undefined ||
18298
+ value === null ||
18299
+ value === undefined) {
18300
+ throw new Error("".concat(t("ndcAction:tonnesOnDryBasis"), " ").concat(t("ndcAction:isRequired")));
18301
+ }
18302
+ if (value < 1) {
18303
+ throw new Error("".concat(t("ndcAction:allowOnlyNumericValueAndDecimal")));
18304
+ }
18305
+ return [2 /*return*/];
18306
+ });
18307
+ }); },
18308
+ },
18309
+ ] },
18310
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: function (value) {
18311
+ var numericValue = Number(value); // Convert value to a number
18312
+ if (!isNaN(numericValue) && numericValue >= 0) {
18313
+ calculateMethodologyEstimatedCredits();
18314
+ }
18315
+ } }))))),
18316
+ (ndcActionType === exports.NdcActionTypes.Mitigation ||
18317
+ ndcActionType === exports.NdcActionTypes.CrossCutting) &&
18318
+ mitigationType === exports.MitigationTypes.EE_HOUSEHOLDS &&
18319
+ mitigationSubType === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA && (React.createElement(React.Fragment, null,
18320
+ React.createElement(antd.Row, { justify: "start", align: "middle" },
18321
+ React.createElement(antd.Col, null,
18322
+ React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfDays"), rules: [
18323
+ {
18324
+ required: true,
18325
+ message: "",
18326
+ },
18327
+ {
18328
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
18329
+ return __generator(this, function (_a) {
18330
+ if (String(value).trim() === "" ||
18331
+ String(value).trim() === undefined ||
18332
+ value === null ||
18333
+ value === undefined) {
18334
+ throw new Error("".concat(t("ndcAction:numberOfDays"), " ").concat(t("ndcAction:isRequired")));
18335
+ }
18336
+ if (value < 0) {
18337
+ throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
18338
+ }
18339
+ if (!Number.isInteger(value)) {
18340
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
18341
+ }
18342
+ return [2 /*return*/];
18343
+ });
18344
+ }); },
18345
+ },
18346
+ ], name: "numberOfDays" },
18347
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: function (value) {
18348
+ var numericValue = Number(value); // Convert value to a number
18349
+ if (!isNaN(numericValue) && numericValue >= 0) {
18350
+ calculateMethodologyEstimatedCredits();
18351
+ }
18352
+ } }))),
18353
+ React.createElement(antd.Col, { style: { marginLeft: "38px" } },
18354
+ React.createElement(antd.Form.Item, { label: t("ndcAction:numberOfPeople"), rules: [
18355
+ {
18356
+ required: true,
18357
+ message: "",
18358
+ },
18359
+ {
18360
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
18361
+ return __generator(this, function (_a) {
18362
+ if (String(value).trim() === "" ||
18363
+ String(value).trim() === undefined ||
18364
+ value === null ||
18365
+ value === undefined) {
18366
+ throw new Error("".concat(t("ndcAction:numberOfPeople"), " ").concat(t("ndcAction:isRequired")));
18367
+ }
18368
+ if (value < 0) {
18369
+ throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
18370
+ }
18371
+ if (!Number.isInteger(value)) {
18372
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
18373
+ }
18374
+ return [2 /*return*/];
18375
+ });
18376
+ }); },
18377
+ },
18378
+ ], name: "numberOfPeople" },
18379
+ React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: function (value) {
18380
+ var numericValue = Number(value); // Convert value to a number
18381
+ if (!isNaN(numericValue) && numericValue >= 0) {
18382
+ calculateMethodologyEstimatedCredits();
18383
+ }
18384
+ } })))))),
16960
18385
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
16961
18386
  ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, { justify: "start", align: "middle" },
16962
18387
  React.createElement(antd.Col, null,
@@ -19919,26 +21344,55 @@ var NdcActionViewComponent = function (props) {
19919
21344
  _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))),
19920
21345
  _a);
19921
21346
  var getNdcActionMitigationDetails = function () {
19922
- var _a, _b, _c, _d, _e;
21347
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
19923
21348
  var mitigationDetails = {};
19924
21349
  mitigationTypeList === null || mitigationTypeList === void 0 ? void 0 : mitigationTypeList.map(function (type) {
19925
21350
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === type.value) {
19926
21351
  mitigationDetails[t("ndcAction:viewMitigationType")] = type.label;
19927
21352
  }
19928
21353
  });
21354
+ mitigationSubTypeList === null || mitigationSubTypeList === void 0 ? void 0 : mitigationSubTypeList.map(function (type) {
21355
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === type.value) {
21356
+ mitigationDetails[t("ndcAction:viewMitigationSubType")] = type.label;
21357
+ }
21358
+ });
19929
21359
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
21360
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.RICE_CROPS &&
19930
21361
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties)) {
19931
21362
  mitigationDetails[t("ndcAction:viewMitigationLandArea")] =
19932
21363
  addCommSep((_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _a === void 0 ? void 0 : _a.landArea) +
19933
21364
  ((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
19934
21365
  }
21366
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
21367
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
21368
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21369
+ mitigationDetails[t("ndcAction:viewMitigationWeight")] =
21370
+ addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
21371
+ }
19935
21372
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
21373
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
19936
21374
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
19937
21375
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
19938
- addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.energyGeneration) +
19939
- ((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGenerationUnit);
21376
+ addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
21377
+ ((_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.energyGenerationUnit);
19940
21378
  mitigationDetails[t("ndcAction:viewMitigationConsumerGroup")] =
19941
- (_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _e === void 0 ? void 0 : _e.consumerGroup;
21379
+ (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
21380
+ }
21381
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
21382
+ ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
21383
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
21384
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21385
+ mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
21386
+ addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
21387
+ ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
21388
+ }
21389
+ if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.EE_HOUSEHOLDS &&
21390
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
21391
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21392
+ mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
21393
+ (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
21394
+ mitigationDetails[t("ndcAction:viewMitigationNoOfPeople")] =
21395
+ (_k = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _k === void 0 ? void 0 : _k.numberOfPeopleInHousehold;
19942
21396
  }
19943
21397
  if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.ndcFinancing) {
19944
21398
  mitigationDetails[t("ndcAction:viewMitigationUserEstimatedCredits")] =
@@ -25342,22 +26796,58 @@ var InvestmentBody = function (props) {
25342
26796
  React.createElement(antd.Tooltip, { title: addSpaces(investmentData === null || investmentData === void 0 ? void 0 : investmentData.stream), color: TooltipColor, key: TooltipColor }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.stream) === exports.InvestmentStream.CLIMATE_FINANCE ? (React.createElement(icons.BankOutlined, { className: "action-icons" })) : (React.createElement(icons.LineChartOutlined, { className: "action-icons" }))))))));
25343
26797
  };
25344
26798
 
26799
+ var getValidNdcActions = function (programme) {
26800
+ var _a;
26801
+ var actionCreditsArray = [];
26802
+ (_a = programme.mitigationActions) === null || _a === void 0 ? void 0 : _a.map(function (action) {
26803
+ var _a;
26804
+ var verfiedAction = false;
26805
+ if (action.projectMaterial) {
26806
+ for (var _i = 0, _b = action.projectMaterial; _i < _b.length; _i++) {
26807
+ var document = _b[_i];
26808
+ if (document.includes("VERIFICATION_REPORT") && ((_a = action.properties) === null || _a === void 0 ? void 0 : _a.availableCredits)) {
26809
+ verfiedAction = true;
26810
+ break;
26811
+ }
26812
+ }
26813
+ }
26814
+ if (verfiedAction && 0 < action.properties.availableCredits) {
26815
+ actionCreditsArray.push({
26816
+ actionId: action.actionId,
26817
+ availableCredits: action.properties.availableCredits,
26818
+ });
26819
+ }
26820
+ });
26821
+ return actionCreditsArray;
26822
+ };
25345
26823
  var ProgrammeIssueForm = function (props) {
25346
- var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, enableIssue = props.enableIssue, translator = props.translator;
26824
+ var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, enableIssue = props.enableIssue, translator = props.translator, ndcActions = props.ndcActions;
25347
26825
  var t = translator.t;
25348
26826
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
25349
26827
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
25350
26828
  return (React.createElement("div", { className: "transfer-form" },
25351
26829
  React.createElement(antd.Row, null,
25352
26830
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
25353
- React.createElement(antd.Form, { name: "transfer_init_popup", layout: "vertical", initialValues: {
25354
- issueAmount: 0,
25355
- }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
25356
- var res;
26831
+ React.createElement(antd.Form, { name: "transfer_init_popup", layout: "vertical", onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
26832
+ var totalAmount, validIssues, res;
25357
26833
  return __generator(this, function (_a) {
25358
26834
  switch (_a.label) {
25359
26835
  case 0:
25360
- if (d.issueAmount === 0) {
26836
+ validIssues = [];
26837
+ if (enableIssue) {
26838
+ totalAmount = 0;
26839
+ d.issueAmount.map(function (action) {
26840
+ totalAmount += action.issueCredit;
26841
+ if (action.issueCredit > 0) {
26842
+ validIssues.push({
26843
+ actionId: action.actionId,
26844
+ issueCredit: action.issueCredit,
26845
+ });
26846
+ }
26847
+ });
26848
+ d.issueAmount = validIssues;
26849
+ }
26850
+ if (totalAmount === 0) {
25361
26851
  setPopupError("Issue amount should be greater than 0");
25362
26852
  setLoading(false);
25363
26853
  return [2 /*return*/];
@@ -25372,43 +26862,54 @@ var ProgrammeIssueForm = function (props) {
25372
26862
  }
25373
26863
  });
25374
26864
  }); } },
25375
- enableIssue ? (React.createElement(antd.Row, null,
25376
- React.createElement(antd.Col, { lg: 11, md: 24 },
25377
- React.createElement("div", { className: "label" }, "".concat(t("view:issueCreditText"), " (").concat(creditUnit, ")"))),
25378
- React.createElement(antd.Col, { lg: 6, md: 12 },
25379
- React.createElement(antd.Form.Item, { className: "popup-credit-input", name: "issueAmount", rules: [
25380
- {
25381
- pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
25382
- message: "Credit Should be a positive number",
25383
- },
25384
- {
25385
- required: true,
25386
- message: "Required field",
25387
- },
25388
- function (_a) {
25389
- var getFieldValue = _a.getFieldValue;
25390
- return ({
25391
- validator: function (rule, value) {
25392
- if (getFieldValue("issueAmount") &&
25393
- parseFloat(getFieldValue("issueAmount")) >
25394
- programme.creditEst - programme.creditIssued) {
25395
- // eslint-disable-next-line prefer-promise-reject-errors
25396
- return Promise.reject("Amount > Authorised");
25397
- }
25398
- return Promise.resolve();
25399
- },
25400
- });
25401
- },
25402
- ] },
25403
- React.createElement(antd.InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
25404
- if (!/[0-9\.]/.test(event.key)) {
25405
- event.preventDefault();
25406
- }
25407
- } }))),
25408
- React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
25409
- React.createElement(antd.Col, { lg: 6, md: 12 },
25410
- React.createElement(antd.Form.Item, { className: "popup-credit-input" },
25411
- React.createElement(antd.InputNumber, { placeholder: addCommSep(programme.creditEst - programme.creditIssued), disabled: true }))))) : (React.createElement(antd.Row, null,
26865
+ ndcActions && enableIssue ? (React.createElement(antd.Form.List, { name: "issueAmount", initialValue: ndcActions }, function (fields, _a) {
26866
+ _a.add; _a.remove;
26867
+ return (React.createElement("div", { style: { width: "100%" }, className: "space-container" }, fields.map(function (_a) {
26868
+ var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
26869
+ return (React.createElement(antd.Space, { wrap: true, key: key, style: {
26870
+ display: "flex",
26871
+ marginBottom: 8,
26872
+ }, align: "center", size: "large" },
26873
+ React.createElement("div", { style: { width: "100%" } },
26874
+ React.createElement(antd.Row, null,
26875
+ React.createElement(antd.Col, { lg: 11, md: 24 },
26876
+ React.createElement("div", { className: "label" }, "".concat(t("view:issueCreditNdcIdText"), ": ").concat(ndcActions[name].actionId))),
26877
+ React.createElement(antd.Col, { lg: 6, md: 12 },
26878
+ React.createElement(antd.Form.Item, { initialValue: 0, className: "popup-credit-input", name: [name, "issueCredit"], rules: [
26879
+ {
26880
+ pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
26881
+ message: "Credit Should be a positive number",
26882
+ },
26883
+ {
26884
+ required: true,
26885
+ message: "Required field",
26886
+ },
26887
+ function (_a) {
26888
+ _a.getFieldValue;
26889
+ return ({
26890
+ validator: function (rule, value) {
26891
+ if (value &&
26892
+ parseFloat(value) >
26893
+ ndcActions[name].availableCredits) {
26894
+ // eslint-disable-next-line prefer-promise-reject-errors
26895
+ return Promise.reject("Amount > Authorised");
26896
+ }
26897
+ return Promise.resolve();
26898
+ },
26899
+ });
26900
+ },
26901
+ ] },
26902
+ React.createElement(antd.InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
26903
+ if (!/[0-9\.]/.test(event.key)) {
26904
+ event.preventDefault();
26905
+ }
26906
+ } }))),
26907
+ React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
26908
+ React.createElement(antd.Col, { lg: 6, md: 12 },
26909
+ React.createElement(antd.Form.Item, __assign({ className: "popup-credit-input" }, restField, { name: [name, "availableCredits"] }),
26910
+ React.createElement(antd.InputNumber, { formatter: function (value) { return addCommSep(value); }, disabled: true })))))));
26911
+ })));
26912
+ })) : (React.createElement(antd.Row, null,
25412
26913
  React.createElement(antd.Col, { lg: 18, md: 20 },
25413
26914
  React.createElement("div", { className: "label" }, "".concat(t("view:authCreditText"), " (").concat(creditUnit, ")"))),
25414
26915
  React.createElement(antd.Col, { lg: 6, md: 6 },
@@ -25962,7 +27463,7 @@ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column
25962
27463
  styleInject(css_248z$2);
25963
27464
 
25964
27465
  var NdcActionBody = function (props) {
25965
- var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, translator = props.translator, useUserContext = props.useUserContext;
27466
+ var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, translator = props.translator, useUserContext = props.useUserContext, onFinish = props.onFinish, programme = props.programme;
25966
27467
  var t = translator.t;
25967
27468
  var userInfoState = useUserContext().userInfoState;
25968
27469
  var fileInputMonitoringRef = React.useRef(null);
@@ -25997,7 +27498,7 @@ var NdcActionBody = function (props) {
25997
27498
  (_a = fileInputVerificationRef === null || fileInputVerificationRef === void 0 ? void 0 : fileInputVerificationRef.current) === null || _a === void 0 ? void 0 : _a.click();
25998
27499
  };
25999
27500
  var onUploadDocument = function (file, type) { return __awaiter(void 0, void 0, void 0, function () {
26000
- var logoBase64, response;
27501
+ var logoBase64, response_1, programmeData, modified_1;
26001
27502
  return __generator(this, function (_a) {
26002
27503
  switch (_a.label) {
26003
27504
  case 0:
@@ -26025,14 +27526,40 @@ var NdcActionBody = function (props) {
26025
27526
  actionId: ndcActionId,
26026
27527
  })];
26027
27528
  case 3:
26028
- response = _a.sent();
26029
- if (response === null || response === void 0 ? void 0 : response.data) {
27529
+ response_1 = _a.sent();
27530
+ if (response_1 === null || response_1 === void 0 ? void 0 : response_1.data) {
26030
27531
  antd.message.open({
26031
27532
  type: "success",
26032
27533
  content: "".concat(t("programme:isUploaded")),
26033
27534
  duration: 4,
26034
27535
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26035
27536
  });
27537
+ if (type == exports.DocType.VERIFICATION_REPORT &&
27538
+ (response_1 === null || response_1 === void 0 ? void 0 : response_1.data.status) == exports.DocumentStatus.ACCEPTED &&
27539
+ response_1.data.programme.mitigationActions) {
27540
+ programmeData = response_1 === null || response_1 === void 0 ? void 0 : response_1.data.programme;
27541
+ modified_1 = false;
27542
+ programmeData.mitigationActions.map(function (action) {
27543
+ if (action.actionId == ndcActionId) {
27544
+ modified_1 = true;
27545
+ var docAdded = false;
27546
+ for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
27547
+ var document = _a[_i];
27548
+ if (document.includes("VERIFICATION_REPORT")) {
27549
+ docAdded = true;
27550
+ break;
27551
+ }
27552
+ }
27553
+ if (!docAdded) {
27554
+ action.projectMaterial.push(response_1 === null || response_1 === void 0 ? void 0 : response_1.data.url);
27555
+ }
27556
+ }
27557
+ });
27558
+ if (modified_1) {
27559
+ programme.mitigationActions = programmeData.mitigationActions;
27560
+ onFinish(programme);
27561
+ }
27562
+ }
26036
27563
  }
26037
27564
  return [3 /*break*/, 5];
26038
27565
  case 4:
@@ -26064,14 +27591,14 @@ var NdcActionBody = function (props) {
26064
27591
  });
26065
27592
  }); };
26066
27593
  var docAction = function (id, status, actionId, type) { return __awaiter(void 0, void 0, void 0, function () {
26067
- var error_2;
27594
+ var programmeRes, programmeData, docRepoRes, docUrl_1, modified_2, error_2;
26068
27595
  return __generator(this, function (_a) {
26069
27596
  switch (_a.label) {
26070
27597
  case 0:
26071
27598
  setLoading(true);
26072
27599
  _a.label = 1;
26073
27600
  case 1:
26074
- _a.trys.push([1, 3, 4, 5]);
27601
+ _a.trys.push([1, 6, 7, 8]);
26075
27602
  return [4 /*yield*/, post("national/programme/docAction", {
26076
27603
  id: id,
26077
27604
  status: status,
@@ -26087,8 +27614,51 @@ var NdcActionBody = function (props) {
26087
27614
  duration: 4,
26088
27615
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26089
27616
  });
26090
- return [3 /*break*/, 5];
27617
+ if (!(type == exports.DocType.VERIFICATION_REPORT &&
27618
+ status == exports.DocumentStatus.ACCEPTED)) return [3 /*break*/, 5];
27619
+ return [4 /*yield*/, post("national/programme/query", {
27620
+ page: 1,
27621
+ size: 2,
27622
+ filterAnd: [
27623
+ {
27624
+ key: "programmeId",
27625
+ operation: "=",
27626
+ value: programmeId,
27627
+ },
27628
+ ],
27629
+ })];
26091
27630
  case 3:
27631
+ programmeRes = _a.sent();
27632
+ programmeData = programmeRes.data[0];
27633
+ if (!programmeData.mitigationActions) return [3 /*break*/, 5];
27634
+ return [4 /*yield*/, post("national/programme/queryDocs", {
27635
+ page: 1,
27636
+ size: 100,
27637
+ filterAnd: [
27638
+ {
27639
+ key: "id",
27640
+ operation: "=",
27641
+ value: id,
27642
+ },
27643
+ ],
27644
+ })];
27645
+ case 4:
27646
+ docRepoRes = _a.sent();
27647
+ docUrl_1 = docRepoRes.data[0].url;
27648
+ modified_2 = false;
27649
+ programmeData.mitigationActions.map(function (action) {
27650
+ if (action.actionId == actionId) {
27651
+ modified_2 = true;
27652
+ if (!action.projectMaterial.includes(docUrl_1)) {
27653
+ action.projectMaterial.push(docUrl_1);
27654
+ }
27655
+ }
27656
+ });
27657
+ if (modified_2)
27658
+ onFinish(programmeData);
27659
+ _a.label = 5;
27660
+ case 5: return [3 /*break*/, 8];
27661
+ case 6:
26092
27662
  error_2 = _a.sent();
26093
27663
  antd.message.open({
26094
27664
  type: "error",
@@ -26096,13 +27666,13 @@ var NdcActionBody = function (props) {
26096
27666
  duration: 4,
26097
27667
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26098
27668
  });
26099
- return [3 /*break*/, 5];
26100
- case 4:
27669
+ return [3 /*break*/, 8];
27670
+ case 7:
26101
27671
  getProgrammeDocs();
26102
27672
  setOpenRejectDocConfirmationModal(false);
26103
27673
  setLoading(false);
26104
27674
  return [7 /*endfinally*/];
26105
- case 5: return [2 /*return*/];
27675
+ case 8: return [2 /*return*/];
26106
27676
  }
26107
27677
  });
26108
27678
  }); };
@@ -26737,14 +28307,54 @@ var ProgrammeDocuments = function (props) {
26737
28307
  var css_248z = ".remark {\n padding-top: 7px;\n font-size: 0.75rem; }\n .remark .remark-title {\n text-transform: capitalize;\n font-weight: 500;\n color: rgba(58, 53, 65, 0.5); }\n .remark .remark-body {\n font-weight: 400;\n color: rgba(58, 53, 65, 0.5); }\n";
26738
28308
  styleInject(css_248z);
26739
28309
 
28310
+ var formatString = function (str, vargs) {
28311
+ var parts = str.split("{}");
28312
+ var insertAt = 1;
28313
+ for (var _i = 0, vargs_1 = vargs; _i < vargs_1.length; _i++) {
28314
+ var arg = vargs_1[_i];
28315
+ parts.splice(insertAt, 0, arg);
28316
+ insertAt += 2;
28317
+ }
28318
+ return parts.join("");
28319
+ };
28320
+ var addNdcDesc = function (props) {
28321
+ var ndcActions = props.ndcActions, t = props.t, creditUnit = props.creditUnit;
28322
+ var actions = ndcActions.split("&");
28323
+ var ndcDesc = "";
28324
+ for (var id in actions) {
28325
+ var parts = actions[id].split("?");
28326
+ if (Number(id) == actions.length - 1 && actions.length > 1) {
28327
+ ndcDesc += " and ".concat(formatString(t("view:t1IssueNdcDesc"), [
28328
+ parts[1],
28329
+ creditUnit,
28330
+ parts[0],
28331
+ ]));
28332
+ }
28333
+ else if (actions.length > 1 && Number(id) != actions.length - 2) {
28334
+ ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
28335
+ parts[1],
28336
+ creditUnit,
28337
+ parts[0],
28338
+ ]), ", ");
28339
+ }
28340
+ else {
28341
+ ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
28342
+ parts[1],
28343
+ creditUnit,
28344
+ parts[0],
28345
+ ]));
28346
+ }
28347
+ }
28348
+ return ndcDesc;
28349
+ };
26740
28350
  var TimelineBody = function (props) {
26741
28351
  var text = props.text, remark = props.remark, via = props.via, t = props.t;
26742
28352
  return (React.createElement("div", null,
26743
28353
  React.createElement("div", null,
26744
28354
  text,
26745
- via && React.createElement("span", null, " ".concat(t('view:via'), " ").concat(via))),
26746
- remark && remark !== 'undefined' && remark !== 'null' && (React.createElement("div", { className: "remark" },
26747
- React.createElement("div", { className: "remark-title" }, t('view:remarks')),
28355
+ via && React.createElement("span", null, " ".concat(t("view:via"), " ").concat(via))),
28356
+ remark && remark !== "undefined" && remark !== "null" && (React.createElement("div", { className: "remark" },
28357
+ React.createElement("div", { className: "remark-title" }, t("view:remarks")),
26748
28358
  React.createElement("div", { className: "remark-body" }, remark)))));
26749
28359
  };
26750
28360
 
@@ -26817,6 +28427,7 @@ exports.ViewBGColor = ViewBGColor;
26817
28427
  exports.ViewColor = ViewColor;
26818
28428
  exports.addCommSep = addCommSep;
26819
28429
  exports.addCommSepRound = addCommSepRound;
28430
+ exports.addNdcDesc = addNdcDesc;
26820
28431
  exports.addRoundNumber = addRoundNumber;
26821
28432
  exports.addSpaces = addSpaces;
26822
28433
  exports.consumerGroupList = consumerGroupList;
@@ -26839,8 +28450,12 @@ exports.getStageTagTypeMRV = getStageTagTypeMRV;
26839
28450
  exports.getStageTransferEnumVal = getStageTransferEnumVal;
26840
28451
  exports.getStatusTagType = getStatusTagType;
26841
28452
  exports.getTransferStageTagType = getTransferStageTagType;
28453
+ exports.getValidNdcActions = getValidNdcActions;
26842
28454
  exports.isBase64 = isBase64;
26843
28455
  exports.landAreaUnitList = landAreaUnitList;
28456
+ exports.methodologyOptions = methodologyOptions;
28457
+ exports.mitigationSubTypeList = mitigationSubTypeList;
28458
+ exports.mitigationSubTypesListMapped = mitigationSubTypesListMapped;
26844
28459
  exports.mitigationTypeList = mitigationTypeList;
26845
28460
  exports.ndcActionTypeList = ndcActionTypeList;
26846
28461
  exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;