@djb25/digit-ui-module-ekyc 1.0.60 → 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 +65 -42
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +65 -42
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5625,12 +5625,12 @@ const SupervisorDetailsCard = () => {
|
|
|
5625
5625
|
});
|
|
5626
5626
|
}
|
|
5627
5627
|
if (matchedSup) {
|
|
5628
|
-
var _progressReport, _progressReport2, _progressReport3, _matchedSup$owner2, _matchedSup$owner3, _matchedSup$owner4;
|
|
5628
|
+
var _progressReport, _progressReport2, _progressReport3, _matchedSup$owner2, _matchedSup$owner3, _matchedSup$owner4, _matchedSup$owner5, _matchedSup$owner6, _matchedSup$owner7;
|
|
5629
5629
|
const matchedSurveyors = surveyorSearchResponse !== null && surveyorSearchResponse !== void 0 && surveyorSearchResponse.surveyors ? surveyorSearchResponse.surveyors.filter(surv => {
|
|
5630
5630
|
var _matchedSup$owner;
|
|
5631
5631
|
return surv.supervisorId === (matchedSup.id || ((_matchedSup$owner = matchedSup.owner) === null || _matchedSup$owner === void 0 ? void 0 : _matchedSup$owner.uuid));
|
|
5632
5632
|
}).map(surv => {
|
|
5633
|
-
var _surv$owner3, _surv$owner4, _surv$owner5, _realStats, _realStats2, _realStats3, _realStats4;
|
|
5633
|
+
var _surv$owner3, _surv$owner4, _surv$owner5, _surv$owner6, _surv$owner7, _realStats, _realStats2, _realStats3, _realStats4;
|
|
5634
5634
|
let realStats = null;
|
|
5635
5635
|
if (progressData !== null && progressData !== void 0 && progressData.supervisorReport) {
|
|
5636
5636
|
for (const report of progressData.supervisorReport) {
|
|
@@ -5650,6 +5650,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5650
5650
|
surveyorId: surv.id || ((_surv$owner3 = surv.owner) === null || _surv$owner3 === void 0 ? void 0 : _surv$owner3.uuid),
|
|
5651
5651
|
surveyorName: surv.name || ((_surv$owner4 = surv.owner) === null || _surv$owner4 === void 0 ? void 0 : _surv$owner4.name) || "N/A",
|
|
5652
5652
|
mobileNo: ((_surv$owner5 = surv.owner) === null || _surv$owner5 === void 0 ? void 0 : _surv$owner5.mobileNumber) || surv.mobileNo || "N/A",
|
|
5653
|
+
email: ((_surv$owner6 = surv.owner) === null || _surv$owner6 === void 0 ? void 0 : _surv$owner6.emailId) || "N/A",
|
|
5654
|
+
gender: ((_surv$owner7 = surv.owner) === null || _surv$owner7 === void 0 ? void 0 : _surv$owner7.gender) || "N/A",
|
|
5653
5655
|
status: surv.status || "ACTIVE",
|
|
5654
5656
|
totalKnos: ((_realStats = realStats) === null || _realStats === void 0 ? void 0 : _realStats.totalKnos) || 0,
|
|
5655
5657
|
submittedKnos: ((_realStats2 = realStats) === null || _realStats2 === void 0 ? void 0 : _realStats2.submittedKnos) || 0,
|
|
@@ -5665,6 +5667,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5665
5667
|
supervisorId: matchedSup.id || ((_matchedSup$owner2 = matchedSup.owner) === null || _matchedSup$owner2 === void 0 ? void 0 : _matchedSup$owner2.uuid),
|
|
5666
5668
|
supervisorName: matchedSup.name || ((_matchedSup$owner3 = matchedSup.owner) === null || _matchedSup$owner3 === void 0 ? void 0 : _matchedSup$owner3.name) || "N/A",
|
|
5667
5669
|
mobileNo: ((_matchedSup$owner4 = matchedSup.owner) === null || _matchedSup$owner4 === void 0 ? void 0 : _matchedSup$owner4.mobileNumber) || matchedSup.mobileNo || "N/A",
|
|
5670
|
+
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",
|
|
5671
|
+
gender: ((_matchedSup$owner7 = matchedSup.owner) === null || _matchedSup$owner7 === void 0 ? void 0 : _matchedSup$owner7.gender) || matchedSup.gender || "N/A",
|
|
5668
5672
|
status: matchedSup.status || "ACTIVE",
|
|
5669
5673
|
assignedZoneId: matchedSup.assignedZoneId || "N/A",
|
|
5670
5674
|
vendorId: matchedSup.vendorId,
|
|
@@ -5676,20 +5680,28 @@ const SupervisorDetailsCard = () => {
|
|
|
5676
5680
|
};
|
|
5677
5681
|
}
|
|
5678
5682
|
if (progressReport) {
|
|
5679
|
-
var _loggedInUser$uuid;
|
|
5683
|
+
var _loggedInUser$uuid, _supervisorSearchResp, _matchedSupForFallbac, _matchedSupForFallbac2, _matchedSupForFallbac3;
|
|
5680
5684
|
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());
|
|
5681
5685
|
const supervisorName = isSelf ? (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || progressReport.supervisorName || "N/A" : progressReport.supervisorName || "N/A";
|
|
5682
5686
|
const mobileNo = isSelf ? (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.mobileNumber) || progressReport.mobileNo || "N/A" : progressReport.mobileNo || "N/A";
|
|
5687
|
+
const matchedSupForFallback = supervisorSearchResponse === null || supervisorSearchResponse === void 0 ? void 0 : (_supervisorSearchResp = supervisorSearchResponse.supervisors) === null || _supervisorSearchResp === void 0 ? void 0 : _supervisorSearchResp.find(s => {
|
|
5688
|
+
var _s$id7, _ref, _s$owner4, _s$owner4$uuid, _ref2;
|
|
5689
|
+
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());
|
|
5690
|
+
});
|
|
5691
|
+
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";
|
|
5692
|
+
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";
|
|
5683
5693
|
const surveyorsMapped = progressReport.surveyors ? progressReport.surveyors.map(surv => {
|
|
5684
|
-
var _surveyorSearchRespon, _matchedSurv$owner, _matchedSurv$owner2;
|
|
5694
|
+
var _surveyorSearchRespon, _matchedSurv$owner, _matchedSurv$owner2, _matchedSurv$owner3, _matchedSurv$owner4, _matchedSurv$owner5;
|
|
5685
5695
|
const matchedSurv = surveyorSearchResponse === null || surveyorSearchResponse === void 0 ? void 0 : (_surveyorSearchRespon = surveyorSearchResponse.surveyors) === null || _surveyorSearchRespon === void 0 ? void 0 : _surveyorSearchRespon.find(s => {
|
|
5686
|
-
var _s$
|
|
5687
|
-
return ((_s$
|
|
5696
|
+
var _s$id8, _surv$surveyorId, _s$owner5, _s$owner5$uuid, _surv$surveyorId2;
|
|
5697
|
+
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());
|
|
5688
5698
|
});
|
|
5689
5699
|
return {
|
|
5690
5700
|
surveyorId: surv.surveyorId || surv.id,
|
|
5691
5701
|
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",
|
|
5692
5702
|
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",
|
|
5703
|
+
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",
|
|
5704
|
+
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",
|
|
5693
5705
|
status: (matchedSurv === null || matchedSurv === void 0 ? void 0 : matchedSurv.status) || surv.status || "ACTIVE",
|
|
5694
5706
|
totalKnos: surv.totalKnos || 0,
|
|
5695
5707
|
submittedKnos: surv.submittedKnos || 0,
|
|
@@ -5701,6 +5713,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5701
5713
|
supervisorId: progressReport.supervisorId || progressReport.id,
|
|
5702
5714
|
supervisorName,
|
|
5703
5715
|
mobileNo,
|
|
5716
|
+
email,
|
|
5717
|
+
gender,
|
|
5704
5718
|
status: progressReport.status || "ACTIVE",
|
|
5705
5719
|
assignedZoneId: progressReport.assignedZoneId || "N/A",
|
|
5706
5720
|
vendorId: progressReport.vendorId,
|
|
@@ -5715,8 +5729,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5715
5729
|
}, [progressData, supervisorSearchResponse, surveyorSearchResponse, supervisorId, loggedInUser]);
|
|
5716
5730
|
const fullName = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.supervisorName) || "N/A";
|
|
5717
5731
|
const mobileNumber = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.mobileNo) || "N/A";
|
|
5718
|
-
const email = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.emailId) || "N/A";
|
|
5719
|
-
const gender = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.gender) || "N/A";
|
|
5732
|
+
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";
|
|
5733
|
+
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";
|
|
5720
5734
|
const status = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.status) || "N/A";
|
|
5721
5735
|
const assignedZone = (supervisor === null || supervisor === void 0 ? void 0 : supervisor.assignedZoneId) || "N/A";
|
|
5722
5736
|
const vendorName = React.useMemo(() => {
|
|
@@ -5772,9 +5786,9 @@ const SupervisorDetailsCard = () => {
|
|
|
5772
5786
|
const surveyorColumns = React.useMemo(() => [{
|
|
5773
5787
|
Header: t("SURVEYOR_NAME") || "Surveyor Name",
|
|
5774
5788
|
accessor: row => (row === null || row === void 0 ? void 0 : row.surveyorName) || "N/A",
|
|
5775
|
-
Cell:
|
|
5789
|
+
Cell: _ref3 => {
|
|
5776
5790
|
var _Digit$SessionStorage2, _Digit$SessionStorage3, _Digit$SessionStorage4, _row$original;
|
|
5777
|
-
let row =
|
|
5791
|
+
let row = _ref3.row;
|
|
5778
5792
|
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";
|
|
5779
5793
|
const targetPath = "/digit-ui/" + userType + "/ekyc/surveyor-dashboard/" + row.original.surveyorId;
|
|
5780
5794
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -5798,8 +5812,8 @@ const SupervisorDetailsCard = () => {
|
|
|
5798
5812
|
Header: t("STATUS") || "Status",
|
|
5799
5813
|
accessor: () => "ACTIVE",
|
|
5800
5814
|
id: "status",
|
|
5801
|
-
Cell:
|
|
5802
|
-
let value =
|
|
5815
|
+
Cell: _ref4 => {
|
|
5816
|
+
let value = _ref4.value;
|
|
5803
5817
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
5804
5818
|
className: "status-badge verified"
|
|
5805
5819
|
}, t(value) || value);
|
|
@@ -6127,12 +6141,12 @@ const SupervisorDetailsCard = () => {
|
|
|
6127
6141
|
}
|
|
6128
6142
|
return null;
|
|
6129
6143
|
};
|
|
6130
|
-
const StatCard =
|
|
6131
|
-
let title =
|
|
6132
|
-
value =
|
|
6133
|
-
type =
|
|
6134
|
-
isLoading =
|
|
6135
|
-
icon =
|
|
6144
|
+
const StatCard = _ref5 => {
|
|
6145
|
+
let title = _ref5.title,
|
|
6146
|
+
value = _ref5.value,
|
|
6147
|
+
type = _ref5.type,
|
|
6148
|
+
isLoading = _ref5.isLoading,
|
|
6149
|
+
icon = _ref5.icon;
|
|
6136
6150
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6137
6151
|
className: "stat-card " + type
|
|
6138
6152
|
}, isLoading ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -6246,9 +6260,9 @@ const SupervisorDetailsCard = () => {
|
|
|
6246
6260
|
}, {
|
|
6247
6261
|
label: t("THIS_MONTH") || "This Month",
|
|
6248
6262
|
key: "month"
|
|
6249
|
-
}].map(
|
|
6250
|
-
let label =
|
|
6251
|
-
key =
|
|
6263
|
+
}].map(_ref6 => {
|
|
6264
|
+
let label = _ref6.label,
|
|
6265
|
+
key = _ref6.key;
|
|
6252
6266
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6253
6267
|
key: key,
|
|
6254
6268
|
className: "menu-item",
|
|
@@ -6299,7 +6313,7 @@ const SupervisorDetailsCard = () => {
|
|
|
6299
6313
|
className: "label"
|
|
6300
6314
|
}, t("GENDER")), /*#__PURE__*/React__default.createElement("span", {
|
|
6301
6315
|
className: "value"
|
|
6302
|
-
}, gender)), /*#__PURE__*/React__default.createElement("div", {
|
|
6316
|
+
}, t(gender) || gender)), /*#__PURE__*/React__default.createElement("div", {
|
|
6303
6317
|
className: "detail-item"
|
|
6304
6318
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
6305
6319
|
className: "label"
|
|
@@ -6664,12 +6678,6 @@ const AssignEkycModal = _ref => {
|
|
|
6664
6678
|
const start = currentPage * pageSize;
|
|
6665
6679
|
return allData.slice(start, start + pageSize);
|
|
6666
6680
|
}, [allData, currentPage, pageSize]);
|
|
6667
|
-
React.useEffect(() => {
|
|
6668
|
-
if (filters.mrkey && (allData === null || allData === void 0 ? void 0 : allData.length) > 0) {
|
|
6669
|
-
const mrKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6670
|
-
setSelectedKnos(mrKnos);
|
|
6671
|
-
}
|
|
6672
|
-
}, [filters.mrkey, allData]);
|
|
6673
6681
|
const handleAssign = () => {
|
|
6674
6682
|
const payload = {
|
|
6675
6683
|
tenantId: tenantId,
|
|
@@ -6685,22 +6693,36 @@ const AssignEkycModal = _ref => {
|
|
|
6685
6693
|
}
|
|
6686
6694
|
activeMutation.mutate(payload);
|
|
6687
6695
|
};
|
|
6688
|
-
const
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6696
|
+
const handleSelect = kno => {
|
|
6697
|
+
setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
|
|
6698
|
+
};
|
|
6699
|
+
const handleSelectAll = e => {
|
|
6700
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
6701
|
+
const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6702
|
+
if (allMatchingKnos.length === 0) return;
|
|
6703
|
+
const isAllSelected = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
|
|
6704
|
+
setSelectedKnos(isAllSelected ? [] : allMatchingKnos);
|
|
6692
6705
|
};
|
|
6693
6706
|
const handleFilterChange = (key, value) => {
|
|
6694
6707
|
setFilters(prev => _extends({}, prev, {
|
|
6695
6708
|
[key]: value
|
|
6696
6709
|
}));
|
|
6710
|
+
setCurrentPage(0);
|
|
6697
6711
|
};
|
|
6698
6712
|
const columns = React.useMemo(() => [{
|
|
6699
|
-
Header: () =>
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6713
|
+
Header: () => {
|
|
6714
|
+
const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
|
|
6715
|
+
const isAllChecked = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
|
|
6716
|
+
return /*#__PURE__*/React__default.createElement("input", {
|
|
6717
|
+
type: "checkbox",
|
|
6718
|
+
checked: isAllChecked,
|
|
6719
|
+
onChange: e => {
|
|
6720
|
+
e.stopPropagation();
|
|
6721
|
+
handleSelectAll(e);
|
|
6722
|
+
},
|
|
6723
|
+
onClick: e => e.stopPropagation()
|
|
6724
|
+
});
|
|
6725
|
+
},
|
|
6704
6726
|
id: "selection",
|
|
6705
6727
|
Cell: _ref2 => {
|
|
6706
6728
|
let row = _ref2.row;
|
|
@@ -6708,7 +6730,11 @@ const AssignEkycModal = _ref => {
|
|
|
6708
6730
|
return /*#__PURE__*/React__default.createElement("input", {
|
|
6709
6731
|
type: "checkbox",
|
|
6710
6732
|
checked: selectedKnos.includes(kno),
|
|
6711
|
-
onChange:
|
|
6733
|
+
onChange: e => {
|
|
6734
|
+
e.stopPropagation();
|
|
6735
|
+
handleSelect(kno);
|
|
6736
|
+
},
|
|
6737
|
+
onClick: e => e.stopPropagation()
|
|
6712
6738
|
});
|
|
6713
6739
|
}
|
|
6714
6740
|
}, {
|
|
@@ -6743,10 +6769,7 @@ const AssignEkycModal = _ref => {
|
|
|
6743
6769
|
className: "ekyc-status-tag " + status
|
|
6744
6770
|
}, t(status)) : "-";
|
|
6745
6771
|
}
|
|
6746
|
-
}], [selectedKnos, paginatedData]);
|
|
6747
|
-
const handleSelect = kno => {
|
|
6748
|
-
setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
|
|
6749
|
-
};
|
|
6772
|
+
}], [selectedKnos, paginatedData, allData]);
|
|
6750
6773
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
6751
6774
|
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),
|
|
6752
6775
|
headerBarEnd: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Close, {
|