@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/cjs/index.js
CHANGED
@@ -5,7 +5,6 @@ var antd = require('antd');
|
|
5
5
|
var React = require('react');
|
6
6
|
var luxon = require('luxon');
|
7
7
|
var buffer = require('buffer');
|
8
|
-
var axios = require('axios');
|
9
8
|
var PhoneInput = require('react-phone-number-input');
|
10
9
|
var validator = require('validator');
|
11
10
|
var classTransformer = require('class-transformer');
|
@@ -15,6 +14,7 @@ var mapboxgl = require('mapbox-gl');
|
|
15
14
|
require('mapbox-gl/dist/mapbox-gl.css');
|
16
15
|
require('antd/dist/antd.css');
|
17
16
|
var XLSX = require('xlsx');
|
17
|
+
var axios = require('axios');
|
18
18
|
|
19
19
|
function _interopNamespaceDefault(e) {
|
20
20
|
var n = Object.create(null);
|
@@ -513,317 +513,9 @@ var OrganisationStatus = function (props) {
|
|
513
513
|
return orgState;
|
514
514
|
};
|
515
515
|
|
516
|
-
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";
|
517
|
-
|
518
|
-
var ConnectionContext = React.createContext({});
|
519
|
-
var ConnectionContextProvider = function (props) {
|
520
|
-
var _a = React.useState(), token = _a[0], setToken = _a[1];
|
521
|
-
var serverURL = props.serverURL, t = props.t, statServerUrl = props.statServerUrl, children = props.children;
|
522
|
-
React.useEffect(function () {
|
523
|
-
var timer = setInterval(function () { return __awaiter(void 0, void 0, void 0, function () {
|
524
|
-
var newToken;
|
525
|
-
return __generator(this, function (_a) {
|
526
|
-
switch (_a.label) {
|
527
|
-
case 0: return [4 /*yield*/, localStorage.getItem('token')];
|
528
|
-
case 1:
|
529
|
-
newToken = _a.sent();
|
530
|
-
if (token !== newToken) {
|
531
|
-
setToken(newToken);
|
532
|
-
}
|
533
|
-
return [2 /*return*/];
|
534
|
-
}
|
535
|
-
});
|
536
|
-
}); }, 3000);
|
537
|
-
if (token) {
|
538
|
-
clearTimeout(timer);
|
539
|
-
}
|
540
|
-
return function () {
|
541
|
-
clearTimeout(timer);
|
542
|
-
};
|
543
|
-
}, [token]);
|
544
|
-
var send = React.useCallback(function (method, path, data, config, extraUrl) {
|
545
|
-
return new Promise(function (resolve, reject) {
|
546
|
-
var url = "".concat(extraUrl ? extraUrl : serverURL, "/").concat(path);
|
547
|
-
var headers;
|
548
|
-
if (token) {
|
549
|
-
headers = { authorization: "Bearer ".concat(token.toString()) };
|
550
|
-
}
|
551
|
-
else {
|
552
|
-
if (localStorage.getItem('token')) {
|
553
|
-
headers = {
|
554
|
-
authorization: "Bearer ".concat(localStorage.getItem('token')),
|
555
|
-
};
|
556
|
-
}
|
557
|
-
else {
|
558
|
-
headers = {
|
559
|
-
authorization: "Bearer ".concat(process.env.STORYBOOK_ACCESS_TOKEN),
|
560
|
-
};
|
561
|
-
}
|
562
|
-
}
|
563
|
-
axios(__assign({ method: method, url: url, data: data, headers: headers }, config))
|
564
|
-
.then(function (response) {
|
565
|
-
var _a, _b, _c;
|
566
|
-
if (response.status) {
|
567
|
-
if (response.status === 200 || response.status === 201) {
|
568
|
-
resolve({
|
569
|
-
status: response.status,
|
570
|
-
data: (_a = response.data.data) !== null && _a !== void 0 ? _a : response.data,
|
571
|
-
response: response,
|
572
|
-
statusText: 'SUCCESS',
|
573
|
-
message: response.data.message,
|
574
|
-
});
|
575
|
-
}
|
576
|
-
else if (response.status === 422) {
|
577
|
-
reject({
|
578
|
-
status: response.status,
|
579
|
-
data: (_b = response.data) === null || _b === void 0 ? void 0 : _b.data,
|
580
|
-
statusText: 'ERROR',
|
581
|
-
response: response,
|
582
|
-
message: response.data.message,
|
583
|
-
errors: (_c = response.data) === null || _c === void 0 ? void 0 : _c.errors,
|
584
|
-
});
|
585
|
-
}
|
586
|
-
}
|
587
|
-
else {
|
588
|
-
reject({
|
589
|
-
status: 500,
|
590
|
-
statusText: 'UNKNOWN',
|
591
|
-
message: t('common:systemError'),
|
592
|
-
});
|
593
|
-
}
|
594
|
-
})
|
595
|
-
.catch(function (e) {
|
596
|
-
var _a;
|
597
|
-
if (e.response) {
|
598
|
-
if (e.response.status) {
|
599
|
-
if (e.response.data.message === 'jwt expired') {
|
600
|
-
localStorage.removeItem('token');
|
601
|
-
window.location.reload();
|
602
|
-
}
|
603
|
-
reject({
|
604
|
-
status: e.response.status,
|
605
|
-
statusText: 'ERROR',
|
606
|
-
errors: (_a = e.response.data) === null || _a === void 0 ? void 0 : _a.errors,
|
607
|
-
message: e.response.data.message,
|
608
|
-
});
|
609
|
-
}
|
610
|
-
else {
|
611
|
-
reject({
|
612
|
-
statusText: 'ERROR',
|
613
|
-
message: t('common:systemError'),
|
614
|
-
});
|
615
|
-
}
|
616
|
-
}
|
617
|
-
else {
|
618
|
-
reject({
|
619
|
-
statusText: 'ERROR',
|
620
|
-
message: t('common:networkError'),
|
621
|
-
});
|
622
|
-
}
|
623
|
-
});
|
624
|
-
});
|
625
|
-
}, [token, serverURL]);
|
626
|
-
var post = React.useCallback(function (path, data, config, extraUrl) {
|
627
|
-
return send('post', path, data, config, extraUrl);
|
628
|
-
}, [send]);
|
629
|
-
var put = React.useCallback(function (path, data, config) {
|
630
|
-
return send('put', path, data, config);
|
631
|
-
}, [send]);
|
632
|
-
var get = React.useCallback(function (path, config) {
|
633
|
-
return send('get', path, undefined, config);
|
634
|
-
}, [send]);
|
635
|
-
var patch = React.useCallback(function (path, data, config) {
|
636
|
-
return send('patch', path, data, config);
|
637
|
-
}, [send]);
|
638
|
-
var del = React.useCallback(function (path, config) {
|
639
|
-
return send('delete', path, config);
|
640
|
-
}, [send]);
|
641
|
-
var updateToken = React.useCallback(function (newToken) { return __awaiter(void 0, void 0, void 0, function () {
|
642
|
-
return __generator(this, function (_a) {
|
643
|
-
if (newToken) {
|
644
|
-
localStorage.setItem('token', newToken);
|
645
|
-
setToken(newToken);
|
646
|
-
}
|
647
|
-
else {
|
648
|
-
localStorage.setItem('token', '');
|
649
|
-
setToken(undefined);
|
650
|
-
}
|
651
|
-
return [2 /*return*/];
|
652
|
-
});
|
653
|
-
}); }, []);
|
654
|
-
var removeToken = function (tkn) {
|
655
|
-
if (tkn) {
|
656
|
-
var exp = o(tkn).exp;
|
657
|
-
if (Date.now() > exp * 1000) {
|
658
|
-
localStorage.setItem('token', '');
|
659
|
-
localStorage.removeItem('userRole');
|
660
|
-
localStorage.removeItem('userId');
|
661
|
-
localStorage.removeItem('companyId');
|
662
|
-
localStorage.removeItem('companyRole');
|
663
|
-
}
|
664
|
-
else {
|
665
|
-
var diff = exp * 1000 - Date.now();
|
666
|
-
setTimeout(function () {
|
667
|
-
setToken(undefined);
|
668
|
-
localStorage.setItem('token', '');
|
669
|
-
localStorage.removeItem('userRole');
|
670
|
-
localStorage.removeItem('userId');
|
671
|
-
localStorage.removeItem('companyId');
|
672
|
-
localStorage.removeItem('companyRole');
|
673
|
-
}, diff);
|
674
|
-
console.log(diff, 'Remaining Token expire time');
|
675
|
-
}
|
676
|
-
}
|
677
|
-
};
|
678
|
-
React.useEffect(function () {
|
679
|
-
removeToken(token);
|
680
|
-
}, [token]);
|
681
|
-
return (React.createElement(ConnectionContext.Provider, { value: {
|
682
|
-
connection: { post: post, put: put, get: get, patch: patch, delete: del, updateToken: updateToken, token: token, removeToken: removeToken, statServerUrl: statServerUrl },
|
683
|
-
} }, children));
|
684
|
-
};
|
685
|
-
var useConnection = function () {
|
686
|
-
var context = React.useContext(ConnectionContext);
|
687
|
-
return context.connection;
|
688
|
-
};
|
689
|
-
|
690
|
-
var UserContext = React.createContext({
|
691
|
-
setUserInfo: function () { },
|
692
|
-
removeUserInfo: function () { },
|
693
|
-
IsAuthenticated: function (tkn) { return false; },
|
694
|
-
isTokenExpired: false,
|
695
|
-
setIsTokenExpired: function (val) { },
|
696
|
-
});
|
697
|
-
var UserInformationContextProvider = function (_a) {
|
698
|
-
var children = _a.children;
|
699
|
-
var token = useConnection().token;
|
700
|
-
var _b = React.useState(false), isTokenExpired = _b[0], setIsTokenExpired = _b[1];
|
701
|
-
var initialUserProps = {
|
702
|
-
id: localStorage.getItem('userId') ? localStorage.getItem('userId') : process.env.STORYBOOK_USER_ID ? process.env.STORYBOOK_USER_ID : '',
|
703
|
-
userRole: localStorage.getItem('userRole') ? localStorage.getItem('userRole') : process.env.STORYBOOK_USER_ROLE ? process.env.STORYBOOK_USER_ROLE : '',
|
704
|
-
companyRole: localStorage.getItem('companyRole')
|
705
|
-
? localStorage.getItem('companyRole')
|
706
|
-
: process.env.STORYBOOK_COMPANY_ROLE ? process.env.STORYBOOK_COMPANY_ROLE : '',
|
707
|
-
companyId: localStorage.getItem('companyId')
|
708
|
-
? parseInt(localStorage.getItem('companyId'))
|
709
|
-
: process.env.STORYBOOK_COMPANY_ID ? parseInt(process.env.STORYBOOK_COMPANY_ID) : -1,
|
710
|
-
companyLogo: localStorage.getItem('companyLogo')
|
711
|
-
? localStorage.getItem('companyLogo')
|
712
|
-
: process.env.STORYBOOK_COMPANY_LOGO ? process.env.STORYBOOK_COMPANY_LOGO : '',
|
713
|
-
companyName: localStorage.getItem('companyName')
|
714
|
-
? localStorage.getItem('companyName')
|
715
|
-
: process.env.STORYBOOK_COMPANY_NAME ? process.env.STORYBOOK_COMPANY_NAME : '',
|
716
|
-
companyState: localStorage.getItem('companyState')
|
717
|
-
? parseInt(localStorage.getItem('companyState'))
|
718
|
-
: process.env.STORYBOOK_COMPANY_STATE ? parseInt(process.env.STORYBOOK_COMPANY_STATE) : 0,
|
719
|
-
};
|
720
|
-
var _c = React.useState(initialUserProps), userInfoState = _c[0], setUserInfoState = _c[1];
|
721
|
-
var setUserInfo = function (value) {
|
722
|
-
var state = (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) === 1 ? userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState : 0;
|
723
|
-
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;
|
724
|
-
if (id) {
|
725
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { id: id })); });
|
726
|
-
localStorage.setItem('userId', id);
|
727
|
-
}
|
728
|
-
if (userRole) {
|
729
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { userRole: userRole })); });
|
730
|
-
localStorage.setItem('userRole', userRole);
|
731
|
-
}
|
732
|
-
if (companyId) {
|
733
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyId: companyId })); });
|
734
|
-
localStorage.setItem('companyId', companyId + '');
|
735
|
-
}
|
736
|
-
if (companyLogo) {
|
737
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: companyLogo })); });
|
738
|
-
localStorage.setItem('companyLogo', companyLogo);
|
739
|
-
}
|
740
|
-
else {
|
741
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyLogo: '' })); });
|
742
|
-
localStorage.setItem('companyLogo', '');
|
743
|
-
}
|
744
|
-
if (companyName) {
|
745
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyName: companyName })); });
|
746
|
-
localStorage.setItem('companyName', companyName);
|
747
|
-
}
|
748
|
-
if (userRole) {
|
749
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyRole: companyRole })); });
|
750
|
-
localStorage.setItem('companyRole', companyRole);
|
751
|
-
}
|
752
|
-
setUserInfoState(function (prev) { return (__assign(__assign({}, prev), { companyState: companyState })); });
|
753
|
-
localStorage.setItem('companyState', companyState + '');
|
754
|
-
};
|
755
|
-
var IsAuthenticated = React.useCallback(function (tokenNew) {
|
756
|
-
var tokenVal;
|
757
|
-
if (tokenNew) {
|
758
|
-
tokenVal = tokenNew;
|
759
|
-
}
|
760
|
-
else if (token) {
|
761
|
-
tokenVal = token;
|
762
|
-
}
|
763
|
-
else {
|
764
|
-
tokenVal = localStorage.getItem('token');
|
765
|
-
if (tokenVal === '') {
|
766
|
-
if (history.length !== 1) {
|
767
|
-
setIsTokenExpired(true);
|
768
|
-
}
|
769
|
-
}
|
770
|
-
}
|
771
|
-
try {
|
772
|
-
if (tokenVal) {
|
773
|
-
var exp = o(tokenVal).exp;
|
774
|
-
return Date.now() < exp * 1000;
|
775
|
-
}
|
776
|
-
return false;
|
777
|
-
}
|
778
|
-
catch (err) {
|
779
|
-
return false;
|
780
|
-
}
|
781
|
-
}, [token]);
|
782
|
-
var removeUserInfo = function () {
|
783
|
-
localStorage.removeItem('userId');
|
784
|
-
localStorage.removeItem('userRole');
|
785
|
-
localStorage.removeItem('companyId');
|
786
|
-
localStorage.removeItem('companyRole');
|
787
|
-
localStorage.removeItem('companyName');
|
788
|
-
localStorage.removeItem('companyState');
|
789
|
-
localStorage.removeItem('companyLogo');
|
790
|
-
setUserInfoState(initialUserProps);
|
791
|
-
};
|
792
|
-
return (React.createElement(UserContext.Provider, { value: {
|
793
|
-
userInfoState: userInfoState,
|
794
|
-
setUserInfo: setUserInfo,
|
795
|
-
removeUserInfo: removeUserInfo,
|
796
|
-
IsAuthenticated: IsAuthenticated,
|
797
|
-
isTokenExpired: isTokenExpired,
|
798
|
-
setIsTokenExpired: setIsTokenExpired,
|
799
|
-
} }, children));
|
800
|
-
};
|
801
|
-
var useUserContext = function () {
|
802
|
-
return React.useContext(UserContext);
|
803
|
-
};
|
804
|
-
|
805
|
-
var SettingsContext = React.createContext({
|
806
|
-
isTransferFrozen: false,
|
807
|
-
setTransferFrozen: function (value) { },
|
808
|
-
});
|
809
|
-
var SettingsContextProvider = function (_a) {
|
810
|
-
var children = _a.children;
|
811
|
-
var _b = React.useState(false), isTransferFrozen = _b[0], setIsTransferFrozen = _b[1];
|
812
|
-
var setTransferFrozen = function (value) {
|
813
|
-
setIsTransferFrozen(value);
|
814
|
-
};
|
815
|
-
return (React.createElement(SettingsContext.Provider, { value: {
|
816
|
-
isTransferFrozen: isTransferFrozen,
|
817
|
-
setTransferFrozen: setTransferFrozen,
|
818
|
-
} }, children));
|
819
|
-
};
|
820
|
-
var useSettingsContext = function () {
|
821
|
-
return React.useContext(SettingsContext);
|
822
|
-
};
|
823
|
-
|
824
516
|
var Search$2 = antd.Input.Search;
|
825
517
|
var CompanyManagementComponent = function (props) {
|
826
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
518
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, post = props.post, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
827
519
|
var _a = React.useState(), totalCompany = _a[0], setTotalCompany = _a[1];
|
828
520
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
829
521
|
var _c = React.useState([]), tableData = _c[0], setTableData = _c[1];
|
@@ -837,7 +529,6 @@ var CompanyManagementComponent = function (props) {
|
|
837
529
|
var _k = React.useState(""), sortOrder = _k[0], setSortOrder = _k[1];
|
838
530
|
var _l = React.useState(""), sortField = _l[0], setSortField = _l[1];
|
839
531
|
var ability = useAbilityContext();
|
840
|
-
var post = useConnection().post;
|
841
532
|
document.addEventListener("mousedown", function (event) {
|
842
533
|
var organisationFilterArea1 = document.querySelector(".filter-bar");
|
843
534
|
var organisationFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -1170,7 +861,7 @@ var CompanyManagementComponent = function (props) {
|
|
1170
861
|
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";
|
1171
862
|
styleInject(css_248z$v);
|
1172
863
|
|
1173
|
-
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";
|
864
|
+
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";
|
1174
865
|
styleInject(css_248z$u);
|
1175
866
|
|
1176
867
|
exports.UserManagementColumns = void 0;
|
@@ -6136,7 +5827,7 @@ var Projection = /** @class */ (function () {
|
|
6136
5827
|
|
6137
5828
|
var AddNewCompanyComponent = function (props) {
|
6138
5829
|
var _a;
|
6139
|
-
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;
|
5830
|
+
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;
|
6140
5831
|
var formOne = antd.Form.useForm()[0];
|
6141
5832
|
var formTwo = antd.Form.useForm()[0];
|
6142
5833
|
var _b = React.useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
@@ -6925,7 +6616,7 @@ var css_248z$t = ".company-profile {\n padding: 0px 50px; }\n .company-profile
|
|
6925
6616
|
styleInject(css_248z$t);
|
6926
6617
|
|
6927
6618
|
var CompanyProfileComponent = function (props) {
|
6928
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit, regionField = props.regionField, systemType = props.systemType;
|
6619
|
+
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;
|
6929
6620
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6930
6621
|
var _b = React.useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6931
6622
|
var _c = React.useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -7358,7 +7049,7 @@ styleInject(css_248z$s);
|
|
7358
7049
|
|
7359
7050
|
var Search$1 = antd.Input.Search;
|
7360
7051
|
var ProgrammeManagementComponent = function (props) {
|
7361
|
-
var t = props.t, visibleColumns = props.visibleColumns, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
|
7052
|
+
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;
|
7362
7053
|
var _a = useConnection(); _a.get; _a.delete; var post = _a.post;
|
7363
7054
|
var _b = React.useState(), totalProgramme = _b[0], setTotalProgramme = _b[1];
|
7364
7055
|
var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -7743,7 +7434,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7743
7434
|
React.createElement("div", { className: "filter-section" },
|
7744
7435
|
React.createElement("div", { className: "search-filter" },
|
7745
7436
|
React.createElement(antd.Checkbox, { className: "label", onChange: function (v) {
|
7746
|
-
if (
|
7437
|
+
if (userInfoState.companyRole === exports.CompanyRole.MINISTRY) {
|
7747
7438
|
if (v.target.checked) {
|
7748
7439
|
setMinistryLevelFilter(true);
|
7749
7440
|
}
|
@@ -7760,7 +7451,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7760
7451
|
}
|
7761
7452
|
: undefined);
|
7762
7453
|
}
|
7763
|
-
} },
|
7454
|
+
} }, userInfoState.companyRole === exports.CompanyRole.MINISTRY
|
7764
7455
|
? t("view:ministryLevel")
|
7765
7456
|
: t("view:seeMine"))),
|
7766
7457
|
React.createElement("div", { className: "search-bar" },
|
@@ -13541,7 +13232,7 @@ var sectoralScopes = {
|
|
13541
13232
|
};
|
13542
13233
|
var ProgrammeCreationComponent = function (props) {
|
13543
13234
|
var _a, _b, _c;
|
13544
|
-
var useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13235
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13545
13236
|
var t = translator.t;
|
13546
13237
|
var state = useLocation().state;
|
13547
13238
|
var formOne = antd.Form.useForm()[0];
|
@@ -14606,7 +14297,7 @@ var ChangePasswordModel = function (props) {
|
|
14606
14297
|
|
14607
14298
|
var AddNewUserComponent = function (props) {
|
14608
14299
|
var _a, _b, _c, _d, _e, _f;
|
14609
|
-
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
|
14300
|
+
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;
|
14610
14301
|
var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete, get = _g.get;
|
14611
14302
|
var formOne = antd.Form.useForm()[0];
|
14612
14303
|
var state = useLocation().state;
|
@@ -15024,7 +14715,7 @@ var LanguageSelection = function (props) {
|
|
15024
14715
|
};
|
15025
14716
|
|
15026
14717
|
var UserProfileComponent = function (props) {
|
15027
|
-
var t = props.t, i18n = props.i18n, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin;
|
14718
|
+
var t = props.t, i18n = props.i18n, useConnection = props.useConnection, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin, useUserContext = props.useUserContext;
|
15028
14719
|
var get = useConnection().get;
|
15029
14720
|
var _a = React.useState(undefined), organisationDetails = _a[0], setOrganisationDetails = _a[1];
|
15030
14721
|
var _b = React.useState(undefined), userDetails = _b[0], setUserDetails = _b[1];
|
@@ -15192,7 +14883,7 @@ styleInject(css_248z$n);
|
|
15192
14883
|
|
15193
14884
|
var Search = antd.Input.Search;
|
15194
14885
|
var UserManagementComponent = function (props) {
|
15195
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser;
|
14886
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useConnection = props.useConnection, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser, userInfoState = props.userInfoState;
|
15196
14887
|
antd.Form.useForm()[0];
|
15197
14888
|
var _a = useConnection(), post = _a.post, del = _a.delete;
|
15198
14889
|
var _b = React.useState(), totalUser = _b[0], setTotalUser = _b[1];
|
@@ -15214,7 +14905,6 @@ var UserManagementComponent = function (props) {
|
|
15214
14905
|
var _s = React.useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
|
15215
14906
|
var _t = React.useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
15216
14907
|
var ability = useAbilityContext();
|
15217
|
-
var userInfoState = useUserContext().userInfoState;
|
15218
14908
|
document.addEventListener("mousedown", function (event) {
|
15219
14909
|
var userFilterArea1 = document.querySelector(".filter-bar");
|
15220
14910
|
var userFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -15735,7 +15425,7 @@ var Loading = function () {
|
|
15735
15425
|
};
|
15736
15426
|
|
15737
15427
|
var InvestmentCreationComponent = function (props) {
|
15738
|
-
var t = props.t, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15428
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
15739
15429
|
var state = useLocation().state;
|
15740
15430
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
15741
15431
|
var formOne = antd.Form.useForm()[0];
|
@@ -15750,7 +15440,6 @@ var InvestmentCreationComponent = function (props) {
|
|
15750
15440
|
var _h = React.useState([]), instrument = _h[0], setInstrument = _h[1];
|
15751
15441
|
var _j = React.useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
15752
15442
|
var _k = React.useState(), govData = _k[0], setGovData = _k[1];
|
15753
|
-
var userInfoState = useUserContext().userInfoState;
|
15754
15443
|
var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
|
15755
15444
|
label: addSpaces(Object.values(exports.Instrument)[index]),
|
15756
15445
|
value: Object.values(exports.Instrument)[index],
|
@@ -16367,7 +16056,7 @@ var InvestmentActionModel = function (props) {
|
|
16367
16056
|
};
|
16368
16057
|
|
16369
16058
|
var InvestmentManagementComponent = function (props) {
|
16370
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16059
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16371
16060
|
var t = translator.t;
|
16372
16061
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
16373
16062
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
@@ -16900,7 +16589,7 @@ var css_248z$l = ".steps-actions {\n display: flex;\n flex-direction: row-reve
|
|
16900
16589
|
styleInject(css_248z$l);
|
16901
16590
|
|
16902
16591
|
var SupportCreationComponent = function (props) {
|
16903
|
-
var t = props.t, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16592
|
+
var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16904
16593
|
useLocation().state;
|
16905
16594
|
var _a = React.useState(); _a[0]; _a[1];
|
16906
16595
|
var formOne = antd.Form.useForm()[0];
|
@@ -16913,7 +16602,6 @@ var SupportCreationComponent = function (props) {
|
|
16913
16602
|
var _f = React.useState([]), organisationsList = _f[0], setOrganisationList = _f[1];
|
16914
16603
|
var _g = React.useState([]), instrument = _g[0], setInstrument = _g[1];
|
16915
16604
|
var _h = React.useState(); _h[0]; var setStepOneData = _h[1];
|
16916
|
-
var userInfoState = useUserContext().userInfoState;
|
16917
16605
|
var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
|
16918
16606
|
label: addSpaces(Object.values(exports.Instrument)[index]),
|
16919
16607
|
value: Object.values(exports.Instrument)[index],
|
@@ -17256,7 +16944,7 @@ var SupportCreationComponent = function (props) {
|
|
17256
16944
|
};
|
17257
16945
|
|
17258
16946
|
var SupportManagementComponent = function (props) {
|
17259
|
-
var translator = props.translator; props.onNavigateToProgrammeView; var enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
16947
|
+
var translator = props.translator, useConnection = props.useConnection; props.onNavigateToProgrammeView; var useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
17260
16948
|
var t = translator.t;
|
17261
16949
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
17262
16950
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
@@ -17758,7 +17446,7 @@ var css_248z$k = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[valu
|
|
17758
17446
|
styleInject(css_248z$k);
|
17759
17447
|
|
17760
17448
|
var NdcActionManagementComponent = function (props) {
|
17761
|
-
var t = props.t, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17449
|
+
var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17762
17450
|
var _a = React.useState(true), checkAll = _a[0], setCheckAll = _a[1];
|
17763
17451
|
var _b = React.useState([]), tableData = _b[0], setTableData = _b[1];
|
17764
17452
|
var _c = React.useState(), totalProgramme = _c[0], setTotalProgramme = _c[1];
|
@@ -19117,7 +18805,7 @@ var GenderParity = function (props) {
|
|
19117
18805
|
};
|
19118
18806
|
|
19119
18807
|
var Assessment = function (props) {
|
19120
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18808
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
|
19121
18809
|
translator.setDefaultNamespace("coBenifits");
|
19122
18810
|
var t = translator.t;
|
19123
18811
|
var form1 = antd.Form.useForm()[0];
|
@@ -21522,7 +21210,7 @@ var SocialEnvironmentalRisk = function (props) {
|
|
21522
21210
|
};
|
21523
21211
|
|
21524
21212
|
var CoBenifitsComponent = function (props) {
|
21525
|
-
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;
|
21213
|
+
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;
|
21526
21214
|
var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
21527
21215
|
var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
21528
21216
|
var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
@@ -21596,7 +21284,7 @@ var CoBenifitsComponent = function (props) {
|
|
21596
21284
|
label: t("coBenifits:assessment"),
|
21597
21285
|
key: "7",
|
21598
21286
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
21599
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, translator: translator })),
|
21287
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
|
21600
21288
|
},
|
21601
21289
|
{
|
21602
21290
|
label: t("coBenifits:socialEnvironmentalRisk"),
|
@@ -21765,7 +21453,7 @@ var CoBenifitsComponent = function (props) {
|
|
21765
21453
|
};
|
21766
21454
|
|
21767
21455
|
var AddNdcActionComponent = function (props) {
|
21768
|
-
var useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21456
|
+
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21769
21457
|
translator.setDefaultNamespace("ndcAction");
|
21770
21458
|
var t = translator.t;
|
21771
21459
|
var _a = React.useState(1), current = _a[0], setCurrent = _a[1];
|
@@ -21907,7 +21595,7 @@ var AddNdcActionComponent = function (props) {
|
|
21907
21595
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
21908
21596
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
21909
21597
|
? t("ndcAction:next")
|
21910
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, translator: translator }))),
|
21598
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
|
21911
21599
|
},
|
21912
21600
|
];
|
21913
21601
|
if (isProjectReportsVisible()) {
|
@@ -22044,7 +21732,7 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
|
|
22044
21732
|
var NdcActionViewComponent = function (props) {
|
22045
21733
|
var _a;
|
22046
21734
|
var _b, _c;
|
22047
|
-
var useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
21735
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
22048
21736
|
translator.setDefaultNamespace("ndcAction");
|
22049
21737
|
var t = translator.t;
|
22050
21738
|
var userInfoState = useUserContext().userInfoState;
|
@@ -22543,7 +22231,7 @@ var NdcActionViewComponent = function (props) {
|
|
22543
22231
|
React.createElement(antd.Card, { className: "card-container" },
|
22544
22232
|
React.createElement("div", { className: "co-benifits-view" },
|
22545
22233
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
22546
|
-
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 })))))))));
|
22234
|
+
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 })))))))));
|
22547
22235
|
};
|
22548
22236
|
|
22549
22237
|
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";
|
@@ -22696,7 +22384,7 @@ var TransferActionModel = function (props) {
|
|
22696
22384
|
};
|
22697
22385
|
|
22698
22386
|
var CreditTransferComponent = function (props) {
|
22699
|
-
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22387
|
+
var useConnection = props.useConnection, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext, translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22700
22388
|
var userInfoState = useUserContext().userInfoState;
|
22701
22389
|
var t = translator.t;
|
22702
22390
|
var statusOptions = Object.keys(exports.CreditTransferStage).map(function (k, index) { return ({
|
@@ -23631,8 +23319,8 @@ var MapStatsComponent = function (props) {
|
|
23631
23319
|
|
23632
23320
|
var RangePicker$2 = antd.DatePicker.RangePicker;
|
23633
23321
|
var MrvDashboardComponent = function (props) {
|
23634
|
-
var Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
23635
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
23322
|
+
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;
|
23323
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
23636
23324
|
var _c = React.useState({}), data = _c[0], setData = _c[1];
|
23637
23325
|
var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
|
23638
23326
|
var userInfoState = useUserContext().userInfoState;
|
@@ -24115,7 +23803,7 @@ var MrvDashboardComponent = function (props) {
|
|
24115
23803
|
_e.label = 1;
|
24116
23804
|
case 1:
|
24117
23805
|
_e.trys.push([1, 3, 4, 5]);
|
24118
|
-
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined,
|
23806
|
+
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined, process.env.REACT_APP_STAT_URL)];
|
24119
23807
|
case 2:
|
24120
23808
|
response = _e.sent();
|
24121
23809
|
console.log("Response", response);
|
@@ -25366,8 +25054,8 @@ var RegistryBarChartsStatComponent = function (props) {
|
|
25366
25054
|
|
25367
25055
|
var RangePicker$1 = antd.DatePicker.RangePicker;
|
25368
25056
|
var RegistryDashboardComponent = function (props) {
|
25369
|
-
var Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
25370
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
25057
|
+
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;
|
25058
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
25371
25059
|
var userInfoState = useUserContext().userInfoState;
|
25372
25060
|
var _c = React.useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
|
25373
25061
|
var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
|
@@ -25814,7 +25502,7 @@ var RegistryDashboardComponent = function (props) {
|
|
25814
25502
|
_253.label = 1;
|
25815
25503
|
case 1:
|
25816
25504
|
_253.trys.push([1, 3, 4, 5]);
|
25817
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined,
|
25505
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined, process.env.REACT_APP_STAT_URL)];
|
25818
25506
|
case 2:
|
25819
25507
|
response = _253.sent();
|
25820
25508
|
totalCreditsCertifiedStats = void 0;
|
@@ -26091,7 +25779,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26091
25779
|
_77.label = 1;
|
26092
25780
|
case 1:
|
26093
25781
|
_77.trys.push([1, 3, 4, 5]);
|
26094
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined,
|
25782
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined, process.env.REACT_APP_STAT_URL)];
|
26095
25783
|
case 2:
|
26096
25784
|
response = _77.sent();
|
26097
25785
|
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;
|
@@ -26184,7 +25872,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26184
25872
|
_188.label = 1;
|
26185
25873
|
case 1:
|
26186
25874
|
_188.trys.push([1, 3, 4, 5]);
|
26187
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined,
|
25875
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined, process.env.REACT_APP_STAT_URL)];
|
26188
25876
|
case 2:
|
26189
25877
|
response = _188.sent();
|
26190
25878
|
programmeByStatusAuthAggregationResponse = void 0;
|
@@ -27151,7 +26839,7 @@ var getNdcActionStatusTagType = function (status) {
|
|
27151
26839
|
};
|
27152
26840
|
|
27153
26841
|
var NdcDetailsComponent = function (props) {
|
27154
|
-
var t = props.t;
|
26842
|
+
var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext;
|
27155
26843
|
var RangePicker = antd.DatePicker.RangePicker;
|
27156
26844
|
var _a = React.useState([]), ndcActionsList = _a[0], setNdcActionsList = _a[1];
|
27157
26845
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28126,7 +27814,7 @@ var ProgrammeIssueForm = function (props) {
|
|
28126
27814
|
};
|
28127
27815
|
|
28128
27816
|
var ProgrammeRetireForm = function (props) {
|
28129
|
-
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;
|
27817
|
+
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;
|
28130
27818
|
var t = translator.t;
|
28131
27819
|
var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
28132
27820
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28502,7 +28190,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
28502
28190
|
};
|
28503
28191
|
|
28504
28192
|
var ProgrammeTransferForm = function (props) {
|
28505
|
-
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;
|
28193
|
+
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;
|
28506
28194
|
var t = translator.t;
|
28507
28195
|
var _b = React.useState(undefined), popupError = _b[0], setPopupError = _b[1];
|
28508
28196
|
var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -28733,7 +28421,7 @@ var css_248z$5 = ".ndc-action-body {\n display: flex;\n flex-direction: column
|
|
28733
28421
|
styleInject(css_248z$5);
|
28734
28422
|
|
28735
28423
|
var NdcActionBody = function (props) {
|
28736
|
-
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;
|
28424
|
+
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;
|
28737
28425
|
var t = translator.t;
|
28738
28426
|
var userInfoState = useUserContext().userInfoState;
|
28739
28427
|
var fileInputMonitoringRef = React.useRef(null);
|
@@ -29169,7 +28857,7 @@ var css_248z$4 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
|
|
29169
28857
|
styleInject(css_248z$4);
|
29170
28858
|
|
29171
28859
|
var ProgrammeDocuments = function (props) {
|
29172
|
-
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;
|
28860
|
+
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;
|
29173
28861
|
var t = translator.t;
|
29174
28862
|
var userInfoState = useUserContext().userInfoState;
|
29175
28863
|
var _a = useConnection(); _a.delete; var post = _a.post;
|
@@ -30120,7 +29808,7 @@ var GHGUserActionConfirmationModel = function (props) {
|
|
30120
29808
|
};
|
30121
29809
|
|
30122
29810
|
var GHGEmissionsComponent = function (props) {
|
30123
|
-
var t = props.t;
|
29811
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection;
|
30124
29812
|
var userInfoState = useUserContext().userInfoState;
|
30125
29813
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
30126
29814
|
var _b = useConnection(), get = _b.get, post = _b.post;
|
@@ -31932,7 +31620,7 @@ var ProjectionTypes = {
|
|
31932
31620
|
};
|
31933
31621
|
|
31934
31622
|
var GHGProjectionsComponent = function (props) {
|
31935
|
-
var t = props.t;
|
31623
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection;
|
31936
31624
|
var userInfoState = useUserContext().userInfoState;
|
31937
31625
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
31938
31626
|
var _b = useConnection(); _b.put; var get = _b.get, post = _b.post;
|
@@ -34027,7 +33715,7 @@ var emissionComparisonOptionsSub = function (labels, chartColors) {
|
|
34027
33715
|
|
34028
33716
|
var RangePicker = antd.DatePicker.RangePicker;
|
34029
33717
|
var GHGDashboardComponent = function (props) {
|
34030
|
-
var t = props.t, Chart = props.Chart, ButtonGroup = props.ButtonGroup, Link = props.Link, isMultipleDashboardsVisible = props.isMultipleDashboardsVisible;
|
33718
|
+
var t = props.t, useUserContext = props.useUserContext, useConnection = props.useConnection, Chart = props.Chart, ButtonGroup = props.ButtonGroup, Link = props.Link, isMultipleDashboardsVisible = props.isMultipleDashboardsVisible;
|
34031
33719
|
var _a = useConnection(); _a.get; var post = _a.post; _a.delete;
|
34032
33720
|
var userInfoState = useUserContext().userInfoState;
|
34033
33721
|
var _b = React.useState(moment().year()), endYear = _b[0], setEndYear = _b[1];
|
@@ -34419,7 +34107,6 @@ exports.CoBenifitsComponent = CoBenifitsComponent;
|
|
34419
34107
|
exports.Company = Company;
|
34420
34108
|
exports.CompanyManagementComponent = CompanyManagementComponent;
|
34421
34109
|
exports.CompanyProfileComponent = CompanyProfileComponent;
|
34422
|
-
exports.ConnectionContextProvider = ConnectionContextProvider;
|
34423
34110
|
exports.CreditTransferComponent = CreditTransferComponent;
|
34424
34111
|
exports.DevBGColor = DevBGColor;
|
34425
34112
|
exports.DevColor = DevColor;
|
@@ -34467,8 +34154,6 @@ exports.RejectDocumentationConfirmationModel = RejectDocumentationConfirmationMo
|
|
34467
34154
|
exports.RoleIcon = RoleIcon;
|
34468
34155
|
exports.RootBGColor = RootBGColor;
|
34469
34156
|
exports.RootColor = RootColor;
|
34470
|
-
exports.SettingsContext = SettingsContext;
|
34471
|
-
exports.SettingsContextProvider = SettingsContextProvider;
|
34472
34157
|
exports.StasticCard = StasticCard;
|
34473
34158
|
exports.SupportCreationComponent = SupportCreationComponent;
|
34474
34159
|
exports.SupportManagementComponent = SupportManagementComponent;
|
@@ -34477,8 +34162,6 @@ exports.TooltipColor = TooltipColor;
|
|
34477
34162
|
exports.TransferActionModel = TransferActionModel;
|
34478
34163
|
exports.UnitField = UnitField;
|
34479
34164
|
exports.User = User;
|
34480
|
-
exports.UserContext = UserContext;
|
34481
|
-
exports.UserInformationContextProvider = UserInformationContextProvider;
|
34482
34165
|
exports.UserManagementComponent = UserManagementComponent;
|
34483
34166
|
exports.UserProfileComponent = UserProfileComponent;
|
34484
34167
|
exports.UserRoleIcon = UserRoleIcon;
|
@@ -34520,7 +34203,4 @@ exports.ndcActionTypeList = ndcActionTypeList;
|
|
34520
34203
|
exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;
|
34521
34204
|
exports.sumArray = sumArray;
|
34522
34205
|
exports.titleList = titleList;
|
34523
|
-
exports.useConnection = useConnection;
|
34524
|
-
exports.useSettingsContext = useSettingsContext;
|
34525
|
-
exports.useUserContext = useUserContext;
|
34526
34206
|
//# sourceMappingURL=index.js.map
|