@undp/carbon-library 1.0.258-carbon-lib-test.0 → 1.0.258

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/cjs/index.js +179 -366
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  8. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
  9. package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
  10. package/dist/cjs/types/index.d.ts +0 -1
  11. package/dist/esm/index.js +181 -360
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  14. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  15. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  16. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  17. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  18. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
  19. package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
  20. package/dist/esm/types/index.d.ts +0 -1
  21. package/dist/index.d.ts +9 -21
  22. package/dist/locales/i18n/company/en.json +2 -1
  23. package/dist/locales/i18n/companyProfile/en.json +2 -1
  24. package/package.json +2 -29
  25. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  26. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  27. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  28. package/dist/cjs/types/Context/index.d.ts +0 -3
  29. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  30. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  31. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  32. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  33. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  34. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  35. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  36. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  37. package/dist/esm/types/Context/index.d.ts +0 -3
  38. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  39. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  40. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  41. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  42. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
package/dist/cjs/index.js CHANGED
@@ -7,7 +7,6 @@ var luxon = require('luxon');
7
7
  var buffer = require('buffer');
8
8
  var PhoneInput = require('react-phone-number-input');
9
9
  var validator = require('validator');
10
- var axios = require('axios');
11
10
  var classTransformer = require('class-transformer');
12
11
  var Icon = require('react-bootstrap-icons');
13
12
  require('react-phone-number-input/style.css');
@@ -855,10 +854,10 @@ var CompanyManagementComponent = function (props) {
855
854
  } })))))));
856
855
  };
857
856
 
858
- 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";
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 .company-details-form-container .company-details-form .row .details-part-two .space-container {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .space-container .ant-space-item {\n width: 100%; }\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";
859
858
  styleInject(css_248z$s);
860
859
 
861
- var css_248z$r = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n body .ant-menu {\n background-color: #f4f5fa; }\n body .ant-layout-header {\n background-color: #f4f5fa; }\n body .ant-layout {\n background-color: #f4f5fa; }\n body .ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n body .ant-menu-item {\n background-color: #f4f5fa; }\n body .ant-menu-sub {\n background-color: #f4f5fa; }\n body .ant-table-content {\n font-family: \"Inter\"; }\n body .ant-input {\n border-radius: 5px !important; }\n body .ant-btn {\n border-radius: 5px !important; }\n body .ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n body .ant-input-group .ant-input {\n width: 99% !important; }\n body .ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n body .ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n body .ant-upload-list-picture .ant-upload-list-item-error,\n body .ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n body .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n body .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n body .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n body .ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n body .ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n body .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 body .ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n body .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 body .ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n body .space-container {\n width: 100%; }\n body .space-container .ant-space-item {\n width: 100%; }\n body .PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n body .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 body .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 body .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 body .ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n body .PhoneInput .PhoneInputInput:focus-visible,\n body .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 body .layout-content-container {\n padding-bottom: 100px; }\n body .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n body .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 body .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n body .content-container {\n padding: 0px 20px; }\n body .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n body .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n body .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n body .content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n body .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n body .content-card .action-bar button {\n width: fit-content; }\n body .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 body .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n body .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n body .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n body .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 body .layout-content-container .ant-btn {\n min-width: 50px !important; }\n body .table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n body .action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n body .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n body .action-menu .anticon-edit {\n color: #16b1ff; }\n body .action-menu .anticon-delete {\n color: #f25a29; }\n body .ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n body .ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n body .ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n body .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n body .ant-tag {\n border-radius: 20px; }\n body .clickable {\n cursor: pointer; }\n body .text-center {\n text-align: center; }\n body .float-left {\n float: left; }\n body .float-right {\n float: right; }\n body .apexcharts-canvas {\n font-family: \"Inter\" !important; }\n body .apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n body .ant-tag {\n padding: 1px 10px; }\n body .flex-display {\n display: flex; }\n body .ant-modal-footer {\n border-top: none;\n text-align: center; }\n body .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n body .ant-modal-header {\n border-radius: 15px;\n border: none; }\n body .ant-modal-content {\n border-radius: 15px;\n border: none; }\n body .ant-modal-header {\n border: none; }\n body .ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n body .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n body .ant-modal-body .form-label {\n text-align: left; }\n body .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n body .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n body .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n body .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 body .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n body .popup-header img {\n height: 100px; }\n body .popup-success .icon {\n color: #5dc380; }\n body .popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n body .popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n body .popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n body .popup-primary .icon {\n color: #16b1ff; }\n body .popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n body .popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n body .popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n body .popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n body .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 body .popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n body .popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n body .ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n body .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 body .ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n body .filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n body .pull-right {\n float: right; }\n body .disabled {\n opacity: 0.5; }\n body .mg-left-3 {\n margin-left: 3rem; }\n body .mg-left-2 {\n margin-left: 2rem !important; }\n body .mg-left-1 {\n margin-left: 1rem; }\n body .mg-top-1 {\n margin-top: 1rem; }\n body .mg-top-2 {\n margin-top: 2rem; }\n body .mg-bottom-1 {\n margin-bottom: 1rem !important; }\n body .transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n body .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n body .transfer-form .ant-row {\n align-items: unset; }\n body .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n body .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n body .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n body .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n body .transfer-form label {\n font-size: 0.8rem; }\n body .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n body .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n body .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n body .color-error {\n color: rgba(255, 77, 79, 0.8); }\n body .color-primary {\n color: #16b1ff; }\n body .ant-input-number-input {\n text-align: right; }\n body .text-left {\n text-align: left; }\n body .ant-form-item .ant-radio-group {\n text-align: left; }\n body .loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n body .ant-tag-purple {\n color: #976ed7; }\n body .ant-tag-orange {\n color: #ff8f56; }\n body .ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n body .ant-popover-inner {\n border-radius: 4px; }\n body .ant-input-number {\n border-radius: 5px; }\n body .ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n body .flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n body .b-icon {\n vertical-align: middle; }\n body .ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n body .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n body .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 body .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n body .ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n body .sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n body .search-filter {\n margin-right: 15px; }\n body .mg-bottom-0 {\n margin-bottom: 0px; }\n body .padding-bottom-0 {\n padding-bottom: 0px; }\n body .ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n body .nextline-overflow {\n overflow-wrap: break-word; }\n body .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 .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";
862
861
  styleInject(css_248z$r);
863
862
 
864
863
  exports.UserManagementColumns = void 0;
@@ -5753,311 +5752,9 @@ var ProgrammeCertify = /** @class */ (function () {
5753
5752
  return ProgrammeCertify;
5754
5753
  }());
5755
5754
 
5756
- function e$1(e){this.message=e;}e$1.prototype=new Error,e$1.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e$1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t$1(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n$1(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n$1("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$1(e.split(".")[o]))}catch(e){throw new n$1("Invalid token specified: "+e.message)}}n$1.prototype=new Error,n$1.prototype.name="InvalidTokenError";
5757
-
5758
- var ConnectionContext = React.createContext({});
5759
- var ConnectionContextProvider = function (props) {
5760
- var _a = React.useState(), token = _a[0], setToken = _a[1];
5761
- var serverURL = props.serverURL, t = props.t, children = props.children;
5762
- React.useEffect(function () {
5763
- var timer = setInterval(function () { return __awaiter(void 0, void 0, void 0, function () {
5764
- var newToken;
5765
- return __generator(this, function (_a) {
5766
- switch (_a.label) {
5767
- case 0: return [4 /*yield*/, localStorage.getItem('token')];
5768
- case 1:
5769
- newToken = _a.sent();
5770
- if (token !== newToken) {
5771
- setToken(newToken);
5772
- }
5773
- return [2 /*return*/];
5774
- }
5775
- });
5776
- }); }, 3000);
5777
- if (token) {
5778
- clearTimeout(timer);
5779
- }
5780
- return function () {
5781
- clearTimeout(timer);
5782
- };
5783
- }, [token]);
5784
- var send = React.useCallback(function (method, path, data, config, extraUrl) {
5785
- return new Promise(function (resolve, reject) {
5786
- var url = "".concat(extraUrl ? extraUrl : serverURL, "/").concat(path);
5787
- var headers;
5788
- if (token) {
5789
- headers = { authorization: "Bearer ".concat(token.toString()) };
5790
- }
5791
- else {
5792
- localStorage.getItem('token');
5793
- headers = {
5794
- authorization: "Bearer ".concat(localStorage.getItem('token')),
5795
- };
5796
- }
5797
- axios(__assign({ method: method, url: url, data: data, headers: headers }, config))
5798
- .then(function (response) {
5799
- var _a, _b, _c;
5800
- if (response.status) {
5801
- if (response.status === 200 || response.status === 201) {
5802
- resolve({
5803
- status: response.status,
5804
- data: (_a = response.data.data) !== null && _a !== void 0 ? _a : response.data,
5805
- response: response,
5806
- statusText: 'SUCCESS',
5807
- message: response.data.message,
5808
- });
5809
- }
5810
- else if (response.status === 422) {
5811
- reject({
5812
- status: response.status,
5813
- data: (_b = response.data) === null || _b === void 0 ? void 0 : _b.data,
5814
- statusText: 'ERROR',
5815
- response: response,
5816
- message: response.data.message,
5817
- errors: (_c = response.data) === null || _c === void 0 ? void 0 : _c.errors,
5818
- });
5819
- }
5820
- }
5821
- else {
5822
- reject({
5823
- status: 500,
5824
- statusText: 'UNKNOWN',
5825
- message: t('common:systemError'),
5826
- });
5827
- }
5828
- })
5829
- .catch(function (e) {
5830
- var _a;
5831
- if (e.response) {
5832
- if (e.response.status) {
5833
- if (e.response.data.message === 'jwt expired') {
5834
- localStorage.removeItem('token');
5835
- window.location.reload();
5836
- }
5837
- reject({
5838
- status: e.response.status,
5839
- statusText: 'ERROR',
5840
- errors: (_a = e.response.data) === null || _a === void 0 ? void 0 : _a.errors,
5841
- message: e.response.data.message,
5842
- });
5843
- }
5844
- else {
5845
- reject({
5846
- statusText: 'ERROR',
5847
- message: t('common:systemError'),
5848
- });
5849
- }
5850
- }
5851
- else {
5852
- reject({
5853
- statusText: 'ERROR',
5854
- message: t('common:networkError'),
5855
- });
5856
- }
5857
- });
5858
- });
5859
- }, [token, serverURL]);
5860
- var post = React.useCallback(function (path, data, config, extraUrl) {
5861
- return send('post', path, data, config, extraUrl);
5862
- }, [send]);
5863
- var put = React.useCallback(function (path, data, config) {
5864
- return send('put', path, data, config);
5865
- }, [send]);
5866
- var get = React.useCallback(function (path, config) {
5867
- return send('get', path, undefined, config);
5868
- }, [send]);
5869
- var patch = React.useCallback(function (path, data, config) {
5870
- return send('patch', path, data, config);
5871
- }, [send]);
5872
- var del = React.useCallback(function (path, config) {
5873
- return send('delete', path, config);
5874
- }, [send]);
5875
- var updateToken = React.useCallback(function (newToken) { return __awaiter(void 0, void 0, void 0, function () {
5876
- return __generator(this, function (_a) {
5877
- if (newToken) {
5878
- localStorage.setItem('token', newToken);
5879
- setToken(newToken);
5880
- }
5881
- else {
5882
- localStorage.setItem('token', '');
5883
- setToken(undefined);
5884
- }
5885
- return [2 /*return*/];
5886
- });
5887
- }); }, []);
5888
- var removeToken = function (tkn) {
5889
- if (tkn) {
5890
- var exp = o(tkn).exp;
5891
- if (Date.now() > exp * 1000) {
5892
- localStorage.setItem('token', '');
5893
- localStorage.removeItem('userRole');
5894
- localStorage.removeItem('userId');
5895
- localStorage.removeItem('companyId');
5896
- localStorage.removeItem('companyRole');
5897
- }
5898
- else {
5899
- var diff = exp * 1000 - Date.now();
5900
- setTimeout(function () {
5901
- setToken(undefined);
5902
- localStorage.setItem('token', '');
5903
- localStorage.removeItem('userRole');
5904
- localStorage.removeItem('userId');
5905
- localStorage.removeItem('companyId');
5906
- localStorage.removeItem('companyRole');
5907
- }, diff);
5908
- console.log(diff, 'Remaining Token expire time');
5909
- }
5910
- }
5911
- };
5912
- React.useEffect(function () {
5913
- removeToken(token);
5914
- }, [token]);
5915
- return (React.createElement(ConnectionContext.Provider, { value: {
5916
- connection: { post: post, put: put, get: get, patch: patch, delete: del, updateToken: updateToken, token: token, removeToken: removeToken },
5917
- } }, children));
5918
- };
5919
- var useConnection = function () {
5920
- var context = React.useContext(ConnectionContext);
5921
- return context.connection;
5922
- };
5923
-
5924
- var UserContext = React.createContext({
5925
- setUserInfo: function () { },
5926
- removeUserInfo: function () { },
5927
- IsAuthenticated: function (tkn) { return false; },
5928
- isTokenExpired: false,
5929
- setIsTokenExpired: function (val) { },
5930
- });
5931
- var UserInformationContextProvider = function (_a) {
5932
- var children = _a.children;
5933
- var token = useConnection().token;
5934
- var _b = React.useState(false), isTokenExpired = _b[0], setIsTokenExpired = _b[1];
5935
- var initialUserProps = {
5936
- id: localStorage.getItem('userId') ? localStorage.getItem('userId') : '',
5937
- userRole: localStorage.getItem('userRole') ? localStorage.getItem('userRole') : '',
5938
- companyRole: localStorage.getItem('companyRole')
5939
- ? localStorage.getItem('companyRole')
5940
- : '',
5941
- companyId: localStorage.getItem('companyId')
5942
- ? parseInt(localStorage.getItem('companyId'))
5943
- : -1,
5944
- companyLogo: localStorage.getItem('companyLogo')
5945
- ? localStorage.getItem('companyLogo')
5946
- : '',
5947
- companyName: localStorage.getItem('companyName')
5948
- ? localStorage.getItem('companyName')
5949
- : '',
5950
- companyState: localStorage.getItem('companyState')
5951
- ? parseInt(localStorage.getItem('companyState'))
5952
- : 0,
5953
- };
5954
- var _c = React.useState(initialUserProps), userInfoState = _c[0], setUserInfoState = _c[1];
5955
- var setUserInfo = function (value) {
5956
- var state = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) === 1 ? userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState : 0;
5957
- var id = value.id, userRole = value.userRole, companyId = value.companyId, companyRole = value.companyRole, companyLogo = value.companyLogo, companyName = value.companyName, _a = value.companyState, companyState = _a === void 0 ? state : _a;
5958
- if (id) {
5959
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { id: id })); });
5960
- localStorage.setItem('userId', id);
5961
- }
5962
- if (userRole) {
5963
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { userRole: userRole })); });
5964
- localStorage.setItem('userRole', userRole);
5965
- }
5966
- if (companyId) {
5967
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyId: companyId })); });
5968
- localStorage.setItem('companyId', companyId + '');
5969
- }
5970
- if (companyLogo) {
5971
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: companyLogo })); });
5972
- localStorage.setItem('companyLogo', companyLogo);
5973
- }
5974
- else {
5975
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: '' })); });
5976
- localStorage.setItem('companyLogo', '');
5977
- }
5978
- if (companyName) {
5979
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyName: companyName })); });
5980
- localStorage.setItem('companyName', companyName);
5981
- }
5982
- if (userRole) {
5983
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyRole: companyRole })); });
5984
- localStorage.setItem('companyRole', companyRole);
5985
- }
5986
- setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyState: companyState })); });
5987
- localStorage.setItem('companyState', companyState + '');
5988
- };
5989
- var IsAuthenticated = React.useCallback(function (tokenNew) {
5990
- var tokenVal;
5991
- if (tokenNew) {
5992
- tokenVal = tokenNew;
5993
- }
5994
- else if (token) {
5995
- tokenVal = token;
5996
- }
5997
- else {
5998
- tokenVal = localStorage.getItem('token');
5999
- if (tokenVal === '') {
6000
- if (history.length !== 1) {
6001
- setIsTokenExpired(true);
6002
- }
6003
- }
6004
- }
6005
- try {
6006
- if (tokenVal) {
6007
- var exp = o(tokenVal).exp;
6008
- return Date.now() < exp * 1000;
6009
- }
6010
- return false;
6011
- }
6012
- catch (err) {
6013
- return false;
6014
- }
6015
- }, [token]);
6016
- var removeUserInfo = function () {
6017
- localStorage.removeItem('userId');
6018
- localStorage.removeItem('userRole');
6019
- localStorage.removeItem('companyId');
6020
- localStorage.removeItem('companyRole');
6021
- localStorage.removeItem('companyName');
6022
- localStorage.removeItem('companyState');
6023
- localStorage.removeItem('companyLogo');
6024
- setUserInfoState(initialUserProps);
6025
- };
6026
- return (React.createElement(UserContext.Provider, { value: {
6027
- userInfoState: userInfoState,
6028
- setUserInfo: setUserInfo,
6029
- removeUserInfo: removeUserInfo,
6030
- IsAuthenticated: IsAuthenticated,
6031
- isTokenExpired: isTokenExpired,
6032
- setIsTokenExpired: setIsTokenExpired,
6033
- } }, children));
6034
- };
6035
- var useUserContext = function () {
6036
- return React.useContext(UserContext);
6037
- };
6038
-
6039
- var SettingsContext = React.createContext({
6040
- isTransferFrozen: false,
6041
- setTransferFrozen: function (value) { },
6042
- });
6043
- var SettingsContextProvider = function (_a) {
6044
- var children = _a.children;
6045
- var _b = React.useState(false), isTransferFrozen = _b[0], setIsTransferFrozen = _b[1];
6046
- var setTransferFrozen = function (value) {
6047
- setIsTransferFrozen(value);
6048
- };
6049
- return (React.createElement(SettingsContext.Provider, { value: {
6050
- isTransferFrozen: isTransferFrozen,
6051
- setTransferFrozen: setTransferFrozen,
6052
- } }, children));
6053
- };
6054
- var useSettingsContext = function () {
6055
- return React.useContext(SettingsContext);
6056
- };
6057
-
6058
5755
  var AddNewCompanyComponent = function (props) {
6059
5756
  var _a;
6060
- var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize, useLocation = props.useLocation, regionField = props.regionField, isGuest = props.isGuest, onNavigateToHome = props.onNavigateToHome, systemType = props.systemType;
5757
+ var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation, regionField = props.regionField, isGuest = props.isGuest, onNavigateToHome = props.onNavigateToHome, systemType = props.systemType;
6061
5758
  var formOne = antd.Form.useForm()[0];
6062
5759
  var formTwo = antd.Form.useForm()[0];
6063
5760
  var _b = React.useState(), stepOneData = _b[0], setStepOneData = _b[1];
@@ -6250,16 +5947,16 @@ var AddNewCompanyComponent = function (props) {
6250
5947
  }); };
6251
5948
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
6252
5949
  var formOneValues, values, logoBase64, logoUrls, response, error_3;
6253
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
6254
- return __generator(this, function (_k) {
6255
- switch (_k.label) {
5950
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
5951
+ return __generator(this, function (_l) {
5952
+ switch (_l.label) {
6256
5953
  case 0:
6257
5954
  setLoading(true);
6258
5955
  formOneValues = formOne.getFieldsValue();
6259
5956
  formOneValues.phoneNo = PhoneInput.formatPhoneNumberIntl(formOneValues.phoneNo);
6260
- _k.label = 1;
5957
+ _l.label = 1;
6261
5958
  case 1:
6262
- _k.trys.push([1, 5, , 6]);
5959
+ _l.trys.push([1, 5, , 6]);
6263
5960
  values = {};
6264
5961
  if (regionField) {
6265
5962
  values = {
@@ -6292,6 +5989,9 @@ var AddNewCompanyComponent = function (props) {
6292
5989
  values.nameOfMinister = formOneValues.nameOfMinister;
6293
5990
  }
6294
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) {
6295
5995
  values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
6296
5996
  }
6297
5997
  if (formOneValues.website) {
@@ -6302,15 +6002,15 @@ var AddNewCompanyComponent = function (props) {
6302
6002
  }
6303
6003
  if (!formOneValues.logo) return [3 /*break*/, 3];
6304
6004
  if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
6305
- return [4 /*yield*/, getBase64((_j = formOneValues.logo[0]) === null || _j === void 0 ? void 0 : _j.originFileObj)];
6005
+ return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
6306
6006
  case 2:
6307
- logoBase64 = _k.sent();
6007
+ logoBase64 = _l.sent();
6308
6008
  logoUrls = logoBase64.split(",");
6309
6009
  values.logo = logoUrls[1];
6310
- _k.label = 3;
6010
+ _l.label = 3;
6311
6011
  case 3: return [4 /*yield*/, put("national/organisation/update", values)];
6312
6012
  case 4:
6313
- response = _k.sent();
6013
+ response = _l.sent();
6314
6014
  if (response.status === 200 || response.status === 201) {
6315
6015
  setUserInfo({
6316
6016
  companyLogo: response.data.logo,
@@ -6326,7 +6026,7 @@ var AddNewCompanyComponent = function (props) {
6326
6026
  setLoading(false);
6327
6027
  return [3 /*break*/, 6];
6328
6028
  case 5:
6329
- error_3 = _k.sent();
6029
+ error_3 = _l.sent();
6330
6030
  antd.message.open({
6331
6031
  type: "error",
6332
6032
  content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
@@ -6347,7 +6047,7 @@ var AddNewCompanyComponent = function (props) {
6347
6047
  setCompanyRole(value);
6348
6048
  };
6349
6049
  var CompanyDetailsForm = function () {
6350
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
6050
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
6351
6051
  var companyRoleClassName = companyRole === exports.CompanyRole.CERTIFIER
6352
6052
  ? "certifier"
6353
6053
  : companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER
@@ -6589,13 +6289,14 @@ var AddNewCompanyComponent = function (props) {
6589
6289
  width: "45%",
6590
6290
  marginLeft: isGuest ? "30px" : 0,
6591
6291
  }
6592
- : { marginLeft: isGuest ? "30px" : 0, } },
6292
+ : { marginLeft: isGuest ? "30px" : 0 } },
6593
6293
  React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own programmes and transfer carbon credits" },
6594
6294
  React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6595
6295
  React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
6596
6296
  "Developer"))),
6597
- ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6598
- exports.CompanyRole.MINISTRY) && !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6297
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6298
+ exports.CompanyRole.MINISTRY &&
6299
+ !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6599
6300
  React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
6600
6301
  React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6601
6302
  React.createElement(icons.AuditOutlined, { className: "role-icons" }),
@@ -6684,7 +6385,30 @@ var AddNewCompanyComponent = function (props) {
6684
6385
  }); },
6685
6386
  },
6686
6387
  ] },
6687
- React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 })))))),
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("%", ""); } })))))))),
6688
6412
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(antd.Row, null,
6689
6413
  React.createElement(antd.Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6690
6414
  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"))))))));
@@ -6819,7 +6543,7 @@ var css_248z$q = ".company-profile {\n padding: 0px 50px; }\n .company-profile
6819
6543
  styleInject(css_248z$q);
6820
6544
 
6821
6545
  var CompanyProfileComponent = function (props) {
6822
- var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField;
6546
+ var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField, systemType = props.systemType;
6823
6547
  var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
6824
6548
  var _b = React.useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
6825
6549
  var _c = React.useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
@@ -7212,6 +6936,13 @@ var CompanyProfileComponent = function (props) {
7212
6936
  React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.remarks
7213
6937
  ? companyDetails.remarks
7214
6938
  : "-"))) : (""),
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
+ : "-")))),
7215
6946
  (companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === exports.CompanyRole.GOVERNMENT && (React.createElement(React.Fragment, null,
7216
6947
  React.createElement(antd.Row, { className: "field" },
7217
6948
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:nationalSopValue")),
@@ -7233,9 +6964,7 @@ var CompanyProfileComponent = function (props) {
7233
6964
  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 : "-")),
7234
6965
  React.createElement(antd.Row, { className: "field" },
7235
6966
  React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:adminPhone")),
7236
- React.createElement(antd.Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
7237
- ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo
7238
- : "-"))))))))),
6967
+ React.createElement(antd.Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo) ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo : "-"))))))))),
7239
6968
  React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onDeauthoriseOrgConfirmed, onActionCanceled: onDeauthoriseOrgCanceled, openModal: openDeauthorisationModal, errorMsg: errorMsg, loading: isLoading }),
7240
6969
  React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onReactivateOrgConfirmed, onActionCanceled: onReactivateOrgCanceled, openModal: openReactivateModal, errorMsg: errorMsg, loading: isLoading }),
7241
6970
  React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onApproveOrgConfirmed, onActionCanceled: onApproveOrgCanceled, openModal: openApproveModal, errorMsg: errorMsg, loading: isLoading }),
@@ -7247,7 +6976,7 @@ styleInject(css_248z$p);
7247
6976
 
7248
6977
  var Search$1 = antd.Input.Search;
7249
6978
  var ProgrammeManagementComponent = function (props) {
7250
- var t = props.t, visibleColumns = props.visibleColumns, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
6979
+ var t = props.t, visibleColumns = props.visibleColumns, useUserContext = props.useUserContext, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
7251
6980
  var _a = useConnection(); _a.get; _a.delete; var post = _a.post;
7252
6981
  var _b = React.useState(), totalProgramme = _b[0], setTotalProgramme = _b[1];
7253
6982
  var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
@@ -7632,7 +7361,7 @@ var ProgrammeManagementComponent = function (props) {
7632
7361
  React.createElement("div", { className: "filter-section" },
7633
7362
  React.createElement("div", { className: "search-filter" },
7634
7363
  React.createElement(antd.Checkbox, { className: "label", onChange: function (v) {
7635
- if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) {
7364
+ if (userInfoState.companyRole === exports.CompanyRole.MINISTRY) {
7636
7365
  if (v.target.checked) {
7637
7366
  setMinistryLevelFilter(true);
7638
7367
  }
@@ -7649,7 +7378,7 @@ var ProgrammeManagementComponent = function (props) {
7649
7378
  }
7650
7379
  : undefined);
7651
7380
  }
7652
- } }, (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY
7381
+ } }, userInfoState.companyRole === exports.CompanyRole.MINISTRY
7653
7382
  ? t("view:ministryLevel")
7654
7383
  : t("view:seeMine"))),
7655
7384
  React.createElement("div", { className: "search-bar" },
@@ -13430,7 +13159,7 @@ var sectoralScopes = {
13430
13159
  };
13431
13160
  var ProgrammeCreationComponent = function (props) {
13432
13161
  var _a, _b, _c;
13433
- var useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
13162
+ var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
13434
13163
  var t = translator.t;
13435
13164
  var state = useLocation().state;
13436
13165
  var formOne = antd.Form.useForm()[0];
@@ -14495,7 +14224,7 @@ var ChangePasswordModel = function (props) {
14495
14224
 
14496
14225
  var AddNewUserComponent = function (props) {
14497
14226
  var _a, _b, _c, _d, _e, _f;
14498
- var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
14227
+ var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
14499
14228
  var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete, get = _g.get;
14500
14229
  var formOne = antd.Form.useForm()[0];
14501
14230
  var state = useLocation().state;
@@ -14913,7 +14642,7 @@ var LanguageSelection = function (props) {
14913
14642
  };
14914
14643
 
14915
14644
  var UserProfileComponent = function (props) {
14916
- var t = props.t, i18n = props.i18n, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin;
14645
+ var t = props.t, i18n = props.i18n, useConnection = props.useConnection, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin, useUserContext = props.useUserContext;
14917
14646
  var get = useConnection().get;
14918
14647
  var _a = React.useState(undefined), organisationDetails = _a[0], setOrganisationDetails = _a[1];
14919
14648
  var _b = React.useState(undefined), userDetails = _b[0], setUserDetails = _b[1];
@@ -15081,7 +14810,7 @@ styleInject(css_248z$k);
15081
14810
 
15082
14811
  var Search = antd.Input.Search;
15083
14812
  var UserManagementComponent = function (props) {
15084
- var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser;
14813
+ var t = props.t, useAbilityContext = props.useAbilityContext, useConnection = props.useConnection, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser, userInfoState = props.userInfoState;
15085
14814
  antd.Form.useForm()[0];
15086
14815
  var _a = useConnection(), post = _a.post, del = _a.delete;
15087
14816
  var _b = React.useState(), totalUser = _b[0], setTotalUser = _b[1];
@@ -15103,7 +14832,6 @@ var UserManagementComponent = function (props) {
15103
14832
  var _s = React.useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
15104
14833
  var _t = React.useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
15105
14834
  var ability = useAbilityContext();
15106
- var userInfoState = useUserContext().userInfoState;
15107
14835
  document.addEventListener("mousedown", function (event) {
15108
14836
  var userFilterArea1 = document.querySelector(".filter-bar");
15109
14837
  var userFilterArea2 = document.querySelector(".filter-dropdown");
@@ -15624,7 +15352,7 @@ var Loading = function () {
15624
15352
  };
15625
15353
 
15626
15354
  var InvestmentCreationComponent = function (props) {
15627
- var t = props.t, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
15355
+ var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
15628
15356
  var state = useLocation().state;
15629
15357
  var _a = React.useState(), data = _a[0], setData = _a[1];
15630
15358
  var formOne = antd.Form.useForm()[0];
@@ -15639,7 +15367,6 @@ var InvestmentCreationComponent = function (props) {
15639
15367
  var _h = React.useState([]), instrument = _h[0], setInstrument = _h[1];
15640
15368
  var _j = React.useState(), stepOneData = _j[0], setStepOneData = _j[1];
15641
15369
  var _k = React.useState(), govData = _k[0], setGovData = _k[1];
15642
- var userInfoState = useUserContext().userInfoState;
15643
15370
  var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
15644
15371
  label: addSpaces(Object.values(exports.Instrument)[index]),
15645
15372
  value: Object.values(exports.Instrument)[index],
@@ -16256,7 +15983,7 @@ var InvestmentActionModel = function (props) {
16256
15983
  };
16257
15984
 
16258
15985
  var InvestmentManagementComponent = function (props) {
16259
- var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
15986
+ var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
16260
15987
  var t = translator.t;
16261
15988
  var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
16262
15989
  label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
@@ -16789,7 +16516,7 @@ var css_248z$i = ".steps-actions {\n display: flex;\n flex-direction: row-reve
16789
16516
  styleInject(css_248z$i);
16790
16517
 
16791
16518
  var SupportCreationComponent = function (props) {
16792
- var t = props.t, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
16519
+ var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
16793
16520
  useLocation().state;
16794
16521
  var _a = React.useState(); _a[0]; _a[1];
16795
16522
  var formOne = antd.Form.useForm()[0];
@@ -17144,7 +16871,7 @@ var SupportCreationComponent = function (props) {
17144
16871
  };
17145
16872
 
17146
16873
  var SupportManagementComponent = function (props) {
17147
- var translator = props.translator; props.onNavigateToProgrammeView; var enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
16874
+ var translator = props.translator, useConnection = props.useConnection; props.onNavigateToProgrammeView; var useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
17148
16875
  var t = translator.t;
17149
16876
  var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
17150
16877
  label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
@@ -17646,7 +17373,7 @@ var css_248z$h = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[valu
17646
17373
  styleInject(css_248z$h);
17647
17374
 
17648
17375
  var NdcActionManagementComponent = function (props) {
17649
- var t = props.t, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
17376
+ var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
17650
17377
  var _a = React.useState(true), checkAll = _a[0], setCheckAll = _a[1];
17651
17378
  var _b = React.useState([]), tableData = _b[0], setTableData = _b[1];
17652
17379
  var _c = React.useState(), totalProgramme = _c[0], setTotalProgramme = _c[1];
@@ -19003,7 +18730,7 @@ var GenderParity = function (props) {
19003
18730
  };
19004
18731
 
19005
18732
  var Assessment = function (props) {
19006
- var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
18733
+ var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
19007
18734
  translator.setDefaultNamespace("coBenifits");
19008
18735
  var t = translator.t;
19009
18736
  var form1 = antd.Form.useForm()[0];
@@ -20924,7 +20651,7 @@ var Social = function (props) {
20924
20651
  };
20925
20652
 
20926
20653
  var CoBenifitsComponent = function (props) {
20927
- var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
20654
+ var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, translator = props.translator, useConnection = props.useConnection;
20928
20655
  var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
20929
20656
  var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
20930
20657
  var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
@@ -21002,7 +20729,7 @@ var CoBenifitsComponent = function (props) {
21002
20729
  label: t("coBenifits:assessment"),
21003
20730
  key: "7",
21004
20731
  children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
21005
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, translator: translator })),
20732
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
21006
20733
  },
21007
20734
  ];
21008
20735
  var onCoBenefitSubmit = function () {
@@ -21165,7 +20892,7 @@ var CoBenifitsComponent = function (props) {
21165
20892
  };
21166
20893
 
21167
20894
  var AddNdcActionComponent = function (props) {
21168
- var useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
20895
+ var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
21169
20896
  translator.setDefaultNamespace("ndcAction");
21170
20897
  var t = translator.t;
21171
20898
  var _a = React.useState(1), current = _a[0], setCurrent = _a[1];
@@ -21309,7 +21036,7 @@ var AddNdcActionComponent = function (props) {
21309
21036
  description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
21310
21037
  React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
21311
21038
  ? t("ndcAction:next")
21312
- : t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, translator: translator }))),
21039
+ : t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
21313
21040
  },
21314
21041
  ];
21315
21042
  if (isProjectReportsVisible()) {
@@ -21446,7 +21173,7 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
21446
21173
  var NdcActionViewComponent = function (props) {
21447
21174
  var _a;
21448
21175
  var _b, _c;
21449
- var useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
21176
+ var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
21450
21177
  translator.setDefaultNamespace("ndcAction");
21451
21178
  var t = translator.t;
21452
21179
  var userInfoState = useUserContext().userInfoState;
@@ -21939,7 +21666,7 @@ var NdcActionViewComponent = function (props) {
21939
21666
  React.createElement(antd.Card, { className: "card-container" },
21940
21667
  React.createElement("div", { className: "co-benifits-view" },
21941
21668
  React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
21942
- React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, sdgGoalImages: sdgGoalImages, translator: translator })))))))));
21669
+ React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator })))))))));
21943
21670
  };
21944
21671
 
21945
21672
  var css_248z$b = ".credit-transfer-management .certify-list {\n width: 110px;\n display: flex;\n align-items: center;\n flex-wrap: wrap; }\n .credit-transfer-management .certify-list .profile-icon {\n margin-bottom: 4px; }\n\n.credit-transfer-management .table-actions-section {\n margin-bottom: 0px; }\n .credit-transfer-management .table-actions-section input {\n font-family: \"Inter\";\n font-size: 0.8rem; }\n\n.credit-transfer-management .all-check {\n margin-right: 10px; }\n .credit-transfer-management .all-check .ant-checkbox-inner::after {\n background-color: rgba(58, 53, 65, 0.5); }\n .credit-transfer-management .all-check .ant-checkbox-checked .ant-checkbox-inner::after {\n background-color: transparent; }\n .credit-transfer-management .all-check .ant-checkbox-checked .ant-checkbox-inner {\n background-color: rgba(58, 53, 65, 0.5);\n border: none; }\n\n.credit-transfer-management .ant-checkbox-checked .ant-checkbox-input[value='Retired'] + .ant-checkbox-inner {\n background-color: rgba(58, 53, 65, 0.4);\n border: none; }\n\n.credit-transfer-management .ant-checkbox-checked .ant-checkbox-input[value='AwaitingAuthorization'] + .ant-checkbox-inner {\n background-color: rgba(237, 77, 71, 0.6);\n border: none; }\n\n.credit-transfer-management .ant-checkbox-checked .ant-checkbox-input[value='Rejected'] + .ant-checkbox-inner {\n background-color: rgba(58, 53, 65, 0.4);\n border: none; }\n\n.credit-transfer-management .ant-checkbox-checked .ant-checkbox-input[value='Issued'] + .ant-checkbox-inner {\n background-color: #16b1ff;\n border: none; }\n\n.credit-transfer-management .ant-checkbox-checked .ant-checkbox-input[value='Transferred'] + .ant-checkbox-inner {\n background-color: rgba(118, 195, 39, 0.6);\n border: none; }\n\n.credit-transfer-modal-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 2rem 0 0 0;\n width: 100%; }\n .credit-transfer-modal-container .icon-credit {\n margin-bottom: 15px; }\n .credit-transfer-modal-container .credit-transfer-details {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n margin-bottom: 10px; }\n .credit-transfer-modal-container .credit-transfer-details .content-credit-transfer {\n font-family: 'Inter' !important;\n font-style: normal;\n font-weight: 600;\n font-size: 0.9rem;\n line-height: 1.3rem;\n padding: 0 1rem 0 1rem;\n text-align: center;\n color: rgba(58, 53, 65, 0.8) !important; }\n .credit-transfer-modal-container .credit-transfer-details .sub-content-credit-transfer {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.8rem;\n line-height: 1.375rem;\n text-align: center;\n color: rgba(58, 53, 65, 0.5); }\n .credit-transfer-modal-container .remarks-credit-transfer {\n flex-direction: row;\n width: 100%;\n padding: 0.5rem 1rem 0 1rem; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .ant-form-item-explain-error {\n display: flex;\n flex-direction: row; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .ant-form {\n width: 100%; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .ant-form .ant-form-item-label > label {\n font-size: 0.8rem; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .modal-credit-transfer-btns {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n width: 100%;\n margin-top: 1rem; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .modal-credit-transfer-btns .center {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n .credit-transfer-modal-container .remarks-credit-transfer .modal-form .modal-credit-transfer-btns .width-60 {\n width: 60%; }\n\n.common-table-class .ant-table .ant-table-thead .ant-table-cell {\n font-size: 0.75rem;\n font-weight: 600; }\n";
@@ -22033,6 +21760,30 @@ var TransferActionModel = function (props) {
22033
21760
  React.createElement(antd.Col, { lg: 6, md: 4 },
22034
21761
  React.createElement(antd.Form.Item, { className: "popup-credit-input" },
22035
21762
  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 }))))),
22036
21787
  React.createElement(antd.Row, null,
22037
21788
  React.createElement(antd.Col, { span: 24 },
22038
21789
  React.createElement(antd.Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
@@ -22068,7 +21819,7 @@ var TransferActionModel = function (props) {
22068
21819
  };
22069
21820
 
22070
21821
  var CreditTransferComponent = function (props) {
22071
- var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
21822
+ var useConnection = props.useConnection, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
22072
21823
  var userInfoState = useUserContext().userInfoState;
22073
21824
  var t = translator.t;
22074
21825
  var statusOptions = Object.keys(exports.CreditTransferStage).map(function (k, index) { return ({
@@ -23003,7 +22754,7 @@ var MapStatsComponent = function (props) {
23003
22754
 
23004
22755
  var RangePicker$1 = antd.DatePicker.RangePicker;
23005
22756
  var MrvDashboardComponent = function (props) {
23006
- var Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
22757
+ var useConnection = props.useConnection, useUserContext = props.useUserContext, Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
23007
22758
  var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
23008
22759
  var _c = React.useState({}), data = _c[0], setData = _c[1];
23009
22760
  var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
@@ -24747,7 +24498,7 @@ var RegistryBarChartsStatComponent = function (props) {
24747
24498
 
24748
24499
  var RangePicker = antd.DatePicker.RangePicker;
24749
24500
  var RegistryDashboardComponent = function (props) {
24750
- var Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
24501
+ var useUserContext = props.useUserContext, useConnection = props.useConnection, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
24751
24502
  var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
24752
24503
  var userInfoState = useUserContext().userInfoState;
24753
24504
  var _c = React.useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
@@ -26514,7 +26265,7 @@ var NdcActionType;
26514
26265
  NdcActionType[NdcActionType["sub"] = 1] = "sub";
26515
26266
  })(NdcActionType || (NdcActionType = {}));
26516
26267
  var NdcDetailsComponent = function (props) {
26517
- var t = props.t;
26268
+ var t = props.t; props.useConnection; var useUserContext = props.useUserContext;
26518
26269
  var RangePicker = antd.DatePicker.RangePicker;
26519
26270
  var _a = React.useState([]), ndcDetailsData = _a[0], setNdcDetailsData = _a[1];
26520
26271
  var _b = React.useState(false), loading = _b[0]; _b[1];
@@ -27234,7 +26985,7 @@ var ProgrammeIssueForm = function (props) {
27234
26985
  };
27235
26986
 
27236
26987
  var ProgrammeRetireForm = function (props) {
27237
- var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, hideType = props.hideType, myCompanyId = props.myCompanyId, translator = props.translator;
26988
+ var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, hideType = props.hideType, myCompanyId = props.myCompanyId, translator = props.translator, useConnection = props.useConnection;
27238
26989
  var t = translator.t;
27239
26990
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
27240
26991
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
@@ -27244,7 +26995,48 @@ var ProgrammeRetireForm = function (props) {
27244
26995
  var _e = React.useState([]), countryList = _e[0], setCountryList = _e[1];
27245
26996
  var _f = React.useState(); _f[0]; var setValue = _f[1];
27246
26997
  var _g = React.useState(false), checked = _g[0], setChecked = _g[1];
27247
- var _h = useConnection(); _h.get; _h.delete; var post = _h.post;
26998
+ var _h = React.useState(), govData = _h[0], setGovData = _h[1];
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
+ }); };
27248
27040
  var handleSearch = function (newValue) { return __awaiter(void 0, void 0, void 0, function () {
27249
27041
  var resp;
27250
27042
  return __generator(this, function (_a) {
@@ -27288,8 +27080,8 @@ var ProgrammeRetireForm = function (props) {
27288
27080
  programme.creditOwnerPercentage = [100];
27289
27081
  }
27290
27082
  var companies = {};
27291
- for (var _i = 0, _j = programme.company; _i < _j.length; _i++) {
27292
- var c = _j[_i];
27083
+ for (var _i = 0, _k = programme.company; _i < _k.length; _i++) {
27084
+ var c = _k[_i];
27293
27085
  companies[c.companyId] = c;
27294
27086
  }
27295
27087
  var validCompanies = [];
@@ -27323,7 +27115,11 @@ var ProgrammeRetireForm = function (props) {
27323
27115
  if (hideType) {
27324
27116
  setType("0");
27325
27117
  }
27118
+ getGovernmentDetails();
27326
27119
  }, []);
27120
+ if (!govData) {
27121
+ return React.createElement("div", null, "Loading");
27122
+ }
27327
27123
  return (React.createElement("div", { className: "transfer-form" },
27328
27124
  subText && (React.createElement(antd.Row, null,
27329
27125
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText))),
@@ -27359,6 +27155,7 @@ var ProgrammeRetireForm = function (props) {
27359
27155
  country: d.country,
27360
27156
  };
27361
27157
  }
27158
+ d.omgePercentage = Number(govData.omgePercentage);
27362
27159
  return [4 /*yield*/, onFinish(d)];
27363
27160
  case 1:
27364
27161
  res = _a.sent();
@@ -27453,7 +27250,31 @@ var ProgrammeRetireForm = function (props) {
27453
27250
  React.createElement(antd.Col, { lg: 1, md: 1, className: "seperator" }, "/"),
27454
27251
  React.createElement(antd.Col, { lg: 6, md: 12 },
27455
27252
  React.createElement(antd.Form.Item, { className: "popup-credit-input" },
27456
- React.createElement(antd.InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))))),
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 })))))),
27457
27278
  React.createElement(antd.Row, null,
27458
27279
  React.createElement(antd.Col, { span: 24 },
27459
27280
  React.createElement(antd.Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
@@ -27540,7 +27361,7 @@ var ProgrammeRevokeForm = function (props) {
27540
27361
  };
27541
27362
 
27542
27363
  var ProgrammeTransferForm = function (props) {
27543
- var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText; props.subText; var toCompanyDefault = props.toCompanyDefault, disableToCompany = props.disableToCompany, receiverLabelText = props.receiverLabelText, userCompanyId = props.userCompanyId, companyRole = props.companyRole, translator = props.translator, _a = props.ministryLevelPermission, ministryLevelPermission = _a === void 0 ? false : _a;
27364
+ var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText; props.subText; var toCompanyDefault = props.toCompanyDefault, disableToCompany = props.disableToCompany, receiverLabelText = props.receiverLabelText, userCompanyId = props.userCompanyId, companyRole = props.companyRole, translator = props.translator, useConnection = props.useConnection, _a = props.ministryLevelPermission, ministryLevelPermission = _a === void 0 ? false : _a;
27544
27365
  var t = translator.t;
27545
27366
  var _b = React.useState(undefined), popupError = _b[0], setPopupError = _b[1];
27546
27367
  var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
@@ -27771,7 +27592,7 @@ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column
27771
27592
  styleInject(css_248z$2);
27772
27593
 
27773
27594
  var NdcActionBody = function (props) {
27774
- var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, translator = props.translator, onFinish = props.onFinish, programme = props.programme;
27595
+ var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, translator = props.translator, useUserContext = props.useUserContext, onFinish = props.onFinish, programme = props.programme;
27775
27596
  var t = translator.t;
27776
27597
  var userInfoState = useUserContext().userInfoState;
27777
27598
  var fileInputMonitoringRef = React.useRef(null);
@@ -28171,7 +27992,7 @@ var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
28171
27992
  styleInject(css_248z$1);
28172
27993
 
28173
27994
  var ProgrammeDocuments = function (props) {
28174
- var data = props.data, title = props.title, icon = props.icon, programmeId = props.programmeId, programmeOwnerId = props.programmeOwnerId, getDocumentDetails = props.getDocumentDetails, getProgrammeById = props.getProgrammeById, ministryLevelPermission = props.ministryLevelPermission, translator = props.translator, methodologyDocumentUpdated = props.methodologyDocumentUpdated, programmeStatus = props.programmeStatus;
27995
+ var data = props.data, title = props.title, icon = props.icon, programmeId = props.programmeId, programmeOwnerId = props.programmeOwnerId, getDocumentDetails = props.getDocumentDetails, getProgrammeById = props.getProgrammeById, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, useUserContext = props.useUserContext, translator = props.translator, methodologyDocumentUpdated = props.methodologyDocumentUpdated, programmeStatus = props.programmeStatus;
28175
27996
  var t = translator.t;
28176
27997
  var userInfoState = useUserContext().userInfoState;
28177
27998
  var _a = useConnection(); _a.delete; var post = _a.post;
@@ -28678,7 +28499,6 @@ exports.CoBenifitsComponent = CoBenifitsComponent;
28678
28499
  exports.Company = Company;
28679
28500
  exports.CompanyManagementComponent = CompanyManagementComponent;
28680
28501
  exports.CompanyProfileComponent = CompanyProfileComponent;
28681
- exports.ConnectionContextProvider = ConnectionContextProvider;
28682
28502
  exports.CreditTransferComponent = CreditTransferComponent;
28683
28503
  exports.DevBGColor = DevBGColor;
28684
28504
  exports.DevColor = DevColor;
@@ -28721,8 +28541,6 @@ exports.RejectDocumentationConfirmationModel = RejectDocumentationConfirmationMo
28721
28541
  exports.RoleIcon = RoleIcon;
28722
28542
  exports.RootBGColor = RootBGColor;
28723
28543
  exports.RootColor = RootColor;
28724
- exports.SettingsContext = SettingsContext;
28725
- exports.SettingsContextProvider = SettingsContextProvider;
28726
28544
  exports.StasticCard = StasticCard;
28727
28545
  exports.SupportCreationComponent = SupportCreationComponent;
28728
28546
  exports.SupportManagementComponent = SupportManagementComponent;
@@ -28731,8 +28549,6 @@ exports.TooltipColor = TooltipColor;
28731
28549
  exports.TransferActionModel = TransferActionModel;
28732
28550
  exports.UnitField = UnitField;
28733
28551
  exports.User = User;
28734
- exports.UserContext = UserContext;
28735
- exports.UserInformationContextProvider = UserInformationContextProvider;
28736
28552
  exports.UserManagementComponent = UserManagementComponent;
28737
28553
  exports.UserProfileComponent = UserProfileComponent;
28738
28554
  exports.UserRoleIcon = UserRoleIcon;
@@ -28774,7 +28590,4 @@ exports.ndcActionTypeList = ndcActionTypeList;
28774
28590
  exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;
28775
28591
  exports.sumArray = sumArray;
28776
28592
  exports.titleList = titleList;
28777
- exports.useConnection = useConnection;
28778
- exports.useSettingsContext = useSettingsContext;
28779
- exports.useUserContext = useUserContext;
28780
28593
  //# sourceMappingURL=index.js.map