@undp/carbon-library 1.0.274-CARBON-404.1 → 1.0.274-CARBON-359.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +126 -554
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/index.d.ts +0 -2
- package/dist/esm/index.js +128 -556
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/index.d.ts +0 -2
- package/dist/index.d.ts +1 -181
- package/dist/locales/i18n/companyProfile/en.json +0 -2
- package/package.json +1 -1
- package/dist/cjs/types/Definitions/Enums/govDep.enum.d.ts +0 -161
- package/dist/cjs/types/Definitions/Enums/ministry.enum.d.ts +0 -17
- package/dist/esm/types/Definitions/Enums/govDep.enum.d.ts +0 -161
- package/dist/esm/types/Definitions/Enums/ministry.enum.d.ts +0 -17
package/dist/cjs/index.js
CHANGED
@@ -5707,188 +5707,6 @@ 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"] = "ScienceAndTechnology";
|
5888
|
-
Ministry["WaterResources"] = "WaterResources";
|
5889
|
-
Ministry["Other"] = "Other";
|
5890
|
-
})(exports.Ministry || (exports.Ministry = {}));
|
5891
|
-
|
5892
5710
|
exports.ConfigurationSettingsType = void 0;
|
5893
5711
|
(function (ConfigurationSettingsType) {
|
5894
5712
|
ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
|
@@ -5934,197 +5752,6 @@ var ProgrammeCertify = /** @class */ (function () {
|
|
5934
5752
|
return ProgrammeCertify;
|
5935
5753
|
}());
|
5936
5754
|
|
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
|
-
};
|
6128
5755
|
var AddNewCompanyComponent = function (props) {
|
6129
5756
|
var _a;
|
6130
5757
|
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;
|
@@ -6143,52 +5770,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6143
5770
|
var _k = React.useState(false), loadingList = _k[0], setLoadingList = _k[1];
|
6144
5771
|
var _l = React.useState([]), regionsList = _l[0], setRegionsList = _l[1];
|
6145
5772
|
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 response, existDep, i, departName;
|
6154
|
-
return __generator(this, function (_a) {
|
6155
|
-
switch (_a.label) {
|
6156
|
-
case 0:
|
6157
|
-
formOne.resetFields(["govDep"]);
|
6158
|
-
setSelectedMinistry(String(val));
|
6159
|
-
return [4 /*yield*/, post("national/organisation/query", {
|
6160
|
-
page: 1,
|
6161
|
-
size: 10,
|
6162
|
-
filterAnd: [
|
6163
|
-
{
|
6164
|
-
key: "companyRole",
|
6165
|
-
operation: "=",
|
6166
|
-
value: "Ministry",
|
6167
|
-
},
|
6168
|
-
{
|
6169
|
-
key: "ministry",
|
6170
|
-
operation: "=",
|
6171
|
-
value: val,
|
6172
|
-
},
|
6173
|
-
],
|
6174
|
-
})];
|
6175
|
-
case 1:
|
6176
|
-
response = _a.sent();
|
6177
|
-
if (response && response.data) {
|
6178
|
-
existDep = [];
|
6179
|
-
for (i in response.data) {
|
6180
|
-
console.log("existdata", response.data[i]);
|
6181
|
-
if (response.data[i].govDep && response.data[i].govDep.length > 0) {
|
6182
|
-
departName = Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(response.data[i].govDep)];
|
6183
|
-
existDep.push(departName);
|
6184
|
-
}
|
6185
|
-
}
|
6186
|
-
setexistGovdep(existDep);
|
6187
|
-
}
|
6188
|
-
return [2 /*return*/];
|
6189
|
-
}
|
6190
|
-
});
|
6191
|
-
}); };
|
6192
5773
|
var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6193
5774
|
var response, alpha2Names;
|
6194
5775
|
return __generator(this, function (_a) {
|
@@ -6313,10 +5894,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6313
5894
|
logoBase64 = _c.sent();
|
6314
5895
|
logoUrls = logoBase64.split(",");
|
6315
5896
|
requestData.company.logo = logoUrls[1];
|
6316
|
-
if (companyRole === exports.CompanyRole.MINISTRY) {
|
6317
|
-
requestData.company.name =
|
6318
|
-
"Ministry of " + requestData.company.ministry;
|
6319
|
-
}
|
6320
5897
|
if (!isGuest) return [3 /*break*/, 4];
|
6321
5898
|
return [4 /*yield*/, post("national/user/register", requestData)];
|
6322
5899
|
case 3:
|
@@ -6369,7 +5946,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6369
5946
|
});
|
6370
5947
|
}); };
|
6371
5948
|
var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
|
6372
|
-
var formOneValues, values,
|
5949
|
+
var formOneValues, values, logoBase64, logoUrls, response, error_3;
|
6373
5950
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
6374
5951
|
return __generator(this, function (_l) {
|
6375
5952
|
switch (_l.label) {
|
@@ -6410,15 +5987,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6410
5987
|
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === exports.CompanyRole.MINISTRY) {
|
6411
5988
|
values.sectoralScope = formOneValues.sectoralScope;
|
6412
5989
|
values.nameOfMinister = formOneValues.nameOfMinister;
|
6413
|
-
values.ministry = formOneValues.ministry;
|
6414
|
-
if (formOneValues.govDep in exports.GovDepartment) {
|
6415
|
-
key = formOneValues.govDep;
|
6416
|
-
values.govDep = exports.GovDepartment[key];
|
6417
|
-
}
|
6418
|
-
else {
|
6419
|
-
values.govDep = formOneValues.govDep;
|
6420
|
-
}
|
6421
|
-
values.name = "Ministry of " + formOneValues.ministry;
|
6422
5990
|
}
|
6423
5991
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
|
6424
5992
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
@@ -6479,7 +6047,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6479
6047
|
setCompanyRole(value);
|
6480
6048
|
};
|
6481
6049
|
var CompanyDetailsForm = function () {
|
6482
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p
|
6050
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
6483
6051
|
var companyRoleClassName = companyRole === exports.CompanyRole.CERTIFIER
|
6484
6052
|
? "certifier"
|
6485
6053
|
: companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER
|
@@ -6493,7 +6061,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6493
6061
|
React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
|
6494
6062
|
React.createElement(antd.Col, { xl: 12, md: 24 },
|
6495
6063
|
React.createElement("div", { className: "details-part-one" },
|
6496
|
-
|
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
6065
|
{
|
6498
6066
|
required: true,
|
6499
6067
|
message: "",
|
@@ -6512,7 +6080,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6512
6080
|
}); },
|
6513
6081
|
},
|
6514
6082
|
] },
|
6515
|
-
React.createElement(antd.Input, { size: "large" }))
|
6083
|
+
React.createElement(antd.Input, { size: "large" })),
|
6516
6084
|
companyRole !== exports.CompanyRole.MINISTRY
|
6517
6085
|
? (!isUpdate ||
|
6518
6086
|
(isUpdate &&
|
@@ -6592,35 +6160,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6592
6160
|
},
|
6593
6161
|
] },
|
6594
6162
|
React.createElement(antd.Input, { size: "large" })),
|
6595
|
-
|
6596
|
-
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: [
|
6597
|
-
{
|
6598
|
-
required: true,
|
6599
|
-
message: "Ministry Name is required",
|
6600
|
-
},
|
6601
|
-
] },
|
6602
|
-
React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, Object.values(exports.Ministry).map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, ministry)); }))),
|
6603
|
-
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: [
|
6604
|
-
{
|
6605
|
-
required: true,
|
6606
|
-
message: "Minister Name is required",
|
6607
|
-
},
|
6608
|
-
{
|
6609
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6610
|
-
return __generator(this, function (_a) {
|
6611
|
-
if (String(value).trim() === "" ||
|
6612
|
-
String(value).trim() === undefined ||
|
6613
|
-
value === null ||
|
6614
|
-
value === undefined) {
|
6615
|
-
throw new Error("Name of the Minister ".concat(t("isRequired")));
|
6616
|
-
}
|
6617
|
-
return [2 /*return*/];
|
6618
|
-
});
|
6619
|
-
}); },
|
6620
|
-
},
|
6621
|
-
] },
|
6622
|
-
React.createElement(antd.Input, { size: "large" })))),
|
6623
|
-
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: [
|
6163
|
+
React.createElement(antd.Form.Item, { className: "website", label: "Website", initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
|
6624
6164
|
{
|
6625
6165
|
required: false,
|
6626
6166
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6638,23 +6178,6 @@ var AddNewCompanyComponent = function (props) {
|
|
6638
6178
|
},
|
6639
6179
|
], 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(); } },
|
6640
6180
|
React.createElement(antd.Input, { addonBefore: "https://", size: "large" })),
|
6641
|
-
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: [
|
6642
|
-
{ required: true, message: "" },
|
6643
|
-
{
|
6644
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6645
|
-
return __generator(this, function (_a) {
|
6646
|
-
if (String(value).trim() === "" ||
|
6647
|
-
String(value).trim() === undefined ||
|
6648
|
-
value === null ||
|
6649
|
-
value === undefined) {
|
6650
|
-
throw new Error("Address ".concat(t("isRequired")));
|
6651
|
-
}
|
6652
|
-
return [2 /*return*/];
|
6653
|
-
});
|
6654
|
-
}); },
|
6655
|
-
},
|
6656
|
-
] },
|
6657
|
-
React.createElement(antd.Input.TextArea, { rows: 3, maxLength: 100 }))),
|
6658
6181
|
React.createElement(antd.Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
|
6659
6182
|
{
|
6660
6183
|
validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6698,12 +6221,29 @@ var AddNewCompanyComponent = function (props) {
|
|
6698
6221
|
return false;
|
6699
6222
|
}, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
|
6700
6223
|
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 }))),
|
6701
6241
|
companyRole === exports.CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
|
6702
6242
|
React.createElement(antd.Space, { wrap: true, style: {
|
6703
6243
|
display: "flex",
|
6704
6244
|
marginBottom: 8,
|
6705
6245
|
}, align: "center", size: "large" },
|
6706
|
-
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (
|
6246
|
+
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
|
6707
6247
|
{ required: true, message: "" },
|
6708
6248
|
{
|
6709
6249
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6761,43 +6301,37 @@ var AddNewCompanyComponent = function (props) {
|
|
6761
6301
|
React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
|
6762
6302
|
React.createElement(icons.AuditOutlined, { className: "role-icons" }),
|
6763
6303
|
"Ministry")))))))),
|
6764
|
-
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "
|
6304
|
+
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
|
6765
6305
|
{
|
6766
6306
|
required: true,
|
6767
|
-
message: "
|
6307
|
+
message: "",
|
6768
6308
|
},
|
6769
6309
|
{
|
6770
6310
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
6771
|
-
var val;
|
6772
6311
|
return __generator(this, function (_a) {
|
6773
|
-
|
6774
|
-
|
6775
|
-
|
6776
|
-
|
6312
|
+
if (String(value).trim() === "" ||
|
6313
|
+
String(value).trim() === undefined ||
|
6314
|
+
value === null ||
|
6315
|
+
value === undefined) {
|
6316
|
+
throw new Error("Name of the Minister ".concat(t("isRequired")));
|
6777
6317
|
}
|
6778
6318
|
return [2 /*return*/];
|
6779
6319
|
});
|
6780
6320
|
}); },
|
6781
6321
|
},
|
6782
6322
|
] },
|
6783
|
-
React.createElement(antd.
|
6784
|
-
if (val in exports.GovDepartment) {
|
6785
|
-
var key = val;
|
6786
|
-
return (React.createElement(antd.Select.Option, { key: exports.GovDepartment[key], value: exports.GovDepartment[key] }, val));
|
6787
|
-
}
|
6788
|
-
return null;
|
6789
|
-
})))),
|
6323
|
+
React.createElement(antd.Input, { size: "large" }))),
|
6790
6324
|
companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
|
6791
6325
|
{
|
6792
6326
|
required: true,
|
6793
6327
|
message: "Sectoral Scope ".concat(t("isRequired")),
|
6794
6328
|
},
|
6795
|
-
], initialValue: (
|
6329
|
+
], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
|
6796
6330
|
React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(exports.SectoralScope).map(function (_a) {
|
6797
6331
|
var key = _a[0], value = _a[1];
|
6798
6332
|
return (React.createElement(antd.Select.Option, { key: value, value: value }, key));
|
6799
6333
|
})))),
|
6800
|
-
React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (
|
6334
|
+
React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
|
6801
6335
|
{
|
6802
6336
|
required: true,
|
6803
6337
|
message: "",
|
@@ -6828,14 +6362,14 @@ var AddNewCompanyComponent = function (props) {
|
|
6828
6362
|
},
|
6829
6363
|
] },
|
6830
6364
|
React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
|
6831
|
-
regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (
|
6365
|
+
regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.regions, rules: [
|
6832
6366
|
{
|
6833
6367
|
required: true,
|
6834
6368
|
message: "".concat(t("region"), " ").concat(t("isRequired")),
|
6835
6369
|
},
|
6836
6370
|
] },
|
6837
6371
|
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)); })))),
|
6838
|
-
companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (
|
6372
|
+
companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { name: "address", label: "Address", initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
|
6839
6373
|
{ required: true, message: "" },
|
6840
6374
|
{
|
6841
6375
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -6858,7 +6392,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6858
6392
|
display: "flex",
|
6859
6393
|
marginBottom: 8,
|
6860
6394
|
}, align: "center", size: "large" },
|
6861
|
-
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (
|
6395
|
+
React.createElement(antd.Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
|
6862
6396
|
{ required: true, message: "" },
|
6863
6397
|
{
|
6864
6398
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -7365,16 +6899,6 @@ var CompanyProfileComponent = function (props) {
|
|
7365
6899
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
|
7366
6900
|
? companyDetails.nameOfMinister
|
7367
6901
|
: "-")),
|
7368
|
-
React.createElement(antd.Row, { className: "field" },
|
7369
|
-
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
|
7370
|
-
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.ministry
|
7371
|
-
? companyDetails.ministry
|
7372
|
-
: "-")),
|
7373
|
-
React.createElement(antd.Row, { className: "field" },
|
7374
|
-
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
|
7375
|
-
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.govDep
|
7376
|
-
? Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(companyDetails.govDep)]
|
7377
|
-
: "-")),
|
7378
6902
|
React.createElement(antd.Row, { className: "field" },
|
7379
6903
|
React.createElement(antd.Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
|
7380
6904
|
React.createElement(antd.Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
|
@@ -22564,14 +22088,14 @@ var NdcActionViewComponent = function (props) {
|
|
22564
22088
|
: "empty" }, t("programme:monitoringReport")),
|
22565
22089
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
22566
22090
|
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22567
|
-
" ~ " + monitoringReportversion))),
|
22568
|
-
|
22569
|
-
|
22570
|
-
|
22571
|
-
|
22572
|
-
|
22573
|
-
|
22574
|
-
|
22091
|
+
" ~ " + monitoringReportversion)))),
|
22092
|
+
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
|
22093
|
+
? t("programme:notAuthToUploadDoc")
|
22094
|
+
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId)
|
22095
|
+
? !canUploadMonitorReport &&
|
22096
|
+
t("programme:programmeNotAuth")
|
22097
|
+
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
22098
|
+
React.createElement(icons.FileAddOutlined, null)))),
|
22575
22099
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Row, null,
|
22576
22100
|
React.createElement("div", { className: "icon" },
|
22577
22101
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
@@ -28541,7 +28065,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
28541
28065
|
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
28542
28066
|
};
|
28543
28067
|
|
28544
|
-
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
|
28068
|
+
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;\n align-items: start; }\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";
|
28545
28069
|
styleInject(css_248z$2);
|
28546
28070
|
|
28547
28071
|
var NdcActionBody = function (props) {
|
@@ -28807,7 +28331,7 @@ var NdcActionBody = function (props) {
|
|
28807
28331
|
React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28808
28332
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28809
28333
|
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);
|
28810
|
-
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28334
|
+
}, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
|
28811
28335
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28812
28336
|
setRejectDocData({
|
28813
28337
|
id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
|
@@ -28822,8 +28346,8 @@ var NdcActionBody = function (props) {
|
|
28822
28346
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28823
28347
|
});
|
28824
28348
|
setOpenRejectDocConfirmationModal(true);
|
28825
|
-
}, 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" },
|
28826
|
-
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28349
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : monitoringReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (monitoringReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28350
|
+
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
|
28827
28351
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28828
28352
|
? t("programme:notAuthToUploadDoc")
|
28829
28353
|
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28854,7 +28378,7 @@ var NdcActionBody = function (props) {
|
|
28854
28378
|
} }))))),
|
28855
28379
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
|
28856
28380
|
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 },
|
28857
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28381
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
|
28858
28382
|
!monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28859
28383
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28860
28384
|
? t("programme:notAuthToUploadDoc")
|
@@ -28897,7 +28421,7 @@ var NdcActionBody = function (props) {
|
|
28897
28421
|
ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28898
28422
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
28899
28423
|
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);
|
28900
|
-
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28424
|
+
}, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
|
28901
28425
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
28902
28426
|
setRejectDocData({
|
28903
28427
|
id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
|
@@ -28912,8 +28436,8 @@ var NdcActionBody = function (props) {
|
|
28912
28436
|
icon: React.createElement(icons.DislikeOutlined, null),
|
28913
28437
|
});
|
28914
28438
|
setOpenRejectDocConfirmationModal(true);
|
28915
|
-
}, 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" },
|
28916
|
-
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28439
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : verificationReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (verifcationReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28440
|
+
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
|
28917
28441
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28918
28442
|
? t("programme:notAuthToUploadDoc")
|
28919
28443
|
: uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28944,7 +28468,7 @@ var NdcActionBody = function (props) {
|
|
28944
28468
|
} })))))),
|
28945
28469
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
|
28946
28470
|
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 },
|
28947
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28471
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
|
28948
28472
|
!verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28949
28473
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
28950
28474
|
? t("programme:notAuthToUploadDoc")
|
@@ -28977,7 +28501,7 @@ var NdcActionBody = function (props) {
|
|
28977
28501
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
28978
28502
|
};
|
28979
28503
|
|
28980
|
-
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";
|
28504
|
+
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 align-items: start; }\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";
|
28981
28505
|
styleInject(css_248z$1);
|
28982
28506
|
|
28983
28507
|
var ProgrammeDocuments = function (props) {
|
@@ -29224,7 +28748,7 @@ var ProgrammeDocuments = function (props) {
|
|
29224
28748
|
(designDocActionPermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
29225
28749
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
29226
28750
|
return docAction(designDocId, exports.DocumentStatus.ACCEPTED);
|
29227
|
-
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28751
|
+
}, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
|
29228
28752
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
29229
28753
|
setRejectDocData({ id: designDocId });
|
29230
28754
|
setActionInfo({
|
@@ -29235,8 +28759,8 @@ var ProgrammeDocuments = function (props) {
|
|
29235
28759
|
icon: React.createElement(icons.DislikeOutlined, null),
|
29236
28760
|
});
|
29237
28761
|
setOpenRejectDocConfirmationModal(true);
|
29238
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29239
|
-
designDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28762
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
|
28763
|
+
designDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
|
29240
28764
|
designDocStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
29241
28765
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
29242
28766
|
designDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -29244,15 +28768,23 @@ var ProgrammeDocuments = function (props) {
|
|
29244
28768
|
" ~ " + designDocversion))),
|
29245
28769
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
29246
28770
|
linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
29247
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon
|
28771
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
29248
28772
|
designDocStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
29249
28773
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly ||
|
29250
28774
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER
|
29251
28775
|
? t("programme:notAuthToUploadDoc")
|
29252
28776
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
29253
28777
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
29254
|
-
? {
|
29255
|
-
|
28778
|
+
? {
|
28779
|
+
color: "#3F3A47",
|
28780
|
+
cursor: "pointer",
|
28781
|
+
margin: "0px 0px 1.5px 0px",
|
28782
|
+
}
|
28783
|
+
: {
|
28784
|
+
color: "#cacaca",
|
28785
|
+
cursor: "default",
|
28786
|
+
margin: "0px 0px 1.5px 0px",
|
28787
|
+
}, onClick: function () {
|
29256
28788
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
29257
28789
|
} })),
|
29258
28790
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -29265,8 +28797,16 @@ var ProgrammeDocuments = function (props) {
|
|
29265
28797
|
? t("programme:notAuthToUploadDoc")
|
29266
28798
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
29267
28799
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
29268
|
-
? {
|
29269
|
-
|
28800
|
+
? {
|
28801
|
+
color: "#3F3A47",
|
28802
|
+
cursor: "pointer",
|
28803
|
+
margin: "0px 0px 1.5px 0px",
|
28804
|
+
}
|
28805
|
+
: {
|
28806
|
+
color: "#cacaca",
|
28807
|
+
cursor: "default",
|
28808
|
+
margin: "0px 0px 1.5px 0px",
|
28809
|
+
}, onClick: function () {
|
29270
28810
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
29271
28811
|
} })),
|
29272
28812
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -29292,7 +28832,7 @@ var ProgrammeDocuments = function (props) {
|
|
29292
28832
|
(companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
29293
28833
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
29294
28834
|
return docAction(methDocId, exports.DocumentStatus.ACCEPTED);
|
29295
|
-
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28835
|
+
}, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
|
29296
28836
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
29297
28837
|
setRejectDocData({ id: methDocId });
|
29298
28838
|
setActionInfo({
|
@@ -29303,8 +28843,8 @@ var ProgrammeDocuments = function (props) {
|
|
29303
28843
|
icon: React.createElement(icons.DislikeOutlined, null),
|
29304
28844
|
});
|
29305
28845
|
setOpenRejectDocConfirmationModal(true);
|
29306
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29307
|
-
methodDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28846
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
|
28847
|
+
methodDocStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
|
29308
28848
|
methodDocStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
29309
28849
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
29310
28850
|
methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -29312,15 +28852,22 @@ var ProgrammeDocuments = function (props) {
|
|
29312
28852
|
" ~ " + methDocversion))),
|
29313
28853
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
29314
28854
|
linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
29315
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon
|
28855
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
29316
28856
|
methodDocStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
29317
28857
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
|
29318
28858
|
? t("programme:notAuthToUploadDoc")
|
29319
28859
|
: !uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
29320
28860
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
29321
28861
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
29322
|
-
? {
|
29323
|
-
|
28862
|
+
? {
|
28863
|
+
color: "#3F3A47",
|
28864
|
+
cursor: "pointer",
|
28865
|
+
margin: "0px 0px 1.5px 0px",
|
28866
|
+
}
|
28867
|
+
: {
|
28868
|
+
color: "#cacaca",
|
28869
|
+
margin: "0px 0px 1.5px 0px",
|
28870
|
+
}, onClick: function () {
|
29324
28871
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
29325
28872
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
29326
28873
|
handleMethodologyFileUpload();
|
@@ -29339,8 +28886,16 @@ var ProgrammeDocuments = function (props) {
|
|
29339
28886
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
29340
28887
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
29341
28888
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
29342
|
-
? {
|
29343
|
-
|
28889
|
+
? {
|
28890
|
+
color: "#3F3A47",
|
28891
|
+
cursor: "pointer",
|
28892
|
+
margin: "0px 0px 1.5px 0px",
|
28893
|
+
}
|
28894
|
+
: {
|
28895
|
+
color: "#cacaca",
|
28896
|
+
cursor: "default",
|
28897
|
+
margin: "0px 0px 1.5px 0px",
|
28898
|
+
}, onClick: function () {
|
29344
28899
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
29345
28900
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
29346
28901
|
handleMethodologyFileUpload();
|
@@ -29369,7 +28924,7 @@ var ProgrammeDocuments = function (props) {
|
|
29369
28924
|
(ministryLevelPermission || companyRolePermission) && (React.createElement(React.Fragment, null,
|
29370
28925
|
React.createElement(icons.LikeOutlined, { onClick: function () {
|
29371
28926
|
return docAction(impactAssessmentId, exports.DocumentStatus.ACCEPTED);
|
29372
|
-
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28927
|
+
}, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
|
29373
28928
|
React.createElement(icons.DislikeOutlined, { onClick: function () {
|
29374
28929
|
setRejectDocData({ id: impactAssessmentId });
|
29375
28930
|
setActionInfo({
|
@@ -29380,8 +28935,8 @@ var ProgrammeDocuments = function (props) {
|
|
29380
28935
|
icon: React.createElement(icons.DislikeOutlined, null),
|
29381
28936
|
});
|
29382
28937
|
setOpenRejectDocConfirmationModal(true);
|
29383
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
29384
|
-
impactAssessmentStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28938
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
|
28939
|
+
impactAssessmentStatus === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
|
29385
28940
|
impactAssessmentStatus === exports.DocumentStatus.REJECTED && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
29386
28941
|
React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
29387
28942
|
impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -29389,13 +28944,22 @@ var ProgrammeDocuments = function (props) {
|
|
29389
28944
|
" ~ " + impactAssessmentversion))),
|
29390
28945
|
React.createElement(antd.Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
|
29391
28946
|
linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
29392
|
-
React.createElement(
|
28947
|
+
React.createElement("div", null,
|
28948
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
|
29393
28949
|
impactAssessmentStatus !== exports.DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
29394
28950
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
29395
28951
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
29396
28952
|
!isProjectRejected
|
29397
|
-
? {
|
29398
|
-
|
28953
|
+
? {
|
28954
|
+
color: "#3F3A47",
|
28955
|
+
cursor: "pointer",
|
28956
|
+
margin: "0px 0px 1.5px 0px",
|
28957
|
+
}
|
28958
|
+
: {
|
28959
|
+
color: "#cacaca",
|
28960
|
+
cursor: "default",
|
28961
|
+
margin: "0px 0px 1.5px 0px",
|
28962
|
+
}, onClick: function () {
|
29399
28963
|
return uploadImpactAssessmentDocUserPermission &&
|
29400
28964
|
!isProjectRejected &&
|
29401
28965
|
handleImpactAssessmentFileUpload();
|
@@ -29408,8 +28972,16 @@ var ProgrammeDocuments = function (props) {
|
|
29408
28972
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
29409
28973
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
29410
28974
|
!isProjectRejected
|
29411
|
-
? {
|
29412
|
-
|
28975
|
+
? {
|
28976
|
+
color: "#3F3A47",
|
28977
|
+
cursor: "pointer",
|
28978
|
+
margin: "0px 0px 1.5px 0px",
|
28979
|
+
}
|
28980
|
+
: {
|
28981
|
+
color: "#cacaca",
|
28982
|
+
cursor: "default",
|
28983
|
+
margin: "0px 0px 1.5px 0px",
|
28984
|
+
}, onClick: function () {
|
29413
28985
|
return uploadImpactAssessmentDocUserPermission &&
|
29414
28986
|
!isProjectRejected &&
|
29415
28987
|
handleImpactAssessmentFileUpload();
|