@djb25/digit-ui-module-ekyc 1.0.67 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import { useHistory, Link, useParams, useLocation, useRouteMatch, Switch, Route,
4
4
  import { PersonIcon, EmployeeModuleCard, FaChartBar, MdDownloadIcon, Loader, InboxLinks, Card, Table, HomeIcon, TextInput, Header, SubmitBar, DetailsCard, FilterForm, FilterFormField, Dropdown, FaDatabase, FaFileAlt, Label, CustomTooltip, CardLabelError, SearchField, RadioButtons, InboxComposer, CardSubHeader, StatusTable, Row, GenericFileIcon, CheckBox, ActionBar, Menu, LinkButton, Toast, EditIcon, UploadFile, FormComposer, VerticalTimeline, Modal, Close, CollapsibleCardPage, DatePicker, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, CardHeader, CardText, CitizenHomeCard, DocumentIcon } from '@djb25/digit-ui-react-components';
5
5
  import * as Chartjs from 'chart.js/auto';
6
6
  import Chartjs__default, { Chart } from 'chart.js/auto';
7
- import { FaCheckCircle, FaBuilding, FaUser, FaClock, FaChartLine, FaUsers } from 'react-icons/fa';
7
+ import { FaBuilding, FaUser, FaClock, FaChartLine, FaUsers, FaCheckCircle } from 'react-icons/fa';
8
8
 
9
9
  const EKYCCard = () => {
10
10
  var _Digit$SessionStorage, _Digit$SessionStorage2;
@@ -474,17 +474,13 @@ const StatusCards = _ref => {
474
474
  label: t("EKYC_TOTAL"),
475
475
  value: (countData === null || countData === void 0 ? void 0 : countData.total) || 0
476
476
  }, {
477
- color: "#4C8BF5",
478
- label: t("EKYC_ASSIGNED"),
479
- value: (countData === null || countData === void 0 ? void 0 : countData.totalAssignments) || 0
477
+ color: "#0c2a52",
478
+ label: t("EKYC_PENDING"),
479
+ value: (countData === null || countData === void 0 ? void 0 : countData.pending) || 0
480
480
  }, {
481
481
  color: "#2E8B57",
482
482
  label: t("EKYC_COMPLETED"),
483
483
  value: (countData === null || countData === void 0 ? void 0 : countData.completed) || 0
484
- }, {
485
- color: "#0c2a52",
486
- label: t("EKYC_PENDING"),
487
- value: (countData === null || countData === void 0 ? void 0 : countData.pending) || 0
488
484
  }, {
489
485
  color: "#8B5CF6",
490
486
  label: t("EKYC_SUBMITTED_BY_VENDORS"),
@@ -638,8 +634,8 @@ const Dashboard = () => {
638
634
  const countData = useMemo(() => {
639
635
  return {
640
636
  total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
641
- completed: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) + (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCount) || 0,
642
- pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) || 0,
637
+ completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
638
+ pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
643
639
  rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnos) || 0,
644
640
  totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
645
641
  submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0,
@@ -1219,7 +1215,6 @@ const downloadSupervisorPDF = function (_ref2) {
1219
1215
  mobileNo: row.status || "N/A",
1220
1216
  zoneName: String(row.total || 0),
1221
1217
  ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
1222
- submittedAt: 1717171717171,
1223
1218
  progress: row.progress || "0%"
1224
1219
  };
1225
1220
  });
@@ -1317,7 +1312,7 @@ const downloadVendorPDF = function (_ref3) {
1317
1312
  title: t("TOTAL_ASSIGNED") || "Total Assigned",
1318
1313
  value: (dashboardInfo === null || dashboardInfo === void 0 ? void 0 : dashboardInfo.total) || 0
1319
1314
  }, {
1320
- title: t("COMPLETED") || "Completed",
1315
+ title: t("TOTAL_EKYC_APPLICATIONS") || "Completed",
1321
1316
  value: (dashboardInfo === null || dashboardInfo === void 0 ? void 0 : dashboardInfo.completed) || 0
1322
1317
  }, {
1323
1318
  title: t("PENDING") || "Pending",
@@ -1334,7 +1329,6 @@ const downloadVendorPDF = function (_ref3) {
1334
1329
  mobileNo: row.status || "N/A",
1335
1330
  zoneName: String(row.total || 0),
1336
1331
  ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
1337
- submittedAt: 1717171717171,
1338
1332
  progress: row.progress || "0%"
1339
1333
  }));
1340
1334
  const originalToLocaleDateString = Date.prototype.toLocaleDateString;
@@ -1353,7 +1347,6 @@ const downloadVendorPDF = function (_ref3) {
1353
1347
  if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
1354
1348
  if (key === "MOBILE") return t("STATUS") || "Status";
1355
1349
  if (key === "ZONE") return t("TOTAL_EKYC_APPLICATIONS") || "Total eKYC Applications";
1356
- if (key === "EKYC_STATUS") return t("COMPLETED_PENDING") || "Completed / Pending";
1357
1350
  if (key === "SUBMITTED_DATE") return t("OVERALL_PROGRESS") || "Overall Progress";
1358
1351
  if (key === "CONSUMER_LIST") return t("CONNECTED_SUPERVISORS") || "Connected Supervisors";
1359
1352
  return t(key);
@@ -1387,7 +1380,7 @@ const downloadVendorPDF = function (_ref3) {
1387
1380
  };
1388
1381
 
1389
1382
  const VendorDetailsCard = () => {
1390
- var _vendor$owner, _vendor$owner2, _vendorName$charAt;
1383
+ var _vendor$owner, _vendor$owner2, _vendorName$charAt, _progressData$supervi;
1391
1384
  const _useTranslation = useTranslation(),
1392
1385
  t = _useTranslation.t;
1393
1386
  const history = useHistory();
@@ -1411,14 +1404,6 @@ const VendorDetailsCard = () => {
1411
1404
  _Digit$Hooks$fsm$useV5 = _Digit$Hooks$fsm$useV4 === void 0 ? [] : _Digit$Hooks$fsm$useV4,
1412
1405
  vendor = _Digit$Hooks$fsm$useV5[0],
1413
1406
  isVendorSearchLoading = _Digit$Hooks$fsm$useV.isLoading;
1414
- const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSupervisorSearch(tenantId, {
1415
- status: "ACTIVE"
1416
- }, {
1417
- enabled: !!tenantId,
1418
- staleTime: 300000
1419
- }),
1420
- supervisorSearchResponse = _Digit$Hooks$fsm$useS.data,
1421
- isSupervisorSearchLoading = _Digit$Hooks$fsm$useS.isLoading;
1422
1407
  const targetVendorId = vendorId || (vendor === null || vendor === void 0 ? void 0 : vendor.id) || (vendor === null || vendor === void 0 ? void 0 : vendor.vendorId);
1423
1408
  const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress(targetVendorId ? {
1424
1409
  vendorId: targetVendorId
@@ -1428,50 +1413,6 @@ const VendorDetailsCard = () => {
1428
1413
  }),
1429
1414
  isProgressLoading = _Digit$Hooks$ekyc$use.isLoading,
1430
1415
  progressData = _Digit$Hooks$ekyc$use.data;
1431
- const createDummySupervisors = vendor => {
1432
- const count = Number(vendor === null || vendor === void 0 ? void 0 : vendor.supervisors) || 5;
1433
- return Array.from({
1434
- length: count
1435
- }, (_, i) => ({
1436
- id: "SUP_V_" + ((vendor === null || vendor === void 0 ? void 0 : vendor.id) || "DEFAULT") + "_" + (i + 1),
1437
- name: "Supervisor " + (i + 1),
1438
- mobileNo: "99999120" + i,
1439
- status: "ACTIVE",
1440
- totalKnos: 0,
1441
- submittedKnos: 0,
1442
- pendingKnos: 0,
1443
- progressPercent: 0,
1444
- isDummy: true
1445
- }));
1446
- };
1447
- const vendorSupervisors = useMemo(() => {
1448
- const currentVendorId = (vendor === null || vendor === void 0 ? void 0 : vendor.id) || (vendor === null || vendor === void 0 ? void 0 : vendor.vendorId) || vendorId;
1449
- if (!Array.isArray(supervisorSearchResponse === null || supervisorSearchResponse === void 0 ? void 0 : supervisorSearchResponse.supervisors)) {
1450
- return vendor ? createDummySupervisors(vendor) : [];
1451
- }
1452
- const matchedSups = supervisorSearchResponse.supervisors.filter(s => s.vendorId === currentVendorId || s.vendorId === (vendor === null || vendor === void 0 ? void 0 : vendor.id) || s.vendorId === (vendor === null || vendor === void 0 ? void 0 : vendor.vendorId));
1453
- if (matchedSups.length === 0) {
1454
- return [];
1455
- }
1456
- return matchedSups.map(sup => {
1457
- var _progressData$supervi, _sup$owner2, _sup$owner3, _sup$owner4;
1458
- const report = progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi = progressData.supervisorReport) === null || _progressData$supervi === void 0 ? void 0 : _progressData$supervi.find(r => {
1459
- var _sup$owner;
1460
- return r.supervisorId === sup.id || r.supervisorId === ((_sup$owner = sup.owner) === null || _sup$owner === void 0 ? void 0 : _sup$owner.uuid);
1461
- });
1462
- return {
1463
- id: sup.id || ((_sup$owner2 = sup.owner) === null || _sup$owner2 === void 0 ? void 0 : _sup$owner2.uuid),
1464
- name: sup.name || ((_sup$owner3 = sup.owner) === null || _sup$owner3 === void 0 ? void 0 : _sup$owner3.name) || "N/A",
1465
- mobileNo: ((_sup$owner4 = sup.owner) === null || _sup$owner4 === void 0 ? void 0 : _sup$owner4.mobileNumber) || sup.mobileNo || "N/A",
1466
- status: sup.status || "ACTIVE",
1467
- totalKnos: (report === null || report === void 0 ? void 0 : report.totalKnos) || 0,
1468
- submittedKnos: (report === null || report === void 0 ? void 0 : report.submittedKnos) || 0,
1469
- pendingKnos: (report === null || report === void 0 ? void 0 : report.pendingKnos) || 0,
1470
- progressPercent: (report === null || report === void 0 ? void 0 : report.progressPercent) || 0,
1471
- isDummy: false
1472
- };
1473
- });
1474
- }, [supervisorSearchResponse, vendor, progressData, vendorId]);
1475
1416
  const vendorName = (vendor === null || vendor === void 0 ? void 0 : vendor.name) || "N/A";
1476
1417
  const mobileNumber = (vendor === null || vendor === void 0 ? void 0 : vendor.mobileNumber) || (vendor === null || vendor === void 0 ? void 0 : (_vendor$owner = vendor.owner) === null || _vendor$owner === void 0 ? void 0 : _vendor$owner.mobileNumber) || "N/A";
1477
1418
  const email = (vendor === null || vendor === void 0 ? void 0 : (_vendor$owner2 = vendor.owner) === null || _vendor$owner2 === void 0 ? void 0 : _vendor$owner2.emailId) || "N/A";
@@ -1482,10 +1423,9 @@ const VendorDetailsCard = () => {
1482
1423
  const cards = useMemo(() => {
1483
1424
  const totalKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0;
1484
1425
  const totalAssignments = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) || 0;
1485
- const completedKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0;
1486
1426
  const selfEkycCount = (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0;
1487
1427
  const submittedKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0;
1488
- const pendingKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) || 0;
1428
+ const pendingKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0;
1489
1429
  const progressPercent = (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0;
1490
1430
  return [{
1491
1431
  label: "TOTAL_KNOS",
@@ -1499,12 +1439,6 @@ const VendorDetailsCard = () => {
1499
1439
  color: "#0B2559",
1500
1440
  type: "today",
1501
1441
  icon: /*#__PURE__*/React.createElement(FaFileAlt, null)
1502
- }, {
1503
- label: "EKYC_COMPLETED",
1504
- count: completedKnos,
1505
- color: "#10B981",
1506
- type: "month",
1507
- icon: /*#__PURE__*/React.createElement(FaCheckCircle, null)
1508
1442
  }, {
1509
1443
  label: "EKYC_SUBMITTED_BY_VENDORS",
1510
1444
  count: submittedKnos,
@@ -1530,7 +1464,7 @@ const VendorDetailsCard = () => {
1530
1464
  type: "progress",
1531
1465
  icon: /*#__PURE__*/React.createElement(FaChartLine, null)
1532
1466
  }];
1533
- }, [vendorSupervisors, vendor, progressData]);
1467
+ }, [vendor, progressData]);
1534
1468
  const _useState = useState(0),
1535
1469
  currentPage = _useState[0],
1536
1470
  setCurrentPage = _useState[1];
@@ -1755,19 +1689,17 @@ const VendorDetailsCard = () => {
1755
1689
  }
1756
1690
  return null;
1757
1691
  };
1758
- const paginatedSupervisors = useMemo(() => {
1759
- const start = currentPage * pageSize;
1760
- const end = start + pageSize;
1761
- return vendorSupervisors.slice(start, end);
1762
- }, [vendorSupervisors, currentPage, pageSize]);
1763
1692
  const supervisorColumns = useMemo(() => [{
1764
1693
  Header: t("SUPERVISOR_NAME") || "Supervisor Name",
1765
- accessor: row => (row === null || row === void 0 ? void 0 : row.name) || "N/A",
1694
+ accessor: row => {
1695
+ var _row$original;
1696
+ return (row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.supervisorName) || "N/A";
1697
+ },
1766
1698
  Cell: _ref => {
1767
- var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$original;
1699
+ var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$original2, _row$original3;
1768
1700
  let row = _ref.row;
1769
1701
  const userType = ((_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.type) === null || _Digit$SessionStorage3 === void 0 ? void 0 : _Digit$SessionStorage3.toLowerCase()) || "citizen";
1770
- const targetPath = "/digit-ui/" + userType + "/ekyc/supervisor-dashboard/" + row.original.id;
1702
+ const targetPath = "/digit-ui/" + userType + "/ekyc/supervisor-dashboard/" + (row === null || row === void 0 ? void 0 : (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.supervisorId);
1771
1703
  return /*#__PURE__*/React.createElement("a", {
1772
1704
  href: targetPath,
1773
1705
  style: {
@@ -1779,12 +1711,12 @@ const VendorDetailsCard = () => {
1779
1711
  e.preventDefault();
1780
1712
  history.push(targetPath);
1781
1713
  }
1782
- }, ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.name) || "N/A");
1714
+ }, (row === null || row === void 0 ? void 0 : (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.supervisorName) || "N/A");
1783
1715
  }
1784
1716
  }, {
1785
1717
  Header: t("MOBILE_NUMBER") || "Mobile Number",
1786
1718
  accessor: row => (row === null || row === void 0 ? void 0 : row.mobileNo) || "N/A",
1787
- id: "mobileNumber"
1719
+ id: "mobileNo"
1788
1720
  }, {
1789
1721
  Header: t("STATUS") || "Status",
1790
1722
  accessor: row => (row === null || row === void 0 ? void 0 : row.status) || "ACTIVE",
@@ -1809,7 +1741,7 @@ const VendorDetailsCard = () => {
1809
1741
  id: "pendingApplications"
1810
1742
  }, {
1811
1743
  Header: t("OVERALL_PROGRESS") || "Overall Progress",
1812
- accessor: row => (row !== null && row !== void 0 && row.progressPercent || (row === null || row === void 0 ? void 0 : row.progressPercent) === 0 ? row.progressPercent : row.progress) + "%",
1744
+ accessor: row => ((row === null || row === void 0 ? void 0 : row.progressPercent) || 0) + "%",
1813
1745
  id: "overallProgress"
1814
1746
  }], [t, history]);
1815
1747
  const _useState4 = useState(false),
@@ -1841,27 +1773,24 @@ const VendorDetailsCard = () => {
1841
1773
  const handleDownload = () => {
1842
1774
  setReportLoading(true);
1843
1775
  try {
1844
- const rowsWithStats = vendorSupervisors.map(s => ({
1845
- name: s.name,
1776
+ const rowsWithStats = progressData === null || progressData === void 0 ? void 0 : progressData.supervisorReport.map(s => ({
1777
+ name: s.supervisorName,
1846
1778
  mobileNo: s.mobileNo,
1847
- status: s.status,
1848
1779
  total: s.totalKnos,
1849
1780
  completed: s.submittedKnos,
1850
1781
  pending: s.pendingKnos,
1851
- progress: s.progressPercent + "%"
1782
+ progress: (s.progressPercent || 0) + "%"
1852
1783
  }));
1853
- const totalKnos = vendorSupervisors.reduce((acc, s) => acc + (s.totalKnos || 0), 0) || (vendor === null || vendor === void 0 ? void 0 : vendor.assignedConnections) || 0;
1854
- const completedKnos = vendorSupervisors.reduce((acc, s) => acc + (s.submittedKnos || 0), 0) || (vendor === null || vendor === void 0 ? void 0 : vendor.completedEkyc) || 0;
1855
1784
  downloadVendorPDF({
1856
1785
  rows: rowsWithStats,
1857
1786
  vendorName,
1858
1787
  mobileNumber,
1859
1788
  email,
1860
1789
  dashboardInfo: {
1861
- total: totalKnos,
1862
- completed: completedKnos,
1863
- pending: totalKnos - completedKnos,
1864
- submittedCount: completedKnos
1790
+ total: progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones,
1791
+ completed: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) + (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones),
1792
+ pending: progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones,
1793
+ submittedCount: progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones
1865
1794
  },
1866
1795
  t
1867
1796
  });
@@ -1919,7 +1848,7 @@ const VendorDetailsCard = () => {
1919
1848
  className: "stat-icon"
1920
1849
  }, icon)));
1921
1850
  };
1922
- const isPageLoading = isProgressLoading || isVendorSearchLoading || isSupervisorSearchLoading;
1851
+ const isPageLoading = isProgressLoading || isVendorSearchLoading;
1923
1852
  if (isPageLoading && !vendor) {
1924
1853
  return /*#__PURE__*/React.createElement(Loader, null);
1925
1854
  }
@@ -2063,22 +1992,21 @@ const VendorDetailsCard = () => {
2063
1992
  }, zoneIds.map(zone => /*#__PURE__*/React.createElement("span", {
2064
1993
  key: zone,
2065
1994
  className: "selected-zone-chip"
2066
- }, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React.createElement("div", {
2067
- className: "dashboard-card"
2068
- }, /*#__PURE__*/React.createElement(Table, {
1995
+ }, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, {
2069
1996
  t: t,
2070
1997
  tableTitle: t("CONNECTED_SUPERVISORS") || "Connected Supervisors",
2071
1998
  tableClass: "ekycTable",
2072
1999
  isTableScrollable: true,
2073
- data: paginatedSupervisors,
2000
+ data: progressData === null || progressData === void 0 ? void 0 : progressData.supervisorReport,
2074
2001
  columns: supervisorColumns,
2075
- isLoading: isPageLoading,
2076
- totalRecords: vendorSupervisors.length,
2002
+ isLoading: isProgressLoading,
2003
+ totalRecords: progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi = progressData.supervisorReport) === null || _progressData$supervi === void 0 ? void 0 : _progressData$supervi.length,
2077
2004
  currentPage: currentPage,
2078
2005
  pageSizeLimit: pageSize,
2079
2006
  isPaginationRequired: true,
2080
2007
  onNextPage: () => {
2081
- if (currentPage < Math.ceil(vendorSupervisors.length / pageSize) - 1) {
2008
+ var _progressData$supervi2;
2009
+ if (currentPage < Math.ceil((progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi2 = progressData.supervisorReport) === null || _progressData$supervi2 === void 0 ? void 0 : _progressData$supervi2.length) / pageSize) - 1) {
2082
2010
  setCurrentPage(prev => prev + 1);
2083
2011
  }
2084
2012
  },
@@ -2088,7 +2016,10 @@ const VendorDetailsCard = () => {
2088
2016
  }
2089
2017
  },
2090
2018
  onFirstPage: () => setCurrentPage(0),
2091
- onLastPage: () => setCurrentPage(Math.max(Math.ceil(vendorSupervisors.length / pageSize) - 1, 0)),
2019
+ onLastPage: () => {
2020
+ var _progressData$supervi3;
2021
+ return setCurrentPage(Math.max(Math.ceil((progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi3 = progressData.supervisorReport) === null || _progressData$supervi3 === void 0 ? void 0 : _progressData$supervi3.length) / pageSize) - 1, 0));
2022
+ },
2092
2023
  onPageSizeChange: e => {
2093
2024
  setPageSize(Number(e.target.value));
2094
2025
  setCurrentPage(0);
@@ -4880,21 +4811,21 @@ const AdminDashboard = () => {
4880
4811
  className: "stat-value"
4881
4812
  }, vendor.totalKnos), /*#__PURE__*/React.createElement("span", {
4882
4813
  className: "stat-label"
4883
- }, t("TOTAL_KNOS") || "Total KNOs"))), /*#__PURE__*/React.createElement("div", {
4814
+ }, t("TOTAL_EKYC_APPLICATIONS") || "Total KNOs"))), /*#__PURE__*/React.createElement("div", {
4884
4815
  className: "knos-summary"
4885
4816
  }, /*#__PURE__*/React.createElement("div", {
4886
4817
  className: "kno-stat"
4887
4818
  }, /*#__PURE__*/React.createElement("span", {
4888
4819
  className: "kno-label"
4889
- }, t("SUBMITTED") || "Submitted"), /*#__PURE__*/React.createElement("strong", null, vendor.submittedKnos)), /*#__PURE__*/React.createElement("div", {
4820
+ }, t("SUBMITTED") || "Submitted"), /*#__PURE__*/React.createElement("strong", null, vendor.submittedKnosInZones)), /*#__PURE__*/React.createElement("div", {
4890
4821
  className: "kno-stat pending"
4891
4822
  }, /*#__PURE__*/React.createElement("span", {
4892
4823
  className: "kno-label"
4893
- }, t("PENDING") || "Pending"), /*#__PURE__*/React.createElement("strong", null, vendor.pendingKnos)), /*#__PURE__*/React.createElement("div", {
4824
+ }, t("PENDING") || "Pending"), /*#__PURE__*/React.createElement("strong", null, vendor.pendingKnosInZones)), /*#__PURE__*/React.createElement("div", {
4894
4825
  className: "kno-stat rejected"
4895
4826
  }, /*#__PURE__*/React.createElement("span", {
4896
4827
  className: "kno-label"
4897
- }, t("REJECTED") || "Rejected"), /*#__PURE__*/React.createElement("strong", null, vendor.rejectedKnos))));
4828
+ }, t("EKYC_SUBMITTED_BY_CITIZEN") || "SUBMITTED BY CITIZEN"), /*#__PURE__*/React.createElement("strong", null, vendor.selfEkycCountInZones))));
4898
4829
  })))));
4899
4830
  };
4900
4831
 
@@ -5692,9 +5623,7 @@ const SupervisorDetailsCard = () => {
5692
5623
  className: "label"
5693
5624
  }, t("VENDOR_NAME") || "Vendor Name"), /*#__PURE__*/React.createElement("span", {
5694
5625
  className: "value"
5695
- }, vendorName))))), /*#__PURE__*/React.createElement(Card, {
5696
- className: "dashboard-card"
5697
- }, /*#__PURE__*/React.createElement(Table, {
5626
+ }, vendorName))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, {
5698
5627
  t: t,
5699
5628
  tableTitle: t("CONNECTED_SURVEYORS") || "Connected Surveyors",
5700
5629
  tableClass: "ekycTable",
@@ -6838,9 +6767,7 @@ const SurveyorDetailsDashboard = () => {
6838
6767
  className: "label"
6839
6768
  }, t("SUPERVISOR_NAME") || "Supervisor Name"), /*#__PURE__*/React.createElement("span", {
6840
6769
  className: "value"
6841
- }, supervisorName))))), /*#__PURE__*/React.createElement(Card, {
6842
- className: "dashboard-card"
6843
- }, /*#__PURE__*/React.createElement(Table, {
6770
+ }, supervisorName))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, {
6844
6771
  t: t,
6845
6772
  tableTitle: t("ASSIGNED_KNOS"),
6846
6773
  tableClass: "ekycTable",