@djb25/digit-ui-module-ekyc 1.0.64 → 1.0.66
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 +82 -576
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +84 -578
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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: "#
|
|
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: "#
|
|
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: "#
|
|
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: "#
|
|
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-
|
|
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.
|
|
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$
|
|
651
|
-
isProgressLoading = _Digit$Hooks$ekyc$
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
}, [
|
|
665
|
-
return isProgressLoading
|
|
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
|
|
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$
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
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
|
-
|
|
1896
|
-
|
|
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,39 +1419,6 @@ 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
1424
|
vendorId: targetVendorId
|
|
@@ -1996,22 +1480,43 @@ const VendorDetailsCard = () => {
|
|
|
1996
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()) : [];
|
|
1997
1481
|
}, [vendor]);
|
|
1998
1482
|
const cards = React.useMemo(() => {
|
|
1483
|
+
const totalKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0;
|
|
1999
1484
|
const totalAssignments = (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) || 0;
|
|
2000
|
-
const completedKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
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;
|
|
2001
1488
|
const pendingKnos = (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) || 0;
|
|
2002
1489
|
const progressPercent = (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0;
|
|
2003
1490
|
return [{
|
|
1491
|
+
label: "TOTAL_KNOS",
|
|
1492
|
+
count: totalKnos,
|
|
1493
|
+
color: "#0B2559",
|
|
1494
|
+
type: "today",
|
|
1495
|
+
icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaDatabase, null)
|
|
1496
|
+
}, {
|
|
2004
1497
|
label: "TOTAL_EKYC_APPLICATIONS",
|
|
2005
1498
|
count: totalAssignments,
|
|
2006
1499
|
color: "#0B2559",
|
|
2007
1500
|
type: "today",
|
|
2008
|
-
icon: /*#__PURE__*/React__default.createElement(
|
|
1501
|
+
icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaFileAlt, null)
|
|
2009
1502
|
}, {
|
|
2010
1503
|
label: "EKYC_COMPLETED",
|
|
2011
1504
|
count: completedKnos,
|
|
2012
1505
|
color: "#10B981",
|
|
2013
1506
|
type: "month",
|
|
2014
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)
|
|
2015
1520
|
}, {
|
|
2016
1521
|
label: "PENDING_APPLICATIONS",
|
|
2017
1522
|
count: pendingKnos,
|
|
@@ -2259,9 +1764,9 @@ const VendorDetailsCard = () => {
|
|
|
2259
1764
|
Header: t("SUPERVISOR_NAME") || "Supervisor Name",
|
|
2260
1765
|
accessor: row => (row === null || row === void 0 ? void 0 : row.name) || "N/A",
|
|
2261
1766
|
Cell: _ref => {
|
|
2262
|
-
var _Digit$
|
|
1767
|
+
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3, _row$original;
|
|
2263
1768
|
let row = _ref.row;
|
|
2264
|
-
const userType = ((_Digit$
|
|
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";
|
|
2265
1770
|
const targetPath = "/digit-ui/" + userType + "/ekyc/supervisor-dashboard/" + row.original.id;
|
|
2266
1771
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
2267
1772
|
href: targetPath,
|
|
@@ -2558,7 +2063,7 @@ const VendorDetailsCard = () => {
|
|
|
2558
2063
|
}, zoneIds.map(zone => /*#__PURE__*/React__default.createElement("span", {
|
|
2559
2064
|
key: zone,
|
|
2560
2065
|
className: "selected-zone-chip"
|
|
2561
|
-
}, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React__default.createElement(
|
|
2066
|
+
}, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React__default.createElement("div", {
|
|
2562
2067
|
className: "dashboard-card"
|
|
2563
2068
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
2564
2069
|
t: t,
|
|
@@ -2700,7 +2205,7 @@ const useInboxTableConfig = _ref => {
|
|
|
2700
2205
|
manualPagination: true,
|
|
2701
2206
|
initSortId: "applicationDate",
|
|
2702
2207
|
onPageSizeChange: onPageSizeChange,
|
|
2703
|
-
currentPage: offset,
|
|
2208
|
+
currentPage: Math.floor(offset / limit),
|
|
2704
2209
|
onNextPage: () => {
|
|
2705
2210
|
var _formState$tableForm3;
|
|
2706
2211
|
return dispatch({
|
|
@@ -3478,12 +2983,7 @@ const Inbox = _ref2 => {
|
|
|
3478
2983
|
marginBottom: "24px"
|
|
3479
2984
|
}
|
|
3480
2985
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3481
|
-
className: "stats-wrapper"
|
|
3482
|
-
style: {
|
|
3483
|
-
display: "flex",
|
|
3484
|
-
gap: "16px",
|
|
3485
|
-
flexWrap: "wrap"
|
|
3486
|
-
}
|
|
2986
|
+
className: "stats-wrapper"
|
|
3487
2987
|
}, cards.map((card, idx) => /*#__PURE__*/React__default.createElement(StatCard, {
|
|
3488
2988
|
key: idx,
|
|
3489
2989
|
title: t(card.label),
|
|
@@ -5344,8 +4844,12 @@ const AdminDashboard = () => {
|
|
|
5344
4844
|
}, /*#__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", {
|
|
5345
4845
|
className: "vendor-subtitle"
|
|
5346
4846
|
}, t("EKYC_VENDOR") || "eKYC Vendor"))), /*#__PURE__*/React__default.createElement("div", {
|
|
5347
|
-
className: "
|
|
5348
|
-
},
|
|
4847
|
+
className: "kno-count-badge"
|
|
4848
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4849
|
+
className: "kno-count-label"
|
|
4850
|
+
}, t("TOTAL_KNOS") || "Total KNOs", " -"), /*#__PURE__*/React__default.createElement("span", {
|
|
4851
|
+
className: "kno-count-value"
|
|
4852
|
+
}, vendor.totalKnosInZones))), /*#__PURE__*/React__default.createElement("div", {
|
|
5349
4853
|
className: "progress-section"
|
|
5350
4854
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5351
4855
|
className: "progress-bar-container"
|
|
@@ -7351,7 +6855,8 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7351
6855
|
isPaginationRequired: true,
|
|
7352
6856
|
onNextPage: () => {
|
|
7353
6857
|
var _dashboardData$dashbo7;
|
|
7354
|
-
|
|
6858
|
+
const total = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo7 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo7 === void 0 ? void 0 : _dashboardData$dashbo7.total) || 0;
|
|
6859
|
+
if (currentPage < Math.ceil(total / pageSize) - 1) {
|
|
7355
6860
|
setCurrentPage(prev => prev + 1);
|
|
7356
6861
|
}
|
|
7357
6862
|
},
|
|
@@ -7365,7 +6870,8 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7365
6870
|
},
|
|
7366
6871
|
onLastPage: () => {
|
|
7367
6872
|
var _dashboardData$dashbo8;
|
|
7368
|
-
|
|
6873
|
+
const total = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo8 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo8 === void 0 ? void 0 : _dashboardData$dashbo8.total) || 0;
|
|
6874
|
+
setCurrentPage(Math.max(Math.ceil(total / pageSize) - 1, 0));
|
|
7369
6875
|
},
|
|
7370
6876
|
onPageSizeChange: e => {
|
|
7371
6877
|
setPageSize(Number(e.target.value));
|
|
@@ -9865,7 +9371,7 @@ const EkycModule = _ref => {
|
|
|
9865
9371
|
isLoading = _Digit$Services$useSt.isLoading;
|
|
9866
9372
|
Digit.SessionStorage.set("EKYC_TENANTS", tenants);
|
|
9867
9373
|
React.useEffect(() => Digit.LocalizationService.getLocale({
|
|
9868
|
-
modules: ["rainmaker-
|
|
9374
|
+
modules: ["rainmaker-" + Digit.ULBService.getCurrentTenantId()],
|
|
9869
9375
|
locale: Digit.StoreData.getCurrentLanguage(),
|
|
9870
9376
|
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
9871
9377
|
}), []);
|