@undp/carbon-library 1.0.169-CARBON-329.0 → 1.0.169-investment-fixes.0

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.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";
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";
861
861
  styleInject(css_248z$r);
862
862
 
863
863
  exports.UserManagementColumns = void 0;
@@ -14256,12 +14256,7 @@ var InvestmentCreationComponent = function (props) {
14256
14256
  onNavigateToProgrammeManagementView();
14257
14257
  return;
14258
14258
  }
14259
- if (state === null || state === void 0 ? void 0 : state.record) {
14260
- setData(state === null || state === void 0 ? void 0 : state.record);
14261
- }
14262
- else {
14263
- setData({ ownership: true });
14264
- }
14259
+ setData(state.record);
14265
14260
  }, []);
14266
14261
  React.useEffect(function () {
14267
14262
  if (data) {
@@ -14277,14 +14272,12 @@ var InvestmentCreationComponent = function (props) {
14277
14272
  }
14278
14273
  console.log('data', data);
14279
14274
  var companyName = {};
14280
- if (data && Object.keys(data)[0] !== "ownership") {
14281
- for (var _i = 0, _l = data === null || data === void 0 ? void 0 : data.company; _i < _l.length; _i++) {
14282
- var company = _l[_i];
14283
- companyName[company === null || company === void 0 ? void 0 : company.companyId] = company;
14284
- }
14285
- if (!data.proponentPercentage) {
14286
- data.proponentPercentage = [100];
14287
- }
14275
+ for (var _i = 0, _l = data.company; _i < _l.length; _i++) {
14276
+ var company = _l[_i];
14277
+ companyName[company.companyId] = company;
14278
+ }
14279
+ if (!data.proponentPercentage) {
14280
+ data.proponentPercentage = [100];
14288
14281
  }
14289
14282
  var nextOne = function (val) {
14290
14283
  setCurrent(current + 1);
@@ -25342,57 +25335,22 @@ var InvestmentBody = function (props) {
25342
25335
  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
25336
  };
25344
25337
 
25345
- var getValidNdcActions = function (programme) {
25346
- var _a;
25347
- var actionCreditsArray = [];
25348
- (_a = programme.mitigationActions) === null || _a === void 0 ? void 0 : _a.map(function (action) {
25349
- var verfiedAction = false;
25350
- if (action.projectMaterial) {
25351
- for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
25352
- var document = _a[_i];
25353
- if (document.includes("VERIFICATION_REPORT")) {
25354
- verfiedAction = true;
25355
- break;
25356
- }
25357
- }
25358
- }
25359
- if (verfiedAction && 0 < action.properties.availableCredits) {
25360
- actionCreditsArray.push({
25361
- actionId: action.actionId,
25362
- availableCredits: action.properties.availableCredits,
25363
- });
25364
- }
25365
- });
25366
- return actionCreditsArray;
25367
- };
25368
25338
  var ProgrammeIssueForm = function (props) {
25369
- 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;
25339
+ var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, enableIssue = props.enableIssue, translator = props.translator;
25370
25340
  var t = translator.t;
25371
25341
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
25372
25342
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
25373
25343
  return (React.createElement("div", { className: "transfer-form" },
25374
25344
  React.createElement(antd.Row, null,
25375
25345
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
25376
- 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 () {
25377
- var totalAmount, validIssues, res;
25346
+ React.createElement(antd.Form, { name: "transfer_init_popup", layout: "vertical", initialValues: {
25347
+ issueAmount: 0,
25348
+ }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
25349
+ var res;
25378
25350
  return __generator(this, function (_a) {
25379
25351
  switch (_a.label) {
25380
25352
  case 0:
25381
- validIssues = [];
25382
- if (enableIssue) {
25383
- totalAmount = 0;
25384
- d.issueAmount.map(function (action) {
25385
- totalAmount += action.issueCredit;
25386
- if (action.issueCredit > 0) {
25387
- validIssues.push({
25388
- actionId: action.actionId,
25389
- issueCredit: action.issueCredit,
25390
- });
25391
- }
25392
- });
25393
- d.issueAmount = validIssues;
25394
- }
25395
- if (totalAmount === 0) {
25353
+ if (d.issueAmount === 0) {
25396
25354
  setPopupError("Issue amount should be greater than 0");
25397
25355
  setLoading(false);
25398
25356
  return [2 /*return*/];
@@ -25407,54 +25365,43 @@ var ProgrammeIssueForm = function (props) {
25407
25365
  }
25408
25366
  });
25409
25367
  }); } },
25410
- ndcActions && enableIssue ? (React.createElement(antd.Form.List, { name: "issueAmount", initialValue: ndcActions }, function (fields, _a) {
25411
- _a.add; _a.remove;
25412
- return (React.createElement("div", { style: { width: "100%" }, className: "space-container" }, fields.map(function (_a) {
25413
- var key = _a.key, name = _a.name, restField = __rest(_a, ["key", "name"]);
25414
- return (React.createElement(antd.Space, { wrap: true, key: key, style: {
25415
- display: "flex",
25416
- marginBottom: 8,
25417
- }, align: "center", size: "large" },
25418
- React.createElement("div", { style: { width: "100%" } },
25419
- React.createElement(antd.Row, null,
25420
- React.createElement(antd.Col, { lg: 11, md: 24 },
25421
- React.createElement("div", { className: "label" }, "".concat(t("view:issueCreditNdcIdText"), ": ").concat(ndcActions[name].actionId))),
25422
- React.createElement(antd.Col, { lg: 6, md: 12 },
25423
- React.createElement(antd.Form.Item, { initialValue: 0, className: "popup-credit-input", name: [name, "issueCredit"], rules: [
25424
- {
25425
- pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
25426
- message: "Credit Should be a positive number",
25427
- },
25428
- {
25429
- required: true,
25430
- message: "Required field",
25431
- },
25432
- function (_a) {
25433
- _a.getFieldValue;
25434
- return ({
25435
- validator: function (rule, value) {
25436
- if (value &&
25437
- parseFloat(value) >
25438
- ndcActions[name].availableCredits) {
25439
- // eslint-disable-next-line prefer-promise-reject-errors
25440
- return Promise.reject("Amount > Authorised");
25441
- }
25442
- return Promise.resolve();
25443
- },
25444
- });
25445
- },
25446
- ] },
25447
- React.createElement(antd.InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
25448
- if (!/[0-9\.]/.test(event.key)) {
25449
- event.preventDefault();
25450
- }
25451
- } }))),
25452
- React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
25453
- React.createElement(antd.Col, { lg: 6, md: 12 },
25454
- React.createElement(antd.Form.Item, __assign({ className: "popup-credit-input" }, restField, { name: [name, "availableCredits"] }),
25455
- React.createElement(antd.InputNumber, { formatter: function (value) { return addCommSep(value); }, disabled: true })))))));
25456
- })));
25457
- })) : (React.createElement(antd.Row, null,
25368
+ enableIssue ? (React.createElement(antd.Row, null,
25369
+ React.createElement(antd.Col, { lg: 11, md: 24 },
25370
+ React.createElement("div", { className: "label" }, "".concat(t("view:issueCreditText"), " (").concat(creditUnit, ")"))),
25371
+ React.createElement(antd.Col, { lg: 6, md: 12 },
25372
+ React.createElement(antd.Form.Item, { className: "popup-credit-input", name: "issueAmount", rules: [
25373
+ {
25374
+ pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
25375
+ message: "Credit Should be a positive number",
25376
+ },
25377
+ {
25378
+ required: true,
25379
+ message: "Required field",
25380
+ },
25381
+ function (_a) {
25382
+ var getFieldValue = _a.getFieldValue;
25383
+ return ({
25384
+ validator: function (rule, value) {
25385
+ if (getFieldValue("issueAmount") &&
25386
+ parseFloat(getFieldValue("issueAmount")) >
25387
+ programme.creditEst - programme.creditIssued) {
25388
+ // eslint-disable-next-line prefer-promise-reject-errors
25389
+ return Promise.reject("Amount > Authorised");
25390
+ }
25391
+ return Promise.resolve();
25392
+ },
25393
+ });
25394
+ },
25395
+ ] },
25396
+ React.createElement(antd.InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
25397
+ if (!/[0-9\.]/.test(event.key)) {
25398
+ event.preventDefault();
25399
+ }
25400
+ } }))),
25401
+ React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
25402
+ React.createElement(antd.Col, { lg: 6, md: 12 },
25403
+ React.createElement(antd.Form.Item, { className: "popup-credit-input" },
25404
+ React.createElement(antd.InputNumber, { placeholder: addCommSep(programme.creditEst - programme.creditIssued), disabled: true }))))) : (React.createElement(antd.Row, null,
25458
25405
  React.createElement(antd.Col, { lg: 18, md: 20 },
25459
25406
  React.createElement("div", { className: "label" }, "".concat(t("view:authCreditText"), " (").concat(creditUnit, ")"))),
25460
25407
  React.createElement(antd.Col, { lg: 6, md: 6 },
@@ -26008,7 +25955,7 @@ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column
26008
25955
  styleInject(css_248z$2);
26009
25956
 
26010
25957
  var NdcActionBody = function (props) {
26011
- 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;
25958
+ 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;
26012
25959
  var t = translator.t;
26013
25960
  var userInfoState = useUserContext().userInfoState;
26014
25961
  var fileInputMonitoringRef = React.useRef(null);
@@ -26043,7 +25990,7 @@ var NdcActionBody = function (props) {
26043
25990
  (_a = fileInputVerificationRef === null || fileInputVerificationRef === void 0 ? void 0 : fileInputVerificationRef.current) === null || _a === void 0 ? void 0 : _a.click();
26044
25991
  };
26045
25992
  var onUploadDocument = function (file, type) { return __awaiter(void 0, void 0, void 0, function () {
26046
- var logoBase64, response_1, programmeData, modified_1;
25993
+ var logoBase64, response;
26047
25994
  return __generator(this, function (_a) {
26048
25995
  switch (_a.label) {
26049
25996
  case 0:
@@ -26071,40 +26018,14 @@ var NdcActionBody = function (props) {
26071
26018
  actionId: ndcActionId,
26072
26019
  })];
26073
26020
  case 3:
26074
- response_1 = _a.sent();
26075
- if (response_1 === null || response_1 === void 0 ? void 0 : response_1.data) {
26021
+ response = _a.sent();
26022
+ if (response === null || response === void 0 ? void 0 : response.data) {
26076
26023
  antd.message.open({
26077
26024
  type: "success",
26078
26025
  content: "".concat(t("programme:isUploaded")),
26079
26026
  duration: 4,
26080
26027
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26081
26028
  });
26082
- if (type == exports.DocType.VERIFICATION_REPORT &&
26083
- (response_1 === null || response_1 === void 0 ? void 0 : response_1.data.status) == exports.DocumentStatus.ACCEPTED &&
26084
- response_1.data.programme.mitigationActions) {
26085
- programmeData = response_1 === null || response_1 === void 0 ? void 0 : response_1.data.programme;
26086
- modified_1 = false;
26087
- programmeData.mitigationActions.map(function (action) {
26088
- if (action.actionId == ndcActionId) {
26089
- modified_1 = true;
26090
- var docAdded = false;
26091
- for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
26092
- var document = _a[_i];
26093
- if (document.includes("VERIFICATION_REPORT")) {
26094
- docAdded = true;
26095
- break;
26096
- }
26097
- }
26098
- if (!docAdded) {
26099
- action.projectMaterial.push(response_1 === null || response_1 === void 0 ? void 0 : response_1.data.url);
26100
- }
26101
- }
26102
- });
26103
- if (modified_1) {
26104
- programme.mitigationActions = programmeData.mitigationActions;
26105
- onFinish(programme);
26106
- }
26107
- }
26108
26029
  }
26109
26030
  return [3 /*break*/, 5];
26110
26031
  case 4:
@@ -26136,14 +26057,14 @@ var NdcActionBody = function (props) {
26136
26057
  });
26137
26058
  }); };
26138
26059
  var docAction = function (id, status, actionId, type) { return __awaiter(void 0, void 0, void 0, function () {
26139
- var programmeRes, programmeData, docRepoRes, docUrl_1, modified_2, error_2;
26060
+ var error_2;
26140
26061
  return __generator(this, function (_a) {
26141
26062
  switch (_a.label) {
26142
26063
  case 0:
26143
26064
  setLoading(true);
26144
26065
  _a.label = 1;
26145
26066
  case 1:
26146
- _a.trys.push([1, 6, 7, 8]);
26067
+ _a.trys.push([1, 3, 4, 5]);
26147
26068
  return [4 /*yield*/, post("national/programme/docAction", {
26148
26069
  id: id,
26149
26070
  status: status,
@@ -26159,51 +26080,8 @@ var NdcActionBody = function (props) {
26159
26080
  duration: 4,
26160
26081
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26161
26082
  });
26162
- if (!(type == exports.DocType.VERIFICATION_REPORT &&
26163
- status == exports.DocumentStatus.ACCEPTED)) return [3 /*break*/, 5];
26164
- return [4 /*yield*/, post("national/programme/query", {
26165
- page: 1,
26166
- size: 2,
26167
- filterAnd: [
26168
- {
26169
- key: "programmeId",
26170
- operation: "=",
26171
- value: programmeId,
26172
- },
26173
- ],
26174
- })];
26083
+ return [3 /*break*/, 5];
26175
26084
  case 3:
26176
- programmeRes = _a.sent();
26177
- programmeData = programmeRes.data[0];
26178
- if (!programmeData.mitigationActions) return [3 /*break*/, 5];
26179
- return [4 /*yield*/, post("national/programme/queryDocs", {
26180
- page: 1,
26181
- size: 100,
26182
- filterAnd: [
26183
- {
26184
- key: "id",
26185
- operation: "=",
26186
- value: id,
26187
- },
26188
- ],
26189
- })];
26190
- case 4:
26191
- docRepoRes = _a.sent();
26192
- docUrl_1 = docRepoRes.data[0].url;
26193
- modified_2 = false;
26194
- programmeData.mitigationActions.map(function (action) {
26195
- if (action.actionId == actionId) {
26196
- modified_2 = true;
26197
- if (!action.projectMaterial.includes(docUrl_1)) {
26198
- action.projectMaterial.push(docUrl_1);
26199
- }
26200
- }
26201
- });
26202
- if (modified_2)
26203
- onFinish(programmeData);
26204
- _a.label = 5;
26205
- case 5: return [3 /*break*/, 8];
26206
- case 6:
26207
26085
  error_2 = _a.sent();
26208
26086
  antd.message.open({
26209
26087
  type: "error",
@@ -26211,13 +26089,13 @@ var NdcActionBody = function (props) {
26211
26089
  duration: 4,
26212
26090
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
26213
26091
  });
26214
- return [3 /*break*/, 8];
26215
- case 7:
26092
+ return [3 /*break*/, 5];
26093
+ case 4:
26216
26094
  getProgrammeDocs();
26217
26095
  setOpenRejectDocConfirmationModal(false);
26218
26096
  setLoading(false);
26219
26097
  return [7 /*endfinally*/];
26220
- case 8: return [2 /*return*/];
26098
+ case 5: return [2 /*return*/];
26221
26099
  }
26222
26100
  });
26223
26101
  }); };
@@ -26852,54 +26730,14 @@ var ProgrammeDocuments = function (props) {
26852
26730
  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";
26853
26731
  styleInject(css_248z);
26854
26732
 
26855
- var formatString = function (str, vargs) {
26856
- var parts = str.split("{}");
26857
- var insertAt = 1;
26858
- for (var _i = 0, vargs_1 = vargs; _i < vargs_1.length; _i++) {
26859
- var arg = vargs_1[_i];
26860
- parts.splice(insertAt, 0, arg);
26861
- insertAt += 2;
26862
- }
26863
- return parts.join("");
26864
- };
26865
- var addNdcDesc = function (props) {
26866
- var ndcActions = props.ndcActions, t = props.t, creditUnit = props.creditUnit;
26867
- var actions = ndcActions.split("&");
26868
- var ndcDesc = "";
26869
- for (var id in actions) {
26870
- var parts = actions[id].split("?");
26871
- if (Number(id) == actions.length - 1 && actions.length > 1) {
26872
- ndcDesc += " and ".concat(formatString(t("view:t1IssueNdcDesc"), [
26873
- parts[1],
26874
- creditUnit,
26875
- parts[0],
26876
- ]));
26877
- }
26878
- else if (actions.length > 1 && Number(id) != actions.length - 2) {
26879
- ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
26880
- parts[1],
26881
- creditUnit,
26882
- parts[0],
26883
- ]), ", ");
26884
- }
26885
- else {
26886
- ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
26887
- parts[1],
26888
- creditUnit,
26889
- parts[0],
26890
- ]));
26891
- }
26892
- }
26893
- return ndcDesc;
26894
- };
26895
26733
  var TimelineBody = function (props) {
26896
26734
  var text = props.text, remark = props.remark, via = props.via, t = props.t;
26897
26735
  return (React.createElement("div", null,
26898
26736
  React.createElement("div", null,
26899
26737
  text,
26900
- via && React.createElement("span", null, " ".concat(t("view:via"), " ").concat(via))),
26901
- remark && remark !== "undefined" && remark !== "null" && (React.createElement("div", { className: "remark" },
26902
- React.createElement("div", { className: "remark-title" }, t("view:remarks")),
26738
+ via && React.createElement("span", null, " ".concat(t('view:via'), " ").concat(via))),
26739
+ remark && remark !== 'undefined' && remark !== 'null' && (React.createElement("div", { className: "remark" },
26740
+ React.createElement("div", { className: "remark-title" }, t('view:remarks')),
26903
26741
  React.createElement("div", { className: "remark-body" }, remark)))));
26904
26742
  };
26905
26743
 
@@ -26972,7 +26810,6 @@ exports.ViewBGColor = ViewBGColor;
26972
26810
  exports.ViewColor = ViewColor;
26973
26811
  exports.addCommSep = addCommSep;
26974
26812
  exports.addCommSepRound = addCommSepRound;
26975
- exports.addNdcDesc = addNdcDesc;
26976
26813
  exports.addRoundNumber = addRoundNumber;
26977
26814
  exports.addSpaces = addSpaces;
26978
26815
  exports.consumerGroupList = consumerGroupList;
@@ -26995,7 +26832,6 @@ exports.getStageTagTypeMRV = getStageTagTypeMRV;
26995
26832
  exports.getStageTransferEnumVal = getStageTransferEnumVal;
26996
26833
  exports.getStatusTagType = getStatusTagType;
26997
26834
  exports.getTransferStageTagType = getTransferStageTagType;
26998
- exports.getValidNdcActions = getValidNdcActions;
26999
26835
  exports.isBase64 = isBase64;
27000
26836
  exports.landAreaUnitList = landAreaUnitList;
27001
26837
  exports.mitigationTypeList = mitigationTypeList;