@undp/carbon-library 1.0.289-CARBON-366.0 → 1.0.289-CARBON-347.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1266 -526
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
- package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
- package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
- package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
- package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
- package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +10 -0
- package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
- package/dist/cjs/types/Context/index.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +3 -0
- package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +4 -0
- package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +12 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +1260 -528
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
- package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
- package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
- package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
- package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
- package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +10 -0
- package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
- package/dist/esm/types/Context/index.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +3 -0
- package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +4 -0
- package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +12 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +27 -8
- package/dist/locales/i18n/programme/en.json +5 -3
- package/package.json +29 -2
package/dist/cjs/index.js
CHANGED
@@ -5,6 +5,7 @@ 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');
|
8
9
|
var PhoneInput = require('react-phone-number-input');
|
9
10
|
var validator = require('validator');
|
10
11
|
var classTransformer = require('class-transformer');
|
@@ -14,7 +15,6 @@ var mapboxgl = require('mapbox-gl');
|
|
14
15
|
require('mapbox-gl/dist/mapbox-gl.css');
|
15
16
|
require('antd/dist/antd.css');
|
16
17
|
var XLSX = require('xlsx');
|
17
|
-
var axios = require('axios');
|
18
18
|
|
19
19
|
function _interopNamespaceDefault(e) {
|
20
20
|
var n = Object.create(null);
|
@@ -513,9 +513,317 @@ 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
|
+
|
516
824
|
var Search$2 = antd.Input.Search;
|
517
825
|
var CompanyManagementComponent = function (props) {
|
518
|
-
var t = props.t, useAbilityContext = props.useAbilityContext,
|
826
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
519
827
|
var _a = React.useState(), totalCompany = _a[0], setTotalCompany = _a[1];
|
520
828
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
521
829
|
var _c = React.useState([]), tableData = _c[0], setTableData = _c[1];
|
@@ -530,6 +838,7 @@ var CompanyManagementComponent = function (props) {
|
|
530
838
|
var _l = React.useState(""), sortField = _l[0], setSortField = _l[1];
|
531
839
|
var _m = React.useState(), dataQuery = _m[0], setDataQuery = _m[1];
|
532
840
|
var ability = useAbilityContext();
|
841
|
+
var post = useConnection().post;
|
533
842
|
document.addEventListener("mousedown", function (event) {
|
534
843
|
var organisationFilterArea1 = document.querySelector(".filter-bar");
|
535
844
|
var organisationFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -917,7 +1226,7 @@ var CompanyManagementComponent = function (props) {
|
|
917
1226
|
var css_248z$w = ".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";
|
918
1227
|
styleInject(css_248z$w);
|
919
1228
|
|
920
|
-
var css_248z$v = "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.download-data-btn {\n margin-left: 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";
|
1229
|
+
var css_248z$v = "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 body .download-data-btn {\n margin-left: 15px; }\n";
|
921
1230
|
styleInject(css_248z$v);
|
922
1231
|
|
923
1232
|
exports.UserManagementColumns = void 0;
|
@@ -989,6 +1298,11 @@ exports.InvestmentCreationType = void 0;
|
|
989
1298
|
InvestmentCreationType["EXISTING"] = "Existing";
|
990
1299
|
InvestmentCreationType["NEW"] = "New";
|
991
1300
|
})(exports.InvestmentCreationType || (exports.InvestmentCreationType = {}));
|
1301
|
+
exports.InvestmentOwnershipType = void 0;
|
1302
|
+
(function (InvestmentOwnershipType) {
|
1303
|
+
InvestmentOwnershipType["PROJECT"] = "Project";
|
1304
|
+
InvestmentOwnershipType["NATIONAL"] = "National";
|
1305
|
+
})(exports.InvestmentOwnershipType || (exports.InvestmentOwnershipType = {}));
|
992
1306
|
exports.InvestmentStream = void 0;
|
993
1307
|
(function (InvestmentStream) {
|
994
1308
|
InvestmentStream["CLIMATE_FINANCE"] = "ClimateFinance";
|
@@ -5886,7 +6200,7 @@ var Projection = /** @class */ (function () {
|
|
5886
6200
|
|
5887
6201
|
var AddNewCompanyComponent = function (props) {
|
5888
6202
|
var _a;
|
5889
|
-
var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize,
|
6203
|
+
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;
|
5890
6204
|
var formOne = antd.Form.useForm()[0];
|
5891
6205
|
var formTwo = antd.Form.useForm()[0];
|
5892
6206
|
var _b = React.useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
@@ -6772,7 +7086,7 @@ var CompanyDetailsComponent = function (props) {
|
|
6772
7086
|
};
|
6773
7087
|
|
6774
7088
|
var CompanyProfileComponent = function (props) {
|
6775
|
-
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation,
|
7089
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, useLocation = props.useLocation, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit; props.regionField; var systemType = props.systemType;
|
6776
7090
|
var _a = useConnection(), get = _a.get, put = _a.put, post = _a.post;
|
6777
7091
|
var _b = React.useState(undefined), companyDetails = _b[0], setCompanyDetails = _b[1];
|
6778
7092
|
var _c = React.useState(undefined), userDetails = _c[0], setUserDetails = _c[1];
|
@@ -7116,7 +7430,7 @@ styleInject(css_248z$s);
|
|
7116
7430
|
|
7117
7431
|
var Search$1 = antd.Input.Search;
|
7118
7432
|
var ProgrammeManagementComponent = function (props) {
|
7119
|
-
var t = props.t, visibleColumns = props.visibleColumns,
|
7433
|
+
var t = props.t, visibleColumns = props.visibleColumns, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddProgramme = props.onClickAddProgramme, enableAddProgramme = props.enableAddProgramme, useAbilityContext = props.useAbilityContext;
|
7120
7434
|
var _a = useConnection(); _a.get; _a.delete; var post = _a.post;
|
7121
7435
|
var _b = React.useState(), totalProgramme = _b[0], setTotalProgramme = _b[1];
|
7122
7436
|
var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -7551,7 +7865,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7551
7865
|
React.createElement("div", { className: "filter-section" },
|
7552
7866
|
React.createElement("div", { className: "search-filter" },
|
7553
7867
|
React.createElement(antd.Checkbox, { className: "label", onChange: function (v) {
|
7554
|
-
if (userInfoState.companyRole === exports.CompanyRole.MINISTRY) {
|
7868
|
+
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) {
|
7555
7869
|
if (v.target.checked) {
|
7556
7870
|
setMinistryLevelFilter(true);
|
7557
7871
|
}
|
@@ -7568,7 +7882,7 @@ var ProgrammeManagementComponent = function (props) {
|
|
7568
7882
|
}
|
7569
7883
|
: undefined);
|
7570
7884
|
}
|
7571
|
-
} }, userInfoState.companyRole === exports.CompanyRole.MINISTRY
|
7885
|
+
} }, (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY
|
7572
7886
|
? t("view:ministryLevel")
|
7573
7887
|
: t("view:seeMine"))),
|
7574
7888
|
React.createElement("div", { className: "search-bar" },
|
@@ -13355,7 +13669,7 @@ var sectoralScopes = {
|
|
13355
13669
|
};
|
13356
13670
|
var ProgrammeCreationComponent = function (props) {
|
13357
13671
|
var _a, _b, _c;
|
13358
|
-
var
|
13672
|
+
var useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
13359
13673
|
var t = translator.t;
|
13360
13674
|
var state = useLocation().state;
|
13361
13675
|
var formOne = antd.Form.useForm()[0];
|
@@ -14420,7 +14734,7 @@ var ChangePasswordModel = function (props) {
|
|
14420
14734
|
|
14421
14735
|
var AddNewUserComponent = function (props) {
|
14422
14736
|
var _a, _b, _c, _d, _e, _f;
|
14423
|
-
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin,
|
14737
|
+
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useLocation = props.useLocation, useAbilityContext = props.useAbilityContext, themeColor = props.themeColor;
|
14424
14738
|
var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete, get = _g.get;
|
14425
14739
|
var formOne = antd.Form.useForm()[0];
|
14426
14740
|
var state = useLocation().state;
|
@@ -14838,7 +15152,7 @@ var LanguageSelection = function (props) {
|
|
14838
15152
|
};
|
14839
15153
|
|
14840
15154
|
var UserProfileComponent = function (props) {
|
14841
|
-
var t = props.t, i18n = props.i18n,
|
15155
|
+
var t = props.t, i18n = props.i18n, onNavigateUpdateUser = props.onNavigateUpdateUser, onNavigateLogin = props.onNavigateLogin;
|
14842
15156
|
var get = useConnection().get;
|
14843
15157
|
var _a = React.useState(undefined), organisationDetails = _a[0], setOrganisationDetails = _a[1];
|
14844
15158
|
var _b = React.useState(undefined), userDetails = _b[0], setUserDetails = _b[1];
|
@@ -14930,7 +15244,7 @@ styleInject(css_248z$n);
|
|
14930
15244
|
|
14931
15245
|
var Search = antd.Input.Search;
|
14932
15246
|
var UserManagementComponent = function (props) {
|
14933
|
-
var t = props.t, useAbilityContext = props.useAbilityContext,
|
15247
|
+
var t = props.t, useAbilityContext = props.useAbilityContext, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser;
|
14934
15248
|
antd.Form.useForm()[0];
|
14935
15249
|
var _a = useConnection(), post = _a.post, del = _a.delete;
|
14936
15250
|
var _b = React.useState(), totalUser = _b[0], setTotalUser = _b[1];
|
@@ -14953,6 +15267,7 @@ var UserManagementComponent = function (props) {
|
|
14953
15267
|
var _t = React.useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
14954
15268
|
var _u = React.useState(), dataQuery = _u[0], setDataQuery = _u[1];
|
14955
15269
|
var ability = useAbilityContext();
|
15270
|
+
var userInfoState = useUserContext().userInfoState;
|
14956
15271
|
document.addEventListener("mousedown", function (event) {
|
14957
15272
|
var userFilterArea1 = document.querySelector(".filter-bar");
|
14958
15273
|
var userFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -15520,7 +15835,7 @@ var UserManagementComponent = function (props) {
|
|
15520
15835
|
React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openDeleteConfirmationModal, errorMsg: errorMsg, loading: loading })));
|
15521
15836
|
};
|
15522
15837
|
|
15523
|
-
var css_248z$m = ".steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: flex-start; }\n\n.investment-title-bar {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 0px 0px 30px 0px; }\n .investment-title-bar .title {\n display: flex;\n flex-direction: column;\n justify-content: space-between; }\n .investment-title-bar .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n .investment-title-bar .flex-display {\n margin-left: 15px; }\n\n.ownership-container {\n padding: 15px 0px; }\n .ownership-container .label {\n color: rgba(58, 53, 65, 0.5); }\n\n.separator {\n padding: 5px;\n color: #d8d8d8; }\n\n.role-group .ant-col-13 {\n max-width: 320px; }\n\n.role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n max-width: 200px; }\n\n.role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n\n.role-group .anticon {\n margin-right: 0.5rem; }\n\n.role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n color: rgba(140, 140, 140, 0.7) !important;\n width: 100% !important; }\n\n.role-group .condition-radio {\n width: 100%;\n text-transform: uppercase; }\n .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.role-group .role-icons {\n margin-right: 5px; }\n\n.investment-management .role-icon {\n padding: 0.5rem 0.6rem; }\n\n.investment-management .ant-tag {\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value
|
15838
|
+
var css_248z$m = ".steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: flex-start; }\n\n.details-part-two .ant-input-number {\n width: 50%;\n margin-left: 15px; }\n\n.investment-title-bar {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 0px 0px 30px 0px; }\n .investment-title-bar .title {\n display: flex;\n flex-direction: column;\n justify-content: space-between; }\n .investment-title-bar .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n .investment-title-bar .flex-display {\n margin-left: 15px; }\n\n.ownership-container {\n padding: 15px 0px; }\n .ownership-container .label {\n color: rgba(58, 53, 65, 0.5); }\n\n.separator {\n padding: 5px;\n color: #d8d8d8; }\n\n.role-group .ant-col-13 {\n max-width: 320px; }\n\n.role-group .condition-radio-container {\n width: 48%;\n text-align: center; }\n .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #ffffff !important;\n border-color: #9155fd !important;\n box-shadow: none;\n max-width: 200px; }\n\n.role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n\n.role-group .anticon {\n margin-right: 0.5rem; }\n\n.role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n color: rgba(140, 140, 140, 0.7) !important;\n width: 100% !important; }\n\n.role-group .condition-radio {\n width: 100%;\n text-transform: uppercase; }\n .role-group .condition-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.role-group .role-icons {\n margin-right: 5px; }\n\n.investment-management .role-icon {\n padding: 0.5rem 0.6rem; }\n\n.investment-management .ant-tag {\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"Rejected\"] + .ant-checkbox-inner {\n background-color: rgba(237, 77, 71, 0.6);\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"Cancelled\"] + .ant-checkbox-inner {\n background-color: rgba(58, 53, 65, 0.4);\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"Accepted\"] + .ant-checkbox-inner {\n background-color: #16b1ff;\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"Pending\"] + .ant-checkbox-inner {\n background-color: rgba(118, 195, 39, 0.6);\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"Recognised\"] + .ant-checkbox-inner {\n background-color: #976ed7;\n border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value=\"NotRecognised\"] + .ant-checkbox-inner {\n background-color: #ffa070;\n border: none; }\n\n.add-programme-main-container .adding-section .form-section .investment-sought-form-container .investment-sought-form .investment-radio-button .ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n width: fit-content; }\n\n.add-programme-main-container .adding-section .form-section .investment-sought-form-container .investment-sought-form .details-part-two .row .ant-picker-large {\n height: 40px !important;\n width: 100%; }\n";
|
15524
15839
|
styleInject(css_248z$m);
|
15525
15840
|
|
15526
15841
|
var Loading = function () {
|
@@ -15540,21 +15855,34 @@ var InsurancePayback;
|
|
15540
15855
|
|
15541
15856
|
var RangePicker$3 = antd.DatePicker.RangePicker;
|
15542
15857
|
var InvestmentCreationComponent = function (props) {
|
15543
|
-
var t = props.t,
|
15858
|
+
var t = props.t, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onNavigateToInvestmentManagementView = props.onNavigateToInvestmentManagementView;
|
15544
15859
|
var state = useLocation().state;
|
15545
15860
|
var _a = React.useState(), data = _a[0], setData = _a[1];
|
15861
|
+
var _b = React.useState({}), companyNames = _b[0], setCompanyNames = _b[1];
|
15862
|
+
var _c = React.useState({}); _c[0]; var setUserOrganization = _c[1];
|
15863
|
+
var _d = React.useState({}), investmentNames = _d[0], setInvestmentNames = _d[1];
|
15864
|
+
var _e = React.useState(), projectData = _e[0], setProjectData = _e[1];
|
15865
|
+
var _f = React.useState(), investmentData = _f[0], setInvestmentData = _f[1];
|
15866
|
+
var _g = React.useState([]), allProjectData = _g[0], setAllProjectData = _g[1];
|
15546
15867
|
var formOne = antd.Form.useForm()[0];
|
15547
15868
|
var formTwo = antd.Form.useForm()[0];
|
15548
15869
|
var post = useConnection().post;
|
15549
|
-
var
|
15550
|
-
var
|
15551
|
-
var
|
15552
|
-
var
|
15553
|
-
var
|
15554
|
-
var
|
15555
|
-
var
|
15556
|
-
var
|
15557
|
-
var
|
15870
|
+
var _h = React.useState(false), loading = _h[0], setLoading = _h[1];
|
15871
|
+
var _j = React.useState("New"), typeCreation = _j[0], setTypeCreation = _j[1];
|
15872
|
+
var _k = React.useState(exports.InvestmentOwnershipType.PROJECT), investmentOwnershipType = _k[0], setInvestmentOwnershipType = _k[1];
|
15873
|
+
var _l = React.useState(false), loadingList = _l[0], setLoadingList = _l[1];
|
15874
|
+
var _m = React.useState(false), loadingInvestment = _m[0], setLoadingInvestment = _m[1];
|
15875
|
+
var _o = React.useState(false), loadingProgData = _o[0], setLoadingProgData = _o[1];
|
15876
|
+
var _p = React.useState(0), current = _p[0], setCurrent = _p[1];
|
15877
|
+
var _q = React.useState(0), currentPercTotal = _q[0], setCurrentPercTotal = _q[1];
|
15878
|
+
var _r = React.useState([]), organisationsList = _r[0], setOrganisationList = _r[1];
|
15879
|
+
var _s = React.useState([]), nationalInvestmentList = _s[0], setNationalInvestmentList = _s[1];
|
15880
|
+
var _t = React.useState([]), instrument = _t[0], setInstrument = _t[1];
|
15881
|
+
var _u = React.useState(), stepOneData = _u[0], setStepOneData = _u[1];
|
15882
|
+
var _v = React.useState(), govData = _v[0], setGovData = _v[1];
|
15883
|
+
var userInfoState = useUserContext().userInfoState;
|
15884
|
+
var _w = React.useState([]), ministrySectoralScope = _w[0], setMinistrySectoralScope = _w[1];
|
15885
|
+
var _x = React.useState({}), prevInvestor = _x[0], setPrevInvestor = _x[1];
|
15558
15886
|
var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
|
15559
15887
|
label: addSpaces(Object.values(exports.Instrument)[index]),
|
15560
15888
|
value: Object.values(exports.Instrument)[index],
|
@@ -15606,52 +15934,225 @@ var InvestmentCreationComponent = function (props) {
|
|
15606
15934
|
}
|
15607
15935
|
});
|
15608
15936
|
}); };
|
15609
|
-
var
|
15610
|
-
var
|
15937
|
+
var getAllProjectData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
15938
|
+
var response, error_2;
|
15939
|
+
return __generator(this, function (_a) {
|
15940
|
+
switch (_a.label) {
|
15941
|
+
case 0:
|
15942
|
+
setLoadingProgData(true);
|
15943
|
+
_a.label = 1;
|
15944
|
+
case 1:
|
15945
|
+
_a.trys.push([1, 5, 6, 7]);
|
15946
|
+
if (!data) return [3 /*break*/, 4];
|
15947
|
+
if (!!(data === null || data === void 0 ? void 0 : data.programmeId)) return [3 /*break*/, 3];
|
15948
|
+
console.log("data non existing", data);
|
15949
|
+
console.log("getting all Project data");
|
15950
|
+
return [4 /*yield*/, post("national/programme/query", {
|
15951
|
+
page: 1,
|
15952
|
+
size: 100,
|
15953
|
+
filterAnd: [
|
15954
|
+
{
|
15955
|
+
key: "currentStage",
|
15956
|
+
operation: "!=",
|
15957
|
+
value: exports.ProgrammeStageUnified.Rejected,
|
15958
|
+
},
|
15959
|
+
],
|
15960
|
+
})];
|
15961
|
+
case 2:
|
15962
|
+
response = _a.sent();
|
15963
|
+
if (response.data) {
|
15964
|
+
setAllProjectData(response === null || response === void 0 ? void 0 : response.data);
|
15965
|
+
console.log("all Project data", response === null || response === void 0 ? void 0 : response.data);
|
15966
|
+
}
|
15967
|
+
return [3 /*break*/, 4];
|
15968
|
+
case 3:
|
15969
|
+
console.log("setting current Project data");
|
15970
|
+
setAllProjectData([data]);
|
15971
|
+
_a.label = 4;
|
15972
|
+
case 4: return [3 /*break*/, 7];
|
15973
|
+
case 5:
|
15974
|
+
error_2 = _a.sent();
|
15975
|
+
console.log("Error in getting all programme data", error_2);
|
15976
|
+
return [3 /*break*/, 7];
|
15977
|
+
case 6:
|
15978
|
+
setLoadingProgData(false);
|
15979
|
+
return [7 /*endfinally*/];
|
15980
|
+
case 7: return [2 /*return*/];
|
15981
|
+
}
|
15982
|
+
});
|
15983
|
+
}); };
|
15984
|
+
var setSelectedProgramme = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
15985
|
+
var _i, allProjectData_1, obj;
|
15986
|
+
return __generator(this, function (_a) {
|
15987
|
+
console.log("setSelectedProgramme", value);
|
15988
|
+
for (_i = 0, allProjectData_1 = allProjectData; _i < allProjectData_1.length; _i++) {
|
15989
|
+
obj = allProjectData_1[_i];
|
15990
|
+
if (obj.programmeId == value) {
|
15991
|
+
setProjectData(obj);
|
15992
|
+
break;
|
15993
|
+
}
|
15994
|
+
}
|
15995
|
+
return [2 /*return*/];
|
15996
|
+
});
|
15997
|
+
}); };
|
15998
|
+
var setSelectedInvestment = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
15999
|
+
return __generator(this, function (_a) {
|
16000
|
+
console.log("setSelectedInvestment", value);
|
16001
|
+
setInvestmentData(investmentNames[value]);
|
16002
|
+
return [2 /*return*/];
|
16003
|
+
});
|
16004
|
+
}); };
|
16005
|
+
var getNationalInvestmentDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
16006
|
+
var optionalFilters, filterAnd, filterOr_1, response, investmentData_1, _i, _a, investment, error_3;
|
15611
16007
|
return __generator(this, function (_b) {
|
15612
16008
|
switch (_b.label) {
|
15613
16009
|
case 0:
|
15614
|
-
|
16010
|
+
setLoadingInvestment(true);
|
15615
16011
|
_b.label = 1;
|
15616
16012
|
case 1:
|
15617
16013
|
_b.trys.push([1, 3, 4, 5]);
|
16014
|
+
optionalFilters = {};
|
15618
16015
|
filterAnd = [];
|
15619
16016
|
filterAnd = [
|
15620
16017
|
{
|
15621
|
-
key: "
|
16018
|
+
key: "category",
|
15622
16019
|
operation: "=",
|
15623
|
-
value: exports.
|
16020
|
+
value: exports.InvestmentOwnershipType.NATIONAL.toString(),
|
16021
|
+
},
|
16022
|
+
{
|
16023
|
+
key: "amount",
|
16024
|
+
operation: ">",
|
16025
|
+
value: 0,
|
15624
16026
|
},
|
15625
16027
|
];
|
15626
16028
|
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.PROGRAMME_DEVELOPER) {
|
15627
16029
|
filterAnd.push({
|
15628
|
-
key: "
|
15629
|
-
operation: "
|
16030
|
+
key: "toCompanyId",
|
16031
|
+
operation: "=",
|
15630
16032
|
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
|
15631
16033
|
});
|
15632
16034
|
}
|
15633
|
-
|
15634
|
-
|
15635
|
-
|
15636
|
-
|
15637
|
-
|
15638
|
-
|
16035
|
+
else if (((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ||
|
16036
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) &&
|
16037
|
+
(data === null || data === void 0 ? void 0 : data.programmeId)) {
|
16038
|
+
filterOr_1 = [];
|
16039
|
+
data.companyId.map(function (id) {
|
16040
|
+
return filterOr_1.push({
|
16041
|
+
key: "toCompanyId",
|
16042
|
+
operation: "=",
|
16043
|
+
value: id,
|
16044
|
+
});
|
15639
16045
|
});
|
16046
|
+
optionalFilters.filterOr = filterOr_1;
|
15640
16047
|
}
|
15641
|
-
return [4 /*yield*/, post("national/
|
16048
|
+
return [4 /*yield*/, post("national/programme/investmentQuery", __assign({ page: 1, size: 100, filterAnd: filterAnd }, optionalFilters))];
|
16049
|
+
case 2:
|
16050
|
+
response = _b.sent();
|
16051
|
+
if (response.data) {
|
16052
|
+
setNationalInvestmentList(response === null || response === void 0 ? void 0 : response.data);
|
16053
|
+
investmentData_1 = {};
|
16054
|
+
for (_i = 0, _a = response === null || response === void 0 ? void 0 : response.data; _i < _a.length; _i++) {
|
16055
|
+
investment = _a[_i];
|
16056
|
+
investmentData_1[investment.requestId] = investment;
|
16057
|
+
}
|
16058
|
+
setInvestmentNames(investmentData_1);
|
16059
|
+
console.log(investmentData_1);
|
16060
|
+
}
|
16061
|
+
return [3 /*break*/, 5];
|
16062
|
+
case 3:
|
16063
|
+
error_3 = _b.sent();
|
16064
|
+
console.log("Error in getting national Investments list", error_3);
|
16065
|
+
return [3 /*break*/, 5];
|
16066
|
+
case 4:
|
16067
|
+
setLoadingInvestment(false);
|
16068
|
+
return [7 /*endfinally*/];
|
16069
|
+
case 5: return [2 /*return*/];
|
16070
|
+
}
|
16071
|
+
});
|
16072
|
+
}); };
|
16073
|
+
var getUserOrganization = function () { return __awaiter(void 0, void 0, void 0, function () {
|
16074
|
+
var response, error_4;
|
16075
|
+
return __generator(this, function (_a) {
|
16076
|
+
switch (_a.label) {
|
16077
|
+
case 0:
|
16078
|
+
_a.trys.push([0, 2, , 3]);
|
16079
|
+
return [4 /*yield*/, post("national/organisation/query", {
|
15642
16080
|
page: 1,
|
15643
16081
|
size: 100,
|
15644
|
-
filterAnd:
|
16082
|
+
filterAnd: [
|
16083
|
+
{ key: "companyId", operation: "=", value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId },
|
16084
|
+
],
|
15645
16085
|
})];
|
16086
|
+
case 1:
|
16087
|
+
response = _a.sent();
|
16088
|
+
console.log("getUserOrganization", response.data[0]);
|
16089
|
+
setUserOrganization(response.data[0]);
|
16090
|
+
setMinistrySectoralScope(response.data[0].sectoralScope);
|
16091
|
+
return [3 /*break*/, 3];
|
15646
16092
|
case 2:
|
15647
|
-
|
16093
|
+
error_4 = _a.sent();
|
16094
|
+
console.log("Error in getting user organization", error_4);
|
16095
|
+
return [3 /*break*/, 3];
|
16096
|
+
case 3: return [2 /*return*/];
|
16097
|
+
}
|
16098
|
+
});
|
16099
|
+
}); };
|
16100
|
+
var getOrganisationsDetails = function () { return __awaiter(void 0, void 0, void 0, function () {
|
16101
|
+
var filterAnd, filterOr, _i, _a, c, filters, response, companyName, _b, _c, company, error_5;
|
16102
|
+
return __generator(this, function (_d) {
|
16103
|
+
switch (_d.label) {
|
16104
|
+
case 0:
|
16105
|
+
setLoadingList(true);
|
16106
|
+
_d.label = 1;
|
16107
|
+
case 1:
|
16108
|
+
_d.trys.push([1, 3, 4, 5]);
|
16109
|
+
filterAnd = [];
|
16110
|
+
filterOr = [];
|
16111
|
+
filterAnd = [
|
16112
|
+
{
|
16113
|
+
key: "companyRole",
|
16114
|
+
operation: "=",
|
16115
|
+
value: exports.CompanyRole.PROGRAMME_DEVELOPER.toString(),
|
16116
|
+
},
|
16117
|
+
];
|
16118
|
+
// if (userInfoState?.companyRole === CompanyRole.PROGRAMME_DEVELOPER) {
|
16119
|
+
// filterAnd.push({
|
16120
|
+
// key: "companyId",
|
16121
|
+
// operation: "!=",
|
16122
|
+
// value: userInfoState?.companyId,
|
16123
|
+
// });
|
16124
|
+
// }
|
16125
|
+
if (data === null || data === void 0 ? void 0 : data.companyId) {
|
16126
|
+
for (_i = 0, _a = data === null || data === void 0 ? void 0 : data.companyId; _i < _a.length; _i++) {
|
16127
|
+
c = _a[_i];
|
16128
|
+
filterOr.push({
|
16129
|
+
key: "companyId",
|
16130
|
+
operation: "=",
|
16131
|
+
value: c,
|
16132
|
+
});
|
16133
|
+
}
|
16134
|
+
}
|
16135
|
+
filters = void 0;
|
16136
|
+
if (filterOr.length) {
|
16137
|
+
filters.filterOr = filterOr;
|
16138
|
+
}
|
16139
|
+
return [4 /*yield*/, post("national/organisation/queryNames", __assign({ page: 1, size: 100, filterAnd: filterAnd }, filters))];
|
16140
|
+
case 2:
|
16141
|
+
response = _d.sent();
|
15648
16142
|
if (response.data) {
|
15649
16143
|
setOrganisationList(response === null || response === void 0 ? void 0 : response.data);
|
16144
|
+
companyName = {};
|
16145
|
+
for (_b = 0, _c = response === null || response === void 0 ? void 0 : response.data; _b < _c.length; _b++) {
|
16146
|
+
company = _c[_b];
|
16147
|
+
companyName[Number(company.companyId)] = company.name;
|
16148
|
+
}
|
16149
|
+
setCompanyNames(companyName);
|
16150
|
+
console.log(companyName);
|
15650
16151
|
}
|
15651
16152
|
return [3 /*break*/, 5];
|
15652
16153
|
case 3:
|
15653
|
-
|
15654
|
-
console.log("Error in getting organization list",
|
16154
|
+
error_5 = _d.sent();
|
16155
|
+
console.log("Error in getting organization list", error_5);
|
15655
16156
|
return [3 /*break*/, 5];
|
15656
16157
|
case 4:
|
15657
16158
|
setLoadingList(false);
|
@@ -15666,52 +16167,72 @@ var InvestmentCreationComponent = function (props) {
|
|
15666
16167
|
return;
|
15667
16168
|
}
|
15668
16169
|
if (state === null || state === void 0 ? void 0 : state.record) {
|
16170
|
+
console.log("condition 1 data", state === null || state === void 0 ? void 0 : state.record);
|
15669
16171
|
setData(state === null || state === void 0 ? void 0 : state.record);
|
15670
16172
|
}
|
15671
16173
|
else {
|
16174
|
+
console.log("condition 2 data", { ownership: true });
|
15672
16175
|
setData({ ownership: true });
|
15673
16176
|
}
|
15674
16177
|
}, []);
|
15675
16178
|
React.useEffect(function () {
|
15676
|
-
if (data) {
|
15677
|
-
|
15678
|
-
|
15679
|
-
|
15680
|
-
|
15681
|
-
}
|
16179
|
+
// if (data) {
|
16180
|
+
// const keys = Object.keys(data);
|
16181
|
+
// if (keys[0] !== "ownership") {
|
16182
|
+
// getOrganisationsDetails();
|
16183
|
+
// }
|
16184
|
+
// }
|
16185
|
+
getNationalInvestmentDetails();
|
16186
|
+
getOrganisationsDetails();
|
15682
16187
|
getGovernmentDetails();
|
16188
|
+
getAllProjectData();
|
16189
|
+
getUserOrganization();
|
15683
16190
|
}, [data]);
|
15684
|
-
if (!data) {
|
16191
|
+
if (!data && allProjectData.length == 0) {
|
15685
16192
|
return React.createElement(Loading, null);
|
15686
16193
|
}
|
15687
16194
|
console.log("data", data);
|
15688
|
-
|
16195
|
+
console.log("data", data);
|
15689
16196
|
if (data && Object.keys(data)[0] !== "ownership") {
|
15690
|
-
for (
|
15691
|
-
|
15692
|
-
|
15693
|
-
}
|
16197
|
+
// for (const company of data!?.company) {
|
16198
|
+
// companyName[company?.companyId] = company;
|
16199
|
+
// }
|
15694
16200
|
if (!data.proponentPercentage) {
|
15695
16201
|
data.proponentPercentage = [100];
|
15696
16202
|
}
|
15697
16203
|
}
|
15698
16204
|
var nextOne = function (val) {
|
16205
|
+
console.log("step 1 values", val);
|
16206
|
+
if (val.typeCreation == exports.InvestmentCreationType.EXISTING) {
|
16207
|
+
val.toCompanyId = investmentData.toCompanyId;
|
16208
|
+
}
|
15699
16209
|
setCurrent(current + 1);
|
15700
16210
|
setStepOneData(val);
|
16211
|
+
if (data === null || data === void 0 ? void 0 : data.programmeId)
|
16212
|
+
setSelectedProgramme(data.programmeId);
|
16213
|
+
if (prevInvestor && prevInvestor != val.toCompanyId && !(data === null || data === void 0 ? void 0 : data.programmeId)) {
|
16214
|
+
formTwo.resetFields();
|
16215
|
+
setCurrentPercTotal(0);
|
16216
|
+
setProjectData(undefined);
|
16217
|
+
}
|
15701
16218
|
};
|
15702
16219
|
var prevOne = function () {
|
15703
16220
|
setCurrent(current - 1);
|
16221
|
+
setPrevInvestor(stepOneData.toCompanyId);
|
16222
|
+
// formTwo.resetFields();
|
16223
|
+
// setCurrentPercTotal(0);
|
16224
|
+
// setProjectData(undefined);
|
15704
16225
|
};
|
15705
16226
|
var submitInvestment = function (val) { return __awaiter(void 0, void 0, void 0, function () {
|
15706
|
-
var payload, response,
|
16227
|
+
var payload, response, error_6;
|
15707
16228
|
return __generator(this, function (_a) {
|
15708
16229
|
switch (_a.label) {
|
15709
16230
|
case 0:
|
15710
16231
|
console.log(val);
|
15711
16232
|
console.log(stepOneData);
|
16233
|
+
console.log("OwnershipType", investmentOwnershipType);
|
15712
16234
|
setLoading(true);
|
15713
16235
|
payload = stepOneData;
|
15714
|
-
payload.programmeId = data.programmeId;
|
15715
16236
|
payload.amount = parseFloat(payload.amount);
|
15716
16237
|
if (payload.interestRate) {
|
15717
16238
|
payload.interestRate = parseFloat(payload.interestRate);
|
@@ -15728,16 +16249,32 @@ var InvestmentCreationComponent = function (props) {
|
|
15728
16249
|
.startOf("day")
|
15729
16250
|
.unix();
|
15730
16251
|
}
|
15731
|
-
payload.instrument = [payload.instrument];
|
15732
|
-
payload.fromCompanyIds = data.companyId.map(function (e) { return Number(e); });
|
15733
|
-
payload.percentage = val.percentage;
|
15734
16252
|
payload.toCompanyId = Number(payload.toCompanyId);
|
15735
16253
|
_a.label = 1;
|
15736
16254
|
case 1:
|
15737
|
-
_a.trys.push([1,
|
16255
|
+
_a.trys.push([1, 6, 7, 8]);
|
16256
|
+
response = void 0;
|
16257
|
+
if (!(investmentOwnershipType == exports.InvestmentOwnershipType.PROJECT)) return [3 /*break*/, 3];
|
16258
|
+
if (typeCreation == exports.InvestmentCreationType.EXISTING) {
|
16259
|
+
payload.nationalInvestmentId = investmentData.requestId;
|
16260
|
+
}
|
16261
|
+
else {
|
16262
|
+
payload.instrument = [payload.instrument];
|
16263
|
+
}
|
16264
|
+
payload.programmeId = projectData === null || projectData === void 0 ? void 0 : projectData.programmeId;
|
16265
|
+
payload.fromCompanyIds = projectData === null || projectData === void 0 ? void 0 : projectData.companyId.map(function (e) { return Number(e); });
|
16266
|
+
payload.percentage = val.percentage;
|
15738
16267
|
return [4 /*yield*/, post("national/programme/addInvestment", payload)];
|
15739
16268
|
case 2:
|
15740
16269
|
response = _a.sent();
|
16270
|
+
return [3 /*break*/, 5];
|
16271
|
+
case 3:
|
16272
|
+
payload.instrument = [payload.instrument];
|
16273
|
+
return [4 /*yield*/, post("national/organisation/addInvestment", payload)];
|
16274
|
+
case 4:
|
16275
|
+
response = _a.sent();
|
16276
|
+
_a.label = 5;
|
16277
|
+
case 5:
|
15741
16278
|
console.log("investment creation -> ", response);
|
15742
16279
|
if ((response === null || response === void 0 ? void 0 : response.statusText) === "SUCCESS") {
|
15743
16280
|
antd.message.open({
|
@@ -15747,22 +16284,24 @@ var InvestmentCreationComponent = function (props) {
|
|
15747
16284
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
15748
16285
|
});
|
15749
16286
|
}
|
15750
|
-
|
15751
|
-
|
15752
|
-
|
15753
|
-
|
15754
|
-
|
16287
|
+
(data === null || data === void 0 ? void 0 : data.programmeId)
|
16288
|
+
? onNavigateToProgrammeView(data === null || data === void 0 ? void 0 : data.programmeId)
|
16289
|
+
: onNavigateToInvestmentManagementView();
|
16290
|
+
return [3 /*break*/, 8];
|
16291
|
+
case 6:
|
16292
|
+
error_6 = _a.sent();
|
16293
|
+
console.log("Error in investment creation - ", error_6);
|
15755
16294
|
antd.message.open({
|
15756
16295
|
type: "error",
|
15757
|
-
content:
|
16296
|
+
content: error_6 === null || error_6 === void 0 ? void 0 : error_6.message,
|
15758
16297
|
duration: 4,
|
15759
16298
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
15760
16299
|
});
|
15761
|
-
return [3 /*break*/,
|
15762
|
-
case
|
16300
|
+
return [3 /*break*/, 8];
|
16301
|
+
case 7:
|
15763
16302
|
setLoading(false);
|
15764
16303
|
return [7 /*endfinally*/];
|
15765
|
-
case
|
16304
|
+
case 8: return [2 /*return*/];
|
15766
16305
|
}
|
15767
16306
|
});
|
15768
16307
|
}); };
|
@@ -15776,6 +16315,14 @@ var InvestmentCreationComponent = function (props) {
|
|
15776
16315
|
var onChangeTypeCreation = function (e) {
|
15777
16316
|
console.log("radio checked", e.target.value);
|
15778
16317
|
setTypeCreation(e.target.value);
|
16318
|
+
formOne.resetFields();
|
16319
|
+
formTwo.resetFields();
|
16320
|
+
setCurrentPercTotal(0);
|
16321
|
+
setProjectData(undefined);
|
16322
|
+
};
|
16323
|
+
var onChangeInvestmentOwnershipType = function (e) {
|
16324
|
+
console.log("investment ownership type radio checked", e.target.value);
|
16325
|
+
setInvestmentOwnershipType(e.target.value);
|
15779
16326
|
};
|
15780
16327
|
return (React.createElement("div", { className: "add-programme-main-container" },
|
15781
16328
|
React.createElement("div", { className: "title-container" },
|
@@ -15800,134 +16347,60 @@ var InvestmentCreationComponent = function (props) {
|
|
15800
16347
|
] },
|
15801
16348
|
React.createElement(antd.Radio.Group, { size: "large", defaultValue: typeCreation }, Object.values(exports.InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
15802
16349
|
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onChange: onChangeTypeCreation }, t("programme:" + k)))); }))))),
|
15803
|
-
React.createElement(
|
15804
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
15805
|
-
React.createElement("div", { className: "details-part-one" },
|
15806
|
-
React.createElement(antd.Form.Item, { label: t("programme:investorName"), name: "toCompanyId", wrapperCol: { span: 24 }, className: "organisation", rules: [
|
15807
|
-
{
|
15808
|
-
required: true,
|
15809
|
-
message: "".concat(t("programme:investorName"), " ").concat(t("isRequired")),
|
15810
|
-
},
|
15811
|
-
] },
|
15812
|
-
React.createElement(antd.Select, { size: "large", loading: loadingList }, organisationsList.map(function (organisation) { return (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.companyId }, organisation.name)); }))))),
|
15813
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
15814
|
-
React.createElement("div", { className: "details-part-two" },
|
15815
|
-
React.createElement(antd.Form.Item, { label: t("programme:amountInvested"), name: "amount", rules: [
|
15816
|
-
{
|
15817
|
-
required: true,
|
15818
|
-
message: "",
|
15819
|
-
},
|
15820
|
-
{
|
15821
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15822
|
-
return __generator(this, function (_a) {
|
15823
|
-
if (String(value).trim() === "" ||
|
15824
|
-
String(value).trim() === undefined ||
|
15825
|
-
value === null ||
|
15826
|
-
value === undefined) {
|
15827
|
-
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isRequired")));
|
15828
|
-
}
|
15829
|
-
else if (!isNaN(value) &&
|
15830
|
-
Number(value) > 0) {
|
15831
|
-
return [2 /*return*/, Promise.resolve()];
|
15832
|
-
}
|
15833
|
-
else {
|
15834
|
-
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isInvalid")));
|
15835
|
-
}
|
15836
|
-
});
|
15837
|
-
}); },
|
15838
|
-
},
|
15839
|
-
] },
|
15840
|
-
React.createElement(antd.Input, { size: "large" }))))),
|
15841
|
-
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15842
|
-
React.createElement(antd.Col, { xl: 24, md: 24 },
|
15843
|
-
React.createElement(antd.Form.Item, { label: t("programme:instrument"), name: "instrument",
|
15844
|
-
//wrapperCol={{ span: 24 }}
|
15845
|
-
required: true, className: "investment-radio-button", rules: [
|
15846
|
-
{
|
15847
|
-
required: true,
|
15848
|
-
message: "",
|
15849
|
-
},
|
15850
|
-
{
|
15851
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15852
|
-
return __generator(this, function (_a) {
|
15853
|
-
if (String(value).trim() === "" ||
|
15854
|
-
String(value).trim() === undefined ||
|
15855
|
-
value === null ||
|
15856
|
-
value === undefined) {
|
15857
|
-
throw new Error("".concat(t("programme:instrument"), " ").concat(t("isRequired")));
|
15858
|
-
}
|
15859
|
-
return [2 /*return*/];
|
15860
|
-
});
|
15861
|
-
}); },
|
15862
|
-
},
|
15863
|
-
] },
|
15864
|
-
React.createElement(antd.Radio.Group, { onChange: onInstrumentChange, value: instrument[0] }, instrumentOptions.map(function (e) {
|
15865
|
-
return (React.createElement(antd.Radio, { value: e.value }, e.label));
|
15866
|
-
}))))),
|
15867
|
-
instrument &&
|
15868
|
-
instrument.indexOf(exports.Instrument.LOAN) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15869
|
-
React.createElement(antd.Col, { xl: 8, md: 12 },
|
15870
|
-
React.createElement("div", { className: "details-part-two" },
|
15871
|
-
React.createElement(antd.Form.Item, { label: t("programme:interestRate"), name: "interestRate", rules: [
|
15872
|
-
{
|
15873
|
-
required: true,
|
15874
|
-
message: "",
|
15875
|
-
},
|
15876
|
-
{
|
15877
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15878
|
-
return __generator(this, function (_a) {
|
15879
|
-
if (String(value).trim() === "" ||
|
15880
|
-
String(value).trim() ===
|
15881
|
-
undefined ||
|
15882
|
-
value === null ||
|
15883
|
-
value === undefined) {
|
15884
|
-
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isRequired")));
|
15885
|
-
}
|
15886
|
-
else if (!isNaN(value)) {
|
15887
|
-
return [2 /*return*/, Promise.resolve()];
|
15888
|
-
}
|
15889
|
-
else {
|
15890
|
-
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isInvalid")));
|
15891
|
-
}
|
15892
|
-
});
|
15893
|
-
}); },
|
15894
|
-
},
|
15895
|
-
] },
|
15896
|
-
React.createElement(antd.Input, { size: "large" })))))),
|
15897
|
-
instrument &&
|
15898
|
-
(instrument.indexOf(exports.Instrument.CONLOAN) >= 0 ||
|
15899
|
-
instrument.indexOf(exports.Instrument.NONCONLOAN) >= 0) && (React.createElement("div", { className: "details-part-two" },
|
16350
|
+
typeCreation == exports.InvestmentCreationType.NEW && (React.createElement("div", null,
|
15900
16351
|
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15901
|
-
React.createElement(antd.Col, { xl:
|
15902
|
-
React.createElement(
|
15903
|
-
|
15904
|
-
|
15905
|
-
|
15906
|
-
|
15907
|
-
|
15908
|
-
|
15909
|
-
|
15910
|
-
|
15911
|
-
|
15912
|
-
|
15913
|
-
|
15914
|
-
|
15915
|
-
|
15916
|
-
|
15917
|
-
|
15918
|
-
|
15919
|
-
|
15920
|
-
|
15921
|
-
|
15922
|
-
|
15923
|
-
|
15924
|
-
|
15925
|
-
|
15926
|
-
|
15927
|
-
|
16352
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16353
|
+
React.createElement("div", { className: "details-part-one" },
|
16354
|
+
React.createElement(antd.Form.Item, { label: t("programme:investorName"), name: "toCompanyId", wrapperCol: { span: 24 }, className: "organisation", rules: [
|
16355
|
+
{
|
16356
|
+
required: true,
|
16357
|
+
message: "".concat(t("programme:investorName"), " ").concat(t("isRequired")),
|
16358
|
+
},
|
16359
|
+
] },
|
16360
|
+
React.createElement(antd.Select, { size: "large", loading: loadingList }, organisationsList.map(function (organisation) {
|
16361
|
+
if (data === null || data === void 0 ? void 0 : data.programmeId) {
|
16362
|
+
if (data.companyId
|
16363
|
+
.map(function (id) { return Number(id); })
|
16364
|
+
.includes(Number(organisation.companyId))) {
|
16365
|
+
return (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.companyId }, organisation.name));
|
16366
|
+
}
|
16367
|
+
}
|
16368
|
+
else {
|
16369
|
+
return (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.companyId }, organisation.name));
|
16370
|
+
}
|
16371
|
+
}))))),
|
16372
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16373
|
+
React.createElement("div", { className: "details-part-two" },
|
16374
|
+
React.createElement(antd.Form.Item, { label: t("programme:amountInvested"), name: "amount", rules: [
|
16375
|
+
{
|
16376
|
+
required: true,
|
16377
|
+
message: "",
|
16378
|
+
},
|
16379
|
+
{
|
16380
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16381
|
+
return __generator(this, function (_a) {
|
16382
|
+
if (String(value).trim() === "" ||
|
16383
|
+
String(value).trim() ===
|
16384
|
+
undefined ||
|
16385
|
+
value === null ||
|
16386
|
+
value === undefined) {
|
16387
|
+
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isRequired")));
|
16388
|
+
}
|
16389
|
+
else if (!isNaN(value) &&
|
16390
|
+
Number(value) > 0) {
|
16391
|
+
return [2 /*return*/, Promise.resolve()];
|
16392
|
+
}
|
16393
|
+
else {
|
16394
|
+
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isInvalid")));
|
16395
|
+
}
|
16396
|
+
});
|
16397
|
+
}); },
|
16398
|
+
},
|
16399
|
+
] },
|
16400
|
+
React.createElement(antd.Input, { size: "large" }))))),
|
15928
16401
|
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15929
|
-
React.createElement(antd.Col, { xl:
|
15930
|
-
React.createElement(antd.Form.Item, { label: t("programme:
|
16402
|
+
React.createElement(antd.Col, { xl: 24, md: 24 },
|
16403
|
+
React.createElement(antd.Form.Item, { label: t("programme:instrument"), name: "instrument", required: true, className: "investment-radio-button", rules: [
|
15931
16404
|
{
|
15932
16405
|
required: true,
|
15933
16406
|
message: "",
|
@@ -15936,268 +16409,422 @@ var InvestmentCreationComponent = function (props) {
|
|
15936
16409
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
15937
16410
|
return __generator(this, function (_a) {
|
15938
16411
|
if (String(value).trim() === "" ||
|
15939
|
-
String(value).trim() ===
|
15940
|
-
undefined ||
|
16412
|
+
String(value).trim() === undefined ||
|
15941
16413
|
value === null ||
|
15942
16414
|
value === undefined) {
|
15943
|
-
throw new Error("".concat(t("programme:
|
16415
|
+
throw new Error("".concat(t("programme:instrument"), " ").concat(t("isRequired")));
|
15944
16416
|
}
|
15945
16417
|
return [2 /*return*/];
|
15946
16418
|
});
|
15947
16419
|
}); },
|
15948
16420
|
},
|
15949
16421
|
] },
|
15950
|
-
React.createElement(
|
16422
|
+
React.createElement(antd.Radio.Group, { onChange: onInstrumentChange, value: instrument[0] }, instrumentOptions.map(function (e) {
|
16423
|
+
return (React.createElement(antd.Radio, { value: e.value }, e.label));
|
16424
|
+
}))))),
|
16425
|
+
instrument &&
|
16426
|
+
instrument.indexOf(exports.Instrument.LOAN) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15951
16427
|
React.createElement(antd.Col, { xl: 8, md: 12 },
|
15952
|
-
React.createElement(
|
15953
|
-
|
15954
|
-
|
15955
|
-
|
15956
|
-
|
15957
|
-
|
15958
|
-
|
15959
|
-
return
|
15960
|
-
|
15961
|
-
String(value).trim() ===
|
15962
|
-
|
15963
|
-
|
15964
|
-
|
15965
|
-
|
15966
|
-
|
15967
|
-
|
15968
|
-
|
15969
|
-
|
15970
|
-
|
15971
|
-
|
15972
|
-
|
15973
|
-
|
15974
|
-
|
15975
|
-
|
15976
|
-
|
15977
|
-
|
16428
|
+
React.createElement("div", { className: "details-part-two" },
|
16429
|
+
React.createElement(antd.Form.Item, { label: t("programme:interestRate"), name: "interestRate", rules: [
|
16430
|
+
{
|
16431
|
+
required: true,
|
16432
|
+
message: "",
|
16433
|
+
},
|
16434
|
+
{
|
16435
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16436
|
+
return __generator(this, function (_a) {
|
16437
|
+
if (String(value).trim() === "" ||
|
16438
|
+
String(value).trim() ===
|
16439
|
+
undefined ||
|
16440
|
+
value === null ||
|
16441
|
+
value === undefined) {
|
16442
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isRequired")));
|
16443
|
+
}
|
16444
|
+
else if (!isNaN(value)) {
|
16445
|
+
return [2 /*return*/, Promise.resolve()];
|
16446
|
+
}
|
16447
|
+
else {
|
16448
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isInvalid")));
|
16449
|
+
}
|
16450
|
+
});
|
16451
|
+
}); },
|
16452
|
+
},
|
16453
|
+
] },
|
16454
|
+
React.createElement(antd.Input, { size: "large" })))))),
|
16455
|
+
instrument &&
|
16456
|
+
(instrument.indexOf(exports.Instrument.CONLOAN) >= 0 ||
|
16457
|
+
instrument.indexOf(exports.Instrument.NONCONLOAN) >=
|
16458
|
+
0) && (React.createElement("div", { className: "details-part-two" },
|
16459
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16460
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16461
|
+
React.createElement(antd.Form.Item, { label: t("programme:interestRate"), name: "interestRate", rules: [
|
16462
|
+
{
|
16463
|
+
required: true,
|
16464
|
+
message: "",
|
16465
|
+
},
|
16466
|
+
{
|
16467
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16468
|
+
return __generator(this, function (_a) {
|
16469
|
+
if (String(value).trim() === "" ||
|
16470
|
+
String(value).trim() ===
|
16471
|
+
undefined ||
|
16472
|
+
value === null ||
|
16473
|
+
value === undefined) {
|
16474
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isRequired")));
|
16475
|
+
}
|
16476
|
+
else if (!isNaN(value)) {
|
16477
|
+
return [2 /*return*/, Promise.resolve()];
|
16478
|
+
}
|
16479
|
+
else {
|
16480
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isInvalid")));
|
16481
|
+
}
|
16482
|
+
});
|
16483
|
+
}); },
|
16484
|
+
},
|
16485
|
+
] },
|
16486
|
+
React.createElement(antd.Input, { size: "large" })))),
|
16487
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16488
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16489
|
+
React.createElement(antd.Form.Item, { label: t("programme:loanPeriod"), name: "period", required: true, rules: [
|
16490
|
+
{
|
16491
|
+
required: true,
|
16492
|
+
message: "",
|
16493
|
+
},
|
16494
|
+
{
|
16495
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16496
|
+
return __generator(this, function (_a) {
|
16497
|
+
if (String(value).trim() === "" ||
|
16498
|
+
String(value).trim() ===
|
16499
|
+
undefined ||
|
16500
|
+
value === null ||
|
16501
|
+
value === undefined) {
|
16502
|
+
throw new Error("".concat(t("programme:loanPeriod"), " ").concat(t("isRequired")));
|
16503
|
+
}
|
16504
|
+
return [2 /*return*/];
|
16505
|
+
});
|
16506
|
+
}); },
|
16507
|
+
},
|
16508
|
+
] },
|
16509
|
+
React.createElement(RangePicker$3, { showTime: true, allowClear: true, format: "DD:MM:YYYY", size: "large" }))),
|
16510
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16511
|
+
React.createElement(antd.Form.Item, { label: t("programme:startOfPayback"), name: "startOfPayback", rules: [
|
16512
|
+
{
|
16513
|
+
required: true,
|
16514
|
+
message: "",
|
16515
|
+
},
|
16516
|
+
{
|
16517
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16518
|
+
return __generator(this, function (_a) {
|
16519
|
+
if (String(value).trim() === "" ||
|
16520
|
+
String(value).trim() ===
|
16521
|
+
undefined ||
|
16522
|
+
value === null ||
|
16523
|
+
value === undefined) {
|
16524
|
+
throw new Error("".concat(t("programme:startOfPayback"), " ").concat(t("isRequired")));
|
16525
|
+
}
|
16526
|
+
return [2 /*return*/];
|
16527
|
+
});
|
16528
|
+
}); },
|
16529
|
+
},
|
16530
|
+
] },
|
16531
|
+
React.createElement(antd.DatePicker, { size: "large", disabledDate: function (currentDate) {
|
16532
|
+
return currentDate <
|
16533
|
+
moment().startOf("day");
|
16534
|
+
} })))))),
|
16535
|
+
instrument &&
|
16536
|
+
instrument.indexOf(exports.Instrument.GUARANTEE) >= 0 && (React.createElement("div", { className: "details-part-two" },
|
16537
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16538
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16539
|
+
React.createElement(antd.Form.Item, { label: t("programme:interestRate"), name: "interestRate", rules: [
|
16540
|
+
{
|
16541
|
+
required: true,
|
16542
|
+
message: "",
|
16543
|
+
},
|
16544
|
+
{
|
16545
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16546
|
+
return __generator(this, function (_a) {
|
16547
|
+
if (String(value).trim() === "" ||
|
16548
|
+
String(value).trim() ===
|
16549
|
+
undefined ||
|
16550
|
+
value === null ||
|
16551
|
+
value === undefined) {
|
16552
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isRequired")));
|
16553
|
+
}
|
16554
|
+
else if (!isNaN(value)) {
|
16555
|
+
return [2 /*return*/, Promise.resolve()];
|
16556
|
+
}
|
16557
|
+
else {
|
16558
|
+
throw new Error("".concat(t("programme:interestRate"), " ").concat(t("isInvalid")));
|
16559
|
+
}
|
16560
|
+
});
|
16561
|
+
}); },
|
16562
|
+
},
|
16563
|
+
] },
|
16564
|
+
React.createElement(antd.Input, { size: "large" })))),
|
16565
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16566
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16567
|
+
React.createElement(antd.Form.Item, { label: t("programme:period"), name: "period", required: true, rules: [
|
16568
|
+
{
|
16569
|
+
required: true,
|
16570
|
+
message: "",
|
16571
|
+
},
|
16572
|
+
{
|
16573
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16574
|
+
return __generator(this, function (_a) {
|
16575
|
+
if (String(value).trim() === "" ||
|
16576
|
+
String(value).trim() ===
|
16577
|
+
undefined ||
|
16578
|
+
value === null ||
|
16579
|
+
value === undefined) {
|
16580
|
+
throw new Error("".concat(t("programme:period"), " ").concat(t("isRequired")));
|
16581
|
+
}
|
16582
|
+
return [2 /*return*/];
|
16583
|
+
});
|
16584
|
+
}); },
|
16585
|
+
},
|
16586
|
+
] },
|
16587
|
+
React.createElement(RangePicker$3, { showTime: true, allowClear: true, format: "DD:MM:YYYY", size: "large" }))),
|
16588
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16589
|
+
React.createElement(antd.Form.Item, { label: t("programme:payback"), wrapperCol: { span: 13 }, className: "role-group", name: "guaranteePayback", rules: [
|
16590
|
+
{
|
16591
|
+
required: true,
|
16592
|
+
message: "",
|
16593
|
+
},
|
16594
|
+
{
|
16595
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16596
|
+
return __generator(this, function (_a) {
|
16597
|
+
if (String(value).trim() === "" ||
|
16598
|
+
String(value).trim() ===
|
16599
|
+
undefined ||
|
16600
|
+
value === null ||
|
16601
|
+
value === undefined) {
|
16602
|
+
throw new Error("".concat(t("programme:payback"), " ").concat(t("isRequired")));
|
16603
|
+
}
|
16604
|
+
return [2 /*return*/];
|
16605
|
+
});
|
16606
|
+
}); },
|
16607
|
+
},
|
16608
|
+
] },
|
16609
|
+
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(GuaranteePayback).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16610
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k }, t("programme:" + k)))); }))))))),
|
16611
|
+
instrument &&
|
16612
|
+
instrument.indexOf(exports.Instrument.RESULT_BASED) >=
|
16613
|
+
0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16614
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16615
|
+
React.createElement("div", { className: "details-part-two" },
|
16616
|
+
React.createElement(antd.Form.Item, { label: t("programme:resultMetric"), name: "resultMetric", rules: [
|
16617
|
+
{
|
16618
|
+
required: true,
|
16619
|
+
message: "",
|
16620
|
+
},
|
16621
|
+
{
|
16622
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16623
|
+
return __generator(this, function (_a) {
|
16624
|
+
if (String(value).trim() === "" ||
|
16625
|
+
String(value).trim() ===
|
16626
|
+
undefined ||
|
16627
|
+
value === null ||
|
16628
|
+
value === undefined) {
|
16629
|
+
throw new Error("".concat(t("programme:resultMetric"), " ").concat(t("isRequired")));
|
16630
|
+
}
|
16631
|
+
return [2 /*return*/];
|
16632
|
+
});
|
16633
|
+
}); },
|
16634
|
+
},
|
16635
|
+
] },
|
16636
|
+
React.createElement(antd.Input, { size: "large" })))),
|
16637
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16638
|
+
React.createElement("div", { className: "details-part-two" },
|
16639
|
+
React.createElement(antd.Form.Item, { label: t("programme:paymentPerMetric"), name: "paymentPerMetric", rules: [
|
16640
|
+
{
|
16641
|
+
required: true,
|
16642
|
+
message: "",
|
16643
|
+
},
|
16644
|
+
{
|
16645
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16646
|
+
return __generator(this, function (_a) {
|
16647
|
+
if (String(value).trim() === "" ||
|
16648
|
+
String(value).trim() ===
|
16649
|
+
undefined ||
|
16650
|
+
value === null ||
|
16651
|
+
value === undefined) {
|
16652
|
+
throw new Error("".concat(t("programme:paymentPerMetric"), " ").concat(t("isRequired")));
|
16653
|
+
}
|
16654
|
+
else if (!isNaN(value)) {
|
16655
|
+
return [2 /*return*/, Promise.resolve()];
|
16656
|
+
}
|
16657
|
+
else {
|
16658
|
+
throw new Error("".concat(t("programme:paymentPerMetric"), " ").concat(t("isInvalid")));
|
16659
|
+
}
|
16660
|
+
});
|
16661
|
+
}); },
|
16662
|
+
},
|
16663
|
+
] },
|
16664
|
+
React.createElement(antd.Input, { size: "large" })))))),
|
16665
|
+
instrument &&
|
16666
|
+
instrument.indexOf(exports.Instrument.INKIND) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16667
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16668
|
+
React.createElement("div", { className: "details-part-two" },
|
16669
|
+
React.createElement(antd.Form.Item, { label: t("programme:description"), name: "description", rules: [
|
16670
|
+
{
|
16671
|
+
required: false,
|
16672
|
+
message: "",
|
16673
|
+
},
|
16674
|
+
] },
|
16675
|
+
React.createElement(antd.Input, { size: "large" })))))),
|
16676
|
+
instrument &&
|
16677
|
+
instrument.indexOf(exports.Instrument.INSURANCE) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
15978
16678
|
React.createElement(antd.Col, { xl: 8, md: 12 },
|
15979
|
-
React.createElement(
|
15980
|
-
|
15981
|
-
|
15982
|
-
|
15983
|
-
|
15984
|
-
|
15985
|
-
|
15986
|
-
return
|
15987
|
-
|
15988
|
-
String(value).trim() ===
|
15989
|
-
|
15990
|
-
|
15991
|
-
|
15992
|
-
|
15993
|
-
|
15994
|
-
|
15995
|
-
return [2 /*return
|
15996
|
-
}
|
15997
|
-
|
15998
|
-
|
15999
|
-
|
16000
|
-
|
16001
|
-
}); },
|
16002
|
-
|
16003
|
-
|
16004
|
-
|
16679
|
+
React.createElement("div", { className: "details-part-two" },
|
16680
|
+
React.createElement(antd.Form.Item, { label: t("programme:payback"), wrapperCol: { span: 13 }, className: "role-group", name: "insurancePayback", rules: [
|
16681
|
+
{
|
16682
|
+
required: true,
|
16683
|
+
message: "",
|
16684
|
+
},
|
16685
|
+
{
|
16686
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16687
|
+
return __generator(this, function (_a) {
|
16688
|
+
if (String(value).trim() === "" ||
|
16689
|
+
String(value).trim() ===
|
16690
|
+
undefined ||
|
16691
|
+
value === null ||
|
16692
|
+
value === undefined) {
|
16693
|
+
throw new Error("".concat(t("programme:payback"), " ").concat(t("isRequired")));
|
16694
|
+
}
|
16695
|
+
return [2 /*return*/];
|
16696
|
+
});
|
16697
|
+
}); },
|
16698
|
+
},
|
16699
|
+
] },
|
16700
|
+
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(InsurancePayback).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16701
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k }, t("programme:" + k)))); }))))))),
|
16702
|
+
instrument &&
|
16703
|
+
instrument.indexOf(exports.Instrument.OTHER) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16704
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16705
|
+
React.createElement("div", { className: "details-part-two" },
|
16706
|
+
React.createElement(antd.Form.Item, { label: t("programme:comments"), name: "comments", rules: [
|
16707
|
+
{
|
16708
|
+
required: true,
|
16709
|
+
message: "",
|
16710
|
+
},
|
16711
|
+
{
|
16712
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16713
|
+
return __generator(this, function (_a) {
|
16714
|
+
if (String(value).trim() === "" ||
|
16715
|
+
String(value).trim() ===
|
16716
|
+
undefined ||
|
16717
|
+
value === null ||
|
16718
|
+
value === undefined) {
|
16719
|
+
throw new Error("".concat(t("programme:comments"), " ").concat(t("isRequired")));
|
16720
|
+
}
|
16721
|
+
return [2 /*return*/];
|
16722
|
+
});
|
16723
|
+
}); },
|
16724
|
+
},
|
16725
|
+
] },
|
16726
|
+
React.createElement(antd.Input, { size: "large" })))))),
|
16005
16727
|
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16006
16728
|
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16007
|
-
React.createElement(antd.Form.Item, { label: t("programme:
|
16008
|
-
{
|
16009
|
-
required: true,
|
16010
|
-
message: "",
|
16011
|
-
},
|
16729
|
+
React.createElement(antd.Form.Item, { label: t("programme:type"), wrapperCol: { span: 13 }, className: "role-group", name: "type", rules: [
|
16012
16730
|
{
|
16013
|
-
|
16014
|
-
return __generator(this, function (_a) {
|
16015
|
-
if (String(value).trim() === "" ||
|
16016
|
-
String(value).trim() ===
|
16017
|
-
undefined ||
|
16018
|
-
value === null ||
|
16019
|
-
value === undefined) {
|
16020
|
-
throw new Error("".concat(t("programme:period"), " ").concat(t("isRequired")));
|
16021
|
-
}
|
16022
|
-
return [2 /*return*/];
|
16023
|
-
});
|
16024
|
-
}); },
|
16731
|
+
required: false,
|
16025
16732
|
},
|
16026
16733
|
] },
|
16027
|
-
React.createElement(
|
16734
|
+
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(exports.InvestmentType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16735
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
16736
|
+
return deselectOnClick(e, "type");
|
16737
|
+
} }, t("programme:" + k)))); })))),
|
16028
16738
|
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16029
|
-
React.createElement(antd.Form.Item, { label: t("programme:
|
16030
|
-
{
|
16031
|
-
required: true,
|
16032
|
-
message: "",
|
16033
|
-
},
|
16034
|
-
{
|
16035
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16036
|
-
return __generator(this, function (_a) {
|
16037
|
-
if (String(value).trim() === "" ||
|
16038
|
-
String(value).trim() ===
|
16039
|
-
undefined ||
|
16040
|
-
value === null ||
|
16041
|
-
value === undefined) {
|
16042
|
-
throw new Error("".concat(t("programme:payback"), " ").concat(t("isRequired")));
|
16043
|
-
}
|
16044
|
-
return [2 /*return*/];
|
16045
|
-
});
|
16046
|
-
}); },
|
16047
|
-
},
|
16048
|
-
] },
|
16049
|
-
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(GuaranteePayback).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16050
|
-
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k }, t("programme:" + k)))); }))))))),
|
16051
|
-
instrument &&
|
16052
|
-
instrument.indexOf(exports.Instrument.RESULT_BASED) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16053
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16054
|
-
React.createElement("div", { className: "details-part-two" },
|
16055
|
-
React.createElement(antd.Form.Item, { label: t("programme:resultMetric"), name: "resultMetric", rules: [
|
16056
|
-
{
|
16057
|
-
required: true,
|
16058
|
-
message: "",
|
16059
|
-
},
|
16060
|
-
{
|
16061
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16062
|
-
return __generator(this, function (_a) {
|
16063
|
-
if (String(value).trim() === "" ||
|
16064
|
-
String(value).trim() ===
|
16065
|
-
undefined ||
|
16066
|
-
value === null ||
|
16067
|
-
value === undefined) {
|
16068
|
-
throw new Error("".concat(t("programme:resultMetric"), " ").concat(t("isRequired")));
|
16069
|
-
}
|
16070
|
-
return [2 /*return*/];
|
16071
|
-
});
|
16072
|
-
}); },
|
16073
|
-
},
|
16074
|
-
] },
|
16075
|
-
React.createElement(antd.Input, { size: "large" })))),
|
16076
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16077
|
-
React.createElement("div", { className: "details-part-two" },
|
16078
|
-
React.createElement(antd.Form.Item, { label: t("programme:paymentPerMetric"), name: "paymentPerMetric", rules: [
|
16079
|
-
{
|
16080
|
-
required: true,
|
16081
|
-
message: "",
|
16082
|
-
},
|
16083
|
-
{
|
16084
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16085
|
-
return __generator(this, function (_a) {
|
16086
|
-
if (String(value).trim() === "" ||
|
16087
|
-
String(value).trim() ===
|
16088
|
-
undefined ||
|
16089
|
-
value === null ||
|
16090
|
-
value === undefined) {
|
16091
|
-
throw new Error("".concat(t("programme:paymentPerMetric"), " ").concat(t("isRequired")));
|
16092
|
-
}
|
16093
|
-
else if (!isNaN(value)) {
|
16094
|
-
return [2 /*return*/, Promise.resolve()];
|
16095
|
-
}
|
16096
|
-
else {
|
16097
|
-
throw new Error("".concat(t("programme:paymentPerMetric"), " ").concat(t("isInvalid")));
|
16098
|
-
}
|
16099
|
-
});
|
16100
|
-
}); },
|
16101
|
-
},
|
16102
|
-
] },
|
16103
|
-
React.createElement(antd.Input, { size: "large" })))))),
|
16104
|
-
instrument &&
|
16105
|
-
instrument.indexOf(exports.Instrument.INKIND) >= 0 && (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16106
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16107
|
-
React.createElement("div", { className: "details-part-two" },
|
16108
|
-
React.createElement(antd.Form.Item, { label: t("programme:description"), name: "description", rules: [
|
16739
|
+
React.createElement(antd.Form.Item, { label: t("programme:level"), wrapperCol: { span: 13 }, className: "role-group", name: "level", rules: [
|
16109
16740
|
{
|
16110
16741
|
required: false,
|
16111
|
-
message: "",
|
16112
16742
|
},
|
16113
16743
|
] },
|
16114
|
-
React.createElement(antd.
|
16115
|
-
|
16116
|
-
|
16117
|
-
|
16118
|
-
React.createElement(
|
16119
|
-
React.createElement(antd.Form.Item, { label: t("programme:
|
16120
|
-
{
|
16121
|
-
required: true,
|
16122
|
-
message: "",
|
16123
|
-
},
|
16744
|
+
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(exports.InvestmentLevel).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16745
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
16746
|
+
return deselectOnClick(e, "level");
|
16747
|
+
} }, t("programme:" + k)))); })))),
|
16748
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16749
|
+
React.createElement(antd.Form.Item, { label: t("programme:stream"), wrapperCol: { span: 13 }, className: "role-group", name: "stream", rules: [
|
16124
16750
|
{
|
16125
|
-
|
16126
|
-
return __generator(this, function (_a) {
|
16127
|
-
if (String(value).trim() === "" ||
|
16128
|
-
String(value).trim() ===
|
16129
|
-
undefined ||
|
16130
|
-
value === null ||
|
16131
|
-
value === undefined) {
|
16132
|
-
throw new Error("".concat(t("programme:payback"), " ").concat(t("isRequired")));
|
16133
|
-
}
|
16134
|
-
return [2 /*return*/];
|
16135
|
-
});
|
16136
|
-
}); },
|
16751
|
+
required: false,
|
16137
16752
|
},
|
16138
16753
|
] },
|
16139
|
-
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(
|
16140
|
-
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k
|
16141
|
-
|
16142
|
-
|
16143
|
-
React.createElement(antd.
|
16144
|
-
React.createElement(
|
16145
|
-
React.createElement(antd.Form.Item, { label: t("programme:
|
16146
|
-
|
16147
|
-
|
16148
|
-
|
16149
|
-
|
16150
|
-
|
16151
|
-
|
16152
|
-
|
16153
|
-
|
16154
|
-
|
16155
|
-
|
16156
|
-
|
16157
|
-
|
16158
|
-
|
16159
|
-
|
16160
|
-
|
16754
|
+
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(exports.InvestmentStream).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16755
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
16756
|
+
return deselectOnClick(e, "stream");
|
16757
|
+
} }, t("programme:" + k)))); }))))),
|
16758
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16759
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16760
|
+
React.createElement(antd.Form.Item, { label: t("programme:esgType"), name: "esgClassification" },
|
16761
|
+
React.createElement(antd.Select, { size: "large" }, Object.values(exports.ESGType).map(function (esg) { return (React.createElement(antd.Select.Option, { value: esg }, esg)); }))))))),
|
16762
|
+
typeCreation == exports.InvestmentCreationType.EXISTING && (React.createElement("div", null,
|
16763
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16764
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16765
|
+
React.createElement("div", { className: "details-part-one" },
|
16766
|
+
React.createElement(antd.Form.Item, { label: t("programme:existingInvestmentSource"), name: "existinngInvestmentId", wrapperCol: { span: 24 }, rules: [
|
16767
|
+
{
|
16768
|
+
required: true,
|
16769
|
+
message: "".concat(t("programme:existingInvestmentSource"), " ").concat(t("isRequired")),
|
16770
|
+
},
|
16771
|
+
] },
|
16772
|
+
React.createElement(antd.Select, { size: "large", loading: loadingInvestment, onChange: setSelectedInvestment }, nationalInvestmentList.map(function (investment) { return (React.createElement(antd.Select.Option, { key: investment.requestId, value: investment.requestId }, investment.investmentName)); })))))),
|
16773
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16774
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16775
|
+
React.createElement("div", { className: "details-part-two" },
|
16776
|
+
React.createElement(antd.Form.Item, { label: t("programme:amountInvested"), name: "amount", rules: [
|
16777
|
+
{
|
16778
|
+
required: true,
|
16779
|
+
message: "",
|
16780
|
+
},
|
16781
|
+
{
|
16782
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
16783
|
+
return __generator(this, function (_a) {
|
16784
|
+
if (String(value).trim() === "" ||
|
16785
|
+
String(value).trim() ===
|
16786
|
+
undefined ||
|
16787
|
+
value === null ||
|
16788
|
+
value === undefined) {
|
16789
|
+
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isRequired")));
|
16790
|
+
}
|
16791
|
+
else if (!isNaN(value) &&
|
16792
|
+
Number(value) > 0) {
|
16793
|
+
return [2 /*return*/, Promise.resolve()];
|
16794
|
+
}
|
16795
|
+
else {
|
16796
|
+
throw new Error("".concat(t("programme:amountInvested"), " ").concat(t("isInvalid")));
|
16797
|
+
}
|
16798
|
+
});
|
16799
|
+
}); },
|
16800
|
+
},
|
16801
|
+
function (_a) {
|
16802
|
+
var getFieldValue = _a.getFieldValue;
|
16803
|
+
return ({
|
16804
|
+
validator: function (rule, v) {
|
16805
|
+
if (getFieldValue("amount") &&
|
16806
|
+
investmentData &&
|
16807
|
+
investmentData.amount <
|
16808
|
+
parseFloat(getFieldValue("amount"))) {
|
16809
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
16810
|
+
return Promise.reject("Amount > Available");
|
16811
|
+
}
|
16812
|
+
return Promise.resolve();
|
16813
|
+
},
|
16161
16814
|
});
|
16162
|
-
}
|
16163
|
-
},
|
16164
|
-
|
16165
|
-
|
16166
|
-
|
16167
|
-
|
16168
|
-
|
16169
|
-
|
16170
|
-
|
16171
|
-
|
16172
|
-
|
16173
|
-
|
16174
|
-
|
16175
|
-
return deselectOnClick(e, "type");
|
16176
|
-
} }, t("programme:" + k)))); })))),
|
16177
|
-
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16178
|
-
React.createElement(antd.Form.Item, { label: t("programme:level"), wrapperCol: { span: 13 }, className: "role-group", name: "level", rules: [
|
16179
|
-
{
|
16180
|
-
required: false,
|
16181
|
-
},
|
16182
|
-
] },
|
16183
|
-
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(exports.InvestmentLevel).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16184
|
-
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
16185
|
-
return deselectOnClick(e, "level");
|
16186
|
-
} }, t("programme:" + k)))); })))),
|
16187
|
-
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16188
|
-
React.createElement(antd.Form.Item, { label: t("programme:stream"), wrapperCol: { span: 13 }, className: "role-group", name: "stream", rules: [
|
16189
|
-
{
|
16190
|
-
required: false,
|
16191
|
-
},
|
16192
|
-
] },
|
16193
|
-
React.createElement(antd.Radio.Group, { size: "large" }, Object.values(exports.InvestmentStream).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
16194
|
-
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
16195
|
-
return deselectOnClick(e, "stream");
|
16196
|
-
} }, t("programme:" + k)))); }))))),
|
16197
|
-
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16198
|
-
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16199
|
-
React.createElement(antd.Form.Item, { label: t("programme:esgType"), name: "esgClassification" },
|
16200
|
-
React.createElement(antd.Select, { size: "large" }, Object.values(exports.ESGType).map(function (esg) { return (React.createElement(antd.Select.Option, { value: esg }, esg)); }))))),
|
16815
|
+
},
|
16816
|
+
] },
|
16817
|
+
React.createElement(antd.Input, { size: "large" })))),
|
16818
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16819
|
+
React.createElement("div", { className: "details-part-two" },
|
16820
|
+
React.createElement(antd.Form.Item, { label: " ", name: "sourceAmount" },
|
16821
|
+
React.createElement("div", null,
|
16822
|
+
"/",
|
16823
|
+
React.createElement(antd.InputNumber, { size: "large", width: "100%", formatter: function (value) {
|
16824
|
+
return "$".concat(addCommSep(value));
|
16825
|
+
}, disabled: true, value: investmentData
|
16826
|
+
? investmentData.amount
|
16827
|
+
: 0 })))))))),
|
16201
16828
|
React.createElement(antd.Form.Item, null,
|
16202
16829
|
React.createElement("div", { className: "steps-actions" },
|
16203
16830
|
React.createElement(antd.Button, { type: "primary", htmlType: "submit", loading: loading, onSubmit: nextOne }, t("programme:next")))))))),
|
@@ -16207,73 +16834,164 @@ var InvestmentCreationComponent = function (props) {
|
|
16207
16834
|
React.createElement("div", { className: "step-count" }, "02"),
|
16208
16835
|
React.createElement("div", { className: "title" }, t("programme:ownership")))),
|
16209
16836
|
description: current === 1 && (React.createElement("div", null,
|
16210
|
-
React.createElement("div", { className: "
|
16211
|
-
React.createElement(
|
16212
|
-
|
16213
|
-
|
16214
|
-
React.createElement(antd.Col, { xl: 8, md:
|
16215
|
-
React.createElement("
|
16216
|
-
companyName[companyId].name,
|
16217
|
-
React.createElement("span", { className: "required-mark" }, "*"))),
|
16218
|
-
React.createElement(antd.Col, { xl: 8, md: 9 },
|
16219
|
-
React.createElement(antd.Form.Item, { className: "inline", name: ["percentage", index], initialValue: 0, rules: [
|
16220
|
-
{
|
16221
|
-
pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
|
16222
|
-
message: "Percentage Should be a positive number",
|
16223
|
-
},
|
16837
|
+
React.createElement("div", { className: "investment-sought-form-container" },
|
16838
|
+
React.createElement("div", { className: "investment-sought-form" },
|
16839
|
+
React.createElement(antd.Form, { labelCol: { span: 20 }, wrapperCol: { span: 24 }, name: "investment-sought", className: "investment-sought-form", layout: "vertical", requiredMark: true },
|
16840
|
+
React.createElement(antd.Row, { className: "row", gutter: [4, 4] },
|
16841
|
+
React.createElement(antd.Col, { xl: 8, md: 12 },
|
16842
|
+
React.createElement(antd.Form.Item, { label: t("programme:typeCreation"), wrapperCol: { span: 13 }, className: "role-group", name: "investmentOwnershipType", rules: [
|
16224
16843
|
{
|
16225
|
-
required:
|
16226
|
-
message: "Required field",
|
16227
|
-
},
|
16228
|
-
function (_a) {
|
16229
|
-
var getFieldValue = _a.getFieldValue;
|
16230
|
-
return ({
|
16231
|
-
validator: function (rule, v) {
|
16232
|
-
if (getFieldValue([
|
16233
|
-
"percentage",
|
16234
|
-
index,
|
16235
|
-
]) &&
|
16236
|
-
parseFloat(getFieldValue([
|
16237
|
-
"percentage",
|
16238
|
-
index,
|
16239
|
-
])) >
|
16240
|
-
data.proponentPercentage[index]) {
|
16241
|
-
// eslint-disable-next-line prefer-promise-reject-errors
|
16242
|
-
return Promise.reject("Amount > Available");
|
16243
|
-
}
|
16244
|
-
return Promise.resolve();
|
16245
|
-
},
|
16246
|
-
});
|
16844
|
+
required: false,
|
16247
16845
|
},
|
16248
16846
|
] },
|
16249
|
-
React.createElement(antd.
|
16250
|
-
|
16251
|
-
|
16252
|
-
|
16253
|
-
|
16254
|
-
|
16255
|
-
|
16256
|
-
|
16257
|
-
|
16258
|
-
|
16259
|
-
|
16260
|
-
|
16261
|
-
|
16262
|
-
|
16263
|
-
|
16264
|
-
|
16265
|
-
|
16266
|
-
|
16267
|
-
|
16847
|
+
React.createElement(antd.Radio.Group, { size: "large", defaultValue: typeCreation ==
|
16848
|
+
exports.InvestmentCreationType.EXISTING
|
16849
|
+
? exports.InvestmentOwnershipType.PROJECT
|
16850
|
+
: investmentOwnershipType }, Object.values(exports.InvestmentOwnershipType).map(function (k, index) {
|
16851
|
+
if (!(typeCreation ==
|
16852
|
+
exports.InvestmentCreationType.EXISTING &&
|
16853
|
+
k == exports.InvestmentOwnershipType.NATIONAL) &&
|
16854
|
+
!(k ==
|
16855
|
+
exports.InvestmentOwnershipType.NATIONAL &&
|
16856
|
+
(data === null || data === void 0 ? void 0 : data.programmeId))) {
|
16857
|
+
return (React.createElement("div", { className: "condition-radio-container" },
|
16858
|
+
React.createElement(antd.Tooltip, { title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ==
|
16859
|
+
exports.CompanyRole.PROGRAMME_DEVELOPER &&
|
16860
|
+
stepOneData.toCompanyId !=
|
16861
|
+
userInfoState.companyId &&
|
16862
|
+
k ==
|
16863
|
+
exports.InvestmentOwnershipType.NATIONAL
|
16864
|
+
? "This action is unauthorized due to the selected investor name."
|
16865
|
+
: "", color: TooltipColor, key: TooltipColor },
|
16866
|
+
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onChange: onChangeInvestmentOwnershipType, disabled: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ==
|
16867
|
+
exports.CompanyRole.PROGRAMME_DEVELOPER &&
|
16868
|
+
stepOneData.toCompanyId !=
|
16869
|
+
userInfoState.companyId &&
|
16870
|
+
k ==
|
16871
|
+
exports.InvestmentOwnershipType.NATIONAL }, t("programme:" + k)))));
|
16268
16872
|
}
|
16269
|
-
}
|
16270
|
-
|
16271
|
-
|
16272
|
-
|
16273
|
-
|
16274
|
-
|
16275
|
-
|
16276
|
-
React.createElement(antd.
|
16873
|
+
})))))))),
|
16874
|
+
React.createElement("div", { className: "programme-sought-form-container ownership-container" },
|
16875
|
+
React.createElement("div", { className: "programme-sought-form" },
|
16876
|
+
React.createElement(antd.Form, { labelCol: { span: 20 }, wrapperCol: { span: 24 }, form: formTwo, name: "investment-sought", className: "investment-sought-form", layout: "vertical", requiredMark: true, onChange: onPercentageChange, onFinish: submitInvestment },
|
16877
|
+
allProjectData.length > 0 &&
|
16878
|
+
investmentOwnershipType ==
|
16879
|
+
exports.InvestmentOwnershipType.PROJECT && (React.createElement("div", null,
|
16880
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16881
|
+
React.createElement(antd.Col, { xl: 12, md: 24 },
|
16882
|
+
React.createElement("div", { className: "details-part-one" },
|
16883
|
+
React.createElement(antd.Form.Item, { label: t("programme:title"), name: "projectId", wrapperCol: { span: 24 }, initialValue: (data === null || data === void 0 ? void 0 : data.programmeId) != undefined
|
16884
|
+
? allProjectData[0].programmeId
|
16885
|
+
: null, rules: [
|
16886
|
+
{
|
16887
|
+
required: true,
|
16888
|
+
message: "".concat(t("programme:title"), " ").concat(t("isRequired")),
|
16889
|
+
},
|
16890
|
+
] },
|
16891
|
+
React.createElement(antd.Select, { size: "large", loading: loadingProgData,
|
16892
|
+
// defaultValue={
|
16893
|
+
// allProjectData.length == 1
|
16894
|
+
// ? allProjectData[0].programmeId
|
16895
|
+
// : null
|
16896
|
+
// }
|
16897
|
+
disabled: allProjectData.length == 1 &&
|
16898
|
+
(data === null || data === void 0 ? void 0 : data.programmeId) != undefined, onChange: setSelectedProgramme }, allProjectData.map(function (project) {
|
16899
|
+
if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ==
|
16900
|
+
exports.CompanyRole.PROGRAMME_DEVELOPER &&
|
16901
|
+
Number(stepOneData.toCompanyId) !=
|
16902
|
+
userInfoState.companyId) {
|
16903
|
+
if (project.companyId
|
16904
|
+
.map(function (id) { return Number(id); })
|
16905
|
+
.includes(userInfoState.companyId)) {
|
16906
|
+
return (React.createElement(antd.Select.Option, { key: project.programmeId, value: project.programmeId }, project.title));
|
16907
|
+
}
|
16908
|
+
}
|
16909
|
+
else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
16910
|
+
exports.CompanyRole.MINISTRY) {
|
16911
|
+
if (ministrySectoralScope.includes(project.sectoralScope)) {
|
16912
|
+
return (React.createElement(antd.Select.Option, { key: project.programmeId, value: project.programmeId }, project.title));
|
16913
|
+
}
|
16914
|
+
}
|
16915
|
+
else {
|
16916
|
+
return (React.createElement(antd.Select.Option, { key: project.programmeId, value: project.programmeId }, project.title));
|
16917
|
+
}
|
16918
|
+
})))))), projectData === null || projectData === void 0 ? void 0 :
|
16919
|
+
projectData.companyId.map(function (companyId, index) {
|
16920
|
+
if (formTwo.getFieldValue("percentage") &&
|
16921
|
+
formTwo.getFieldValue("percentage")[index] &&
|
16922
|
+
companyId == stepOneData.toCompanyId) {
|
16923
|
+
formTwo.getFieldValue("percentage")[index] = 0;
|
16924
|
+
}
|
16925
|
+
return (React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16926
|
+
React.createElement(antd.Col, { xl: 8, md: 15 },
|
16927
|
+
React.createElement("div", { className: "label" },
|
16928
|
+
govData.companyId == companyId
|
16929
|
+
? govData.name
|
16930
|
+
: companyNames[Number(companyId)],
|
16931
|
+
React.createElement("span", { className: "required-mark" }, "*"))),
|
16932
|
+
React.createElement(antd.Col, { xl: 8, md: 9 },
|
16933
|
+
React.createElement(antd.Form.Item, { className: "inline", name: ["percentage", index], initialValue: 0, rules: [
|
16934
|
+
{
|
16935
|
+
pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
|
16936
|
+
message: "Percentage Should be a positive number",
|
16937
|
+
},
|
16938
|
+
{
|
16939
|
+
required: true,
|
16940
|
+
message: "Required field",
|
16941
|
+
},
|
16942
|
+
function (_a) {
|
16943
|
+
var getFieldValue = _a.getFieldValue;
|
16944
|
+
return ({
|
16945
|
+
validator: function (rule, v) {
|
16946
|
+
if (getFieldValue([
|
16947
|
+
"percentage",
|
16948
|
+
index,
|
16949
|
+
]) &&
|
16950
|
+
parseFloat(getFieldValue([
|
16951
|
+
"percentage",
|
16952
|
+
index,
|
16953
|
+
])) >
|
16954
|
+
projectData
|
16955
|
+
.proponentPercentage[index]) {
|
16956
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
16957
|
+
return Promise.reject("Amount > Available");
|
16958
|
+
}
|
16959
|
+
return Promise.resolve();
|
16960
|
+
},
|
16961
|
+
});
|
16962
|
+
},
|
16963
|
+
] },
|
16964
|
+
React.createElement(antd.InputNumber, { placeholder: "", controls: false, disabled: govData.companyId ==
|
16965
|
+
companyId ||
|
16966
|
+
companyId ==
|
16967
|
+
stepOneData.toCompanyId, value: 0,
|
16968
|
+
// disabled={userInfoState?.companyId === Number(companyId)}
|
16969
|
+
onKeyPress: function (event) {
|
16970
|
+
if (!/[0-9\.]/.test(event.key)) {
|
16971
|
+
event.preventDefault();
|
16972
|
+
}
|
16973
|
+
} })),
|
16974
|
+
React.createElement("div", { className: "inline separator" }, "/"),
|
16975
|
+
React.createElement(antd.Form.Item, { className: "inline" },
|
16976
|
+
React.createElement(antd.InputNumber, { placeholder: String(projectData === null || projectData === void 0 ? void 0 : projectData.proponentPercentage[index]), disabled: true })))));
|
16977
|
+
}),
|
16978
|
+
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
16979
|
+
React.createElement(antd.Col, { xl: 8, md: 15 },
|
16980
|
+
React.createElement("div", { className: "label" }, t("programme:total"))),
|
16981
|
+
React.createElement(antd.Col, { xl: 8, md: 9 },
|
16982
|
+
React.createElement(antd.Form.Item, { className: "inline", name: ["total"] },
|
16983
|
+
React.createElement(antd.InputNumber, { placeholder: currentPercTotal + "", controls: false, disabled: true, onKeyPress: function (event) {
|
16984
|
+
if (!/[0-9\.]/.test(event.key)) {
|
16985
|
+
event.preventDefault();
|
16986
|
+
}
|
16987
|
+
} })),
|
16988
|
+
React.createElement("div", { className: "inline separator" }, "/"),
|
16989
|
+
React.createElement(antd.Form.Item, { className: "inline" },
|
16990
|
+
React.createElement(antd.InputNumber, { disabled: true, placeholder: "100" })))))),
|
16991
|
+
React.createElement(antd.Form.Item, null,
|
16992
|
+
React.createElement("div", { className: "steps-actions" },
|
16993
|
+
React.createElement(antd.Button, { type: "primary", htmlType: "submit", loading: loading, onSubmit: submitInvestment }, t("programme:submit")),
|
16994
|
+
React.createElement(antd.Button, { className: "back-btn", onClick: function () { return prevOne(); }, loading: loading }, t("programme:back"))))))))),
|
16277
16995
|
},
|
16278
16996
|
] })))));
|
16279
16997
|
};
|
@@ -16384,7 +17102,7 @@ var InvestmentActionModel = function (props) {
|
|
16384
17102
|
};
|
16385
17103
|
|
16386
17104
|
var InvestmentManagementComponent = function (props) {
|
16387
|
-
var translator = props.translator,
|
17105
|
+
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView, onClickAddOwnership = props.onClickAddOwnership, enableAddOwnership = props.enableAddOwnership;
|
16388
17106
|
var t = translator.t;
|
16389
17107
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
16390
17108
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
@@ -16774,7 +17492,10 @@ var InvestmentManagementComponent = function (props) {
|
|
16774
17492
|
sorter: true,
|
16775
17493
|
align: "left",
|
16776
17494
|
render: function (item) {
|
16777
|
-
|
17495
|
+
if (item) {
|
17496
|
+
return React.createElement("span", { className: "clickable" }, item);
|
17497
|
+
}
|
17498
|
+
return React.createElement("span", null, "-");
|
16778
17499
|
},
|
16779
17500
|
onCell: function (record, rowIndex) {
|
16780
17501
|
return {
|
@@ -16832,6 +17553,12 @@ var InvestmentManagementComponent = function (props) {
|
|
16832
17553
|
key: "programmeSector",
|
16833
17554
|
sorter: true,
|
16834
17555
|
align: "left",
|
17556
|
+
render: function (item) {
|
17557
|
+
if (item) {
|
17558
|
+
return React.createElement("span", null, item);
|
17559
|
+
}
|
17560
|
+
return React.createElement("span", null, "-");
|
17561
|
+
},
|
16835
17562
|
},
|
16836
17563
|
{
|
16837
17564
|
title: t("programme:investor"),
|
@@ -16915,7 +17642,11 @@ var InvestmentManagementComponent = function (props) {
|
|
16915
17642
|
React.createElement("div", { className: "title-bar" },
|
16916
17643
|
React.createElement("div", { className: "body-title" }, t("programme:investmentTitle")),
|
16917
17644
|
React.createElement("div", { className: "body-sub-title" }, t("programme:investmentDesc"))),
|
16918
|
-
React.createElement("div", { className: "actions" }, enableAddOwnership &&
|
17645
|
+
React.createElement("div", { className: "actions" }, enableAddOwnership &&
|
17646
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.MINISTRY ||
|
17647
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.GOVERNMENT ||
|
17648
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.PROGRAMME_DEVELOPER) &&
|
17649
|
+
userInfoState.userRole != exports.Role.ViewOnly && (React.createElement("div", { className: "action-bar" },
|
16919
17650
|
React.createElement(antd.Button, { type: "primary", size: "large", block: true, icon: React.createElement(icons.PlusOutlined, null), onClick: onClickAddOwnership }, t("programme:addOwnership")))))),
|
16920
17651
|
React.createElement("div", { className: "content-card" },
|
16921
17652
|
React.createElement(antd.Row, null,
|
@@ -16962,7 +17693,7 @@ var InvestmentManagementComponent = function (props) {
|
|
16962
17693
|
return handleTableChange(val, sorter);
|
16963
17694
|
}, locale: {
|
16964
17695
|
emptyText: (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE, description: tableData.length === 0
|
16965
|
-
? t("
|
17696
|
+
? t("programme:noInvestmentData")
|
16966
17697
|
: null })),
|
16967
17698
|
} }))))),
|
16968
17699
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
@@ -16975,7 +17706,7 @@ var css_248z$l = ".steps-actions {\n display: flex;\n flex-direction: row-reve
|
|
16975
17706
|
styleInject(css_248z$l);
|
16976
17707
|
|
16977
17708
|
var SupportCreationComponent = function (props) {
|
16978
|
-
var t = props.t,
|
17709
|
+
var t = props.t, useLocation = props.useLocation; props.onNavigateToProgrammeManagementView; props.onNavigateToProgrammeView;
|
16979
17710
|
useLocation().state;
|
16980
17711
|
var _a = React.useState(); _a[0]; _a[1];
|
16981
17712
|
var formOne = antd.Form.useForm()[0];
|
@@ -16988,6 +17719,7 @@ var SupportCreationComponent = function (props) {
|
|
16988
17719
|
var _f = React.useState([]), organisationsList = _f[0], setOrganisationList = _f[1];
|
16989
17720
|
var _g = React.useState([]), instrument = _g[0], setInstrument = _g[1];
|
16990
17721
|
var _h = React.useState(); _h[0]; var setStepOneData = _h[1];
|
17722
|
+
var userInfoState = useUserContext().userInfoState;
|
16991
17723
|
var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
|
16992
17724
|
label: addSpaces(Object.values(exports.Instrument)[index]),
|
16993
17725
|
value: Object.values(exports.Instrument)[index],
|
@@ -17330,7 +18062,7 @@ var SupportCreationComponent = function (props) {
|
|
17330
18062
|
};
|
17331
18063
|
|
17332
18064
|
var SupportManagementComponent = function (props) {
|
17333
|
-
var translator = props.translator
|
18065
|
+
var translator = props.translator; props.onNavigateToProgrammeView; var enableAddSupport = props.enableAddSupport, onClickAddSupport = props.onClickAddSupport;
|
17334
18066
|
var t = translator.t;
|
17335
18067
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
17336
18068
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
@@ -17832,7 +18564,7 @@ var css_248z$k = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[valu
|
|
17832
18564
|
styleInject(css_248z$k);
|
17833
18565
|
|
17834
18566
|
var NdcActionManagementComponent = function (props) {
|
17835
|
-
var t = props.t,
|
18567
|
+
var t = props.t, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
|
17836
18568
|
var _a = React.useState(true), checkAll = _a[0], setCheckAll = _a[1];
|
17837
18569
|
var _b = React.useState([]), tableData = _b[0], setTableData = _b[1];
|
17838
18570
|
var _c = React.useState(), totalProgramme = _c[0], setTotalProgramme = _c[1];
|
@@ -19246,7 +19978,7 @@ var GenderParity = function (props) {
|
|
19246
19978
|
};
|
19247
19979
|
|
19248
19980
|
var Assessment = function (props) {
|
19249
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly,
|
19981
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
|
19250
19982
|
translator.setDefaultNamespace("coBenifits");
|
19251
19983
|
var t = translator.t;
|
19252
19984
|
var form1 = antd.Form.useForm()[0];
|
@@ -21651,7 +22383,7 @@ var SocialEnvironmentalRisk = function (props) {
|
|
21651
22383
|
};
|
21652
22384
|
|
21653
22385
|
var CoBenifitsComponent = function (props) {
|
21654
|
-
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
|
22386
|
+
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;
|
21655
22387
|
var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
21656
22388
|
var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
21657
22389
|
var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
@@ -21725,7 +22457,7 @@ var CoBenifitsComponent = function (props) {
|
|
21725
22457
|
label: t("coBenifits:assessment"),
|
21726
22458
|
key: "7",
|
21727
22459
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
21728
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false,
|
22460
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, translator: translator })),
|
21729
22461
|
},
|
21730
22462
|
{
|
21731
22463
|
label: t("coBenifits:socialEnvironmentalRisk"),
|
@@ -21894,7 +22626,7 @@ var CoBenifitsComponent = function (props) {
|
|
21894
22626
|
};
|
21895
22627
|
|
21896
22628
|
var AddNdcActionComponent = function (props) {
|
21897
|
-
var
|
22629
|
+
var useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
21898
22630
|
translator.setDefaultNamespace("ndcAction");
|
21899
22631
|
var t = translator.t;
|
21900
22632
|
var _a = React.useState(1), current = _a[0], setCurrent = _a[1];
|
@@ -22036,7 +22768,7 @@ var AddNdcActionComponent = function (props) {
|
|
22036
22768
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
22037
22769
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
22038
22770
|
? t("ndcAction:next")
|
22039
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages,
|
22771
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, translator: translator }))),
|
22040
22772
|
},
|
22041
22773
|
];
|
22042
22774
|
if (isProjectReportsVisible()) {
|
@@ -22173,7 +22905,7 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
|
|
22173
22905
|
var NdcActionViewComponent = function (props) {
|
22174
22906
|
var _a;
|
22175
22907
|
var _b, _c;
|
22176
|
-
var
|
22908
|
+
var useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages, Chart = props.Chart;
|
22177
22909
|
translator.setDefaultNamespace("ndcAction");
|
22178
22910
|
var t = translator.t;
|
22179
22911
|
var userInfoState = useUserContext().userInfoState;
|
@@ -22672,7 +23404,7 @@ var NdcActionViewComponent = function (props) {
|
|
22672
23404
|
React.createElement(antd.Card, { className: "card-container" },
|
22673
23405
|
React.createElement("div", { className: "co-benifits-view" },
|
22674
23406
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
22675
|
-
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,
|
23407
|
+
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 })))))))));
|
22676
23408
|
};
|
22677
23409
|
|
22678
23410
|
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";
|
@@ -22825,7 +23557,7 @@ var TransferActionModel = function (props) {
|
|
22825
23557
|
};
|
22826
23558
|
|
22827
23559
|
var CreditTransferComponent = function (props) {
|
22828
|
-
var
|
23560
|
+
var translator = props.translator, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
|
22829
23561
|
var userInfoState = useUserContext().userInfoState;
|
22830
23562
|
var t = translator.t;
|
22831
23563
|
var statusOptions = Object.keys(exports.CreditTransferStage).map(function (k, index) { return ({
|
@@ -23818,8 +24550,8 @@ var MapStatsComponent = function (props) {
|
|
23818
24550
|
|
23819
24551
|
var RangePicker$2 = antd.DatePicker.RangePicker;
|
23820
24552
|
var MrvDashboardComponent = function (props) {
|
23821
|
-
var
|
23822
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
24553
|
+
var Link = props.Link, Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
24554
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete; var statServerUrl = _b.statServerUrl;
|
23823
24555
|
var _c = React.useState({}), data = _c[0], setData = _c[1];
|
23824
24556
|
var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
|
23825
24557
|
var userInfoState = useUserContext().userInfoState;
|
@@ -24302,7 +25034,7 @@ var MrvDashboardComponent = function (props) {
|
|
24302
25034
|
_e.label = 1;
|
24303
25035
|
case 1:
|
24304
25036
|
_e.trys.push([1, 3, 4, 5]);
|
24305
|
-
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined,
|
25037
|
+
return [4 /*yield*/, post("stats/programme/agg", genPayload(), undefined, statServerUrl)];
|
24306
25038
|
case 2:
|
24307
25039
|
response = _e.sent();
|
24308
25040
|
console.log("Response", response);
|
@@ -25553,8 +26285,8 @@ var RegistryBarChartsStatComponent = function (props) {
|
|
25553
26285
|
|
25554
26286
|
var RangePicker$1 = antd.DatePicker.RangePicker;
|
25555
26287
|
var RegistryDashboardComponent = function (props) {
|
25556
|
-
var
|
25557
|
-
var _b = useConnection(); _b.get; var post = _b.post; _b.delete;
|
26288
|
+
var Chart = props.Chart, t = props.t, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
|
26289
|
+
var _b = useConnection(); _b.get; var post = _b.post; _b.delete; var statServerUrl = _b.statServerUrl;
|
25558
26290
|
var userInfoState = useUserContext().userInfoState;
|
25559
26291
|
var _c = React.useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
|
25560
26292
|
var _e = React.useState(false), loading = _e[0], setLoading = _e[1];
|
@@ -26001,7 +26733,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26001
26733
|
_253.label = 1;
|
26002
26734
|
case 1:
|
26003
26735
|
_253.trys.push([1, 3, 4, 5]);
|
26004
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined,
|
26736
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllChartsParams(), undefined, statServerUrl)];
|
26005
26737
|
case 2:
|
26006
26738
|
response = _253.sent();
|
26007
26739
|
totalCreditsCertifiedStats = void 0;
|
@@ -26278,7 +27010,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26278
27010
|
_77.label = 1;
|
26279
27011
|
case 1:
|
26280
27012
|
_77.trys.push([1, 3, 4, 5]);
|
26281
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined,
|
27013
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParamsWithoutTimeRange(), undefined, statServerUrl)];
|
26282
27014
|
case 2:
|
26283
27015
|
response = _77.sent();
|
26284
27016
|
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;
|
@@ -26371,7 +27103,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26371
27103
|
_188.label = 1;
|
26372
27104
|
case 1:
|
26373
27105
|
_188.trys.push([1, 3, 4, 5]);
|
26374
|
-
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined,
|
27106
|
+
return [4 /*yield*/, post("stats/programme/agg", getAllProgrammeAnalyticsStatsParams(), undefined, statServerUrl)];
|
26375
27107
|
case 2:
|
26376
27108
|
response = _188.sent();
|
26377
27109
|
programmeByStatusAuthAggregationResponse = void 0;
|
@@ -27352,7 +28084,7 @@ var getNdcActionStatusTagType = function (status) {
|
|
27352
28084
|
};
|
27353
28085
|
|
27354
28086
|
var NdcDetailsComponent = function (props) {
|
27355
|
-
var t = props.t
|
28087
|
+
var t = props.t;
|
27356
28088
|
var RangePicker = antd.DatePicker.RangePicker;
|
27357
28089
|
var _a = React.useState([]), ndcActionsList = _a[0], setNdcActionsList = _a[1];
|
27358
28090
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28349,7 +29081,7 @@ var ProgrammeIssueForm = function (props) {
|
|
28349
29081
|
};
|
28350
29082
|
|
28351
29083
|
var ProgrammeRetireForm = function (props) {
|
28352
|
-
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
|
29084
|
+
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;
|
28353
29085
|
var t = translator.t;
|
28354
29086
|
var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
28355
29087
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
@@ -28725,7 +29457,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
28725
29457
|
};
|
28726
29458
|
|
28727
29459
|
var ProgrammeTransferForm = function (props) {
|
28728
|
-
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,
|
29460
|
+
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;
|
28729
29461
|
var t = translator.t;
|
28730
29462
|
var _b = React.useState(undefined), popupError = _b[0], setPopupError = _b[1];
|
28731
29463
|
var _c = React.useState(false), loading = _c[0], setLoading = _c[1];
|
@@ -28956,7 +29688,7 @@ var css_248z$5 = ".ndc-action-body {\n display: flex;\n flex-direction: column
|
|
28956
29688
|
styleInject(css_248z$5);
|
28957
29689
|
|
28958
29690
|
var NdcActionBody = function (props) {
|
28959
|
-
var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission,
|
29691
|
+
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;
|
28960
29692
|
var t = translator.t;
|
28961
29693
|
var userInfoState = useUserContext().userInfoState;
|
28962
29694
|
var fileInputMonitoringRef = React.useRef(null);
|
@@ -29392,7 +30124,7 @@ var css_248z$4 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
|
|
29392
30124
|
styleInject(css_248z$4);
|
29393
30125
|
|
29394
30126
|
var ProgrammeDocuments = function (props) {
|
29395
|
-
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,
|
30127
|
+
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;
|
29396
30128
|
var t = translator.t;
|
29397
30129
|
var userInfoState = useUserContext().userInfoState;
|
29398
30130
|
var _a = useConnection(); _a.delete; var post = _a.post;
|
@@ -30343,7 +31075,7 @@ var GHGUserActionConfirmationModel = function (props) {
|
|
30343
31075
|
};
|
30344
31076
|
|
30345
31077
|
var GHGEmissionsComponent = function (props) {
|
30346
|
-
var t = props.t
|
31078
|
+
var t = props.t;
|
30347
31079
|
var userInfoState = useUserContext().userInfoState;
|
30348
31080
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
30349
31081
|
var _b = useConnection(), get = _b.get, post = _b.post;
|
@@ -32260,7 +32992,7 @@ var ProjectionTypes = {
|
|
32260
32992
|
};
|
32261
32993
|
|
32262
32994
|
var GHGProjectionsComponent = function (props) {
|
32263
|
-
var t = props.t
|
32995
|
+
var t = props.t;
|
32264
32996
|
var userInfoState = useUserContext().userInfoState;
|
32265
32997
|
var _a = React.useState([]), data = _a[0], setData = _a[1];
|
32266
32998
|
var _b = useConnection(); _b.put; var get = _b.get, post = _b.post;
|
@@ -34441,7 +35173,7 @@ var emissionComparisonOptionsSub = function (labels, chartColors) {
|
|
34441
35173
|
|
34442
35174
|
var RangePicker = antd.DatePicker.RangePicker;
|
34443
35175
|
var GHGDashboardComponent = function (props) {
|
34444
|
-
var t = props.t,
|
35176
|
+
var t = props.t, Chart = props.Chart, ButtonGroup = props.ButtonGroup, Link = props.Link, isMultipleDashboardsVisible = props.isMultipleDashboardsVisible;
|
34445
35177
|
var _a = useConnection(); _a.get; var post = _a.post; _a.delete;
|
34446
35178
|
var userInfoState = useUserContext().userInfoState;
|
34447
35179
|
var _b = React.useState(moment().year()), endYear = _b[0], setEndYear = _b[1];
|
@@ -34832,6 +35564,7 @@ exports.CoBenifitsComponent = CoBenifitsComponent;
|
|
34832
35564
|
exports.Company = Company;
|
34833
35565
|
exports.CompanyManagementComponent = CompanyManagementComponent;
|
34834
35566
|
exports.CompanyProfileComponent = CompanyProfileComponent;
|
35567
|
+
exports.ConnectionContextProvider = ConnectionContextProvider;
|
34835
35568
|
exports.CreditTransferComponent = CreditTransferComponent;
|
34836
35569
|
exports.DevBGColor = DevBGColor;
|
34837
35570
|
exports.DevColor = DevColor;
|
@@ -34879,6 +35612,8 @@ exports.RejectDocumentationConfirmationModel = RejectDocumentationConfirmationMo
|
|
34879
35612
|
exports.RoleIcon = RoleIcon;
|
34880
35613
|
exports.RootBGColor = RootBGColor;
|
34881
35614
|
exports.RootColor = RootColor;
|
35615
|
+
exports.SettingsContext = SettingsContext;
|
35616
|
+
exports.SettingsContextProvider = SettingsContextProvider;
|
34882
35617
|
exports.StasticCard = StasticCard;
|
34883
35618
|
exports.SupportCreationComponent = SupportCreationComponent;
|
34884
35619
|
exports.SupportManagementComponent = SupportManagementComponent;
|
@@ -34887,6 +35622,8 @@ exports.TooltipColor = TooltipColor;
|
|
34887
35622
|
exports.TransferActionModel = TransferActionModel;
|
34888
35623
|
exports.UnitField = UnitField;
|
34889
35624
|
exports.User = User;
|
35625
|
+
exports.UserContext = UserContext;
|
35626
|
+
exports.UserInformationContextProvider = UserInformationContextProvider;
|
34890
35627
|
exports.UserManagementComponent = UserManagementComponent;
|
34891
35628
|
exports.UserProfileComponent = UserProfileComponent;
|
34892
35629
|
exports.UserRoleIcon = UserRoleIcon;
|
@@ -34928,4 +35665,7 @@ exports.ndcActionTypeList = ndcActionTypeList;
|
|
34928
35665
|
exports.sectorMitigationTypesListMapped = sectorMitigationTypesListMapped;
|
34929
35666
|
exports.sumArray = sumArray;
|
34930
35667
|
exports.titleList = titleList;
|
35668
|
+
exports.useConnection = useConnection;
|
35669
|
+
exports.useSettingsContext = useSettingsContext;
|
35670
|
+
exports.useUserContext = useUserContext;
|
34931
35671
|
//# sourceMappingURL=index.js.map
|