@undp/carbon-library 1.0.274-CARBON-404.3 → 1.0.274-CARBON-359.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
2
- import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Select, Upload, InputNumber, Tooltip, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, Popover, List, Typography, Spin, Tabs, Progress } from 'antd';
2
+ import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, InputNumber, Tooltip, Select, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, Popover, List, Typography, Spin, Tabs, Progress } from 'antd';
3
3
  import React, { useState, useEffect, useRef, useContext } from 'react';
4
4
  import { DateTime } from 'luxon';
5
5
  import { Buffer } from 'buffer';
@@ -5687,188 +5687,6 @@ var SystemNames;
5687
5687
  SystemNames["CARBON_TRANSPARENCY"] = "CARBON_TRANSPARENCY_SYSTEM";
5688
5688
  })(SystemNames || (SystemNames = {}));
5689
5689
 
5690
- var GovDepartment;
5691
- (function (GovDepartment) {
5692
- GovDepartment["Cocoa Research Institute"] = "1";
5693
- GovDepartment["National Agricultural Extension, Research and Liaison Services"] = "2";
5694
- GovDepartment["National Veterinary Research Institute"] = "3";
5695
- GovDepartment["Agricultural Insurance Corporation"] = "4";
5696
- GovDepartment["National Root Crops Research Institute"] = "5";
5697
- GovDepartment["Agricultural Research Council"] = "6";
5698
- GovDepartment["Institute for Oceanography and Marine Research"] = "7";
5699
- GovDepartment["Institute for Oil Palm Research"] = "8";
5700
- GovDepartment["Agricultural Quarantine Service"] = "9";
5701
- GovDepartment["National Horticultural Research Institute"] = "10";
5702
- GovDepartment["Federal Airports Authority"] = "11";
5703
- GovDepartment["Airspace Management Agency"] = "12";
5704
- GovDepartment["Civil Aviation Authority"] = "13";
5705
- GovDepartment["Safety Investigation Bureau"] = "14";
5706
- GovDepartment["Meteorological Agency"] = "15";
5707
- GovDepartment["College of Aviation Technology"] = "16";
5708
- GovDepartment["National Information Technology Development Agency"] = "17";
5709
- GovDepartment["Satellite Limited"] = "18";
5710
- GovDepartment["Broadcasting Commission"] = "19";
5711
- GovDepartment["Commission"] = "20";
5712
- GovDepartment["Postal Service"] = "21";
5713
- GovDepartment["National Frequency Management Council"] = "22";
5714
- GovDepartment["Television Authority"] = "23";
5715
- GovDepartment["Galaxy Backbone"] = "24";
5716
- GovDepartment["Asset Management Corporation"] = "25";
5717
- GovDepartment["Social Security Administration"] = "26";
5718
- GovDepartment["Budget Office of the Federation"] = "27";
5719
- GovDepartment["Bureau of Public Enterprises"] = "28";
5720
- GovDepartment["Bureau of Public Procurement"] = "29";
5721
- GovDepartment["Central Bank"] = "30";
5722
- GovDepartment["Corporate Affairs Commission"] = "31";
5723
- GovDepartment["Debt Management Office"] = "32";
5724
- GovDepartment["Inland Revenue Service"] = "33";
5725
- GovDepartment["Mortgage Bank"] = "34";
5726
- GovDepartment["Fiscal Responsibility Commission"] = "35";
5727
- GovDepartment["Infrastructure Concession Regulatory Commission"] = "36";
5728
- GovDepartment["National Bureau of Statistics"] = "37";
5729
- GovDepartment["National Council on Privatisation"] = "38";
5730
- GovDepartment["National Insurance Commission"] = "39";
5731
- GovDepartment["National Pension Commission"] = "40";
5732
- GovDepartment["National Planning Commission"] = "41";
5733
- GovDepartment["National Sugar Development Council"] = "42";
5734
- GovDepartment["Niger Delta Development Commission"] = "43";
5735
- GovDepartment["Customs Service"] = "44";
5736
- GovDepartment["Deposit Insurance Corporation"] = "45";
5737
- GovDepartment["Investment Promotion Commission"] = "46";
5738
- GovDepartment["Export - Import Bank"] = "47";
5739
- GovDepartment["Export Promotion Council"] = "48";
5740
- GovDepartment["Oil and Gas Free Zones Authority"] = "49";
5741
- GovDepartment["Export Processing Zones Authority"] = "50";
5742
- GovDepartment["Revenue Mobilisation Allocation and Fiscal Commission"] = "51";
5743
- GovDepartment["Securities and Exchange Commission"] = "52";
5744
- GovDepartment["Standards Organisation"] = "53";
5745
- GovDepartment["Small and Medium Enterprise Development Agency"] = "54";
5746
- GovDepartment["National Board for Arabic And Islamic Studies"] = "55";
5747
- GovDepartment["Joint Admissions and Matriculation Board"] = "56";
5748
- GovDepartment["National Examination Council"] = "115";
5749
- GovDepartment["National Open University"] = "57";
5750
- GovDepartment["National Teachers Institute"] = "58";
5751
- GovDepartment["National Universities Commission"] = "59";
5752
- GovDepartment["Tertiary Education Trust Fund"] = "60";
5753
- GovDepartment["Teachers Registration Council"] = "61";
5754
- GovDepartment["National Business and Technical Examinations Board"] = "62";
5755
- GovDepartment["Universal Basic Education Commission"] = "63";
5756
- GovDepartment["West African Examination Council"] = "64";
5757
- GovDepartment["National Commission for Colleges of Education"] = "65";
5758
- GovDepartment["National Library"] = "66";
5759
- GovDepartment["Midstream and Downstream Petroleum Regulatory Authority"] = "67";
5760
- GovDepartment["Upstream Petroleum Regulatory Commission"] = "68";
5761
- GovDepartment["Electricity Management Services Limited"] = "69";
5762
- GovDepartment["Energy Commission"] = "70";
5763
- GovDepartment["National Power Training Institute"] = "71";
5764
- GovDepartment["Electricity Regulatory Commission"] = "72";
5765
- GovDepartment["Content Monitoring and Development Board"] = "73";
5766
- GovDepartment["National Petroleum Corporation"] = "74";
5767
- GovDepartment["Nuclear Regulatory Authority Science & Technology"] = "75";
5768
- GovDepartment["Petroleum Product Pricing Regulatory Agency"] = "76";
5769
- GovDepartment["Power Holding Company (defunct)"] = "77";
5770
- GovDepartment["Rural Electrification Agency"] = "78";
5771
- GovDepartment["Transmission Company"] = "79";
5772
- GovDepartment["Environmental Protection Agency (defunct)"] = "80";
5773
- GovDepartment["Forestry Research Institute"] = "81";
5774
- GovDepartment["National Biosafety Management Agency"] = "82";
5775
- GovDepartment["National Environmental Standards and Regulations Enforcement Agency"] = "83";
5776
- GovDepartment["National Oil Spill Detection and Response Agency"] = "84";
5777
- GovDepartment["Environmental Health Officers Registration Council"] = "85";
5778
- GovDepartment["National Health Insurance Scheme"] = "86";
5779
- GovDepartment["Institute for Pharmaceutical Research and Development"] = "87";
5780
- GovDepartment["Agency for the Control of AIDS"] = "88";
5781
- GovDepartment["Agency for Food and Drug Administration and Control"] = "89";
5782
- GovDepartment["Primary Health Care Development Agency"] = "90";
5783
- GovDepartment["Institute of Medical Research"] = "91";
5784
- GovDepartment["Centre for Disease Control"] = "92";
5785
- GovDepartment["Drug Law Enforcement Agency"] = "93";
5786
- GovDepartment["Defence Intelligence Agency"] = "94";
5787
- GovDepartment["State Security Service"] = "95";
5788
- GovDepartment["National Intelligence Agency"] = "96";
5789
- GovDepartment["Financial Intelligence Unit"] = "97";
5790
- GovDepartment["National Judicial Council"] = "98";
5791
- GovDepartment["Federal Judicial Service Commission"] = "99";
5792
- GovDepartment["National Judicial Institute"] = "100";
5793
- GovDepartment["Maritime Administration and Safety Agency"] = "101";
5794
- GovDepartment["Ports Authority"] = "102";
5795
- GovDepartment["Shippers' Council"] = "103";
5796
- GovDepartment["Broadcasting Organisation"] = "104";
5797
- GovDepartment["News Agency"] = "105";
5798
- GovDepartment["Press Council"] = "106";
5799
- GovDepartment["Television Authority Media"] = "107";
5800
- GovDepartment["Agency For Science and Engineering Infrastructure"] = "108";
5801
- GovDepartment["Biotechnology Development Agency"] = "109";
5802
- GovDepartment["Centre for Remote Sensing"] = "110";
5803
- GovDepartment["Science and Technology Complex"] = "111";
5804
- GovDepartment["Office for Technology Acquisition and Promotion"] = "112";
5805
- GovDepartment["Space Research and Development Agency"] = "113";
5806
- GovDepartment["Nuclear Regulatory Authority"] = "114";
5807
- GovDepartment["Raw Materials Research and Development Council"] = "116";
5808
- GovDepartment["Communications Satellite Ltd"] = "117";
5809
- GovDepartment["Centre for Technology Management"] = "118";
5810
- GovDepartment["Hydrological Services Agency"] = "119";
5811
- GovDepartment["Integrated Water Resources Commission"] = "120";
5812
- GovDepartment["Water Resources Institute"] = "121";
5813
- GovDepartment["River Basin Development Authorities"] = "122";
5814
- GovDepartment["Centre for Black and African Arts and Civilization"] = "123";
5815
- GovDepartment["Automotive Design and Development Council"] = "124";
5816
- GovDepartment["Code of Conduct Bureau"] = "125";
5817
- GovDepartment["Computer Professionals Registration Council"] = "126";
5818
- GovDepartment["Consumer Protection Council"] = "127";
5819
- GovDepartment["Economic and Financial Crimes Commission"] = "128";
5820
- GovDepartment["Federal Character Commission"] = "129";
5821
- GovDepartment["Federal Housing Authority"] = "130";
5822
- GovDepartment["Corrupt Practices and Other Related Offences Commission"] = "131";
5823
- GovDepartment["Independent National Electoral Commission"] = "132";
5824
- GovDepartment["Industrial Training Fund"] = "133";
5825
- GovDepartment["Legal Aid Council"] = "134";
5826
- GovDepartment["Agency for the Prohibition of Trafficking in Persons"] = "135";
5827
- GovDepartment["National Boundary Commission"] = "136";
5828
- GovDepartment["National Council of Arts and Culture"] = "137";
5829
- GovDepartment["Economic Reconstruction Fund"] = "138";
5830
- GovDepartment["Emergency Management Agency"] = "139";
5831
- GovDepartment["Hajj Commission"] = "140";
5832
- GovDepartment["Human Rights Commission"] = "141";
5833
- GovDepartment["Identity Management Commission"] = "142";
5834
- GovDepartment["Institute for Hospitality Tourism"] = "143";
5835
- GovDepartment["Lottery Regulatory Commission"] = "144";
5836
- GovDepartment["Orientation Agency"] = "145";
5837
- GovDepartment["Population Commission"] = "146";
5838
- GovDepartment["Poverty Eradication Programme (defunct)"] = "147";
5839
- GovDepartment["Salaries, Incomes and Wages Commission"] = "148";
5840
- GovDepartment["Sports Commission"] = "149";
5841
- GovDepartment["Extractive Industries Transparency Initiative"] = "150";
5842
- GovDepartment["Immigration Service"] = "151";
5843
- GovDepartment["Building and Road Research Institute"] = "152";
5844
- GovDepartment["Institute of Building"] = "153";
5845
- GovDepartment["Christian Pilgrim Commission"] = "154";
5846
- GovDepartment["Copyright Commission"] = "155";
5847
- GovDepartment["Tourism Development Corporation"] = "156";
5848
- GovDepartment["Public Complaints Commission"] = "157";
5849
- GovDepartment["Surveyors Council"] = "158";
5850
- GovDepartment["National Lottery Trust Fund"] = "159";
5851
- })(GovDepartment || (GovDepartment = {}));
5852
-
5853
- var Ministry;
5854
- (function (Ministry) {
5855
- Ministry["Agriculture"] = "Agriculture";
5856
- Ministry["Aviation"] = "Aviation";
5857
- Ministry["Communications"] = "Communications";
5858
- Ministry["Economy"] = "Economy";
5859
- Ministry["Education"] = "Education";
5860
- Ministry["Energy"] = "Energy";
5861
- Ministry["Environment"] = "Environment";
5862
- Ministry["Health"] = "Health";
5863
- Ministry["Intelligence"] = "Intelligence";
5864
- Ministry["Judiciary"] = "Judiciary";
5865
- Ministry["Maritime"] = "Maritime";
5866
- Ministry["Media"] = "Media";
5867
- Ministry["ScienceAndTechnology"] = "ScienceAndTechnology";
5868
- Ministry["WaterResources"] = "WaterResources";
5869
- Ministry["Other"] = "Other";
5870
- })(Ministry || (Ministry = {}));
5871
-
5872
5690
  var ConfigurationSettingsType;
5873
5691
  (function (ConfigurationSettingsType) {
5874
5692
  ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
@@ -5914,197 +5732,6 @@ var ProgrammeCertify = /** @class */ (function () {
5914
5732
  return ProgrammeCertify;
5915
5733
  }());
5916
5734
 
5917
- var sectoralScopes$1 = {
5918
- Agriculture: [
5919
- "Cocoa Research Institute",
5920
- "National Agricultural Extension, Research and Liaison Services",
5921
- "National Veterinary Research Institute",
5922
- "Agricultural Insurance Corporation",
5923
- "National Root Crops Research Institute",
5924
- "Agricultural Research Council",
5925
- "Institute for Oceanography and Marine Research",
5926
- "Institute for Oil Palm Research",
5927
- "Agricultural Quarantine Service",
5928
- "National Horticultural Research Institute",
5929
- ],
5930
- Aviation: [
5931
- "Federal Airports Authority",
5932
- "Airspace Management Agency",
5933
- "Civil Aviation Authority",
5934
- "Safety Investigation Bureau",
5935
- "Meteorological Agency",
5936
- "College of Aviation Technology",
5937
- ],
5938
- Communications: [
5939
- "National Information Technology Development Agency",
5940
- "Communications Satellite Limited",
5941
- "Broadcasting Commission",
5942
- "Communications Commission",
5943
- "Postal Service",
5944
- "National Frequency Management Council",
5945
- "Television Authority",
5946
- "Galaxy Backbone",
5947
- ],
5948
- Economy: [
5949
- "Asset Management Corporation",
5950
- "Social Security Administration",
5951
- "Budget Office of the Federation",
5952
- "Bureau of Public Enterprises",
5953
- "Bureau of Public Procurement",
5954
- "Central Bank",
5955
- "Corporate Affairs Commission",
5956
- "Debt Management Office",
5957
- "Inland Revenue Service",
5958
- "Mortgage Bank",
5959
- "Fiscal Responsibility Commission",
5960
- "Infrastructure Concession Regulatory Commission",
5961
- "National Bureau of Statistics",
5962
- "National Council on Privatisation",
5963
- "National Insurance Commission",
5964
- "National Pension Commission",
5965
- "National Planning Commission",
5966
- "National Sugar Development Council",
5967
- "Niger Delta Development Commission",
5968
- "Customs Service",
5969
- "Deposit Insurance Corporation",
5970
- "Investment Promotion Commission",
5971
- "Export - Import Bank",
5972
- "Export Promotion Council",
5973
- "Oil and Gas Free Zones Authority",
5974
- "Export Processing Zones Authority",
5975
- "Revenue Mobilisation Allocation and Fiscal Commission",
5976
- "Securities and Exchange Commission",
5977
- "Standards Organisation",
5978
- "Small and Medium Enterprise Development Agency",
5979
- ],
5980
- Education: [
5981
- "National Board for Arabic And Islamic Studies",
5982
- "Joint Admissions and Matriculation Board",
5983
- "National Examination Council",
5984
- "National Open University",
5985
- "National Teachers Institute",
5986
- "National Universities Commission",
5987
- "Tertiary Education Trust Fund",
5988
- "Teachers Registration Council",
5989
- "National Business and Technical Examinations Board",
5990
- "Universal Basic Education Commission",
5991
- "West African Examination Council",
5992
- "National Commission for Colleges of Education",
5993
- "National Library",
5994
- ],
5995
- Energy: [
5996
- "Midstream and Downstream Petroleum Regulatory Authority",
5997
- "Upstream Petroleum Regulatory Commission",
5998
- "Electricity Management Services Limited",
5999
- "Energy Commission",
6000
- "National Power Training Institute",
6001
- "Electricity Regulatory Commission",
6002
- "Content Monitoring and Development Board",
6003
- "National Petroleum Corporation",
6004
- "Nuclear Regulatory Authority",
6005
- "Petroleum Product Pricing Regulatory Agency",
6006
- "Power Holding Company (defunct)",
6007
- "Rural Electrification Agency",
6008
- "Transmission Company",
6009
- ],
6010
- Environment: [
6011
- "Environmental Protection Agency (defunct)",
6012
- "Forestry Research Institute",
6013
- "National Biosafety Management Agency",
6014
- "National Environmental Standards and Regulations Enforcement Agency",
6015
- "National Oil Spill Detection and Response Agency",
6016
- "Environmental Health Officers Registration Council",
6017
- ],
6018
- Health: [
6019
- "National Health Insurance Scheme",
6020
- "Institute for Pharmaceutical Research and Development",
6021
- "Agency for the Control of AIDS",
6022
- "Agency for Food and Drug Administration and Control",
6023
- "Primary Health Care Development Agency",
6024
- "Institute of Medical Research",
6025
- "Centre for Disease Control",
6026
- "Drug Law Enforcement Agency",
6027
- ],
6028
- Intelligence: [
6029
- "Defence Intelligence Agency",
6030
- "State Security Service",
6031
- "National Intelligence Agency",
6032
- "Financial Intelligence Unit",
6033
- ],
6034
- Judiciary: [
6035
- "National Judicial Council",
6036
- "Federal Judicial Service Commission",
6037
- "National Judicial Institute",
6038
- ],
6039
- Maritime: [
6040
- "Maritime Administration and Safety Agency",
6041
- "Ports Authority",
6042
- "Shippers' Council",
6043
- ],
6044
- Media: [
6045
- "Broadcasting Organisation",
6046
- "News Agency",
6047
- "Press Council",
6048
- "Television Authority",
6049
- ],
6050
- ScienceAndTechnology: [
6051
- "Agency For Science and Engineering Infrastructure",
6052
- "Biotechnology Development Agency",
6053
- "Centre for Remote Sensing",
6054
- "Science and Technology Complex",
6055
- "Office for Technology Acquisition and Promotion",
6056
- "Space Research and Development Agency",
6057
- "Nuclear Regulatory Authority",
6058
- "Raw Materials Research and Development Council",
6059
- "Communications Satellite Ltd",
6060
- "Centre for Technology Management",
6061
- ],
6062
- WaterResources: [
6063
- "Hydrological Services Agency",
6064
- "Integrated Water Resources Commission",
6065
- "Water Resources Institute",
6066
- "River Basin Development Authorities",
6067
- ],
6068
- Other: [
6069
- "Centre for Black and African Arts and Civilization",
6070
- "Automotive Design and Development Council",
6071
- "Code of Conduct Bureau",
6072
- "Computer Professionals Registration Council",
6073
- "Consumer Protection Council",
6074
- "Economic and Financial Crimes Commission",
6075
- "Federal Character Commission",
6076
- "Federal Housing Authority",
6077
- "Corrupt Practices and Other Related Offences Commission",
6078
- "Independent National Electoral Commission",
6079
- "Industrial Training Fund",
6080
- "Legal Aid Council",
6081
- "Agency for the Prohibition of Trafficking in Persons",
6082
- "National Boundary Commission",
6083
- "National Council of Arts and Culture",
6084
- "Economic Reconstruction Fund",
6085
- "Emergency Management Agency",
6086
- "Hajj Commission",
6087
- "Human Rights Commission",
6088
- "Identity Management Commission",
6089
- "Institute for Hospitality Tourism",
6090
- "Lottery Regulatory Commission",
6091
- "Orientation Agency",
6092
- "Population Commission",
6093
- "Poverty Eradication Programme (defunct)",
6094
- "Salaries, Incomes and Wages Commission",
6095
- "Sports Commission",
6096
- "Extractive Industries Transparency Initiative",
6097
- "Immigration Service",
6098
- "Building and Road Research Institute",
6099
- "Institute of Building",
6100
- "Christian Pilgrim Commission",
6101
- "Copyright Commission",
6102
- "Tourism Development Corporation",
6103
- "Public Complaints Commission",
6104
- "Surveyors Council",
6105
- "National Lottery Trust Fund",
6106
- ],
6107
- };
6108
5735
  var AddNewCompanyComponent = function (props) {
6109
5736
  var _a;
6110
5737
  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;
@@ -6123,52 +5750,6 @@ var AddNewCompanyComponent = function (props) {
6123
5750
  var _k = useState(false), loadingList = _k[0], setLoadingList = _k[1];
6124
5751
  var _l = useState([]), regionsList = _l[0], setRegionsList = _l[1];
6125
5752
  var _m = 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];
6126
- var _o = useState(""), selectedMinistry = _o[0], setSelectedMinistry = _o[1];
6127
- var _p = useState([]), existgovDep = _p[0], setexistGovdep = _p[1];
6128
- var selectedGovDepatments = sectoralScopes$1[selectedMinistry];
6129
- if (existgovDep && existgovDep.length > 0) {
6130
- selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
6131
- }
6132
- var onChangeMinistry = function (val) { return __awaiter(void 0, void 0, void 0, function () {
6133
- var response, existDep, i, departName;
6134
- return __generator(this, function (_a) {
6135
- switch (_a.label) {
6136
- case 0:
6137
- formOne.resetFields(["govDep"]);
6138
- setSelectedMinistry(String(val));
6139
- return [4 /*yield*/, post("national/organisation/query", {
6140
- page: 1,
6141
- size: 10,
6142
- filterAnd: [
6143
- {
6144
- key: "companyRole",
6145
- operation: "=",
6146
- value: "Ministry",
6147
- },
6148
- {
6149
- key: "ministry",
6150
- operation: "=",
6151
- value: val,
6152
- },
6153
- ],
6154
- })];
6155
- case 1:
6156
- response = _a.sent();
6157
- if (response && response.data) {
6158
- existDep = [];
6159
- for (i in response.data) {
6160
- console.log("existdata", response.data[i]);
6161
- if (response.data[i].govDep && response.data[i].govDep.length > 0) {
6162
- departName = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(response.data[i].govDep)];
6163
- existDep.push(departName);
6164
- }
6165
- }
6166
- setexistGovdep(existDep);
6167
- }
6168
- return [2 /*return*/];
6169
- }
6170
- });
6171
- }); };
6172
5753
  var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
6173
5754
  var response, alpha2Names;
6174
5755
  return __generator(this, function (_a) {
@@ -6293,15 +5874,6 @@ var AddNewCompanyComponent = function (props) {
6293
5874
  logoBase64 = _c.sent();
6294
5875
  logoUrls = logoBase64.split(",");
6295
5876
  requestData.company.logo = logoUrls[1];
6296
- if (companyRole === CompanyRole.MINISTRY) {
6297
- requestData.company.name =
6298
- "Ministry of " +
6299
- (requestData.company.ministry === "ScienceAndTechnology")
6300
- ? "Science And Technology"
6301
- : requestData.company.ministry === "WaterResources"
6302
- ? "Water Resources"
6303
- : requestData.company.ministry;
6304
- }
6305
5877
  if (!isGuest) return [3 /*break*/, 4];
6306
5878
  return [4 /*yield*/, post("national/user/register", requestData)];
6307
5879
  case 3:
@@ -6354,7 +5926,7 @@ var AddNewCompanyComponent = function (props) {
6354
5926
  });
6355
5927
  }); };
6356
5928
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
6357
- var formOneValues, values, key, logoBase64, logoUrls, response, error_3;
5929
+ var formOneValues, values, logoBase64, logoUrls, response, error_3;
6358
5930
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6359
5931
  return __generator(this, function (_l) {
6360
5932
  switch (_l.label) {
@@ -6395,20 +5967,6 @@ var AddNewCompanyComponent = function (props) {
6395
5967
  if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
6396
5968
  values.sectoralScope = formOneValues.sectoralScope;
6397
5969
  values.nameOfMinister = formOneValues.nameOfMinister;
6398
- values.ministry = formOneValues.ministry;
6399
- if (formOneValues.govDep in GovDepartment) {
6400
- key = formOneValues.govDep;
6401
- values.govDep = GovDepartment[key];
6402
- }
6403
- else {
6404
- values.govDep = formOneValues.govDep;
6405
- }
6406
- values.name =
6407
- "Ministry of " + (formOneValues.ministry === "ScienceAndTechnology")
6408
- ? "Science And Technology"
6409
- : formOneValues.ministry === "WaterResources"
6410
- ? "Water Resources"
6411
- : formOneValues.ministry;
6412
5970
  }
6413
5971
  if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
6414
5972
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
@@ -6469,7 +6027,7 @@ var AddNewCompanyComponent = function (props) {
6469
6027
  setCompanyRole(value);
6470
6028
  };
6471
6029
  var CompanyDetailsForm = function () {
6472
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
6030
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
6473
6031
  var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
6474
6032
  ? "certifier"
6475
6033
  : companyRole === CompanyRole.PROGRAMME_DEVELOPER
@@ -6483,7 +6041,7 @@ var AddNewCompanyComponent = function (props) {
6483
6041
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6484
6042
  React.createElement(Col, { xl: 12, md: 24 },
6485
6043
  React.createElement("div", { className: "details-part-one" },
6486
- companyRole !== CompanyRole.MINISTRY && (React.createElement(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: [
6044
+ React.createElement(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: [
6487
6045
  {
6488
6046
  required: true,
6489
6047
  message: "",
@@ -6502,7 +6060,7 @@ var AddNewCompanyComponent = function (props) {
6502
6060
  }); },
6503
6061
  },
6504
6062
  ] },
6505
- React.createElement(Input, { size: "large" }))),
6063
+ React.createElement(Input, { size: "large" })),
6506
6064
  companyRole !== CompanyRole.MINISTRY
6507
6065
  ? (!isUpdate ||
6508
6066
  (isUpdate &&
@@ -6582,35 +6140,7 @@ var AddNewCompanyComponent = function (props) {
6582
6140
  },
6583
6141
  ] },
6584
6142
  React.createElement(Input, { size: "large" })),
6585
- companyRole === CompanyRole.MINISTRY && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6586
- React.createElement(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: [
6587
- {
6588
- required: true,
6589
- message: "Ministry Name is required",
6590
- },
6591
- ] },
6592
- React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry === "ScienceAndTechnology"
6593
- ? "Science And Technology"
6594
- : ministry === "WaterResources"
6595
- ? "Water Resources"
6596
- : ministry)); }))),
6597
- React.createElement(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: [
6598
- {
6599
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6600
- return __generator(this, function (_a) {
6601
- if (String(value).trim() === "" ||
6602
- String(value).trim() === undefined ||
6603
- value === null ||
6604
- value === undefined) {
6605
- throw new Error("Name of the Minister ".concat(t("isRequired")));
6606
- }
6607
- return [2 /*return*/];
6608
- });
6609
- }); },
6610
- },
6611
- ] },
6612
- React.createElement(Input, { size: "large" })))),
6613
- React.createElement(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: [
6143
+ React.createElement(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: [
6614
6144
  {
6615
6145
  required: false,
6616
6146
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6628,23 +6158,6 @@ var AddNewCompanyComponent = function (props) {
6628
6158
  },
6629
6159
  ], 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(); } },
6630
6160
  React.createElement(Input, { addonBefore: "https://", size: "large" })),
6631
- companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
6632
- { required: true, message: "" },
6633
- {
6634
- validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6635
- return __generator(this, function (_a) {
6636
- if (String(value).trim() === "" ||
6637
- String(value).trim() === undefined ||
6638
- value === null ||
6639
- value === undefined) {
6640
- throw new Error("Address ".concat(t("isRequired")));
6641
- }
6642
- return [2 /*return*/];
6643
- });
6644
- }); },
6645
- },
6646
- ] },
6647
- React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
6648
6161
  React.createElement(Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6649
6162
  {
6650
6163
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6688,12 +6201,29 @@ var AddNewCompanyComponent = function (props) {
6688
6201
  return false;
6689
6202
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6690
6203
  React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, "Upload"))),
6204
+ companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
6205
+ { required: true, message: "" },
6206
+ {
6207
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6208
+ return __generator(this, function (_a) {
6209
+ if (String(value).trim() === "" ||
6210
+ String(value).trim() === undefined ||
6211
+ value === null ||
6212
+ value === undefined) {
6213
+ throw new Error("Address ".concat(t("isRequired")));
6214
+ }
6215
+ return [2 /*return*/];
6216
+ });
6217
+ }); },
6218
+ },
6219
+ ] },
6220
+ React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
6691
6221
  companyRole === CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6692
6222
  React.createElement(Space, { wrap: true, style: {
6693
6223
  display: "flex",
6694
6224
  marginBottom: 8,
6695
6225
  }, align: "center", size: "large" },
6696
- React.createElement(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: [
6226
+ React.createElement(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: [
6697
6227
  { required: true, message: "" },
6698
6228
  {
6699
6229
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6751,43 +6281,37 @@ var AddNewCompanyComponent = function (props) {
6751
6281
  React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6752
6282
  React.createElement(AuditOutlined, { className: "role-icons" }),
6753
6283
  "Ministry")))))))),
6754
- companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Government Department", name: "govDep", initialValue: Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf((_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.govDep)], rules: [
6284
+ companyRole === CompanyRole.MINISTRY && (React.createElement(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: [
6755
6285
  {
6756
6286
  required: true,
6757
- message: "Government Department is required",
6287
+ message: "",
6758
6288
  },
6759
6289
  {
6760
6290
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6761
- var val;
6762
6291
  return __generator(this, function (_a) {
6763
- val = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(value)];
6764
- if (selectedGovDepatments &&
6765
- !selectedGovDepatments.includes(val)) {
6766
- throw new Error("Department not exist in Ministry");
6292
+ if (String(value).trim() === "" ||
6293
+ String(value).trim() === undefined ||
6294
+ value === null ||
6295
+ value === undefined) {
6296
+ throw new Error("Name of the Minister ".concat(t("isRequired")));
6767
6297
  }
6768
6298
  return [2 /*return*/];
6769
6299
  });
6770
6300
  }); },
6771
6301
  },
6772
6302
  ] },
6773
- React.createElement(Select, { size: "large" }, selectedGovDepatments === null || selectedGovDepatments === void 0 ? void 0 : selectedGovDepatments.map(function (val) {
6774
- if (val in GovDepartment) {
6775
- var key = val;
6776
- return (React.createElement(Select.Option, { key: GovDepartment[key], value: GovDepartment[key] }, val));
6777
- }
6778
- return null;
6779
- })))),
6303
+ React.createElement(Input, { size: "large" }))),
6780
6304
  companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6781
6305
  {
6782
6306
  required: true,
6783
6307
  message: "Sectoral Scope ".concat(t("isRequired")),
6784
6308
  },
6785
- ], initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.sectoralScope },
6309
+ ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6786
6310
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
6787
6311
  var key = _a[0], value = _a[1];
6788
6312
  return (React.createElement(Select.Option, { key: value, value: value }, key));
6789
6313
  })))),
6790
- React.createElement(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: [
6314
+ React.createElement(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: [
6791
6315
  {
6792
6316
  required: true,
6793
6317
  message: "",
@@ -6818,14 +6342,14 @@ var AddNewCompanyComponent = function (props) {
6818
6342
  },
6819
6343
  ] },
6820
6344
  React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6821
- regionField && (React.createElement(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: [
6345
+ regionField && (React.createElement(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: [
6822
6346
  {
6823
6347
  required: true,
6824
6348
  message: "".concat(t("region"), " ").concat(t("isRequired")),
6825
6349
  },
6826
6350
  ] },
6827
6351
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))),
6828
- companyRole !== CompanyRole.MINISTRY && (React.createElement(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: [
6352
+ companyRole !== CompanyRole.MINISTRY && (React.createElement(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: [
6829
6353
  { required: true, message: "" },
6830
6354
  {
6831
6355
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6848,7 +6372,7 @@ var AddNewCompanyComponent = function (props) {
6848
6372
  display: "flex",
6849
6373
  marginBottom: 8,
6850
6374
  }, align: "center", size: "large" },
6851
- React.createElement(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: [
6375
+ React.createElement(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: [
6852
6376
  { required: true, message: "" },
6853
6377
  {
6854
6378
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7355,16 +6879,6 @@ var CompanyProfileComponent = function (props) {
7355
6879
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
7356
6880
  ? companyDetails.nameOfMinister
7357
6881
  : "-")),
7358
- React.createElement(Row, { className: "field" },
7359
- React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
7360
- React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry
7361
- ? companyDetails.ministry
7362
- : "-")),
7363
- React.createElement(Row, { className: "field" },
7364
- React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
7365
- React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.govDep
7366
- ? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails.govDep)]
7367
- : "-")),
7368
6882
  React.createElement(Row, { className: "field" },
7369
6883
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
7370
6884
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
@@ -22348,13 +21862,15 @@ var NdcActionViewComponent = function (props) {
22348
21862
  ((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
22349
21863
  }
22350
21864
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.AGRICULTURE &&
22351
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
21865
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21866
+ MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
22352
21867
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
22353
21868
  mitigationDetails[t("ndcAction:viewMitigationWeight")] =
22354
- addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
21869
+ addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + "t";
22355
21870
  }
22356
21871
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
22357
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
21872
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21873
+ MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
22358
21874
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
22359
21875
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
22360
21876
  addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
@@ -22363,15 +21879,17 @@ var NdcActionViewComponent = function (props) {
22363
21879
  (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
22364
21880
  }
22365
21881
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
22366
- ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
22367
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
21882
+ ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21883
+ MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
21884
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21885
+ MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
22368
21886
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
22369
21887
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
22370
- addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
22371
- ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
21888
+ addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) + ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
22372
21889
  }
22373
21890
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.EE_HOUSEHOLDS &&
22374
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
21891
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21892
+ MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
22375
21893
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
22376
21894
  mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
22377
21895
  (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
@@ -22554,23 +22072,24 @@ var NdcActionViewComponent = function (props) {
22554
22072
  : "empty" }, t("programme:monitoringReport")),
22555
22073
  (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
22556
22074
  moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
22557
- " ~ " + monitoringReportversion))),
22075
+ " ~ " + monitoringReportversion)))),
22076
+ React.createElement(Row, null,
22558
22077
  React.createElement("div", { className: "icon" }, !(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
22559
22078
  ? t("programme:notAuthToUploadDoc")
22560
22079
  : uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
22561
22080
  ? !canUploadMonitorReport &&
22562
22081
  t("programme:programmeNotAuth")
22563
22082
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
22564
- React.createElement(FileAddOutlined, null))))),
22565
- (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
22566
- React.createElement("div", { className: "icon" },
22567
- (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22568
- DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22569
- (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22570
- DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22571
- React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
22572
- 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 },
22573
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
22083
+ React.createElement(FileAddOutlined, null)))),
22084
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(React.Fragment, null,
22085
+ React.createElement("div", { className: "icon" },
22086
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22087
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22088
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22089
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22090
+ React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
22091
+ 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 },
22092
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))),
22574
22093
  React.createElement("div", { className: "report-details" },
22575
22094
  React.createElement("div", { className: "report-type" },
22576
22095
  React.createElement("div", { className: "name-time-container" },
@@ -22579,23 +22098,24 @@ var NdcActionViewComponent = function (props) {
22579
22098
  : "empty" }, t("programme:verificationReport")),
22580
22099
  (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
22581
22100
  moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
22582
- " ~ " + verificationReportVersion))),
22101
+ " ~ " + verificationReportVersion)))),
22102
+ React.createElement(Row, null,
22583
22103
  React.createElement("div", { className: "icon" }, !(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
22584
22104
  ? t("programme:notAuthToUploadDoc")
22585
22105
  : uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
22586
22106
  ? !monitoringReportAccepted &&
22587
22107
  t("programme:monitoringRepNotApproved")
22588
22108
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
22589
- React.createElement(FileAddOutlined, null))))),
22590
- (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
22591
- React.createElement("div", { className: "icon" },
22592
- (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22593
- DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22594
- (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22595
- DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22596
- React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
22597
- 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 },
22598
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
22109
+ React.createElement(FileAddOutlined, null)))),
22110
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(React.Fragment, null,
22111
+ React.createElement("div", { className: "icon" },
22112
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22113
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22114
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22115
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22116
+ React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
22117
+ 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 },
22118
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))))))))),
22599
22119
  ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
22600
22120
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
22601
22121
  React.createElement(Col, { lg: 24, className: "gutter-row" },
@@ -28531,7 +28051,7 @@ var RejectDocumentationConfirmationModel = function (props) {
28531
28051
  React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
28532
28052
  };
28533
28053
 
28534
- 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";
28054
+ 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";
28535
28055
  styleInject(css_248z$2);
28536
28056
 
28537
28057
  var NdcActionBody = function (props) {
@@ -28797,7 +28317,7 @@ var NdcActionBody = function (props) {
28797
28317
  React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
28798
28318
  React.createElement(LikeOutlined, { onClick: function () {
28799
28319
  return docAction(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id, DocumentStatus.ACCEPTED, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.actionId, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.type);
28800
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28320
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
28801
28321
  React.createElement(DislikeOutlined, { onClick: function () {
28802
28322
  setRejectDocData({
28803
28323
  id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
@@ -28812,8 +28332,8 @@ var NdcActionBody = function (props) {
28812
28332
  icon: React.createElement(DislikeOutlined, null),
28813
28333
  });
28814
28334
  setOpenRejectDocConfirmationModal(true);
28815
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : monitoringReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (monitoringReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28816
- React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
28335
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : monitoringReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (monitoringReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28336
+ React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
28817
28337
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28818
28338
  ? t("programme:notAuthToUploadDoc")
28819
28339
  : uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -28844,7 +28364,7 @@ var NdcActionBody = function (props) {
28844
28364
  } }))))),
28845
28365
  (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
28846
28366
  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 },
28847
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
28367
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
28848
28368
  !monitoringReportAccepted && (React.createElement(React.Fragment, null,
28849
28369
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28850
28370
  ? t("programme:notAuthToUploadDoc")
@@ -28887,7 +28407,7 @@ var NdcActionBody = function (props) {
28887
28407
  ministryLevelPermission) && (React.createElement(React.Fragment, null,
28888
28408
  React.createElement(LikeOutlined, { onClick: function () {
28889
28409
  return docAction(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id, DocumentStatus.ACCEPTED, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.actionId, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.type);
28890
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28410
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
28891
28411
  React.createElement(DislikeOutlined, { onClick: function () {
28892
28412
  setRejectDocData({
28893
28413
  id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
@@ -28902,8 +28422,8 @@ var NdcActionBody = function (props) {
28902
28422
  icon: React.createElement(DislikeOutlined, null),
28903
28423
  });
28904
28424
  setOpenRejectDocConfirmationModal(true);
28905
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : verificationReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (verifcationReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28906
- React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
28425
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : verificationReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (verifcationReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28426
+ React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
28907
28427
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28908
28428
  ? t("programme:notAuthToUploadDoc")
28909
28429
  : uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -28934,7 +28454,7 @@ var NdcActionBody = function (props) {
28934
28454
  } })))))),
28935
28455
  (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
28936
28456
  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 },
28937
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
28457
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
28938
28458
  !verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
28939
28459
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28940
28460
  ? t("programme:notAuthToUploadDoc")
@@ -28967,7 +28487,7 @@ var NdcActionBody = function (props) {
28967
28487
  React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
28968
28488
  };
28969
28489
 
28970
- 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";
28490
+ 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";
28971
28491
  styleInject(css_248z$1);
28972
28492
 
28973
28493
  var ProgrammeDocuments = function (props) {
@@ -29214,7 +28734,7 @@ var ProgrammeDocuments = function (props) {
29214
28734
  (designDocActionPermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
29215
28735
  React.createElement(LikeOutlined, { onClick: function () {
29216
28736
  return docAction(designDocId, DocumentStatus.ACCEPTED);
29217
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28737
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29218
28738
  React.createElement(DislikeOutlined, { onClick: function () {
29219
28739
  setRejectDocData({ id: designDocId });
29220
28740
  setActionInfo({
@@ -29225,8 +28745,8 @@ var ProgrammeDocuments = function (props) {
29225
28745
  icon: React.createElement(DislikeOutlined, null),
29226
28746
  });
29227
28747
  setOpenRejectDocConfirmationModal(true);
29228
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29229
- designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28748
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
28749
+ designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
29230
28750
  designDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
29231
28751
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
29232
28752
  designDocUrl !== "" && (React.createElement("div", { className: "time" },
@@ -29234,15 +28754,23 @@ var ProgrammeDocuments = function (props) {
29234
28754
  " ~ " + designDocversion))),
29235
28755
  React.createElement(Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
29236
28756
  linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
29237
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28757
+ React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
29238
28758
  designDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
29239
28759
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly ||
29240
28760
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER
29241
28761
  ? t("programme:notAuthToUploadDoc")
29242
28762
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
29243
28763
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
29244
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29245
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28764
+ ? {
28765
+ color: "#3F3A47",
28766
+ cursor: "pointer",
28767
+ margin: "0px 0px 1.5px 0px",
28768
+ }
28769
+ : {
28770
+ color: "#cacaca",
28771
+ cursor: "default",
28772
+ margin: "0px 0px 1.5px 0px",
28773
+ }, onClick: function () {
29246
28774
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
29247
28775
  } })),
29248
28776
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -29255,8 +28783,16 @@ var ProgrammeDocuments = function (props) {
29255
28783
  ? t("programme:notAuthToUploadDoc")
29256
28784
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
29257
28785
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
29258
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29259
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28786
+ ? {
28787
+ color: "#3F3A47",
28788
+ cursor: "pointer",
28789
+ margin: "0px 0px 1.5px 0px",
28790
+ }
28791
+ : {
28792
+ color: "#cacaca",
28793
+ cursor: "default",
28794
+ margin: "0px 0px 1.5px 0px",
28795
+ }, onClick: function () {
29260
28796
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
29261
28797
  } })),
29262
28798
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -29282,7 +28818,7 @@ var ProgrammeDocuments = function (props) {
29282
28818
  (companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
29283
28819
  React.createElement(LikeOutlined, { onClick: function () {
29284
28820
  return docAction(methDocId, DocumentStatus.ACCEPTED);
29285
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28821
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29286
28822
  React.createElement(DislikeOutlined, { onClick: function () {
29287
28823
  setRejectDocData({ id: methDocId });
29288
28824
  setActionInfo({
@@ -29293,8 +28829,8 @@ var ProgrammeDocuments = function (props) {
29293
28829
  icon: React.createElement(DislikeOutlined, null),
29294
28830
  });
29295
28831
  setOpenRejectDocConfirmationModal(true);
29296
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29297
- methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28832
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
28833
+ methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
29298
28834
  methodDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
29299
28835
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
29300
28836
  methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
@@ -29302,15 +28838,22 @@ var ProgrammeDocuments = function (props) {
29302
28838
  " ~ " + methDocversion))),
29303
28839
  React.createElement(Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
29304
28840
  linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
29305
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28841
+ React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
29306
28842
  methodDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
29307
28843
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
29308
28844
  ? t("programme:notAuthToUploadDoc")
29309
28845
  : !uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
29310
28846
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
29311
28847
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
29312
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29313
- : { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28848
+ ? {
28849
+ color: "#3F3A47",
28850
+ cursor: "pointer",
28851
+ margin: "0px 0px 1.5px 0px",
28852
+ }
28853
+ : {
28854
+ color: "#cacaca",
28855
+ margin: "0px 0px 1.5px 0px",
28856
+ }, onClick: function () {
29314
28857
  return designDocStatus === DocumentStatus.ACCEPTED &&
29315
28858
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
29316
28859
  handleMethodologyFileUpload();
@@ -29329,8 +28872,16 @@ var ProgrammeDocuments = function (props) {
29329
28872
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
29330
28873
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
29331
28874
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
29332
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29333
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28875
+ ? {
28876
+ color: "#3F3A47",
28877
+ cursor: "pointer",
28878
+ margin: "0px 0px 1.5px 0px",
28879
+ }
28880
+ : {
28881
+ color: "#cacaca",
28882
+ cursor: "default",
28883
+ margin: "0px 0px 1.5px 0px",
28884
+ }, onClick: function () {
29334
28885
  return designDocStatus === DocumentStatus.ACCEPTED &&
29335
28886
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
29336
28887
  handleMethodologyFileUpload();
@@ -29359,7 +28910,7 @@ var ProgrammeDocuments = function (props) {
29359
28910
  (ministryLevelPermission || companyRolePermission) && (React.createElement(React.Fragment, null,
29360
28911
  React.createElement(LikeOutlined, { onClick: function () {
29361
28912
  return docAction(impactAssessmentId, DocumentStatus.ACCEPTED);
29362
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28913
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29363
28914
  React.createElement(DislikeOutlined, { onClick: function () {
29364
28915
  setRejectDocData({ id: impactAssessmentId });
29365
28916
  setActionInfo({
@@ -29370,8 +28921,8 @@ var ProgrammeDocuments = function (props) {
29370
28921
  icon: React.createElement(DislikeOutlined, null),
29371
28922
  });
29372
28923
  setOpenRejectDocConfirmationModal(true);
29373
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29374
- impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28924
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: "3px" } }))),
28925
+ impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: "3px" } })),
29375
28926
  impactAssessmentStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
29376
28927
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
29377
28928
  impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
@@ -29379,13 +28930,22 @@ var ProgrammeDocuments = function (props) {
29379
28930
  " ~ " + impactAssessmentversion))),
29380
28931
  React.createElement(Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
29381
28932
  linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
29382
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28933
+ React.createElement("div", null,
28934
+ React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
29383
28935
  impactAssessmentStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
29384
28936
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
29385
28937
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
29386
28938
  !isProjectRejected
29387
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29388
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28939
+ ? {
28940
+ color: "#3F3A47",
28941
+ cursor: "pointer",
28942
+ margin: "0px 0px 1.5px 0px",
28943
+ }
28944
+ : {
28945
+ color: "#cacaca",
28946
+ cursor: "default",
28947
+ margin: "0px 0px 1.5px 0px",
28948
+ }, onClick: function () {
29389
28949
  return uploadImpactAssessmentDocUserPermission &&
29390
28950
  !isProjectRejected &&
29391
28951
  handleImpactAssessmentFileUpload();
@@ -29398,8 +28958,16 @@ var ProgrammeDocuments = function (props) {
29398
28958
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
29399
28959
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
29400
28960
  !isProjectRejected
29401
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29402
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28961
+ ? {
28962
+ color: "#3F3A47",
28963
+ cursor: "pointer",
28964
+ margin: "0px 0px 1.5px 0px",
28965
+ }
28966
+ : {
28967
+ color: "#cacaca",
28968
+ cursor: "default",
28969
+ margin: "0px 0px 1.5px 0px",
28970
+ }, onClick: function () {
29403
28971
  return uploadImpactAssessmentDocUserPermission &&
29404
28972
  !isProjectRejected &&
29405
28973
  handleImpactAssessmentFileUpload();
@@ -29466,5 +29034,5 @@ var TimelineBody = function (props) {
29466
29034
  React.createElement("div", { className: "remark-body" }, remark)))));
29467
29035
  };
29468
29036
 
29469
- export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, GovDepartment, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, Ministry, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
29037
+ export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
29470
29038
  //# sourceMappingURL=index.js.map