@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.
- package/dist/cjs/index.js +179 -366
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
- package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
- package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
- package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
- package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
- package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
- package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/index.js +181 -360
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
- package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
- package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
- package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
- package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
- package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
- package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/index.d.ts +9 -21
- package/dist/locales/i18n/company/en.json +2 -1
- package/dist/locales/i18n/companyProfile/en.json +2 -1
- package/package.json +2 -29
- package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
- package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
- package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
- package/dist/cjs/types/Context/index.d.ts +0 -3
- package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
- package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
- package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
- package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
- package/dist/esm/types/Context/index.d.ts +0 -3
- package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
package/dist/esm/index.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
|
2
2
|
import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, InputNumber, Tooltip, Select, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, Popover, List, Typography, Spin, Tabs, Progress } from 'antd';
|
3
|
-
import React, { useState, useEffect,
|
3
|
+
import React, { useState, useEffect, useRef, useContext } from 'react';
|
4
4
|
import { DateTime } from 'luxon';
|
5
5
|
import { Buffer } from 'buffer';
|
6
6
|
import PhoneInput, { formatPhoneNumberIntl, formatPhoneNumber } from 'react-phone-number-input';
|
7
7
|
import validator from 'validator';
|
8
|
-
import axios from 'axios';
|
9
8
|
import { plainToClass } from 'class-transformer';
|
10
9
|
import * as Icon from 'react-bootstrap-icons';
|
11
10
|
import { InfoCircle, Lock, PersonDash, PlayCircle, PauseCircle, CircleFill, Clipboard2Pulse, HandThumbsUp, XCircle, ClockHistory, BoxArrowInRight, ShieldX, BoxArrowRight, ShieldCheck, Gem, ShieldExclamation } from 'react-bootstrap-icons';
|
@@ -835,10 +834,10 @@ var CompanyManagementComponent = function (props) {
|
|
835
834
|
} })))))));
|
836
835
|
};
|
837
836
|
|
838
|
-
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";
|
837
|
+
var css_248z$s = ".company-details-form-container {\n width: 100%; }\n .company-details-form-container .company-details-form .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .company-details-form-container .company-details-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .company-details-form-container .company-details-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .company-details-form-container .company-details-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .logo-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload {\n width: 20%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .company-details-form-container .company-details-form .row .details-part-one .space-container {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #519e4f !important;\n border-color: #519e4f !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffa070 !important;\n border-color: #ffa070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #9155fd !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container {\n width: 45%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #16b1ff !important;\n border-color: #16b1ff !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container {\n width: 25%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #707070 !important;\n border-color: #707070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier .ant-radio-button-checked {\n background: rgba(128, 255, 0, 0.12);\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev .ant-radio-button-checked {\n background: rgba(254, 241, 173, 0.5);\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov .ant-radio-button-checked {\n background: rgba(185, 226, 244, 0.56);\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister .ant-radio-button-checked {\n background: rgba(198, 144, 251, 0.12);\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer .ant-radio-button-checked {\n background: rgba(176, 190, 197, 0.23);\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n .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";
|
839
838
|
styleInject(css_248z$s);
|
840
839
|
|
841
|
-
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";
|
840
|
+
var css_248z$r = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n\n.ant-menu {\n background-color: #f4f5fa; }\n\n.ant-layout-header {\n background-color: #f4f5fa; }\n\n.ant-layout {\n background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n\n.ant-menu-item {\n background-color: #f4f5fa; }\n\n.ant-menu-sub {\n background-color: #f4f5fa; }\n\n.ant-table-content {\n font-family: \"Inter\"; }\n\n.ant-input {\n border-radius: 5px !important; }\n\n.ant-btn {\n border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n width: 99% !important; }\n\n.ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n background-color: transparent !important; }\n\n.ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n margin-left: 0.2rem !important;\n color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n\n.space-container {\n width: 100%; }\n .space-container .ant-space-item {\n width: 100%; }\n\n.PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border: 1px solid #d9d9d9 !important;\n outline: none; }\n\n.filter-title {\n color: rgba(58, 53, 65, 0.8);\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border-right: 1px solid #40a9ff !important;\n outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n padding-bottom: 100px; }\n .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n .layout-content-container .ant-btn {\n height: 32px;\n font-weight: 500;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n min-width: 80px;\n box-shadow: none; }\n .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n\n.content-container {\n padding: 0px 20px; }\n .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n\n.content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n .content-card .action-bar button {\n width: fit-content; }\n .content-card .filter-section {\n padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: end; }\n .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n min-width: 50px !important; }\n\n.table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n\n.action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n .action-menu .anticon-edit {\n color: #16b1ff; }\n .action-menu .anticon-delete {\n color: #f25a29; }\n\n.ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n\n.ant-tag {\n border-radius: 20px; }\n\n.clickable {\n cursor: pointer; }\n\n.text-center {\n text-align: center; }\n\n.float-left {\n float: left; }\n\n.float-right {\n float: right; }\n\n.apexcharts-canvas {\n font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n\n.ant-tag {\n padding: 1px 10px; }\n\n.flex-display {\n display: flex; }\n\n.ant-modal-footer {\n border-top: none;\n text-align: center; }\n .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n\n.ant-modal-header {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-content {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-header {\n border: none; }\n\n.ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n .ant-modal-body .form-label {\n text-align: left; }\n .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n\n.popup-header {\n text-align: center;\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n font-family: \"Inter\";\n font-size: 0.9rem;\n margin: 25px 20px -20px 20px; }\n .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n .popup-header img {\n height: 100px; }\n\n.popup-success .icon {\n color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-primary .icon {\n color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n background: rgba(255, 77, 79, 0.8);\n border-radius: rgba(255, 77, 79, 0.8);\n border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n color: rgba(140, 140, 140, 0.7) !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n\n.pull-right {\n float: right; }\n\n.disabled {\n opacity: 0.5; }\n\n.mg-left-3 {\n margin-left: 3rem; }\n\n.mg-left-2 {\n margin-left: 2rem !important; }\n\n.mg-left-1 {\n margin-left: 1rem; }\n\n.mg-top-1 {\n margin-top: 1rem; }\n\n.mg-top-2 {\n margin-top: 2rem; }\n\n.mg-bottom-1 {\n margin-bottom: 1rem !important; }\n\n.transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n .transfer-form .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 20px;\n align-items: center;\n justify-content: start;\n margin-left: 5px; }\n .transfer-form .ant-row {\n align-items: unset; }\n .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n .transfer-form label {\n font-size: 0.8rem; }\n .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n\n.color-error {\n color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n color: #16b1ff; }\n\n.ant-input-number-input {\n text-align: right; }\n\n.text-left {\n text-align: left; }\n\n.ant-form-item .ant-radio-group {\n text-align: left; }\n\n.loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n\n.ant-tag-purple {\n color: #976ed7; }\n\n.ant-tag-orange {\n color: #ff8f56; }\n\n.ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n border-radius: 4px; }\n\n.ant-input-number {\n border-radius: 5px; }\n\n.ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n\n.flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n\n.b-icon {\n vertical-align: middle; }\n\n.ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n .ant-message-notice-content .ant-message-error {\n color: rgba(255, 77, 79, 0.8);\n border: 1px solid rgba(255, 77, 79, 0.8); }\n .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n\n.search-filter {\n margin-right: 15px; }\n\n.mg-bottom-0 {\n margin-bottom: 0px; }\n\n.padding-bottom-0 {\n padding-bottom: 0px; }\n\n.ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n overflow-wrap: break-word; }\n\n.ant-message {\n width: 50%;\n right: 0px;\n left: auto;\n min-width: 400px; }\n";
|
842
841
|
styleInject(css_248z$r);
|
843
842
|
|
844
843
|
var UserManagementColumns;
|
@@ -5733,311 +5732,9 @@ var ProgrammeCertify = /** @class */ (function () {
|
|
5733
5732
|
return ProgrammeCertify;
|
5734
5733
|
}());
|
5735
5734
|
|
5736
|
-
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";
|
5737
|
-
|
5738
|
-
var ConnectionContext = createContext({});
|
5739
|
-
var ConnectionContextProvider = function (props) {
|
5740
|
-
var _a = useState(), token = _a[0], setToken = _a[1];
|
5741
|
-
var serverURL = props.serverURL, t = props.t, children = props.children;
|
5742
|
-
useEffect(function () {
|
5743
|
-
var timer = setInterval(function () { return __awaiter(void 0, void 0, void 0, function () {
|
5744
|
-
var newToken;
|
5745
|
-
return __generator(this, function (_a) {
|
5746
|
-
switch (_a.label) {
|
5747
|
-
case 0: return [4 /*yield*/, localStorage.getItem('token')];
|
5748
|
-
case 1:
|
5749
|
-
newToken = _a.sent();
|
5750
|
-
if (token !== newToken) {
|
5751
|
-
setToken(newToken);
|
5752
|
-
}
|
5753
|
-
return [2 /*return*/];
|
5754
|
-
}
|
5755
|
-
});
|
5756
|
-
}); }, 3000);
|
5757
|
-
if (token) {
|
5758
|
-
clearTimeout(timer);
|
5759
|
-
}
|
5760
|
-
return function () {
|
5761
|
-
clearTimeout(timer);
|
5762
|
-
};
|
5763
|
-
}, [token]);
|
5764
|
-
var send = useCallback(function (method, path, data, config, extraUrl) {
|
5765
|
-
return new Promise(function (resolve, reject) {
|
5766
|
-
var url = "".concat(extraUrl ? extraUrl : serverURL, "/").concat(path);
|
5767
|
-
var headers;
|
5768
|
-
if (token) {
|
5769
|
-
headers = { authorization: "Bearer ".concat(token.toString()) };
|
5770
|
-
}
|
5771
|
-
else {
|
5772
|
-
localStorage.getItem('token');
|
5773
|
-
headers = {
|
5774
|
-
authorization: "Bearer ".concat(localStorage.getItem('token')),
|
5775
|
-
};
|
5776
|
-
}
|
5777
|
-
axios(__assign({ method: method, url: url, data: data, headers: headers }, config))
|
5778
|
-
.then(function (response) {
|
5779
|
-
var _a, _b, _c;
|
5780
|
-
if (response.status) {
|
5781
|
-
if (response.status === 200 || response.status === 201) {
|
5782
|
-
resolve({
|
5783
|
-
status: response.status,
|
5784
|
-
data: (_a = response.data.data) !== null && _a !== void 0 ? _a : response.data,
|
5785
|
-
response: response,
|
5786
|
-
statusText: 'SUCCESS',
|
5787
|
-
message: response.data.message,
|
5788
|
-
});
|
5789
|
-
}
|
5790
|
-
else if (response.status === 422) {
|
5791
|
-
reject({
|
5792
|
-
status: response.status,
|
5793
|
-
data: (_b = response.data) === null || _b === void 0 ? void 0 : _b.data,
|
5794
|
-
statusText: 'ERROR',
|
5795
|
-
response: response,
|
5796
|
-
message: response.data.message,
|
5797
|
-
errors: (_c = response.data) === null || _c === void 0 ? void 0 : _c.errors,
|
5798
|
-
});
|
5799
|
-
}
|
5800
|
-
}
|
5801
|
-
else {
|
5802
|
-
reject({
|
5803
|
-
status: 500,
|
5804
|
-
statusText: 'UNKNOWN',
|
5805
|
-
message: t('common:systemError'),
|
5806
|
-
});
|
5807
|
-
}
|
5808
|
-
})
|
5809
|
-
.catch(function (e) {
|
5810
|
-
var _a;
|
5811
|
-
if (e.response) {
|
5812
|
-
if (e.response.status) {
|
5813
|
-
if (e.response.data.message === 'jwt expired') {
|
5814
|
-
localStorage.removeItem('token');
|
5815
|
-
window.location.reload();
|
5816
|
-
}
|
5817
|
-
reject({
|
5818
|
-
status: e.response.status,
|
5819
|
-
statusText: 'ERROR',
|
5820
|
-
errors: (_a = e.response.data) === null || _a === void 0 ? void 0 : _a.errors,
|
5821
|
-
message: e.response.data.message,
|
5822
|
-
});
|
5823
|
-
}
|
5824
|
-
else {
|
5825
|
-
reject({
|
5826
|
-
statusText: 'ERROR',
|
5827
|
-
message: t('common:systemError'),
|
5828
|
-
});
|
5829
|
-
}
|
5830
|
-
}
|
5831
|
-
else {
|
5832
|
-
reject({
|
5833
|
-
statusText: 'ERROR',
|
5834
|
-
message: t('common:networkError'),
|
5835
|
-
});
|
5836
|
-
}
|
5837
|
-
});
|
5838
|
-
});
|
5839
|
-
}, [token, serverURL]);
|
5840
|
-
var post = useCallback(function (path, data, config, extraUrl) {
|
5841
|
-
return send('post', path, data, config, extraUrl);
|
5842
|
-
}, [send]);
|
5843
|
-
var put = useCallback(function (path, data, config) {
|
5844
|
-
return send('put', path, data, config);
|
5845
|
-
}, [send]);
|
5846
|
-
var get = useCallback(function (path, config) {
|
5847
|
-
return send('get', path, undefined, config);
|
5848
|
-
}, [send]);
|
5849
|
-
var patch = useCallback(function (path, data, config) {
|
5850
|
-
return send('patch', path, data, config);
|
5851
|
-
}, [send]);
|
5852
|
-
var del = useCallback(function (path, config) {
|
5853
|
-
return send('delete', path, config);
|
5854
|
-
}, [send]);
|
5855
|
-
var updateToken = useCallback(function (newToken) { return __awaiter(void 0, void 0, void 0, function () {
|
5856
|
-
return __generator(this, function (_a) {
|
5857
|
-
if (newToken) {
|
5858
|
-
localStorage.setItem('token', newToken);
|
5859
|
-
setToken(newToken);
|
5860
|
-
}
|
5861
|
-
else {
|
5862
|
-
localStorage.setItem('token', '');
|
5863
|
-
setToken(undefined);
|
5864
|
-
}
|
5865
|
-
return [2 /*return*/];
|
5866
|
-
});
|
5867
|
-
}); }, []);
|
5868
|
-
var removeToken = function (tkn) {
|
5869
|
-
if (tkn) {
|
5870
|
-
var exp = o(tkn).exp;
|
5871
|
-
if (Date.now() > exp * 1000) {
|
5872
|
-
localStorage.setItem('token', '');
|
5873
|
-
localStorage.removeItem('userRole');
|
5874
|
-
localStorage.removeItem('userId');
|
5875
|
-
localStorage.removeItem('companyId');
|
5876
|
-
localStorage.removeItem('companyRole');
|
5877
|
-
}
|
5878
|
-
else {
|
5879
|
-
var diff = exp * 1000 - Date.now();
|
5880
|
-
setTimeout(function () {
|
5881
|
-
setToken(undefined);
|
5882
|
-
localStorage.setItem('token', '');
|
5883
|
-
localStorage.removeItem('userRole');
|
5884
|
-
localStorage.removeItem('userId');
|
5885
|
-
localStorage.removeItem('companyId');
|
5886
|
-
localStorage.removeItem('companyRole');
|
5887
|
-
}, diff);
|
5888
|
-
console.log(diff, 'Remaining Token expire time');
|
5889
|
-
}
|
5890
|
-
}
|
5891
|
-
};
|
5892
|
-
useEffect(function () {
|
5893
|
-
removeToken(token);
|
5894
|
-
}, [token]);
|
5895
|
-
return (React.createElement(ConnectionContext.Provider, { value: {
|
5896
|
-
connection: { post: post, put: put, get: get, patch: patch, delete: del, updateToken: updateToken, token: token, removeToken: removeToken },
|
5897
|
-
} }, children));
|
5898
|
-
};
|
5899
|
-
var useConnection = function () {
|
5900
|
-
var context = useContext(ConnectionContext);
|
5901
|
-
return context.connection;
|
5902
|
-
};
|
5903
|
-
|
5904
|
-
var UserContext = createContext({
|
5905
|
-
setUserInfo: function () { },
|
5906
|
-
removeUserInfo: function () { },
|
5907
|
-
IsAuthenticated: function (tkn) { return false; },
|
5908
|
-
isTokenExpired: false,
|
5909
|
-
setIsTokenExpired: function (val) { },
|
5910
|
-
});
|
5911
|
-
var UserInformationContextProvider = function (_a) {
|
5912
|
-
var children = _a.children;
|
5913
|
-
var token = useConnection().token;
|
5914
|
-
var _b = useState(false), isTokenExpired = _b[0], setIsTokenExpired = _b[1];
|
5915
|
-
var initialUserProps = {
|
5916
|
-
id: localStorage.getItem('userId') ? localStorage.getItem('userId') : '',
|
5917
|
-
userRole: localStorage.getItem('userRole') ? localStorage.getItem('userRole') : '',
|
5918
|
-
companyRole: localStorage.getItem('companyRole')
|
5919
|
-
? localStorage.getItem('companyRole')
|
5920
|
-
: '',
|
5921
|
-
companyId: localStorage.getItem('companyId')
|
5922
|
-
? parseInt(localStorage.getItem('companyId'))
|
5923
|
-
: -1,
|
5924
|
-
companyLogo: localStorage.getItem('companyLogo')
|
5925
|
-
? localStorage.getItem('companyLogo')
|
5926
|
-
: '',
|
5927
|
-
companyName: localStorage.getItem('companyName')
|
5928
|
-
? localStorage.getItem('companyName')
|
5929
|
-
: '',
|
5930
|
-
companyState: localStorage.getItem('companyState')
|
5931
|
-
? parseInt(localStorage.getItem('companyState'))
|
5932
|
-
: 0,
|
5933
|
-
};
|
5934
|
-
var _c = useState(initialUserProps), userInfoState = _c[0], setUserInfoState = _c[1];
|
5935
|
-
var setUserInfo = function (value) {
|
5936
|
-
var state = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) === 1 ? userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState : 0;
|
5937
|
-
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;
|
5938
|
-
if (id) {
|
5939
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { id: id })); });
|
5940
|
-
localStorage.setItem('userId', id);
|
5941
|
-
}
|
5942
|
-
if (userRole) {
|
5943
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { userRole: userRole })); });
|
5944
|
-
localStorage.setItem('userRole', userRole);
|
5945
|
-
}
|
5946
|
-
if (companyId) {
|
5947
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyId: companyId })); });
|
5948
|
-
localStorage.setItem('companyId', companyId + '');
|
5949
|
-
}
|
5950
|
-
if (companyLogo) {
|
5951
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: companyLogo })); });
|
5952
|
-
localStorage.setItem('companyLogo', companyLogo);
|
5953
|
-
}
|
5954
|
-
else {
|
5955
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: '' })); });
|
5956
|
-
localStorage.setItem('companyLogo', '');
|
5957
|
-
}
|
5958
|
-
if (companyName) {
|
5959
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyName: companyName })); });
|
5960
|
-
localStorage.setItem('companyName', companyName);
|
5961
|
-
}
|
5962
|
-
if (userRole) {
|
5963
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyRole: companyRole })); });
|
5964
|
-
localStorage.setItem('companyRole', companyRole);
|
5965
|
-
}
|
5966
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyState: companyState })); });
|
5967
|
-
localStorage.setItem('companyState', companyState + '');
|
5968
|
-
};
|
5969
|
-
var IsAuthenticated = useCallback(function (tokenNew) {
|
5970
|
-
var tokenVal;
|
5971
|
-
if (tokenNew) {
|
5972
|
-
tokenVal = tokenNew;
|
5973
|
-
}
|
5974
|
-
else if (token) {
|
5975
|
-
tokenVal = token;
|
5976
|
-
}
|
5977
|
-
else {
|
5978
|
-
tokenVal = localStorage.getItem('token');
|
5979
|
-
if (tokenVal === '') {
|
5980
|
-
if (history.length !== 1) {
|
5981
|
-
setIsTokenExpired(true);
|
5982
|
-
}
|
5983
|
-
}
|
5984
|
-
}
|
5985
|
-
try {
|
5986
|
-
if (tokenVal) {
|
5987
|
-
var exp = o(tokenVal).exp;
|
5988
|
-
return Date.now() < exp * 1000;
|
5989
|
-
}
|
5990
|
-
return false;
|
5991
|
-
}
|
5992
|
-
catch (err) {
|
5993
|
-
return false;
|
5994
|
-
}
|
5995
|
-
}, [token]);
|
5996
|
-
var removeUserInfo = function () {
|
5997
|
-
localStorage.removeItem('userId');
|
5998
|
-
localStorage.removeItem('userRole');
|
5999
|
-
localStorage.removeItem('companyId');
|
6000
|
-
localStorage.removeItem('companyRole');
|
6001
|
-
localStorage.removeItem('companyName');
|
6002
|
-
localStorage.removeItem('companyState');
|
6003
|
-
localStorage.removeItem('companyLogo');
|
6004
|
-
setUserInfoState(initialUserProps);
|
6005
|
-
};
|
6006
|
-
return (React.createElement(UserContext.Provider, { value: {
|
6007
|
-
userInfoState: userInfoState,
|
6008
|
-
setUserInfo: setUserInfo,
|
6009
|
-
removeUserInfo: removeUserInfo,
|
6010
|
-
IsAuthenticated: IsAuthenticated,
|
6011
|
-
isTokenExpired: isTokenExpired,
|
6012
|
-
setIsTokenExpired: setIsTokenExpired,
|
6013
|
-
} }, children));
|
6014
|
-
};
|
6015
|
-
var useUserContext = function () {
|
6016
|
-
return useContext(UserContext);
|
6017
|
-
};
|
6018
|
-
|
6019
|
-
var SettingsContext = createContext({
|
6020
|
-
isTransferFrozen: false,
|
6021
|
-
setTransferFrozen: function (value) { },
|
6022
|
-
});
|
6023
|
-
var SettingsContextProvider = function (_a) {
|
6024
|
-
var children = _a.children;
|
6025
|
-
var _b = useState(false), isTransferFrozen = _b[0], setIsTransferFrozen = _b[1];
|
6026
|
-
var setTransferFrozen = function (value) {
|
6027
|
-
setIsTransferFrozen(value);
|
6028
|
-
};
|
6029
|
-
return (React.createElement(SettingsContext.Provider, { value: {
|
6030
|
-
isTransferFrozen: isTransferFrozen,
|
6031
|
-
setTransferFrozen: setTransferFrozen,
|
6032
|
-
} }, children));
|
6033
|
-
};
|
6034
|
-
var useSettingsContext = function () {
|
6035
|
-
return useContext(SettingsContext);
|
6036
|
-
};
|
6037
|
-
|
6038
5735
|
var AddNewCompanyComponent = function (props) {
|
6039
5736
|
var _a;
|
6040
|
-
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;
|
5737
|
+
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;
|
6041
5738
|
var formOne = Form.useForm()[0];
|
6042
5739
|
var formTwo = Form.useForm()[0];
|
6043
5740
|
var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
@@ -6230,16 +5927,16 @@ var AddNewCompanyComponent = function (props) {
|
|
6230
5927
|
}); };
|
6231
5928
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6232
5929
|
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
6233
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
6234
|
-
return __generator(this, function (
|
6235
|
-
switch (
|
5930
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
5931
|
+
return __generator(this, function (_l) {
|
5932
|
+
switch (_l.label) {
|
6236
5933
|
case 0:
|
6237
5934
|
setLoading(true);
|
6238
5935
|
formOneValues = formOne.getFieldsValue();
|
6239
5936
|
formOneValues.phoneNo = formatPhoneNumberIntl(formOneValues.phoneNo);
|
6240
|
-
|
5937
|
+
_l.label = 1;
|
6241
5938
|
case 1:
|
6242
|
-
|
5939
|
+
_l.trys.push([1, 5, , 6]);
|
6243
5940
|
values = {};
|
6244
5941
|
if (regionField) {
|
6245
5942
|
values = {
|
@@ -6272,6 +5969,9 @@ var AddNewCompanyComponent = function (props) {
|
|
6272
5969
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
6273
5970
|
}
|
6274
5971
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
5972
|
+
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
5973
|
+
}
|
5974
|
+
if (((_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.companyRole) === CompanyRole.GOVERNMENT) {
|
6275
5975
|
values.nationalSopValue = Math.floor(Number(formOneValues.nationalSopValue));
|
6276
5976
|
}
|
6277
5977
|
if (formOneValues.website) {
|
@@ -6282,15 +5982,15 @@ var AddNewCompanyComponent = function (props) {
|
|
6282
5982
|
}
|
6283
5983
|
if (!formOneValues.logo) return [3 /*break*/, 3];
|
6284
5984
|
if (!(formOneValues.logo.length !== 0)) return [3 /*break*/, 3];
|
6285
|
-
return [4 /*yield*/, getBase64((
|
5985
|
+
return [4 /*yield*/, getBase64((_k = formOneValues.logo[0]) === null || _k === void 0 ? void 0 : _k.originFileObj)];
|
6286
5986
|
case 2:
|
6287
|
-
logoBase64 =
|
5987
|
+
logoBase64 = _l.sent();
|
6288
5988
|
logoUrls = logoBase64.split(",");
|
6289
5989
|
values.logo = logoUrls[1];
|
6290
|
-
|
5990
|
+
_l.label = 3;
|
6291
5991
|
case 3: return [4 /*yield*/, put("national/organisation/update", values)];
|
6292
5992
|
case 4:
|
6293
|
-
response =
|
5993
|
+
response = _l.sent();
|
6294
5994
|
if (response.status === 200 || response.status === 201) {
|
6295
5995
|
setUserInfo({
|
6296
5996
|
companyLogo: response.data.logo,
|
@@ -6306,7 +6006,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6306
6006
|
setLoading(false);
|
6307
6007
|
return [3 /*break*/, 6];
|
6308
6008
|
case 5:
|
6309
|
-
error_3 =
|
6009
|
+
error_3 = _l.sent();
|
6310
6010
|
message.open({
|
6311
6011
|
type: "error",
|
6312
6012
|
content: "".concat(t("errorInUpdatingCompany"), " ").concat(error_3.message),
|
@@ -6327,7 +6027,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6327
6027
|
setCompanyRole(value);
|
6328
6028
|
};
|
6329
6029
|
var CompanyDetailsForm = function () {
|
6330
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
6030
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
6331
6031
|
var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
|
6332
6032
|
? "certifier"
|
6333
6033
|
: companyRole === CompanyRole.PROGRAMME_DEVELOPER
|
@@ -6569,13 +6269,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6569
6269
|
width: "45%",
|
6570
6270
|
marginLeft: isGuest ? "30px" : 0,
|
6571
6271
|
}
|
6572
|
-
: { marginLeft: isGuest ? "30px" : 0
|
6272
|
+
: { marginLeft: isGuest ? "30px" : 0 } },
|
6573
6273
|
React.createElement(Tooltip, { placement: "top", title: "Permitted to own programmes and transfer carbon credits" },
|
6574
6274
|
React.createElement(Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
|
6575
6275
|
React.createElement(ExperimentOutlined, { className: "role-icons" }),
|
6576
6276
|
"Developer"))),
|
6577
|
-
(
|
6578
|
-
CompanyRole.MINISTRY
|
6277
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
|
6278
|
+
CompanyRole.MINISTRY &&
|
6279
|
+
!isGuest && (React.createElement("div", { className: "minister-radio-container" },
|
6579
6280
|
React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
|
6580
6281
|
React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
|
6581
6282
|
React.createElement(AuditOutlined, { className: "role-icons" }),
|
@@ -6664,7 +6365,30 @@ var AddNewCompanyComponent = function (props) {
|
|
6664
6365
|
}); },
|
6665
6366
|
},
|
6666
6367
|
] },
|
6667
|
-
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 })))
|
6368
|
+
React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6369
|
+
companyRole === CompanyRole.GOVERNMENT &&
|
6370
|
+
systemType !== CarbonSystemType.MRV && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6371
|
+
React.createElement(Space, { wrap: true, style: {
|
6372
|
+
display: "flex",
|
6373
|
+
marginBottom: 8,
|
6374
|
+
}, align: "center", size: "large" },
|
6375
|
+
React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
|
6376
|
+
{ required: true, message: "" },
|
6377
|
+
{
|
6378
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6379
|
+
return __generator(this, function (_a) {
|
6380
|
+
if (String(value).trim() === "" ||
|
6381
|
+
String(value).trim() === undefined ||
|
6382
|
+
value === null ||
|
6383
|
+
value === undefined) {
|
6384
|
+
throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
|
6385
|
+
}
|
6386
|
+
return [2 /*return*/];
|
6387
|
+
});
|
6388
|
+
}); },
|
6389
|
+
},
|
6390
|
+
] },
|
6391
|
+
React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
|
6668
6392
|
React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(Row, null,
|
6669
6393
|
React.createElement(Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
|
6670
6394
|
React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
|
@@ -6799,7 +6523,7 @@ var css_248z$q = ".company-profile {\n padding: 0px 50px; }\n .company-profile
|
|
6799
6523
|
styleInject(css_248z$q);
|
6800
6524
|
|
6801
6525
|
var CompanyProfileComponent = function (props) {
|
6802
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField;
|
6526
|
+
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;
|
6803
6527
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6804
6528
|
var _b = useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6805
6529
|
var _c = useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -7192,6 +6916,13 @@ var CompanyProfileComponent = function (props) {
|
|
7192
6916
|
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.remarks
|
7193
6917
|
? companyDetails.remarks
|
7194
6918
|
: "-"))) : (""),
|
6919
|
+
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT &&
|
6920
|
+
systemType !== CarbonSystemType.MRV && (React.createElement(React.Fragment, null,
|
6921
|
+
React.createElement(Row, { className: "field" },
|
6922
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:omgePercentage")),
|
6923
|
+
React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.omgePercentage
|
6924
|
+
? companyDetails.omgePercentage
|
6925
|
+
: "-")))),
|
7195
6926
|
(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.companyRole) === CompanyRole.GOVERNMENT && (React.createElement(React.Fragment, null,
|
7196
6927
|
React.createElement(Row, { className: "field" },
|
7197
6928
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:nationalSopValue")),
|
@@ -7213,9 +6944,7 @@ var CompanyProfileComponent = function (props) {
|
|
7213
6944
|
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.email) ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.email : "-")),
|
7214
6945
|
React.createElement(Row, { className: "field" },
|
7215
6946
|
React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:adminPhone")),
|
7216
|
-
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo)
|
7217
|
-
? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo
|
7218
|
-
: "-"))))))))),
|
6947
|
+
React.createElement(Col, { span: 12, className: "field-value" }, (userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo) ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.phoneNo : "-"))))))))),
|
7219
6948
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onDeauthoriseOrgConfirmed, onActionCanceled: onDeauthoriseOrgCanceled, openModal: openDeauthorisationModal, errorMsg: errorMsg, loading: isLoading }),
|
7220
6949
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onReactivateOrgConfirmed, onActionCanceled: onReactivateOrgCanceled, openModal: openReactivateModal, errorMsg: errorMsg, loading: isLoading }),
|
7221
6950
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onApproveOrgConfirmed, onActionCanceled: onApproveOrgCanceled, openModal: openApproveModal, errorMsg: errorMsg, loading: isLoading }),
|
@@ -7227,7 +6956,7 @@ styleInject(css_248z$p);
|
|
7227
6956
|
|
7228
6957
|
var Search$1 = Input.Search;
|
7229
6958
|
var ProgrammeManagementComponent = function (props) {
|
7230
|
-
var t = props.t, visibleColumns = props.visibleColumns, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
|
6959
|
+
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;
|
7231
6960
|
var _a = useConnection(); _a.get; _a.delete; var post = _a.post;
|
7232
6961
|
var _b = useState(), totalProgramme = _b[0], setTotalProgramme = _b[1];
|
7233
6962
|
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -7612,7 +7341,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7612
7341
|
React.createElement("div", { className: "filter-section" },
|
7613
7342
|
React.createElement("div", { className: "search-filter" },
|
7614
7343
|
React.createElement(Checkbox, { className: "label", onChange: function (v) {
|
7615
|
-
if (
|
7344
|
+
if (userInfoState.companyRole === CompanyRole.MINISTRY) {
|
7616
7345
|
if (v.target.checked) {
|
7617
7346
|
setMinistryLevelFilter(true);
|
7618
7347
|
}
|
@@ -7629,7 +7358,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7629
7358
|
}
|
7630
7359
|
: undefined);
|
7631
7360
|
}
|
7632
|
-
} },
|
7361
|
+
} }, userInfoState.companyRole === CompanyRole.MINISTRY
|
7633
7362
|
? t("view:ministryLevel")
|
7634
7363
|
: t("view:seeMine"))),
|
7635
7364
|
React.createElement("div", { className: "search-bar" },
|
@@ -13410,7 +13139,7 @@ var sectoralScopes = {
|
|
13410
13139
|
};
|
13411
13140
|
var ProgrammeCreationComponent = function (props) {
|
13412
13141
|
var _a, _b, _c;
|
13413
|
-
var useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13142
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13414
13143
|
var t = translator.t;
|
13415
13144
|
var state = useLocation().state;
|
13416
13145
|
var formOne = Form.useForm()[0];
|
@@ -14475,7 +14204,7 @@ var ChangePasswordModel = function (props) {
|
|
14475
14204
|
|
14476
14205
|
var AddNewUserComponent = function (props) {
|
14477
14206
|
var _a, _b, _c, _d, _e, _f;
|
14478
|
-
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
|
14207
|
+
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;
|
14479
14208
|
var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete, get = _g.get;
|
14480
14209
|
var formOne = Form.useForm()[0];
|
14481
14210
|
var state = useLocation().state;
|
@@ -14893,7 +14622,7 @@ var LanguageSelection = function (props) {
|
|
14893
14622
|
};
|
14894
14623
|
|
14895
14624
|
var UserProfileComponent = function (props) {
|
14896
|
-
var t = props.t, i18n = props.i18n, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin;
|
14625
|
+
var t = props.t, i18n = props.i18n, useConnection = props.useConnection, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin, useUserContext = props.useUserContext;
|
14897
14626
|
var get = useConnection().get;
|
14898
14627
|
var _a = useState(undefined), organisationDetails = _a[0], setOrganisationDetails = _a[1];
|
14899
14628
|
var _b = useState(undefined), userDetails = _b[0], setUserDetails = _b[1];
|
@@ -15061,7 +14790,7 @@ styleInject(css_248z$k);
|
|
15061
14790
|
|
15062
14791
|
var Search = Input.Search;
|
15063
14792
|
var UserManagementComponent = function (props) {
|
15064
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser;
|
14793
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useConnection = props.useConnection, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser, userInfoState = props.userInfoState;
|
15065
14794
|
Form.useForm()[0];
|
15066
14795
|
var _a = useConnection(), post = _a.post, del = _a.delete;
|
15067
14796
|
var _b = useState(), totalUser = _b[0], setTotalUser = _b[1];
|
@@ -15083,7 +14812,6 @@ var UserManagementComponent = function (props) {
|
|
15083
14812
|
var _s = useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
|
15084
14813
|
var _t = useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
15085
14814
|
var ability = useAbilityContext();
|
15086
|
-
var userInfoState = useUserContext().userInfoState;
|
15087
14815
|
document.addEventListener("mousedown", function (event) {
|
15088
14816
|
var userFilterArea1 = document.querySelector(".filter-bar");
|
15089
14817
|
var userFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -15604,7 +15332,7 @@ var Loading = function () {
|
|
15604
15332
|
};
|
15605
15333
|
|
15606
15334
|
var InvestmentCreationComponent = function (props) {
|
15607
|
-
var t = props.t, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15335
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15608
15336
|
var state = useLocation().state;
|
15609
15337
|
var _a = useState(), data = _a[0], setData = _a[1];
|
15610
15338
|
var formOne = Form.useForm()[0];
|
@@ -15619,7 +15347,6 @@ var InvestmentCreationComponent = function (props) {
|
|
15619
15347
|
var _h = useState([]), instrument = _h[0], setInstrument = _h[1];
|
15620
15348
|
var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
15621
15349
|
var _k = useState(), govData = _k[0], setGovData = _k[1];
|
15622
|
-
var userInfoState = useUserContext().userInfoState;
|
15623
15350
|
var instrumentOptions = Object.keys(Instrument).map(function (k, index) { return ({
|
15624
15351
|
label: addSpaces(Object.values(Instrument)[index]),
|
15625
15352
|
value: Object.values(Instrument)[index],
|
@@ -16236,7 +15963,7 @@ var InvestmentActionModel = function (props) {
|
|
16236
15963
|
};
|
16237
15964
|
|
16238
15965
|
var InvestmentManagementComponent = function (props) {
|
16239
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
15966
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16240
15967
|
var t = translator.t;
|
16241
15968
|
var statusOptions = Object.keys(InvestmentStatus).map(function (k, index) { return ({
|
16242
15969
|
label: addSpaces(Object.values(InvestmentStatus)[index]),
|
@@ -16769,7 +16496,7 @@ var css_248z$i = ".steps-actions {\n display: flex;\n flex-direction: row-reve
|
|
16769
16496
|
styleInject(css_248z$i);
|
16770
16497
|
|
16771
16498
|
var SupportCreationComponent = function (props) {
|
16772
|
-
var t = props.t, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16499
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16773
16500
|
useLocation().state;
|
16774
16501
|
var _a = useState(); _a[0]; _a[1];
|
16775
16502
|
var formOne = Form.useForm()[0];
|
@@ -17124,7 +16851,7 @@ var SupportCreationComponent = function (props) {
|
|
17124
16851
|
};
|
17125
16852
|
|
17126
16853
|
var SupportManagementComponent = function (props) {
|
17127
|
-
var translator = props.translator; props.onNavigateToProgrammeView; var enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
16854
|
+
var translator = props.translator, useConnection = props.useConnection; props.onNavigateToProgrammeView; var useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
17128
16855
|
var t = translator.t;
|
17129
16856
|
var statusOptions = Object.keys(InvestmentStatus).map(function (k, index) { return ({
|
17130
16857
|
label: addSpaces(Object.values(InvestmentStatus)[index]),
|
@@ -17626,7 +17353,7 @@ var css_248z$h = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[valu
|
|
17626
17353
|
styleInject(css_248z$h);
|
17627
17354
|
|
17628
17355
|
var NdcActionManagementComponent = function (props) {
|
17629
|
-
var t = props.t, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17356
|
+
var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17630
17357
|
var _a = useState(true), checkAll = _a[0], setCheckAll = _a[1];
|
17631
17358
|
var _b = useState([]), tableData = _b[0], setTableData = _b[1];
|
17632
17359
|
var _c = useState(), totalProgramme = _c[0], setTotalProgramme = _c[1];
|
@@ -18983,7 +18710,7 @@ var GenderParity = function (props) {
|
|
18983
18710
|
};
|
18984
18711
|
|
18985
18712
|
var Assessment = function (props) {
|
18986
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18713
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
|
18987
18714
|
translator.setDefaultNamespace("coBenifits");
|
18988
18715
|
var t = translator.t;
|
18989
18716
|
var form1 = Form.useForm()[0];
|
@@ -20904,7 +20631,7 @@ var Social = function (props) {
|
|
20904
20631
|
};
|
20905
20632
|
|
20906
20633
|
var CoBenifitsComponent = function (props) {
|
20907
|
-
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;
|
20634
|
+
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;
|
20908
20635
|
var _b = useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
20909
20636
|
var _c = useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
20910
20637
|
var _d = useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
@@ -20982,7 +20709,7 @@ var CoBenifitsComponent = function (props) {
|
|
20982
20709
|
label: t("coBenifits:assessment"),
|
20983
20710
|
key: "7",
|
20984
20711
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
20985
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, translator: translator })),
|
20712
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
|
20986
20713
|
},
|
20987
20714
|
];
|
20988
20715
|
var onCoBenefitSubmit = function () {
|
@@ -21145,7 +20872,7 @@ var CoBenifitsComponent = function (props) {
|
|
21145
20872
|
};
|
21146
20873
|
|
21147
20874
|
var AddNdcActionComponent = function (props) {
|
21148
|
-
var useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
20875
|
+
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21149
20876
|
translator.setDefaultNamespace("ndcAction");
|
21150
20877
|
var t = translator.t;
|
21151
20878
|
var _a = useState(1), current = _a[0], setCurrent = _a[1];
|
@@ -21289,7 +21016,7 @@ var AddNdcActionComponent = function (props) {
|
|
21289
21016
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
21290
21017
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
21291
21018
|
? t("ndcAction:next")
|
21292
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, translator: translator }))),
|
21019
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
|
21293
21020
|
},
|
21294
21021
|
];
|
21295
21022
|
if (isProjectReportsVisible()) {
|
@@ -21426,7 +21153,7 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
|
|
21426
21153
|
var NdcActionViewComponent = function (props) {
|
21427
21154
|
var _a;
|
21428
21155
|
var _b, _c;
|
21429
|
-
var useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
21156
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
21430
21157
|
translator.setDefaultNamespace("ndcAction");
|
21431
21158
|
var t = translator.t;
|
21432
21159
|
var userInfoState = useUserContext().userInfoState;
|
@@ -21919,7 +21646,7 @@ var NdcActionViewComponent = function (props) {
|
|
21919
21646
|
React.createElement(Card, { className: "card-container" },
|
21920
21647
|
React.createElement("div", { className: "co-benifits-view" },
|
21921
21648
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
21922
|
-
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 })))))))));
|
21649
|
+
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 })))))))));
|
21923
21650
|
};
|
21924
21651
|
|
21925
21652
|
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";
|
@@ -22013,6 +21740,30 @@ var TransferActionModel = function (props) {
|
|
22013
21740
|
React.createElement(Col, { lg: 6, md: 4 },
|
22014
21741
|
React.createElement(Form.Item, { className: "popup-credit-input" },
|
22015
21742
|
React.createElement(InputNumber, { placeholder: addCommSep(transfer.creditAmount), disabled: true })))),
|
21743
|
+
transfer.retirementType === RetireType.CROSS_BORDER && (React.createElement(Row, null,
|
21744
|
+
React.createElement(Col, { lg: 18, md: 20 },
|
21745
|
+
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
21746
|
+
React.createElement(Col, { lg: 6, md: 4 },
|
21747
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
21748
|
+
React.createElement(InputNumber, { placeholder: transfer.creditAmount
|
21749
|
+
? addCommSep(transfer.creditAmount -
|
21750
|
+
Number(((transfer.omgePercentage *
|
21751
|
+
transfer.creditAmount) /
|
21752
|
+
100).toFixed(2)))
|
21753
|
+
: "-", disabled: true }))))),
|
21754
|
+
transfer.retirementType === RetireType.CROSS_BORDER && (React.createElement(Row, null,
|
21755
|
+
React.createElement(Col, { lg: 18, md: 20, style: { display: "flex" } },
|
21756
|
+
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
21757
|
+
React.createElement("div", { className: "info-container" },
|
21758
|
+
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
21759
|
+
React.createElement(InfoCircle, { color: "#000000", size: 15 })))),
|
21760
|
+
React.createElement(Col, { lg: 6, md: 4 },
|
21761
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
21762
|
+
React.createElement(InputNumber, { placeholder: transfer.creditAmount
|
21763
|
+
? addCommSep(Number(((transfer.omgePercentage *
|
21764
|
+
transfer.creditAmount) /
|
21765
|
+
100).toFixed(2)))
|
21766
|
+
: "-", disabled: true }))))),
|
22016
21767
|
React.createElement(Row, null,
|
22017
21768
|
React.createElement(Col, { span: 24 },
|
22018
21769
|
React.createElement(Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|
@@ -22048,7 +21799,7 @@ var TransferActionModel = function (props) {
|
|
22048
21799
|
};
|
22049
21800
|
|
22050
21801
|
var CreditTransferComponent = function (props) {
|
22051
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
21802
|
+
var useConnection = props.useConnection, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22052
21803
|
var userInfoState = useUserContext().userInfoState;
|
22053
21804
|
var t = translator.t;
|
22054
21805
|
var statusOptions = Object.keys(CreditTransferStage).map(function (k, index) { return ({
|
@@ -22983,7 +22734,7 @@ var MapStatsComponent = function (props) {
|
|
22983
22734
|
|
22984
22735
|
var RangePicker$1 = DatePicker.RangePicker;
|
22985
22736
|
var MrvDashboardComponent = function (props) {
|
22986
|
-
var Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
22737
|
+
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;
|
22987
22738
|
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
22988
22739
|
var _c = useState({}), data = _c[0], setData = _c[1];
|
22989
22740
|
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
@@ -24727,7 +24478,7 @@ var RegistryBarChartsStatComponent = function (props) {
|
|
24727
24478
|
|
24728
24479
|
var RangePicker = DatePicker.RangePicker;
|
24729
24480
|
var RegistryDashboardComponent = function (props) {
|
24730
|
-
var Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
24481
|
+
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;
|
24731
24482
|
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
24732
24483
|
var userInfoState = useUserContext().userInfoState;
|
24733
24484
|
var _c = useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
|
@@ -26494,7 +26245,7 @@ var NdcActionType;
|
|
26494
26245
|
NdcActionType[NdcActionType["sub"] = 1] = "sub";
|
26495
26246
|
})(NdcActionType || (NdcActionType = {}));
|
26496
26247
|
var NdcDetailsComponent = function (props) {
|
26497
|
-
var t = props.t;
|
26248
|
+
var t = props.t; props.useConnection; var useUserContext = props.useUserContext;
|
26498
26249
|
var RangePicker = DatePicker.RangePicker;
|
26499
26250
|
var _a = useState([]), ndcDetailsData = _a[0], setNdcDetailsData = _a[1];
|
26500
26251
|
var _b = useState(false), loading = _b[0]; _b[1];
|
@@ -27214,7 +26965,7 @@ var ProgrammeIssueForm = function (props) {
|
|
27214
26965
|
};
|
27215
26966
|
|
27216
26967
|
var ProgrammeRetireForm = function (props) {
|
27217
|
-
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;
|
26968
|
+
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;
|
27218
26969
|
var t = translator.t;
|
27219
26970
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
27220
26971
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -27224,7 +26975,48 @@ var ProgrammeRetireForm = function (props) {
|
|
27224
26975
|
var _e = useState([]), countryList = _e[0], setCountryList = _e[1];
|
27225
26976
|
var _f = useState(); _f[0]; var setValue = _f[1];
|
27226
26977
|
var _g = useState(false), checked = _g[0], setChecked = _g[1];
|
27227
|
-
var _h =
|
26978
|
+
var _h = useState(), govData = _h[0], setGovData = _h[1];
|
26979
|
+
var _j = useConnection(); _j.get; _j.delete; var post = _j.post;
|
26980
|
+
var getGovernmentDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
26981
|
+
var response, error_1;
|
26982
|
+
return __generator(this, function (_a) {
|
26983
|
+
switch (_a.label) {
|
26984
|
+
case 0:
|
26985
|
+
setLoading(true);
|
26986
|
+
_a.label = 1;
|
26987
|
+
case 1:
|
26988
|
+
_a.trys.push([1, 3, 4, 5]);
|
26989
|
+
console.log("getting government profile");
|
26990
|
+
return [4 /*yield*/, post("national/organisation/query", {
|
26991
|
+
page: 1,
|
26992
|
+
size: 100,
|
26993
|
+
filterAnd: [
|
26994
|
+
{
|
26995
|
+
key: "companyRole",
|
26996
|
+
operation: "=",
|
26997
|
+
value: CompanyRole.GOVERNMENT,
|
26998
|
+
},
|
26999
|
+
],
|
27000
|
+
})];
|
27001
|
+
case 2:
|
27002
|
+
response = _a.sent();
|
27003
|
+
if (response.data) {
|
27004
|
+
setGovData(response === null || response === void 0 ? void 0 : response.data[0]);
|
27005
|
+
console.log("gov profile", response === null || response === void 0 ? void 0 : response.data[0]);
|
27006
|
+
return [2 /*return*/, response === null || response === void 0 ? void 0 : response.data[0]];
|
27007
|
+
}
|
27008
|
+
return [3 /*break*/, 5];
|
27009
|
+
case 3:
|
27010
|
+
error_1 = _a.sent();
|
27011
|
+
console.log("Error in getting government data", error_1);
|
27012
|
+
return [3 /*break*/, 5];
|
27013
|
+
case 4:
|
27014
|
+
setLoading(false);
|
27015
|
+
return [7 /*endfinally*/];
|
27016
|
+
case 5: return [2 /*return*/];
|
27017
|
+
}
|
27018
|
+
});
|
27019
|
+
}); };
|
27228
27020
|
var handleSearch = function (newValue) { return __awaiter(void 0, void 0, void 0, function () {
|
27229
27021
|
var resp;
|
27230
27022
|
return __generator(this, function (_a) {
|
@@ -27268,8 +27060,8 @@ var ProgrammeRetireForm = function (props) {
|
|
27268
27060
|
programme.creditOwnerPercentage = [100];
|
27269
27061
|
}
|
27270
27062
|
var companies = {};
|
27271
|
-
for (var _i = 0,
|
27272
|
-
var c =
|
27063
|
+
for (var _i = 0, _k = programme.company; _i < _k.length; _i++) {
|
27064
|
+
var c = _k[_i];
|
27273
27065
|
companies[c.companyId] = c;
|
27274
27066
|
}
|
27275
27067
|
var validCompanies = [];
|
@@ -27303,7 +27095,11 @@ var ProgrammeRetireForm = function (props) {
|
|
27303
27095
|
if (hideType) {
|
27304
27096
|
setType("0");
|
27305
27097
|
}
|
27098
|
+
getGovernmentDetails();
|
27306
27099
|
}, []);
|
27100
|
+
if (!govData) {
|
27101
|
+
return React.createElement("div", null, "Loading");
|
27102
|
+
}
|
27307
27103
|
return (React.createElement("div", { className: "transfer-form" },
|
27308
27104
|
subText && (React.createElement(Row, null,
|
27309
27105
|
React.createElement(Col, { span: 24, className: "sub-text" }, subText))),
|
@@ -27339,6 +27135,7 @@ var ProgrammeRetireForm = function (props) {
|
|
27339
27135
|
country: d.country,
|
27340
27136
|
};
|
27341
27137
|
}
|
27138
|
+
d.omgePercentage = Number(govData.omgePercentage);
|
27342
27139
|
return [4 /*yield*/, onFinish(d)];
|
27343
27140
|
case 1:
|
27344
27141
|
res = _a.sent();
|
@@ -27433,7 +27230,31 @@ var ProgrammeRetireForm = function (props) {
|
|
27433
27230
|
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27434
27231
|
React.createElement(Col, { lg: 6, md: 12 },
|
27435
27232
|
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27436
|
-
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))))
|
27233
|
+
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true }))))),
|
27234
|
+
React.createElement(Row, null,
|
27235
|
+
React.createElement(Col, { lg: 11, md: 24 },
|
27236
|
+
React.createElement("div", { className: "label" }, "".concat(t("view:govInternationalAcc")))),
|
27237
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
27238
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27239
|
+
React.createElement(InputNumber, { placeholder: addCommSep(currentSum -
|
27240
|
+
Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27241
|
+
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27242
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
27243
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27244
|
+
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))),
|
27245
|
+
React.createElement(Row, null,
|
27246
|
+
React.createElement(Col, { lg: 11, md: 24, style: { display: "flex" } },
|
27247
|
+
React.createElement("div", { className: "label" }, "".concat(t("view:omgeAcc"))),
|
27248
|
+
React.createElement("div", { className: "info-container" },
|
27249
|
+
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "topLeft", trigger: "hover", title: t("view:omgeDesc"), overlayClassName: "custom-tooltip" },
|
27250
|
+
React.createElement(InfoCircle, { color: "#000000", size: 15 })))),
|
27251
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
27252
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27253
|
+
React.createElement(InputNumber, { placeholder: addCommSep(Number(((currentSum * govData.omgePercentage) / 100).toFixed(2))), disabled: true }))),
|
27254
|
+
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
27255
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
27256
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
27257
|
+
React.createElement(InputNumber, { placeholder: addCommSep(totalCredits), disabled: true })))))),
|
27437
27258
|
React.createElement(Row, null,
|
27438
27259
|
React.createElement(Col, { span: 24 },
|
27439
27260
|
React.createElement(Form.Item, { className: "remarks-label", label: "Remarks", name: "comment", rules: [
|
@@ -27520,7 +27341,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
27520
27341
|
};
|
27521
27342
|
|
27522
27343
|
var ProgrammeTransferForm = function (props) {
|
27523
|
-
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;
|
27344
|
+
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;
|
27524
27345
|
var t = translator.t;
|
27525
27346
|
var _b = useState(undefined), popupError = _b[0], setPopupError = _b[1];
|
27526
27347
|
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -27751,7 +27572,7 @@ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column
|
|
27751
27572
|
styleInject(css_248z$2);
|
27752
27573
|
|
27753
27574
|
var NdcActionBody = function (props) {
|
27754
|
-
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;
|
27575
|
+
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;
|
27755
27576
|
var t = translator.t;
|
27756
27577
|
var userInfoState = useUserContext().userInfoState;
|
27757
27578
|
var fileInputMonitoringRef = useRef(null);
|
@@ -28151,7 +27972,7 @@ var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
|
|
28151
27972
|
styleInject(css_248z$1);
|
28152
27973
|
|
28153
27974
|
var ProgrammeDocuments = function (props) {
|
28154
|
-
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;
|
27975
|
+
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;
|
28155
27976
|
var t = translator.t;
|
28156
27977
|
var userInfoState = useUserContext().userInfoState;
|
28157
27978
|
var _a = useConnection(); _a.delete; var post = _a.post;
|
@@ -28646,5 +28467,5 @@ var TimelineBody = function (props) {
|
|
28646
28467
|
React.createElement("div", { className: "remark-body" }, remark)))));
|
28647
28468
|
};
|
28648
28469
|
|
28649
|
-
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType,
|
28470
|
+
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
|
28650
28471
|
//# sourceMappingURL=index.js.map
|