@djb25/digit-ui-module-ekyc 1.0.60 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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$id7, _surv$surveyorId, _s$owner4, _s$owner4$uuid, _surv$surveyorId2;
5687
- return ((_s$id7 = s.id) === null || _s$id7 === void 0 ? void 0 : _s$id7.toLowerCase()) === ((_surv$surveyorId = surv.surveyorId) === null || _surv$surveyorId === void 0 ? void 0 : _surv$surveyorId.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()) === ((_surv$surveyorId2 = surv.surveyorId) === null || _surv$surveyorId2 === void 0 ? void 0 : _surv$surveyorId2.toLowerCase());
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: _ref => {
5789
+ Cell: _ref3 => {
5776
5790
  var _Digit$SessionStorage2, _Digit$SessionStorage3, _Digit$SessionStorage4, _row$original;
5777
- let row = _ref.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: _ref2 => {
5802
- let value = _ref2.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 = _ref3 => {
6131
- let title = _ref3.title,
6132
- value = _ref3.value,
6133
- type = _ref3.type,
6134
- isLoading = _ref3.isLoading,
6135
- icon = _ref3.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(_ref4 => {
6250
- let label = _ref4.label,
6251
- key = _ref4.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"
@@ -6403,14 +6417,6 @@ const AssignEkycModal = _ref => {
6403
6417
  const _useState7 = React.useState(filters),
6404
6418
  debouncedFilters = _useState7[0],
6405
6419
  setDebouncedFilters = _useState7[1];
6406
- const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.ZROLocation(tenantId),
6407
- zroLocationsData = _Digit$Hooks$ws$useWS.data;
6408
- const mappedZROLocation = React.useMemo(() => {
6409
- return (zroLocationsData || []).map(item => ({
6410
- code: item.code,
6411
- name: item.name
6412
- }));
6413
- }, [zroLocationsData]);
6414
6420
  const _Digit$Hooks$useCommo = Digit.Hooks.useCommonMDMS(tenantId, "egov-location", ["TenantBoundary"]),
6415
6421
  egovLocationData = _Digit$Hooks$useCommo.data;
6416
6422
  const boundaryData = React.useMemo(() => {
@@ -6423,38 +6429,6 @@ const AssignEkycModal = _ref => {
6423
6429
  const boundary = (revenueData === null || revenueData === void 0 ? void 0 : revenueData.boundary) || [];
6424
6430
  return Array.isArray(boundary) ? boundary : [boundary];
6425
6431
  }, [egovLocationData]);
6426
- const _useMemo = React.useMemo(() => {
6427
- const assemblies = new Map();
6428
- const wards = new Map();
6429
- const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
6430
- const traverse = node => {
6431
- if (!node) return;
6432
- if (node.label === "Ward" || node.label === "WARD" || node.label === "Block" || node.label === "BLOCK") {
6433
- const code = node.code || node.localname || node.name;
6434
- const name = node.name || node.localname || code;
6435
- if (code) wards.set(code, {
6436
- code,
6437
- name: name
6438
- });
6439
- }
6440
- if (node.label === "Assembly Constituency" || node.label === "ASSEMBLY_CONSTITUENCY") {
6441
- const code = node.code || node.localname || node.name;
6442
- const name = node.name || node.localname || code;
6443
- if (code) assemblies.set(code, {
6444
- code,
6445
- name: name
6446
- });
6447
- }
6448
- if (node.children && node.children.length > 0) {
6449
- node.children.forEach(traverse);
6450
- }
6451
- };
6452
- boundaries.forEach(traverse);
6453
- return {
6454
- assemblyOptions: Array.from(assemblies.values()).sort((a, b) => a.name.localeCompare(b.name)),
6455
- wardOptions: Array.from(wards.values()).sort((a, b) => a.name.localeCompare(b.name))
6456
- };
6457
- }, [boundaryData]);
6458
6432
  const structuredLocalityData = React.useMemo(() => {
6459
6433
  let localities = [];
6460
6434
  const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
@@ -6664,12 +6638,6 @@ const AssignEkycModal = _ref => {
6664
6638
  const start = currentPage * pageSize;
6665
6639
  return allData.slice(start, start + pageSize);
6666
6640
  }, [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
6641
  const handleAssign = () => {
6674
6642
  const payload = {
6675
6643
  tenantId: tenantId,
@@ -6685,22 +6653,36 @@ const AssignEkycModal = _ref => {
6685
6653
  }
6686
6654
  activeMutation.mutate(payload);
6687
6655
  };
6688
- const handleSelectAll = () => {
6689
- const currentKnos = paginatedData.map(item => item.kno);
6690
- const allSelected = currentKnos.length > 0 && currentKnos.every(kno => selectedKnos.includes(kno));
6691
- setSelectedKnos(prev => allSelected ? prev.filter(kno => !currentKnos.includes(kno)) : [...new Set([...prev, ...currentKnos])]);
6656
+ const handleSelect = kno => {
6657
+ setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
6658
+ };
6659
+ const handleSelectAll = e => {
6660
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
6661
+ const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
6662
+ if (allMatchingKnos.length === 0) return;
6663
+ const isAllSelected = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
6664
+ setSelectedKnos(isAllSelected ? [] : allMatchingKnos);
6692
6665
  };
6693
6666
  const handleFilterChange = (key, value) => {
6694
6667
  setFilters(prev => _extends({}, prev, {
6695
6668
  [key]: value
6696
6669
  }));
6670
+ setCurrentPage(0);
6697
6671
  };
6698
6672
  const columns = React.useMemo(() => [{
6699
- Header: () => /*#__PURE__*/React__default.createElement("input", {
6700
- type: "checkbox",
6701
- checked: paginatedData.length > 0 && paginatedData.every(item => selectedKnos.includes(item.kno)),
6702
- onChange: handleSelectAll
6703
- }),
6673
+ Header: () => {
6674
+ const allMatchingKnos = allData.map(item => item.kno).filter(Boolean);
6675
+ const isAllChecked = allMatchingKnos.length > 0 && allMatchingKnos.every(kno => selectedKnos.includes(kno));
6676
+ return /*#__PURE__*/React__default.createElement("input", {
6677
+ type: "checkbox",
6678
+ checked: isAllChecked,
6679
+ onChange: e => {
6680
+ e.stopPropagation();
6681
+ handleSelectAll(e);
6682
+ },
6683
+ onClick: e => e.stopPropagation()
6684
+ });
6685
+ },
6704
6686
  id: "selection",
6705
6687
  Cell: _ref2 => {
6706
6688
  let row = _ref2.row;
@@ -6708,7 +6690,11 @@ const AssignEkycModal = _ref => {
6708
6690
  return /*#__PURE__*/React__default.createElement("input", {
6709
6691
  type: "checkbox",
6710
6692
  checked: selectedKnos.includes(kno),
6711
- onChange: () => handleSelect(kno)
6693
+ onChange: e => {
6694
+ e.stopPropagation();
6695
+ handleSelect(kno);
6696
+ },
6697
+ onClick: e => e.stopPropagation()
6712
6698
  });
6713
6699
  }
6714
6700
  }, {
@@ -6743,10 +6729,7 @@ const AssignEkycModal = _ref => {
6743
6729
  className: "ekyc-status-tag " + status
6744
6730
  }, t(status)) : "-";
6745
6731
  }
6746
- }], [selectedKnos, paginatedData]);
6747
- const handleSelect = kno => {
6748
- setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
6749
- };
6732
+ }], [selectedKnos, paginatedData, allData]);
6750
6733
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
6751
6734
  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
6735
  headerBarEnd: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Close, {
@@ -6767,9 +6750,10 @@ const AssignEkycModal = _ref => {
6767
6750
  value: filters.kno,
6768
6751
  onChange: e => handleFilterChange("kno", e.target.value)
6769
6752
  }), /*#__PURE__*/React__default.createElement("select", {
6770
- className: "form-control",
6753
+ className: "form-control disabled",
6771
6754
  value: filters.pincode,
6772
- onChange: e => handleFilterChange("pincode", e.target.value)
6755
+ onChange: e => handleFilterChange("pincode", e.target.value),
6756
+ disabled: true
6773
6757
  }, /*#__PURE__*/React__default.createElement("option", {
6774
6758
  value: ""
6775
6759
  }, "Select Pincode"), pincodeOptions.map(pin => /*#__PURE__*/React__default.createElement("option", {
@@ -7262,7 +7246,6 @@ const SurveyorDetailsDashboard = () => {
7262
7246
  meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
7263
7247
  modifiedBy: t("MODIFIED_BY"),
7264
7248
  emailId: t("EMAIL_ID"),
7265
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
7266
7249
  dob: t("DOB"),
7267
7250
  consumerType: t("CONSUMER_TYPE"),
7268
7251
  createdTime: t("CREATED_TIME"),
@@ -8105,7 +8088,7 @@ const breadcrumb = (userType, listLabel, listPath, detailLabel) => [{
8105
8088
  }, {
8106
8089
  label: detailLabel
8107
8090
  }];
8108
- const getEkycRoutes = userType => [{
8091
+ const getEkycRoutes = (userType, t) => [{
8109
8092
  path: "/dashboard",
8110
8093
  component: Dashboard,
8111
8094
  layout: "normal",
@@ -8162,7 +8145,7 @@ const getEkycRoutes = userType => [{
8162
8145
  path: ["/vendors/:vendorId", "/vendors"],
8163
8146
  component: VendorDetailsCard,
8164
8147
  layout: "normal",
8165
- breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "vendors:vendorId", "EKYC_VENDOR_DETAILS")
8148
+ breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "admin-dashboard", "EKYC_VENDOR_DETAILS")
8166
8149
  }, {
8167
8150
  path: ["/supervisor-dashboard/:id", "/supervisor-dashboard"],
8168
8151
  component: SupervisorDetailsCard,