@djb25/digit-ui-module-ekyc 1.0.63 → 1.0.65

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 CHANGED
@@ -472,32 +472,36 @@ const StatusCards = _ref => {
472
472
  const legendItems = [{
473
473
  color: "#77B6EA",
474
474
  label: t("EKYC_TOTAL"),
475
- value: countData === null || countData === void 0 ? void 0 : countData.total
475
+ value: (countData === null || countData === void 0 ? void 0 : countData.total) || 0
476
476
  }, {
477
- color: "#77B6EA",
477
+ color: "#4C8BF5",
478
+ label: t("EKYC_ASSIGNED"),
479
+ value: (countData === null || countData === void 0 ? void 0 : countData.totalAssignments) || 0
480
+ }, {
481
+ color: "#2E8B57",
478
482
  label: t("EKYC_COMPLETED"),
479
- value: countData === null || countData === void 0 ? void 0 : countData.completed
483
+ value: (countData === null || countData === void 0 ? void 0 : countData.completed) || 0
480
484
  }, {
481
485
  color: "#0c2a52",
482
486
  label: t("EKYC_PENDING"),
483
- value: countData === null || countData === void 0 ? void 0 : countData.pending
487
+ value: (countData === null || countData === void 0 ? void 0 : countData.pending) || 0
484
488
  }, {
485
- color: "#c8ddf5",
489
+ color: "#8B5CF6",
486
490
  label: t("EKYC_SUBMITTED_BY_VENDORS"),
487
- value: countData === null || countData === void 0 ? void 0 : countData.submittedCount
491
+ value: (countData === null || countData === void 0 ? void 0 : countData.submittedCount) || 0
488
492
  }, {
489
- color: "#c8ddf5",
493
+ color: "#F59E0B",
490
494
  label: t("EKYC_SUBMITTED_BY_CITIZEN"),
491
495
  value: (countData === null || countData === void 0 ? void 0 : countData.selfEkycCount) || 0
492
496
  }, {
493
- color: "#c8ddf5",
497
+ color: "#DC3545",
494
498
  label: t("EKYC_REJECTED"),
495
499
  value: (countData === null || countData === void 0 ? void 0 : countData.rejected) || 0
496
500
  }];
497
501
  return /*#__PURE__*/React__default.createElement("div", {
498
502
  className: "ekyc-employee-container"
499
503
  }, /*#__PURE__*/React__default.createElement("div", {
500
- className: "status-cards-wrapper"
504
+ className: "status-panel"
501
505
  }, /*#__PURE__*/React__default.createElement("div", {
502
506
  className: "status-cards-header"
503
507
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -583,18 +587,6 @@ const StatusCards = _ref => {
583
587
  handleCustomDownload();
584
588
  }
585
589
  }, t("APPLY") || "Apply")))))), /*#__PURE__*/React__default.createElement("div", {
586
- className: "status-panels-grid"
587
- }, /*#__PURE__*/React__default.createElement("div", {
588
- className: "status-panel"
589
- }, /*#__PURE__*/React__default.createElement("div", {
590
- className: "panel-header"
591
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
592
- className: "panel-title"
593
- }, t("EKYC_STATUS_BREAKDOWN") || "Status Breakdown"), /*#__PURE__*/React__default.createElement("div", {
594
- className: "panel-subtitle"
595
- }, t("EKYC_VERIFICATION_LIFECYCLE") || "Verification lifecycle")), /*#__PURE__*/React__default.createElement("div", {
596
- className: "completion-badge"
597
- }, efficiency, "% Complete")), /*#__PURE__*/React__default.createElement("div", {
598
590
  className: "status-breakdown-content"
599
591
  }, /*#__PURE__*/React__default.createElement("div", {
600
592
  className: "chart-wrapper"
@@ -614,7 +606,10 @@ const StatusCards = _ref => {
614
606
  className: "status-boxes"
615
607
  }, legendItems.map(item => /*#__PURE__*/React__default.createElement("div", {
616
608
  className: "status-box",
617
- key: item.label
609
+ key: item.label,
610
+ style: {
611
+ "--status-color": item.color
612
+ }
618
613
  }, /*#__PURE__*/React__default.createElement("div", {
619
614
  className: "status-box-top"
620
615
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -626,43 +621,33 @@ const StatusCards = _ref => {
626
621
  className: "status-name"
627
622
  }, item.label)), /*#__PURE__*/React__default.createElement("div", {
628
623
  className: "status-box-value"
629
- }, formatNumber(item.value))))))))));
624
+ }, formatNumber(item.value))))))));
630
625
  };
631
626
 
632
627
  const Dashboard = () => {
633
628
  const tenantId = Digit.ULBService.getCurrentTenantId();
634
- const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycSurveyorDashboard({}, {
635
- tenantId,
636
- offset: 0,
637
- limit: 10
638
- }, {
639
- enabled: !!tenantId
640
- }),
641
- isLoading = _Digit$Hooks$ekyc$use.isLoading,
642
- dashboardData = _Digit$Hooks$ekyc$use.data;
643
- const _Digit$Hooks$ekyc$use2 = Digit.Hooks.ekyc.useEkycAssignmentProgress({
629
+ const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress({
644
630
  tenantId,
645
631
  allVendorsDetailed: true
646
632
  }, {
647
633
  enabled: true,
648
634
  keepPreviousData: true
649
635
  }),
650
- progressData = _Digit$Hooks$ekyc$use2.data,
651
- isProgressLoading = _Digit$Hooks$ekyc$use2.isLoading;
636
+ progressData = _Digit$Hooks$ekyc$use.data,
637
+ isProgressLoading = _Digit$Hooks$ekyc$use.isLoading;
652
638
  const countData = React.useMemo(() => {
653
- const info = (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.dashboardInfo) || {};
654
639
  return {
655
- total: info.total || 0,
640
+ total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
656
641
  completed: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) + (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCount) || 0,
657
- pending: info.total - (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,
658
643
  rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnos) || 0,
659
- active: (progressData === null || progressData === void 0 ? void 0 : progressData.active) || 0,
644
+ totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
660
645
  submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0,
661
646
  selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCount) || 0,
662
647
  overallProgressPercent: (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0
663
648
  };
664
- }, [dashboardData, progressData]);
665
- return isProgressLoading || isLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(StatusCards, {
649
+ }, [progressData]);
650
+ return isProgressLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(StatusCards, {
666
651
  countData: countData
667
652
  });
668
653
  };
@@ -1080,483 +1065,6 @@ const Filter = _ref => {
1080
1065
  })));
1081
1066
  };
1082
1067
 
1083
- const ekycMockData = {
1084
- topKpis: {
1085
- totalWaterConnections: 2990996,
1086
- totalEkycCompleted: 2460810,
1087
- totalPending: 530186,
1088
- totalRejected: 224324,
1089
- agencyEkycCompleted: 2352069,
1090
- citizenSelfEkycCompleted: 638927,
1091
- todaysEkyc: 54684,
1092
- successRate: 82,
1093
- rejectionPercentage: 7
1094
- },
1095
- executiveMetrics: {
1096
- totalSurveyors: 186,
1097
- totalSupervisors: 56,
1098
- activeJurisdictions: 27,
1099
- todaysGrowth: 2.8,
1100
- selfEkycAdoption: 38,
1101
- avgApprovalTime: "2.3 Days",
1102
- riskZones: 7,
1103
- escalationsOpen: 18
1104
- },
1105
- alerts: [{
1106
- title: "North East District pending increased",
1107
- priority: "high",
1108
- change: "+22%",
1109
- district: "North East District"
1110
- }, {
1111
- title: "Agency 2 self eKYC adoption low",
1112
- priority: "medium",
1113
- change: "-12%",
1114
- district: "West District"
1115
- }, {
1116
- title: "Escalation raised in NWS Bhera Enclave",
1117
- priority: "high",
1118
- change: "+18",
1119
- district: "Outer North"
1120
- }, {
1121
- title: "Approval rate improved in East District",
1122
- priority: "low",
1123
- change: "+9%",
1124
- district: "East District"
1125
- }],
1126
- heatmapData: [{
1127
- district: "Outer North",
1128
- intensity: 82
1129
- }, {
1130
- district: "East District",
1131
- intensity: 48
1132
- }, {
1133
- district: "South District",
1134
- intensity: 67
1135
- }, {
1136
- district: "North East District",
1137
- intensity: 74
1138
- }],
1139
- dailyTrend: [{
1140
- label: "Mon",
1141
- completed: 270689,
1142
- pending: 491305,
1143
- rejected: 145810
1144
- }, {
1145
- label: "Tue",
1146
- completed: 442945,
1147
- pending: 466563,
1148
- rejected: 157026
1149
- }, {
1150
- label: "Wed",
1151
- completed: 615202,
1152
- pending: 441821,
1153
- rejected: 168243
1154
- }, {
1155
- label: "Thu",
1156
- completed: 812067,
1157
- pending: 413545,
1158
- rejected: 179459
1159
- }, {
1160
- label: "Fri",
1161
- completed: 1033540,
1162
- pending: 381733,
1163
- rejected: 190675
1164
- }, {
1165
- label: "Sat",
1166
- completed: 1279621,
1167
- pending: 346388,
1168
- rejected: 201891
1169
- }, {
1170
- label: "Sun",
1171
- completed: 1574918,
1172
- pending: 303973,
1173
- rejected: 213107
1174
- }],
1175
- selfVsAgency: [{
1176
- label: "Agency1",
1177
- agency: 201457,
1178
- citizen: 758414
1179
- }, {
1180
- label: "Agency 2",
1181
- agency: 164302,
1182
- citizen: 919322
1183
- }, {
1184
- label: "Agency 3",
1185
- agency: 328451,
1186
- citizen: 541772
1187
- }],
1188
- pendingVsCompleted: [{
1189
- label: "Agency1",
1190
- completed: 201457,
1191
- pending: 201457
1192
- }, {
1193
- label: "Agency 2",
1194
- completed: 164302,
1195
- pending: 164302
1196
- }, {
1197
- label: "Agency 3",
1198
- completed: 328451,
1199
- pending: 77278
1200
- }],
1201
- rejectionAnalysis: [{
1202
- label: "Agency1",
1203
- rejected: 71990,
1204
- success: 72
1205
- }, {
1206
- label: "Agency 2",
1207
- rejected: 81271,
1208
- success: 77
1209
- }, {
1210
- label: "Agency 3",
1211
- rejected: 71063,
1212
- success: 86
1213
- }],
1214
- vendors: [{
1215
- id: 1,
1216
- name: "Agency1",
1217
- assignedConnections: 959871,
1218
- completedEkyc: 201457,
1219
- selfEkyc: 758414,
1220
- pending: 201457,
1221
- rejected: 71990,
1222
- inactiveDemand: 1161328,
1223
- successRate: 72,
1224
- progress: 21,
1225
- supervisors: 23,
1226
- activeSurveyors: 64,
1227
- jurisdictions: ["Outer North", "North West District", "Model Town AC 18", "Cluster 2", "North District"],
1228
- dailyPerformance: [{
1229
- day: "Mon",
1230
- completed: 16116,
1231
- pending: 196084,
1232
- rejected: 53272
1233
- }, {
1234
- day: "Tue",
1235
- completed: 26189,
1236
- pending: 192727,
1237
- rejected: 55072
1238
- }, {
1239
- day: "Wed",
1240
- completed: 38276,
1241
- pending: 188698,
1242
- rejected: 57232
1243
- }, {
1244
- day: "Thu",
1245
- completed: 52378,
1246
- pending: 183997,
1247
- rejected: 59751
1248
- }, {
1249
- day: "Fri",
1250
- completed: 68495,
1251
- pending: 178625,
1252
- rejected: 62631
1253
- }, {
1254
- day: "Sat",
1255
- completed: 84611,
1256
- pending: 173253,
1257
- rejected: 65510
1258
- }, {
1259
- day: "Sun",
1260
- completed: 100728,
1261
- pending: 167880,
1262
- rejected: 68390
1263
- }],
1264
- zones: [{
1265
- agency: "Agency1",
1266
- district: "Outer North",
1267
- cluster: "NWS Bhera Enclave",
1268
- assignedConnections: 102669,
1269
- location: "102669",
1270
- zroOffice: "NWS Bhera Enclave",
1271
- assemblyConstituency: "Part of Mundka AC 08",
1272
- gpsLocation: null,
1273
- distanceFromFarthestPoint: null,
1274
- activeDemand: 202197,
1275
- pppZones: 15800,
1276
- inactiveDemand: 35265,
1277
- districtwiseInactiveTotal: 237462
1278
- }, {
1279
- agency: "Agency1",
1280
- district: "Outer North",
1281
- cluster: "Narela",
1282
- assignedConnections: 99528,
1283
- location: "99528",
1284
- zroOffice: "Narela",
1285
- assemblyConstituency: "Narela AC 01",
1286
- activeDemand: 99528,
1287
- pppZones: 19465,
1288
- inactiveDemand: 35265
1289
- }, {
1290
- agency: "Agency1",
1291
- district: "North West District",
1292
- cluster: "Rohini AC 13",
1293
- assignedConnections: 71041,
1294
- location: "71041",
1295
- zroOffice: "Rohini",
1296
- assemblyConstituency: "Rithala AC 06",
1297
- activeDemand: 247949,
1298
- pppZones: 28975,
1299
- inactiveDemand: 49494
1300
- }, {
1301
- agency: "Agency1",
1302
- district: "Mangol Puri AC 12",
1303
- cluster: "Model Town AC 18",
1304
- assignedConnections: 68957,
1305
- location: "68957",
1306
- zroOffice: "Central North District",
1307
- assemblyConstituency: "Ashok Vihar",
1308
- activeDemand: 231216,
1309
- pppZones: 16627,
1310
- inactiveDemand: 36915
1311
- }, {
1312
- agency: "Agency1",
1313
- district: "Timarpur AC 03",
1314
- cluster: "Cluster 2",
1315
- assignedConnections: 34862,
1316
- location: "34862",
1317
- zroOffice: "Old Delhi District",
1318
- assemblyConstituency: "Pratap Nagar",
1319
- activeDemand: 99694,
1320
- pppZones: 20011,
1321
- inactiveDemand: 48011
1322
- }, {
1323
- agency: "Agency1",
1324
- district: "Bali Maran AC 22",
1325
- cluster: "North District",
1326
- assignedConnections: 110507,
1327
- location: "110507",
1328
- zroOffice: "Burari",
1329
- assemblyConstituency: "Burari AC 2",
1330
- activeDemand: 178815,
1331
- pppZones: 14700,
1332
- inactiveDemand: 31772
1333
- }]
1334
- }, {
1335
- id: 2,
1336
- name: "Agency 2",
1337
- assignedConnections: 1083624,
1338
- completedEkyc: 164302,
1339
- selfEkyc: 919322,
1340
- pending: 164302,
1341
- rejected: 81271,
1342
- inactiveDemand: 1247926,
1343
- successRate: 77,
1344
- progress: 15,
1345
- supervisors: 14,
1346
- activeSurveyors: 64,
1347
- jurisdictions: ["West District", "Janak Puri", "South District"],
1348
- dailyPerformance: [{
1349
- day: "Mon",
1350
- completed: 13144,
1351
- pending: 159920,
1352
- rejected: 60140
1353
- }, {
1354
- day: "Tue",
1355
- completed: 21359,
1356
- pending: 157182,
1357
- rejected: 62172
1358
- }, {
1359
- day: "Wed",
1360
- completed: 31217,
1361
- pending: 153896,
1362
- rejected: 64610
1363
- }, {
1364
- day: "Thu",
1365
- completed: 42718,
1366
- pending: 150062,
1367
- rejected: 67454
1368
- }, {
1369
- day: "Fri",
1370
- completed: 55862,
1371
- pending: 145681,
1372
- rejected: 70705
1373
- }, {
1374
- day: "Sat",
1375
- completed: 69006,
1376
- pending: 141299,
1377
- rejected: 73956
1378
- }, {
1379
- day: "Sun",
1380
- completed: 82151,
1381
- pending: 136918,
1382
- rejected: 77207
1383
- }],
1384
- zones: [{
1385
- agency: "Agency 2",
1386
- district: "West District",
1387
- cluster: "Rajouri Garden AC 27",
1388
- assignedConnections: 84506,
1389
- location: "84506",
1390
- zroOffice: "Rajouri Garden AC 27",
1391
- assemblyConstituency: "Punjabi Bagh",
1392
- activeDemand: 470766,
1393
- pppZones: 13269,
1394
- inactiveDemand: 64564
1395
- }, {
1396
- agency: "Agency 2",
1397
- district: "West District",
1398
- cluster: "Tilak Nagar AC 29",
1399
- assignedConnections: 51428,
1400
- location: "51428",
1401
- zroOffice: "Tilak Nagar AC 29",
1402
- assemblyConstituency: "Paschim Vihar",
1403
- activeDemand: 470766,
1404
- pppZones: 6298,
1405
- inactiveDemand: 64564
1406
- }, {
1407
- agency: "Agency 2",
1408
- district: "Part of Uttam Nagar & Vikas puri",
1409
- cluster: "Janak Puri",
1410
- assignedConnections: 163041,
1411
- location: "163041",
1412
- zroOffice: "Janakpuri",
1413
- assemblyConstituency: "Janakpuri AC 30",
1414
- activeDemand: 369772,
1415
- pppZones: 25729,
1416
- inactiveDemand: 60534
1417
- }, {
1418
- agency: "Agency 2",
1419
- district: "South District",
1420
- cluster: "South District",
1421
- assignedConnections: 52803,
1422
- location: "52803",
1423
- zroOffice: "R K Puram",
1424
- assemblyConstituency: "Malviya Nagar AC 43",
1425
- activeDemand: 243086,
1426
- pppZones: 9678,
1427
- inactiveDemand: 39204
1428
- }, {
1429
- agency: "Agency 2",
1430
- district: "South District",
1431
- cluster: "Vasant Kunz",
1432
- assignedConnections: 58997,
1433
- location: "58997",
1434
- zroOffice: "Vasant Kunj",
1435
- assemblyConstituency: "Vasant Kunj",
1436
- activeDemand: 243086,
1437
- pppZones: 6691,
1438
- inactiveDemand: 39204
1439
- }]
1440
- }, {
1441
- id: 3,
1442
- name: "Agency 3",
1443
- assignedConnections: 947501,
1444
- completedEkyc: 328451,
1445
- selfEkyc: 541772,
1446
- pending: 77278,
1447
- rejected: 71063,
1448
- inactiveDemand: 1016841,
1449
- successRate: 86,
1450
- progress: 78,
1451
- supervisors: 19,
1452
- activeSurveyors: 58,
1453
- jurisdictions: ["East District", "North East District", "South East District", "MNWS"],
1454
- dailyPerformance: [{
1455
- day: "Mon",
1456
- completed: 44120,
1457
- pending: 130002,
1458
- rejected: 5711
1459
- }, {
1460
- day: "Tue",
1461
- completed: 58221,
1462
- pending: 121998,
1463
- rejected: 7104
1464
- }, {
1465
- day: "Wed",
1466
- completed: 70218,
1467
- pending: 113201,
1468
- rejected: 8842
1469
- }, {
1470
- day: "Thu",
1471
- completed: 85124,
1472
- pending: 104006,
1473
- rejected: 9911
1474
- }, {
1475
- day: "Fri",
1476
- completed: 102315,
1477
- pending: 94441,
1478
- rejected: 11214
1479
- }, {
1480
- day: "Sat",
1481
- completed: 121009,
1482
- pending: 85218,
1483
- rejected: 12902
1484
- }, {
1485
- day: "Sun",
1486
- completed: 142118,
1487
- pending: 77278,
1488
- rejected: 14101
1489
- }],
1490
- zones: [{
1491
- agency: "Agency 3",
1492
- district: "East District",
1493
- cluster: "Mayur Vihar",
1494
- assignedConnections: 72326,
1495
- location: "72326",
1496
- zroOffice: "Mayur Vihar",
1497
- assemblyConstituency: "Trilokpuri AC 55",
1498
- activeDemand: 328564,
1499
- pppZones: 9691,
1500
- inactiveDemand: 52477
1501
- }, {
1502
- agency: "Agency 3",
1503
- district: "East District",
1504
- cluster: "Yojna Vihar",
1505
- assignedConnections: 40651,
1506
- location: "40651",
1507
- zroOffice: "Yojna Vihar",
1508
- assemblyConstituency: "Vishwas Nagar AC 59",
1509
- activeDemand: 328564,
1510
- pppZones: 10097,
1511
- inactiveDemand: 52477
1512
- }, {
1513
- agency: "Agency 3",
1514
- district: "North East District",
1515
- cluster: "GTB Enclave",
1516
- assignedConnections: 80453,
1517
- location: "80453",
1518
- zroOffice: "GTB Enclave",
1519
- assemblyConstituency: "Seemapuri AC 63",
1520
- activeDemand: 323753,
1521
- pppZones: 10671,
1522
- inactiveDemand: 50575
1523
- }, {
1524
- agency: "Agency 3",
1525
- district: "North East District",
1526
- cluster: "Yamuna Vihar",
1527
- assignedConnections: 90599,
1528
- location: "90599",
1529
- zroOffice: "Yamuna Vihar",
1530
- assemblyConstituency: "Mustafabad AC 69",
1531
- activeDemand: 323753,
1532
- pppZones: 18185,
1533
- inactiveDemand: 50575
1534
- }, {
1535
- agency: "Agency 3",
1536
- district: "South East District",
1537
- cluster: "Kalkaji AC 51",
1538
- assignedConnections: 29188,
1539
- location: "29188",
1540
- zroOffice: "Kalkaji AC 51",
1541
- assemblyConstituency: "Saket",
1542
- activeDemand: 136102,
1543
- pppZones: 3675,
1544
- inactiveDemand: 23977
1545
- }, {
1546
- agency: "Agency 3",
1547
- district: "South East District",
1548
- cluster: "Okhla",
1549
- assignedConnections: 18473,
1550
- location: "18473",
1551
- zroOffice: "Sarita Vihar/Okhla",
1552
- assemblyConstituency: "Okhla AC 54",
1553
- activeDemand: 136102,
1554
- pppZones: 3703,
1555
- inactiveDemand: 23977
1556
- }]
1557
- }]
1558
- };
1559
-
1560
1068
  const downloadSurveyorPDF = function (_ref) {
1561
1069
  let rows = _ref.rows,
1562
1070
  surveyorName = _ref.surveyorName,
@@ -1879,21 +1387,30 @@ const downloadVendorPDF = function (_ref3) {
1879
1387
  };
1880
1388
 
1881
1389
  const VendorDetailsCard = () => {
1882
- var _Digit$SessionStorage, _vendor$owner, _vendor$owner2, _vendorName$charAt;
1390
+ var _vendor$owner, _vendor$owner2, _vendorName$charAt;
1883
1391
  const _useTranslation = reactI18next.useTranslation(),
1884
1392
  t = _useTranslation.t;
1885
1393
  const history = reactRouterDom.useHistory();
1886
1394
  const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
1887
1395
  const _useParams = reactRouterDom.useParams(),
1888
1396
  vendorId = _useParams.vendorId;
1889
- const _Digit$Hooks$fsm$useD = Digit.Hooks.fsm.useDsoSearch(tenantId, {
1890
- status: "ACTIVE"
1891
- }, {
1892
- enabled: !!tenantId,
1893
- staleTime: 300000
1397
+ const _Digit$Hooks$fsm$useV = Digit.Hooks.fsm.useVendorSearch({
1398
+ tenantId,
1399
+ filters: {
1400
+ status: "ACTIVE",
1401
+ ids: vendorId
1402
+ },
1403
+ config: {
1404
+ enabled: !!tenantId,
1405
+ staleTime: 300000
1406
+ }
1894
1407
  }),
1895
- vendorSearchResponse = _Digit$Hooks$fsm$useD.data,
1896
- isVendorSearchLoading = _Digit$Hooks$fsm$useD.isLoading;
1408
+ _Digit$Hooks$fsm$useV2 = _Digit$Hooks$fsm$useV.data,
1409
+ _Digit$Hooks$fsm$useV3 = _Digit$Hooks$fsm$useV2 === void 0 ? {} : _Digit$Hooks$fsm$useV2,
1410
+ _Digit$Hooks$fsm$useV4 = _Digit$Hooks$fsm$useV3.vendor,
1411
+ _Digit$Hooks$fsm$useV5 = _Digit$Hooks$fsm$useV4 === void 0 ? [] : _Digit$Hooks$fsm$useV4,
1412
+ vendor = _Digit$Hooks$fsm$useV5[0],
1413
+ isVendorSearchLoading = _Digit$Hooks$fsm$useV.isLoading;
1897
1414
  const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSupervisorSearch(tenantId, {
1898
1415
  status: "ACTIVE"
1899
1416
  }, {
@@ -1902,43 +1419,9 @@ const VendorDetailsCard = () => {
1902
1419
  }),
1903
1420
  supervisorSearchResponse = _Digit$Hooks$fsm$useS.data,
1904
1421
  isSupervisorSearchLoading = _Digit$Hooks$fsm$useS.isLoading;
1905
- const loggedInUser = (_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.info;
1906
- const vendor = React.useMemo(() => {
1907
- const userUuid = loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.uuid;
1908
- const userMobile = loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.mobileNumber;
1909
- const matchesUser = v => {
1910
- var _v$owner, _v$owner2, _v$owner3;
1911
- const ownerUuid = ((_v$owner = v.owner) === null || _v$owner === void 0 ? void 0 : _v$owner.uuid) || ((_v$owner2 = v.owner) === null || _v$owner2 === void 0 ? void 0 : _v$owner2.id);
1912
- const ownerMobile = ((_v$owner3 = v.owner) === null || _v$owner3 === void 0 ? void 0 : _v$owner3.mobileNumber) || v.mobileNumber;
1913
- return userUuid && ownerUuid === userUuid || userMobile && ownerMobile === userMobile;
1914
- };
1915
- if (vendorSearchResponse) {
1916
- if (vendorId) {
1917
- const matched = vendorSearchResponse.find(v => {
1918
- var _v$dsoDetails, _v$dsoDetails2;
1919
- return ((_v$dsoDetails = v.dsoDetails) === null || _v$dsoDetails === void 0 ? void 0 : _v$dsoDetails.id) === vendorId || ((_v$dsoDetails2 = v.dsoDetails) === null || _v$dsoDetails2 === void 0 ? void 0 : _v$dsoDetails2.vendorId) === vendorId || v.id === vendorId || v.vendorId === vendorId;
1920
- });
1921
- if (matched) return matched.dsoDetails || matched;
1922
- } else {
1923
- const matched = vendorSearchResponse.find(v => matchesUser(v.dsoDetails || v));
1924
- if (matched) return matched.dsoDetails || matched;
1925
- if (vendorSearchResponse.length > 0) return vendorSearchResponse[0].dsoDetails || vendorSearchResponse[0];
1926
- }
1927
- }
1928
- if (vendorId) {
1929
- return ekycMockData.vendors.find(v => v.id === Number(vendorId) || v.name === vendorId) || ekycMockData.vendors[0];
1930
- } else {
1931
- const matchedMock = ekycMockData.vendors.find(v => {
1932
- var _v$name, _loggedInUser$name;
1933
- return ((_v$name = v.name) === null || _v$name === void 0 ? void 0 : _v$name.toLowerCase()) === (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$name = loggedInUser.name) === null || _loggedInUser$name === void 0 ? void 0 : _loggedInUser$name.toLowerCase());
1934
- });
1935
- return matchedMock || ekycMockData.vendors[0];
1936
- }
1937
- }, [vendorSearchResponse, vendorId, loggedInUser]);
1938
1422
  const targetVendorId = vendorId || (vendor === null || vendor === void 0 ? void 0 : vendor.id) || (vendor === null || vendor === void 0 ? void 0 : vendor.vendorId);
1939
1423
  const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress(targetVendorId ? {
1940
- vendorId: targetVendorId,
1941
- vendorIds: [targetVendorId]
1424
+ vendorId: targetVendorId
1942
1425
  } : {}, {
1943
1426
  enabled: !!tenantId,
1944
1427
  keepPreviousData: true
@@ -1997,32 +1480,43 @@ const VendorDetailsCard = () => {
1997
1480
  return vendor !== null && vendor !== void 0 && (_vendor$zoneIds = vendor.zoneIds) !== null && _vendor$zoneIds !== void 0 && _vendor$zoneIds.length ? vendor.zoneIds.filter(Boolean).map(zone => String(zone).trim().toUpperCase()) : [];
1998
1481
  }, [vendor]);
1999
1482
  const cards = React.useMemo(() => {
2000
- const hasRealData = vendorSupervisors.some(s => s.totalKnos > 0);
2001
- console.log("11111111111111111", vendorSupervisors);
2002
- console.log(progressData);
2003
- const totalKnos = hasRealData ? vendorSupervisors.reduce((acc, s) => acc + (s.totalKnos || 0), 0) : (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) || (vendor === null || vendor === void 0 ? void 0 : vendor.assignedConnections) || 0;
2004
- const totalAssignments = hasRealData ? vendorSupervisors.reduce((acc, s) => acc + (s.totalKnos || 0), 0) : (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) || (vendor === null || vendor === void 0 ? void 0 : vendor.assignedConnections) || 0;
2005
- const completedKnos = hasRealData ? vendorSupervisors.reduce((acc, s) => acc + (s.submittedKnos || 0), 0) : (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnos) || (vendor === null || vendor === void 0 ? void 0 : vendor.completedEkyc) || 0;
2006
- const pendingKnos = hasRealData ? vendorSupervisors.reduce((acc, s) => acc + (s.pendingKnos || 0), 0) : totalKnos - completedKnos;
2007
- const progressPercent = totalKnos > 0 ? Math.round(completedKnos / totalKnos * 100) : (vendor === null || vendor === void 0 ? void 0 : vendor.progress) || 0;
1483
+ const totalKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0;
1484
+ 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
+ const selfEkycCount = (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0;
1487
+ 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;
1489
+ const progressPercent = (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0;
2008
1490
  return [{
2009
- label: "TOTAL_EKYC_APPLICATIONS",
1491
+ label: "TOTAL_KNOS",
2010
1492
  count: totalKnos,
2011
1493
  color: "#0B2559",
2012
1494
  type: "today",
2013
- icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
1495
+ icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaDatabase, null)
2014
1496
  }, {
2015
1497
  label: "TOTAL_EKYC_APPLICATIONS",
2016
1498
  count: totalAssignments,
2017
1499
  color: "#0B2559",
2018
1500
  type: "today",
2019
- icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
1501
+ icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaFileAlt, null)
2020
1502
  }, {
2021
1503
  label: "EKYC_COMPLETED",
2022
1504
  count: completedKnos,
2023
1505
  color: "#10B981",
2024
1506
  type: "month",
2025
1507
  icon: /*#__PURE__*/React__default.createElement(fa.FaCheckCircle, null)
1508
+ }, {
1509
+ label: "EKYC_SUBMITTED_BY_VENDORS",
1510
+ count: submittedKnos,
1511
+ color: "#10B981",
1512
+ type: "month",
1513
+ icon: /*#__PURE__*/React__default.createElement(fa.FaBuilding, null)
1514
+ }, {
1515
+ label: "EKYC_SUBMITTED_BY_CITIZEN",
1516
+ count: selfEkycCount,
1517
+ color: "#10B981",
1518
+ type: "month",
1519
+ icon: /*#__PURE__*/React__default.createElement(fa.FaUser, null)
2026
1520
  }, {
2027
1521
  label: "PENDING_APPLICATIONS",
2028
1522
  count: pendingKnos,
@@ -2270,9 +1764,9 @@ const VendorDetailsCard = () => {
2270
1764
  Header: t("SUPERVISOR_NAME") || "Supervisor Name",
2271
1765
  accessor: row => (row === null || row === void 0 ? void 0 : row.name) || "N/A",
2272
1766
  Cell: _ref => {
2273
- var _Digit$SessionStorage2, _Digit$SessionStorage3, _Digit$SessionStorage4, _row$original;
1767
+ var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$original;
2274
1768
  let row = _ref.row;
2275
- const userType = ((_Digit$SessionStorage2 = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.info) === null || _Digit$SessionStorage3 === void 0 ? void 0 : (_Digit$SessionStorage4 = _Digit$SessionStorage3.type) === null || _Digit$SessionStorage4 === void 0 ? void 0 : _Digit$SessionStorage4.toLowerCase()) || "citizen";
1769
+ 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";
2276
1770
  const targetPath = "/digit-ui/" + userType + "/ekyc/supervisor-dashboard/" + row.original.id;
2277
1771
  return /*#__PURE__*/React__default.createElement("a", {
2278
1772
  href: targetPath,
@@ -2495,25 +1989,7 @@ const VendorDetailsCard = () => {
2495
1989
  setShowReportMenu(p => !p);
2496
1990
  setShowCustomPicker(false);
2497
1991
  }
2498
- }, /*#__PURE__*/React__default.createElement("svg", {
2499
- width: "16",
2500
- height: "16",
2501
- viewBox: "0 0 24 24",
2502
- fill: "none",
2503
- stroke: "currentColor",
2504
- strokeWidth: "2.5",
2505
- strokeLinecap: "round",
2506
- strokeLinejoin: "round"
2507
- }, /*#__PURE__*/React__default.createElement("path", {
2508
- d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
2509
- }), /*#__PURE__*/React__default.createElement("polyline", {
2510
- points: "7 10 12 15 17 10"
2511
- }), /*#__PURE__*/React__default.createElement("line", {
2512
- x1: "12",
2513
- y1: "15",
2514
- x2: "12",
2515
- y2: "3"
2516
- })), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel"), showReportMenu && /*#__PURE__*/React__default.createElement("div", {
1992
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MdDownloadIcon, null), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel"), showReportMenu && /*#__PURE__*/React__default.createElement("div", {
2517
1993
  className: "report-menu"
2518
1994
  }, [{
2519
1995
  label: t("TODAY") || "Today",
@@ -2587,7 +2063,7 @@ const VendorDetailsCard = () => {
2587
2063
  }, zoneIds.map(zone => /*#__PURE__*/React__default.createElement("span", {
2588
2064
  key: zone,
2589
2065
  className: "selected-zone-chip"
2590
- }, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
2066
+ }, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React__default.createElement("div", {
2591
2067
  className: "dashboard-card"
2592
2068
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
2593
2069
  t: t,
@@ -2729,7 +2205,7 @@ const useInboxTableConfig = _ref => {
2729
2205
  manualPagination: true,
2730
2206
  initSortId: "applicationDate",
2731
2207
  onPageSizeChange: onPageSizeChange,
2732
- currentPage: offset,
2208
+ currentPage: Math.floor(offset / limit),
2733
2209
  onNextPage: () => {
2734
2210
  var _formState$tableForm3;
2735
2211
  return dispatch({
@@ -5358,66 +4834,73 @@ const AdminDashboard = () => {
5358
4834
  className: "section-title"
5359
4835
  }, t("EKYC_VENDORS_PERFORMANCE") || "eKYC Vendors Performance"), isVendorSearchLoading || isProgressLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
5360
4836
  className: "vendors-grid"
5361
- }, Array.isArray(progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.length) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.map(vendor => /*#__PURE__*/React__default.createElement("div", {
5362
- key: vendor.vendorId,
5363
- className: "vendor-perf-card",
5364
- onClick: () => history.push("/digit-ui/employee/ekyc/vendors/" + vendor.vendorId)
5365
- }, /*#__PURE__*/React__default.createElement("div", {
5366
- className: "vendor-card-header"
5367
- }, /*#__PURE__*/React__default.createElement("div", {
5368
- className: "vendor-title"
5369
- }, /*#__PURE__*/React__default.createElement("div", {
5370
- className: "vendor-icon"
5371
- }, /*#__PURE__*/React__default.createElement("span", null, vendor.vendorName[0].toUpperCase())), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h4", null, vendor.vendorName), /*#__PURE__*/React__default.createElement("span", {
5372
- className: "vendor-subtitle"
5373
- }, t("EKYC_VENDOR") || "eKYC Vendor"))), /*#__PURE__*/React__default.createElement("div", {
5374
- className: "progress-badge"
5375
- }, vendor.progressPercent, "%")), /*#__PURE__*/React__default.createElement("div", {
5376
- className: "progress-section"
5377
- }, /*#__PURE__*/React__default.createElement("div", {
5378
- className: "progress-bar-container"
5379
- }, /*#__PURE__*/React__default.createElement("div", {
5380
- className: "progress-bar-fill",
5381
- style: {
5382
- width: vendor.progressPercent + "%"
5383
- }
5384
- })), /*#__PURE__*/React__default.createElement("div", {
5385
- className: "progress-label"
5386
- }, /*#__PURE__*/React__default.createElement("span", null, t("PROGRESS") || "Progress"), /*#__PURE__*/React__default.createElement("span", null, vendor.progressPercent, "%"))), /*#__PURE__*/React__default.createElement("div", {
5387
- className: "stats-grid"
5388
- }, /*#__PURE__*/React__default.createElement("div", {
5389
- className: "stat-item"
5390
- }, /*#__PURE__*/React__default.createElement("span", {
5391
- className: "stat-value"
5392
- }, vendor.totalSupervisors), /*#__PURE__*/React__default.createElement("span", {
5393
- className: "stat-label"
5394
- }, t("SUPERVISORS") || "Supervisors")), /*#__PURE__*/React__default.createElement("div", {
5395
- className: "stat-item"
5396
- }, /*#__PURE__*/React__default.createElement("span", {
5397
- className: "stat-value"
5398
- }, vendor.totalSurveyors), /*#__PURE__*/React__default.createElement("span", {
5399
- className: "stat-label"
5400
- }, t("SURVEYORS") || "Surveyors")), /*#__PURE__*/React__default.createElement("div", {
5401
- className: "stat-item"
5402
- }, /*#__PURE__*/React__default.createElement("span", {
5403
- className: "stat-value completed-val"
5404
- }, vendor.submittedKnos), /*#__PURE__*/React__default.createElement("span", {
5405
- className: "stat-label"
5406
- }, t("COMPLETED") || "Completed"))), /*#__PURE__*/React__default.createElement("div", {
5407
- className: "knos-summary"
5408
- }, /*#__PURE__*/React__default.createElement("div", {
5409
- className: "kno-stat"
5410
- }, /*#__PURE__*/React__default.createElement("span", {
5411
- className: "kno-label"
5412
- }, t("TOTAL") || "Total"), /*#__PURE__*/React__default.createElement("strong", null, vendor.totalKnos)), /*#__PURE__*/React__default.createElement("div", {
5413
- className: "kno-stat pending"
5414
- }, /*#__PURE__*/React__default.createElement("span", {
5415
- className: "kno-label"
5416
- }, t("PENDING") || "Pending"), /*#__PURE__*/React__default.createElement("strong", null, vendor.pendingKnos)), /*#__PURE__*/React__default.createElement("div", {
5417
- className: "kno-stat rejected"
5418
- }, /*#__PURE__*/React__default.createElement("span", {
5419
- className: "kno-label"
5420
- }, t("REJECTED") || "Rejected"), /*#__PURE__*/React__default.createElement("strong", null, vendor.rejectedKnos)))))))));
4837
+ }, Array.isArray(progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.length) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.map(vendor => {
4838
+ var _vendor$vendorName, _vendor$vendorName$;
4839
+ return /*#__PURE__*/React__default.createElement("div", {
4840
+ key: vendor.vendorId,
4841
+ className: "vendor-perf-card",
4842
+ onClick: () => history.push("/digit-ui/employee/ekyc/vendors/" + vendor.vendorId)
4843
+ }, /*#__PURE__*/React__default.createElement("div", {
4844
+ className: "vendor-card-header"
4845
+ }, /*#__PURE__*/React__default.createElement("div", {
4846
+ className: "vendor-title"
4847
+ }, /*#__PURE__*/React__default.createElement("div", {
4848
+ className: "vendor-icon"
4849
+ }, /*#__PURE__*/React__default.createElement("span", null, (_vendor$vendorName = vendor.vendorName) === null || _vendor$vendorName === void 0 ? void 0 : (_vendor$vendorName$ = _vendor$vendorName[0]) === null || _vendor$vendorName$ === void 0 ? void 0 : _vendor$vendorName$.toUpperCase())), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h4", null, vendor.vendorName), /*#__PURE__*/React__default.createElement("span", {
4850
+ className: "vendor-subtitle"
4851
+ }, t("EKYC_VENDOR") || "eKYC Vendor"))), /*#__PURE__*/React__default.createElement("div", {
4852
+ className: "kno-count-badge"
4853
+ }, /*#__PURE__*/React__default.createElement("span", {
4854
+ className: "kno-count-label"
4855
+ }, t("TOTAL_KNOS") || "Total KNOs", " -"), /*#__PURE__*/React__default.createElement("span", {
4856
+ className: "kno-count-value"
4857
+ }, vendor.totalKnosInZones))), /*#__PURE__*/React__default.createElement("div", {
4858
+ className: "progress-section"
4859
+ }, /*#__PURE__*/React__default.createElement("div", {
4860
+ className: "progress-bar-container"
4861
+ }, /*#__PURE__*/React__default.createElement("div", {
4862
+ className: "progress-bar-fill",
4863
+ style: {
4864
+ width: vendor.progressPercent + "%"
4865
+ }
4866
+ })), /*#__PURE__*/React__default.createElement("div", {
4867
+ className: "progress-label"
4868
+ }, /*#__PURE__*/React__default.createElement("span", null, t("PROGRESS") || "Progress"), /*#__PURE__*/React__default.createElement("span", null, vendor.progressPercent, "%"))), /*#__PURE__*/React__default.createElement("div", {
4869
+ className: "stats-grid"
4870
+ }, /*#__PURE__*/React__default.createElement("div", {
4871
+ className: "stat-item"
4872
+ }, /*#__PURE__*/React__default.createElement("span", {
4873
+ className: "stat-value"
4874
+ }, vendor.totalSupervisors), /*#__PURE__*/React__default.createElement("span", {
4875
+ className: "stat-label"
4876
+ }, t("SUPERVISORS") || "Supervisors")), /*#__PURE__*/React__default.createElement("div", {
4877
+ className: "stat-item"
4878
+ }, /*#__PURE__*/React__default.createElement("span", {
4879
+ className: "stat-value"
4880
+ }, vendor.totalSurveyors), /*#__PURE__*/React__default.createElement("span", {
4881
+ className: "stat-label"
4882
+ }, t("SURVEYORS") || "Surveyors")), /*#__PURE__*/React__default.createElement("div", {
4883
+ className: "stat-item"
4884
+ }, /*#__PURE__*/React__default.createElement("span", {
4885
+ className: "stat-value"
4886
+ }, vendor.totalKnos), /*#__PURE__*/React__default.createElement("span", {
4887
+ className: "stat-label"
4888
+ }, t("TOTAL_KNOS") || "Total KNOs"))), /*#__PURE__*/React__default.createElement("div", {
4889
+ className: "knos-summary"
4890
+ }, /*#__PURE__*/React__default.createElement("div", {
4891
+ className: "kno-stat"
4892
+ }, /*#__PURE__*/React__default.createElement("span", {
4893
+ className: "kno-label"
4894
+ }, t("SUBMITTED") || "Submitted"), /*#__PURE__*/React__default.createElement("strong", null, vendor.submittedKnos)), /*#__PURE__*/React__default.createElement("div", {
4895
+ className: "kno-stat pending"
4896
+ }, /*#__PURE__*/React__default.createElement("span", {
4897
+ className: "kno-label"
4898
+ }, t("PENDING") || "Pending"), /*#__PURE__*/React__default.createElement("strong", null, vendor.pendingKnos)), /*#__PURE__*/React__default.createElement("div", {
4899
+ className: "kno-stat rejected"
4900
+ }, /*#__PURE__*/React__default.createElement("span", {
4901
+ className: "kno-label"
4902
+ }, t("REJECTED") || "Rejected"), /*#__PURE__*/React__default.createElement("strong", null, vendor.rejectedKnos))));
4903
+ })))));
5421
4904
  };
5422
4905
 
5423
4906
  const SupervisorDetailsCard = () => {
@@ -7377,7 +6860,8 @@ const SurveyorDetailsDashboard = () => {
7377
6860
  isPaginationRequired: true,
7378
6861
  onNextPage: () => {
7379
6862
  var _dashboardData$dashbo7;
7380
- if (currentPage < ((dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo7 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo7 === void 0 ? void 0 : _dashboardData$dashbo7.totalPages) || 1) - 1) {
6863
+ const total = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo7 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo7 === void 0 ? void 0 : _dashboardData$dashbo7.total) || 0;
6864
+ if (currentPage < Math.ceil(total / pageSize) - 1) {
7381
6865
  setCurrentPage(prev => prev + 1);
7382
6866
  }
7383
6867
  },
@@ -7391,7 +6875,8 @@ const SurveyorDetailsDashboard = () => {
7391
6875
  },
7392
6876
  onLastPage: () => {
7393
6877
  var _dashboardData$dashbo8;
7394
- setCurrentPage(Math.max(((dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo8 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo8 === void 0 ? void 0 : _dashboardData$dashbo8.totalPages) || 1) - 1, 0));
6878
+ const total = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo8 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo8 === void 0 ? void 0 : _dashboardData$dashbo8.total) || 0;
6879
+ setCurrentPage(Math.max(Math.ceil(total / pageSize) - 1, 0));
7395
6880
  },
7396
6881
  onPageSizeChange: e => {
7397
6882
  setPageSize(Number(e.target.value));