@undp/carbon-library 1.0.258-CARBON-328.1 → 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/company/en.json +1 -2
- package/dist/locales/i18n/companyProfile/en.json +2 -3
- 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/esm/index.js
CHANGED
@@ -834,10 +834,10 @@ var CompanyManagementComponent = function (props) {
|
|
834
834
|
} })))))));
|
835
835
|
};
|
836
836
|
|
837
|
-
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
|
837
|
+
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";
|
838
838
|
styleInject(css_248z$s);
|
839
839
|
|
840
|
-
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";
|
840
|
+
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";
|
841
841
|
styleInject(css_248z$r);
|
842
842
|
|
843
843
|
var UserManagementColumns;
|
@@ -5927,16 +5927,16 @@ var AddNewCompanyComponent = function (props) {
|
|
5927
5927
|
}); };
|
5928
5928
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
5929
5929
|
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
5930
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
5931
|
-
return __generator(this, function (
|
5932
|
-
switch (
|
5930
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
5931
|
+
return __generator(this, function (_k) {
|
5932
|
+
switch (_k.label) {
|
5933
5933
|
case 0:
|
5934
5934
|
setLoading(true);
|
5935
5935
|
formOneValues = formOne.getFieldsValue();
|
5936
5936
|
formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
|
5937
|
-
|
5937
|
+
_k.label = 1;
|
5938
5938
|
case 1:
|
5939
|
-
|
5939
|
+
_k.trys.push([1, 5, , 6]);
|
5940
5940
|
values = {};
|
5941
5941
|
if (regionField) {
|
5942
5942
|
values = {
|
@@ -5969,9 +5969,6 @@ var AddNewCompanyComponent = function (props) {
|
|
5969
5969
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
5970
5970
|
}
|
5971
5971
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
5972
|
-
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
5973
|
-
}
|
5974
|
-
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.GOVERNMENT) {
|
5975
5972
|
values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
|
5976
5973
|
}
|
5977
5974
|
if (formOneValues.website) {
|
@@ -5982,15 +5979,15 @@ var AddNewCompanyComponent = function (props) {
|
|
5982
5979
|
}
|
5983
5980
|
if (!formOneValues.logo) return [3 /*break*/, 3];
|
5984
5981
|
if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
|
5985
|
-
return [4 /*yield*/, getBase64((
|
5982
|
+
return [4 /*yield*/, getBase64((_j = formOneValues.logo[0]) === null || _j === void 0 ? void 0 : _j.originFileObj)];
|
5986
5983
|
case 2:
|
5987
|
-
logoBase64 =
|
5984
|
+
logoBase64 = _k.sent();
|
5988
5985
|
logoUrls = logoBase64.split(",");
|
5989
5986
|
values.logo = logoUrls[1];
|
5990
|
-
|
5987
|
+
_k.label = 3;
|
5991
5988
|
case 3: return [4 /*yield*/, put("national/organisation/update", values)];
|
5992
5989
|
case 4:
|
5993
|
-
response =
|
5990
|
+
response = _k.sent();
|
5994
5991
|
if (response.status === 200 || response.status === 201) {
|
5995
5992
|
setUserInfo({
|
5996
5993
|
companyLogo: response.data.logo,
|
@@ -6006,7 +6003,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6006
6003
|
setLoading(false);
|
6007
6004
|
return [3 /*break*/, 6];
|
6008
6005
|
case 5:
|
6009
|
-
error_3 =
|
6006
|
+
error_3 = _k.sent();
|
6010
6007
|
message.open({
|
6011
6008
|
type: "error",
|
6012
6009
|
content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
|
@@ -6027,7 +6024,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6027
6024
|
setCompanyRole(value);
|
6028
6025
|
};
|
6029
6026
|
var CompanyDetailsForm = function () {
|
6030
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
6027
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
6031
6028
|
var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
|
6032
6029
|
? "certifier"
|
6033
6030
|
: companyRole === CompanyRole.PROGRAMME_DEVELOPER
|
@@ -6259,7 +6256,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6259
6256
|
width: "45%",
|
6260
6257
|
}
|
6261
6258
|
: {} },
|
6262
|
-
React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of
|
6259
|
+
React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
|
6263
6260
|
React.createElement(Radio.Button, { className: "certifier", value: "Certifier" },
|
6264
6261
|
React.createElement(SafetyOutlined, { className: "role-icons" }),
|
6265
6262
|
"Certifier"))),
|
@@ -6269,15 +6266,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6269
6266
|
width: "45%",
|
6270
6267
|
marginLeft: isGuest ? "30px" : 0,
|
6271
6268
|
}
|
6272
|
-
: { marginLeft: isGuest ? "30px" : 0 } },
|
6273
|
-
React.createElement(Tooltip, { placement: "top", title: "Permitted to own
|
6269
|
+
: { marginLeft: isGuest ? "30px" : 0, } },
|
6270
|
+
React.createElement(Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
|
6274
6271
|
React.createElement(Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
|
6275
6272
|
React.createElement(ExperimentOutlined, { className: "role-icons" }),
|
6276
6273
|
"Developer"))),
|
6277
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6278
|
-
CompanyRole.MINISTRY &&
|
6279
|
-
|
6280
|
-
React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
|
6274
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6275
|
+
CompanyRole.MINISTRY) && !isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
6276
|
+
React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
|
6281
6277
|
React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
|
6282
6278
|
React.createElement(AuditOutlined, { className: "role-icons" }),
|
6283
6279
|
"Ministry")))))))),
|
@@ -6365,30 +6361,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6365
6361
|
}); },
|
6366
6362
|
},
|
6367
6363
|
] },
|
6368
|
-
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6369
|
-
companyRole === CompanyRole.GOVERNMENT &&
|
6370
|
-
systemType !== CarbonSystemType.MRV && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6371
|
-
React.createElement(Space, { wrap: true, style: {
|
6372
|
-
display: "flex",
|
6373
|
-
marginBottom: 8,
|
6374
|
-
}, align: "center", size: "large" },
|
6375
|
-
React.createElement(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: [
|
6376
|
-
{ required: true, message: "" },
|
6377
|
-
{
|
6378
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6379
|
-
return __generator(this, function (_a) {
|
6380
|
-
if (String(value).trim() === "" ||
|
6381
|
-
String(value).trim() === undefined ||
|
6382
|
-
value === null ||
|
6383
|
-
value === undefined) {
|
6384
|
-
throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
|
6385
|
-
}
|
6386
|
-
return [2 /*return*/];
|
6387
|
-
});
|
6388
|
-
}); },
|
6389
|
-
},
|
6390
|
-
] },
|
6391
|
-
React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
|
6364
|
+
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 })))))),
|
6392
6365
|
React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(Row, null,
|
6393
6366
|
React.createElement(Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
|
6394
6367
|
React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
|
@@ -6523,7 +6496,7 @@ var css_248z$q = ".company-profile {\n padding: 0px 50px; }\n .company-profile
|
|
6523
6496
|
styleInject(css_248z$q);
|
6524
6497
|
|
6525
6498
|
var CompanyProfileComponent = function (props) {
|
6526
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField
|
6499
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField;
|
6527
6500
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6528
6501
|
var _b = useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6529
6502
|
var _c = useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -6916,13 +6889,6 @@ var CompanyProfileComponent = function (props) {
|
|
6916
6889
|
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.remarks
|
6917
6890
|
? companyDetails.remarks
|
6918
6891
|
: "-"))) : (""),
|
6919
|
-
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT &&
|
6920
|
-
systemType !== CarbonSystemType.MRV && (React.createElement(React.Fragment, null,
|
6921
|
-
React.createElement(Row, { className: "field" },
|
6922
|
-
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:omgePercentage")),
|
6923
|
-
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.omgePercentage
|
6924
|
-
? companyDetails.omgePercentage
|
6925
|
-
: "-")))),
|
6926
6892
|
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT && (React.createElement(React.Fragment, null,
|
6927
6893
|
React.createElement(Row, { className: "field" },
|
6928
6894
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:nationalSopValue")),
|
@@ -6944,7 +6910,9 @@ var CompanyProfileComponent = function (props) {
|
|
6944
6910
|
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.email) ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.email : "-")),
|
6945
6911
|
React.createElement(Row, { className: "field" },
|
6946
6912
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:adminPhone")),
|
6947
|
-
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
|
6913
|
+
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
|
6914
|
+
? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo
|
6915
|
+
: "-"))))))))),
|
6948
6916
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onDeauthoriseOrgConfirmed, onActionCanceled: onDeauthoriseOrgCanceled, openModal: openDeauthorisationModal, errorMsg: errorMsg, loading: isLoading }),
|
6949
6917
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onReactivateOrgConfirmed, onActionCanceled: onReactivateOrgCanceled, openModal: openReactivateModal, errorMsg: errorMsg, loading: isLoading }),
|
6950
6918
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onApproveOrgConfirmed, onActionCanceled: onApproveOrgCanceled, openModal: openApproveModal, errorMsg: errorMsg, loading: isLoading }),
|
@@ -21003,9 +20971,7 @@ var AddNdcActionComponent = function (props) {
|
|
21003
20971
|
title: (React.createElement("div", { className: "step-title-container" },
|
21004
20972
|
React.createElement("div", { className: "step-count" }, "01"),
|
21005
20973
|
React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
|
21006
|
-
React.createElement("div", { className: "info-container" },
|
21007
|
-
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
21008
|
-
React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
|
20974
|
+
React.createElement("div", { className: "info-container" }))),
|
21009
20975
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
21010
20976
|
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
21011
20977
|
},
|
@@ -21740,30 +21706,6 @@ var TransferActionModel = function (props) {
|
|
21740
21706
|
React.createElement(Col, { lg: 6, md: 4 },
|
21741
21707
|
React.createElement(Form.Item, { className: "popup-credit-input" },
|
21742
21708
|
React.createElement(InputNumber, { placeholder: addCommSep(transfer.creditAmount), disabled: true })))),
|
21743
|
-
transfer.retirementType === RetireType.CROSS_BORDER && (React.createElement(Row, null,
|
21744
|
-
React.createElement(Col, { lg: 18, md: 20 },
|
21745
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
21746
|
-
React.createElement(Col, { lg: 6, md: 4 },
|
21747
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
21748
|
-
React.createElement(InputNumber, { placeholder: transfer.creditAmount
|
21749
|
-
? addCommSep(transfer.creditAmount -
|
21750
|
-
Number(((transfer.omgePercentage *
|
21751
|
-
transfer.creditAmount) /
|
21752
|
-
100).toFixed(2)))
|
21753
|
-
: "-", disabled: true }))))),
|
21754
|
-
transfer.retirementType === RetireType.CROSS_BORDER && (React.createElement(Row, null,
|
21755
|
-
React.createElement(Col, { lg: 18, md: 20, style: { display: "flex" } },
|
21756
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
21757
|
-
React.createElement("div", { className: "info-container" },
|
21758
|
-
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
21759
|
-
React.createElement(InfoCircle, { color: "#000000", size: 15 })))),
|
21760
|
-
React.createElement(Col, { lg: 6, md: 4 },
|
21761
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
21762
|
-
React.createElement(InputNumber, { placeholder: transfer.creditAmount
|
21763
|
-
? addCommSep(Number(((transfer.omgePercentage *
|
21764
|
-
transfer.creditAmount) /
|
21765
|
-
100).toFixed(2)))
|
21766
|
-
: "-", disabled: true }))))),
|
21767
21709
|
React.createElement(Row, null,
|
21768
21710
|
React.createElement(Col, { span: 24 },
|
21769
21711
|
React.createElement(Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|
@@ -24172,46 +24114,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24172
24114
|
var text = '';
|
24173
24115
|
if (companyRole === CompanyRole.GOVERNMENT) {
|
24174
24116
|
if (cardType === StatsCardsTypes.PROGRAMMES_PENDING) {
|
24175
|
-
text = 'Pending state
|
24117
|
+
text = 'Pending state projects awaiting authorisation';
|
24176
24118
|
}
|
24177
24119
|
else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
|
24178
24120
|
text =
|
24179
|
-
'Pending credit transfer requests sent to
|
24121
|
+
'Pending credit transfer requests sent to project owners initiated by your organisation';
|
24180
24122
|
}
|
24181
24123
|
else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
|
24182
24124
|
text = 'Total credit balance owned by your organisation';
|
24183
24125
|
}
|
24184
24126
|
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
24185
24127
|
text =
|
24186
|
-
'Number of
|
24128
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
24187
24129
|
}
|
24188
24130
|
else if (cardType === StatsCardsTypes.CREDITS) {
|
24189
24131
|
text =
|
24190
|
-
'Number of credits of
|
24132
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
24191
24133
|
}
|
24192
24134
|
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
24193
24135
|
text =
|
24194
|
-
'Number of credits of
|
24136
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24195
24137
|
}
|
24196
24138
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24197
24139
|
text =
|
24198
|
-
'Graphical representation of the number of
|
24140
|
+
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
24199
24141
|
}
|
24200
24142
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24201
24143
|
text =
|
24202
|
-
'Graphical representation of the number of
|
24144
|
+
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
24203
24145
|
}
|
24204
24146
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
24205
24147
|
text =
|
24206
|
-
'Graphical representation of the number of credits of
|
24148
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24207
24149
|
}
|
24208
24150
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24209
24151
|
text =
|
24210
|
-
'Graphical representation of the number of credits of
|
24152
|
+
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
24211
24153
|
}
|
24212
24154
|
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24213
24155
|
text =
|
24214
|
-
'Locations of the
|
24156
|
+
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
24215
24157
|
}
|
24216
24158
|
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24217
24159
|
text =
|
@@ -24230,131 +24172,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24230
24172
|
}
|
24231
24173
|
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
24232
24174
|
text =
|
24233
|
-
'Number of
|
24175
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
|
24234
24176
|
}
|
24235
24177
|
else if (cardType === StatsCardsTypes.CREDITS) {
|
24236
24178
|
text =
|
24237
|
-
'Number of credits of
|
24179
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
|
24238
24180
|
}
|
24239
24181
|
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
24240
24182
|
text =
|
24241
|
-
'Number of credits of
|
24183
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
|
24242
24184
|
}
|
24243
24185
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24244
24186
|
text =
|
24245
|
-
'Graphical representation of the number of
|
24187
|
+
'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';
|
24246
24188
|
}
|
24247
24189
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24248
24190
|
text =
|
24249
|
-
'Graphical representation of the number of
|
24191
|
+
'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
|
24250
24192
|
}
|
24251
24193
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
24252
24194
|
text =
|
24253
|
-
'Graphical representation of the number of credits of
|
24195
|
+
'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';
|
24254
24196
|
}
|
24255
24197
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24256
24198
|
text =
|
24257
|
-
'Graphical representation of the number of credits of
|
24199
|
+
'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';
|
24258
24200
|
}
|
24259
24201
|
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24260
24202
|
text =
|
24261
|
-
'Locations of the
|
24203
|
+
'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
|
24262
24204
|
}
|
24263
24205
|
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24264
24206
|
text =
|
24265
|
-
'Locations of credits international transfer requests of
|
24207
|
+
'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
|
24266
24208
|
}
|
24267
24209
|
}
|
24268
24210
|
else if (companyRole === CompanyRole.CERTIFIER && mine === true) {
|
24269
24211
|
if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24270
24212
|
text =
|
24271
|
-
'Number of
|
24213
|
+
'Number of projects not yet certified including certificates revoked by your organisation';
|
24272
24214
|
}
|
24273
24215
|
else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24274
|
-
text = 'Number of
|
24216
|
+
text = 'Number of projects certified by your organisation';
|
24275
24217
|
}
|
24276
24218
|
else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
|
24277
24219
|
text = 'Number of credits certified by your organisation';
|
24278
24220
|
}
|
24279
24221
|
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
24280
24222
|
text =
|
24281
|
-
'Number of
|
24223
|
+
'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
|
24282
24224
|
}
|
24283
24225
|
else if (cardType === StatsCardsTypes.CREDITS) {
|
24284
24226
|
text =
|
24285
|
-
'Number of credits of
|
24227
|
+
'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
|
24286
24228
|
}
|
24287
24229
|
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
24288
24230
|
text =
|
24289
|
-
'Number of credits of
|
24231
|
+
'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
|
24290
24232
|
}
|
24291
24233
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24292
24234
|
text =
|
24293
|
-
'Graphical representation of the number of
|
24235
|
+
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
24294
24236
|
}
|
24295
24237
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24296
24238
|
text =
|
24297
|
-
'Graphical representation of the number of
|
24239
|
+
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
24298
24240
|
}
|
24299
24241
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
24300
24242
|
text =
|
24301
|
-
'Graphical representation of the number of credits of
|
24243
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24302
24244
|
}
|
24303
24245
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24304
24246
|
text =
|
24305
|
-
'Graphical representation of the number of credits of
|
24247
|
+
'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';
|
24306
24248
|
}
|
24307
24249
|
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24308
24250
|
text =
|
24309
|
-
'Locations of the
|
24251
|
+
'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
|
24310
24252
|
}
|
24311
24253
|
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24312
24254
|
text =
|
24313
|
-
'Locations of credits of international transfer requests of
|
24255
|
+
'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
|
24314
24256
|
}
|
24315
24257
|
}
|
24316
24258
|
else if (companyRole === CompanyRole.CERTIFIER && !mine) {
|
24317
24259
|
if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24318
24260
|
text =
|
24319
|
-
'Number of
|
24261
|
+
'Number of projects not yet certified including certificates revoked by your organisation';
|
24320
24262
|
}
|
24321
24263
|
else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24322
|
-
text = 'Number of
|
24264
|
+
text = 'Number of projects certified by your organisation';
|
24323
24265
|
}
|
24324
24266
|
else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
|
24325
24267
|
text = 'Number of credits certified by your organisation';
|
24326
24268
|
}
|
24327
24269
|
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
24328
24270
|
text =
|
24329
|
-
'Number of
|
24271
|
+
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
24330
24272
|
}
|
24331
24273
|
else if (cardType === StatsCardsTypes.CREDITS) {
|
24332
24274
|
text =
|
24333
|
-
'Number of credits of
|
24275
|
+
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
24334
24276
|
}
|
24335
24277
|
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
24336
24278
|
text =
|
24337
|
-
'Number of credits of
|
24279
|
+
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24338
24280
|
}
|
24339
24281
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24340
24282
|
text =
|
24341
|
-
'Graphical representation of the number of
|
24283
|
+
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
24342
24284
|
}
|
24343
24285
|
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24344
24286
|
text =
|
24345
|
-
'Graphical representation of the number of
|
24287
|
+
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
24346
24288
|
}
|
24347
24289
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
24348
24290
|
text =
|
24349
|
-
'Graphical representation of the number of credits of
|
24291
|
+
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
24350
24292
|
}
|
24351
24293
|
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24352
24294
|
text =
|
24353
|
-
'Graphical representation of the number of credits of
|
24295
|
+
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
24354
24296
|
}
|
24355
24297
|
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24356
24298
|
text =
|
24357
|
-
'Locations of the
|
24299
|
+
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
24358
24300
|
}
|
24359
24301
|
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24360
24302
|
text =
|
@@ -24385,7 +24327,7 @@ var StasticCard = function (props) {
|
|
24385
24327
|
};
|
24386
24328
|
|
24387
24329
|
var ProgrammeRejectAndTransferComponent = function (props) {
|
24388
|
-
var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
|
24330
|
+
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;
|
24389
24331
|
useEffect(function () {
|
24390
24332
|
console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
|
24391
24333
|
});
|
@@ -24393,7 +24335,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
|
|
24393
24335
|
React.createElement(Skeleton, { active: true }),
|
24394
24336
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
|
24395
24337
|
React.createElement("div", { className: "title-section" },
|
24396
|
-
React.createElement("div", { className: "title" }, "
|
24338
|
+
React.createElement("div", { className: "title" }, t("programmes")),
|
24397
24339
|
React.createElement("div", { className: "info-container" },
|
24398
24340
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
|
24399
24341
|
React.createElement(InfoCircle, { color: "#000000", size: 17 })))),
|
@@ -26065,7 +26007,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26065
26007
|
? "tTProgrammesProgrammeDev"
|
26066
26008
|
: categoryType === "mine"
|
26067
26009
|
? "tTProgrammesCertifierMine"
|
26068
|
-
: "tTProgrammesCertifierOverall") })),
|
26010
|
+
: "tTProgrammesCertifierOverall"), t: t })),
|
26069
26011
|
React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
|
26070
26012
|
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) === CompanyRole.GOVERNMENT
|
26071
26013
|
? "tTCreditsGovernment"
|
@@ -26975,48 +26917,7 @@ var ProgrammeRetireForm = function (props) {
|
|
26975
26917
|
var _e = useState([]), countryList = _e[0], setCountryList = _e[1];
|
26976
26918
|
var _f = useState(); _f[0]; var setValue = _f[1];
|
26977
26919
|
var _g = useState(false), checked = _g[0], setChecked = _g[1];
|
26978
|
-
var _h =
|
26979
|
-
var _j = useConnection(); _j.get; _j.delete; var post = _j.post;
|
26980
|
-
var getGovernmentDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
26981
|
-
var response, error_1;
|
26982
|
-
return __generator(this, function (_a) {
|
26983
|
-
switch (_a.label) {
|
26984
|
-
case 0:
|
26985
|
-
setLoading(true);
|
26986
|
-
_a.label = 1;
|
26987
|
-
case 1:
|
26988
|
-
_a.trys.push([1, 3, 4, 5]);
|
26989
|
-
console.log("getting government profile");
|
26990
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
26991
|
-
page: 1,
|
26992
|
-
size: 100,
|
26993
|
-
filterAnd: [
|
26994
|
-
{
|
26995
|
-
key: "companyRole",
|
26996
|
-
operation: "=",
|
26997
|
-
value: CompanyRole.GOVERNMENT,
|
26998
|
-
},
|
26999
|
-
],
|
27000
|
-
})];
|
27001
|
-
case 2:
|
27002
|
-
response = _a.sent();
|
27003
|
-
if (response.data) {
|
27004
|
-
setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
|
27005
|
-
console.log("gov profile", response === null || response === void 0 ? void 0 : response.data[0]);
|
27006
|
-
return [2 /*return*/, response === null || response === void 0 ? void 0 : response.data[0]];
|
27007
|
-
}
|
27008
|
-
return [3 /*break*/, 5];
|
27009
|
-
case 3:
|
27010
|
-
error_1 = _a.sent();
|
27011
|
-
console.log("Error in getting government data", error_1);
|
27012
|
-
return [3 /*break*/, 5];
|
27013
|
-
case 4:
|
27014
|
-
setLoading(false);
|
27015
|
-
return [7 /*endfinally*/];
|
27016
|
-
case 5: return [2 /*return*/];
|
27017
|
-
}
|
27018
|
-
});
|
27019
|
-
}); };
|
26920
|
+
var _h = useConnection(); _h.get; _h.delete; var post = _h.post;
|
27020
26921
|
var handleSearch = function (newValue) { return __awaiter(void 0, void 0, void 0, function () {
|
27021
26922
|
var resp;
|
27022
26923
|
return __generator(this, function (_a) {
|
@@ -27060,8 +26961,8 @@ var ProgrammeRetireForm = function (props) {
|
|
27060
26961
|
programme.creditOwnerPercentage = [100];
|
27061
26962
|
}
|
27062
26963
|
var companies = {};
|
27063
|
-
for (var _i = 0,
|
27064
|
-
var c =
|
26964
|
+
for (var _i = 0, _j = programme.company; _i < _j.length; _i++) {
|
26965
|
+
var c = _j[_i];
|
27065
26966
|
companies[c.companyId] = c;
|
27066
26967
|
}
|
27067
26968
|
var validCompanies = [];
|
@@ -27095,11 +26996,7 @@ var ProgrammeRetireForm = function (props) {
|
|
27095
26996
|
if (hideType) {
|
27096
26997
|
setType("0");
|
27097
26998
|
}
|
27098
|
-
getGovernmentDetails();
|
27099
26999
|
}, []);
|
27100
|
-
if (!govData) {
|
27101
|
-
return React.createElement("div", null, "Loading");
|
27102
|
-
}
|
27103
27000
|
return (React.createElement("div", { className: "transfer-form" },
|
27104
27001
|
subText && (React.createElement(Row, null,
|
27105
27002
|
React.createElement(Col, { span: 24, className: "sub-text" }, subText))),
|
@@ -27135,7 +27032,6 @@ var ProgrammeRetireForm = function (props) {
|
|
27135
27032
|
country: d.country,
|
27136
27033
|
};
|
27137
27034
|
}
|
27138
|
-
d.omgePercentage = Number(govData.omgePercentage);
|
27139
27035
|
return [4 /*yield*/, onFinish(d)];
|
27140
27036
|
case 1:
|
27141
27037
|
res = _a.sent();
|
@@ -27230,31 +27126,7 @@ var ProgrammeRetireForm = function (props) {
|
|
27230
27126
|
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27231
27127
|
React.createElement(Col, { lg: 6, md: 12 },
|
27232
27128
|
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27233
|
-
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))),
|
27234
|
-
React.createElement(Row, null,
|
27235
|
-
React.createElement(Col, { lg: 11, md: 24 },
|
27236
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
27237
|
-
React.createElement(Col, { lg: 6, md: 12 },
|
27238
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27239
|
-
React.createElement(InputNumber, { placeholder: addCommSep(currentSum -
|
27240
|
-
Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27241
|
-
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27242
|
-
React.createElement(Col, { lg: 6, md: 12 },
|
27243
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27244
|
-
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))),
|
27245
|
-
React.createElement(Row, null,
|
27246
|
-
React.createElement(Col, { lg: 11, md: 24, style: { display: "flex" } },
|
27247
|
-
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
27248
|
-
React.createElement("div", { className: "info-container" },
|
27249
|
-
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
27250
|
-
React.createElement(InfoCircle, { color: "#000000", size: 15 })))),
|
27251
|
-
React.createElement(Col, { lg: 6, md: 12 },
|
27252
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27253
|
-
React.createElement(InputNumber, { placeholder: addCommSep(Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27254
|
-
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27255
|
-
React.createElement(Col, { lg: 6, md: 12 },
|
27256
|
-
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27257
|
-
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))))),
|
27129
|
+
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))))),
|
27258
27130
|
React.createElement(Row, null,
|
27259
27131
|
React.createElement(Col, { span: 24 },
|
27260
27132
|
React.createElement(Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|