@djb25/digit-ui-module-ekyc 1.0.59 → 1.0.61
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 +156 -141
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +156 -141
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2516,9 +2516,7 @@ const VendorDetailsCard = () => {
|
|
|
2516
2516
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2517
2517
|
className: "ekyc-details-wrapper"
|
|
2518
2518
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2519
|
-
className: "details-
|
|
2520
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2521
|
-
className: "details-grid"
|
|
2519
|
+
className: "details-top-row"
|
|
2522
2520
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2523
2521
|
className: "detail-item"
|
|
2524
2522
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -2532,28 +2530,8 @@ const VendorDetailsCard = () => {
|
|
|
2532
2530
|
}, t("EMAIL")), /*#__PURE__*/React.createElement("span", {
|
|
2533
2531
|
className: "value"
|
|
2534
2532
|
}, email)), /*#__PURE__*/React.createElement("div", {
|
|
2535
|
-
className: "detail-item",
|
|
2536
|
-
style: {
|
|
2537
|
-
gridColumn: "1 / -1"
|
|
2538
|
-
}
|
|
2539
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
2540
|
-
className: "label"
|
|
2541
|
-
}, t("ASSIGNED_ZONES") || "Assigned Zones"), /*#__PURE__*/React.createElement("span", {
|
|
2542
|
-
className: "value"
|
|
2543
|
-
}, zoneIds.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
2544
|
-
className: "selected-zones",
|
|
2545
|
-
style: {
|
|
2546
|
-
marginTop: "4px",
|
|
2547
|
-
width: "100%"
|
|
2548
|
-
}
|
|
2549
|
-
}, zoneIds.map(zone => /*#__PURE__*/React.createElement("span", {
|
|
2550
|
-
key: zone,
|
|
2551
|
-
className: "selected-zone-chip"
|
|
2552
|
-
}, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React.createElement("div", {
|
|
2553
|
-
className: "details-right"
|
|
2554
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2555
2533
|
className: "download-card"
|
|
2556
|
-
}, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format."), /*#__PURE__*/React.createElement("div", {
|
|
2534
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format.")), /*#__PURE__*/React.createElement("div", {
|
|
2557
2535
|
className: "report-download",
|
|
2558
2536
|
ref: reportMenuRef
|
|
2559
2537
|
}, /*#__PURE__*/React.createElement("button", {
|
|
@@ -2637,12 +2615,31 @@ const VendorDetailsCard = () => {
|
|
|
2637
2615
|
}, t("CANCEL") || "Cancel"), /*#__PURE__*/React.createElement("button", {
|
|
2638
2616
|
className: "picker-apply-btn",
|
|
2639
2617
|
onClick: handleCustomDownload
|
|
2640
|
-
}, t("APPLY") || "Apply")))))))
|
|
2618
|
+
}, t("APPLY") || "Apply"))))))), /*#__PURE__*/React.createElement("div", {
|
|
2619
|
+
className: "full-width-item"
|
|
2620
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
2621
|
+
className: "label"
|
|
2622
|
+
}, t("ASSIGNED_ZONES") || "Assigned Zones"), /*#__PURE__*/React.createElement("span", {
|
|
2623
|
+
className: "value"
|
|
2624
|
+
}, zoneIds.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
2625
|
+
className: "selected-zones",
|
|
2626
|
+
style: {
|
|
2627
|
+
marginTop: "4px",
|
|
2628
|
+
width: "100%",
|
|
2629
|
+
display: "flex",
|
|
2630
|
+
flexWrap: "wrap",
|
|
2631
|
+
gap: "8px"
|
|
2632
|
+
}
|
|
2633
|
+
}, zoneIds.map(zone => /*#__PURE__*/React.createElement("span", {
|
|
2634
|
+
key: zone,
|
|
2635
|
+
className: "selected-zone-chip"
|
|
2636
|
+
}, t(zone) || zone))) : "N/A")))), /*#__PURE__*/React.createElement(Card, {
|
|
2641
2637
|
className: "dashboard-card"
|
|
2642
2638
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
2643
2639
|
t: t,
|
|
2644
2640
|
tableTitle: t("CONNECTED_SUPERVISORS") || "Connected Supervisors",
|
|
2645
2641
|
tableClass: "ekycTable",
|
|
2642
|
+
isTableScrollable: true,
|
|
2646
2643
|
data: paginatedSupervisors,
|
|
2647
2644
|
columns: supervisorColumns,
|
|
2648
2645
|
isLoading: isPageLoading,
|
|
@@ -2660,12 +2657,8 @@ const VendorDetailsCard = () => {
|
|
|
2660
2657
|
setCurrentPage(prev => prev - 1);
|
|
2661
2658
|
}
|
|
2662
2659
|
},
|
|
2663
|
-
onFirstPage: () =>
|
|
2664
|
-
|
|
2665
|
-
},
|
|
2666
|
-
onLastPage: () => {
|
|
2667
|
-
setCurrentPage(Math.max(Math.ceil(vendorSupervisors.length / pageSize) - 1, 0));
|
|
2668
|
-
},
|
|
2660
|
+
onFirstPage: () => setCurrentPage(0),
|
|
2661
|
+
onLastPage: () => setCurrentPage(Math.max(Math.ceil(vendorSupervisors.length / pageSize) - 1, 0)),
|
|
2669
2662
|
onPageSizeChange: e => {
|
|
2670
2663
|
setPageSize(Number(e.target.value));
|
|
2671
2664
|
setCurrentPage(0);
|
|
@@ -5629,12 +5622,12 @@ const SupervisorDetailsCard = () => {
|
|
|
5629
5622
|
});
|
|
5630
5623
|
}
|
|
5631
5624
|
if (matchedSup) {
|
|
5632
|
-
var _progressReport, _progressReport2, _progressReport3, _matchedSup$owner2, _matchedSup$owner3, _matchedSup$owner4;
|
|
5625
|
+
var _progressReport, _progressReport2, _progressReport3, _matchedSup$owner2, _matchedSup$owner3, _matchedSup$owner4, _matchedSup$owner5, _matchedSup$owner6, _matchedSup$owner7;
|
|
5633
5626
|
const matchedSurveyors = surveyorSearchResponse !== null && surveyorSearchResponse !== void 0 && surveyorSearchResponse.surveyors ? surveyorSearchResponse.surveyors.filter(surv => {
|
|
5634
5627
|
var _matchedSup$owner;
|
|
5635
5628
|
return surv.supervisorId === (matchedSup.id || ((_matchedSup$owner = matchedSup.owner) === null || _matchedSup$owner === void 0 ? void 0 : _matchedSup$owner.uuid));
|
|
5636
5629
|
}).map(surv => {
|
|
5637
|
-
var _surv$owner3, _surv$owner4, _surv$owner5, _realStats, _realStats2, _realStats3, _realStats4;
|
|
5630
|
+
var _surv$owner3, _surv$owner4, _surv$owner5, _surv$owner6, _surv$owner7, _realStats, _realStats2, _realStats3, _realStats4;
|
|
5638
5631
|
let realStats = null;
|
|
5639
5632
|
if (progressData !== null && progressData !== void 0 && progressData.supervisorReport) {
|
|
5640
5633
|
for (const report of progressData.supervisorReport) {
|
|
@@ -5654,6 +5647,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5654
5647
|
surveyorId: surv.id || ((_surv$owner3 = surv.owner) === null || _surv$owner3 === void 0 ? void 0 : _surv$owner3.uuid),
|
|
5655
5648
|
surveyorName: surv.name || ((_surv$owner4 = surv.owner) === null || _surv$owner4 === void 0 ? void 0 : _surv$owner4.name) || "N/A",
|
|
5656
5649
|
mobileNo: ((_surv$owner5 = surv.owner) === null || _surv$owner5 === void 0 ? void 0 : _surv$owner5.mobileNumber) || surv.mobileNo || "N/A",
|
|
5650
|
+
email: ((_surv$owner6 = surv.owner) === null || _surv$owner6 === void 0 ? void 0 : _surv$owner6.emailId) || "N/A",
|
|
5651
|
+
gender: ((_surv$owner7 = surv.owner) === null || _surv$owner7 === void 0 ? void 0 : _surv$owner7.gender) || "N/A",
|
|
5657
5652
|
status: surv.status || "ACTIVE",
|
|
5658
5653
|
totalKnos: ((_realStats = realStats) === null || _realStats === void 0 ? void 0 : _realStats.totalKnos) || 0,
|
|
5659
5654
|
submittedKnos: ((_realStats2 = realStats) === null || _realStats2 === void 0 ? void 0 : _realStats2.submittedKnos) || 0,
|
|
@@ -5669,6 +5664,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5669
5664
|
supervisorId: matchedSup.id || ((_matchedSup$owner2 = matchedSup.owner) === null || _matchedSup$owner2 === void 0 ? void 0 : _matchedSup$owner2.uuid),
|
|
5670
5665
|
supervisorName: matchedSup.name || ((_matchedSup$owner3 = matchedSup.owner) === null || _matchedSup$owner3 === void 0 ? void 0 : _matchedSup$owner3.name) || "N/A",
|
|
5671
5666
|
mobileNo: ((_matchedSup$owner4 = matchedSup.owner) === null || _matchedSup$owner4 === void 0 ? void 0 : _matchedSup$owner4.mobileNumber) || matchedSup.mobileNo || "N/A",
|
|
5667
|
+
email: ((_matchedSup$owner5 = matchedSup.owner) === null || _matchedSup$owner5 === void 0 ? void 0 : _matchedSup$owner5.emailId) || ((_matchedSup$owner6 = matchedSup.owner) === null || _matchedSup$owner6 === void 0 ? void 0 : _matchedSup$owner6.email) || matchedSup.email || matchedSup.emailId || "N/A",
|
|
5668
|
+
gender: ((_matchedSup$owner7 = matchedSup.owner) === null || _matchedSup$owner7 === void 0 ? void 0 : _matchedSup$owner7.gender) || matchedSup.gender || "N/A",
|
|
5672
5669
|
status: matchedSup.status || "ACTIVE",
|
|
5673
5670
|
assignedZoneId: matchedSup.assignedZoneId || "N/A",
|
|
5674
5671
|
vendorId: matchedSup.vendorId,
|
|
@@ -5680,20 +5677,28 @@ const SupervisorDetailsCard = () => {
|
|
|
5680
5677
|
};
|
|
5681
5678
|
}
|
|
5682
5679
|
if (progressReport) {
|
|
5683
|
-
var _loggedInUser$uuid;
|
|
5680
|
+
var _loggedInUser$uuid, _supervisorSearchResp, _matchedSupForFallbac, _matchedSupForFallbac2, _matchedSupForFallbac3;
|
|
5684
5681
|
const isSelf = (targetId === null || targetId === void 0 ? void 0 : targetId.toLowerCase()) === (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$uuid = loggedInUser.uuid) === null || _loggedInUser$uuid === void 0 ? void 0 : _loggedInUser$uuid.toLowerCase());
|
|
5685
5682
|
const supervisorName = isSelf ? (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || progressReport.supervisorName || "N/A" : progressReport.supervisorName || "N/A";
|
|
5686
5683
|
const mobileNo = isSelf ? (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.mobileNumber) || progressReport.mobileNo || "N/A" : progressReport.mobileNo || "N/A";
|
|
5684
|
+
const matchedSupForFallback = supervisorSearchResponse === null || supervisorSearchResponse === void 0 ? void 0 : (_supervisorSearchResp = supervisorSearchResponse.supervisors) === null || _supervisorSearchResp === void 0 ? void 0 : _supervisorSearchResp.find(s => {
|
|
5685
|
+
var _s$id7, _ref, _s$owner4, _s$owner4$uuid, _ref2;
|
|
5686
|
+
return ((_s$id7 = s.id) === null || _s$id7 === void 0 ? void 0 : _s$id7.toLowerCase()) === ((_ref = progressReport.supervisorId || progressReport.id) === null || _ref === void 0 ? void 0 : _ref.toLowerCase()) || ((_s$owner4 = s.owner) === null || _s$owner4 === void 0 ? void 0 : (_s$owner4$uuid = _s$owner4.uuid) === null || _s$owner4$uuid === void 0 ? void 0 : _s$owner4$uuid.toLowerCase()) === ((_ref2 = progressReport.supervisorId || progressReport.id) === null || _ref2 === void 0 ? void 0 : _ref2.toLowerCase());
|
|
5687
|
+
});
|
|
5688
|
+
const email = (matchedSupForFallback === null || matchedSupForFallback === void 0 ? void 0 : (_matchedSupForFallbac = matchedSupForFallback.owner) === null || _matchedSupForFallbac === void 0 ? void 0 : _matchedSupForFallbac.emailId) || (matchedSupForFallback === null || matchedSupForFallback === void 0 ? void 0 : (_matchedSupForFallbac2 = matchedSupForFallback.owner) === null || _matchedSupForFallbac2 === void 0 ? void 0 : _matchedSupForFallbac2.email) || (matchedSupForFallback === null || matchedSupForFallback === void 0 ? void 0 : matchedSupForFallback.email) || (isSelf ? loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.emailId : null) || progressReport.email || "N/A";
|
|
5689
|
+
const gender = (matchedSupForFallback === null || matchedSupForFallback === void 0 ? void 0 : (_matchedSupForFallbac3 = matchedSupForFallback.owner) === null || _matchedSupForFallbac3 === void 0 ? void 0 : _matchedSupForFallbac3.gender) || (matchedSupForFallback === null || matchedSupForFallback === void 0 ? void 0 : matchedSupForFallback.gender) || (isSelf ? loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.gender : null) || progressReport.gender || "N/A";
|
|
5687
5690
|
const surveyorsMapped = progressReport.surveyors ? progressReport.surveyors.map(surv => {
|
|
5688
|
-
var _surveyorSearchRespon, _matchedSurv$owner, _matchedSurv$owner2;
|
|
5691
|
+
var _surveyorSearchRespon, _matchedSurv$owner, _matchedSurv$owner2, _matchedSurv$owner3, _matchedSurv$owner4, _matchedSurv$owner5;
|
|
5689
5692
|
const matchedSurv = surveyorSearchResponse === null || surveyorSearchResponse === void 0 ? void 0 : (_surveyorSearchRespon = surveyorSearchResponse.surveyors) === null || _surveyorSearchRespon === void 0 ? void 0 : _surveyorSearchRespon.find(s => {
|
|
5690
|
-
var _s$
|
|
5691
|
-
return ((_s$
|
|
5693
|
+
var _s$id8, _surv$surveyorId, _s$owner5, _s$owner5$uuid, _surv$surveyorId2;
|
|
5694
|
+
return ((_s$id8 = s.id) === null || _s$id8 === void 0 ? void 0 : _s$id8.toLowerCase()) === ((_surv$surveyorId = surv.surveyorId) === null || _surv$surveyorId === void 0 ? void 0 : _surv$surveyorId.toLowerCase()) || ((_s$owner5 = s.owner) === null || _s$owner5 === void 0 ? void 0 : (_s$owner5$uuid = _s$owner5.uuid) === null || _s$owner5$uuid === void 0 ? void 0 : _s$owner5$uuid.toLowerCase()) === ((_surv$surveyorId2 = surv.surveyorId) === null || _surv$surveyorId2 === void 0 ? void 0 : _surv$surveyorId2.toLowerCase());
|
|
5692
5695
|
});
|
|
5693
5696
|
return {
|
|
5694
5697
|
surveyorId: surv.surveyorId || surv.id,
|
|
5695
5698
|
surveyorName: (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.name) || (matchedSurv === null || matchedSurv === void 0 ? void 0 : (_matchedSurv$owner = matchedSurv.owner) === null || _matchedSurv$owner === void 0 ? void 0 : _matchedSurv$owner.name) || surv.surveyorName || "N/A",
|
|
5696
5699
|
mobileNo: (matchedSurv === null || matchedSurv === void 0 ? void 0 : (_matchedSurv$owner2 = matchedSurv.owner) === null || _matchedSurv$owner2 === void 0 ? void 0 : _matchedSurv$owner2.mobileNumber) || (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.mobileNo) || surv.mobileNo || "N/A",
|
|
5700
|
+
email: (matchedSurv === null || matchedSurv === void 0 ? void 0 : (_matchedSurv$owner3 = matchedSurv.owner) === null || _matchedSurv$owner3 === void 0 ? void 0 : _matchedSurv$owner3.emailId) || (matchedSurv === null || matchedSurv === void 0 ? void 0 : (_matchedSurv$owner4 = matchedSurv.owner) === null || _matchedSurv$owner4 === void 0 ? void 0 : _matchedSurv$owner4.email) || (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.email) || surv.email || "N/A",
|
|
5701
|
+
gender: (matchedSurv === null || matchedSurv === void 0 ? void 0 : (_matchedSurv$owner5 = matchedSurv.owner) === null || _matchedSurv$owner5 === void 0 ? void 0 : _matchedSurv$owner5.gender) || (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.gender) || surv.gender || "N/A",
|
|
5697
5702
|
status: (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.status) || surv.status || "ACTIVE",
|
|
5698
5703
|
totalKnos: surv.totalKnos || 0,
|
|
5699
5704
|
submittedKnos: surv.submittedKnos || 0,
|
|
@@ -5705,6 +5710,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5705
5710
|
supervisorId: progressReport.supervisorId || progressReport.id,
|
|
5706
5711
|
supervisorName,
|
|
5707
5712
|
mobileNo,
|
|
5713
|
+
email,
|
|
5714
|
+
gender,
|
|
5708
5715
|
status: progressReport.status || "ACTIVE",
|
|
5709
5716
|
assignedZoneId: progressReport.assignedZoneId || "N/A",
|
|
5710
5717
|
vendorId: progressReport.vendorId,
|
|
@@ -5719,8 +5726,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5719
5726
|
}, [progressData, supervisorSearchResponse, surveyorSearchResponse, supervisorId, loggedInUser]);
|
|
5720
5727
|
const fullName = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.supervisorName) || "N/A";
|
|
5721
5728
|
const mobileNumber = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.mobileNo) || "N/A";
|
|
5722
|
-
const email = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.emailId) || "N/A";
|
|
5723
|
-
const gender = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.gender) || "N/A";
|
|
5729
|
+
const email = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.email) || ((supervisor === null || supervisor === void 0 ? void 0 : supervisor.supervisorId) === (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.uuid) ? loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.emailId : null) || "N/A";
|
|
5730
|
+
const gender = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.gender) || ((supervisor === null || supervisor === void 0 ? void 0 : supervisor.supervisorId) === (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.uuid) ? loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.gender : null) || "N/A";
|
|
5724
5731
|
const status = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.status) || "N/A";
|
|
5725
5732
|
const assignedZone = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.assignedZoneId) || "N/A";
|
|
5726
5733
|
const vendorName = useMemo(() => {
|
|
@@ -5776,9 +5783,9 @@ const SupervisorDetailsCard = () => {
|
|
|
5776
5783
|
const surveyorColumns = useMemo(() => [{
|
|
5777
5784
|
Header: t("SURVEYOR_NAME") || "Surveyor Name",
|
|
5778
5785
|
accessor: row => (row === null || row === void 0 ? void 0 : row.surveyorName) || "N/A",
|
|
5779
|
-
Cell:
|
|
5786
|
+
Cell: _ref3 => {
|
|
5780
5787
|
var _Digit$SessionStorage2, _Digit$SessionStorage3, _Digit$SessionStorage4, _row$original;
|
|
5781
|
-
let row =
|
|
5788
|
+
let row = _ref3.row;
|
|
5782
5789
|
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";
|
|
5783
5790
|
const targetPath = "/digit-ui/" + userType + "/ekyc/surveyor-dashboard/" + row.original.surveyorId;
|
|
5784
5791
|
return /*#__PURE__*/React.createElement("a", {
|
|
@@ -5802,8 +5809,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5802
5809
|
Header: t("STATUS") || "Status",
|
|
5803
5810
|
accessor: () => "ACTIVE",
|
|
5804
5811
|
id: "status",
|
|
5805
|
-
Cell:
|
|
5806
|
-
let value =
|
|
5812
|
+
Cell: _ref4 => {
|
|
5813
|
+
let value = _ref4.value;
|
|
5807
5814
|
return /*#__PURE__*/React.createElement("span", {
|
|
5808
5815
|
className: "status-badge verified"
|
|
5809
5816
|
}, t(value) || value);
|
|
@@ -6131,12 +6138,12 @@ const SupervisorDetailsCard = () => {
|
|
|
6131
6138
|
}
|
|
6132
6139
|
return null;
|
|
6133
6140
|
};
|
|
6134
|
-
const StatCard =
|
|
6135
|
-
let title =
|
|
6136
|
-
value =
|
|
6137
|
-
type =
|
|
6138
|
-
isLoading =
|
|
6139
|
-
icon =
|
|
6141
|
+
const StatCard = _ref5 => {
|
|
6142
|
+
let title = _ref5.title,
|
|
6143
|
+
value = _ref5.value,
|
|
6144
|
+
type = _ref5.type,
|
|
6145
|
+
isLoading = _ref5.isLoading,
|
|
6146
|
+
icon = _ref5.icon;
|
|
6140
6147
|
return /*#__PURE__*/React.createElement("div", {
|
|
6141
6148
|
className: "stat-card " + type
|
|
6142
6149
|
}, isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6196,9 +6203,7 @@ const SupervisorDetailsCard = () => {
|
|
|
6196
6203
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6197
6204
|
className: "ekyc-details-wrapper"
|
|
6198
6205
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6199
|
-
className: "details-
|
|
6200
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6201
|
-
className: "details-grid"
|
|
6206
|
+
className: "details-top-row"
|
|
6202
6207
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6203
6208
|
className: "detail-item"
|
|
6204
6209
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -6212,41 +6217,8 @@ const SupervisorDetailsCard = () => {
|
|
|
6212
6217
|
}, t("EMAIL")), /*#__PURE__*/React.createElement("span", {
|
|
6213
6218
|
className: "value"
|
|
6214
6219
|
}, email)), /*#__PURE__*/React.createElement("div", {
|
|
6215
|
-
className: "detail-item"
|
|
6216
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
6217
|
-
className: "label"
|
|
6218
|
-
}, t("GENDER")), /*#__PURE__*/React.createElement("span", {
|
|
6219
|
-
className: "value"
|
|
6220
|
-
}, gender)), /*#__PURE__*/React.createElement("div", {
|
|
6221
|
-
className: "detail-item"
|
|
6222
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
6223
|
-
className: "label"
|
|
6224
|
-
}, t("STATUS")), /*#__PURE__*/React.createElement("span", {
|
|
6225
|
-
className: "value"
|
|
6226
|
-
}, status)), /*#__PURE__*/React.createElement("div", {
|
|
6227
|
-
className: "detail-item"
|
|
6228
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
6229
|
-
className: "label"
|
|
6230
|
-
}, t("ASSIGNED_ZONE") || "Assigned Zone"), /*#__PURE__*/React.createElement("span", {
|
|
6231
|
-
className: "value"
|
|
6232
|
-
}, assignedZone && assignedZone !== "N/A" ? /*#__PURE__*/React.createElement("div", {
|
|
6233
|
-
className: "selected-zones",
|
|
6234
|
-
style: {
|
|
6235
|
-
marginTop: "4px"
|
|
6236
|
-
}
|
|
6237
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
6238
|
-
className: "selected-zone-chip"
|
|
6239
|
-
}, t(assignedZone.trim().toUpperCase()) || assignedZone)) : assignedZone)), /*#__PURE__*/React.createElement("div", {
|
|
6240
|
-
className: "detail-item"
|
|
6241
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
6242
|
-
className: "label"
|
|
6243
|
-
}, t("VENDOR_NAME") || "Vendor Name"), /*#__PURE__*/React.createElement("span", {
|
|
6244
|
-
className: "value"
|
|
6245
|
-
}, vendorName)))), /*#__PURE__*/React.createElement("div", {
|
|
6246
|
-
className: "details-right"
|
|
6247
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6248
6220
|
className: "download-card"
|
|
6249
|
-
}, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format."), /*#__PURE__*/React.createElement("div", {
|
|
6221
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format.")), /*#__PURE__*/React.createElement("div", {
|
|
6250
6222
|
className: "report-download",
|
|
6251
6223
|
ref: reportMenuRef
|
|
6252
6224
|
}, /*#__PURE__*/React.createElement("button", {
|
|
@@ -6285,9 +6257,9 @@ const SupervisorDetailsCard = () => {
|
|
|
6285
6257
|
}, {
|
|
6286
6258
|
label: t("THIS_MONTH") || "This Month",
|
|
6287
6259
|
key: "month"
|
|
6288
|
-
}].map(
|
|
6289
|
-
let label =
|
|
6290
|
-
key =
|
|
6260
|
+
}].map(_ref6 => {
|
|
6261
|
+
let label = _ref6.label,
|
|
6262
|
+
key = _ref6.key;
|
|
6291
6263
|
return /*#__PURE__*/React.createElement("div", {
|
|
6292
6264
|
key: key,
|
|
6293
6265
|
className: "menu-item",
|
|
@@ -6330,12 +6302,46 @@ const SupervisorDetailsCard = () => {
|
|
|
6330
6302
|
}, t("CANCEL") || "Cancel"), /*#__PURE__*/React.createElement("button", {
|
|
6331
6303
|
className: "picker-apply-btn",
|
|
6332
6304
|
onClick: handleCustomDownload
|
|
6333
|
-
}, t("APPLY") || "Apply")))))))
|
|
6305
|
+
}, t("APPLY") || "Apply"))))))), /*#__PURE__*/React.createElement("div", {
|
|
6306
|
+
className: "details-grid-row"
|
|
6307
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6308
|
+
className: "detail-item"
|
|
6309
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6310
|
+
className: "label"
|
|
6311
|
+
}, t("GENDER")), /*#__PURE__*/React.createElement("span", {
|
|
6312
|
+
className: "value"
|
|
6313
|
+
}, t(gender) || gender)), /*#__PURE__*/React.createElement("div", {
|
|
6314
|
+
className: "detail-item"
|
|
6315
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6316
|
+
className: "label"
|
|
6317
|
+
}, t("STATUS")), /*#__PURE__*/React.createElement("span", {
|
|
6318
|
+
className: "value"
|
|
6319
|
+
}, status)), /*#__PURE__*/React.createElement("div", {
|
|
6320
|
+
className: "detail-item"
|
|
6321
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6322
|
+
className: "label"
|
|
6323
|
+
}, t("ASSIGNED_ZONE") || "Assigned Zone"), /*#__PURE__*/React.createElement("span", {
|
|
6324
|
+
className: "value"
|
|
6325
|
+
}, assignedZone && assignedZone !== "N/A" ? /*#__PURE__*/React.createElement("div", {
|
|
6326
|
+
className: "selected-zones",
|
|
6327
|
+
style: {
|
|
6328
|
+
marginTop: "4px"
|
|
6329
|
+
}
|
|
6330
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6331
|
+
className: "selected-zone-chip"
|
|
6332
|
+
}, t(assignedZone.trim().toUpperCase()) || assignedZone)) : assignedZone)), /*#__PURE__*/React.createElement("div", {
|
|
6333
|
+
className: "detail-item"
|
|
6334
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6335
|
+
className: "label"
|
|
6336
|
+
}, t("VENDOR_NAME") || "Vendor Name"), /*#__PURE__*/React.createElement("span", {
|
|
6337
|
+
className: "value"
|
|
6338
|
+
}, vendorName))))), /*#__PURE__*/React.createElement(Card, {
|
|
6334
6339
|
className: "dashboard-card"
|
|
6335
6340
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
6336
6341
|
t: t,
|
|
6337
6342
|
tableTitle: t("CONNECTED_SURVEYORS") || "Connected Surveyors",
|
|
6338
6343
|
tableClass: "ekycTable",
|
|
6344
|
+
isTableScrollable: true,
|
|
6339
6345
|
data: paginatedSurveyors,
|
|
6340
6346
|
columns: surveyorColumns,
|
|
6341
6347
|
isLoading: isProgressLoading,
|
|
@@ -6669,12 +6675,6 @@ const AssignEkycModal = _ref => {
|
|
|
6669
6675
|
const start = currentPage * pageSize;
|
|
6670
6676
|
return allData.slice(start, start + pageSize);
|
|
6671
6677
|
}, [allData, currentPage, pageSize]);
|
|
6672
|
-
useEffect(() => {
|
|
6673
|
-
if (filters.mrkey && (allData === null || allData === void 0 ? void 0 : allData.length) > 0) {
|
|
6674
|
-
const mrKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6675
|
-
setSelectedKnos(mrKnos);
|
|
6676
|
-
}
|
|
6677
|
-
}, [filters.mrkey, allData]);
|
|
6678
6678
|
const handleAssign = () => {
|
|
6679
6679
|
const payload = {
|
|
6680
6680
|
tenantId: tenantId,
|
|
@@ -6690,22 +6690,36 @@ const AssignEkycModal = _ref => {
|
|
|
6690
6690
|
}
|
|
6691
6691
|
activeMutation.mutate(payload);
|
|
6692
6692
|
};
|
|
6693
|
-
const
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6693
|
+
const handleSelect = kno => {
|
|
6694
|
+
setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
|
|
6695
|
+
};
|
|
6696
|
+
const handleSelectAll = e => {
|
|
6697
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
6698
|
+
const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6699
|
+
if (allMatchingKnos.length === 0) return;
|
|
6700
|
+
const isAllSelected = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
|
|
6701
|
+
setSelectedKnos(isAllSelected ? [] : allMatchingKnos);
|
|
6697
6702
|
};
|
|
6698
6703
|
const handleFilterChange = (key, value) => {
|
|
6699
6704
|
setFilters(prev => _extends({}, prev, {
|
|
6700
6705
|
[key]: value
|
|
6701
6706
|
}));
|
|
6707
|
+
setCurrentPage(0);
|
|
6702
6708
|
};
|
|
6703
6709
|
const columns = useMemo(() => [{
|
|
6704
|
-
Header: () =>
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6710
|
+
Header: () => {
|
|
6711
|
+
const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6712
|
+
const isAllChecked = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
|
|
6713
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
6714
|
+
type: "checkbox",
|
|
6715
|
+
checked: isAllChecked,
|
|
6716
|
+
onChange: e => {
|
|
6717
|
+
e.stopPropagation();
|
|
6718
|
+
handleSelectAll(e);
|
|
6719
|
+
},
|
|
6720
|
+
onClick: e => e.stopPropagation()
|
|
6721
|
+
});
|
|
6722
|
+
},
|
|
6709
6723
|
id: "selection",
|
|
6710
6724
|
Cell: _ref2 => {
|
|
6711
6725
|
let row = _ref2.row;
|
|
@@ -6713,7 +6727,11 @@ const AssignEkycModal = _ref => {
|
|
|
6713
6727
|
return /*#__PURE__*/React.createElement("input", {
|
|
6714
6728
|
type: "checkbox",
|
|
6715
6729
|
checked: selectedKnos.includes(kno),
|
|
6716
|
-
onChange:
|
|
6730
|
+
onChange: e => {
|
|
6731
|
+
e.stopPropagation();
|
|
6732
|
+
handleSelect(kno);
|
|
6733
|
+
},
|
|
6734
|
+
onClick: e => e.stopPropagation()
|
|
6717
6735
|
});
|
|
6718
6736
|
}
|
|
6719
6737
|
}, {
|
|
@@ -6748,10 +6766,7 @@ const AssignEkycModal = _ref => {
|
|
|
6748
6766
|
className: "ekyc-status-tag " + status
|
|
6749
6767
|
}, t(status)) : "-";
|
|
6750
6768
|
}
|
|
6751
|
-
}], [selectedKnos, paginatedData]);
|
|
6752
|
-
const handleSelect = kno => {
|
|
6753
|
-
setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
|
|
6754
|
-
};
|
|
6769
|
+
}], [selectedKnos, paginatedData, allData]);
|
|
6755
6770
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
6756
6771
|
headerBarMain: isReassign ? "Reassign KNOs to " + (surveyor === null || surveyor === void 0 ? void 0 : surveyor.name) : "Assign KNOs to " + (surveyor === null || surveyor === void 0 ? void 0 : surveyor.name),
|
|
6757
6772
|
headerBarEnd: /*#__PURE__*/React.createElement(Close, {
|
|
@@ -6796,6 +6811,7 @@ const AssignEkycModal = _ref => {
|
|
|
6796
6811
|
}, t("EKYC_CLEAR_SELECTION") || "Clear Selected")), /*#__PURE__*/React.createElement(Table, {
|
|
6797
6812
|
tableTitle: "eKYC Applications",
|
|
6798
6813
|
tableClass: "ekycTable",
|
|
6814
|
+
isTableScrollable: true,
|
|
6799
6815
|
data: paginatedData,
|
|
6800
6816
|
columns: columns,
|
|
6801
6817
|
isLoading: isLoading,
|
|
@@ -7380,9 +7396,7 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7380
7396
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7381
7397
|
className: "ekyc-details-wrapper"
|
|
7382
7398
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7383
|
-
className: "details-
|
|
7384
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7385
|
-
className: "details-grid"
|
|
7399
|
+
className: "details-top-row"
|
|
7386
7400
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7387
7401
|
className: "detail-item"
|
|
7388
7402
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -7396,34 +7410,8 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7396
7410
|
}, t("EMAIL")), /*#__PURE__*/React.createElement("span", {
|
|
7397
7411
|
className: "value"
|
|
7398
7412
|
}, (surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner8 = surveyor.owner) === null || _surveyor$owner8 === void 0 ? void 0 : _surveyor$owner8.emailId) || "N/A")), /*#__PURE__*/React.createElement("div", {
|
|
7399
|
-
className: "detail-item"
|
|
7400
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
7401
|
-
className: "label"
|
|
7402
|
-
}, t("GENDER")), /*#__PURE__*/React.createElement("span", {
|
|
7403
|
-
className: "value"
|
|
7404
|
-
}, (surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner9 = surveyor.owner) === null || _surveyor$owner9 === void 0 ? void 0 : _surveyor$owner9.gender) || "N/A")), /*#__PURE__*/React.createElement("div", {
|
|
7405
|
-
className: "detail-item"
|
|
7406
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
7407
|
-
className: "label"
|
|
7408
|
-
}, t("STATUS")), /*#__PURE__*/React.createElement("span", {
|
|
7409
|
-
className: "value"
|
|
7410
|
-
}, (surveyor === null || surveyor === void 0 ? void 0 : surveyor.status) || "N/A")), /*#__PURE__*/React.createElement("div", {
|
|
7411
|
-
className: "detail-item"
|
|
7412
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
7413
|
-
className: "label"
|
|
7414
|
-
}, t("VENDOR_NAME") || "Vendor Name"), /*#__PURE__*/React.createElement("span", {
|
|
7415
|
-
className: "value"
|
|
7416
|
-
}, vendorName)), /*#__PURE__*/React.createElement("div", {
|
|
7417
|
-
className: "detail-item"
|
|
7418
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
7419
|
-
className: "label"
|
|
7420
|
-
}, t("SUPERVISOR_NAME") || "Supervisor Name"), /*#__PURE__*/React.createElement("span", {
|
|
7421
|
-
className: "value"
|
|
7422
|
-
}, supervisorName)))), /*#__PURE__*/React.createElement("div", {
|
|
7423
|
-
className: "details-right"
|
|
7424
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7425
7413
|
className: "download-card"
|
|
7426
|
-
}, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format."), /*#__PURE__*/React.createElement("div", {
|
|
7414
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h4", null, t("DOWNLOAD_EKYC_DATA") || "Download eKYC Data"), /*#__PURE__*/React.createElement("p", null, t("DOWNLOAD_EKYC_DATA_DESC") || "Export the complete eKYC verification records for your assigned jurisdiction into Excel format.")), /*#__PURE__*/React.createElement("div", {
|
|
7427
7415
|
className: "report-download",
|
|
7428
7416
|
ref: reportMenuRef
|
|
7429
7417
|
}, /*#__PURE__*/React.createElement("button", {
|
|
@@ -7507,12 +7495,39 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7507
7495
|
}, t("CANCEL") || "Cancel"), /*#__PURE__*/React.createElement("button", {
|
|
7508
7496
|
className: "picker-apply-btn",
|
|
7509
7497
|
onClick: handleCustomDownload
|
|
7510
|
-
}, t("APPLY") || "Apply")))))))
|
|
7498
|
+
}, t("APPLY") || "Apply"))))))), /*#__PURE__*/React.createElement("div", {
|
|
7499
|
+
className: "details-grid-row"
|
|
7500
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7501
|
+
className: "detail-item"
|
|
7502
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7503
|
+
className: "label"
|
|
7504
|
+
}, t("GENDER")), /*#__PURE__*/React.createElement("span", {
|
|
7505
|
+
className: "value"
|
|
7506
|
+
}, (surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner9 = surveyor.owner) === null || _surveyor$owner9 === void 0 ? void 0 : _surveyor$owner9.gender) || "N/A")), /*#__PURE__*/React.createElement("div", {
|
|
7507
|
+
className: "detail-item"
|
|
7508
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7509
|
+
className: "label"
|
|
7510
|
+
}, t("STATUS")), /*#__PURE__*/React.createElement("span", {
|
|
7511
|
+
className: "value"
|
|
7512
|
+
}, (surveyor === null || surveyor === void 0 ? void 0 : surveyor.status) || "N/A")), /*#__PURE__*/React.createElement("div", {
|
|
7513
|
+
className: "detail-item"
|
|
7514
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7515
|
+
className: "label"
|
|
7516
|
+
}, t("VENDOR_NAME") || "Vendor Name"), /*#__PURE__*/React.createElement("span", {
|
|
7517
|
+
className: "value"
|
|
7518
|
+
}, vendorName)), /*#__PURE__*/React.createElement("div", {
|
|
7519
|
+
className: "detail-item"
|
|
7520
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7521
|
+
className: "label"
|
|
7522
|
+
}, t("SUPERVISOR_NAME") || "Supervisor Name"), /*#__PURE__*/React.createElement("span", {
|
|
7523
|
+
className: "value"
|
|
7524
|
+
}, supervisorName))))), /*#__PURE__*/React.createElement(Card, {
|
|
7511
7525
|
className: "dashboard-card"
|
|
7512
7526
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
7513
7527
|
t: t,
|
|
7514
7528
|
tableTitle: t("ASSIGNED_KNOS"),
|
|
7515
7529
|
tableClass: "ekycTable",
|
|
7530
|
+
isTableScrollable: true,
|
|
7516
7531
|
data: (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo5 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo5 === void 0 ? void 0 : _dashboardData$dashbo5.consumerList) || [],
|
|
7517
7532
|
columns: knoColumns,
|
|
7518
7533
|
isLoading: isDashboardLoading,
|