@djb25/digit-ui-module-ekyc 1.0.69 → 1.0.71

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
@@ -146,6 +146,167 @@ function _finallyRethrows(body, finalizer) {
146
146
  return finalizer(false, result);
147
147
  }
148
148
 
149
+ const excludedKeys = ["status", "source", "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"];
150
+ const createHeaderMapping = t => ({
151
+ kno: t("KNO"),
152
+ firstName: t("FIRST_NAME"),
153
+ middleName: t("MIDDLE_NAME"),
154
+ lastName: t("LAST_NAME"),
155
+ status: t("STATUS"),
156
+ ekycStatus: t("EKYC_STATUS"),
157
+ zoneName: t("ZONE"),
158
+ zoneCode: t("ZONE_CODE"),
159
+ assembly: t("EKYC_ASSEMBLY"),
160
+ ward: t("WARD"),
161
+ pincode: t("EKYC_PINCODE"),
162
+ addressRaw: t("ADDRESS_RAW"),
163
+ locality: t("EKYC_LOCALITY"),
164
+ subLocality: t("SUB_LOCALITY"),
165
+ flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
166
+ streetName: t("STREET_NAME"),
167
+ landmark: t("EKYC_LANDMARK"),
168
+ city: t("CITY"),
169
+ state: t("STATE"),
170
+ addressType: t("ADDRESS_TYPE"),
171
+ addressProofType: t("ADDRESS_PROOF_TYPE"),
172
+ mobileNo: t("MOBILE_NUMBER"),
173
+ alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
174
+ whatsappNo: t("WHATSAPP_NO"),
175
+ email: t("EMAIL"),
176
+ landlineNo: t("LANDLINE_NO"),
177
+ mrkey: t("MR_KEY"),
178
+ mrcode: t("MR_CODE"),
179
+ areacode: t("AREA_CODE"),
180
+ source: t("SOURCE"),
181
+ submittedAt: t("SUBMITTED_AT"),
182
+ assignedAt: t("ASSIGNED_AT"),
183
+ connectionType: t("CONNECTION_TYPE"),
184
+ Type: t("CONSUMER_TYPE"),
185
+ occupantType: t("OCCUPANT_TYPE"),
186
+ knoCategory: t("KNO_CATEGORY"),
187
+ approvedAt: t("APPROVED_AT"),
188
+ gender: t("GENDER"),
189
+ parentSpouse: t("PARENT_SPOUSE"),
190
+ fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
191
+ relationship: t("RELATIONSHIP"),
192
+ informantName: t("INFORMANT_NAME"),
193
+ informantRelation: t("INFORMANT_RELATION"),
194
+ informantIs: t("INFORMANT_IS"),
195
+ contactPerson: t("CONTACT_PERSON"),
196
+ relation: t("RELATION"),
197
+ entityName: t("ENTITY_NAME"),
198
+ designation: t("DESIGNATION"),
199
+ department: t("DEPARTMENT"),
200
+ employeeId: t("EMPLOYEE_ID"),
201
+ ownerMobile: t("OWNER_MOBILE"),
202
+ ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
203
+ consentGiven: t("CONSENT_GIVEN"),
204
+ proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
205
+ documentNumber: t("DOCUMENT_NUMBER"),
206
+ noOfPerson: t("NUMBER_OF_PERSON"),
207
+ latitude: t("LATITUDE"),
208
+ longitude: t("LONGITUDE"),
209
+ gpsValid: t("GPS_VALID"),
210
+ meterNumber: t("METER_NUMBER"),
211
+ meterMake: t("METER_MAKE"),
212
+ meterStatus: t("METER_STATUS"),
213
+ meterCondition: t("METER_CONDITION"),
214
+ meterLocation: t("METER_LOCATION"),
215
+ meterLocationAddress: t("METER_LOCATION_ADDRESS"),
216
+ workingStatus: t("WORKING_STATUS"),
217
+ sewerConnection: t("SEWER_CONNECTION"),
218
+ septicTank: t("SEPTIC_TANK"),
219
+ lastBillRaised: t("LAST_BILL_RAISED"),
220
+ lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
221
+ accessToMeter: t("ACCESS_TO_METER"),
222
+ systemMeterId: t("SYSTEM_METER_ID"),
223
+ lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
224
+ waterConnectionYears: t("WATER_CONNECTION_YEARS"),
225
+ sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
226
+ pidNumber: t("PID_NUMBER"),
227
+ propertyType: t("PROPERTY_TYPE"),
228
+ subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
229
+ noOfFloor: t("NO_OF_FLOOR"),
230
+ noOfRooms: t("NO_OF_ROOMS"),
231
+ noOfBeds: t("NO_OF_BEDS"),
232
+ numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
233
+ floorNo: t("FLOOR_NO"),
234
+ userType: t("USER_TYPE"),
235
+ tenantName: t("TENANT_NAME"),
236
+ tenantMobile: t("TENANT_MOBILE"),
237
+ verificationStatus: t("VERIFICATION_STATUS"),
238
+ houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
239
+ surveyorId: t("SURVEYOR_ID"),
240
+ supervisorId: t("SUPERVISOR_ID"),
241
+ vendorId: t("VENDOR_ID"),
242
+ assignmentType: t("ASSIGNMENT_TYPE"),
243
+ assignmentValue: t("ASSIGNMENT_VALUE"),
244
+ assignedTime: t("ASSIGNED_TIME"),
245
+ isSelfAssigned: t("IS_SELF_ASSIGNED"),
246
+ doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
247
+ panFilestoreId: t("PAN_FILESTORE_ID"),
248
+ documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
249
+ buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
250
+ propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
251
+ meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
252
+ modifiedBy: t("MODIFIED_BY"),
253
+ emailId: t("EMAIL_ID"),
254
+ dob: t("DOB"),
255
+ consumerType: t("CONSUMER_TYPE"),
256
+ createdTime: t("CREATED_TIME"),
257
+ lastModifiedTime: t("LAST_MODIFIED_TIME"),
258
+ meterLatitude: t("EKYC_METER_LATITUDE1"),
259
+ meterLongitude: t("EKYC_METER_LONGITUDE1")
260
+ });
261
+ const toTitleCase = str => {
262
+ if (!str) return "";
263
+ let cleanStr = String(str);
264
+ if (cleanStr.includes(".") && !cleanStr.includes("@") && isNaN(Number(cleanStr))) {
265
+ cleanStr = cleanStr.split(".").pop();
266
+ }
267
+ return cleanStr.toLowerCase().replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
268
+ };
269
+ const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
270
+ const translatedFields = ["meterMake", "meterLocation"];
271
+ const getEkycExcelData = function (consumerList, t) {
272
+ if (consumerList === void 0) {
273
+ consumerList = [];
274
+ }
275
+ if (t === void 0) {
276
+ t = k => k;
277
+ }
278
+ const headerMapping = createHeaderMapping(t);
279
+ const excelData = consumerList.map(item => {
280
+ const cleanObj = {};
281
+ const fullName = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
282
+ if (fullName) {
283
+ cleanObj[t("CONSUMER_NAME") || "Consumer Name"] = toTitleCase(fullName);
284
+ }
285
+ Object.keys(item).forEach(key => {
286
+ if (excludedKeys.includes(key)) return;
287
+ let val = item[key];
288
+ if (typeof val === "object" && val !== null) {
289
+ return;
290
+ }
291
+ if (String(val).toLowerCase() === "true") {
292
+ val = t("CS_YES");
293
+ } else if (String(val).toLowerCase() === "false") {
294
+ val = t("CS_NO");
295
+ }
296
+ const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
297
+ if (typeof val === "string" && translatedFields.includes(key)) {
298
+ cleanObj[friendlyHeader] = t(val);
299
+ } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
300
+ cleanObj[friendlyHeader] = toTitleCase(val);
301
+ } else {
302
+ cleanObj[friendlyHeader] = val;
303
+ }
304
+ });
305
+ return cleanObj;
306
+ });
307
+ return excelData;
308
+ };
309
+
149
310
  const getChartConstructor = () => {
150
311
  const C = Chartjs.Chart || Chartjs__default || Chartjs;
151
312
  return C;
@@ -207,163 +368,7 @@ const StatusCards = _ref => {
207
368
  alert(t("NO_DATA_FOUND") || "No data found for download.");
208
369
  return;
209
370
  }
210
- const excludedKeys = ["status", "source", "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"];
211
- const headerMapping = {
212
- kno: t("KNO"),
213
- firstName: t("FIRST_NAME"),
214
- middleName: t("MIDDLE_NAME"),
215
- lastName: t("LAST_NAME"),
216
- status: t("STATUS"),
217
- ekycStatus: t("EKYC_STATUS"),
218
- zoneName: t("ZONE"),
219
- zoneCode: t("ZONE_CODE"),
220
- assembly: t("EKYC_ASSEMBLY"),
221
- ward: t("WARD"),
222
- pincode: t("EKYC_PINCODE"),
223
- addressRaw: t("ADDRESS_RAW"),
224
- locality: t("EKYC_LOCALITY"),
225
- subLocality: t("SUB_LOCALITY"),
226
- flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
227
- streetName: t("STREET_NAME"),
228
- landmark: t("EKYC_LANDMARK"),
229
- city: t("CITY"),
230
- state: t("STATE"),
231
- addressType: t("ADDRESS_TYPE"),
232
- addressProofType: t("ADDRESS_PROOF_TYPE"),
233
- mobileNo: t("MOBILE_NUMBER"),
234
- alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
235
- whatsappNo: t("WHATSAPP_NO"),
236
- email: t("EMAIL"),
237
- landlineNo: t("LANDLINE_NO"),
238
- mrkey: t("MR_KEY"),
239
- mrcode: t("MR_CODE"),
240
- areacode: t("AREA_CODE"),
241
- source: t("SOURCE"),
242
- submittedAt: t("SUBMITTED_AT"),
243
- assignedAt: t("ASSIGNED_AT"),
244
- connectionType: t("CONNECTION_TYPE"),
245
- Type: t("CONSUMER_TYPE"),
246
- occupantType: t("OCCUPANT_TYPE"),
247
- knoCategory: t("KNO_CATEGORY"),
248
- approvedAt: t("APPROVED_AT"),
249
- gender: t("GENDER"),
250
- parentSpouse: t("PARENT_SPOUSE"),
251
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
252
- relationship: t("RELATIONSHIP"),
253
- informantName: t("INFORMANT_NAME"),
254
- informantRelation: t("INFORMANT_RELATION"),
255
- informantIs: t("INFORMANT_IS"),
256
- contactPerson: t("CONTACT_PERSON"),
257
- relation: t("RELATION"),
258
- entityName: t("ENTITY_NAME"),
259
- designation: t("DESIGNATION"),
260
- department: t("DEPARTMENT"),
261
- employeeId: t("EMPLOYEE_ID"),
262
- ownerMobile: t("OWNER_MOBILE"),
263
- ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
264
- consentGiven: t("CONSENT_GIVEN"),
265
- proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
266
- documentNumber: t("DOCUMENT_NUMBER"),
267
- noOfPerson: t("NUMBER_OF_PERSON"),
268
- latitude: t("LATITUDE"),
269
- longitude: t("LONGITUDE"),
270
- gpsValid: t("GPS_VALID"),
271
- meterNumber: t("METER_NUMBER"),
272
- meterMake: t("METER_MAKE"),
273
- meterStatus: t("METER_STATUS"),
274
- meterCondition: t("METER_CONDITION"),
275
- meterLocation: t("METER_LOCATION"),
276
- meterLocationAddress: t("METER_LOCATION_ADDRESS"),
277
- workingStatus: t("WORKING_STATUS"),
278
- sewerConnection: t("SEWER_CONNECTION"),
279
- septicTank: t("SEPTIC_TANK"),
280
- lastBillRaised: t("LAST_BILL_RAISED"),
281
- lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
282
- accessToMeter: t("ACCESS_TO_METER"),
283
- systemMeterId: t("SYSTEM_METER_ID"),
284
- lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
285
- waterConnectionYears: t("WATER_CONNECTION_YEARS"),
286
- sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
287
- pidNumber: t("PID_NUMBER"),
288
- propertyType: t("PROPERTY_TYPE"),
289
- subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
290
- noOfFloor: t("NO_OF_FLOOR"),
291
- noOfRooms: t("NO_OF_ROOMS"),
292
- noOfBeds: t("NO_OF_BEDS"),
293
- numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
294
- floorNo: t("FLOOR_NO"),
295
- userType: t("USER_TYPE"),
296
- tenantName: t("TENANT_NAME"),
297
- tenantMobile: t("TENANT_MOBILE"),
298
- verificationStatus: t("VERIFICATION_STATUS"),
299
- houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
300
- surveyorId: t("SURVEYOR_ID"),
301
- supervisorId: t("SUPERVISOR_ID"),
302
- vendorId: t("VENDOR_ID"),
303
- assignmentType: t("ASSIGNMENT_TYPE"),
304
- assignmentValue: t("ASSIGNMENT_VALUE"),
305
- assignedTime: t("ASSIGNED_TIME"),
306
- isSelfAssigned: t("IS_SELF_ASSIGNED"),
307
- doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
308
- panFilestoreId: t("PAN_FILESTORE_ID"),
309
- documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
310
- buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
311
- propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
312
- meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
313
- modifiedBy: t("MODIFIED_BY"),
314
- emailId: t("EMAIL_ID"),
315
- dob: t("DOB"),
316
- consumerType: t("CONSUMER_TYPE"),
317
- createdTime: t("CREATED_TIME"),
318
- lastModifiedTime: t("LAST_MODIFIED_TIME"),
319
- meterLatitude: t("EKYC_METER_LATITUDE1"),
320
- meterLongitude: t("EKYC_METER_LONGITUDE1")
321
- };
322
- const toTitleCase = str => {
323
- if (!str) return "";
324
- let cleanStr = String(str);
325
- if (cleanStr.includes(".") && !cleanStr.includes("@") && isNaN(Number(cleanStr))) {
326
- cleanStr = cleanStr.split(".").pop();
327
- }
328
- return cleanStr.toLowerCase().replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
329
- };
330
- const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
331
- const translatedFields = ["meterMake", "meterLocation"];
332
- const excelData = consumerList.map(item => {
333
- const cleanObj = {};
334
- const name = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
335
- if (name) {
336
- cleanObj[t("CONSUMER_NAME") || "Consumer Name"] = toTitleCase(name);
337
- }
338
- const keys = Object.keys(item);
339
- const orderedKeys = [...keys.filter(key => key !== "submittedAt"), ...(keys.includes("submittedAt") ? ["submittedAt"] : [])];
340
- orderedKeys.forEach(key => {
341
- if (excludedKeys.includes(key)) return;
342
- let val = item[key];
343
- if (key === "submittedAt" && val) {
344
- const date = new Date(Number(val));
345
- const pad = n => String(n).padStart(2, "0");
346
- val = pad(date.getDate()) + "/" + pad(date.getMonth() + 1) + "/" + date.getFullYear() + " " + pad(date.getHours()) + ":" + pad(date.getMinutes()) + ":" + pad(date.getSeconds());
347
- }
348
- if (typeof val === "object" && val !== null) {
349
- return;
350
- }
351
- if (String(val).toLowerCase() === "true") {
352
- val = t("CS_YES");
353
- } else if (String(val).toLowerCase() === "false") {
354
- val = t("CS_NO");
355
- }
356
- const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
357
- if (typeof val === "string" && translatedFields.includes(key)) {
358
- cleanObj[friendlyHeader] = t(val);
359
- } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
360
- cleanObj[friendlyHeader] = toTitleCase(val);
361
- } else {
362
- cleanObj[friendlyHeader] = val;
363
- }
364
- });
365
- return cleanObj;
366
- });
371
+ const excelData = getEkycExcelData(consumerList, t);
367
372
  const cleanFileName = "eKYC_All_Data_Admin_" + fullName.replace(/[^a-zA-Z0-9]/g, "_");
368
373
  Digit.Download.Excel(excelData, cleanFileName);
369
374
  });
@@ -623,33 +628,59 @@ const StatusCards = _ref => {
623
628
  }, formatNumber(item.value))))))));
624
629
  };
625
630
 
626
- const Dashboard = () => {
627
- const tenantId = Digit.ULBService.getCurrentTenantId();
628
- const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress({
629
- tenantId,
630
- allVendorsDetailed: true
631
- }, {
632
- enabled: true,
633
- keepPreviousData: true
634
- }),
635
- progressData = _Digit$Hooks$ekyc$use.data,
636
- isProgressLoading = _Digit$Hooks$ekyc$use.isLoading;
637
- const countData = React.useMemo(() => {
638
- return {
639
- total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
640
- completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
641
- pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
642
- rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnos) || 0,
643
- totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
644
- submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0,
645
- selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCount) || 0,
646
- overallProgressPercent: (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0
647
- };
648
- }, [progressData]);
649
- return isProgressLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(StatusCards, {
631
+ const Dashboard = _ref => {
632
+ let progressData = _ref.progressData,
633
+ isProgressLoading = _ref.isProgressLoading;
634
+ const countData = {
635
+ total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
636
+ completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
637
+ pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
638
+ rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnos) || 0,
639
+ totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
640
+ submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) || 0,
641
+ selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCount) || 0,
642
+ overallProgressPercent: (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0
643
+ };
644
+ return isProgressLoading ? /*#__PURE__*/React__default.createElement(EkycDashboardSkeleton, null) : /*#__PURE__*/React__default.createElement(StatusCards, {
650
645
  countData: countData
651
646
  });
652
647
  };
648
+ const EkycDashboardSkeleton = () => {
649
+ return /*#__PURE__*/React__default.createElement("div", {
650
+ className: "ekyc-employee-container"
651
+ }, /*#__PURE__*/React__default.createElement("div", {
652
+ className: "status-panel ekyc-skel-panel"
653
+ }, /*#__PURE__*/React__default.createElement("div", {
654
+ className: "status-cards-header"
655
+ }, /*#__PURE__*/React__default.createElement("div", {
656
+ className: "status-card-title"
657
+ }, /*#__PURE__*/React__default.createElement("div", {
658
+ className: "ekyc-skel ekyc-skel-icon"
659
+ }), /*#__PURE__*/React__default.createElement("div", {
660
+ className: "ekyc-skel ekyc-skel-title"
661
+ })), /*#__PURE__*/React__default.createElement("div", {
662
+ className: "ekyc-skel ekyc-skel-download-btn"
663
+ })), /*#__PURE__*/React__default.createElement("div", {
664
+ className: "status-breakdown-content"
665
+ }, /*#__PURE__*/React__default.createElement("div", {
666
+ className: "chart-wrapper"
667
+ }, /*#__PURE__*/React__default.createElement("div", {
668
+ className: "ekyc-skel ekyc-skel-donut"
669
+ })), /*#__PURE__*/React__default.createElement("div", {
670
+ className: "status-boxes"
671
+ }, [1, 2, 3, 4].map(item => /*#__PURE__*/React__default.createElement("div", {
672
+ className: "status-box",
673
+ key: item
674
+ }, /*#__PURE__*/React__default.createElement("div", {
675
+ className: "status-box-top"
676
+ }, /*#__PURE__*/React__default.createElement("div", {
677
+ className: "ekyc-skel ekyc-skel-dot"
678
+ }), /*#__PURE__*/React__default.createElement("div", {
679
+ className: "ekyc-skel ekyc-skel-name"
680
+ })), /*#__PURE__*/React__default.createElement("div", {
681
+ className: "ekyc-skel ekyc-skel-value"
682
+ })))))));
683
+ };
653
684
 
654
685
  const _excluded = ["tableConfig", "filterComponent"];
655
686
  const DesktopInbox = _ref => {
@@ -1075,11 +1106,6 @@ const downloadSurveyorPDF = function (_ref) {
1075
1106
  t = _ref.t;
1076
1107
  try {
1077
1108
  const tenantId = Digit.ULBService.getCurrentTenantId();
1078
- const initData = Digit.SessionStorage.get("initData");
1079
- const tenants = (initData === null || initData === void 0 ? void 0 : initData.tenants) || [];
1080
- const tenantInfo = tenants.find(tenant => tenant.code === tenantId);
1081
- const capitalize = text => text && text.substr(0, 1).toUpperCase() + text.substr(1);
1082
- const ulbCamel = ulb => ulb && ulb.toLowerCase().split(" ").map(capitalize).join(" ");
1083
1109
  const name = "Delhi Jal Board";
1084
1110
  const email = "contact@delhijalboard.nic.in";
1085
1111
  const phoneNumber = "+91-11-23538416";
@@ -1218,20 +1244,10 @@ const downloadSupervisorPDF = function (_ref2) {
1218
1244
  mobileNo: row.status || "N/A",
1219
1245
  zoneName: String(row.total || 0),
1220
1246
  ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
1221
- progress: row.progress || "0%"
1247
+ progress: row.progress || "0%",
1248
+ submittedAt: null
1222
1249
  };
1223
1250
  });
1224
- const originalToLocaleDateString = Date.prototype.toLocaleDateString;
1225
- let progressIndex = 0;
1226
- Date.prototype.toLocaleDateString = function () {
1227
- if (progressIndex < mappedRows.length) {
1228
- return mappedRows[progressIndex++].progress || "0%";
1229
- }
1230
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1231
- args[_key] = arguments[_key];
1232
- }
1233
- return originalToLocaleDateString.apply(this, args);
1234
- };
1235
1251
  const customT = key => {
1236
1252
  if (key === "KNO") return t("SURVEYOR_NAME") || "Surveyor Name";
1237
1253
  if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
@@ -1261,9 +1277,7 @@ const downloadSupervisorPDF = function (_ref2) {
1261
1277
  } else {
1262
1278
  console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
1263
1279
  }
1264
- } finally {
1265
- Date.prototype.toLocaleDateString = originalToLocaleDateString;
1266
- }
1280
+ } catch (_unused) {}
1267
1281
  return Promise.resolve();
1268
1282
  } catch (e) {
1269
1283
  return Promise.reject(e);
@@ -1334,17 +1348,6 @@ const downloadVendorPDF = function (_ref3) {
1334
1348
  ekycStatus: (row.completed || 0) + " / " + (row.pending || 0),
1335
1349
  progress: row.progress || "0%"
1336
1350
  }));
1337
- const originalToLocaleDateString = Date.prototype.toLocaleDateString;
1338
- let progressIndex = 0;
1339
- Date.prototype.toLocaleDateString = function () {
1340
- if (progressIndex < mappedRows.length) {
1341
- return mappedRows[progressIndex++].progress || "0%";
1342
- }
1343
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1344
- args[_key2] = arguments[_key2];
1345
- }
1346
- return originalToLocaleDateString.apply(this, args);
1347
- };
1348
1351
  const customT = key => {
1349
1352
  if (key === "KNO") return t("SUPERVISOR_NAME") || "Supervisor Name";
1350
1353
  if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
@@ -1373,9 +1376,7 @@ const downloadVendorPDF = function (_ref3) {
1373
1376
  } else {
1374
1377
  console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
1375
1378
  }
1376
- } finally {
1377
- Date.prototype.toLocaleDateString = originalToLocaleDateString;
1378
- }
1379
+ } catch (_unused2) {}
1379
1380
  return Promise.resolve();
1380
1381
  } catch (e) {
1381
1382
  return Promise.reject(e);
@@ -1433,37 +1434,37 @@ const VendorDetailsCard = () => {
1433
1434
  return [{
1434
1435
  label: "TOTAL_KNOS",
1435
1436
  count: totalKnos,
1436
- color: "#0B2559",
1437
+ color: "#2563EB",
1437
1438
  type: "today",
1438
1439
  icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaDatabase, null)
1439
1440
  }, {
1440
1441
  label: "TOTAL_EKYC_APPLICATIONS",
1441
1442
  count: totalAssignments,
1442
- color: "#0B2559",
1443
+ color: "#0891B2",
1443
1444
  type: "today",
1444
1445
  icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaFileAlt, null)
1445
1446
  }, {
1446
1447
  label: "EKYC_SUBMITTED_BY_VENDORS",
1447
1448
  count: submittedKnos,
1448
- color: "#10B981",
1449
+ color: "#0D9488",
1449
1450
  type: "month",
1450
1451
  icon: /*#__PURE__*/React__default.createElement(fa.FaBuilding, null)
1451
1452
  }, {
1452
1453
  label: "EKYC_SUBMITTED_BY_CITIZEN",
1453
1454
  count: selfEkycCount,
1454
- color: "#10B981",
1455
+ color: "#7C3AED",
1455
1456
  type: "month",
1456
1457
  icon: /*#__PURE__*/React__default.createElement(fa.FaUser, null)
1457
1458
  }, {
1458
1459
  label: "PENDING_APPLICATIONS",
1459
1460
  count: pendingKnos,
1460
- color: "#F59E0B",
1461
+ color: "#EA580C",
1461
1462
  type: "pending",
1462
1463
  icon: /*#__PURE__*/React__default.createElement(fa.FaClock, null)
1463
1464
  }, {
1464
1465
  label: "OVERALL_PROGRESS",
1465
1466
  count: progressPercent + "%",
1466
- color: "#A855F7",
1467
+ color: "#DB2777",
1467
1468
  type: "progress",
1468
1469
  icon: /*#__PURE__*/React__default.createElement(fa.FaChartLine, null)
1469
1470
  }];
@@ -1498,156 +1499,7 @@ const VendorDetailsCard = () => {
1498
1499
  alert(t("NO_EKYC_DATA_FOUND") || "No eKYC data found to download.");
1499
1500
  return;
1500
1501
  }
1501
- const excludedKeys = ["status", "source", "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"];
1502
- const headerMapping = {
1503
- kno: t("KNO"),
1504
- firstName: t("FIRST_NAME"),
1505
- middleName: t("MIDDLE_NAME"),
1506
- lastName: t("LAST_NAME"),
1507
- status: t("STATUS"),
1508
- ekycStatus: t("EKYC_STATUS"),
1509
- zoneName: t("ZONE"),
1510
- zoneCode: t("ZONE_CODE"),
1511
- assembly: t("EKYC_ASSEMBLY"),
1512
- ward: t("WARD"),
1513
- pincode: t("EKYC_PINCODE"),
1514
- addressRaw: t("ADDRESS_RAW"),
1515
- locality: t("EKYC_LOCALITY"),
1516
- subLocality: t("SUB_LOCALITY"),
1517
- flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
1518
- streetName: t("STREET_NAME"),
1519
- landmark: t("EKYC_LANDMARK"),
1520
- city: t("CITY"),
1521
- state: t("STATE"),
1522
- addressType: t("ADDRESS_TYPE"),
1523
- addressProofType: t("ADDRESS_PROOF_TYPE"),
1524
- mobileNo: t("MOBILE_NUMBER"),
1525
- alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
1526
- whatsappNo: t("WHATSAPP_NO"),
1527
- email: t("EMAIL"),
1528
- landlineNo: t("LANDLINE_NO"),
1529
- mrkey: t("MR_KEY"),
1530
- mrcode: t("MR_CODE"),
1531
- areacode: t("AREA_CODE"),
1532
- source: t("SOURCE"),
1533
- submittedAt: t("SUBMITTED_AT"),
1534
- assignedAt: t("ASSIGNED_AT"),
1535
- connectionType: t("CONNECTION_TYPE"),
1536
- Type: t("CONSUMER_TYPE"),
1537
- occupantType: t("OCCUPANT_TYPE"),
1538
- knoCategory: t("KNO_CATEGORY"),
1539
- approvedAt: t("APPROVED_AT"),
1540
- gender: t("GENDER"),
1541
- parentSpouse: t("PARENT_SPOUSE"),
1542
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
1543
- relationship: t("RELATIONSHIP"),
1544
- informantName: t("INFORMANT_NAME"),
1545
- informantRelation: t("INFORMANT_RELATION"),
1546
- informantIs: t("INFORMANT_IS"),
1547
- contactPerson: t("CONTACT_PERSON"),
1548
- relation: t("RELATION"),
1549
- entityName: t("ENTITY_NAME"),
1550
- designation: t("DESIGNATION"),
1551
- department: t("DEPARTMENT"),
1552
- employeeId: t("EMPLOYEE_ID"),
1553
- ownerMobile: t("OWNER_MOBILE"),
1554
- ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
1555
- consentGiven: t("CONSENT_GIVEN"),
1556
- proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
1557
- documentNumber: t("DOCUMENT_NUMBER"),
1558
- noOfPerson: t("NUMBER_OF_PERSON"),
1559
- latitude: t("LATITUDE"),
1560
- longitude: t("LONGITUDE"),
1561
- gpsValid: t("GPS_VALID"),
1562
- meterNumber: t("METER_NUMBER"),
1563
- meterMake: t("METER_MAKE"),
1564
- meterStatus: t("METER_STATUS"),
1565
- meterCondition: t("METER_CONDITION"),
1566
- meterLocation: t("METER_LOCATION"),
1567
- meterLocationAddress: t("METER_LOCATION_ADDRESS"),
1568
- workingStatus: t("WORKING_STATUS"),
1569
- sewerConnection: t("SEWER_CONNECTION"),
1570
- septicTank: t("SEPTIC_TANK"),
1571
- lastBillRaised: t("LAST_BILL_RAISED"),
1572
- lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
1573
- accessToMeter: t("ACCESS_TO_METER"),
1574
- systemMeterId: t("SYSTEM_METER_ID"),
1575
- lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
1576
- waterConnectionYears: t("WATER_CONNECTION_YEARS"),
1577
- sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
1578
- pidNumber: t("PID_NUMBER"),
1579
- propertyType: t("PROPERTY_TYPE"),
1580
- subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
1581
- noOfFloor: t("NO_OF_FLOOR"),
1582
- noOfRooms: t("NO_OF_ROOMS"),
1583
- noOfBeds: t("NO_OF_BEDS"),
1584
- numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
1585
- floorNo: t("FLOOR_NO"),
1586
- userType: t("USER_TYPE"),
1587
- tenantName: t("TENANT_NAME"),
1588
- tenantMobile: t("TENANT_MOBILE"),
1589
- verificationStatus: t("VERIFICATION_STATUS"),
1590
- houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
1591
- surveyorId: t("SURVEYOR_ID"),
1592
- supervisorId: t("SUPERVISOR_ID"),
1593
- vendorId: t("VENDOR_ID"),
1594
- assignmentType: t("ASSIGNMENT_TYPE"),
1595
- assignmentValue: t("ASSIGNMENT_VALUE"),
1596
- assignedTime: t("ASSIGNED_TIME"),
1597
- isSelfAssigned: t("IS_SELF_ASSIGNED"),
1598
- doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
1599
- panFilestoreId: t("PAN_FILESTORE_ID"),
1600
- documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
1601
- buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
1602
- propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
1603
- meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
1604
- modifiedBy: t("MODIFIED_BY"),
1605
- emailId: t("EMAIL_ID"),
1606
- dob: t("DOB"),
1607
- consumerType: t("CONSUMER_TYPE"),
1608
- createdTime: t("CREATED_TIME"),
1609
- lastModifiedTime: t("LAST_MODIFIED_TIME"),
1610
- meterLatitude: t("EKYC_METER_LATITUDE1"),
1611
- meterLongitude: t("EKYC_METER_LONGITUDE1")
1612
- };
1613
- const toTitleCase = str => {
1614
- if (!str) return "";
1615
- let cleanStr = String(str);
1616
- if (cleanStr.includes(".") && !cleanStr.includes("@") && isNaN(Number(cleanStr))) {
1617
- cleanStr = cleanStr.split(".").pop();
1618
- }
1619
- return cleanStr.toLowerCase().replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
1620
- };
1621
- const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
1622
- const translatedFields = ["meterMake", "meterLocation"];
1623
- const excelData = consumerList.map(item => {
1624
- const cleanObj = {};
1625
- const fullName = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
1626
- if (fullName) {
1627
- cleanObj[t("CONSUMER_NAME") || "Consumer Name"] = toTitleCase(fullName);
1628
- }
1629
- Object.keys(item).forEach(key => {
1630
- if (excludedKeys.includes(key)) return;
1631
- let val = item[key];
1632
- if (typeof val === "object" && val !== null) {
1633
- return;
1634
- }
1635
- if (String(val).toLowerCase() === "true") {
1636
- val = t("CS_YES");
1637
- } else if (String(val).toLowerCase() === "false") {
1638
- val = t("CS_NO");
1639
- }
1640
- const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
1641
- if (typeof val === "string" && translatedFields.includes(key)) {
1642
- cleanObj[friendlyHeader] = t(val);
1643
- } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
1644
- cleanObj[friendlyHeader] = toTitleCase(val);
1645
- } else {
1646
- cleanObj[friendlyHeader] = val;
1647
- }
1648
- });
1649
- return cleanObj;
1650
- });
1502
+ const excelData = getEkycExcelData(consumerList, t);
1651
1503
  const cleanFileName = "eKYC_Data_" + vendorName.replace(/[^a-zA-Z0-9]/g, "_");
1652
1504
  Digit.Download.Excel(excelData, cleanFileName);
1653
1505
  });
@@ -1735,7 +1587,7 @@ const VendorDetailsCard = () => {
1735
1587
  accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
1736
1588
  id: "totalEkycApplications"
1737
1589
  }, {
1738
- Header: t("EKYC_COMPLETED") || "eKYC Completed",
1590
+ Header: t("EKYC_SUBMITTED") || "eKYC Completed",
1739
1591
  accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
1740
1592
  id: "ekycCompleted"
1741
1593
  }, {
@@ -2734,7 +2586,7 @@ const Inbox = _ref2 => {
2734
2586
  type: "today",
2735
2587
  icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
2736
2588
  }, {
2737
- label: t("EKYC_COMPLETED"),
2589
+ label: t("EKYC_SUBMITTED_TITLE"),
2738
2590
  count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
2739
2591
  color: "#10B981",
2740
2592
  type: "month",
@@ -4724,44 +4576,83 @@ const EKYCForm = _ref => {
4724
4576
  }))))));
4725
4577
  };
4726
4578
 
4579
+ const VendorCardSkeleton = () => {
4580
+ return /*#__PURE__*/React__default.createElement("div", {
4581
+ className: "vendor-perf-card vendor-perf-card-skeleton"
4582
+ }, /*#__PURE__*/React__default.createElement("div", {
4583
+ className: "vendor-card-header"
4584
+ }, /*#__PURE__*/React__default.createElement("div", {
4585
+ className: "vendor-title"
4586
+ }, /*#__PURE__*/React__default.createElement("div", {
4587
+ className: "skeleton skeleton-icon"
4588
+ }), /*#__PURE__*/React__default.createElement("div", {
4589
+ className: "skeleton-title-wrapper"
4590
+ }, /*#__PURE__*/React__default.createElement("div", {
4591
+ className: "skeleton skeleton-title"
4592
+ }), /*#__PURE__*/React__default.createElement("div", {
4593
+ className: "skeleton skeleton-subtitle"
4594
+ }))), /*#__PURE__*/React__default.createElement("div", {
4595
+ className: "skeleton skeleton-kno-badge"
4596
+ })), /*#__PURE__*/React__default.createElement("div", {
4597
+ className: "progress-section"
4598
+ }, /*#__PURE__*/React__default.createElement("div", {
4599
+ className: "skeleton skeleton-progress-bar"
4600
+ }), /*#__PURE__*/React__default.createElement("div", {
4601
+ className: "progress-label"
4602
+ }, /*#__PURE__*/React__default.createElement("div", {
4603
+ className: "skeleton skeleton-progress-label"
4604
+ }), /*#__PURE__*/React__default.createElement("div", {
4605
+ className: "skeleton skeleton-progress-value"
4606
+ }))), /*#__PURE__*/React__default.createElement("div", {
4607
+ className: "stats-grid"
4608
+ }, [1, 2, 3].map(item => /*#__PURE__*/React__default.createElement("div", {
4609
+ className: "stat-item",
4610
+ key: item
4611
+ }, /*#__PURE__*/React__default.createElement("div", {
4612
+ className: "skeleton skeleton-stat-value"
4613
+ }), /*#__PURE__*/React__default.createElement("div", {
4614
+ className: "skeleton skeleton-stat-label"
4615
+ })))), /*#__PURE__*/React__default.createElement("div", {
4616
+ className: "knos-summary"
4617
+ }, [1, 2, 3].map(item => /*#__PURE__*/React__default.createElement("div", {
4618
+ className: "kno-stat",
4619
+ key: item
4620
+ }, /*#__PURE__*/React__default.createElement("div", {
4621
+ className: "skeleton skeleton-status-label"
4622
+ }), /*#__PURE__*/React__default.createElement("div", {
4623
+ className: "skeleton skeleton-status-value"
4624
+ })))));
4625
+ };
4626
+ const VendorPerformanceSkeleton = () => {
4627
+ return /*#__PURE__*/React__default.createElement("div", {
4628
+ className: "vendors-grid"
4629
+ }, [1, 2, 3].map(item => /*#__PURE__*/React__default.createElement(VendorCardSkeleton, {
4630
+ key: item
4631
+ })));
4632
+ };
4727
4633
  const AdminDashboard = () => {
4728
4634
  const _useTranslation = reactI18next.useTranslation(),
4729
4635
  t = _useTranslation.t;
4730
4636
  const history = reactRouterDom.useHistory();
4731
- let tenantId = Digit.ULBService.getCurrentTenantId();
4732
- if (!tenantId || tenantId === "dl") {
4733
- tenantId = "dl.djb";
4734
- }
4735
- const _Digit$Hooks$fsm$useD = Digit.Hooks.fsm.useDsoSearch(tenantId, {
4736
- status: "ACTIVE"
4737
- }, {
4738
- enabled: !!tenantId
4739
- }),
4740
- vendorSearchResponse = _Digit$Hooks$fsm$useD.data,
4741
- isVendorSearchLoading = _Digit$Hooks$fsm$useD.isLoading;
4742
- const allVendorIds = React.useMemo(() => {
4743
- if (!vendorSearchResponse) return [];
4744
- return vendorSearchResponse.map(v => {
4745
- const dso = v.dsoDetails || v;
4746
- return dso.id || dso.vendorId || v.id || v.vendorId;
4747
- }).filter(Boolean);
4748
- }, [vendorSearchResponse]);
4749
4637
  const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress({
4750
- tenantId,
4638
+ tenantId: "dl.djb",
4751
4639
  allVendorsDetailed: true
4752
4640
  }, {
4753
- enabled: !!tenantId && allVendorIds.length > 0,
4641
+ enabled: true,
4754
4642
  keepPreviousData: true
4755
4643
  }),
4756
4644
  progressData = _Digit$Hooks$ekyc$use.data,
4757
4645
  isProgressLoading = _Digit$Hooks$ekyc$use.isLoading;
4758
4646
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
4759
4647
  className: "surveyor-dashboard"
4760
- }, /*#__PURE__*/React__default.createElement(Dashboard, null), /*#__PURE__*/React__default.createElement("div", {
4648
+ }, /*#__PURE__*/React__default.createElement(Dashboard, {
4649
+ isProgressLoading: isProgressLoading,
4650
+ progressData: progressData
4651
+ }), /*#__PURE__*/React__default.createElement("div", {
4761
4652
  className: "admin-performance-section"
4762
4653
  }, /*#__PURE__*/React__default.createElement("h3", {
4763
4654
  className: "section-title"
4764
- }, t("EKYC_VENDORS_PERFORMANCE") || "eKYC Vendors Performance"), isVendorSearchLoading || isProgressLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
4655
+ }, t("EKYC_VENDORS_PERFORMANCE") || "eKYC Vendors Performance"), isProgressLoading ? /*#__PURE__*/React__default.createElement(VendorPerformanceSkeleton, null) : /*#__PURE__*/React__default.createElement("div", {
4765
4656
  className: "vendors-grid"
4766
4657
  }, Array.isArray(progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.length) && (progressData === null || progressData === void 0 ? void 0 : progressData.vendorReports.map(vendor => {
4767
4658
  var _vendor$vendorName, _vendor$vendorName$;
@@ -4828,7 +4719,7 @@ const AdminDashboard = () => {
4828
4719
  className: "kno-stat rejected"
4829
4720
  }, /*#__PURE__*/React__default.createElement("span", {
4830
4721
  className: "kno-label"
4831
- }, t("EKYC_SUBMITTED_BY_CITIZEN") || "SUBMITTED BY CITIZEN"), /*#__PURE__*/React__default.createElement("strong", null, vendor.selfEkycCountInZones))));
4722
+ }, t("EKYC_SUBMITTED_BY_CITIZENS").toLowerCase() || "Submitted by citizen"), /*#__PURE__*/React__default.createElement("strong", null, vendor.selfEkycCountInZones))));
4832
4723
  })))));
4833
4724
  };
4834
4725
 
@@ -5042,7 +4933,7 @@ const SupervisorDetailsCard = () => {
5042
4933
  type: "today",
5043
4934
  icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
5044
4935
  }, {
5045
- label: "EKYC_COMPLETED",
4936
+ label: "EKYC_SUBMITTED_TITLE",
5046
4937
  count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.submittedKnos) || 0,
5047
4938
  color: "#10B981",
5048
4939
  type: "month",
@@ -5111,7 +5002,7 @@ const SupervisorDetailsCard = () => {
5111
5002
  accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
5112
5003
  id: "totalEkycApplications"
5113
5004
  }, {
5114
- Header: t("EKYC_COMPLETED") || "eKYC Completed",
5005
+ Header: t("EKYC_SUBMITTED") || "eKYC Completed",
5115
5006
  accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
5116
5007
  id: "ekycCompleted"
5117
5008
  }, {
@@ -5236,156 +5127,7 @@ const SupervisorDetailsCard = () => {
5236
5127
  alert(t("NO_DATA_FOUND") || "No data found for download.");
5237
5128
  return;
5238
5129
  }
5239
- const excludedKeys = ["status", "source", "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"];
5240
- const headerMapping = {
5241
- kno: t("KNO"),
5242
- firstName: t("FIRST_NAME"),
5243
- middleName: t("MIDDLE_NAME"),
5244
- lastName: t("LAST_NAME"),
5245
- status: t("STATUS"),
5246
- ekycStatus: t("EKYC_STATUS"),
5247
- zoneName: t("ZONE"),
5248
- zoneCode: t("ZONE_CODE"),
5249
- assembly: t("EKYC_ASSEMBLY"),
5250
- ward: t("WARD"),
5251
- pincode: t("EKYC_PINCODE"),
5252
- addressRaw: t("ADDRESS_RAW"),
5253
- locality: t("EKYC_LOCALITY"),
5254
- subLocality: t("SUB_LOCALITY"),
5255
- flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
5256
- streetName: t("STREET_NAME"),
5257
- landmark: t("EKYC_LANDMARK"),
5258
- city: t("CITY"),
5259
- state: t("STATE"),
5260
- addressType: t("ADDRESS_TYPE"),
5261
- addressProofType: t("ADDRESS_PROOF_TYPE"),
5262
- mobileNo: t("MOBILE_NUMBER"),
5263
- alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
5264
- whatsappNo: t("WHATSAPP_NO"),
5265
- email: t("EMAIL"),
5266
- landlineNo: t("LANDLINE_NO"),
5267
- mrkey: t("MR_KEY"),
5268
- mrcode: t("MR_CODE"),
5269
- areacode: t("AREA_CODE"),
5270
- source: t("SOURCE"),
5271
- submittedAt: t("SUBMITTED_AT"),
5272
- assignedAt: t("ASSIGNED_AT"),
5273
- connectionType: t("CONNECTION_TYPE"),
5274
- Type: t("CONSUMER_TYPE"),
5275
- occupantType: t("OCCUPANT_TYPE"),
5276
- knoCategory: t("KNO_CATEGORY"),
5277
- approvedAt: t("APPROVED_AT"),
5278
- gender: t("GENDER"),
5279
- parentSpouse: t("PARENT_SPOUSE"),
5280
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
5281
- relationship: t("RELATIONSHIP"),
5282
- informantName: t("INFORMANT_NAME"),
5283
- informantRelation: t("INFORMANT_RELATION"),
5284
- informantIs: t("INFORMANT_IS"),
5285
- contactPerson: t("CONTACT_PERSON"),
5286
- relation: t("RELATION"),
5287
- entityName: t("ENTITY_NAME"),
5288
- designation: t("DESIGNATION"),
5289
- department: t("DEPARTMENT"),
5290
- employeeId: t("EMPLOYEE_ID"),
5291
- ownerMobile: t("OWNER_MOBILE"),
5292
- ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
5293
- consentGiven: t("CONSENT_GIVEN"),
5294
- proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
5295
- documentNumber: t("DOCUMENT_NUMBER"),
5296
- noOfPerson: t("NUMBER_OF_PERSON"),
5297
- latitude: t("LATITUDE"),
5298
- longitude: t("LONGITUDE"),
5299
- gpsValid: t("GPS_VALID"),
5300
- meterNumber: t("METER_NUMBER"),
5301
- meterMake: t("METER_MAKE"),
5302
- meterStatus: t("METER_STATUS"),
5303
- meterCondition: t("METER_CONDITION"),
5304
- meterLocation: t("METER_LOCATION"),
5305
- meterLocationAddress: t("METER_LOCATION_ADDRESS"),
5306
- workingStatus: t("WORKING_STATUS"),
5307
- sewerConnection: t("SEWER_CONNECTION"),
5308
- septicTank: t("SEPTIC_TANK"),
5309
- lastBillRaised: t("LAST_BILL_RAISED"),
5310
- lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
5311
- accessToMeter: t("ACCESS_TO_METER"),
5312
- systemMeterId: t("SYSTEM_METER_ID"),
5313
- lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
5314
- waterConnectionYears: t("WATER_CONNECTION_YEARS"),
5315
- sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
5316
- pidNumber: t("PID_NUMBER"),
5317
- propertyType: t("PROPERTY_TYPE"),
5318
- subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
5319
- noOfFloor: t("NO_OF_FLOOR"),
5320
- noOfRooms: t("NO_OF_ROOMS"),
5321
- noOfBeds: t("NO_OF_BEDS"),
5322
- numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
5323
- floorNo: t("FLOOR_NO"),
5324
- userType: t("USER_TYPE"),
5325
- tenantName: t("TENANT_NAME"),
5326
- tenantMobile: t("TENANT_MOBILE"),
5327
- verificationStatus: t("VERIFICATION_STATUS"),
5328
- houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
5329
- surveyorId: t("SURVEYOR_ID"),
5330
- supervisorId: t("SUPERVISOR_ID"),
5331
- vendorId: t("VENDOR_ID"),
5332
- assignmentType: t("ASSIGNMENT_TYPE"),
5333
- assignmentValue: t("ASSIGNMENT_VALUE"),
5334
- assignedTime: t("ASSIGNED_TIME"),
5335
- isSelfAssigned: t("IS_SELF_ASSIGNED"),
5336
- doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
5337
- panFilestoreId: t("PAN_FILESTORE_ID"),
5338
- documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
5339
- buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
5340
- propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
5341
- meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
5342
- modifiedBy: t("MODIFIED_BY"),
5343
- emailId: t("EMAIL_ID"),
5344
- dob: t("DOB"),
5345
- consumerType: t("CONSUMER_TYPE"),
5346
- createdTime: t("CREATED_TIME"),
5347
- lastModifiedTime: t("LAST_MODIFIED_TIME"),
5348
- meterLatitude: t("EKYC_METER_LATITUDE1"),
5349
- meterLongitude: t("EKYC_METER_LONGITUDE1")
5350
- };
5351
- const toTitleCase = str => {
5352
- if (!str) return "";
5353
- let cleanStr = String(str);
5354
- if (cleanStr.includes(".") && !cleanStr.includes("@") && isNaN(Number(cleanStr))) {
5355
- cleanStr = cleanStr.split(".").pop();
5356
- }
5357
- return cleanStr.toLowerCase().replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
5358
- };
5359
- const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
5360
- const translatedFields = ["meterMake", "meterLocation"];
5361
- const excelData = consumerList.map(item => {
5362
- const cleanObj = {};
5363
- const fullName = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
5364
- if (fullName) {
5365
- cleanObj[t("CONSUMER_NAME") || "Consumer Name"] = toTitleCase(fullName);
5366
- }
5367
- Object.keys(item).forEach(key => {
5368
- if (excludedKeys.includes(key)) return;
5369
- let val = item[key];
5370
- if (typeof val === "object" && val !== null) {
5371
- return;
5372
- }
5373
- if (String(val).toLowerCase() === "true") {
5374
- val = t("CS_YES");
5375
- } else if (String(val).toLowerCase() === "false") {
5376
- val = t("CS_NO");
5377
- }
5378
- const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
5379
- if (typeof val === "string" && translatedFields.includes(key)) {
5380
- cleanObj[friendlyHeader] = t(val);
5381
- } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
5382
- cleanObj[friendlyHeader] = toTitleCase(val);
5383
- } else {
5384
- cleanObj[friendlyHeader] = val;
5385
- }
5386
- });
5387
- return cleanObj;
5388
- });
5130
+ const excelData = getEkycExcelData(consumerList, t);
5389
5131
  const cleanFileName = "eKYC_Data_Supervisor_" + fullName.replace(/[^a-zA-Z0-9]/g, "_");
5390
5132
  Digit.Download.Excel(excelData, cleanFileName);
5391
5133
  });
@@ -6427,148 +6169,7 @@ const SurveyorDetailsDashboard = () => {
6427
6169
  alert(t("NO_DATA_FOUND") || "No data found for download.");
6428
6170
  return;
6429
6171
  }
6430
- const excludedKeys = ["status", "source", "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"];
6431
- const headerMapping = {
6432
- kno: t("KNO"),
6433
- firstName: t("FIRST_NAME"),
6434
- middleName: t("MIDDLE_NAME"),
6435
- lastName: t("LAST_NAME"),
6436
- status: t("STATUS"),
6437
- ekycStatus: t("EKYC_STATUS"),
6438
- zoneName: t("ZONE"),
6439
- zoneCode: t("ZONE_CODE"),
6440
- assembly: t("EKYC_ASSEMBLY"),
6441
- ward: t("WARD"),
6442
- pincode: t("EKYC_PINCODE"),
6443
- addressRaw: t("ADDRESS_RAW"),
6444
- locality: t("EKYC_LOCALITY"),
6445
- subLocality: t("SUB_LOCALITY"),
6446
- flatHouseNumber: t("FLAT_HOUSE_NUMBER"),
6447
- streetName: t("STREET_NAME"),
6448
- landmark: t("EKYC_LANDMARK"),
6449
- city: t("CITY"),
6450
- state: t("STATE"),
6451
- addressType: t("ADDRESS_TYPE"),
6452
- addressProofType: t("ADDRESS_PROOF_TYPE"),
6453
- mobileNo: t("MOBILE_NUMBER"),
6454
- alternateMobileNo: t("ALTERNATE_MOBILE_NUMBER"),
6455
- whatsappNo: t("WHATSAPP_NO"),
6456
- email: t("EMAIL"),
6457
- landlineNo: t("LANDLINE_NO"),
6458
- mrkey: t("MR_KEY"),
6459
- mrcode: t("MR_CODE"),
6460
- areacode: t("AREA_CODE"),
6461
- source: t("SOURCE"),
6462
- submittedAt: t("SUBMITTED_AT"),
6463
- assignedAt: t("ASSIGNED_AT"),
6464
- connectionType: t("CONNECTION_TYPE"),
6465
- Type: t("CONSUMER_TYPE"),
6466
- occupantType: t("OCCUPANT_TYPE"),
6467
- knoCategory: t("KNO_CATEGORY"),
6468
- approvedAt: t("APPROVED_AT"),
6469
- gender: t("GENDER"),
6470
- parentSpouse: t("PARENT_SPOUSE"),
6471
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
6472
- relationship: t("RELATIONSHIP"),
6473
- informantName: t("INFORMANT_NAME"),
6474
- informantRelation: t("INFORMANT_RELATION"),
6475
- informantIs: t("INFORMANT_IS"),
6476
- contactPerson: t("CONTACT_PERSON"),
6477
- relation: t("RELATION"),
6478
- entityName: t("ENTITY_NAME"),
6479
- designation: t("DESIGNATION"),
6480
- department: t("DEPARTMENT"),
6481
- employeeId: t("EMPLOYEE_ID"),
6482
- ownerMobile: t("OWNER_MOBILE"),
6483
- ownerVerificationDone: t("OWNER_VERIFICATION_DONE"),
6484
- consentGiven: t("CONSENT_GIVEN"),
6485
- proofOfIdentityType: t("PROOF_OF_IDENTITY_TYPE"),
6486
- documentNumber: t("DOCUMENT_NUMBER"),
6487
- noOfPerson: t("NUMBER_OF_PERSON"),
6488
- latitude: t("LATITUDE"),
6489
- longitude: t("LONGITUDE"),
6490
- gpsValid: t("GPS_VALID"),
6491
- meterNumber: t("METER_NUMBER"),
6492
- meterMake: t("METER_MAKE"),
6493
- meterStatus: t("METER_STATUS"),
6494
- meterCondition: t("METER_CONDITION"),
6495
- meterLocation: t("METER_LOCATION"),
6496
- meterLocationAddress: t("METER_LOCATION_ADDRESS"),
6497
- workingStatus: t("WORKING_STATUS"),
6498
- sewerConnection: t("SEWER_CONNECTION"),
6499
- septicTank: t("SEPTIC_TANK"),
6500
- lastBillRaised: t("LAST_BILL_RAISED"),
6501
- lastBillReceivedDate: t("LAST_BILL_RECEIVED_DATE"),
6502
- accessToMeter: t("ACCESS_TO_METER"),
6503
- systemMeterId: t("SYSTEM_METER_ID"),
6504
- lastBillNotRaisedReason: t("LAST_BILL_NOT_RAISED_REASON"),
6505
- waterConnectionYears: t("WATER_CONNECTION_YEARS"),
6506
- sewerConnectionYears: t("SEWER_CONNECTION_YEARS"),
6507
- pidNumber: t("PID_NUMBER"),
6508
- propertyType: t("PROPERTY_TYPE"),
6509
- subPropertyCategory: t("SUB_PROPERTY_CATEGORY"),
6510
- noOfFloor: t("NO_OF_FLOOR"),
6511
- noOfRooms: t("NO_OF_ROOMS"),
6512
- noOfBeds: t("NO_OF_BEDS"),
6513
- numberOfDwellingUnits: t("NUMBER_OF_DWELLING_UNITS"),
6514
- floorNo: t("FLOOR_NO"),
6515
- userType: t("USER_TYPE"),
6516
- tenantName: t("TENANT_NAME"),
6517
- tenantMobile: t("TENANT_MOBILE"),
6518
- verificationStatus: t("VERIFICATION_STATUS"),
6519
- houseBuiltDuration: t("HOUSE_BUILT_DURATION"),
6520
- surveyorId: t("SURVEYOR_ID"),
6521
- supervisorId: t("SUPERVISOR_ID"),
6522
- vendorId: t("VENDOR_ID"),
6523
- assignmentType: t("ASSIGNMENT_TYPE"),
6524
- assignmentValue: t("ASSIGNMENT_VALUE"),
6525
- assignedTime: t("ASSIGNED_TIME"),
6526
- isSelfAssigned: t("IS_SELF_ASSIGNED"),
6527
- doorPhotoFilestoreId: t("DOOR_PHOTO_FILESTORE_ID"),
6528
- panFilestoreId: t("PAN_FILESTORE_ID"),
6529
- documentProofFilestoreId: t("DOCUMENT_PROOF_FILESTORE_ID"),
6530
- buildingImageFileStoreId: t("BUILDING_IMAGE_FILESTORE_ID"),
6531
- propertyDocumentFileStoreId: t("PROPERTY_DOCUMENT_FILESTORE_ID"),
6532
- meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
6533
- modifiedBy: t("MODIFIED_BY"),
6534
- emailId: t("EMAIL_ID"),
6535
- dob: t("DOB"),
6536
- consumerType: t("CONSUMER_TYPE"),
6537
- createdTime: t("CREATED_TIME"),
6538
- lastModifiedTime: t("LAST_MODIFIED_TIME"),
6539
- meterLatitude: t("EKYC_METER_LATITUDE1"),
6540
- meterLongitude: t("EKYC_METER_LONGITUDE1")
6541
- };
6542
- const skipTitleCase = ["kno", "mobileNumber", "emailId", "email", "pincode", "mrkey", "dob", "createdTime", "lastModifiedTime", "meterLatitude", "meterLongitude"];
6543
- const translatedFields = ["meterMake", "meterLocation"];
6544
- const excelData = consumerList.map(item => {
6545
- const cleanObj = {};
6546
- const fullName = [item.firstName, item.middleName, item.lastName].filter(Boolean).join(" ");
6547
- if (fullName) {
6548
- cleanObj[t("CONSUMER_NAME") || "Consumer Name"] = toTitleCase(fullName);
6549
- }
6550
- Object.keys(item).forEach(key => {
6551
- if (excludedKeys.includes(key)) return;
6552
- let val = item[key];
6553
- if (typeof val === "object" && val !== null) {
6554
- return;
6555
- }
6556
- if (String(val).toLowerCase() === "true") {
6557
- val = t("CS_YES");
6558
- } else if (String(val).toLowerCase() === "false") {
6559
- val = t("CS_NO");
6560
- }
6561
- const friendlyHeader = headerMapping[key] || t(key.toUpperCase()) || key;
6562
- if (typeof val === "string" && translatedFields.includes(key)) {
6563
- cleanObj[friendlyHeader] = t(val);
6564
- } else if (typeof val === "string" && !skipTitleCase.includes(key)) {
6565
- cleanObj[friendlyHeader] = toTitleCase(val);
6566
- } else {
6567
- cleanObj[friendlyHeader] = val;
6568
- }
6569
- });
6570
- return cleanObj;
6571
- });
6172
+ const excelData = getEkycExcelData(consumerList, t);
6572
6173
  const cleanFileName = "eKYC_Data_" + fullName.replace(/[^a-zA-Z0-9]/g, "_");
6573
6174
  Digit.Download.Excel(excelData, cleanFileName);
6574
6175
  });
@@ -7173,10 +6774,6 @@ const SupervisorInboxTableConfig = _ref => {
7173
6774
 
7174
6775
  const AssignEkyc = () => {
7175
6776
  var _formState$tableForm, _formState$tableForm2, _formState$tableForm3, _formState$tableForm4, _formState$searchForm, _dashboardData$dashbo;
7176
- let tenantId = Digit.ULBService.getCurrentTenantId();
7177
- if (!tenantId || tenantId === "dl") {
7178
- tenantId = "dl.djb";
7179
- }
7180
6777
  const _useReducer = React.useReducer(formReducer, formInitValue),
7181
6778
  formState = _useReducer[0],
7182
6779
  dispatch = _useReducer[1];
@@ -7194,17 +6791,12 @@ const AssignEkyc = () => {
7194
6791
  if (isSearchActive) {
7195
6792
  filters.mobileNumber = mobileNumber;
7196
6793
  }
7197
- const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSurveyorSearch(tenantId, filters, {
7198
- enabled: !!tenantId,
6794
+ const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSurveyorSearch("dl.djb", filters, {
6795
+ enabled: true,
7199
6796
  keepPreviousData: true
7200
6797
  }),
7201
6798
  dashboardData = _Digit$Hooks$fsm$useS.data,
7202
6799
  isLoading = _Digit$Hooks$fsm$useS.isLoading;
7203
- const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAssignmentProgress({
7204
- enabled: !!tenantId,
7205
- keepPreviousData: true
7206
- }),
7207
- isDataSearchLoading = _Digit$Hooks$ekyc$use.isLoading;
7208
6800
  const sourceData = React.useMemo(() => {
7209
6801
  return (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.surveyors) || [];
7210
6802
  }, [dashboardData]);
@@ -7318,7 +6910,7 @@ const AssignEkyc = () => {
7318
6910
  table: filteredData,
7319
6911
  dispatch,
7320
6912
  onSortingByData,
7321
- tenantId,
6913
+ tenantId: "dl.djb",
7322
6914
  inboxStyles: {
7323
6915
  overflowX: "scroll",
7324
6916
  overflowY: "hidden"
@@ -7362,7 +6954,7 @@ const AssignEkyc = () => {
7362
6954
  propsForInboxMobileCards,
7363
6955
  formState,
7364
6956
  countData: dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.dashboardInfo,
7365
- isCardLoading: isDataSearchLoading,
6957
+ isCardLoading: false,
7366
6958
  showSearchOnMobile: true,
7367
6959
  forceTable: true
7368
6960
  })));
@@ -9259,12 +8851,7 @@ const CitizenApp = () => {
9259
8851
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
9260
8852
  path: path + "/surveyor-dashboard/:id",
9261
8853
  component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
9262
- layoutClass: "normal"
9263
- }, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
9264
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
9265
- path: path + "/surveyor-dashboard",
9266
- component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
9267
- layoutClass: "normal"
8854
+ layoutClass: "action"
9268
8855
  }, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
9269
8856
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
9270
8857
  path: path + "/status/:applicationId",