@djb25/digit-ui-module-ekyc 1.0.52 → 1.0.54

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.
@@ -96,6 +96,25 @@ const EKYCCard = () => {
96
96
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
97
97
  };
98
98
 
99
+ function _extends() {
100
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
101
+ for (var e = 1; e < arguments.length; e++) {
102
+ var t = arguments[e];
103
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
104
+ }
105
+ return n;
106
+ }, _extends.apply(null, arguments);
107
+ }
108
+ function _objectWithoutPropertiesLoose(r, e) {
109
+ if (null == r) return {};
110
+ var t = {};
111
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
112
+ if (-1 !== e.indexOf(n)) continue;
113
+ t[n] = r[n];
114
+ }
115
+ return t;
116
+ }
117
+
99
118
  const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
100
119
  const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
101
120
  function _catch(body, recover) {
@@ -133,6 +152,29 @@ const StatusCards = _ref => {
133
152
  const _useState = useState(false),
134
153
  ekycDownloadLoading = _useState[0],
135
154
  setEkycDownloadLoading = _useState[1];
155
+ const _useState2 = useState(false),
156
+ showReportMenu = _useState2[0],
157
+ setShowReportMenu = _useState2[1];
158
+ const _useState3 = useState({
159
+ from: "",
160
+ to: ""
161
+ }),
162
+ customDate = _useState3[0],
163
+ setCustomDate = _useState3[1];
164
+ const _useState4 = useState(false),
165
+ showCustomPicker = _useState4[0],
166
+ setShowCustomPicker = _useState4[1];
167
+ const reportMenuRef = useRef(null);
168
+ useEffect(() => {
169
+ const handler = e => {
170
+ if (reportMenuRef.current && !reportMenuRef.current.contains(e.target)) {
171
+ setShowReportMenu(false);
172
+ setShowCustomPicker(false);
173
+ }
174
+ };
175
+ document.addEventListener("mousedown", handler);
176
+ return () => document.removeEventListener("mousedown", handler);
177
+ }, []);
136
178
  let tenantId = Digit.ULBService.getCurrentTenantId();
137
179
  if (!tenantId || tenantId === "dl") {
138
180
  tenantId = "dl.djb";
@@ -161,50 +203,149 @@ const StatusCards = _ref => {
161
203
  active: info.active || 0
162
204
  };
163
205
  }, [dashboardData]);
164
- const handleDownloadEkycData = function () {
206
+ const handleDownloadEkycData = function (fromDate, toDate) {
165
207
  try {
166
208
  setEkycDownloadLoading(true);
167
209
  return Promise.resolve(_finallyRethrows(function () {
168
210
  return _catch(function () {
169
- return Promise.resolve(Digit.EkycService.application_list({
211
+ return Promise.resolve(Digit.EkycService.application_list(_extends({
170
212
  tenantId: tenantId,
171
213
  offset: 0,
172
214
  limit: 10000,
173
215
  reportDownload: true
174
- })).then(function (response) {
216
+ }, fromDate && {
217
+ fromDate
218
+ }, toDate && {
219
+ toDate
220
+ }))).then(function (response) {
175
221
  const consumerList = (response === null || response === void 0 ? void 0 : response.consumerList) || [];
176
222
  if (consumerList.length === 0) {
177
223
  alert(t("NO_DATA_FOUND") || "No data found for download.");
178
224
  return;
179
225
  }
180
- const excludedKeys = ["status", "source", "submittedAt", "assignedAt", "connectionType", "approvedAt", "alternateMobileNo", "city", "state", "addressType", "addressProofType", "mrcode", "areacode", "verificationStatus", "surveyorId", "supervisorId", "vendorId", "assignmentType", "assignmentValue", "assignedTime", "isSelfAssigned", "userType", "tenantName", "tenantMobile"];
226
+ const excludedKeys = ["status", "source", "submittedAt", "assignedAt", "connectionType", "approvedAt", "alternateMobileNo", "city", "state", "addressType", "addressProofType", "mrcode", "areacode", "verificationStatus", "surveyorId", "supervisorId", "vendorId", "assignmentType", "assignmentValue", "assignedTime", "isSelfAssigned", "userType", "tenantName", "tenantMobile", "doorPhotoFilestoreId", "panFilestoreId", "documentProofFilestoreId", "buildingImageFileStoreId", "propertyDocumentFileStoreId", "meterPhotoFileStoreId", "modifiedBy", "zoneCode", "propertyType", "subPropertyCategory"];
181
227
  const headerMapping = {
182
- kno: t("KNO") || "KNO",
183
- firstName: t("FIRST_NAME") || "First Name",
184
- middleName: t("MIDDLE_NAME") || "Middle Name",
185
- lastName: t("LAST_NAME") || "Last Name",
186
- gender: t("GENDER") || "Gender",
187
- mobileNumber: t("MOBILE_NUMBER") || "Mobile Number",
188
- emailId: t("EMAIL_ID") || "Email ID",
189
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME") || "Father/Husband Name",
190
- relationship: t("RELATIONSHIP") || "Relationship",
191
- dob: t("DOB") || "Date of Birth",
192
- ekycStatus: t("EKYC_STATUS") || "eKYC Status",
193
- zoneName: t("ZONE") || "Zone",
194
- assembly: t("ASSEMBLY") || "Assembly",
195
- ward: t("WARD") || "Ward",
196
- pincode: t("PINCODE") || "Pincode",
197
- mrkey: t("MR_KEY") || "MR Key",
198
- consumerType: t("CONSUMER_TYPE") || "Consumer Type",
199
- createdTime: t("CREATED_TIME") || "Created Time",
200
- lastModifiedTime: t("LAST_MODIFIED_TIME") || "Last Modified Time"
228
+ kno: t("KNO"),
229
+ firstName: t("FIRST_NAME"),
230
+ middleName: t("MIDDLE_NAME"),
231
+ lastName: t("LAST_NAME"),
232
+ status: t("STATUS"),
233
+ ekycStatus: t("EKYC_STATUS"),
234
+ zoneName: t("ZONE"),
235
+ zoneCode: t("ZONE_CODE"),
236
+ assembly: t("EKYC_ASSEMBLY"),
237
+ ward: t("WARD"),
238
+ pincode: t("EKYC_PINCODE"),
239
+ addressRaw: t("ADDRESS_RAW"),
240
+ locality: t("EKYC_LOCALITY"),
241
+ subLocality: t("SUB_LOCALITY"),
242
+ flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
243
+ streetName: t("STREET_NAME"),
244
+ landmark: t("EKYC_LANDMARK"),
245
+ city: t("CITY"),
246
+ state: t("STATE"),
247
+ addressType: t("ADDRESS_TYPE"),
248
+ addressProofType: t("ADDRESS_PROOF_TYPE"),
249
+ mobileNo: t("MOBILE_NUMBER"),
250
+ alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
251
+ whatsappNo: t("WHATSAPP_NO"),
252
+ email: t("EMAIL"),
253
+ landlineNo: t("LANDLINE_NO"),
254
+ mrkey: t("MR_KEY"),
255
+ mrcode: t("MR_CODE"),
256
+ areacode: t("AREA_CODE"),
257
+ source: t("SOURCE"),
258
+ submittedAt: t("SUBMITTED_AT"),
259
+ assignedAt: t("ASSIGNED_AT"),
260
+ connectionType: t("CONNECTION_TYPE"),
261
+ Type: t("CONSUMER_TYPE"),
262
+ occupantType: t("OCCUPANT_TYPE"),
263
+ knoCategory: t("KNO_CATEGORY"),
264
+ approvedAt: t("APPROVED_AT"),
265
+ gender: t("GENDER"),
266
+ parentSpouse: t("PARENT_SPOUSE"),
267
+ fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
268
+ relationship: t("RELATIONSHIP"),
269
+ informantName: t("INFORMANT_NAME"),
270
+ informantRelation: t("INFORMANT_RELATION"),
271
+ informantIs: t("INFORMANT_IS"),
272
+ contactPerson: t("CONTACT_PERSON"),
273
+ relation: t("RELATION"),
274
+ entityName: t("ENTITY_NAME"),
275
+ designation: t("DESIGNATION"),
276
+ department: t("DEPARTMENT"),
277
+ employeeId: t("EMPLOYEE_ID"),
278
+ ownerMobile: t("OWNER_MOBILE"),
279
+ ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
280
+ consentGiven: t("CONSENT_GIVEN"),
281
+ proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
282
+ documentNumber: t("DOCUMENT_NUMBER"),
283
+ noOfPerson: t("NUMBER_OF_PERSON"),
284
+ latitude: t("LATITUDE"),
285
+ longitude: t("LONGITUDE"),
286
+ gpsValid: t("GPS_VALID"),
287
+ meterNumber: t("METER_NUMBER"),
288
+ meterMake: t("METER_MAKE"),
289
+ meterStatus: t("METER_STATUS"),
290
+ meterCondition: t("METER_CONDITION"),
291
+ meterLocation: t("METER_LOCATION"),
292
+ meterLocationAddress: t("METER_LOCATION_ADDRESS"),
293
+ workingStatus: t("WORKING_STATUS"),
294
+ sewerConnection: t("SEWER_CONNECTION"),
295
+ septicTank: t("SEPTIC_TANK"),
296
+ lastBillRaised: t("LAST_BILL_RAISED"),
297
+ lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
298
+ accessToMeter: t("ACCESS_TO_METER"),
299
+ systemMeterId: t("SYSTEM_METER_ID"),
300
+ lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
301
+ waterConnectionYears: t("WATER_CONNECTION_YEARS"),
302
+ sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
303
+ pidNumber: t("PID_NUMBER"),
304
+ propertyType: t("PROPERTY_TYPE"),
305
+ subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
306
+ noOfFloor: t("NO_OF_FLOOR"),
307
+ noOfRooms: t("NO_OF_ROOMS"),
308
+ noOfBeds: t("NO_OF_BEDS"),
309
+ numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
310
+ floorNo: t("FLOOR_NO"),
311
+ userType: t("USER_TYPE"),
312
+ tenantName: t("TENANT_NAME"),
313
+ tenantMobile: t("TENANT_MOBILE"),
314
+ verificationStatus: t("VERIFICATION_STATUS"),
315
+ houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
316
+ surveyorId: t("SURVEYOR_ID"),
317
+ supervisorId: t("SUPERVISOR_ID"),
318
+ vendorId: t("VENDOR_ID"),
319
+ assignmentType: t("ASSIGNMENT_TYPE"),
320
+ assignmentValue: t("ASSIGNMENT_VALUE"),
321
+ assignedTime: t("ASSIGNED_TIME"),
322
+ isSelfAssigned: t("IS_SELF_ASSIGNED"),
323
+ doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
324
+ panFilestoreId: t("PAN_FILESTORE_ID"),
325
+ documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
326
+ buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
327
+ propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
328
+ meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
329
+ modifiedBy: t("MODIFIED_BY"),
330
+ emailId: t("EMAIL_ID"),
331
+ fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
332
+ dob: t("DOB"),
333
+ consumerType: t("CONSUMER_TYPE"),
334
+ createdTime: t("CREATED_TIME"),
335
+ lastModifiedTime: t("LAST_MODIFIED_TIME"),
336
+ meterLatitude: t("EKYC_METER_LATITUDE1"),
337
+ meterLongitude: t("EKYC_METER_LONGITUDE1")
201
338
  };
202
339
  const toTitleCase = str => {
203
340
  if (!str) return "";
204
- const cleanStr = String(str).includes(".") ? String(str).split(".").pop() : String(str);
341
+ let cleanStr = String(str);
342
+ if (cleanStr.includes(".") && !cleanStr.includes("@") && isNaN(Number(cleanStr))) {
343
+ cleanStr = cleanStr.split(".").pop();
344
+ }
205
345
  return cleanStr.toLowerCase().replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
206
346
  };
207
- const skipTitleCase = ["kno", "mobileNumber", "emailId", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime"];
347
+ const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
348
+ const translatedFields = ["meterMake", "meterLocation"];
208
349
  const excelData = consumerList.map(item => {
209
350
  const cleanObj = {};
210
351
  const name = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
@@ -213,12 +354,19 @@ const StatusCards = _ref => {
213
354
  }
214
355
  Object.keys(item).forEach(key => {
215
356
  if (excludedKeys.includes(key)) return;
216
- const val = item[key];
357
+ let val = item[key];
217
358
  if (typeof val === "object" && val !== null) {
218
359
  return;
219
360
  }
361
+ if (String(val).toLowerCase() === "true") {
362
+ val = t("CS_YES");
363
+ } else if (String(val).toLowerCase() === "false") {
364
+ val = t("CS_NO");
365
+ }
220
366
  const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
221
- if (typeof val === "string" && !skipTitleCase.includes(key)) {
367
+ if (typeof val === "string" && translatedFields.includes(key)) {
368
+ cleanObj[friendlyHeader] = t(val);
369
+ } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
222
370
  cleanObj[friendlyHeader] = toTitleCase(val);
223
371
  } else {
224
372
  cleanObj[friendlyHeader] = val;
@@ -241,6 +389,62 @@ const StatusCards = _ref => {
241
389
  return Promise.reject(e);
242
390
  }
243
391
  };
392
+ const getDateRange = filter => {
393
+ const now = new Date();
394
+ const start = new Date(now);
395
+ if (filter === "today") {
396
+ start.setHours(0, 0, 0, 0);
397
+ return {
398
+ from: start,
399
+ to: now
400
+ };
401
+ }
402
+ if (filter === "week") {
403
+ start.setDate(now.getDate() - now.getDay());
404
+ start.setHours(0, 0, 0, 0);
405
+ return {
406
+ from: start,
407
+ to: now
408
+ };
409
+ }
410
+ if (filter === "month") {
411
+ start.setDate(1);
412
+ start.setHours(0, 0, 0, 0);
413
+ return {
414
+ from: start,
415
+ to: now
416
+ };
417
+ }
418
+ return null;
419
+ };
420
+ const handlePresetDownload = function (filter) {
421
+ try {
422
+ const range = getDateRange(filter);
423
+ if (!range) return Promise.resolve();
424
+ setShowReportMenu(false);
425
+ setShowCustomPicker(false);
426
+ return Promise.resolve(handleDownloadEkycData(range.from.getTime(), range.to.getTime())).then(function () {});
427
+ } catch (e) {
428
+ return Promise.reject(e);
429
+ }
430
+ };
431
+ const handleCustomDownload = function () {
432
+ try {
433
+ if (!customDate.from || !customDate.to) {
434
+ alert(t("SELECT_DATE_RANGE") || "Please select both From and To dates.");
435
+ return Promise.resolve();
436
+ }
437
+ const from = new Date(customDate.from);
438
+ from.setHours(0, 0, 0, 0);
439
+ const to = new Date(customDate.to);
440
+ to.setHours(23, 59, 59, 999);
441
+ setShowReportMenu(false);
442
+ setShowCustomPicker(false);
443
+ return Promise.resolve(handleDownloadEkycData(from.getTime(), to.getTime())).then(function () {});
444
+ } catch (e) {
445
+ return Promise.reject(e);
446
+ }
447
+ };
244
448
  const chartRef1 = useRef(null);
245
449
  const chartInstance1 = useRef(null);
246
450
  const total = hasExternalData ? countData.total : (apiCountData === null || apiCountData === void 0 ? void 0 : apiCountData.total) || (countData === null || countData === void 0 ? void 0 : countData.total) || (countData === null || countData === void 0 ? void 0 : countData.totalCount) || 0;
@@ -324,10 +528,16 @@ const StatusCards = _ref => {
324
528
  className: "total-label"
325
529
  }, t("EKYC_TOTAL_APPLICATIONS") || "Total Applications Processed"), /*#__PURE__*/React.createElement("div", {
326
530
  className: "total-number"
327
- }, formatNumber(total)), /*#__PURE__*/React.createElement("button", {
531
+ }, formatNumber(total)), /*#__PURE__*/React.createElement("div", {
532
+ className: "report-download",
533
+ ref: reportMenuRef
534
+ }, /*#__PURE__*/React.createElement("button", {
328
535
  className: "download-excel-btn",
329
536
  disabled: ekycDownloadLoading,
330
- onClick: handleDownloadEkycData
537
+ onClick: () => {
538
+ setShowReportMenu(p => !p);
539
+ setShowCustomPicker(false);
540
+ }
331
541
  }, /*#__PURE__*/React.createElement("svg", {
332
542
  width: "16",
333
543
  height: "16",
@@ -346,7 +556,63 @@ const StatusCards = _ref => {
346
556
  y1: "15",
347
557
  x2: "12",
348
558
  y2: "3"
349
- })), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel"))), /*#__PURE__*/React.createElement("div", {
559
+ })), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel"), showReportMenu && /*#__PURE__*/React.createElement("div", {
560
+ className: "report-menu"
561
+ }, [{
562
+ label: t("TODAY") || "Today",
563
+ key: "today"
564
+ }, {
565
+ label: t("THIS_WEEK") || "This Week",
566
+ key: "week"
567
+ }, {
568
+ label: t("THIS_MONTH") || "This Month",
569
+ key: "month"
570
+ }].map(_ref2 => {
571
+ let label = _ref2.label,
572
+ key = _ref2.key;
573
+ return /*#__PURE__*/React.createElement("div", {
574
+ key: key,
575
+ className: "menu-item",
576
+ onClick: () => handlePresetDownload(key)
577
+ }, label);
578
+ }), /*#__PURE__*/React.createElement("div", {
579
+ className: "custom-date-trigger",
580
+ onClick: () => setShowCustomPicker(p => !p)
581
+ }, t("CUSTOM_DATE") || "Custom Date"), showCustomPicker && /*#__PURE__*/React.createElement("div", {
582
+ className: "custom-picker"
583
+ }, /*#__PURE__*/React.createElement("div", {
584
+ className: "date-inputs"
585
+ }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("span", null, "From"), /*#__PURE__*/React.createElement("input", {
586
+ type: "date",
587
+ value: customDate.from,
588
+ onChange: e => setCustomDate(_extends({}, customDate, {
589
+ from: e.target.value
590
+ }))
591
+ })), /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("span", null, "To"), /*#__PURE__*/React.createElement("input", {
592
+ type: "date",
593
+ value: customDate.to,
594
+ onChange: e => setCustomDate(_extends({}, customDate, {
595
+ to: e.target.value
596
+ }))
597
+ }))), /*#__PURE__*/React.createElement("div", {
598
+ style: {
599
+ display: "flex",
600
+ gap: "10px",
601
+ marginTop: "10px"
602
+ }
603
+ }, /*#__PURE__*/React.createElement("button", {
604
+ className: "picker-cancel-btn",
605
+ onClick: () => {
606
+ setShowCustomPicker(false);
607
+ setCustomDate({
608
+ from: "",
609
+ to: ""
610
+ });
611
+ }
612
+ }, t("CANCEL") || "Cancel"), /*#__PURE__*/React.createElement("button", {
613
+ className: "picker-apply-btn",
614
+ onClick: handleCustomDownload
615
+ }, t("APPLY") || "Apply"))))))), /*#__PURE__*/React.createElement("div", {
350
616
  className: "status-panels-grid"
351
617
  }, /*#__PURE__*/React.createElement("div", {
352
618
  className: "status-panel"
@@ -448,25 +714,6 @@ const Dashboard = () => {
448
714
  }));
449
715
  };
450
716
 
451
- function _extends() {
452
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
453
- for (var e = 1; e < arguments.length; e++) {
454
- var t = arguments[e];
455
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
456
- }
457
- return n;
458
- }, _extends.apply(null, arguments);
459
- }
460
- function _objectWithoutPropertiesLoose(r, e) {
461
- if (null == r) return {};
462
- var t = {};
463
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
464
- if (-1 !== e.indexOf(n)) continue;
465
- t[n] = r[n];
466
- }
467
- return t;
468
- }
469
-
470
717
  const _excluded = ["tableConfig", "filterComponent"];
471
718
  const DesktopInbox = _ref => {
472
719
  var _Digit$ComponentRegis;
@@ -2900,25 +3147,10 @@ const Inbox = _ref2 => {
2900
3147
  targetVendorId: matchedId,
2901
3148
  allVendorIds: allIds
2902
3149
  };
2903
- }, [vendorSearchResponse]),
2904
- targetVendorId = _useMemo.targetVendorId,
2905
- allVendorIds = _useMemo.allVendorIds;
2906
- const progressParams = useMemo(() => {
2907
- if (targetVendorId) {
2908
- return {
2909
- vendorId: targetVendorId,
2910
- vendorIds: [targetVendorId]
2911
- };
2912
- }
2913
- if (allVendorIds && allVendorIds.length > 0) {
2914
- return {
2915
- vendorId: allVendorIds[0],
2916
- vendorIds: allVendorIds
2917
- };
2918
- }
2919
- return {};
2920
- }, [targetVendorId, allVendorIds]);
2921
- const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress(progressParams, {
3150
+ }, [vendorSearchResponse]);
3151
+ const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress({
3152
+ tenantId
3153
+ }, {
2922
3154
  enabled: !!tenantId,
2923
3155
  keepPreviousData: true
2924
3156
  }),
@@ -2980,65 +3212,56 @@ const Inbox = _ref2 => {
2980
3212
  }, [sourceData]);
2981
3213
  const _useTranslation = useTranslation(),
2982
3214
  t = _useTranslation.t;
2983
- const supervisor = useMemo(() => {
2984
- var _Digit$SessionStorage2, _loggedInUser$roles;
2985
- const loggedInUser = (_Digit$SessionStorage2 = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage2 === void 0 ? void 0 : _Digit$SessionStorage2.info;
2986
- const roles = (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$roles = loggedInUser.roles) === null || _loggedInUser$roles === void 0 ? void 0 : _loggedInUser$roles.map(ele => ele.code)) || [];
2987
- if (roles.includes("EKYC_SUPERVISOR")) {
2988
- const targetId = loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.uuid;
2989
- if (progressData !== null && progressData !== void 0 && progressData.supervisorReport && targetId) {
2990
- const report = progressData.supervisorReport.find(s => {
2991
- var _s$supervisorId, _s$id;
2992
- return ((_s$supervisorId = s.supervisorId) === null || _s$supervisorId === void 0 ? void 0 : _s$supervisorId.toLowerCase()) === (targetId === null || targetId === void 0 ? void 0 : targetId.toLowerCase()) || ((_s$id = s.id) === null || _s$id === void 0 ? void 0 : _s$id.toLowerCase()) === (targetId === null || targetId === void 0 ? void 0 : targetId.toLowerCase());
2993
- });
2994
- if (report) return report;
2995
- }
2996
- }
2997
- if (progressData !== null && progressData !== void 0 && progressData.supervisorReport) {
2998
- const totalKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.totalKnos || 0), 0);
2999
- const submittedKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.submittedKnos || 0), 0);
3000
- const pendingKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.pendingKnos || 0), 0);
3001
- const progressPercent = totalKnos > 0 ? Math.round(submittedKnos / totalKnos * 100) : 0;
3002
- return {
3003
- totalKnos,
3004
- submittedKnos,
3005
- pendingKnos,
3006
- progressPercent
3007
- };
3008
- }
3009
- return null;
3215
+ const progressMetrics = useMemo(() => {
3216
+ var _ref3, _progressData$totalKn, _ref4, _progressData$complet, _progressData$pending, _ref5, _progressData$overall;
3217
+ if (!progressData) return {
3218
+ totalKnos: 0,
3219
+ submittedKnos: 0,
3220
+ pendingKnos: 0,
3221
+ progressPercent: 0
3222
+ };
3223
+ const totalKnos = (_ref3 = (_progressData$totalKn = progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) != null ? _progressData$totalKn : progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) != null ? _ref3 : 0;
3224
+ const submittedKnos = (_ref4 = (_progressData$complet = progressData === null || progressData === void 0 ? void 0 : progressData.completedKnos) != null ? _progressData$complet : progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) != null ? _ref4 : 0;
3225
+ const pendingKnos = (_progressData$pending = progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) != null ? _progressData$pending : totalKnos >= submittedKnos ? totalKnos - submittedKnos : 0;
3226
+ const progressPercent = (_ref5 = (_progressData$overall = progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) != null ? _progressData$overall : progressData === null || progressData === void 0 ? void 0 : progressData.progressPercent) != null ? _ref5 : totalKnos > 0 ? (submittedKnos / totalKnos * 100).toFixed(1) : 0;
3227
+ return {
3228
+ totalKnos,
3229
+ submittedKnos,
3230
+ pendingKnos,
3231
+ progressPercent
3232
+ };
3010
3233
  }, [progressData]);
3011
3234
  const cards = useMemo(() => [{
3012
3235
  label: t("TOTAL_EKYC_APPLICATIONS"),
3013
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.totalKnos) || 0,
3236
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.totalKnos) || 0,
3014
3237
  color: "#0B2559",
3015
3238
  type: "today",
3016
3239
  icon: /*#__PURE__*/React.createElement(FaUsers, null)
3017
3240
  }, {
3018
3241
  label: t("EKYC_COMPLETED"),
3019
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.submittedKnos) || 0,
3242
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
3020
3243
  color: "#10B981",
3021
3244
  type: "month",
3022
3245
  icon: /*#__PURE__*/React.createElement(FaCheckCircle, null)
3023
3246
  }, {
3024
3247
  label: t("PENDING_APPLICATIONS"),
3025
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.pendingKnos) || 0,
3248
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.pendingKnos) || 0,
3026
3249
  color: "#F59E0B",
3027
3250
  type: "pending",
3028
3251
  icon: /*#__PURE__*/React.createElement(FaClock, null)
3029
3252
  }, {
3030
3253
  label: t("OVERALL_PROGRESS"),
3031
- count: ((supervisor === null || supervisor === void 0 ? void 0 : supervisor.progressPercent) || 0) + "%",
3254
+ count: ((progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.progressPercent) || 0) + "%",
3032
3255
  color: "#A855F7",
3033
3256
  type: "progress",
3034
3257
  icon: /*#__PURE__*/React.createElement(FaChartLine, null)
3035
- }], [supervisor]);
3258
+ }], [progressMetrics, t]);
3036
3259
  const totalRecords = (listData === null || listData === void 0 ? void 0 : listData.totalCount) || 0;
3037
3260
  const checkPathName = location.pathname.includes("ekyc/inbox");
3038
- const SearchFormFields = useCallback(_ref3 => {
3039
- let registerRef = _ref3.registerRef,
3040
- searchFormState = _ref3.searchFormState,
3041
- controlSearchForm = _ref3.controlSearchForm;
3261
+ const SearchFormFields = useCallback(_ref6 => {
3262
+ let registerRef = _ref6.registerRef,
3263
+ searchFormState = _ref6.searchFormState,
3264
+ controlSearchForm = _ref6.controlSearchForm;
3042
3265
  return /*#__PURE__*/React.createElement(SearchFormFieldsComponents, {
3043
3266
  registerRef,
3044
3267
  searchFormState,
@@ -3343,7 +3566,8 @@ const ReviewSection = _ref2 => {
3343
3566
  }, t("EKYC_PROPOSED_UPDATES")))), /*#__PURE__*/React.createElement("tbody", null, fields.map((field, idx) => {
3344
3567
  const valNew = newData === null || newData === void 0 ? void 0 : newData[field.key];
3345
3568
  const valOld = oldData === null || oldData === void 0 ? void 0 : oldData[field.key];
3346
- const isChanged = oldData && String(valNew) !== String(valOld) && valOld !== undefined && valOld !== null;
3569
+ const normalizeVal = v => v === null || v === undefined || v === "" ? "" : String(v);
3570
+ const isChanged = oldData && valOld !== undefined && normalizeVal(valNew) !== normalizeVal(valOld);
3347
3571
  return /*#__PURE__*/React.createElement("tr", {
3348
3572
  key: idx,
3349
3573
  style: {
@@ -3356,7 +3580,7 @@ const ReviewSection = _ref2 => {
3356
3580
  color: "#344054",
3357
3581
  fontWeight: "500"
3358
3582
  }
3359
- }, t(field.label)), /*#__PURE__*/React.createElement("td", {
3583
+ }, field.preTranslated ? field.label : t(field.label)), /*#__PURE__*/React.createElement("td", {
3360
3584
  style: {
3361
3585
  padding: "16px 0",
3362
3586
  fontSize: "14px",
@@ -3455,6 +3679,8 @@ const Review = () => {
3455
3679
  const _extractReviewData = extractReviewData(searchData, flowState),
3456
3680
  apiNewData = _extractReviewData.newData,
3457
3681
  apiOldData = _extractReviewData.oldData;
3682
+ const flatNewData = apiNewData ? _extends({}, apiNewData || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.connectionDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.addressDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.propertyInfo) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.meterDetails) || {}) : null;
3683
+ const flatOldData = apiOldData ? _extends({}, apiOldData || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.connectionDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.addressDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.propertyInfo) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.meterDetails) || {}) : null;
3458
3684
  const prepareConsolidatedData = data => {
3459
3685
  if (!data) return null;
3460
3686
  const apiConn = (data === null || data === void 0 ? void 0 : data.connectionDetails) || data || {};
@@ -3489,7 +3715,7 @@ const Review = () => {
3489
3715
  email: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.email,
3490
3716
  noOfPerson: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPerson) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPersons),
3491
3717
  knumber: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.knumber) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.kno),
3492
- doorPhotoFilestoreId: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId
3718
+ doorPhotoFilestoreId: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFileStoreId) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId)
3493
3719
  },
3494
3720
  property: {
3495
3721
  kno: apiProp === null || apiProp === void 0 ? void 0 : apiProp.kno,
@@ -3502,7 +3728,7 @@ const Review = () => {
3502
3728
  tenantMobile: apiProp === null || apiProp === void 0 ? void 0 : apiProp.tenantMobile,
3503
3729
  ekycStatus: apiProp === null || apiProp === void 0 ? void 0 : apiProp.ekycStatus,
3504
3730
  propertyDocumentFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.propertyDocumentFileStoreId,
3505
- buildingImageFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId
3731
+ buildingImageFileStoreId: (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId) || (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFilestoreId)
3506
3732
  },
3507
3733
  meter: {
3508
3734
  kno: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.kno,
@@ -3515,12 +3741,11 @@ const Review = () => {
3515
3741
  workingStatus: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.workingStatus,
3516
3742
  lastBillRaised: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.lastBillRaised,
3517
3743
  systemMeterId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.systemMeterId,
3518
- meterPhotoFileStoreId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId
3744
+ meterPhotoFileStoreId: (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId) || (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFilestoreId)
3519
3745
  }
3520
3746
  };
3521
3747
  };
3522
3748
  const newDataRaw = prepareConsolidatedData(apiNewData);
3523
- const oldDataRaw = prepareConsolidatedData(apiOldData);
3524
3749
  const connectionData = _extends({}, newDataRaw === null || newDataRaw === void 0 ? void 0 : newDataRaw.connection, {
3525
3750
  consumerName: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.name) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio = newDataRaw.connection) === null || _newDataRaw$connectio === void 0 ? void 0 : _newDataRaw$connectio.consumerName),
3526
3751
  phoneNumber: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.mobileNumber) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio2 = newDataRaw.connection) === null || _newDataRaw$connectio2 === void 0 ? void 0 : _newDataRaw$connectio2.phoneNumber),
@@ -3542,7 +3767,7 @@ const Review = () => {
3542
3767
  email: (editedAddress === null || editedAddress === void 0 ? void 0 : editedAddress.email) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$address11 = newDataRaw.address) === null || _newDataRaw$address11 === void 0 ? void 0 : _newDataRaw$address11.email),
3543
3768
  noOfPerson: (editedAddress === null || editedAddress === void 0 ? void 0 : editedAddress.noOfPerson) || (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.noOfPersons) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$address12 = newDataRaw.address) === null || _newDataRaw$address12 === void 0 ? void 0 : _newDataRaw$address12.noOfPerson),
3544
3769
  knumber: (editedAddress === null || editedAddress === void 0 ? void 0 : editedAddress.knumber) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$address13 = newDataRaw.address) === null || _newDataRaw$address13 === void 0 ? void 0 : _newDataRaw$address13.knumber) || activeKno,
3545
- doorPhotoFilestoreId: (editedAddress === null || editedAddress === void 0 ? void 0 : editedAddress.doorPhotoFileStoreId) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$address14 = newDataRaw.address) === null || _newDataRaw$address14 === void 0 ? void 0 : _newDataRaw$address14.doorPhotoFilestoreId)
3770
+ doorPhotoFilestoreId: (editedAddress === null || editedAddress === void 0 ? void 0 : editedAddress.doorPhotoFilestoreId) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$address14 = newDataRaw.address) === null || _newDataRaw$address14 === void 0 ? void 0 : _newDataRaw$address14.doorPhotoFilestoreId)
3546
3771
  });
3547
3772
  const propertyData = _extends({}, newDataRaw === null || newDataRaw === void 0 ? void 0 : newDataRaw.property, {
3548
3773
  kno: (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$property = newDataRaw.property) === null || _newDataRaw$property === void 0 ? void 0 : _newDataRaw$property.kno) || activeKno,
@@ -3563,136 +3788,323 @@ const Review = () => {
3563
3788
  lastBillRaised: (editedMeter === null || editedMeter === void 0 ? void 0 : (_editedMeter$lastBill = editedMeter.lastBillRaisedData) === null || _editedMeter$lastBill === void 0 ? void 0 : _editedMeter$lastBill.value) === "Yes" || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter7 = newDataRaw.meter) === null || _newDataRaw$meter7 === void 0 ? void 0 : _newDataRaw$meter7.lastBillRaised),
3564
3789
  meterPhotoFileStoreId: (editedMeter === null || editedMeter === void 0 ? void 0 : editedMeter.meterPhotoFileStoreId) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter8 = newDataRaw.meter) === null || _newDataRaw$meter8 === void 0 ? void 0 : _newDataRaw$meter8.meterPhotoFileStoreId)
3565
3790
  });
3566
- const connectionFields = [{
3567
- label: "EKYC_K_NUMBER",
3568
- key: "knumber"
3791
+ const headerMapping = [{
3792
+ key: "kno",
3793
+ label: "KNO"
3569
3794
  }, {
3570
- label: "EKYC_CONSUMER_NAME",
3571
- key: "consumerName"
3795
+ key: "firstName",
3796
+ label: "FIRST_NAME"
3572
3797
  }, {
3573
- label: "EKYC_ADDRESS",
3574
- key: "address"
3798
+ key: "middleName",
3799
+ label: "MIDDLE_NAME"
3575
3800
  }, {
3576
- label: "EKYC_CONNECTION_TYPE",
3577
- key: "connectionType"
3801
+ key: "lastName",
3802
+ label: "LAST_NAME"
3578
3803
  }, {
3579
- label: "EKYC_METER_NO",
3580
- key: "meterNumber"
3804
+ key: "status",
3805
+ label: "STATUS"
3581
3806
  }, {
3582
- label: "EKYC_MOBILE_NO",
3583
- key: "phoneNumber"
3807
+ key: "ekycStatus",
3808
+ label: "EKYC_STATUS"
3584
3809
  }, {
3585
- label: "EKYC_EMAIL",
3586
- key: "email"
3810
+ key: "zoneName",
3811
+ label: "ZONE"
3587
3812
  }, {
3588
- label: "EKYC_STATUS_FLAG",
3589
- key: "statusflag"
3813
+ key: "zoneCode",
3814
+ label: "ZONE_CODE"
3590
3815
  }, {
3591
- label: "EKYC_STATUS",
3592
- key: "ekycStatus"
3593
- }];
3594
- const addressFields = [{
3595
- label: "EKYC_FULL_ADDRESS",
3596
- key: "fullAddress"
3816
+ key: "assembly",
3817
+ label: "EKYC_ASSEMBLY"
3597
3818
  }, {
3598
- label: "EKYC_FLAT_HOUSE_NO",
3599
- key: "flatHouseNumber"
3819
+ key: "ward",
3820
+ label: "WARD"
3600
3821
  }, {
3601
- label: "EKYC_BUILDING_TOWER",
3602
- key: "buildingTower"
3822
+ key: "pincode",
3823
+ label: "EKYC_PINCODE"
3603
3824
  }, {
3604
- label: "EKYC_LANDMARK",
3605
- key: "landmark"
3825
+ key: "addressRaw",
3826
+ label: "ADDRESS_RAW"
3606
3827
  }, {
3607
- label: "EKYC_PINCODE",
3608
- key: "pinCode"
3828
+ key: "locality",
3829
+ label: "EKYC_LOCALITY"
3609
3830
  }, {
3610
- label: "EKYC_LOCALITY",
3611
- key: "ward"
3831
+ key: "subLocality",
3832
+ label: "SUB_LOCALITY"
3612
3833
  }, {
3613
- label: "EKYC_ASSEMBLY",
3614
- key: "assembly"
3834
+ key: "flatHouseNumber",
3835
+ label: "FLAT_HOUSE_NUMBER"
3615
3836
  }, {
3616
- label: "EKYC_GPS_VALID",
3617
- key: "gpsValid",
3618
- isBool: true
3837
+ key: "streetName",
3838
+ label: "STREET_NAME"
3619
3839
  }, {
3620
- label: "EKYC_LATITUDE",
3621
- key: "latitude"
3840
+ key: "landmark",
3841
+ label: "EKYC_LANDMARK"
3622
3842
  }, {
3623
- label: "EKYC_LONGITUDE",
3624
- key: "longitude"
3843
+ key: "city",
3844
+ label: "CITY"
3625
3845
  }, {
3626
- label: "EKYC_MOBILE_NO",
3627
- key: "mobileNo"
3846
+ key: "state",
3847
+ label: "STATE"
3628
3848
  }, {
3629
- label: "EKYC_WHATSAPP_NO",
3630
- key: "whatsappNo"
3849
+ key: "addressType",
3850
+ label: "ADDRESS_TYPE"
3631
3851
  }, {
3632
- label: "EKYC_EMAIL",
3633
- key: "email"
3852
+ key: "addressProofType",
3853
+ label: "ADDRESS_PROOF_TYPE"
3634
3854
  }, {
3635
- label: "EKYC_NO_OF_PERSONS",
3636
- key: "noOfPerson"
3855
+ key: "mobileNo",
3856
+ label: "MOBILE_NUMBER"
3637
3857
  }, {
3638
- label: "EKYC_K_NUMBER",
3639
- key: "knumber"
3640
- }];
3641
- const propertyFields = [{
3642
- label: "EKYC_CONNECTION_CATEGORY",
3643
- key: "connectionCategory"
3858
+ key: "alternateMobileNo",
3859
+ label: "ALTERNATE_MOBILE_NUMBER"
3644
3860
  }, {
3645
- label: "EKYC_PID_NUMBER",
3646
- key: "pidNumber"
3861
+ key: "whatsappNo",
3862
+ label: "WHATSAPP_NO"
3647
3863
  }, {
3648
- label: "EKYC_TYPE_OF_CONNECTION",
3649
- key: "typeOfConnection"
3864
+ key: "email",
3865
+ label: "EMAIL"
3650
3866
  }, {
3651
- label: "EKYC_USER_TYPE",
3652
- key: "userType"
3867
+ key: "landlineNo",
3868
+ label: "LANDLINE_NO"
3653
3869
  }, {
3654
- label: "EKYC_FLOOR_COUNT",
3655
- key: "numberOfFloors"
3870
+ key: "mrkey",
3871
+ label: "MR_KEY"
3656
3872
  }, {
3657
- label: "EKYC_TENANT_NAME",
3658
- key: "tenantName"
3873
+ key: "mrcode",
3874
+ label: "MR_CODE"
3659
3875
  }, {
3660
- label: "EKYC_TENANT_MOBILE",
3661
- key: "tenantMobile"
3876
+ key: "areacode",
3877
+ label: "AREA_CODE"
3662
3878
  }, {
3663
- label: "EKYC_STATUS",
3664
- key: "ekycStatus"
3665
- }];
3666
- const meterFields = [{
3667
- label: "EKYC_METERED",
3668
- key: "metered",
3879
+ key: "source",
3880
+ label: "SOURCE"
3881
+ }, {
3882
+ key: "submittedAt",
3883
+ label: "SUBMITTED_AT"
3884
+ }, {
3885
+ key: "assignedAt",
3886
+ label: "ASSIGNED_AT"
3887
+ }, {
3888
+ key: "connectionType",
3889
+ label: "CONNECTION_TYPE"
3890
+ }, {
3891
+ key: "Type",
3892
+ label: "CONSUMER_TYPE"
3893
+ }, {
3894
+ key: "occupantType",
3895
+ label: "OCCUPANT_TYPE"
3896
+ }, {
3897
+ key: "knoCategory",
3898
+ label: "KNO_CATEGORY"
3899
+ }, {
3900
+ key: "approvedAt",
3901
+ label: "APPROVED_AT"
3902
+ }, {
3903
+ key: "gender",
3904
+ label: "GENDER"
3905
+ }, {
3906
+ key: "parentSpouse",
3907
+ label: "PARENT_SPOUSE"
3908
+ }, {
3909
+ key: "fatherOrHusbandName",
3910
+ label: "FATHER_HUSBUND_NAME"
3911
+ }, {
3912
+ key: "relationship",
3913
+ label: "RELATIONSHIP"
3914
+ }, {
3915
+ key: "informantName",
3916
+ label: "INFORMANT_NAME"
3917
+ }, {
3918
+ key: "informantRelation",
3919
+ label: "INFORMANT_RELATION"
3920
+ }, {
3921
+ key: "informantIs",
3922
+ label: "INFORMANT_IS"
3923
+ }, {
3924
+ key: "contactPerson",
3925
+ label: "CONTACT_PERSON"
3926
+ }, {
3927
+ key: "relation",
3928
+ label: "RELATION"
3929
+ }, {
3930
+ key: "entityName",
3931
+ label: "ENTITY_NAME"
3932
+ }, {
3933
+ key: "designation",
3934
+ label: "DESIGNATION"
3935
+ }, {
3936
+ key: "department",
3937
+ label: "DEPARTMENT"
3938
+ }, {
3939
+ key: "employeeId",
3940
+ label: "EMPLOYEE_ID"
3941
+ }, {
3942
+ key: "ownerMobile",
3943
+ label: "OWNER_MOBILE"
3944
+ }, {
3945
+ key: "ownerVerificationDone",
3946
+ label: "OWNER_VERIFICATION_DONE",
3669
3947
  isBool: true
3670
3948
  }, {
3671
- label: "EKYC_METER_NO",
3672
- key: "meterNumber"
3949
+ key: "consentGiven",
3950
+ label: "CONSENT_GIVEN",
3951
+ isBool: true
3952
+ }, {
3953
+ key: "proofOfIdentityType",
3954
+ label: "PROOF_OF_IDENTITY_TYPE"
3955
+ }, {
3956
+ key: "documentNumber",
3957
+ label: "DOCUMENT_NUMBER"
3673
3958
  }, {
3674
- label: "EKYC_METER_MAKE",
3675
- key: "meterMake"
3959
+ key: "noOfPerson",
3960
+ label: "NUMBER_OF_PERSON"
3676
3961
  }, {
3677
- label: "EKYC_METER_LOCATION_ADDRESS",
3678
- key: "meterLocationAddress"
3962
+ key: "latitude",
3963
+ label: "LATITUDE"
3679
3964
  }, {
3680
- label: "EKYC_METER_LATITUDE",
3681
- key: "meterLatitude"
3965
+ key: "longitude",
3966
+ label: "LONGITUDE"
3967
+ }, {
3968
+ key: "gpsValid",
3969
+ label: "GPS_VALID",
3970
+ isBool: true
3682
3971
  }, {
3683
- label: "EKYC_METER_LONGITUDE",
3684
- key: "meterLongitude"
3972
+ key: "meterNumber",
3973
+ label: "METER_NUMBER"
3974
+ }, {
3975
+ key: "meterMake",
3976
+ label: "METER_MAKE"
3977
+ }, {
3978
+ key: "meterStatus",
3979
+ label: "METER_STATUS"
3980
+ }, {
3981
+ key: "meterCondition",
3982
+ label: "METER_CONDITION"
3983
+ }, {
3984
+ key: "meterLocation",
3985
+ label: "METER_LOCATION"
3986
+ }, {
3987
+ key: "meterLocationAddress",
3988
+ label: "METER_LOCATION_ADDRESS"
3685
3989
  }, {
3686
- label: "EKYC_WORKING_STATUS",
3687
3990
  key: "workingStatus",
3991
+ label: "WORKING_STATUS"
3992
+ }, {
3993
+ key: "sewerConnection",
3994
+ label: "SEWER_CONNECTION",
3995
+ isBool: true
3996
+ }, {
3997
+ key: "septicTank",
3998
+ label: "SEPTIC_TANK",
3688
3999
  isBool: true
3689
4000
  }, {
3690
- label: "EKYC_LAST_BILL_RAISED",
3691
4001
  key: "lastBillRaised",
4002
+ label: "LAST_BILL_RAISED",
3692
4003
  isBool: true
3693
4004
  }, {
3694
- label: "EKYC_SYSTEM_METER_ID",
3695
- key: "systemMeterId"
4005
+ key: "lastBillReceivedDate",
4006
+ label: "LAST_BILL_RECEIVED_DATE"
4007
+ }, {
4008
+ key: "accessToMeter",
4009
+ label: "ACCESS_TO_METER",
4010
+ isBool: true
4011
+ }, {
4012
+ key: "systemMeterId",
4013
+ label: "SYSTEM_METER_ID"
4014
+ }, {
4015
+ key: "lastBillNotRaisedReason",
4016
+ label: "LAST_BILL_NOT_RAISED_REASON"
4017
+ }, {
4018
+ key: "waterConnectionYears",
4019
+ label: "WATER_CONNECTION_YEARS"
4020
+ }, {
4021
+ key: "sewerConnectionYears",
4022
+ label: "SEWER_CONNECTION_YEARS"
4023
+ }, {
4024
+ key: "pidNumber",
4025
+ label: "PID_NUMBER"
4026
+ }, {
4027
+ key: "propertyType",
4028
+ label: "PROPERTY_TYPE"
4029
+ }, {
4030
+ key: "subPropertyCategory",
4031
+ label: "SUB_PROPERTY_CATEGORY"
4032
+ }, {
4033
+ key: "noOfFloor",
4034
+ label: "NO_OF_FLOOR"
4035
+ }, {
4036
+ key: "noOfRooms",
4037
+ label: "NO_OF_ROOMS"
4038
+ }, {
4039
+ key: "noOfBeds",
4040
+ label: "NO_OF_BEDS"
4041
+ }, {
4042
+ key: "numberOfDwellingUnits",
4043
+ label: "NUMBER_OF_DWELLING_UNITS"
4044
+ }, {
4045
+ key: "floorNo",
4046
+ label: "FLOOR_NO"
4047
+ }, {
4048
+ key: "userType",
4049
+ label: "USER_TYPE"
4050
+ }, {
4051
+ key: "tenantName",
4052
+ label: "TENANT_NAME"
4053
+ }, {
4054
+ key: "tenantMobile",
4055
+ label: "TENANT_MOBILE"
4056
+ }, {
4057
+ key: "verificationStatus",
4058
+ label: "VERIFICATION_STATUS"
4059
+ }, {
4060
+ key: "houseBuiltDuration",
4061
+ label: "HOUSE_BUILT_DURATION"
4062
+ }, {
4063
+ key: "surveyorId",
4064
+ label: "SURVEYOR_ID"
4065
+ }, {
4066
+ key: "supervisorId",
4067
+ label: "SUPERVISOR_ID"
4068
+ }, {
4069
+ key: "vendorId",
4070
+ label: "VENDOR_ID"
4071
+ }, {
4072
+ key: "assignmentType",
4073
+ label: "ASSIGNMENT_TYPE"
4074
+ }, {
4075
+ key: "assignmentValue",
4076
+ label: "ASSIGNMENT_VALUE"
4077
+ }, {
4078
+ key: "assignedTime",
4079
+ label: "ASSIGNED_TIME"
4080
+ }, {
4081
+ key: "isSelfAssigned",
4082
+ label: "IS_SELF_ASSIGNED",
4083
+ isBool: true
4084
+ }, {
4085
+ key: "modifiedBy",
4086
+ label: "MODIFIED_BY"
4087
+ }, {
4088
+ key: "emailId",
4089
+ label: "EMAIL_ID"
4090
+ }, {
4091
+ key: "dob",
4092
+ label: "DOB"
4093
+ }, {
4094
+ key: "consumerType",
4095
+ label: "CONSUMER_TYPE"
4096
+ }, {
4097
+ key: "createdTime",
4098
+ label: "CREATED_TIME"
4099
+ }, {
4100
+ key: "lastModifiedTime",
4101
+ label: "LAST_MODIFIED_TIME"
4102
+ }, {
4103
+ key: "meterLatitude",
4104
+ label: "EKYC_METER_LATITUDE1"
4105
+ }, {
4106
+ key: "meterLongitude",
4107
+ label: "EKYC_METER_LONGITUDE1"
3696
4108
  }];
3697
4109
  const handleDeclaration = () => setAgree(!agree);
3698
4110
  const handleReject = function () {
@@ -3773,11 +4185,24 @@ const Review = () => {
3773
4185
  return Promise.reject(e);
3774
4186
  }
3775
4187
  };
3776
- const handleViewDocument = fileStoreId => {
3777
- if (!fileStoreId) return;
3778
- const documentUrl = "https://dev-djberp.nitcon.in/filestore/v1/files/id?tenantId=dl.djb&fileStoreId=" + fileStoreId;
3779
- setPreviewUrl(documentUrl);
3780
- setShowPreview(true);
4188
+ const handleViewDocument = function (fileStoreId) {
4189
+ try {
4190
+ if (!fileStoreId) return Promise.resolve();
4191
+ const _temp4 = _catch(function () {
4192
+ return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, tenantId)).then(function (response) {
4193
+ if (response !== null && response !== void 0 && response.data) {
4194
+ const blobUrl = URL.createObjectURL(response.data);
4195
+ setPreviewUrl(blobUrl);
4196
+ setShowPreview(true);
4197
+ }
4198
+ });
4199
+ }, function (error) {
4200
+ console.error("Error fetching document:", error);
4201
+ });
4202
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
4203
+ } catch (e) {
4204
+ return Promise.reject(e);
4205
+ }
3781
4206
  };
3782
4207
  const handleMenuSelect = option => {
3783
4208
  setShowOptions(false);
@@ -3788,65 +4213,15 @@ const Review = () => {
3788
4213
  }
3789
4214
  };
3790
4215
  if (isSearchLoading || isSubmitting) return /*#__PURE__*/React.createElement(Loader, null);
3791
- const baseUrl = "/digit-ui/employee/ekyc";
3792
4216
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, {
3793
4217
  className: "overflow-y-scroll"
3794
4218
  }, /*#__PURE__*/React.createElement(ReviewSection, {
3795
- title: t("EKYC_CONNECTION_DETAILS"),
3796
- fields: connectionFields,
3797
- newData: connectionData,
3798
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.connection,
3799
- t: t,
3800
- jumpTo: baseUrl + "/consumer-details?kno=" + activeKno,
3801
- state: _extends({}, flowState, {
3802
- kNumber: activeKno,
3803
- kno: activeKno,
3804
- reviewData: searchData,
3805
- edits
3806
- }),
3807
- hideEditButton: hideEditButton
3808
- }), /*#__PURE__*/React.createElement(ReviewSection, {
3809
- title: t("EKYC_ADDRESS_DETAILS"),
3810
- fields: addressFields,
3811
- newData: addressData,
3812
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.address,
3813
- t: t,
3814
- jumpTo: baseUrl + "/address-details?kno=" + activeKno,
3815
- state: _extends({}, flowState, {
3816
- kNumber: activeKno,
3817
- kno: activeKno,
3818
- reviewData: searchData,
3819
- edits
3820
- }),
3821
- hideEditButton: hideEditButton
3822
- }), /*#__PURE__*/React.createElement(ReviewSection, {
3823
- title: t("EKYC_PROPERTY_INFO"),
3824
- fields: propertyFields,
3825
- newData: propertyData,
3826
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.property,
3827
- t: t,
3828
- jumpTo: baseUrl + "/property-info?kno=" + activeKno,
3829
- state: _extends({}, flowState, {
3830
- kNumber: activeKno,
3831
- kno: activeKno,
3832
- reviewData: searchData,
3833
- edits
3834
- }),
3835
- hideEditButton: hideEditButton
3836
- }), /*#__PURE__*/React.createElement(ReviewSection, {
3837
- title: t("EKYC_METER_DETAILS"),
3838
- fields: meterFields,
3839
- newData: meterData,
3840
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.meter,
4219
+ title: t("EKYC_ALL_DETAILS") || "All Details",
4220
+ fields: headerMapping,
4221
+ newData: flatNewData,
4222
+ oldData: flatOldData,
3841
4223
  t: t,
3842
- jumpTo: baseUrl + "/meter-details?kno=" + activeKno,
3843
- state: _extends({}, flowState, {
3844
- kNumber: activeKno,
3845
- kno: activeKno,
3846
- reviewData: searchData,
3847
- edits
3848
- }),
3849
- hideEditButton: hideEditButton
4224
+ hideEditButton: true
3850
4225
  }), /*#__PURE__*/React.createElement("div", {
3851
4226
  style: {
3852
4227
  marginTop: "40px"
@@ -5635,6 +6010,7 @@ const SupervisorDetailsCard = () => {
5635
6010
 
5636
6011
  const AssignEkycModal = _ref => {
5637
6012
  let surveyor = _ref.surveyor,
6013
+ isReassign = _ref.isReassign,
5638
6014
  closeModal = _ref.closeModal,
5639
6015
  refetchDashboard = _ref.refetchDashboard,
5640
6016
  propsTenantId = _ref.tenantId;
@@ -5728,9 +6104,7 @@ const AssignEkycModal = _ref => {
5728
6104
  assemblyOptions: Array.from(assemblies.values()).sort((a, b) => a.name.localeCompare(b.name)),
5729
6105
  wardOptions: Array.from(wards.values()).sort((a, b) => a.name.localeCompare(b.name))
5730
6106
  };
5731
- }, [boundaryData]),
5732
- assemblyOptions = _useMemo.assemblyOptions,
5733
- wardOptions = _useMemo.wardOptions;
6107
+ }, [boundaryData]);
5734
6108
  const structuredLocalityData = useMemo(() => {
5735
6109
  let localities = [];
5736
6110
  const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
@@ -5764,7 +6138,7 @@ const AssignEkycModal = _ref => {
5764
6138
  return Array.from(pinSet).sort();
5765
6139
  }, [structuredLocalityData]);
5766
6140
  const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycApplicationList({
5767
- unassignedOnly: true,
6141
+ unassignedOnly: !isReassign,
5768
6142
  fetchFilterOptions: true
5769
6143
  }, {
5770
6144
  tenantId: tenantId,
@@ -5794,7 +6168,7 @@ const AssignEkycModal = _ref => {
5794
6168
  setCurrentPage(0);
5795
6169
  }, [debouncedFilters, filters.kno]);
5796
6170
  const _Digit$Hooks$ekyc$use2 = Digit.Hooks.ekyc.useEkycApplicationList(_extends({
5797
- unassignedOnly: true
6171
+ unassignedOnly: !isReassign
5798
6172
  }, filters.kno && {
5799
6173
  kno: filters.kno
5800
6174
  }, debouncedFilters.ekycStatus && {
@@ -5891,6 +6265,56 @@ const AssignEkycModal = _ref => {
5891
6265
  handleAssignmentError(errMsg, variables);
5892
6266
  }
5893
6267
  });
6268
+ const reassignMutation = Digit.Hooks.ekyc.useEkycAssignmentReassign({
6269
+ onSuccess: (response, variables) => {
6270
+ if (response !== null && response !== void 0 && response.error) {
6271
+ var _response$data2;
6272
+ const errMsg = (response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.message) || "";
6273
+ handleAssignmentError(errMsg, variables);
6274
+ return;
6275
+ }
6276
+ if (response !== null && response !== void 0 && response.skipped && response.skipped.length > 0) {
6277
+ var _response$skipped$2;
6278
+ const reason = ((_response$skipped$2 = response.skipped[0]) === null || _response$skipped$2 === void 0 ? void 0 : _response$skipped$2.reason) || "";
6279
+ handleAssignmentError(reason, variables);
6280
+ return;
6281
+ }
6282
+ setToastData({
6283
+ error: false,
6284
+ label: t("EKYC_REASSIGNMENT_SUCCESSFUL") || "Reassignment successful"
6285
+ });
6286
+ setShowToast(true);
6287
+ setTimeout(function () {
6288
+ try {
6289
+ function _temp8() {
6290
+ function _temp6() {
6291
+ closeModal();
6292
+ }
6293
+ const _temp5 = function () {
6294
+ if (refetchApplicationList) {
6295
+ return Promise.resolve(refetchApplicationList()).then(function () {});
6296
+ }
6297
+ }();
6298
+ return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
6299
+ }
6300
+ const _temp7 = function () {
6301
+ if (refetchDashboard) {
6302
+ return Promise.resolve(refetchDashboard()).then(function () {});
6303
+ }
6304
+ }();
6305
+ return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7));
6306
+ } catch (e) {
6307
+ return Promise.reject(e);
6308
+ }
6309
+ }, 1000);
6310
+ },
6311
+ onError: (error, variables) => {
6312
+ var _error$data2, _error$response2, _error$response2$data;
6313
+ const errMsg = (error === null || error === void 0 ? void 0 : (_error$data2 = error.data) === null || _error$data2 === void 0 ? void 0 : _error$data2.message) || (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message) || "";
6314
+ handleAssignmentError(errMsg, variables);
6315
+ }
6316
+ });
6317
+ const activeMutation = isReassign ? reassignMutation : assignmentMutation;
5894
6318
  const tableData = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.consumerList) || [];
5895
6319
  const getAssignmentPayload = () => {
5896
6320
  if (isBulkSelection) {
@@ -5930,16 +6354,22 @@ const AssignEkycModal = _ref => {
5930
6354
  };
5931
6355
  };
5932
6356
  const handleAssign = () => {
5933
- var _surveyor$owner;
5934
6357
  const _getAssignmentPayload = getAssignmentPayload(),
5935
6358
  assignmentType = _getAssignmentPayload.assignmentType,
5936
6359
  assignmentValue = _getAssignmentPayload.assignmentValue;
5937
- assignmentMutation.mutate({
6360
+ const payload = {
5938
6361
  tenantId: tenantId,
5939
- surveyorId: surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner = surveyor.owner) === null || _surveyor$owner === void 0 ? void 0 : _surveyor$owner.uuid,
5940
6362
  assignmentType,
5941
6363
  assignmentValue
5942
- });
6364
+ };
6365
+ if (isReassign) {
6366
+ var _surveyor$owner;
6367
+ payload.newSurveyorId = surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner = surveyor.owner) === null || _surveyor$owner === void 0 ? void 0 : _surveyor$owner.uuid;
6368
+ } else {
6369
+ var _surveyor$owner2;
6370
+ payload.surveyorId = surveyor === null || surveyor === void 0 ? void 0 : (_surveyor$owner2 = surveyor.owner) === null || _surveyor$owner2 === void 0 ? void 0 : _surveyor$owner2.uuid;
6371
+ }
6372
+ activeMutation.mutate(payload);
5943
6373
  };
5944
6374
  const handleSelectAll = () => {
5945
6375
  setIsBulkSelection(true);
@@ -6005,13 +6435,13 @@ const AssignEkycModal = _ref => {
6005
6435
  setSelectedKnos(prev => prev.includes(kno) ? prev.filter(item => item !== kno) : [...prev, kno]);
6006
6436
  };
6007
6437
  return /*#__PURE__*/React.createElement(Modal, {
6008
- headerBarMain: "Assign KNOs to " + (surveyor === null || surveyor === void 0 ? void 0 : surveyor.name),
6438
+ 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),
6009
6439
  headerBarEnd: /*#__PURE__*/React.createElement(Close, {
6010
6440
  onClick: closeModal
6011
6441
  }),
6012
6442
  actionCancelLabel: "Cancel",
6013
6443
  actionCancelOnSubmit: closeModal,
6014
- actionSaveLabel: t("EKYC_ASSIGN_KNOS") || "Assign KNOs",
6444
+ actionSaveLabel: isReassign ? t("EKYC_REASSIGN_KNOS") || "Reassign KNOs" : t("EKYC_ASSIGN_KNOS") || "Assign KNOs",
6015
6445
  actionSaveOnSubmit: handleAssign,
6016
6446
  isDisabled: !(selectedKnos !== null && selectedKnos !== void 0 && selectedKnos.length)
6017
6447
  }, /*#__PURE__*/React.createElement("div", {
@@ -6033,30 +6463,6 @@ const AssignEkycModal = _ref => {
6033
6463
  key: pin,
6034
6464
  value: pin
6035
6465
  }, pin))), /*#__PURE__*/React.createElement("select", {
6036
- className: "form-control",
6037
- value: filters.ward,
6038
- onChange: e => handleFilterChange("ward", e.target.value)
6039
- }, /*#__PURE__*/React.createElement("option", {
6040
- value: ""
6041
- }, "Select Ward"), wardOptions.filter(ward => {
6042
- const stripped = ward.name.replace(/[0-9]/g, "").replace(/^[-\s]+|[-\s]+$/g, "");
6043
- return stripped.trim().length > 0;
6044
- }).map(ward => {
6045
- const displayName = ward.name.replace(/[0-9]/g, "").replace(/^[-\s]+|[-\s]+$/g, "");
6046
- return /*#__PURE__*/React.createElement("option", {
6047
- key: ward.code,
6048
- value: ward.name
6049
- }, displayName);
6050
- })), /*#__PURE__*/React.createElement("select", {
6051
- className: "form-control",
6052
- value: filters.assembly,
6053
- onChange: e => handleFilterChange("assembly", e.target.value)
6054
- }, /*#__PURE__*/React.createElement("option", {
6055
- value: ""
6056
- }, "Select Assembly"), assemblyOptions.map(assembly => /*#__PURE__*/React.createElement("option", {
6057
- key: assembly.code,
6058
- value: assembly.name
6059
- }, assembly.name))), /*#__PURE__*/React.createElement("select", {
6060
6466
  className: "form-control",
6061
6467
  value: filters.mrkey,
6062
6468
  onChange: e => handleFilterChange("mrkey", e.target.value)
@@ -6110,7 +6516,7 @@ const AssignEkycModal = _ref => {
6110
6516
  const SurveyorDetailsDashboard = () => {
6111
6517
  var _Digit$SessionStorage, _Digit$SessionStorage2, _surveyorSearchById$s, _Digit$SessionStorage3, _Digit$SessionStorage4, _surveyor$owner, _surveyor$owner2, _surveyor$owner3, _surveyor$owner4, _fullName$charAt, _dashboardData$dashbo, _dashboardData$dashbo2, _dashboardData$dashbo3, _dashboardData$dashbo4, _surveyor$owner8, _surveyor$owner9, _surveyor$owner0, _dashboardData$dashbo5, _dashboardData$dashbo6;
6112
6518
  const tenantId = Digit.ULBService.getCurrentTenantId();
6113
- const _useState = useState(false),
6519
+ const _useState = useState(null),
6114
6520
  showModal = _useState[0],
6115
6521
  setShowModal = _useState[1];
6116
6522
  const _useState2 = useState(false),
@@ -6436,10 +6842,12 @@ const SurveyorDetailsDashboard = () => {
6436
6842
  };
6437
6843
  const options = [{
6438
6844
  action: "Assign"
6845
+ }, {
6846
+ action: "EKYC_REASSIGN"
6439
6847
  }];
6440
6848
  const handleMenuSelect = option => {
6441
6849
  setShowOptions(false);
6442
- setShowModal(true);
6850
+ setShowModal(option.action);
6443
6851
  };
6444
6852
  const handleDownloadEkycData = function () {
6445
6853
  try {
@@ -6520,7 +6928,7 @@ const SurveyorDetailsDashboard = () => {
6520
6928
  };
6521
6929
  const closeModal = function () {
6522
6930
  try {
6523
- setShowModal(false);
6931
+ setShowModal(null);
6524
6932
  return Promise.resolve();
6525
6933
  } catch (e) {
6526
6934
  return Promise.reject(e);
@@ -6747,6 +7155,7 @@ const SurveyorDetailsDashboard = () => {
6747
7155
  }
6748
7156
  })), showModal && /*#__PURE__*/React.createElement(AssignEkycModal, {
6749
7157
  surveyor: surveyor,
7158
+ isReassign: showModal === "EKYC_REASSIGN",
6750
7159
  closeModal: closeModal,
6751
7160
  refetchDashboard: refetchDashboard
6752
7161
  }));