@djb25/digit-ui-module-ekyc 1.0.66 → 1.0.68
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.
- package/dist/index.js +42 -106
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +43 -107
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,6 +13,9 @@ const EKYCCard = () => {
|
|
|
13
13
|
var _Digit$SessionStorage, _Digit$SessionStorage2;
|
|
14
14
|
const _useTranslation = reactI18next.useTranslation(),
|
|
15
15
|
t = _useTranslation.t;
|
|
16
|
+
if (!Digit.Utils.ekycAccess()) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
16
19
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
17
20
|
const citizenInfo = (_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$SessionStorage2.roles;
|
|
18
21
|
const roles = Array.isArray(citizenInfo) ? citizenInfo.map(ele => ele.code || ele) : [];
|
|
@@ -474,17 +477,13 @@ const StatusCards = _ref => {
|
|
|
474
477
|
label: t("EKYC_TOTAL"),
|
|
475
478
|
value: (countData === null || countData === void 0 ? void 0 : countData.total) || 0
|
|
476
479
|
}, {
|
|
477
|
-
color: "#
|
|
478
|
-
label: t("
|
|
479
|
-
value: (countData === null || countData === void 0 ? void 0 : countData.
|
|
480
|
+
color: "#0c2a52",
|
|
481
|
+
label: t("EKYC_PENDING"),
|
|
482
|
+
value: (countData === null || countData === void 0 ? void 0 : countData.pending) || 0
|
|
480
483
|
}, {
|
|
481
484
|
color: "#2E8B57",
|
|
482
485
|
label: t("EKYC_COMPLETED"),
|
|
483
486
|
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
487
|
}, {
|
|
489
488
|
color: "#8B5CF6",
|
|
490
489
|
label: t("EKYC_SUBMITTED_BY_VENDORS"),
|
|
@@ -638,8 +637,8 @@ const Dashboard = () => {
|
|
|
638
637
|
const countData = React.useMemo(() => {
|
|
639
638
|
return {
|
|
640
639
|
total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
|
|
641
|
-
completed: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
642
|
-
pending: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
640
|
+
completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
|
|
641
|
+
pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
|
|
643
642
|
rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnos) || 0,
|
|
644
643
|
totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
|
|
645
644
|
submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0,
|
|
@@ -1219,7 +1218,6 @@ const downloadSupervisorPDF = function (_ref2) {
|
|
|
1219
1218
|
mobileNo: row.status || "N/A",
|
|
1220
1219
|
zoneName: String(row.total || 0),
|
|
1221
1220
|
ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
|
|
1222
|
-
submittedAt: 1717171717171,
|
|
1223
1221
|
progress: row.progress || "0%"
|
|
1224
1222
|
};
|
|
1225
1223
|
});
|
|
@@ -1317,7 +1315,7 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1317
1315
|
title: t("TOTAL_ASSIGNED") || "Total Assigned",
|
|
1318
1316
|
value: (dashboardInfo === null || dashboardInfo === void 0 ? void 0 : dashboardInfo.total) || 0
|
|
1319
1317
|
}, {
|
|
1320
|
-
title: t("
|
|
1318
|
+
title: t("TOTAL_EKYC_APPLICATIONS") || "Completed",
|
|
1321
1319
|
value: (dashboardInfo === null || dashboardInfo === void 0 ? void 0 : dashboardInfo.completed) || 0
|
|
1322
1320
|
}, {
|
|
1323
1321
|
title: t("PENDING") || "Pending",
|
|
@@ -1334,7 +1332,6 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1334
1332
|
mobileNo: row.status || "N/A",
|
|
1335
1333
|
zoneName: String(row.total || 0),
|
|
1336
1334
|
ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
|
|
1337
|
-
submittedAt: 1717171717171,
|
|
1338
1335
|
progress: row.progress || "0%"
|
|
1339
1336
|
}));
|
|
1340
1337
|
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
|
@@ -1353,7 +1350,6 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1353
1350
|
if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
|
|
1354
1351
|
if (key === "MOBILE") return t("STATUS") || "Status";
|
|
1355
1352
|
if (key === "ZONE") return t("TOTAL_EKYC_APPLICATIONS") || "Total eKYC Applications";
|
|
1356
|
-
if (key === "EKYC_STATUS") return t("COMPLETED_PENDING") || "Completed / Pending";
|
|
1357
1353
|
if (key === "SUBMITTED_DATE") return t("OVERALL_PROGRESS") || "Overall Progress";
|
|
1358
1354
|
if (key === "CONSUMER_LIST") return t("CONNECTED_SUPERVISORS") || "Connected Supervisors";
|
|
1359
1355
|
return t(key);
|
|
@@ -1387,7 +1383,7 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1387
1383
|
};
|
|
1388
1384
|
|
|
1389
1385
|
const VendorDetailsCard = () => {
|
|
1390
|
-
var _vendor$owner, _vendor$owner2, _vendorName$charAt;
|
|
1386
|
+
var _vendor$owner, _vendor$owner2, _vendorName$charAt, _progressData$supervi;
|
|
1391
1387
|
const _useTranslation = reactI18next.useTranslation(),
|
|
1392
1388
|
t = _useTranslation.t;
|
|
1393
1389
|
const history = reactRouterDom.useHistory();
|
|
@@ -1411,14 +1407,6 @@ const VendorDetailsCard = () => {
|
|
|
1411
1407
|
_Digit$Hooks$fsm$useV5 = _Digit$Hooks$fsm$useV4 === void 0 ? [] : _Digit$Hooks$fsm$useV4,
|
|
1412
1408
|
vendor = _Digit$Hooks$fsm$useV5[0],
|
|
1413
1409
|
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
1410
|
const targetVendorId = vendorId || (vendor === null || vendor === void 0 ? void 0 : vendor.id) || (vendor === null || vendor === void 0 ? void 0 : vendor.vendorId);
|
|
1423
1411
|
const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress(targetVendorId ? {
|
|
1424
1412
|
vendorId: targetVendorId
|
|
@@ -1428,50 +1416,6 @@ const VendorDetailsCard = () => {
|
|
|
1428
1416
|
}),
|
|
1429
1417
|
isProgressLoading = _Digit$Hooks$ekyc$use.isLoading,
|
|
1430
1418
|
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 = React.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
1419
|
const vendorName = (vendor === null || vendor === void 0 ? void 0 : vendor.name) || "N/A";
|
|
1476
1420
|
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
1421
|
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 +1426,9 @@ const VendorDetailsCard = () => {
|
|
|
1482
1426
|
const cards = React.useMemo(() => {
|
|
1483
1427
|
const totalKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0;
|
|
1484
1428
|
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
1429
|
const selfEkycCount = (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0;
|
|
1487
1430
|
const submittedKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0;
|
|
1488
|
-
const pendingKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
1431
|
+
const pendingKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0;
|
|
1489
1432
|
const progressPercent = (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0;
|
|
1490
1433
|
return [{
|
|
1491
1434
|
label: "TOTAL_KNOS",
|
|
@@ -1499,12 +1442,6 @@ const VendorDetailsCard = () => {
|
|
|
1499
1442
|
color: "#0B2559",
|
|
1500
1443
|
type: "today",
|
|
1501
1444
|
icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaFileAlt, null)
|
|
1502
|
-
}, {
|
|
1503
|
-
label: "EKYC_COMPLETED",
|
|
1504
|
-
count: completedKnos,
|
|
1505
|
-
color: "#10B981",
|
|
1506
|
-
type: "month",
|
|
1507
|
-
icon: /*#__PURE__*/React__default.createElement(fa.FaCheckCircle, null)
|
|
1508
1445
|
}, {
|
|
1509
1446
|
label: "EKYC_SUBMITTED_BY_VENDORS",
|
|
1510
1447
|
count: submittedKnos,
|
|
@@ -1530,7 +1467,7 @@ const VendorDetailsCard = () => {
|
|
|
1530
1467
|
type: "progress",
|
|
1531
1468
|
icon: /*#__PURE__*/React__default.createElement(fa.FaChartLine, null)
|
|
1532
1469
|
}];
|
|
1533
|
-
}, [
|
|
1470
|
+
}, [vendor, progressData]);
|
|
1534
1471
|
const _useState = React.useState(0),
|
|
1535
1472
|
currentPage = _useState[0],
|
|
1536
1473
|
setCurrentPage = _useState[1];
|
|
@@ -1755,19 +1692,17 @@ const VendorDetailsCard = () => {
|
|
|
1755
1692
|
}
|
|
1756
1693
|
return null;
|
|
1757
1694
|
};
|
|
1758
|
-
const paginatedSupervisors = React.useMemo(() => {
|
|
1759
|
-
const start = currentPage * pageSize;
|
|
1760
|
-
const end = start + pageSize;
|
|
1761
|
-
return vendorSupervisors.slice(start, end);
|
|
1762
|
-
}, [vendorSupervisors, currentPage, pageSize]);
|
|
1763
1695
|
const supervisorColumns = React.useMemo(() => [{
|
|
1764
1696
|
Header: t("SUPERVISOR_NAME") || "Supervisor Name",
|
|
1765
|
-
accessor: row =>
|
|
1697
|
+
accessor: row => {
|
|
1698
|
+
var _row$original;
|
|
1699
|
+
return (row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.supervisorName) || "N/A";
|
|
1700
|
+
},
|
|
1766
1701
|
Cell: _ref => {
|
|
1767
|
-
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$
|
|
1702
|
+
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$original2, _row$original3;
|
|
1768
1703
|
let row = _ref.row;
|
|
1769
1704
|
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.
|
|
1705
|
+
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
1706
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
1772
1707
|
href: targetPath,
|
|
1773
1708
|
style: {
|
|
@@ -1779,12 +1714,12 @@ const VendorDetailsCard = () => {
|
|
|
1779
1714
|
e.preventDefault();
|
|
1780
1715
|
history.push(targetPath);
|
|
1781
1716
|
}
|
|
1782
|
-
}, ((_row$
|
|
1717
|
+
}, (row === null || row === void 0 ? void 0 : (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.supervisorName) || "N/A");
|
|
1783
1718
|
}
|
|
1784
1719
|
}, {
|
|
1785
1720
|
Header: t("MOBILE_NUMBER") || "Mobile Number",
|
|
1786
1721
|
accessor: row => (row === null || row === void 0 ? void 0 : row.mobileNo) || "N/A",
|
|
1787
|
-
id: "
|
|
1722
|
+
id: "mobileNo"
|
|
1788
1723
|
}, {
|
|
1789
1724
|
Header: t("STATUS") || "Status",
|
|
1790
1725
|
accessor: row => (row === null || row === void 0 ? void 0 : row.status) || "ACTIVE",
|
|
@@ -1809,7 +1744,7 @@ const VendorDetailsCard = () => {
|
|
|
1809
1744
|
id: "pendingApplications"
|
|
1810
1745
|
}, {
|
|
1811
1746
|
Header: t("OVERALL_PROGRESS") || "Overall Progress",
|
|
1812
|
-
accessor: row => (
|
|
1747
|
+
accessor: row => ((row === null || row === void 0 ? void 0 : row.progressPercent) || 0) + "%",
|
|
1813
1748
|
id: "overallProgress"
|
|
1814
1749
|
}], [t, history]);
|
|
1815
1750
|
const _useState4 = React.useState(false),
|
|
@@ -1841,27 +1776,24 @@ const VendorDetailsCard = () => {
|
|
|
1841
1776
|
const handleDownload = () => {
|
|
1842
1777
|
setReportLoading(true);
|
|
1843
1778
|
try {
|
|
1844
|
-
const rowsWithStats =
|
|
1845
|
-
name: s.
|
|
1779
|
+
const rowsWithStats = progressData === null || progressData === void 0 ? void 0 : progressData.supervisorReport.map(s => ({
|
|
1780
|
+
name: s.supervisorName,
|
|
1846
1781
|
mobileNo: s.mobileNo,
|
|
1847
|
-
status: s.status,
|
|
1848
1782
|
total: s.totalKnos,
|
|
1849
1783
|
completed: s.submittedKnos,
|
|
1850
1784
|
pending: s.pendingKnos,
|
|
1851
|
-
progress: s.progressPercent + "%"
|
|
1785
|
+
progress: (s.progressPercent || 0) + "%"
|
|
1852
1786
|
}));
|
|
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
1787
|
downloadVendorPDF({
|
|
1856
1788
|
rows: rowsWithStats,
|
|
1857
1789
|
vendorName,
|
|
1858
1790
|
mobileNumber,
|
|
1859
1791
|
email,
|
|
1860
1792
|
dashboardInfo: {
|
|
1861
|
-
total:
|
|
1862
|
-
completed:
|
|
1863
|
-
pending:
|
|
1864
|
-
submittedCount:
|
|
1793
|
+
total: progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones,
|
|
1794
|
+
completed: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) + (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones),
|
|
1795
|
+
pending: progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones,
|
|
1796
|
+
submittedCount: progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones
|
|
1865
1797
|
},
|
|
1866
1798
|
t
|
|
1867
1799
|
});
|
|
@@ -1919,7 +1851,7 @@ const VendorDetailsCard = () => {
|
|
|
1919
1851
|
className: "stat-icon"
|
|
1920
1852
|
}, icon)));
|
|
1921
1853
|
};
|
|
1922
|
-
const isPageLoading = isProgressLoading || isVendorSearchLoading
|
|
1854
|
+
const isPageLoading = isProgressLoading || isVendorSearchLoading;
|
|
1923
1855
|
if (isPageLoading && !vendor) {
|
|
1924
1856
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
1925
1857
|
}
|
|
@@ -2070,15 +2002,16 @@ const VendorDetailsCard = () => {
|
|
|
2070
2002
|
tableTitle: t("CONNECTED_SUPERVISORS") || "Connected Supervisors",
|
|
2071
2003
|
tableClass: "ekycTable",
|
|
2072
2004
|
isTableScrollable: true,
|
|
2073
|
-
data:
|
|
2005
|
+
data: progressData === null || progressData === void 0 ? void 0 : progressData.supervisorReport,
|
|
2074
2006
|
columns: supervisorColumns,
|
|
2075
|
-
isLoading:
|
|
2076
|
-
totalRecords:
|
|
2007
|
+
isLoading: isProgressLoading,
|
|
2008
|
+
totalRecords: progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi = progressData.supervisorReport) === null || _progressData$supervi === void 0 ? void 0 : _progressData$supervi.length,
|
|
2077
2009
|
currentPage: currentPage,
|
|
2078
2010
|
pageSizeLimit: pageSize,
|
|
2079
2011
|
isPaginationRequired: true,
|
|
2080
2012
|
onNextPage: () => {
|
|
2081
|
-
|
|
2013
|
+
var _progressData$supervi2;
|
|
2014
|
+
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
2015
|
setCurrentPage(prev => prev + 1);
|
|
2083
2016
|
}
|
|
2084
2017
|
},
|
|
@@ -2088,7 +2021,10 @@ const VendorDetailsCard = () => {
|
|
|
2088
2021
|
}
|
|
2089
2022
|
},
|
|
2090
2023
|
onFirstPage: () => setCurrentPage(0),
|
|
2091
|
-
onLastPage: () =>
|
|
2024
|
+
onLastPage: () => {
|
|
2025
|
+
var _progressData$supervi3;
|
|
2026
|
+
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));
|
|
2027
|
+
},
|
|
2092
2028
|
onPageSizeChange: e => {
|
|
2093
2029
|
setPageSize(Number(e.target.value));
|
|
2094
2030
|
setCurrentPage(0);
|
|
@@ -4880,21 +4816,21 @@ const AdminDashboard = () => {
|
|
|
4880
4816
|
className: "stat-value"
|
|
4881
4817
|
}, vendor.totalKnos), /*#__PURE__*/React__default.createElement("span", {
|
|
4882
4818
|
className: "stat-label"
|
|
4883
|
-
}, t("
|
|
4819
|
+
}, t("TOTAL_EKYC_APPLICATIONS") || "Total KNOs"))), /*#__PURE__*/React__default.createElement("div", {
|
|
4884
4820
|
className: "knos-summary"
|
|
4885
4821
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4886
4822
|
className: "kno-stat"
|
|
4887
4823
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4888
4824
|
className: "kno-label"
|
|
4889
|
-
}, t("SUBMITTED") || "Submitted"), /*#__PURE__*/React__default.createElement("strong", null, vendor.
|
|
4825
|
+
}, t("SUBMITTED") || "Submitted"), /*#__PURE__*/React__default.createElement("strong", null, vendor.submittedKnosInZones)), /*#__PURE__*/React__default.createElement("div", {
|
|
4890
4826
|
className: "kno-stat pending"
|
|
4891
4827
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4892
4828
|
className: "kno-label"
|
|
4893
|
-
}, t("PENDING") || "Pending"), /*#__PURE__*/React__default.createElement("strong", null, vendor.
|
|
4829
|
+
}, t("PENDING") || "Pending"), /*#__PURE__*/React__default.createElement("strong", null, vendor.pendingKnosInZones)), /*#__PURE__*/React__default.createElement("div", {
|
|
4894
4830
|
className: "kno-stat rejected"
|
|
4895
4831
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4896
4832
|
className: "kno-label"
|
|
4897
|
-
}, t("
|
|
4833
|
+
}, t("EKYC_SUBMITTED_BY_CITIZEN") || "SUBMITTED BY CITIZEN"), /*#__PURE__*/React__default.createElement("strong", null, vendor.selfEkycCountInZones))));
|
|
4898
4834
|
})))));
|
|
4899
4835
|
};
|
|
4900
4836
|
|