@undp/carbon-library 1.0.258-CARBON-328.0 → 1.0.258-CARBON-380.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +72 -200
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +1 -0
- package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +0 -1
- package/dist/esm/index.js +72 -200
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +1 -0
- package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/locales/i18n/addCompany/en.json +3 -3
- package/dist/locales/i18n/addProgramme/en.json +11 -11
- package/dist/locales/i18n/companyProfile/en.json +1 -1
- package/dist/locales/i18n/dashboard/en.json +51 -51
- package/dist/locales/i18n/mrvdashboard/en.json +19 -19
- package/dist/locales/i18n/nav/en.json +2 -2
- package/dist/locales/i18n/ndcAction/en.json +17 -17
- package/dist/locales/i18n/programme/en.json +19 -19
- package/dist/locales/i18n/userProfile/en.json +1 -1
- package/dist/locales/i18n/view/en.json +42 -42
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -854,10 +854,10 @@ var CompanyManagementComponent = function (props) {
|
|
854
854
|
} })))))));
|
855
855
|
};
|
856
856
|
|
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
|
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-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 .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 20px;\n align-items: center;\n justify-content: start;\n margin-left: 5px; }\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-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;
|
@@ -5947,16 +5947,16 @@ var AddNewCompanyComponent = function (props) {
|
|
5947
5947
|
}); };
|
5948
5948
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
5949
5949
|
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
5950
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
5951
|
-
return __generator(this, function (
|
5952
|
-
switch (
|
5950
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
5951
|
+
return __generator(this, function (_k) {
|
5952
|
+
switch (_k.label) {
|
5953
5953
|
case 0:
|
5954
5954
|
setLoading(true);
|
5955
5955
|
formOneValues = formOne.getFieldsValue();
|
5956
5956
|
formOneValues.phoneNo = PhoneInput.formatPhoneNumberIntl(formOneValues.phoneNo);
|
5957
|
-
|
5957
|
+
_k.label = 1;
|
5958
5958
|
case 1:
|
5959
|
-
|
5959
|
+
_k.trys.push([1, 5, , 6]);
|
5960
5960
|
values = {};
|
5961
5961
|
if (regionField) {
|
5962
5962
|
values = {
|
@@ -5989,9 +5989,6 @@ var AddNewCompanyComponent = function (props) {
|
|
5989
5989
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
5990
5990
|
}
|
5991
5991
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
|
5992
|
-
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
5993
|
-
}
|
5994
|
-
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === exports.CompanyRole.GOVERNMENT) {
|
5995
5992
|
values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
|
5996
5993
|
}
|
5997
5994
|
if (formOneValues.website) {
|
@@ -6002,15 +5999,15 @@ var AddNewCompanyComponent = function (props) {
|
|
6002
5999
|
}
|
6003
6000
|
if (!formOneValues.logo) return [3 /*break*/, 3];
|
6004
6001
|
if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
|
6005
|
-
return [4 /*yield*/, getBase64((
|
6002
|
+
return [4 /*yield*/, getBase64((_j = formOneValues.logo[0]) === null || _j === void 0 ? void 0 : _j.originFileObj)];
|
6006
6003
|
case 2:
|
6007
|
-
logoBase64 =
|
6004
|
+
logoBase64 = _k.sent();
|
6008
6005
|
logoUrls = logoBase64.split(",");
|
6009
6006
|
values.logo = logoUrls[1];
|
6010
|
-
|
6007
|
+
_k.label = 3;
|
6011
6008
|
case 3: return [4 /*yield*/, put("national/organisation/update", values)];
|
6012
6009
|
case 4:
|
6013
|
-
response =
|
6010
|
+
response = _k.sent();
|
6014
6011
|
if (response.status === 200 || response.status === 201) {
|
6015
6012
|
setUserInfo({
|
6016
6013
|
companyLogo: response.data.logo,
|
@@ -6026,7 +6023,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6026
6023
|
setLoading(false);
|
6027
6024
|
return [3 /*break*/, 6];
|
6028
6025
|
case 5:
|
6029
|
-
error_3 =
|
6026
|
+
error_3 = _k.sent();
|
6030
6027
|
antd.message.open({
|
6031
6028
|
type: "error",
|
6032
6029
|
content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
|
@@ -6047,7 +6044,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6047
6044
|
setCompanyRole(value);
|
6048
6045
|
};
|
6049
6046
|
var CompanyDetailsForm = function () {
|
6050
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
6047
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
6051
6048
|
var companyRoleClassName = companyRole === exports.CompanyRole.CERTIFIER
|
6052
6049
|
? "certifier"
|
6053
6050
|
: companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER
|
@@ -6279,7 +6276,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6279
6276
|
width: "45%",
|
6280
6277
|
}
|
6281
6278
|
: {} },
|
6282
|
-
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of
|
6279
|
+
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
|
6283
6280
|
React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
|
6284
6281
|
React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
|
6285
6282
|
"Certifier"))),
|
@@ -6289,15 +6286,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6289
6286
|
width: "45%",
|
6290
6287
|
marginLeft: isGuest ? "30px" : 0,
|
6291
6288
|
}
|
6292
|
-
: { marginLeft: isGuest ? "30px" : 0 } },
|
6293
|
-
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own
|
6289
|
+
: { marginLeft: isGuest ? "30px" : 0, } },
|
6290
|
+
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
|
6294
6291
|
React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
|
6295
6292
|
React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
|
6296
6293
|
"Developer"))),
|
6297
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6298
|
-
exports.CompanyRole.MINISTRY &&
|
6299
|
-
|
6300
|
-
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
|
6294
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6295
|
+
exports.CompanyRole.MINISTRY) && !isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
6296
|
+
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
|
6301
6297
|
React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
|
6302
6298
|
React.createElement(icons.AuditOutlined, { className: "role-icons" }),
|
6303
6299
|
"Ministry")))))))),
|
@@ -6385,30 +6381,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6385
6381
|
}); },
|
6386
6382
|
},
|
6387
6383
|
] },
|
6388
|
-
React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6389
|
-
companyRole === exports.CompanyRole.GOVERNMENT &&
|
6390
|
-
systemType !== exports.CarbonSystemType.MRV && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6391
|
-
React.createElement(antd.Space, { wrap: true, style: {
|
6392
|
-
display: "flex",
|
6393
|
-
marginBottom: 8,
|
6394
|
-
}, align: "center", size: "large" },
|
6395
|
-
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
|
6396
|
-
{ required: true, message: "" },
|
6397
|
-
{
|
6398
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6399
|
-
return __generator(this, function (_a) {
|
6400
|
-
if (String(value).trim() === "" ||
|
6401
|
-
String(value).trim() === undefined ||
|
6402
|
-
value === null ||
|
6403
|
-
value === undefined) {
|
6404
|
-
throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
|
6405
|
-
}
|
6406
|
-
return [2 /*return*/];
|
6407
|
-
});
|
6408
|
-
}); },
|
6409
|
-
},
|
6410
|
-
] },
|
6411
|
-
React.createElement(antd.InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
|
6384
|
+
React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 })))))),
|
6412
6385
|
React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(antd.Row, null,
|
6413
6386
|
React.createElement(antd.Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
|
6414
6387
|
React.createElement(antd.Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(antd.Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
|
@@ -6543,7 +6516,7 @@ var css_248z$q = ".company-profile {\n padding: 0px 50px; }\n .company-profile
|
|
6543
6516
|
styleInject(css_248z$q);
|
6544
6517
|
|
6545
6518
|
var CompanyProfileComponent = function (props) {
|
6546
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField
|
6519
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField;
|
6547
6520
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6548
6521
|
var _b = React.useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6549
6522
|
var _c = React.useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -6936,13 +6909,6 @@ var CompanyProfileComponent = function (props) {
|
|
6936
6909
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.remarks
|
6937
6910
|
? companyDetails.remarks
|
6938
6911
|
: "-"))) : (""),
|
6939
|
-
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === exports.CompanyRole.GOVERNMENT &&
|
6940
|
-
systemType !== exports.CarbonSystemType.MRV && (React.createElement(React.Fragment, null,
|
6941
|
-
React.createElement(antd.Row, { className: "field" },
|
6942
|
-
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:omgePercentage")),
|
6943
|
-
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.omgePercentage
|
6944
|
-
? companyDetails.omgePercentage
|
6945
|
-
: "-")))),
|
6946
6912
|
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === exports.CompanyRole.GOVERNMENT && (React.createElement(React.Fragment, null,
|
6947
6913
|
React.createElement(antd.Row, { className: "field" },
|
6948
6914
|
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:nationalSopValue")),
|
@@ -6964,7 +6930,9 @@ var CompanyProfileComponent = function (props) {
|
|
6964
6930
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.email) ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.email : "-")),
|
6965
6931
|
React.createElement(antd.Row, { className: "field" },
|
6966
6932
|
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:adminPhone")),
|
6967
|
-
React.createElement(antd.Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
|
6933
|
+
React.createElement(antd.Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
|
6934
|
+
? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo
|
6935
|
+
: "-"))))))))),
|
6968
6936
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onDeauthoriseOrgConfirmed, onActionCanceled: onDeauthoriseOrgCanceled, openModal: openDeauthorisationModal, errorMsg: errorMsg, loading: isLoading }),
|
6969
6937
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onReactivateOrgConfirmed, onActionCanceled: onReactivateOrgCanceled, openModal: openReactivateModal, errorMsg: errorMsg, loading: isLoading }),
|
6970
6938
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onApproveOrgConfirmed, onActionCanceled: onApproveOrgCanceled, openModal: openApproveModal, errorMsg: errorMsg, loading: isLoading }),
|
@@ -21023,9 +20991,7 @@ var AddNdcActionComponent = function (props) {
|
|
21023
20991
|
title: (React.createElement("div", { className: "step-title-container" },
|
21024
20992
|
React.createElement("div", { className: "step-count" }, "01"),
|
21025
20993
|
React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
|
21026
|
-
React.createElement("div", { className: "info-container" },
|
21027
|
-
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
21028
|
-
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
|
20994
|
+
React.createElement("div", { className: "info-container" }))),
|
21029
20995
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
21030
20996
|
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
21031
20997
|
},
|
@@ -21760,30 +21726,6 @@ var TransferActionModel = function (props) {
|
|
21760
21726
|
React.createElement(antd.Col, { lg: 6, md: 4 },
|
21761
21727
|
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
21762
21728
|
React.createElement(antd.InputNumber, { placeholder: addCommSep(transfer.creditAmount), disabled: true })))),
|
21763
|
-
transfer.retirementType === exports.RetireType.CROSS_BORDER && (React.createElement(antd.Row, null,
|
21764
|
-
React.createElement(antd.Col, { lg: 18, md: 20 },
|
21765
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
21766
|
-
React.createElement(antd.Col, { lg: 6, md: 4 },
|
21767
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
21768
|
-
React.createElement(antd.InputNumber, { placeholder: transfer.creditAmount
|
21769
|
-
? addCommSep(transfer.creditAmount -
|
21770
|
-
Number(((transfer.omgePercentage *
|
21771
|
-
transfer.creditAmount) /
|
21772
|
-
100).toFixed(2)))
|
21773
|
-
: "-", disabled: true }))))),
|
21774
|
-
transfer.retirementType === exports.RetireType.CROSS_BORDER && (React.createElement(antd.Row, null,
|
21775
|
-
React.createElement(antd.Col, { lg: 18, md: 20, style: { display: "flex" } },
|
21776
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
21777
|
-
React.createElement("div", { className: "info-container" },
|
21778
|
-
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
21779
|
-
React.createElement(Icon.InfoCircle, { color: "#000000", size: 15 })))),
|
21780
|
-
React.createElement(antd.Col, { lg: 6, md: 4 },
|
21781
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
21782
|
-
React.createElement(antd.InputNumber, { placeholder: transfer.creditAmount
|
21783
|
-
? addCommSep(Number(((transfer.omgePercentage *
|
21784
|
-
transfer.creditAmount) /
|
21785
|
-
100).toFixed(2)))
|
21786
|
-
: "-", disabled: true }))))),
|
21787
21729
|
React.createElement(antd.Row, null,
|
21788
21730
|
React.createElement(antd.Col, { span: 24 },
|
21789
21731
|
React.createElement(antd.Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|
@@ -24192,46 +24134,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24192
24134
|
var text = '';
|
24193
24135
|
if (companyRole === exports.CompanyRole.GOVERNMENT) {
|
24194
24136
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
|
24195
|
-
text = 'Pending state
|
24137
|
+
text = 'Pending state projects awaiting authorisation';
|
24196
24138
|
}
|
24197
24139
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
|
24198
24140
|
text =
|
24199
|
-
'Pending credit transfer requests sent to
|
24141
|
+
'Pending credit transfer requests sent to project owners initiated by your organisation';
|
24200
24142
|
}
|
24201
24143
|
else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
|
24202
24144
|
text = 'Total credit balance owned by your organisation';
|
24203
24145
|
}
|
24204
24146
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24205
24147
|
text =
|
24206
|
-
'Number of
|
24148
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
24207
24149
|
}
|
24208
24150
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24209
24151
|
text =
|
24210
|
-
'Number of credits of
|
24152
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
24211
24153
|
}
|
24212
24154
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24213
24155
|
text =
|
24214
|
-
'Number of credits of
|
24156
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24215
24157
|
}
|
24216
24158
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24217
24159
|
text =
|
24218
|
-
'Graphical representation of the number of
|
24160
|
+
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
24219
24161
|
}
|
24220
24162
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24221
24163
|
text =
|
24222
|
-
'Graphical representation of the number of
|
24164
|
+
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
24223
24165
|
}
|
24224
24166
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24225
24167
|
text =
|
24226
|
-
'Graphical representation of the number of credits of
|
24168
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24227
24169
|
}
|
24228
24170
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24229
24171
|
text =
|
24230
|
-
'Graphical representation of the number of credits of
|
24172
|
+
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
24231
24173
|
}
|
24232
24174
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24233
24175
|
text =
|
24234
|
-
'Locations of the
|
24176
|
+
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
24235
24177
|
}
|
24236
24178
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24237
24179
|
text =
|
@@ -24250,131 +24192,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24250
24192
|
}
|
24251
24193
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24252
24194
|
text =
|
24253
|
-
'Number of
|
24195
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
|
24254
24196
|
}
|
24255
24197
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24256
24198
|
text =
|
24257
|
-
'Number of credits of
|
24199
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
|
24258
24200
|
}
|
24259
24201
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24260
24202
|
text =
|
24261
|
-
'Number of credits of
|
24203
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
|
24262
24204
|
}
|
24263
24205
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24264
24206
|
text =
|
24265
|
-
'Graphical representation of the number of
|
24207
|
+
'Graphical representation of the number of projects created during the specified period, owned by your organisation, in each project state in the carbon registry at present';
|
24266
24208
|
}
|
24267
24209
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24268
24210
|
text =
|
24269
|
-
'Graphical representation of the number of
|
24211
|
+
'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
|
24270
24212
|
}
|
24271
24213
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24272
24214
|
text =
|
24273
|
-
'Graphical representation of the number of credits of
|
24215
|
+
'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, in each credit state in the carbon registry at present';
|
24274
24216
|
}
|
24275
24217
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24276
24218
|
text =
|
24277
|
-
'Graphical representation of the number of credits of
|
24219
|
+
'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, certified, uncertified and revoked in the carbon registry at present';
|
24278
24220
|
}
|
24279
24221
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24280
24222
|
text =
|
24281
|
-
'Locations of the
|
24223
|
+
'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
|
24282
24224
|
}
|
24283
24225
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24284
24226
|
text =
|
24285
|
-
'Locations of credits international transfer requests of
|
24227
|
+
'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
|
24286
24228
|
}
|
24287
24229
|
}
|
24288
24230
|
else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
|
24289
24231
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24290
24232
|
text =
|
24291
|
-
'Number of
|
24233
|
+
'Number of projects not yet certified including certificates revoked by your organisation';
|
24292
24234
|
}
|
24293
24235
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24294
|
-
text = 'Number of
|
24236
|
+
text = 'Number of projects certified by your organisation';
|
24295
24237
|
}
|
24296
24238
|
else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
|
24297
24239
|
text = 'Number of credits certified by your organisation';
|
24298
24240
|
}
|
24299
24241
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24300
24242
|
text =
|
24301
|
-
'Number of
|
24243
|
+
'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
|
24302
24244
|
}
|
24303
24245
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24304
24246
|
text =
|
24305
|
-
'Number of credits of
|
24247
|
+
'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
|
24306
24248
|
}
|
24307
24249
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24308
24250
|
text =
|
24309
|
-
'Number of credits of
|
24251
|
+
'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
|
24310
24252
|
}
|
24311
24253
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24312
24254
|
text =
|
24313
|
-
'Graphical representation of the number of
|
24255
|
+
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
24314
24256
|
}
|
24315
24257
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24316
24258
|
text =
|
24317
|
-
'Graphical representation of the number of
|
24259
|
+
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
24318
24260
|
}
|
24319
24261
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24320
24262
|
text =
|
24321
|
-
'Graphical representation of the number of credits of
|
24263
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24322
24264
|
}
|
24323
24265
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24324
24266
|
text =
|
24325
|
-
'Graphical representation of the number of credits of
|
24267
|
+
'Graphical representation of the number of credits of projects certified, uncertified and revoked (refer above for states), by your organisation, spread over the specified time';
|
24326
24268
|
}
|
24327
24269
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24328
24270
|
text =
|
24329
|
-
'Locations of the
|
24271
|
+
'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
|
24330
24272
|
}
|
24331
24273
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24332
24274
|
text =
|
24333
|
-
'Locations of credits of international transfer requests of
|
24275
|
+
'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
|
24334
24276
|
}
|
24335
24277
|
}
|
24336
24278
|
else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
|
24337
24279
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24338
24280
|
text =
|
24339
|
-
'Number of
|
24281
|
+
'Number of projects not yet certified including certificates revoked by your organisation';
|
24340
24282
|
}
|
24341
24283
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24342
|
-
text = 'Number of
|
24284
|
+
text = 'Number of projects certified by your organisation';
|
24343
24285
|
}
|
24344
24286
|
else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
|
24345
24287
|
text = 'Number of credits certified by your organisation';
|
24346
24288
|
}
|
24347
24289
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24348
24290
|
text =
|
24349
|
-
'Number of
|
24291
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
24350
24292
|
}
|
24351
24293
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24352
24294
|
text =
|
24353
|
-
'Number of credits of
|
24295
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
24354
24296
|
}
|
24355
24297
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24356
24298
|
text =
|
24357
|
-
'Number of credits of
|
24299
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24358
24300
|
}
|
24359
24301
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24360
24302
|
text =
|
24361
|
-
'Graphical representation of the number of
|
24303
|
+
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
24362
24304
|
}
|
24363
24305
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24364
24306
|
text =
|
24365
|
-
'Graphical representation of the number of
|
24307
|
+
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
24366
24308
|
}
|
24367
24309
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24368
24310
|
text =
|
24369
|
-
'Graphical representation of the number of credits of
|
24311
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24370
24312
|
}
|
24371
24313
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24372
24314
|
text =
|
24373
|
-
'Graphical representation of the number of credits of
|
24315
|
+
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
24374
24316
|
}
|
24375
24317
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24376
24318
|
text =
|
24377
|
-
'Locations of the
|
24319
|
+
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
24378
24320
|
}
|
24379
24321
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24380
24322
|
text =
|
@@ -24405,7 +24347,7 @@ var StasticCard = function (props) {
|
|
24405
24347
|
};
|
24406
24348
|
|
24407
24349
|
var ProgrammeRejectAndTransferComponent = function (props) {
|
24408
|
-
var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
|
24350
|
+
var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText, t = props.t;
|
24409
24351
|
React.useEffect(function () {
|
24410
24352
|
console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
|
24411
24353
|
});
|
@@ -24413,7 +24355,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
|
|
24413
24355
|
React.createElement(antd.Skeleton, { active: true }),
|
24414
24356
|
React.createElement(antd.Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
|
24415
24357
|
React.createElement("div", { className: "title-section" },
|
24416
|
-
React.createElement("div", { className: "title" }, "
|
24358
|
+
React.createElement("div", { className: "title" }, t("programmes")),
|
24417
24359
|
React.createElement("div", { className: "info-container" },
|
24418
24360
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
|
24419
24361
|
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
|
@@ -26085,7 +26027,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26085
26027
|
? "tTProgrammesProgrammeDev"
|
26086
26028
|
: categoryType === "mine"
|
26087
26029
|
? "tTProgrammesCertifierMine"
|
26088
|
-
: "tTProgrammesCertifierOverall") })),
|
26030
|
+
: "tTProgrammesCertifierOverall"), t: t })),
|
26089
26031
|
React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
|
26090
26032
|
React.createElement(RegistryPieChartsStatComponent, { id: "credits", title: t("credits"), options: optionDonutPieA, series: creditsPieSeries, lastUpdate: lastUpdateProgrammesCreditsStats, loading: loading, toolTipText: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
|
26091
26033
|
? "tTCreditsGovernment"
|
@@ -26995,48 +26937,7 @@ var ProgrammeRetireForm = function (props) {
|
|
26995
26937
|
var _e = React.useState([]), countryList = _e[0], setCountryList = _e[1];
|
26996
26938
|
var _f = React.useState(); _f[0]; var setValue = _f[1];
|
26997
26939
|
var _g = React.useState(false), checked = _g[0], setChecked = _g[1];
|
26998
|
-
var _h =
|
26999
|
-
var _j = useConnection(); _j.get; _j.delete; var post = _j.post;
|
27000
|
-
var getGovernmentDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
27001
|
-
var response, error_1;
|
27002
|
-
return __generator(this, function (_a) {
|
27003
|
-
switch (_a.label) {
|
27004
|
-
case 0:
|
27005
|
-
setLoading(true);
|
27006
|
-
_a.label = 1;
|
27007
|
-
case 1:
|
27008
|
-
_a.trys.push([1, 3, 4, 5]);
|
27009
|
-
console.log("getting government profile");
|
27010
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
27011
|
-
page: 1,
|
27012
|
-
size: 100,
|
27013
|
-
filterAnd: [
|
27014
|
-
{
|
27015
|
-
key: "companyRole",
|
27016
|
-
operation: "=",
|
27017
|
-
value: exports.CompanyRole.GOVERNMENT,
|
27018
|
-
},
|
27019
|
-
],
|
27020
|
-
})];
|
27021
|
-
case 2:
|
27022
|
-
response = _a.sent();
|
27023
|
-
if (response.data) {
|
27024
|
-
setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
|
27025
|
-
console.log("gov profile", response === null || response === void 0 ? void 0 : response.data[0]);
|
27026
|
-
return [2 /*return*/, response === null || response === void 0 ? void 0 : response.data[0]];
|
27027
|
-
}
|
27028
|
-
return [3 /*break*/, 5];
|
27029
|
-
case 3:
|
27030
|
-
error_1 = _a.sent();
|
27031
|
-
console.log("Error in getting government data", error_1);
|
27032
|
-
return [3 /*break*/, 5];
|
27033
|
-
case 4:
|
27034
|
-
setLoading(false);
|
27035
|
-
return [7 /*endfinally*/];
|
27036
|
-
case 5: return [2 /*return*/];
|
27037
|
-
}
|
27038
|
-
});
|
27039
|
-
}); };
|
26940
|
+
var _h = useConnection(); _h.get; _h.delete; var post = _h.post;
|
27040
26941
|
var handleSearch = function (newValue) { return __awaiter(void 0, void 0, void 0, function () {
|
27041
26942
|
var resp;
|
27042
26943
|
return __generator(this, function (_a) {
|
@@ -27080,8 +26981,8 @@ var ProgrammeRetireForm = function (props) {
|
|
27080
26981
|
programme.creditOwnerPercentage = [100];
|
27081
26982
|
}
|
27082
26983
|
var companies = {};
|
27083
|
-
for (var _i = 0,
|
27084
|
-
var c =
|
26984
|
+
for (var _i = 0, _j = programme.company; _i < _j.length; _i++) {
|
26985
|
+
var c = _j[_i];
|
27085
26986
|
companies[c.companyId] = c;
|
27086
26987
|
}
|
27087
26988
|
var validCompanies = [];
|
@@ -27115,11 +27016,7 @@ var ProgrammeRetireForm = function (props) {
|
|
27115
27016
|
if (hideType) {
|
27116
27017
|
setType("0");
|
27117
27018
|
}
|
27118
|
-
getGovernmentDetails();
|
27119
27019
|
}, []);
|
27120
|
-
if (!govData) {
|
27121
|
-
return React.createElement("div", null, "Loading");
|
27122
|
-
}
|
27123
27020
|
return (React.createElement("div", { className: "transfer-form" },
|
27124
27021
|
subText && (React.createElement(antd.Row, null,
|
27125
27022
|
React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText))),
|
@@ -27155,7 +27052,6 @@ var ProgrammeRetireForm = function (props) {
|
|
27155
27052
|
country: d.country,
|
27156
27053
|
};
|
27157
27054
|
}
|
27158
|
-
d.omgePercentage = Number(govData.omgePercentage);
|
27159
27055
|
return [4 /*yield*/, onFinish(d)];
|
27160
27056
|
case 1:
|
27161
27057
|
res = _a.sent();
|
@@ -27250,31 +27146,7 @@ var ProgrammeRetireForm = function (props) {
|
|
27250
27146
|
React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27251
27147
|
React.createElement(antd.Col, { lg: 6, md: 12 },
|
27252
27148
|
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
27253
|
-
React.createElement(antd.InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))),
|
27254
|
-
React.createElement(antd.Row, null,
|
27255
|
-
React.createElement(antd.Col, { lg: 11, md: 24 },
|
27256
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
27257
|
-
React.createElement(antd.Col, { lg: 6, md: 12 },
|
27258
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
27259
|
-
React.createElement(antd.InputNumber, { placeholder: addCommSep(currentSum -
|
27260
|
-
Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27261
|
-
React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27262
|
-
React.createElement(antd.Col, { lg: 6, md: 12 },
|
27263
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
27264
|
-
React.createElement(antd.InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))),
|
27265
|
-
React.createElement(antd.Row, null,
|
27266
|
-
React.createElement(antd.Col, { lg: 11, md: 24, style: { display: "flex" } },
|
27267
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
27268
|
-
React.createElement("div", { className: "info-container" },
|
27269
|
-
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
27270
|
-
React.createElement(Icon.InfoCircle, { color: "#000000", size: 15 })))),
|
27271
|
-
React.createElement(antd.Col, { lg: 6, md: 12 },
|
27272
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
27273
|
-
React.createElement(antd.InputNumber, { placeholder: addCommSep(Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27274
|
-
React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27275
|
-
React.createElement(antd.Col, { lg: 6, md: 12 },
|
27276
|
-
React.createElement(antd.Form.Item, { className: "popup-credit-input" },
|
27277
|
-
React.createElement(antd.InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))))),
|
27149
|
+
React.createElement(antd.InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))))),
|
27278
27150
|
React.createElement(antd.Row, null,
|
27279
27151
|
React.createElement(antd.Col, { span: 24 },
|
27280
27152
|
React.createElement(antd.Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|