@undp/carbon-library 1.0.274-CARBON-359.6 → 1.0.274-CARBON-404.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +575 -154
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Enums/govDep.enum.d.ts +161 -0
- package/dist/cjs/types/Definitions/Enums/ministry.enum.d.ts +17 -0
- package/dist/cjs/types/Definitions/index.d.ts +2 -0
- package/dist/esm/index.js +577 -156
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Enums/govDep.enum.d.ts +161 -0
- package/dist/esm/types/Definitions/Enums/ministry.enum.d.ts +17 -0
- package/dist/esm/types/Definitions/index.d.ts +2 -0
- package/dist/index.d.ts +181 -1
- package/dist/locales/i18n/companyProfile/en.json +2 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -5707,6 +5707,188 @@ exports.SystemNames = void 0;
|
|
5707
5707
|
SystemNames["CARBON_TRANSPARENCY"] = "CARBON_TRANSPARENCY_SYSTEM";
|
5708
5708
|
})(exports.SystemNames || (exports.SystemNames = {}));
|
5709
5709
|
|
5710
|
+
exports.GovDepartment = void 0;
|
5711
|
+
(function (GovDepartment) {
|
5712
|
+
GovDepartment["Cocoa Research Institute"] = "1";
|
5713
|
+
GovDepartment["National Agricultural Extension, Research and Liaison Services"] = "2";
|
5714
|
+
GovDepartment["National Veterinary Research Institute"] = "3";
|
5715
|
+
GovDepartment["Agricultural Insurance Corporation"] = "4";
|
5716
|
+
GovDepartment["National Root Crops Research Institute"] = "5";
|
5717
|
+
GovDepartment["Agricultural Research Council"] = "6";
|
5718
|
+
GovDepartment["Institute for Oceanography and Marine Research"] = "7";
|
5719
|
+
GovDepartment["Institute for Oil Palm Research"] = "8";
|
5720
|
+
GovDepartment["Agricultural Quarantine Service"] = "9";
|
5721
|
+
GovDepartment["National Horticultural Research Institute"] = "10";
|
5722
|
+
GovDepartment["Federal Airports Authority"] = "11";
|
5723
|
+
GovDepartment["Airspace Management Agency"] = "12";
|
5724
|
+
GovDepartment["Civil Aviation Authority"] = "13";
|
5725
|
+
GovDepartment["Safety Investigation Bureau"] = "14";
|
5726
|
+
GovDepartment["Meteorological Agency"] = "15";
|
5727
|
+
GovDepartment["College of Aviation Technology"] = "16";
|
5728
|
+
GovDepartment["National Information Technology Development Agency"] = "17";
|
5729
|
+
GovDepartment["Satellite Limited"] = "18";
|
5730
|
+
GovDepartment["Broadcasting Commission"] = "19";
|
5731
|
+
GovDepartment["Commission"] = "20";
|
5732
|
+
GovDepartment["Postal Service"] = "21";
|
5733
|
+
GovDepartment["National Frequency Management Council"] = "22";
|
5734
|
+
GovDepartment["Television Authority"] = "23";
|
5735
|
+
GovDepartment["Galaxy Backbone"] = "24";
|
5736
|
+
GovDepartment["Asset Management Corporation"] = "25";
|
5737
|
+
GovDepartment["Social Security Administration"] = "26";
|
5738
|
+
GovDepartment["Budget Office of the Federation"] = "27";
|
5739
|
+
GovDepartment["Bureau of Public Enterprises"] = "28";
|
5740
|
+
GovDepartment["Bureau of Public Procurement"] = "29";
|
5741
|
+
GovDepartment["Central Bank"] = "30";
|
5742
|
+
GovDepartment["Corporate Affairs Commission"] = "31";
|
5743
|
+
GovDepartment["Debt Management Office"] = "32";
|
5744
|
+
GovDepartment["Inland Revenue Service"] = "33";
|
5745
|
+
GovDepartment["Mortgage Bank"] = "34";
|
5746
|
+
GovDepartment["Fiscal Responsibility Commission"] = "35";
|
5747
|
+
GovDepartment["Infrastructure Concession Regulatory Commission"] = "36";
|
5748
|
+
GovDepartment["National Bureau of Statistics"] = "37";
|
5749
|
+
GovDepartment["National Council on Privatisation"] = "38";
|
5750
|
+
GovDepartment["National Insurance Commission"] = "39";
|
5751
|
+
GovDepartment["National Pension Commission"] = "40";
|
5752
|
+
GovDepartment["National Planning Commission"] = "41";
|
5753
|
+
GovDepartment["National Sugar Development Council"] = "42";
|
5754
|
+
GovDepartment["Niger Delta Development Commission"] = "43";
|
5755
|
+
GovDepartment["Customs Service"] = "44";
|
5756
|
+
GovDepartment["Deposit Insurance Corporation"] = "45";
|
5757
|
+
GovDepartment["Investment Promotion Commission"] = "46";
|
5758
|
+
GovDepartment["Export - Import Bank"] = "47";
|
5759
|
+
GovDepartment["Export Promotion Council"] = "48";
|
5760
|
+
GovDepartment["Oil and Gas Free Zones Authority"] = "49";
|
5761
|
+
GovDepartment["Export Processing Zones Authority"] = "50";
|
5762
|
+
GovDepartment["Revenue Mobilisation Allocation and Fiscal Commission"] = "51";
|
5763
|
+
GovDepartment["Securities and Exchange Commission"] = "52";
|
5764
|
+
GovDepartment["Standards Organisation"] = "53";
|
5765
|
+
GovDepartment["Small and Medium Enterprise Development Agency"] = "54";
|
5766
|
+
GovDepartment["National Board for Arabic And Islamic Studies"] = "55";
|
5767
|
+
GovDepartment["Joint Admissions and Matriculation Board"] = "56";
|
5768
|
+
GovDepartment["National Examination Council"] = "115";
|
5769
|
+
GovDepartment["National Open University"] = "57";
|
5770
|
+
GovDepartment["National Teachers Institute"] = "58";
|
5771
|
+
GovDepartment["National Universities Commission"] = "59";
|
5772
|
+
GovDepartment["Tertiary Education Trust Fund"] = "60";
|
5773
|
+
GovDepartment["Teachers Registration Council"] = "61";
|
5774
|
+
GovDepartment["National Business and Technical Examinations Board"] = "62";
|
5775
|
+
GovDepartment["Universal Basic Education Commission"] = "63";
|
5776
|
+
GovDepartment["West African Examination Council"] = "64";
|
5777
|
+
GovDepartment["National Commission for Colleges of Education"] = "65";
|
5778
|
+
GovDepartment["National Library"] = "66";
|
5779
|
+
GovDepartment["Midstream and Downstream Petroleum Regulatory Authority"] = "67";
|
5780
|
+
GovDepartment["Upstream Petroleum Regulatory Commission"] = "68";
|
5781
|
+
GovDepartment["Electricity Management Services Limited"] = "69";
|
5782
|
+
GovDepartment["Energy Commission"] = "70";
|
5783
|
+
GovDepartment["National Power Training Institute"] = "71";
|
5784
|
+
GovDepartment["Electricity Regulatory Commission"] = "72";
|
5785
|
+
GovDepartment["Content Monitoring and Development Board"] = "73";
|
5786
|
+
GovDepartment["National Petroleum Corporation"] = "74";
|
5787
|
+
GovDepartment["Nuclear Regulatory Authority Science & Technology"] = "75";
|
5788
|
+
GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
|
5789
|
+
GovDepartment["Power Holding Company (defunct)"] = "77";
|
5790
|
+
GovDepartment["Rural Electrification Agency"] = "78";
|
5791
|
+
GovDepartment["Transmission Company"] = "79";
|
5792
|
+
GovDepartment["Environmental Protection Agency (defunct)"] = "80";
|
5793
|
+
GovDepartment["Forestry Research Institute"] = "81";
|
5794
|
+
GovDepartment["National Biosafety Management Agency"] = "82";
|
5795
|
+
GovDepartment["National Environmental Standards and Regulations Enforcement Agency"] = "83";
|
5796
|
+
GovDepartment["National Oil Spill Detection and Response Agency"] = "84";
|
5797
|
+
GovDepartment["Environmental Health Officers Registration Council"] = "85";
|
5798
|
+
GovDepartment["National Health Insurance Scheme"] = "86";
|
5799
|
+
GovDepartment["Institute for Pharmaceutical Research and Development"] = "87";
|
5800
|
+
GovDepartment["Agency for the Control of AIDS"] = "88";
|
5801
|
+
GovDepartment["Agency for Food and Drug Administration and Control"] = "89";
|
5802
|
+
GovDepartment["Primary Health Care Development Agency"] = "90";
|
5803
|
+
GovDepartment["Institute of Medical Research"] = "91";
|
5804
|
+
GovDepartment["Centre for Disease Control"] = "92";
|
5805
|
+
GovDepartment["Drug Law Enforcement Agency"] = "93";
|
5806
|
+
GovDepartment["Defence Intelligence Agency"] = "94";
|
5807
|
+
GovDepartment["State Security Service"] = "95";
|
5808
|
+
GovDepartment["National Intelligence Agency"] = "96";
|
5809
|
+
GovDepartment["Financial Intelligence Unit"] = "97";
|
5810
|
+
GovDepartment["National Judicial Council"] = "98";
|
5811
|
+
GovDepartment["Federal Judicial Service Commission"] = "99";
|
5812
|
+
GovDepartment["National Judicial Institute"] = "100";
|
5813
|
+
GovDepartment["Maritime Administration and Safety Agency"] = "101";
|
5814
|
+
GovDepartment["Ports Authority"] = "102";
|
5815
|
+
GovDepartment["Shippers' Council"] = "103";
|
5816
|
+
GovDepartment["Broadcasting Organisation"] = "104";
|
5817
|
+
GovDepartment["News Agency"] = "105";
|
5818
|
+
GovDepartment["Press Council"] = "106";
|
5819
|
+
GovDepartment["Television Authority Media"] = "107";
|
5820
|
+
GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
|
5821
|
+
GovDepartment["Biotechnology Development Agency"] = "109";
|
5822
|
+
GovDepartment["Centre for Remote Sensing"] = "110";
|
5823
|
+
GovDepartment["Science and Technology Complex"] = "111";
|
5824
|
+
GovDepartment["Office for Technology Acquisition and Promotion"] = "112";
|
5825
|
+
GovDepartment["Space Research and Development Agency"] = "113";
|
5826
|
+
GovDepartment["Nuclear Regulatory Authority"] = "114";
|
5827
|
+
GovDepartment["Raw Materials Research and Development Council"] = "116";
|
5828
|
+
GovDepartment["Communications Satellite Ltd"] = "117";
|
5829
|
+
GovDepartment["Centre for Technology Management"] = "118";
|
5830
|
+
GovDepartment["Hydrological Services Agency"] = "119";
|
5831
|
+
GovDepartment["Integrated Water Resources Commission"] = "120";
|
5832
|
+
GovDepartment["Water Resources Institute"] = "121";
|
5833
|
+
GovDepartment["River Basin Development Authorities"] = "122";
|
5834
|
+
GovDepartment["Centre for Black and African Arts and Civilization"] = "123";
|
5835
|
+
GovDepartment["Automotive Design and Development Council"] = "124";
|
5836
|
+
GovDepartment["Code of Conduct Bureau"] = "125";
|
5837
|
+
GovDepartment["Computer Professionals Registration Council"] = "126";
|
5838
|
+
GovDepartment["Consumer Protection Council"] = "127";
|
5839
|
+
GovDepartment["Economic and Financial Crimes Commission"] = "128";
|
5840
|
+
GovDepartment["Federal Character Commission"] = "129";
|
5841
|
+
GovDepartment["Federal Housing Authority"] = "130";
|
5842
|
+
GovDepartment["Corrupt Practices and Other Related Offences Commission"] = "131";
|
5843
|
+
GovDepartment["Independent National Electoral Commission"] = "132";
|
5844
|
+
GovDepartment["Industrial Training Fund"] = "133";
|
5845
|
+
GovDepartment["Legal Aid Council"] = "134";
|
5846
|
+
GovDepartment["Agency for the Prohibition of Trafficking in Persons"] = "135";
|
5847
|
+
GovDepartment["National Boundary Commission"] = "136";
|
5848
|
+
GovDepartment["National Council of Arts and Culture"] = "137";
|
5849
|
+
GovDepartment["Economic Reconstruction Fund"] = "138";
|
5850
|
+
GovDepartment["Emergency Management Agency"] = "139";
|
5851
|
+
GovDepartment["Hajj Commission"] = "140";
|
5852
|
+
GovDepartment["Human Rights Commission"] = "141";
|
5853
|
+
GovDepartment["Identity Management Commission"] = "142";
|
5854
|
+
GovDepartment["Institute for Hospitality Tourism"] = "143";
|
5855
|
+
GovDepartment["Lottery Regulatory Commission"] = "144";
|
5856
|
+
GovDepartment["Orientation Agency"] = "145";
|
5857
|
+
GovDepartment["Population Commission"] = "146";
|
5858
|
+
GovDepartment["Poverty Eradication Programme (defunct)"] = "147";
|
5859
|
+
GovDepartment["Salaries, Incomes and Wages Commission"] = "148";
|
5860
|
+
GovDepartment["Sports Commission"] = "149";
|
5861
|
+
GovDepartment["Extractive Industries Transparency Initiative"] = "150";
|
5862
|
+
GovDepartment["Immigration Service"] = "151";
|
5863
|
+
GovDepartment["Building and Road Research Institute"] = "152";
|
5864
|
+
GovDepartment["Institute of Building"] = "153";
|
5865
|
+
GovDepartment["Christian Pilgrim Commission"] = "154";
|
5866
|
+
GovDepartment["Copyright Commission"] = "155";
|
5867
|
+
GovDepartment["Tourism Development Corporation"] = "156";
|
5868
|
+
GovDepartment["Public Complaints Commission"] = "157";
|
5869
|
+
GovDepartment["Surveyors Council"] = "158";
|
5870
|
+
GovDepartment["National Lottery Trust Fund"] = "159";
|
5871
|
+
})(exports.GovDepartment || (exports.GovDepartment = {}));
|
5872
|
+
|
5873
|
+
exports.Ministry = void 0;
|
5874
|
+
(function (Ministry) {
|
5875
|
+
Ministry["Agriculture"] = "Agriculture";
|
5876
|
+
Ministry["Aviation"] = "Aviation";
|
5877
|
+
Ministry["Communications"] = "Communications";
|
5878
|
+
Ministry["Economy"] = "Economy";
|
5879
|
+
Ministry["Education"] = "Education";
|
5880
|
+
Ministry["Energy"] = "Energy";
|
5881
|
+
Ministry["Environment"] = "Environment";
|
5882
|
+
Ministry["Health"] = "Health";
|
5883
|
+
Ministry["Intelligence"] = "Intelligence";
|
5884
|
+
Ministry["Judiciary"] = "Judiciary";
|
5885
|
+
Ministry["Maritime"] = "Maritime";
|
5886
|
+
Ministry["Media"] = "Media";
|
5887
|
+
Ministry["ScienceAndTechnology"] = "Science And Technology";
|
5888
|
+
Ministry["WaterResources"] = "Water Resources";
|
5889
|
+
Ministry["Other"] = "Other";
|
5890
|
+
})(exports.Ministry || (exports.Ministry = {}));
|
5891
|
+
|
5710
5892
|
exports.ConfigurationSettingsType = void 0;
|
5711
5893
|
(function (ConfigurationSettingsType) {
|
5712
5894
|
ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
|
@@ -5752,6 +5934,197 @@ var ProgrammeCertify = /** @class */ (function () {
|
|
5752
5934
|
return ProgrammeCertify;
|
5753
5935
|
}());
|
5754
5936
|
|
5937
|
+
var sectoralScopes$1 = {
|
5938
|
+
Agriculture: [
|
5939
|
+
"Cocoa Research Institute",
|
5940
|
+
"National Agricultural Extension, Research and Liaison Services",
|
5941
|
+
"National Veterinary Research Institute",
|
5942
|
+
"Agricultural Insurance Corporation",
|
5943
|
+
"National Root Crops Research Institute",
|
5944
|
+
"Agricultural Research Council",
|
5945
|
+
"Institute for Oceanography and Marine Research",
|
5946
|
+
"Institute for Oil Palm Research",
|
5947
|
+
"Agricultural Quarantine Service",
|
5948
|
+
"National Horticultural Research Institute",
|
5949
|
+
],
|
5950
|
+
Aviation: [
|
5951
|
+
"Federal Airports Authority",
|
5952
|
+
"Airspace Management Agency",
|
5953
|
+
"Civil Aviation Authority",
|
5954
|
+
"Safety Investigation Bureau",
|
5955
|
+
"Meteorological Agency",
|
5956
|
+
"College of Aviation Technology",
|
5957
|
+
],
|
5958
|
+
Communications: [
|
5959
|
+
"National Information Technology Development Agency",
|
5960
|
+
"Communications Satellite Limited",
|
5961
|
+
"Broadcasting Commission",
|
5962
|
+
"Communications Commission",
|
5963
|
+
"Postal Service",
|
5964
|
+
"National Frequency Management Council",
|
5965
|
+
"Television Authority",
|
5966
|
+
"Galaxy Backbone",
|
5967
|
+
],
|
5968
|
+
Economy: [
|
5969
|
+
"Asset Management Corporation",
|
5970
|
+
"Social Security Administration",
|
5971
|
+
"Budget Office of the Federation",
|
5972
|
+
"Bureau of Public Enterprises",
|
5973
|
+
"Bureau of Public Procurement",
|
5974
|
+
"Central Bank",
|
5975
|
+
"Corporate Affairs Commission",
|
5976
|
+
"Debt Management Office",
|
5977
|
+
"Inland Revenue Service",
|
5978
|
+
"Mortgage Bank",
|
5979
|
+
"Fiscal Responsibility Commission",
|
5980
|
+
"Infrastructure Concession Regulatory Commission",
|
5981
|
+
"National Bureau of Statistics",
|
5982
|
+
"National Council on Privatisation",
|
5983
|
+
"National Insurance Commission",
|
5984
|
+
"National Pension Commission",
|
5985
|
+
"National Planning Commission",
|
5986
|
+
"National Sugar Development Council",
|
5987
|
+
"Niger Delta Development Commission",
|
5988
|
+
"Customs Service",
|
5989
|
+
"Deposit Insurance Corporation",
|
5990
|
+
"Investment Promotion Commission",
|
5991
|
+
"Export - Import Bank",
|
5992
|
+
"Export Promotion Council",
|
5993
|
+
"Oil and Gas Free Zones Authority",
|
5994
|
+
"Export Processing Zones Authority",
|
5995
|
+
"Revenue Mobilisation Allocation and Fiscal Commission",
|
5996
|
+
"Securities and Exchange Commission",
|
5997
|
+
"Standards Organisation",
|
5998
|
+
"Small and Medium Enterprise Development Agency",
|
5999
|
+
],
|
6000
|
+
Education: [
|
6001
|
+
"National Board for Arabic And Islamic Studies",
|
6002
|
+
"Joint Admissions and Matriculation Board",
|
6003
|
+
"National Examination Council",
|
6004
|
+
"National Open University",
|
6005
|
+
"National Teachers Institute",
|
6006
|
+
"National Universities Commission",
|
6007
|
+
"Tertiary Education Trust Fund",
|
6008
|
+
"Teachers Registration Council",
|
6009
|
+
"National Business and Technical Examinations Board",
|
6010
|
+
"Universal Basic Education Commission",
|
6011
|
+
"West African Examination Council",
|
6012
|
+
"National Commission for Colleges of Education",
|
6013
|
+
"National Library",
|
6014
|
+
],
|
6015
|
+
Energy: [
|
6016
|
+
"Midstream and Downstream Petroleum Regulatory Authority",
|
6017
|
+
"Upstream Petroleum Regulatory Commission",
|
6018
|
+
"Electricity Management Services Limited",
|
6019
|
+
"Energy Commission",
|
6020
|
+
"National Power Training Institute",
|
6021
|
+
"Electricity Regulatory Commission",
|
6022
|
+
"Content Monitoring and Development Board",
|
6023
|
+
"National Petroleum Corporation",
|
6024
|
+
"Nuclear Regulatory Authority",
|
6025
|
+
"Petroleum Product Pricing Regulatory Agency",
|
6026
|
+
"Power Holding Company (defunct)",
|
6027
|
+
"Rural Electrification Agency",
|
6028
|
+
"Transmission Company",
|
6029
|
+
],
|
6030
|
+
Environment: [
|
6031
|
+
"Environmental Protection Agency (defunct)",
|
6032
|
+
"Forestry Research Institute",
|
6033
|
+
"National Biosafety Management Agency",
|
6034
|
+
"National Environmental Standards and Regulations Enforcement Agency",
|
6035
|
+
"National Oil Spill Detection and Response Agency",
|
6036
|
+
"Environmental Health Officers Registration Council",
|
6037
|
+
],
|
6038
|
+
Health: [
|
6039
|
+
"National Health Insurance Scheme",
|
6040
|
+
"Institute for Pharmaceutical Research and Development",
|
6041
|
+
"Agency for the Control of AIDS",
|
6042
|
+
"Agency for Food and Drug Administration and Control",
|
6043
|
+
"Primary Health Care Development Agency",
|
6044
|
+
"Institute of Medical Research",
|
6045
|
+
"Centre for Disease Control",
|
6046
|
+
"Drug Law Enforcement Agency",
|
6047
|
+
],
|
6048
|
+
Intelligence: [
|
6049
|
+
"Defence Intelligence Agency",
|
6050
|
+
"State Security Service",
|
6051
|
+
"National Intelligence Agency",
|
6052
|
+
"Financial Intelligence Unit",
|
6053
|
+
],
|
6054
|
+
Judiciary: [
|
6055
|
+
"National Judicial Council",
|
6056
|
+
"Federal Judicial Service Commission",
|
6057
|
+
"National Judicial Institute",
|
6058
|
+
],
|
6059
|
+
Maritime: [
|
6060
|
+
"Maritime Administration and Safety Agency",
|
6061
|
+
"Ports Authority",
|
6062
|
+
"Shippers' Council",
|
6063
|
+
],
|
6064
|
+
Media: [
|
6065
|
+
"Broadcasting Organisation",
|
6066
|
+
"News Agency",
|
6067
|
+
"Press Council",
|
6068
|
+
"Television Authority",
|
6069
|
+
],
|
6070
|
+
ScienceAndTechnology: [
|
6071
|
+
"Agency For Science and Engineering Infrastructure",
|
6072
|
+
"Biotechnology Development Agency",
|
6073
|
+
"Centre for Remote Sensing",
|
6074
|
+
"Science and Technology Complex",
|
6075
|
+
"Office for Technology Acquisition and Promotion",
|
6076
|
+
"Space Research and Development Agency",
|
6077
|
+
"Nuclear Regulatory Authority",
|
6078
|
+
"Raw Materials Research and Development Council",
|
6079
|
+
"Communications Satellite Ltd",
|
6080
|
+
"Centre for Technology Management",
|
6081
|
+
],
|
6082
|
+
WaterResources: [
|
6083
|
+
"Hydrological Services Agency",
|
6084
|
+
"Integrated Water Resources Commission",
|
6085
|
+
"Water Resources Institute",
|
6086
|
+
"River Basin Development Authorities",
|
6087
|
+
],
|
6088
|
+
Other: [
|
6089
|
+
"Centre for Black and African Arts and Civilization",
|
6090
|
+
"Automotive Design and Development Council",
|
6091
|
+
"Code of Conduct Bureau",
|
6092
|
+
"Computer Professionals Registration Council",
|
6093
|
+
"Consumer Protection Council",
|
6094
|
+
"Economic and Financial Crimes Commission",
|
6095
|
+
"Federal Character Commission",
|
6096
|
+
"Federal Housing Authority",
|
6097
|
+
"Corrupt Practices and Other Related Offences Commission",
|
6098
|
+
"Independent National Electoral Commission",
|
6099
|
+
"Industrial Training Fund",
|
6100
|
+
"Legal Aid Council",
|
6101
|
+
"Agency for the Prohibition of Trafficking in Persons",
|
6102
|
+
"National Boundary Commission",
|
6103
|
+
"National Council of Arts and Culture",
|
6104
|
+
"Economic Reconstruction Fund",
|
6105
|
+
"Emergency Management Agency",
|
6106
|
+
"Hajj Commission",
|
6107
|
+
"Human Rights Commission",
|
6108
|
+
"Identity Management Commission",
|
6109
|
+
"Institute for Hospitality Tourism",
|
6110
|
+
"Lottery Regulatory Commission",
|
6111
|
+
"Orientation Agency",
|
6112
|
+
"Population Commission",
|
6113
|
+
"Poverty Eradication Programme (defunct)",
|
6114
|
+
"Salaries, Incomes and Wages Commission",
|
6115
|
+
"Sports Commission",
|
6116
|
+
"Extractive Industries Transparency Initiative",
|
6117
|
+
"Immigration Service",
|
6118
|
+
"Building and Road Research Institute",
|
6119
|
+
"Institute of Building",
|
6120
|
+
"Christian Pilgrim Commission",
|
6121
|
+
"Copyright Commission",
|
6122
|
+
"Tourism Development Corporation",
|
6123
|
+
"Public Complaints Commission",
|
6124
|
+
"Surveyors Council",
|
6125
|
+
"National Lottery Trust Fund",
|
6126
|
+
],
|
6127
|
+
};
|
5755
6128
|
var AddNewCompanyComponent = function (props) {
|
5756
6129
|
var _a;
|
5757
6130
|
var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation, regionField = props.regionField, isGuest = props.isGuest, onNavigateToHome = props.onNavigateToHome, systemType = props.systemType;
|
@@ -5770,6 +6143,53 @@ var AddNewCompanyComponent = function (props) {
|
|
5770
6143
|
var _k = React.useState(false), loadingList = _k[0], setLoadingList = _k[1];
|
5771
6144
|
var _l = React.useState([]), regionsList = _l[0], setRegionsList = _l[1];
|
5772
6145
|
var _m = React.useState((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.companyRole), companyRole = _m[0], setCompanyRole = _m[1];
|
6146
|
+
var _o = React.useState(""), selectedMinistry = _o[0], setSelectedMinistry = _o[1];
|
6147
|
+
var _p = React.useState([]), existgovDep = _p[0], setexistGovdep = _p[1];
|
6148
|
+
var selectedGovDepatments = sectoralScopes$1[selectedMinistry];
|
6149
|
+
if (existgovDep && existgovDep.length > 0) {
|
6150
|
+
selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
|
6151
|
+
}
|
6152
|
+
var onChangeMinistry = function (val) { return __awaiter(void 0, void 0, void 0, function () {
|
6153
|
+
var key, response, existDep, i, departName;
|
6154
|
+
return __generator(this, function (_a) {
|
6155
|
+
switch (_a.label) {
|
6156
|
+
case 0:
|
6157
|
+
formOne.resetFields(["govDep"]);
|
6158
|
+
key = Object.keys(exports.Ministry)[Object.values(exports.Ministry).indexOf(val)];
|
6159
|
+
setSelectedMinistry(String(key));
|
6160
|
+
return [4 /*yield*/, post("national/organisation/query", {
|
6161
|
+
page: 1,
|
6162
|
+
size: 10,
|
6163
|
+
filterAnd: [
|
6164
|
+
{
|
6165
|
+
key: "companyRole",
|
6166
|
+
operation: "=",
|
6167
|
+
value: "Ministry",
|
6168
|
+
},
|
6169
|
+
{
|
6170
|
+
key: "ministry",
|
6171
|
+
operation: "=",
|
6172
|
+
value: val,
|
6173
|
+
},
|
6174
|
+
],
|
6175
|
+
})];
|
6176
|
+
case 1:
|
6177
|
+
response = _a.sent();
|
6178
|
+
if (response && response.data) {
|
6179
|
+
existDep = [];
|
6180
|
+
for (i in response.data) {
|
6181
|
+
console.log("existdata", response.data[i]);
|
6182
|
+
if (response.data[i].govDep && response.data[i].govDep.length > 0) {
|
6183
|
+
departName = Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(response.data[i].govDep)];
|
6184
|
+
existDep.push(departName);
|
6185
|
+
}
|
6186
|
+
}
|
6187
|
+
setexistGovdep(existDep);
|
6188
|
+
}
|
6189
|
+
return [2 /*return*/];
|
6190
|
+
}
|
6191
|
+
});
|
6192
|
+
}); };
|
5773
6193
|
var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
5774
6194
|
var response, alpha2Names;
|
5775
6195
|
return __generator(this, function (_a) {
|
@@ -5894,6 +6314,10 @@ var AddNewCompanyComponent = function (props) {
|
|
5894
6314
|
logoBase64 = _c.sent();
|
5895
6315
|
logoUrls = logoBase64.split(",");
|
5896
6316
|
requestData.company.logo = logoUrls[1];
|
6317
|
+
if (companyRole === exports.CompanyRole.MINISTRY) {
|
6318
|
+
requestData.company.name =
|
6319
|
+
"Ministry of " + requestData.company.ministry;
|
6320
|
+
}
|
5897
6321
|
if (!isGuest) return [3 /*break*/, 4];
|
5898
6322
|
return [4 /*yield*/, post("national/user/register", requestData)];
|
5899
6323
|
case 3:
|
@@ -5946,7 +6370,7 @@ var AddNewCompanyComponent = function (props) {
|
|
5946
6370
|
});
|
5947
6371
|
}); };
|
5948
6372
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
5949
|
-
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
6373
|
+
var formOneValues, values, key, logoBase64, logoUrls, response, error_3;
|
5950
6374
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
5951
6375
|
return __generator(this, function (_l) {
|
5952
6376
|
switch (_l.label) {
|
@@ -5987,6 +6411,15 @@ var AddNewCompanyComponent = function (props) {
|
|
5987
6411
|
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === exports.CompanyRole.MINISTRY) {
|
5988
6412
|
values.sectoralScope = formOneValues.sectoralScope;
|
5989
6413
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
6414
|
+
values.ministry = formOneValues.ministry;
|
6415
|
+
if (formOneValues.govDep in exports.GovDepartment) {
|
6416
|
+
key = formOneValues.govDep;
|
6417
|
+
values.govDep = exports.GovDepartment[key];
|
6418
|
+
}
|
6419
|
+
else {
|
6420
|
+
values.govDep = formOneValues.govDep;
|
6421
|
+
}
|
6422
|
+
values.name = "Ministry of " + formOneValues.ministry;
|
5990
6423
|
}
|
5991
6424
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
|
5992
6425
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
@@ -6047,7 +6480,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6047
6480
|
setCompanyRole(value);
|
6048
6481
|
};
|
6049
6482
|
var CompanyDetailsForm = function () {
|
6050
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
6483
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
6051
6484
|
var companyRoleClassName = companyRole === exports.CompanyRole.CERTIFIER
|
6052
6485
|
? "certifier"
|
6053
6486
|
: companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER
|
@@ -6061,7 +6494,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6061
6494
|
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
6062
6495
|
React.createElement(antd.Col, { xl: 12, md: 24 },
|
6063
6496
|
React.createElement("div", { className: "details-part-one" },
|
6064
|
-
React.createElement(antd.Form.Item, { label: "Name", name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
|
6497
|
+
companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Name", name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
|
6065
6498
|
{
|
6066
6499
|
required: true,
|
6067
6500
|
message: "",
|
@@ -6080,7 +6513,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6080
6513
|
}); },
|
6081
6514
|
},
|
6082
6515
|
] },
|
6083
|
-
React.createElement(antd.Input, { size: "large" })),
|
6516
|
+
React.createElement(antd.Input, { size: "large" }))),
|
6084
6517
|
companyRole !== exports.CompanyRole.MINISTRY
|
6085
6518
|
? (!isUpdate ||
|
6086
6519
|
(isUpdate &&
|
@@ -6160,7 +6593,31 @@ var AddNewCompanyComponent = function (props) {
|
|
6160
6593
|
},
|
6161
6594
|
] },
|
6162
6595
|
React.createElement(antd.Input, { size: "large" })),
|
6163
|
-
React.createElement(
|
6596
|
+
companyRole === exports.CompanyRole.MINISTRY && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6597
|
+
React.createElement(antd.Form.Item, { label: "Ministry Name", name: "ministry", initialValue: (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.ministry, rules: [
|
6598
|
+
{
|
6599
|
+
required: true,
|
6600
|
+
message: "Ministry Name is required",
|
6601
|
+
},
|
6602
|
+
] },
|
6603
|
+
React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, Object.values(exports.Ministry).map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, ministry)); }))),
|
6604
|
+
React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.nameOfMinister, rules: [
|
6605
|
+
{
|
6606
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6607
|
+
return __generator(this, function (_a) {
|
6608
|
+
if (String(value).trim() === "" ||
|
6609
|
+
String(value).trim() === undefined ||
|
6610
|
+
value === null ||
|
6611
|
+
value === undefined) {
|
6612
|
+
throw new Error("Name of the Minister ".concat(t("isRequired")));
|
6613
|
+
}
|
6614
|
+
return [2 /*return*/];
|
6615
|
+
});
|
6616
|
+
}); },
|
6617
|
+
},
|
6618
|
+
] },
|
6619
|
+
React.createElement(antd.Input, { size: "large" })))),
|
6620
|
+
React.createElement(antd.Form.Item, { className: "website", label: "Website", initialValue: (_h = (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.website) === null || _h === void 0 ? void 0 : _h.split("://")[1], name: "website", rules: [
|
6164
6621
|
{
|
6165
6622
|
required: false,
|
6166
6623
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6178,6 +6635,23 @@ var AddNewCompanyComponent = function (props) {
|
|
6178
6635
|
},
|
6179
6636
|
], getValueFromEvent: function (event) { var _a; return (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value.trim(); } },
|
6180
6637
|
React.createElement(antd.Input, { addonBefore: "https://", size: "large" })),
|
6638
|
+
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.address, rules: [
|
6639
|
+
{ required: true, message: "" },
|
6640
|
+
{
|
6641
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6642
|
+
return __generator(this, function (_a) {
|
6643
|
+
if (String(value).trim() === "" ||
|
6644
|
+
String(value).trim() === undefined ||
|
6645
|
+
value === null ||
|
6646
|
+
value === undefined) {
|
6647
|
+
throw new Error("Address ".concat(t("isRequired")));
|
6648
|
+
}
|
6649
|
+
return [2 /*return*/];
|
6650
|
+
});
|
6651
|
+
}); },
|
6652
|
+
},
|
6653
|
+
] },
|
6654
|
+
React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6181
6655
|
React.createElement(antd.Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
|
6182
6656
|
{
|
6183
6657
|
validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6221,29 +6695,12 @@ var AddNewCompanyComponent = function (props) {
|
|
6221
6695
|
return false;
|
6222
6696
|
}, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
|
6223
6697
|
React.createElement(antd.Button, { size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload"))),
|
6224
|
-
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
|
6225
|
-
{ required: true, message: "" },
|
6226
|
-
{
|
6227
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6228
|
-
return __generator(this, function (_a) {
|
6229
|
-
if (String(value).trim() === "" ||
|
6230
|
-
String(value).trim() === undefined ||
|
6231
|
-
value === null ||
|
6232
|
-
value === undefined) {
|
6233
|
-
throw new Error("Address ".concat(t("isRequired")));
|
6234
|
-
}
|
6235
|
-
return [2 /*return*/];
|
6236
|
-
});
|
6237
|
-
}); },
|
6238
|
-
},
|
6239
|
-
] },
|
6240
|
-
React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6241
6698
|
companyRole === exports.CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6242
6699
|
React.createElement(antd.Space, { wrap: true, style: {
|
6243
6700
|
display: "flex",
|
6244
6701
|
marginBottom: 8,
|
6245
6702
|
}, align: "center", size: "large" },
|
6246
|
-
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (
|
6703
|
+
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.nationalSopValue, rules: [
|
6247
6704
|
{ required: true, message: "" },
|
6248
6705
|
{
|
6249
6706
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6301,37 +6758,45 @@ var AddNewCompanyComponent = function (props) {
|
|
6301
6758
|
React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
|
6302
6759
|
React.createElement(icons.AuditOutlined, { className: "role-icons" }),
|
6303
6760
|
"Ministry")))))))),
|
6304
|
-
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "
|
6761
|
+
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Government Department", name: "govDep", initialValue: Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.govDep)], rules: [
|
6305
6762
|
{
|
6306
6763
|
required: true,
|
6307
|
-
message: "",
|
6764
|
+
message: "Government Department is required",
|
6308
6765
|
},
|
6309
6766
|
{
|
6310
6767
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6768
|
+
var val;
|
6311
6769
|
return __generator(this, function (_a) {
|
6312
|
-
|
6313
|
-
|
6314
|
-
|
6315
|
-
|
6316
|
-
|
6770
|
+
val = Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(value)];
|
6771
|
+
if (val &&
|
6772
|
+
val.length > 0 &&
|
6773
|
+
selectedGovDepatments &&
|
6774
|
+
!selectedGovDepatments.includes(val)) {
|
6775
|
+
throw new Error("Department not exist in Ministry");
|
6317
6776
|
}
|
6318
6777
|
return [2 /*return*/];
|
6319
6778
|
});
|
6320
6779
|
}); },
|
6321
6780
|
},
|
6322
6781
|
] },
|
6323
|
-
React.createElement(antd.
|
6782
|
+
React.createElement(antd.Select, { size: "large" }, selectedGovDepatments === null || selectedGovDepatments === void 0 ? void 0 : selectedGovDepatments.map(function (val) {
|
6783
|
+
if (val in exports.GovDepartment) {
|
6784
|
+
var key = val;
|
6785
|
+
return (React.createElement(antd.Select.Option, { key: exports.GovDepartment[key], value: exports.GovDepartment[key] }, val));
|
6786
|
+
}
|
6787
|
+
return null;
|
6788
|
+
})))),
|
6324
6789
|
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
|
6325
6790
|
{
|
6326
6791
|
required: true,
|
6327
6792
|
message: "Sectoral Scope ".concat(t("isRequired")),
|
6328
6793
|
},
|
6329
|
-
], initialValue: (
|
6794
|
+
], initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.sectoralScope },
|
6330
6795
|
React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(exports.SectoralScope).map(function (_a) {
|
6331
6796
|
var key = _a[0], value = _a[1];
|
6332
6797
|
return (React.createElement(antd.Select.Option, { key: value, value: value }, key));
|
6333
6798
|
})))),
|
6334
|
-
React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (
|
6799
|
+
React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.phoneNo, rules: [
|
6335
6800
|
{
|
6336
6801
|
required: true,
|
6337
6802
|
message: "",
|
@@ -6362,14 +6827,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6362
6827
|
},
|
6363
6828
|
] },
|
6364
6829
|
React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
|
6365
|
-
regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (
|
6830
|
+
regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.regions, rules: [
|
6366
6831
|
{
|
6367
6832
|
required: true,
|
6368
6833
|
message: "".concat(t("region"), " ").concat(t("isRequired")),
|
6369
6834
|
},
|
6370
6835
|
] },
|
6371
6836
|
React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(antd.Select.Option, { value: region }, region)); })))),
|
6372
|
-
companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (
|
6837
|
+
companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_q = state === null || state === void 0 ? void 0 : state.record) === null || _q === void 0 ? void 0 : _q.address, rules: [
|
6373
6838
|
{ required: true, message: "" },
|
6374
6839
|
{
|
6375
6840
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6392,7 +6857,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6392
6857
|
display: "flex",
|
6393
6858
|
marginBottom: 8,
|
6394
6859
|
}, align: "center", size: "large" },
|
6395
|
-
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (
|
6860
|
+
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_r = state === null || state === void 0 ? void 0 : state.record) === null || _r === void 0 ? void 0 : _r.omgePercentage, rules: [
|
6396
6861
|
{ required: true, message: "" },
|
6397
6862
|
{
|
6398
6863
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6899,6 +7364,16 @@ var CompanyProfileComponent = function (props) {
|
|
6899
7364
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
|
6900
7365
|
? companyDetails.nameOfMinister
|
6901
7366
|
: "-")),
|
7367
|
+
React.createElement(antd.Row, { className: "field" },
|
7368
|
+
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
|
7369
|
+
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.ministry
|
7370
|
+
? companyDetails.ministry
|
7371
|
+
: "-")),
|
7372
|
+
React.createElement(antd.Row, { className: "field" },
|
7373
|
+
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
|
7374
|
+
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.govDep
|
7375
|
+
? Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(companyDetails.govDep)]
|
7376
|
+
: "-")),
|
6902
7377
|
React.createElement(antd.Row, { className: "field" },
|
6903
7378
|
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
|
6904
7379
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
|
@@ -21882,15 +22357,13 @@ var NdcActionViewComponent = function (props) {
|
|
21882
22357
|
((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
|
21883
22358
|
}
|
21884
22359
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
|
21885
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21886
|
-
exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
22360
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
21887
22361
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21888
22362
|
mitigationDetails[t("ndcAction:viewMitigationWeight")] =
|
21889
|
-
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) +
|
22363
|
+
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
|
21890
22364
|
}
|
21891
22365
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
21892
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21893
|
-
exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
22366
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
21894
22367
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
|
21895
22368
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21896
22369
|
addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
|
@@ -21899,17 +22372,15 @@ var NdcActionViewComponent = function (props) {
|
|
21899
22372
|
(_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
|
21900
22373
|
}
|
21901
22374
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
21902
|
-
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21903
|
-
exports.MitigationSubTypes.
|
21904
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21905
|
-
exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
22375
|
+
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
22376
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
21906
22377
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21907
22378
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21908
|
-
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
22379
|
+
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
22380
|
+
((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
|
21909
22381
|
}
|
21910
22382
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.EE_HOUSEHOLDS &&
|
21911
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21912
|
-
exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
22383
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
21913
22384
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21914
22385
|
mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
|
21915
22386
|
(_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
|
@@ -22092,24 +22563,23 @@ var NdcActionViewComponent = function (props) {
|
|
22092
22563
|
: "empty" }, t("programme:monitoringReport")),
|
22093
22564
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
22094
22565
|
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22095
|
-
" ~ " + monitoringReportversion)))
|
22096
|
-
React.createElement(antd.Row, null,
|
22566
|
+
" ~ " + monitoringReportversion))),
|
22097
22567
|
React.createElement("div", { className: "icon" }, !(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
22098
22568
|
? t("programme:notAuthToUploadDoc")
|
22099
22569
|
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId)
|
22100
22570
|
? !canUploadMonitorReport &&
|
22101
22571
|
t("programme:programmeNotAuth")
|
22102
22572
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
22103
|
-
React.createElement(icons.FileAddOutlined, null)))),
|
22104
|
-
|
22105
|
-
|
22106
|
-
|
22107
|
-
|
22108
|
-
|
22109
|
-
|
22110
|
-
|
22111
|
-
|
22112
|
-
|
22573
|
+
React.createElement(icons.FileAddOutlined, null))))),
|
22574
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Row, null,
|
22575
|
+
React.createElement("div", { className: "icon" },
|
22576
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22577
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22578
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22579
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22580
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
22581
|
+
linkDocVisible(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) && (React.createElement("a", { href: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
22582
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
|
22113
22583
|
React.createElement("div", { className: "report-details" },
|
22114
22584
|
React.createElement("div", { className: "report-type" },
|
22115
22585
|
React.createElement("div", { className: "name-time-container" },
|
@@ -22118,24 +22588,23 @@ var NdcActionViewComponent = function (props) {
|
|
22118
22588
|
: "empty" }, t("programme:verificationReport")),
|
22119
22589
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
22120
22590
|
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22121
|
-
" ~ " + verificationReportVersion)))
|
22122
|
-
React.createElement(antd.Row, null,
|
22591
|
+
" ~ " + verificationReportVersion))),
|
22123
22592
|
React.createElement("div", { className: "icon" }, !(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
22124
22593
|
? t("programme:notAuthToUploadDoc")
|
22125
22594
|
: uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId)
|
22126
22595
|
? !monitoringReportAccepted &&
|
22127
22596
|
t("programme:monitoringRepNotApproved")
|
22128
22597
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
22129
|
-
React.createElement(icons.FileAddOutlined, null)))),
|
22130
|
-
|
22131
|
-
|
22132
|
-
|
22133
|
-
|
22134
|
-
|
22135
|
-
|
22136
|
-
|
22137
|
-
|
22138
|
-
|
22598
|
+
React.createElement(icons.FileAddOutlined, null))))),
|
22599
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(antd.Row, null,
|
22600
|
+
React.createElement("div", { className: "icon" },
|
22601
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22602
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22603
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22604
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22605
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
22606
|
+
linkDocVisible(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) && (React.createElement("a", { href: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
22607
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
|
22139
22608
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.Mitigation ||
|
22140
22609
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, null,
|
22141
22610
|
React.createElement(antd.Col, { lg: 24, className: "gutter-row" },
|
@@ -28071,7 +28540,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
28071
28540
|
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
28072
28541
|
};
|
28073
28542
|
|
28074
|
-
var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: flex-start;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%;\n align-items: flex-start; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%;\n justify-content: flex-start;\n gap: 20px
|
28543
|
+
var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: flex-start;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%;\n align-items: flex-start; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
|
28075
28544
|
styleInject(css_248z$2);
|
28076
28545
|
|
28077
28546
|
var NdcActionBody = function (props) {
|
@@ -28337,7 +28806,7 @@ var NdcActionBody = function (props) {
|
|
28337
28806
|
React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28338
28807
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28339
28808
|
return docAction(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id, exports.DocumentStatus.ACCEPTED, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.actionId, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.type);
|
28340
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28809
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28341
28810
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28342
28811
|
setRejectDocData({
|
28343
28812
|
id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
|
@@ -28352,8 +28821,8 @@ var NdcActionBody = function (props) {
|
|
28352
28821
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28353
28822
|
});
|
28354
28823
|
setOpenRejectDocConfirmationModal(true);
|
28355
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28356
|
-
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70"
|
28824
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : monitoringReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (monitoringReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28825
|
+
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28357
28826
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28358
28827
|
? t("programme:notAuthToUploadDoc")
|
28359
28828
|
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28384,7 +28853,7 @@ var NdcActionBody = function (props) {
|
|
28384
28853
|
} }))))),
|
28385
28854
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
|
28386
28855
|
React.createElement("div", { className: "link" }, linkDocVisible(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) && (React.createElement("a", { href: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
28387
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47"
|
28856
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28388
28857
|
!monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28389
28858
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28390
28859
|
? t("programme:notAuthToUploadDoc")
|
@@ -28427,7 +28896,7 @@ var NdcActionBody = function (props) {
|
|
28427
28896
|
ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28428
28897
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28429
28898
|
return docAction(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id, exports.DocumentStatus.ACCEPTED, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.actionId, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.type);
|
28430
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28899
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28431
28900
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28432
28901
|
setRejectDocData({
|
28433
28902
|
id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
|
@@ -28442,8 +28911,8 @@ var NdcActionBody = function (props) {
|
|
28442
28911
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28443
28912
|
});
|
28444
28913
|
setOpenRejectDocConfirmationModal(true);
|
28445
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28446
|
-
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70"
|
28914
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : verificationReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (verifcationReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28915
|
+
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28447
28916
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28448
28917
|
? t("programme:notAuthToUploadDoc")
|
28449
28918
|
: uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28474,7 +28943,7 @@ var NdcActionBody = function (props) {
|
|
28474
28943
|
} })))))),
|
28475
28944
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
|
28476
28945
|
React.createElement("div", { className: "link" }, linkDocVisible(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) && (React.createElement("a", { href: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
28477
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47"
|
28946
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28478
28947
|
!verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28479
28948
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28480
28949
|
? t("programme:notAuthToUploadDoc")
|
@@ -28507,7 +28976,7 @@ var NdcActionBody = function (props) {
|
|
28507
28976
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
28508
28977
|
};
|
28509
28978
|
|
28510
|
-
var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row
|
28979
|
+
var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row; }\n .info-view .field-key .label {\n width: 70%; }\n .info-view .field-key .label-uploaded {\n color: rgba(58, 53, 65, 0.8);\n width: 70%; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .link {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
|
28511
28980
|
styleInject(css_248z$1);
|
28512
28981
|
|
28513
28982
|
var ProgrammeDocuments = function (props) {
|
@@ -28754,7 +29223,7 @@ var ProgrammeDocuments = function (props) {
|
|
28754
29223
|
(designDocActionPermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28755
29224
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28756
29225
|
return docAction(designDocId, exports.DocumentStatus.ACCEPTED);
|
28757
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
29226
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28758
29227
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28759
29228
|
setRejectDocData({ id: designDocId });
|
28760
29229
|
setActionInfo({
|
@@ -28765,8 +29234,8 @@ var ProgrammeDocuments = function (props) {
|
|
28765
29234
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28766
29235
|
});
|
28767
29236
|
setOpenRejectDocConfirmationModal(true);
|
28768
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28769
|
-
designDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
29237
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29238
|
+
designDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28770
29239
|
designDocStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28771
29240
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28772
29241
|
designDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28774,23 +29243,15 @@ var ProgrammeDocuments = function (props) {
|
|
28774
29243
|
" ~ " + designDocversion))),
|
28775
29244
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
28776
29245
|
linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28777
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
29246
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28778
29247
|
designDocStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28779
29248
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly ||
|
28780
29249
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER
|
28781
29250
|
? t("programme:notAuthToUploadDoc")
|
28782
29251
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28783
29252
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28784
|
-
? {
|
28785
|
-
|
28786
|
-
cursor: "pointer",
|
28787
|
-
margin: "0px 0px 1.5px 0px",
|
28788
|
-
}
|
28789
|
-
: {
|
28790
|
-
color: "#cacaca",
|
28791
|
-
cursor: "default",
|
28792
|
-
margin: "0px 0px 1.5px 0px",
|
28793
|
-
}, onClick: function () {
|
29253
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29254
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28794
29255
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
28795
29256
|
} })),
|
28796
29257
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -28803,16 +29264,8 @@ var ProgrammeDocuments = function (props) {
|
|
28803
29264
|
? t("programme:notAuthToUploadDoc")
|
28804
29265
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28805
29266
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28806
|
-
? {
|
28807
|
-
|
28808
|
-
cursor: "pointer",
|
28809
|
-
margin: "0px 0px 1.5px 0px",
|
28810
|
-
}
|
28811
|
-
: {
|
28812
|
-
color: "#cacaca",
|
28813
|
-
cursor: "default",
|
28814
|
-
margin: "0px 0px 1.5px 0px",
|
28815
|
-
}, onClick: function () {
|
29267
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29268
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28816
29269
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
28817
29270
|
} })),
|
28818
29271
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -28838,7 +29291,7 @@ var ProgrammeDocuments = function (props) {
|
|
28838
29291
|
(companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28839
29292
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28840
29293
|
return docAction(methDocId, exports.DocumentStatus.ACCEPTED);
|
28841
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
29294
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28842
29295
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28843
29296
|
setRejectDocData({ id: methDocId });
|
28844
29297
|
setActionInfo({
|
@@ -28849,8 +29302,8 @@ var ProgrammeDocuments = function (props) {
|
|
28849
29302
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28850
29303
|
});
|
28851
29304
|
setOpenRejectDocConfirmationModal(true);
|
28852
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28853
|
-
methodDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
29305
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29306
|
+
methodDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28854
29307
|
methodDocStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28855
29308
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28856
29309
|
methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28858,22 +29311,15 @@ var ProgrammeDocuments = function (props) {
|
|
28858
29311
|
" ~ " + methDocversion))),
|
28859
29312
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
28860
29313
|
linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28861
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
29314
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28862
29315
|
methodDocStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28863
29316
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28864
29317
|
? t("programme:notAuthToUploadDoc")
|
28865
29318
|
: !uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28866
29319
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
28867
29320
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28868
|
-
? {
|
28869
|
-
|
28870
|
-
cursor: "pointer",
|
28871
|
-
margin: "0px 0px 1.5px 0px",
|
28872
|
-
}
|
28873
|
-
: {
|
28874
|
-
color: "#cacaca",
|
28875
|
-
margin: "0px 0px 1.5px 0px",
|
28876
|
-
}, onClick: function () {
|
29321
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29322
|
+
: { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28877
29323
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
28878
29324
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
28879
29325
|
handleMethodologyFileUpload();
|
@@ -28892,16 +29338,8 @@ var ProgrammeDocuments = function (props) {
|
|
28892
29338
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28893
29339
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
28894
29340
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28895
|
-
? {
|
28896
|
-
|
28897
|
-
cursor: "pointer",
|
28898
|
-
margin: "0px 0px 1.5px 0px",
|
28899
|
-
}
|
28900
|
-
: {
|
28901
|
-
color: "#cacaca",
|
28902
|
-
cursor: "default",
|
28903
|
-
margin: "0px 0px 1.5px 0px",
|
28904
|
-
}, onClick: function () {
|
29341
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29342
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28905
29343
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
28906
29344
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
28907
29345
|
handleMethodologyFileUpload();
|
@@ -28930,7 +29368,7 @@ var ProgrammeDocuments = function (props) {
|
|
28930
29368
|
(ministryLevelPermission || companyRolePermission) && (React.createElement(React.Fragment, null,
|
28931
29369
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28932
29370
|
return docAction(impactAssessmentId, exports.DocumentStatus.ACCEPTED);
|
28933
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
29371
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28934
29372
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28935
29373
|
setRejectDocData({ id: impactAssessmentId });
|
28936
29374
|
setActionInfo({
|
@@ -28941,8 +29379,8 @@ var ProgrammeDocuments = function (props) {
|
|
28941
29379
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28942
29380
|
});
|
28943
29381
|
setOpenRejectDocConfirmationModal(true);
|
28944
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28945
|
-
impactAssessmentStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
29382
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29383
|
+
impactAssessmentStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28946
29384
|
impactAssessmentStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28947
29385
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28948
29386
|
impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28950,22 +29388,13 @@ var ProgrammeDocuments = function (props) {
|
|
28950
29388
|
" ~ " + impactAssessmentversion))),
|
28951
29389
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
|
28952
29390
|
linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28953
|
-
React.createElement("
|
28954
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
|
29391
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28955
29392
|
impactAssessmentStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28956
29393
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
28957
29394
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
28958
29395
|
!isProjectRejected
|
28959
|
-
? {
|
28960
|
-
|
28961
|
-
cursor: "pointer",
|
28962
|
-
margin: "0px 0px 1.5px 0px",
|
28963
|
-
}
|
28964
|
-
: {
|
28965
|
-
color: "#cacaca",
|
28966
|
-
cursor: "default",
|
28967
|
-
margin: "0px 0px 1.5px 0px",
|
28968
|
-
}, onClick: function () {
|
29396
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29397
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28969
29398
|
return uploadImpactAssessmentDocUserPermission &&
|
28970
29399
|
!isProjectRejected &&
|
28971
29400
|
handleImpactAssessmentFileUpload();
|
@@ -28978,16 +29407,8 @@ var ProgrammeDocuments = function (props) {
|
|
28978
29407
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
28979
29408
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
28980
29409
|
!isProjectRejected
|
28981
|
-
? {
|
28982
|
-
|
28983
|
-
cursor: "pointer",
|
28984
|
-
margin: "0px 0px 1.5px 0px",
|
28985
|
-
}
|
28986
|
-
: {
|
28987
|
-
color: "#cacaca",
|
28988
|
-
cursor: "default",
|
28989
|
-
margin: "0px 0px 1.5px 0px",
|
28990
|
-
}, onClick: function () {
|
29410
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
29411
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28991
29412
|
return uploadImpactAssessmentDocUserPermission &&
|
28992
29413
|
!isProjectRejected &&
|
28993
29414
|
handleImpactAssessmentFileUpload();
|