@undp/carbon-library 1.0.285-carbon-lib-test.1 → 1.0.285-gayanath8-patch-2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +41 -361
- 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 -3
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/index.js +43 -355
- 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 -3
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/index.d.ts +8 -23
- 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/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
- 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/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
package/dist/esm/index.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, LockOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined, PlusCircleOutlined, LockFilled, DownloadOutlined, CloseCircleOutlined } 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, Collapse } from 'antd';
|
3
|
-
import React, {
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
4
4
|
import { DateTime } from 'luxon';
|
5
5
|
import { Buffer } from 'buffer';
|
6
|
-
import axios, { HttpStatusCode } from 'axios';
|
7
6
|
import PhoneInput, { formatPhoneNumberIntl, formatPhoneNumber } from 'react-phone-number-input';
|
8
7
|
import validator from 'validator';
|
9
8
|
import { plainToClass } from 'class-transformer';
|
@@ -14,6 +13,7 @@ import mapboxgl from 'mapbox-gl';
|
|
14
13
|
import 'mapbox-gl/dist/mapbox-gl.css';
|
15
14
|
import 'antd/dist/antd.css';
|
16
15
|
import * as XLSX from 'xlsx';
|
16
|
+
import { HttpStatusCode } from 'axios';
|
17
17
|
|
18
18
|
/******************************************************************************
|
19
19
|
Copyright (c) Microsoft Corporation.
|
@@ -492,317 +492,9 @@ var OrganisationStatus = function (props) {
|
|
492
492
|
return orgState;
|
493
493
|
};
|
494
494
|
|
495
|
-
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";
|
496
|
-
|
497
|
-
var ConnectionContext = createContext({});
|
498
|
-
var ConnectionContextProvider = function (props) {
|
499
|
-
var _a = useState(), token = _a[0], setToken = _a[1];
|
500
|
-
var serverURL = props.serverURL, t = props.t, statServerUrl = props.statServerUrl, children = props.children;
|
501
|
-
useEffect(function () {
|
502
|
-
var timer = setInterval(function () { return __awaiter(void 0, void 0, void 0, function () {
|
503
|
-
var newToken;
|
504
|
-
return __generator(this, function (_a) {
|
505
|
-
switch (_a.label) {
|
506
|
-
case 0: return [4 /*yield*/, localStorage.getItem('token')];
|
507
|
-
case 1:
|
508
|
-
newToken = _a.sent();
|
509
|
-
if (token !== newToken) {
|
510
|
-
setToken(newToken);
|
511
|
-
}
|
512
|
-
return [2 /*return*/];
|
513
|
-
}
|
514
|
-
});
|
515
|
-
}); }, 3000);
|
516
|
-
if (token) {
|
517
|
-
clearTimeout(timer);
|
518
|
-
}
|
519
|
-
return function () {
|
520
|
-
clearTimeout(timer);
|
521
|
-
};
|
522
|
-
}, [token]);
|
523
|
-
var send = useCallback(function (method, path, data, config, extraUrl) {
|
524
|
-
return new Promise(function (resolve, reject) {
|
525
|
-
var url = "".concat(extraUrl ? extraUrl : serverURL, "/").concat(path);
|
526
|
-
var headers;
|
527
|
-
if (token) {
|
528
|
-
headers = { authorization: "Bearer ".concat(token.toString()) };
|
529
|
-
}
|
530
|
-
else {
|
531
|
-
if (localStorage.getItem('token')) {
|
532
|
-
headers = {
|
533
|
-
authorization: "Bearer ".concat(localStorage.getItem('token')),
|
534
|
-
};
|
535
|
-
}
|
536
|
-
else {
|
537
|
-
headers = {
|
538
|
-
authorization: "Bearer ".concat(process.env.STORYBOOK_ACCESS_TOKEN),
|
539
|
-
};
|
540
|
-
}
|
541
|
-
}
|
542
|
-
axios(__assign({ method: method, url: url, data: data, headers: headers }, config))
|
543
|
-
.then(function (response) {
|
544
|
-
var _a, _b, _c;
|
545
|
-
if (response.status) {
|
546
|
-
if (response.status === 200 || response.status === 201) {
|
547
|
-
resolve({
|
548
|
-
status: response.status,
|
549
|
-
data: (_a = response.data.data) !== null && _a !== void 0 ? _a : response.data,
|
550
|
-
response: response,
|
551
|
-
statusText: 'SUCCESS',
|
552
|
-
message: response.data.message,
|
553
|
-
});
|
554
|
-
}
|
555
|
-
else if (response.status === 422) {
|
556
|
-
reject({
|
557
|
-
status: response.status,
|
558
|
-
data: (_b = response.data) === null || _b === void 0 ? void 0 : _b.data,
|
559
|
-
statusText: 'ERROR',
|
560
|
-
response: response,
|
561
|
-
message: response.data.message,
|
562
|
-
errors: (_c = response.data) === null || _c === void 0 ? void 0 : _c.errors,
|
563
|
-
});
|
564
|
-
}
|
565
|
-
}
|
566
|
-
else {
|
567
|
-
reject({
|
568
|
-
status: 500,
|
569
|
-
statusText: 'UNKNOWN',
|
570
|
-
message: t('common:systemError'),
|
571
|
-
});
|
572
|
-
}
|
573
|
-
})
|
574
|
-
.catch(function (e) {
|
575
|
-
var _a;
|
576
|
-
if (e.response) {
|
577
|
-
if (e.response.status) {
|
578
|
-
if (e.response.data.message === 'jwt expired') {
|
579
|
-
localStorage.removeItem('token');
|
580
|
-
window.location.reload();
|
581
|
-
}
|
582
|
-
reject({
|
583
|
-
status: e.response.status,
|
584
|
-
statusText: 'ERROR',
|
585
|
-
errors: (_a = e.response.data) === null || _a === void 0 ? void 0 : _a.errors,
|
586
|
-
message: e.response.data.message,
|
587
|
-
});
|
588
|
-
}
|
589
|
-
else {
|
590
|
-
reject({
|
591
|
-
statusText: 'ERROR',
|
592
|
-
message: t('common:systemError'),
|
593
|
-
});
|
594
|
-
}
|
595
|
-
}
|
596
|
-
else {
|
597
|
-
reject({
|
598
|
-
statusText: 'ERROR',
|
599
|
-
message: t('common:networkError'),
|
600
|
-
});
|
601
|
-
}
|
602
|
-
});
|
603
|
-
});
|
604
|
-
}, [token, serverURL]);
|
605
|
-
var post = useCallback(function (path, data, config, extraUrl) {
|
606
|
-
return send('post', path, data, config, extraUrl);
|
607
|
-
}, [send]);
|
608
|
-
var put = useCallback(function (path, data, config) {
|
609
|
-
return send('put', path, data, config);
|
610
|
-
}, [send]);
|
611
|
-
var get = useCallback(function (path, config) {
|
612
|
-
return send('get', path, undefined, config);
|
613
|
-
}, [send]);
|
614
|
-
var patch = useCallback(function (path, data, config) {
|
615
|
-
return send('patch', path, data, config);
|
616
|
-
}, [send]);
|
617
|
-
var del = useCallback(function (path, config) {
|
618
|
-
return send('delete', path, config);
|
619
|
-
}, [send]);
|
620
|
-
var updateToken = useCallback(function (newToken) { return __awaiter(void 0, void 0, void 0, function () {
|
621
|
-
return __generator(this, function (_a) {
|
622
|
-
if (newToken) {
|
623
|
-
localStorage.setItem('token', newToken);
|
624
|
-
setToken(newToken);
|
625
|
-
}
|
626
|
-
else {
|
627
|
-
localStorage.setItem('token', '');
|
628
|
-
setToken(undefined);
|
629
|
-
}
|
630
|
-
return [2 /*return*/];
|
631
|
-
});
|
632
|
-
}); }, []);
|
633
|
-
var removeToken = function (tkn) {
|
634
|
-
if (tkn) {
|
635
|
-
var exp = o(tkn).exp;
|
636
|
-
if (Date.now() > exp * 1000) {
|
637
|
-
localStorage.setItem('token', '');
|
638
|
-
localStorage.removeItem('userRole');
|
639
|
-
localStorage.removeItem('userId');
|
640
|
-
localStorage.removeItem('companyId');
|
641
|
-
localStorage.removeItem('companyRole');
|
642
|
-
}
|
643
|
-
else {
|
644
|
-
var diff = exp * 1000 - Date.now();
|
645
|
-
setTimeout(function () {
|
646
|
-
setToken(undefined);
|
647
|
-
localStorage.setItem('token', '');
|
648
|
-
localStorage.removeItem('userRole');
|
649
|
-
localStorage.removeItem('userId');
|
650
|
-
localStorage.removeItem('companyId');
|
651
|
-
localStorage.removeItem('companyRole');
|
652
|
-
}, diff);
|
653
|
-
console.log(diff, 'Remaining Token expire time');
|
654
|
-
}
|
655
|
-
}
|
656
|
-
};
|
657
|
-
useEffect(function () {
|
658
|
-
removeToken(token);
|
659
|
-
}, [token]);
|
660
|
-
return (React.createElement(ConnectionContext.Provider, { value: {
|
661
|
-
connection: { post: post, put: put, get: get, patch: patch, delete: del, updateToken: updateToken, token: token, removeToken: removeToken, statServerUrl: statServerUrl },
|
662
|
-
} }, children));
|
663
|
-
};
|
664
|
-
var useConnection = function () {
|
665
|
-
var context = useContext(ConnectionContext);
|
666
|
-
return context.connection;
|
667
|
-
};
|
668
|
-
|
669
|
-
var UserContext = createContext({
|
670
|
-
setUserInfo: function () { },
|
671
|
-
removeUserInfo: function () { },
|
672
|
-
IsAuthenticated: function (tkn) { return false; },
|
673
|
-
isTokenExpired: false,
|
674
|
-
setIsTokenExpired: function (val) { },
|
675
|
-
});
|
676
|
-
var UserInformationContextProvider = function (_a) {
|
677
|
-
var children = _a.children;
|
678
|
-
var token = useConnection().token;
|
679
|
-
var _b = useState(false), isTokenExpired = _b[0], setIsTokenExpired = _b[1];
|
680
|
-
var initialUserProps = {
|
681
|
-
id: localStorage.getItem('userId') ? localStorage.getItem('userId') : process.env.STORYBOOK_USER_ID ? process.env.STORYBOOK_USER_ID : '',
|
682
|
-
userRole: localStorage.getItem('userRole') ? localStorage.getItem('userRole') : process.env.STORYBOOK_USER_ROLE ? process.env.STORYBOOK_USER_ROLE : '',
|
683
|
-
companyRole: localStorage.getItem('companyRole')
|
684
|
-
? localStorage.getItem('companyRole')
|
685
|
-
: process.env.STORYBOOK_COMPANY_ROLE ? process.env.STORYBOOK_COMPANY_ROLE : '',
|
686
|
-
companyId: localStorage.getItem('companyId')
|
687
|
-
? parseInt(localStorage.getItem('companyId'))
|
688
|
-
: process.env.STORYBOOK_COMPANY_ID ? parseInt(process.env.STORYBOOK_COMPANY_ID) : -1,
|
689
|
-
companyLogo: localStorage.getItem('companyLogo')
|
690
|
-
? localStorage.getItem('companyLogo')
|
691
|
-
: process.env.STORYBOOK_COMPANY_LOGO ? process.env.STORYBOOK_COMPANY_LOGO : '',
|
692
|
-
companyName: localStorage.getItem('companyName')
|
693
|
-
? localStorage.getItem('companyName')
|
694
|
-
: process.env.STORYBOOK_COMPANY_NAME ? process.env.STORYBOOK_COMPANY_NAME : '',
|
695
|
-
companyState: localStorage.getItem('companyState')
|
696
|
-
? parseInt(localStorage.getItem('companyState'))
|
697
|
-
: process.env.STORYBOOK_COMPANY_STATE ? parseInt(process.env.STORYBOOK_COMPANY_STATE) : 0,
|
698
|
-
};
|
699
|
-
var _c = useState(initialUserProps), userInfoState = _c[0], setUserInfoState = _c[1];
|
700
|
-
var setUserInfo = function (value) {
|
701
|
-
var state = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) === 1 ? userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState : 0;
|
702
|
-
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;
|
703
|
-
if (id) {
|
704
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { id: id })); });
|
705
|
-
localStorage.setItem('userId', id);
|
706
|
-
}
|
707
|
-
if (userRole) {
|
708
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { userRole: userRole })); });
|
709
|
-
localStorage.setItem('userRole', userRole);
|
710
|
-
}
|
711
|
-
if (companyId) {
|
712
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyId: companyId })); });
|
713
|
-
localStorage.setItem('companyId', companyId + '');
|
714
|
-
}
|
715
|
-
if (companyLogo) {
|
716
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: companyLogo })); });
|
717
|
-
localStorage.setItem('companyLogo', companyLogo);
|
718
|
-
}
|
719
|
-
else {
|
720
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: '' })); });
|
721
|
-
localStorage.setItem('companyLogo', '');
|
722
|
-
}
|
723
|
-
if (companyName) {
|
724
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyName: companyName })); });
|
725
|
-
localStorage.setItem('companyName', companyName);
|
726
|
-
}
|
727
|
-
if (userRole) {
|
728
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyRole: companyRole })); });
|
729
|
-
localStorage.setItem('companyRole', companyRole);
|
730
|
-
}
|
731
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyState: companyState })); });
|
732
|
-
localStorage.setItem('companyState', companyState + '');
|
733
|
-
};
|
734
|
-
var IsAuthenticated = useCallback(function (tokenNew) {
|
735
|
-
var tokenVal;
|
736
|
-
if (tokenNew) {
|
737
|
-
tokenVal = tokenNew;
|
738
|
-
}
|
739
|
-
else if (token) {
|
740
|
-
tokenVal = token;
|
741
|
-
}
|
742
|
-
else {
|
743
|
-
tokenVal = localStorage.getItem('token');
|
744
|
-
if (tokenVal === '') {
|
745
|
-
if (history.length !== 1) {
|
746
|
-
setIsTokenExpired(true);
|
747
|
-
}
|
748
|
-
}
|
749
|
-
}
|
750
|
-
try {
|
751
|
-
if (tokenVal) {
|
752
|
-
var exp = o(tokenVal).exp;
|
753
|
-
return Date.now() < exp * 1000;
|
754
|
-
}
|
755
|
-
return false;
|
756
|
-
}
|
757
|
-
catch (err) {
|
758
|
-
return false;
|
759
|
-
}
|
760
|
-
}, [token]);
|
761
|
-
var removeUserInfo = function () {
|
762
|
-
localStorage.removeItem('userId');
|
763
|
-
localStorage.removeItem('userRole');
|
764
|
-
localStorage.removeItem('companyId');
|
765
|
-
localStorage.removeItem('companyRole');
|
766
|
-
localStorage.removeItem('companyName');
|
767
|
-
localStorage.removeItem('companyState');
|
768
|
-
localStorage.removeItem('companyLogo');
|
769
|
-
setUserInfoState(initialUserProps);
|
770
|
-
};
|
771
|
-
return (React.createElement(UserContext.Provider, { value: {
|
772
|
-
userInfoState: userInfoState,
|
773
|
-
setUserInfo: setUserInfo,
|
774
|
-
removeUserInfo: removeUserInfo,
|
775
|
-
IsAuthenticated: IsAuthenticated,
|
776
|
-
isTokenExpired: isTokenExpired,
|
777
|
-
setIsTokenExpired: setIsTokenExpired,
|
778
|
-
} }, children));
|
779
|
-
};
|
780
|
-
var useUserContext = function () {
|
781
|
-
return useContext(UserContext);
|
782
|
-
};
|
783
|
-
|
784
|
-
var SettingsContext = createContext({
|
785
|
-
isTransferFrozen: false,
|
786
|
-
setTransferFrozen: function (value) { },
|
787
|
-
});
|
788
|
-
var SettingsContextProvider = function (_a) {
|
789
|
-
var children = _a.children;
|
790
|
-
var _b = useState(false), isTransferFrozen = _b[0], setIsTransferFrozen = _b[1];
|
791
|
-
var setTransferFrozen = function (value) {
|
792
|
-
setIsTransferFrozen(value);
|
793
|
-
};
|
794
|
-
return (React.createElement(SettingsContext.Provider, { value: {
|
795
|
-
isTransferFrozen: isTransferFrozen,
|
796
|
-
setTransferFrozen: setTransferFrozen,
|
797
|
-
} }, children));
|
798
|
-
};
|
799
|
-
var useSettingsContext = function () {
|
800
|
-
return useContext(SettingsContext);
|
801
|
-
};
|
802
|
-
|
803
495
|
var Search$2 = Input.Search;
|
804
496
|
var CompanyManagementComponent = function (props) {
|
805
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
497
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, post = props.post, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
806
498
|
var _a = useState(), totalCompany = _a[0], setTotalCompany = _a[1];
|
807
499
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
808
500
|
var _c = useState([]), tableData = _c[0], setTableData = _c[1];
|
@@ -816,7 +508,6 @@ var CompanyManagementComponent = function (props) {
|
|
816
508
|
var _k = useState(""), sortOrder = _k[0], setSortOrder = _k[1];
|
817
509
|
var _l = useState(""), sortField = _l[0], setSortField = _l[1];
|
818
510
|
var ability = useAbilityContext();
|
819
|
-
var post = useConnection().post;
|
820
511
|
document.addEventListener("mousedown", function (event) {
|
821
512
|
var organisationFilterArea1 = document.querySelector(".filter-bar");
|
822
513
|
var organisationFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -1149,7 +840,7 @@ var CompanyManagementComponent = function (props) {
|
|
1149
840
|
var css_248z$v = ".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";
|
1150
841
|
styleInject(css_248z$v);
|
1151
842
|
|
1152
|
-
var css_248z$u = "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 .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 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";
|
843
|
+
var css_248z$u = "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";
|
1153
844
|
styleInject(css_248z$u);
|
1154
845
|
|
1155
846
|
var UserManagementColumns;
|
@@ -6115,7 +5806,7 @@ var Projection = /** @class */ (function () {
|
|
6115
5806
|
|
6116
5807
|
var AddNewCompanyComponent = function (props) {
|
6117
5808
|
var _a;
|
6118
|
-
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;
|
5809
|
+
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;
|
6119
5810
|
var formOne = Form.useForm()[0];
|
6120
5811
|
var formTwo = Form.useForm()[0];
|
6121
5812
|
var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
@@ -6904,7 +6595,7 @@ var css_248z$t = ".company-profile {\n padding: 0px 50px; }\n .company-profile
|
|
6904
6595
|
styleInject(css_248z$t);
|
6905
6596
|
|
6906
6597
|
var CompanyProfileComponent = function (props) {
|
6907
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField, systemType = props.systemType;
|
6598
|
+
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;
|
6908
6599
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6909
6600
|
var _b = useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6910
6601
|
var _c = useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -7337,7 +7028,7 @@ styleInject(css_248z$s);
|
|
7337
7028
|
|
7338
7029
|
var Search$1 = Input.Search;
|
7339
7030
|
var ProgrammeManagementComponent = function (props) {
|
7340
|
-
var t = props.t, visibleColumns = props.visibleColumns, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
|
7031
|
+
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;
|
7341
7032
|
var _a = useConnection(); _a.get; _a.delete; var post = _a.post;
|
7342
7033
|
var _b = useState(), totalProgramme = _b[0], setTotalProgramme = _b[1];
|
7343
7034
|
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -7722,7 +7413,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7722
7413
|
React.createElement("div", { className: "filter-section" },
|
7723
7414
|
React.createElement("div", { className: "search-filter" },
|
7724
7415
|
React.createElement(Checkbox, { className: "label", onChange: function (v) {
|
7725
|
-
if (
|
7416
|
+
if (userInfoState.companyRole === CompanyRole.MINISTRY) {
|
7726
7417
|
if (v.target.checked) {
|
7727
7418
|
setMinistryLevelFilter(true);
|
7728
7419
|
}
|
@@ -7739,7 +7430,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7739
7430
|
}
|
7740
7431
|
: undefined);
|
7741
7432
|
}
|
7742
|
-
} },
|
7433
|
+
} }, userInfoState.companyRole === CompanyRole.MINISTRY
|
7743
7434
|
? t("view:ministryLevel")
|
7744
7435
|
: t("view:seeMine"))),
|
7745
7436
|
React.createElement("div", { className: "search-bar" },
|
@@ -13520,7 +13211,7 @@ var sectoralScopes = {
|
|
13520
13211
|
};
|
13521
13212
|
var ProgrammeCreationComponent = function (props) {
|
13522
13213
|
var _a, _b, _c;
|
13523
|
-
var useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13214
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13524
13215
|
var t = translator.t;
|
13525
13216
|
var state = useLocation().state;
|
13526
13217
|
var formOne = Form.useForm()[0];
|
@@ -14585,7 +14276,7 @@ var ChangePasswordModel = function (props) {
|
|
14585
14276
|
|
14586
14277
|
var AddNewUserComponent = function (props) {
|
14587
14278
|
var _a, _b, _c, _d, _e, _f;
|
14588
|
-
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
|
14279
|
+
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;
|
14589
14280
|
var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete, get = _g.get;
|
14590
14281
|
var formOne = Form.useForm()[0];
|
14591
14282
|
var state = useLocation().state;
|
@@ -15003,7 +14694,7 @@ var LanguageSelection = function (props) {
|
|
15003
14694
|
};
|
15004
14695
|
|
15005
14696
|
var UserProfileComponent = function (props) {
|
15006
|
-
var t = props.t, i18n = props.i18n, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin;
|
14697
|
+
var t = props.t, i18n = props.i18n, useConnection = props.useConnection, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin, useUserContext = props.useUserContext;
|
15007
14698
|
var get = useConnection().get;
|
15008
14699
|
var _a = useState(undefined), organisationDetails = _a[0], setOrganisationDetails = _a[1];
|
15009
14700
|
var _b = useState(undefined), userDetails = _b[0], setUserDetails = _b[1];
|
@@ -15171,7 +14862,7 @@ styleInject(css_248z$n);
|
|
15171
14862
|
|
15172
14863
|
var Search = Input.Search;
|
15173
14864
|
var UserManagementComponent = function (props) {
|
15174
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser;
|
14865
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useConnection = props.useConnection, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser, userInfoState = props.userInfoState;
|
15175
14866
|
Form.useForm()[0];
|
15176
14867
|
var _a = useConnection(), post = _a.post, del = _a.delete;
|
15177
14868
|
var _b = useState(), totalUser = _b[0], setTotalUser = _b[1];
|
@@ -15193,7 +14884,6 @@ var UserManagementComponent = function (props) {
|
|
15193
14884
|
var _s = useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
|
15194
14885
|
var _t = useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
15195
14886
|
var ability = useAbilityContext();
|
15196
|
-
var userInfoState = useUserContext().userInfoState;
|
15197
14887
|
document.addEventListener("mousedown", function (event) {
|
15198
14888
|
var userFilterArea1 = document.querySelector(".filter-bar");
|
15199
14889
|
var userFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -15714,7 +15404,7 @@ var Loading = function () {
|
|
15714
15404
|
};
|
15715
15405
|
|
15716
15406
|
var InvestmentCreationComponent = function (props) {
|
15717
|
-
var t = props.t, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15407
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15718
15408
|
var state = useLocation().state;
|
15719
15409
|
var _a = useState(), data = _a[0], setData = _a[1];
|
15720
15410
|
var formOne = Form.useForm()[0];
|
@@ -15729,7 +15419,6 @@ var InvestmentCreationComponent = function (props) {
|
|
15729
15419
|
var _h = useState([]), instrument = _h[0], setInstrument = _h[1];
|
15730
15420
|
var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
15731
15421
|
var _k = useState(), govData = _k[0], setGovData = _k[1];
|
15732
|
-
var userInfoState = useUserContext().userInfoState;
|
15733
15422
|
var instrumentOptions = Object.keys(Instrument).map(function (k, index) { return ({
|
15734
15423
|
label: addSpaces(Object.values(Instrument)[index]),
|
15735
15424
|
value: Object.values(Instrument)[index],
|
@@ -16346,7 +16035,7 @@ var InvestmentActionModel = function (props) {
|
|
16346
16035
|
};
|
16347
16036
|
|
16348
16037
|
var InvestmentManagementComponent = function (props) {
|
16349
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16038
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16350
16039
|
var t = translator.t;
|
16351
16040
|
var statusOptions = Object.keys(InvestmentStatus).map(function (k, index) { return ({
|
16352
16041
|
label: addSpaces(Object.values(InvestmentStatus)[index]),
|
@@ -16879,7 +16568,7 @@ var css_248z$l = ".steps-actions {\n display: flex;\n flex-direction: row-reve
|
|
16879
16568
|
styleInject(css_248z$l);
|
16880
16569
|
|
16881
16570
|
var SupportCreationComponent = function (props) {
|
16882
|
-
var t = props.t, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16571
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16883
16572
|
useLocation().state;
|
16884
16573
|
var _a = useState(); _a[0]; _a[1];
|
16885
16574
|
var formOne = Form.useForm()[0];
|
@@ -16892,7 +16581,6 @@ var SupportCreationComponent = function (props) {
|
|
16892
16581
|
var _f = useState([]), organisationsList = _f[0], setOrganisationList = _f[1];
|
16893
16582
|
var _g = useState([]), instrument = _g[0], setInstrument = _g[1];
|
16894
16583
|
var _h = useState(); _h[0]; var setStepOneData = _h[1];
|
16895
|
-
var userInfoState = useUserContext().userInfoState;
|
16896
16584
|
var instrumentOptions = Object.keys(Instrument).map(function (k, index) { return ({
|
16897
16585
|
label: addSpaces(Object.values(Instrument)[index]),
|
16898
16586
|
value: Object.values(Instrument)[index],
|
@@ -17235,7 +16923,7 @@ var SupportCreationComponent = function (props) {
|
|
17235
16923
|
};
|
17236
16924
|
|
17237
16925
|
var SupportManagementComponent = function (props) {
|
17238
|
-
var translator = props.translator; props.onNavigateToProgrammeView; var enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
16926
|
+
var translator = props.translator, useConnection = props.useConnection; props.onNavigateToProgrammeView; var useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
17239
16927
|
var t = translator.t;
|
17240
16928
|
var statusOptions = Object.keys(InvestmentStatus).map(function (k, index) { return ({
|
17241
16929
|
label: addSpaces(Object.values(InvestmentStatus)[index]),
|
@@ -17737,7 +17425,7 @@ var css_248z$k = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[valu
|
|
17737
17425
|
styleInject(css_248z$k);
|
17738
17426
|
|
17739
17427
|
var NdcActionManagementComponent = function (props) {
|
17740
|
-
var t = props.t, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17428
|
+
var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17741
17429
|
var _a = useState(true), checkAll = _a[0], setCheckAll = _a[1];
|
17742
17430
|
var _b = useState([]), tableData = _b[0], setTableData = _b[1];
|
17743
17431
|
var _c = useState(), totalProgramme = _c[0], setTotalProgramme = _c[1];
|
@@ -19096,7 +18784,7 @@ var GenderParity = function (props) {
|
|
19096
18784
|
};
|
19097
18785
|
|
19098
18786
|
var Assessment = function (props) {
|
19099
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18787
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
|
19100
18788
|
translator.setDefaultNamespace("coBenifits");
|
19101
18789
|
var t = translator.t;
|
19102
18790
|
var form1 = Form.useForm()[0];
|
@@ -21501,7 +21189,7 @@ var SocialEnvironmentalRisk = function (props) {
|
|
21501
21189
|
};
|
21502
21190
|
|
21503
21191
|
var CoBenifitsComponent = function (props) {
|
21504
|
-
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;
|
21192
|
+
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;
|
21505
21193
|
var _b = useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
21506
21194
|
var _c = useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
21507
21195
|
var _d = useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
@@ -21575,7 +21263,7 @@ var CoBenifitsComponent = function (props) {
|
|
21575
21263
|
label: t("coBenifits:assessment"),
|
21576
21264
|
key: "7",
|
21577
21265
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
21578
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, translator: translator })),
|
21266
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
|
21579
21267
|
},
|
21580
21268
|
{
|
21581
21269
|
label: t("coBenifits:socialEnvironmentalRisk"),
|
@@ -21744,7 +21432,7 @@ var CoBenifitsComponent = function (props) {
|
|
21744
21432
|
};
|
21745
21433
|
|
21746
21434
|
var AddNdcActionComponent = function (props) {
|
21747
|
-
var useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21435
|
+
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21748
21436
|
translator.setDefaultNamespace("ndcAction");
|
21749
21437
|
var t = translator.t;
|
21750
21438
|
var _a = useState(1), current = _a[0], setCurrent = _a[1];
|
@@ -21886,7 +21574,7 @@ var AddNdcActionComponent = function (props) {
|
|
21886
21574
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
21887
21575
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
21888
21576
|
? t("ndcAction:next")
|
21889
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, translator: translator }))),
|
21577
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
|
21890
21578
|
},
|
21891
21579
|
];
|
21892
21580
|
if (isProjectReportsVisible()) {
|
@@ -22023,7 +21711,7 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
|
|
22023
21711
|
var NdcActionViewComponent = function (props) {
|
22024
21712
|
var _a;
|
22025
21713
|
var _b, _c;
|
22026
|
-
var useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
21714
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
22027
21715
|
translator.setDefaultNamespace("ndcAction");
|
22028
21716
|
var t = translator.t;
|
22029
21717
|
var userInfoState = useUserContext().userInfoState;
|
@@ -22522,7 +22210,7 @@ var NdcActionViewComponent = function (props) {
|
|
22522
22210
|
React.createElement(Card, { className: "card-container" },
|
22523
22211
|
React.createElement("div", { className: "co-benifits-view" },
|
22524
22212
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
22525
|
-
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 })))))))));
|
22213
|
+
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 })))))))));
|
22526
22214
|
};
|
22527
22215
|
|
22528
22216
|
var css_248z$e = ".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";
|
@@ -22675,7 +22363,7 @@ var TransferActionModel = function (props) {
|
|
22675
22363
|
};
|
22676
22364
|
|
22677
22365
|
var CreditTransferComponent = function (props) {
|
22678
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22366
|
+
var useConnection = props.useConnection, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22679
22367
|
var userInfoState = useUserContext().userInfoState;
|
22680
22368
|
var t = translator.t;
|
22681
22369
|
var statusOptions = Object.keys(CreditTransferStage).map(function (k, index) { return ({
|
@@ -23610,8 +23298,8 @@ var MapStatsComponent = function (props) {
|
|
23610
23298
|
|
23611
23299
|
var RangePicker$2 = DatePicker.RangePicker;
|
23612
23300
|
var MrvDashboardComponent = function (props) {
|
23613
|
-
var Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
23614
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
23301
|
+
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;
|
23302
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
23615
23303
|
var _c = useState({}), data = _c[0], setData = _c[1];
|
23616
23304
|
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
23617
23305
|
var userInfoState = useUserContext().userInfoState;
|
@@ -24094,7 +23782,7 @@ var MrvDashboardComponent = function (props) {
|
|
24094
23782
|
_e.label = 1;
|
24095
23783
|
case 1:
|
24096
23784
|
_e.trys.push([1, 3, 4, 5]);
|
24097
|
-
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined,
|
23785
|
+
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined, process.env.REACT_APP_STAT_URL)];
|
24098
23786
|
case 2:
|
24099
23787
|
response = _e.sent();
|
24100
23788
|
console.log("Response", response);
|
@@ -25345,8 +25033,8 @@ var RegistryBarChartsStatComponent = function (props) {
|
|
25345
25033
|
|
25346
25034
|
var RangePicker$1 = DatePicker.RangePicker;
|
25347
25035
|
var RegistryDashboardComponent = function (props) {
|
25348
|
-
var Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
25349
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
25036
|
+
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;
|
25037
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
25350
25038
|
var userInfoState = useUserContext().userInfoState;
|
25351
25039
|
var _c = useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
|
25352
25040
|
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
@@ -25793,7 +25481,7 @@ var RegistryDashboardComponent = function (props) {
|
|
25793
25481
|
_253.label = 1;
|
25794
25482
|
case 1:
|
25795
25483
|
_253.trys.push([1, 3, 4, 5]);
|
25796
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined,
|
25484
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined, process.env.REACT_APP_STAT_URL)];
|
25797
25485
|
case 2:
|
25798
25486
|
response = _253.sent();
|
25799
25487
|
totalCreditsCertifiedStats = void 0;
|
@@ -26070,7 +25758,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26070
25758
|
_77.label = 1;
|
26071
25759
|
case 1:
|
26072
25760
|
_77.trys.push([1, 3, 4, 5]);
|
26073
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined,
|
25761
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined, process.env.REACT_APP_STAT_URL)];
|
26074
25762
|
case 2:
|
26075
25763
|
response = _77.sent();
|
26076
25764
|
programmeByStatusAggregationResponse = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.stats) === null || _b === void 0 ? void 0 : _b.AGG_PROGRAMME_BY_STATUS) === null || _c === void 0 ? void 0 : _c.data;
|
@@ -26163,7 +25851,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26163
25851
|
_188.label = 1;
|
26164
25852
|
case 1:
|
26165
25853
|
_188.trys.push([1, 3, 4, 5]);
|
26166
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined,
|
25854
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined, process.env.REACT_APP_STAT_URL)];
|
26167
25855
|
case 2:
|
26168
25856
|
response = _188.sent();
|
26169
25857
|
programmeByStatusAuthAggregationResponse = void 0;
|
@@ -27130,7 +26818,7 @@ var getNdcActionStatusTagType = function (status) {
|
|
27130
26818
|
};
|
27131
26819
|
|
27132
26820
|
var NdcDetailsComponent = function (props) {
|
27133
|
-
var t = props.t;
|
26821
|
+
var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext;
|
27134
26822
|
var RangePicker = DatePicker.RangePicker;
|
27135
26823
|
var _a = useState([]), ndcActionsList = _a[0], setNdcActionsList = _a[1];
|
27136
26824
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28105,7 +27793,7 @@ var ProgrammeIssueForm = function (props) {
|
|
28105
27793
|
};
|
28106
27794
|
|
28107
27795
|
var ProgrammeRetireForm = function (props) {
|
28108
|
-
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;
|
27796
|
+
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;
|
28109
27797
|
var t = translator.t;
|
28110
27798
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
28111
27799
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28481,7 +28169,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
28481
28169
|
};
|
28482
28170
|
|
28483
28171
|
var ProgrammeTransferForm = function (props) {
|
28484
|
-
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;
|
28172
|
+
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;
|
28485
28173
|
var t = translator.t;
|
28486
28174
|
var _b = useState(undefined), popupError = _b[0], setPopupError = _b[1];
|
28487
28175
|
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -28712,7 +28400,7 @@ var css_248z$5 = ".ndc-action-body {\n display: flex;\n flex-direction: column
|
|
28712
28400
|
styleInject(css_248z$5);
|
28713
28401
|
|
28714
28402
|
var NdcActionBody = function (props) {
|
28715
|
-
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;
|
28403
|
+
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;
|
28716
28404
|
var t = translator.t;
|
28717
28405
|
var userInfoState = useUserContext().userInfoState;
|
28718
28406
|
var fileInputMonitoringRef = useRef(null);
|
@@ -29148,7 +28836,7 @@ var css_248z$4 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
|
|
29148
28836
|
styleInject(css_248z$4);
|
29149
28837
|
|
29150
28838
|
var ProgrammeDocuments = function (props) {
|
29151
|
-
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;
|
28839
|
+
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;
|
29152
28840
|
var t = translator.t;
|
29153
28841
|
var userInfoState = useUserContext().userInfoState;
|
29154
28842
|
var _a = useConnection(); _a.delete; var post = _a.post;
|
@@ -30099,7 +29787,7 @@ var GHGUserActionConfirmationModel = function (props) {
|
|
30099
29787
|
};
|
30100
29788
|
|
30101
29789
|
var GHGEmissionsComponent = function (props) {
|
30102
|
-
var t = props.t;
|
29790
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection;
|
30103
29791
|
var userInfoState = useUserContext().userInfoState;
|
30104
29792
|
var _a = useState([]), data = _a[0], setData = _a[1];
|
30105
29793
|
var _b = useConnection(), get = _b.get, post = _b.post;
|
@@ -31911,7 +31599,7 @@ var ProjectionTypes = {
|
|
31911
31599
|
};
|
31912
31600
|
|
31913
31601
|
var GHGProjectionsComponent = function (props) {
|
31914
|
-
var t = props.t;
|
31602
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection;
|
31915
31603
|
var userInfoState = useUserContext().userInfoState;
|
31916
31604
|
var _a = useState([]), data = _a[0], setData = _a[1];
|
31917
31605
|
var _b = useConnection(); _b.put; var get = _b.get, post = _b.post;
|
@@ -34006,7 +33694,7 @@ var emissionComparisonOptionsSub = function (labels, chartColors) {
|
|
34006
33694
|
|
34007
33695
|
var RangePicker = DatePicker.RangePicker;
|
34008
33696
|
var GHGDashboardComponent = function (props) {
|
34009
|
-
var t = props.t, Chart = props.Chart, ButtonGroup = props.ButtonGroup, Link = props.Link, isMultipleDashboardsVisible = props.isMultipleDashboardsVisible;
|
33697
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection, Chart = props.Chart, ButtonGroup = props.ButtonGroup, Link = props.Link, isMultipleDashboardsVisible = props.isMultipleDashboardsVisible;
|
34010
33698
|
var _a = useConnection(); _a.get; var post = _a.post; _a.delete;
|
34011
33699
|
var userInfoState = useUserContext().userInfoState;
|
34012
33700
|
var _b = useState(moment().year()), endYear = _b[0], setEndYear = _b[1];
|
@@ -34386,5 +34074,5 @@ var GHGDashboardComponent = function (props) {
|
|
34386
34074
|
React.createElement(Row, { gutter: [40, 40], className: "statics-card-row" }, row.map(function (item, j) { return getWidgetJSX(item); })))); }))));
|
34387
34075
|
};
|
34388
34076
|
|
34389
|
-
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType,
|
34077
|
+
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, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, 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, Projection, ProjectionTypes$1 as ProjectionTypes, 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$1 as addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal$1 as getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
|
34390
34078
|
//# sourceMappingURL=index.js.map
|