@undp/carbon-library 1.0.274-CARBON-359.6 → 1.0.274-CARBON-404.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/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, Upload, InputNumber, Tooltip, Select, 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, Select, Upload, InputNumber, Tooltip, 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,6 +5687,188 @@ 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"] = "Science And Technology";
5868
+ Ministry["WaterResources"] = "Water Resources";
5869
+ Ministry["Other"] = "Other";
5870
+ })(Ministry || (Ministry = {}));
5871
+
5690
5872
  var ConfigurationSettingsType;
5691
5873
  (function (ConfigurationSettingsType) {
5692
5874
  ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
@@ -5732,6 +5914,197 @@ var ProgrammeCertify = /** @class */ (function () {
5732
5914
  return ProgrammeCertify;
5733
5915
  }());
5734
5916
 
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
+ };
5735
6108
  var AddNewCompanyComponent = function (props) {
5736
6109
  var _a;
5737
6110
  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;
@@ -5750,6 +6123,53 @@ var AddNewCompanyComponent = function (props) {
5750
6123
  var _k = useState(false), loadingList = _k[0], setLoadingList = _k[1];
5751
6124
  var _l = useState([]), regionsList = _l[0], setRegionsList = _l[1];
5752
6125
  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 key, response, existDep, i, departName;
6134
+ return __generator(this, function (_a) {
6135
+ switch (_a.label) {
6136
+ case 0:
6137
+ formOne.resetFields(["govDep"]);
6138
+ key = Object.keys(Ministry)[Object.values(Ministry).indexOf(val)];
6139
+ setSelectedMinistry(String(key));
6140
+ return [4 /*yield*/, post("national/organisation/query", {
6141
+ page: 1,
6142
+ size: 10,
6143
+ filterAnd: [
6144
+ {
6145
+ key: "companyRole",
6146
+ operation: "=",
6147
+ value: "Ministry",
6148
+ },
6149
+ {
6150
+ key: "ministry",
6151
+ operation: "=",
6152
+ value: val,
6153
+ },
6154
+ ],
6155
+ })];
6156
+ case 1:
6157
+ response = _a.sent();
6158
+ if (response && response.data) {
6159
+ existDep = [];
6160
+ for (i in response.data) {
6161
+ console.log("existdata", response.data[i]);
6162
+ if (response.data[i].govDep && response.data[i].govDep.length > 0) {
6163
+ departName = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(response.data[i].govDep)];
6164
+ existDep.push(departName);
6165
+ }
6166
+ }
6167
+ setexistGovdep(existDep);
6168
+ }
6169
+ return [2 /*return*/];
6170
+ }
6171
+ });
6172
+ }); };
5753
6173
  var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
5754
6174
  var response, alpha2Names;
5755
6175
  return __generator(this, function (_a) {
@@ -5874,6 +6294,10 @@ var AddNewCompanyComponent = function (props) {
5874
6294
  logoBase64 = _c.sent();
5875
6295
  logoUrls = logoBase64.split(",");
5876
6296
  requestData.company.logo = logoUrls[1];
6297
+ if (companyRole === CompanyRole.MINISTRY) {
6298
+ requestData.company.name =
6299
+ "Ministry of " + requestData.company.ministry;
6300
+ }
5877
6301
  if (!isGuest) return [3 /*break*/, 4];
5878
6302
  return [4 /*yield*/, post("national/user/register", requestData)];
5879
6303
  case 3:
@@ -5926,7 +6350,7 @@ var AddNewCompanyComponent = function (props) {
5926
6350
  });
5927
6351
  }); };
5928
6352
  var onUpdateCompany = function () { return __awaiter(void 0, void 0, void 0, function () {
5929
- var formOneValues, values, logoBase64, logoUrls, response, error_3;
6353
+ var formOneValues, values, key, logoBase64, logoUrls, response, error_3;
5930
6354
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
5931
6355
  return __generator(this, function (_l) {
5932
6356
  switch (_l.label) {
@@ -5967,6 +6391,15 @@ var AddNewCompanyComponent = function (props) {
5967
6391
  if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
5968
6392
  values.sectoralScope = formOneValues.sectoralScope;
5969
6393
  values.nameOfMinister = formOneValues.nameOfMinister;
6394
+ values.ministry = formOneValues.ministry;
6395
+ if (formOneValues.govDep in GovDepartment) {
6396
+ key = formOneValues.govDep;
6397
+ values.govDep = GovDepartment[key];
6398
+ }
6399
+ else {
6400
+ values.govDep = formOneValues.govDep;
6401
+ }
6402
+ values.name = "Ministry of " + formOneValues.ministry;
5970
6403
  }
5971
6404
  if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
5972
6405
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
@@ -6027,7 +6460,7 @@ var AddNewCompanyComponent = function (props) {
6027
6460
  setCompanyRole(value);
6028
6461
  };
6029
6462
  var CompanyDetailsForm = function () {
6030
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
6463
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
6031
6464
  var companyRoleClassName = companyRole === CompanyRole.CERTIFIER
6032
6465
  ? "certifier"
6033
6466
  : companyRole === CompanyRole.PROGRAMME_DEVELOPER
@@ -6041,7 +6474,7 @@ var AddNewCompanyComponent = function (props) {
6041
6474
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6042
6475
  React.createElement(Col, { xl: 12, md: 24 },
6043
6476
  React.createElement("div", { className: "details-part-one" },
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: [
6477
+ 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: [
6045
6478
  {
6046
6479
  required: true,
6047
6480
  message: "",
@@ -6060,7 +6493,7 @@ var AddNewCompanyComponent = function (props) {
6060
6493
  }); },
6061
6494
  },
6062
6495
  ] },
6063
- React.createElement(Input, { size: "large" })),
6496
+ React.createElement(Input, { size: "large" }))),
6064
6497
  companyRole !== CompanyRole.MINISTRY
6065
6498
  ? (!isUpdate ||
6066
6499
  (isUpdate &&
@@ -6140,7 +6573,31 @@ var AddNewCompanyComponent = function (props) {
6140
6573
  },
6141
6574
  ] },
6142
6575
  React.createElement(Input, { size: "large" })),
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: [
6576
+ companyRole === CompanyRole.MINISTRY && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6577
+ 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: [
6578
+ {
6579
+ required: true,
6580
+ message: "Ministry Name is required",
6581
+ },
6582
+ ] },
6583
+ React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry)); }))),
6584
+ 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: [
6585
+ {
6586
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6587
+ return __generator(this, function (_a) {
6588
+ if (String(value).trim() === "" ||
6589
+ String(value).trim() === undefined ||
6590
+ value === null ||
6591
+ value === undefined) {
6592
+ throw new Error("Name of the Minister ".concat(t("isRequired")));
6593
+ }
6594
+ return [2 /*return*/];
6595
+ });
6596
+ }); },
6597
+ },
6598
+ ] },
6599
+ React.createElement(Input, { size: "large" })))),
6600
+ 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: [
6144
6601
  {
6145
6602
  required: false,
6146
6603
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6158,6 +6615,23 @@ var AddNewCompanyComponent = function (props) {
6158
6615
  },
6159
6616
  ], 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(); } },
6160
6617
  React.createElement(Input, { addonBefore: "https://", size: "large" })),
6618
+ 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: [
6619
+ { required: true, message: "" },
6620
+ {
6621
+ validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6622
+ return __generator(this, function (_a) {
6623
+ if (String(value).trim() === "" ||
6624
+ String(value).trim() === undefined ||
6625
+ value === null ||
6626
+ value === undefined) {
6627
+ throw new Error("Address ".concat(t("isRequired")));
6628
+ }
6629
+ return [2 /*return*/];
6630
+ });
6631
+ }); },
6632
+ },
6633
+ ] },
6634
+ React.createElement(Input.TextArea, { rows: 3, maxLength: 100 }))),
6161
6635
  React.createElement(Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6162
6636
  {
6163
6637
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6201,29 +6675,12 @@ var AddNewCompanyComponent = function (props) {
6201
6675
  return false;
6202
6676
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6203
6677
  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 }))),
6221
6678
  companyRole === CompanyRole.GOVERNMENT && (React.createElement("div", { className: "space-container", style: { width: "100%" } },
6222
6679
  React.createElement(Space, { wrap: true, style: {
6223
6680
  display: "flex",
6224
6681
  marginBottom: 8,
6225
6682
  }, align: "center", size: "large" },
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: [
6683
+ 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: [
6227
6684
  { required: true, message: "" },
6228
6685
  {
6229
6686
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6281,37 +6738,45 @@ var AddNewCompanyComponent = function (props) {
6281
6738
  React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6282
6739
  React.createElement(AuditOutlined, { className: "role-icons" }),
6283
6740
  "Ministry")))))))),
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: [
6741
+ 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: [
6285
6742
  {
6286
6743
  required: true,
6287
- message: "",
6744
+ message: "Government Department is required",
6288
6745
  },
6289
6746
  {
6290
6747
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
6748
+ var val;
6291
6749
  return __generator(this, function (_a) {
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")));
6750
+ val = Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(value)];
6751
+ if (val &&
6752
+ val.length > 0 &&
6753
+ selectedGovDepatments &&
6754
+ !selectedGovDepatments.includes(val)) {
6755
+ throw new Error("Department not exist in Ministry");
6297
6756
  }
6298
6757
  return [2 /*return*/];
6299
6758
  });
6300
6759
  }); },
6301
6760
  },
6302
6761
  ] },
6303
- React.createElement(Input, { size: "large" }))),
6762
+ React.createElement(Select, { size: "large" }, selectedGovDepatments === null || selectedGovDepatments === void 0 ? void 0 : selectedGovDepatments.map(function (val) {
6763
+ if (val in GovDepartment) {
6764
+ var key = val;
6765
+ return (React.createElement(Select.Option, { key: GovDepartment[key], value: GovDepartment[key] }, val));
6766
+ }
6767
+ return null;
6768
+ })))),
6304
6769
  companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6305
6770
  {
6306
6771
  required: true,
6307
6772
  message: "Sectoral Scope ".concat(t("isRequired")),
6308
6773
  },
6309
- ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6774
+ ], initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.sectoralScope },
6310
6775
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
6311
6776
  var key = _a[0], value = _a[1];
6312
6777
  return (React.createElement(Select.Option, { key: value, value: value }, key));
6313
6778
  })))),
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: [
6779
+ 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: [
6315
6780
  {
6316
6781
  required: true,
6317
6782
  message: "",
@@ -6342,14 +6807,14 @@ var AddNewCompanyComponent = function (props) {
6342
6807
  },
6343
6808
  ] },
6344
6809
  React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
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: [
6810
+ 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: [
6346
6811
  {
6347
6812
  required: true,
6348
6813
  message: "".concat(t("region"), " ").concat(t("isRequired")),
6349
6814
  },
6350
6815
  ] },
6351
6816
  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)); })))),
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: [
6817
+ 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: [
6353
6818
  { required: true, message: "" },
6354
6819
  {
6355
6820
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6372,7 +6837,7 @@ var AddNewCompanyComponent = function (props) {
6372
6837
  display: "flex",
6373
6838
  marginBottom: 8,
6374
6839
  }, align: "center", size: "large" },
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: [
6840
+ 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: [
6376
6841
  { required: true, message: "" },
6377
6842
  {
6378
6843
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6879,6 +7344,16 @@ var CompanyProfileComponent = function (props) {
6879
7344
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.nameOfMinister
6880
7345
  ? companyDetails.nameOfMinister
6881
7346
  : "-")),
7347
+ React.createElement(Row, { className: "field" },
7348
+ React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:ministryName")),
7349
+ React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.ministry
7350
+ ? companyDetails.ministry
7351
+ : "-")),
7352
+ React.createElement(Row, { className: "field" },
7353
+ React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:govDepName")),
7354
+ React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.govDep
7355
+ ? Object.keys(GovDepartment)[Object.values(GovDepartment).indexOf(companyDetails.govDep)]
7356
+ : "-")),
6882
7357
  React.createElement(Row, { className: "field" },
6883
7358
  React.createElement(Col, { span: 12, className: "field-key" }, t("companyProfile:sectoralScope")),
6884
7359
  React.createElement(Col, { span: 12, className: "field-value" }, companyDetails.sectoralScope
@@ -21862,15 +22337,13 @@ var NdcActionViewComponent = function (props) {
21862
22337
  ((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
21863
22338
  }
21864
22339
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.AGRICULTURE &&
21865
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21866
- MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
22340
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
21867
22341
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21868
22342
  mitigationDetails[t("ndcAction:viewMitigationWeight")] =
21869
- addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + "t";
22343
+ addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
21870
22344
  }
21871
22345
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
21872
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21873
- MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
22346
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
21874
22347
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
21875
22348
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
21876
22349
  addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
@@ -21879,17 +22352,15 @@ var NdcActionViewComponent = function (props) {
21879
22352
  (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
21880
22353
  }
21881
22354
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
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) &&
22355
+ ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
22356
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
21886
22357
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21887
22358
  mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
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);
22359
+ addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
22360
+ ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
21889
22361
  }
21890
22362
  if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.EE_HOUSEHOLDS &&
21891
- (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
21892
- MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
22363
+ (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
21893
22364
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
21894
22365
  mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
21895
22366
  (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
@@ -22072,24 +22543,23 @@ var NdcActionViewComponent = function (props) {
22072
22543
  : "empty" }, t("programme:monitoringReport")),
22073
22544
  (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
22074
22545
  moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
22075
- " ~ " + monitoringReportversion)))),
22076
- React.createElement(Row, null,
22546
+ " ~ " + monitoringReportversion))),
22077
22547
  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
22078
22548
  ? t("programme:notAuthToUploadDoc")
22079
22549
  : uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
22080
22550
  ? !canUploadMonitorReport &&
22081
22551
  t("programme:programmeNotAuth")
22082
22552
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
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" } })))))))),
22553
+ React.createElement(FileAddOutlined, null))))),
22554
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
22555
+ React.createElement("div", { className: "icon" },
22556
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22557
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22558
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
22559
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22560
+ React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
22561
+ 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 },
22562
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
22093
22563
  React.createElement("div", { className: "report-details" },
22094
22564
  React.createElement("div", { className: "report-type" },
22095
22565
  React.createElement("div", { className: "name-time-container" },
@@ -22098,24 +22568,23 @@ var NdcActionViewComponent = function (props) {
22098
22568
  : "empty" }, t("programme:verificationReport")),
22099
22569
  (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
22100
22570
  moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
22101
- " ~ " + verificationReportVersion)))),
22102
- React.createElement(Row, null,
22571
+ " ~ " + verificationReportVersion))),
22103
22572
  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
22104
22573
  ? t("programme:notAuthToUploadDoc")
22105
22574
  : uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
22106
22575
  ? !monitoringReportAccepted &&
22107
22576
  t("programme:monitoringRepNotApproved")
22108
22577
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
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" } }))))))))))))),
22578
+ React.createElement(FileAddOutlined, null))))),
22579
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
22580
+ React.createElement("div", { className: "icon" },
22581
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22582
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
22583
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
22584
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
22585
+ React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
22586
+ 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 },
22587
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
22119
22588
  ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
22120
22589
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
22121
22590
  React.createElement(Col, { lg: 24, className: "gutter-row" },
@@ -28051,7 +28520,7 @@ var RejectDocumentationConfirmationModel = function (props) {
28051
28520
  React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
28052
28521
  };
28053
28522
 
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";
28523
+ 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";
28055
28524
  styleInject(css_248z$2);
28056
28525
 
28057
28526
  var NdcActionBody = function (props) {
@@ -28317,7 +28786,7 @@ var NdcActionBody = function (props) {
28317
28786
  React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
28318
28787
  React.createElement(LikeOutlined, { onClick: function () {
28319
28788
  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);
28320
- }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
28789
+ }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28321
28790
  React.createElement(DislikeOutlined, { onClick: function () {
28322
28791
  setRejectDocData({
28323
28792
  id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
@@ -28332,8 +28801,8 @@ var NdcActionBody = function (props) {
28332
28801
  icon: React.createElement(DislikeOutlined, null),
28333
28802
  });
28334
28803
  setOpenRejectDocConfirmationModal(true);
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,
28804
+ }, 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" },
28805
+ React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
28337
28806
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28338
28807
  ? t("programme:notAuthToUploadDoc")
28339
28808
  : uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -28364,7 +28833,7 @@ var NdcActionBody = function (props) {
28364
28833
  } }))))),
28365
28834
  (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
28366
28835
  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 },
28367
- React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47", paddingTop: '3px' } })))),
28836
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
28368
28837
  !monitoringReportAccepted && (React.createElement(React.Fragment, null,
28369
28838
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28370
28839
  ? t("programme:notAuthToUploadDoc")
@@ -28407,7 +28876,7 @@ var NdcActionBody = function (props) {
28407
28876
  ministryLevelPermission) && (React.createElement(React.Fragment, null,
28408
28877
  React.createElement(LikeOutlined, { onClick: function () {
28409
28878
  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);
28410
- }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
28879
+ }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28411
28880
  React.createElement(DislikeOutlined, { onClick: function () {
28412
28881
  setRejectDocData({
28413
28882
  id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
@@ -28422,8 +28891,8 @@ var NdcActionBody = function (props) {
28422
28891
  icon: React.createElement(DislikeOutlined, null),
28423
28892
  });
28424
28893
  setOpenRejectDocConfirmationModal(true);
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,
28894
+ }, 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" },
28895
+ React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
28427
28896
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28428
28897
  ? t("programme:notAuthToUploadDoc")
28429
28898
  : uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -28454,7 +28923,7 @@ var NdcActionBody = function (props) {
28454
28923
  } })))))),
28455
28924
  (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
28456
28925
  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 },
28457
- React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47", paddingTop: '3px' } })))),
28926
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
28458
28927
  !verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
28459
28928
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28460
28929
  ? t("programme:notAuthToUploadDoc")
@@ -28487,7 +28956,7 @@ var NdcActionBody = function (props) {
28487
28956
  React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
28488
28957
  };
28489
28958
 
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";
28959
+ 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";
28491
28960
  styleInject(css_248z$1);
28492
28961
 
28493
28962
  var ProgrammeDocuments = function (props) {
@@ -28734,7 +29203,7 @@ var ProgrammeDocuments = function (props) {
28734
29203
  (designDocActionPermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
28735
29204
  React.createElement(LikeOutlined, { onClick: function () {
28736
29205
  return docAction(designDocId, DocumentStatus.ACCEPTED);
28737
- }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29206
+ }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28738
29207
  React.createElement(DislikeOutlined, { onClick: function () {
28739
29208
  setRejectDocData({ id: designDocId });
28740
29209
  setActionInfo({
@@ -28745,8 +29214,8 @@ var ProgrammeDocuments = function (props) {
28745
29214
  icon: React.createElement(DislikeOutlined, null),
28746
29215
  });
28747
29216
  setOpenRejectDocConfirmationModal(true);
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" } })),
29217
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29218
+ designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28750
29219
  designDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28751
29220
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28752
29221
  designDocUrl !== "" && (React.createElement("div", { className: "time" },
@@ -28754,23 +29223,15 @@ var ProgrammeDocuments = function (props) {
28754
29223
  " ~ " + designDocversion))),
28755
29224
  React.createElement(Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
28756
29225
  linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
28757
- React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
29226
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28758
29227
  designDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
28759
29228
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly ||
28760
29229
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER
28761
29230
  ? t("programme:notAuthToUploadDoc")
28762
29231
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
28763
29232
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
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 () {
29233
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29234
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28774
29235
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
28775
29236
  } })),
28776
29237
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -28783,16 +29244,8 @@ var ProgrammeDocuments = function (props) {
28783
29244
  ? t("programme:notAuthToUploadDoc")
28784
29245
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
28785
29246
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
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 () {
29247
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29248
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28796
29249
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
28797
29250
  } })),
28798
29251
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -28818,7 +29271,7 @@ var ProgrammeDocuments = function (props) {
28818
29271
  (companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
28819
29272
  React.createElement(LikeOutlined, { onClick: function () {
28820
29273
  return docAction(methDocId, DocumentStatus.ACCEPTED);
28821
- }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29274
+ }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28822
29275
  React.createElement(DislikeOutlined, { onClick: function () {
28823
29276
  setRejectDocData({ id: methDocId });
28824
29277
  setActionInfo({
@@ -28829,8 +29282,8 @@ var ProgrammeDocuments = function (props) {
28829
29282
  icon: React.createElement(DislikeOutlined, null),
28830
29283
  });
28831
29284
  setOpenRejectDocConfirmationModal(true);
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" } })),
29285
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29286
+ methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28834
29287
  methodDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28835
29288
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28836
29289
  methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
@@ -28838,22 +29291,15 @@ var ProgrammeDocuments = function (props) {
28838
29291
  " ~ " + methDocversion))),
28839
29292
  React.createElement(Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
28840
29293
  linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
28841
- React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
29294
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28842
29295
  methodDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
28843
29296
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
28844
29297
  ? t("programme:notAuthToUploadDoc")
28845
29298
  : !uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
28846
29299
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
28847
29300
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
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 () {
29301
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29302
+ : { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28857
29303
  return designDocStatus === DocumentStatus.ACCEPTED &&
28858
29304
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
28859
29305
  handleMethodologyFileUpload();
@@ -28872,16 +29318,8 @@ var ProgrammeDocuments = function (props) {
28872
29318
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
28873
29319
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
28874
29320
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
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 () {
29321
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29322
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28885
29323
  return designDocStatus === DocumentStatus.ACCEPTED &&
28886
29324
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
28887
29325
  handleMethodologyFileUpload();
@@ -28910,7 +29348,7 @@ var ProgrammeDocuments = function (props) {
28910
29348
  (ministryLevelPermission || companyRolePermission) && (React.createElement(React.Fragment, null,
28911
29349
  React.createElement(LikeOutlined, { onClick: function () {
28912
29350
  return docAction(impactAssessmentId, DocumentStatus.ACCEPTED);
28913
- }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: "3px" } }),
29351
+ }, className: "common-progress-icon", style: { color: "#976ED7" } }),
28914
29352
  React.createElement(DislikeOutlined, { onClick: function () {
28915
29353
  setRejectDocData({ id: impactAssessmentId });
28916
29354
  setActionInfo({
@@ -28921,8 +29359,8 @@ var ProgrammeDocuments = function (props) {
28921
29359
  icon: React.createElement(DislikeOutlined, null),
28922
29360
  });
28923
29361
  setOpenRejectDocConfirmationModal(true);
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" } })),
29362
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
29363
+ impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28926
29364
  impactAssessmentStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
28927
29365
  React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28928
29366
  impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
@@ -28930,22 +29368,13 @@ var ProgrammeDocuments = function (props) {
28930
29368
  " ~ " + impactAssessmentversion))),
28931
29369
  React.createElement(Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
28932
29370
  linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
28933
- React.createElement("div", null,
28934
- React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
29371
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
28935
29372
  impactAssessmentStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
28936
29373
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
28937
29374
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
28938
29375
  !isProjectRejected
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 () {
29376
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29377
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28949
29378
  return uploadImpactAssessmentDocUserPermission &&
28950
29379
  !isProjectRejected &&
28951
29380
  handleImpactAssessmentFileUpload();
@@ -28958,16 +29387,8 @@ var ProgrammeDocuments = function (props) {
28958
29387
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
28959
29388
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
28960
29389
  !isProjectRejected
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 () {
29390
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
29391
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
28971
29392
  return uploadImpactAssessmentDocUserPermission &&
28972
29393
  !isProjectRejected &&
28973
29394
  handleImpactAssessmentFileUpload();
@@ -29034,5 +29455,5 @@ var TimelineBody = function (props) {
29034
29455
  React.createElement("div", { className: "remark-body" }, remark)))));
29035
29456
  };
29036
29457
 
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 };
29458
+ 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 };
29038
29459
  //# sourceMappingURL=index.js.map