@djb25/digit-ui-module-ws 1.0.114 → 1.0.116

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
@@ -1046,12 +1046,14 @@ const convertToWSUpdate = data => {
1046
1046
  return formdata;
1047
1047
  };
1048
1048
  const convertToEditWSUpdate = data => {
1049
- var _data$WaterConnection9, _data$WaterConnection0, _data$additionalDetai8, _data$additionalDetai9, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai0, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai1, _waterResult$addition3, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee40, _data$djbEmployee40$d, _data$djbEmployee41, _data$disability3, _data$rainWaterHarves9, _data$rainWaterHarves0, _data$rainWaterHarves1, _data$rainWaterHarves10, _data$waterConnection2, _data$additionalDetai10, _waterResult$addition4, _data$additionalDetai11, _waterResult$addition5, _data$additionalDetai12, _waterResult$addition6, _data$additionalDetai13, _waterResult$addition7, _data$waterConnection3, _data$additionalDetai14, _waterResult$addition8, _data$waterConnection4, _data$additionalDetai15, _waterResult$addition9, _data$waterConnection5, _data$additionalDetai16, _waterResult$addition0, _data$waterConnection6, _data$additionalDetai17, _waterResult$addition1, _data$additionalDetai18, _data$property, _data$property$additi, _data$cpt31, _data$cpt31$details, _data$cpt31$details$a, _waterResult$addition10, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
1049
+ var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$additionalDetai8, _data$additionalDetai9, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai0, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai1, _waterResult$addition3, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee40, _data$djbEmployee40$d, _data$djbEmployee41, _data$disability3, _data$rainWaterHarves9, _data$rainWaterHarves0, _data$rainWaterHarves1, _data$rainWaterHarves10, _data$waterConnection2, _data$additionalDetai10, _waterResult$addition4, _data$additionalDetai11, _waterResult$addition5, _data$additionalDetai12, _waterResult$addition6, _data$additionalDetai13, _waterResult$addition7, _data$waterConnection3, _data$additionalDetai14, _waterResult$addition8, _data$waterConnection4, _data$additionalDetai15, _waterResult$addition9, _data$waterConnection5, _data$additionalDetai16, _waterResult$addition0, _data$waterConnection6, _data$additionalDetai17, _waterResult$addition1, _data$additionalDetai18, _data$property3, _data$property3$addit, _data$cpt31, _data$cpt31$details, _data$cpt31$details$a, _waterResult$addition10, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
1050
1050
  const {
1051
1051
  signatureFileStoreId,
1052
1052
  signatureFileName
1053
1053
  } = getSignatureDetails(data);
1054
1054
  let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection9 = data.WaterConnectionResult) === null || _data$WaterConnection9 === void 0 ? void 0 : (_data$WaterConnection0 = _data$WaterConnection9.WaterConnection) === null || _data$WaterConnection0 === void 0 ? void 0 : _data$WaterConnection0[0];
1055
+ const isPropUpdated = Boolean((data === null || data === void 0 ? void 0 : data.isPropertyUpdated) === true || (data === null || data === void 0 ? void 0 : data.workflowAction) === "RESUBMIT_FOR_INFRA_PAYMENT" || typeof sessionStorage !== "undefined" && sessionStorage.getItem("WS_WORKFLOW_ACTION") === "RESUBMIT_FOR_INFRA_PAYMENT" || typeof sessionStorage !== "undefined" && sessionStorage.getItem("IS_PROPERTY_UPDATED") === "true" || typeof sessionStorage !== "undefined" && (data === null || data === void 0 ? void 0 : data.propertyId) && sessionStorage.getItem("IS_PROPERTY_UPDATED_" + data.propertyId) === "true" || typeof sessionStorage !== "undefined" && (waterResult === null || waterResult === void 0 ? void 0 : waterResult.propertyId) && sessionStorage.getItem("IS_PROPERTY_UPDATED_" + waterResult.propertyId) === "true" || (data === null || data === void 0 ? void 0 : (_data$property = data.property) === null || _data$property === void 0 ? void 0 : (_data$property$auditD = _data$property.auditDetails) === null || _data$property$auditD === void 0 ? void 0 : _data$property$auditD.lastModifiedTime) && (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property = waterResult.property) === null || _waterResult$property === void 0 ? void 0 : (_waterResult$property2 = _waterResult$property.auditDetails) === null || _waterResult$property2 === void 0 ? void 0 : _waterResult$property2.lastModifiedTime) && data.property.auditDetails.lastModifiedTime > waterResult.property.auditDetails.lastModifiedTime || (data === null || data === void 0 ? void 0 : (_data$property2 = data.property) === null || _data$property2 === void 0 ? void 0 : (_data$property2$audit = _data$property2.auditDetails) === null || _data$property2$audit === void 0 ? void 0 : _data$property2$audit.lastModifiedTime) && (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$auditDet = waterResult.auditDetails) === null || _waterResult$auditDet === void 0 ? void 0 : _waterResult$auditDet.lastModifiedTime) && data.property.auditDetails.lastModifiedTime > waterResult.auditDetails.lastModifiedTime);
1056
+ const actionToTake = (data === null || data === void 0 ? void 0 : data.workflowAction) || typeof sessionStorage !== "undefined" && sessionStorage.getItem("WS_WORKFLOW_ACTION") || (isPropUpdated ? "RESUBMIT_FOR_INFRA_PAYMENT" : "RESUBMIT_APPLICATION");
1055
1057
  let formdata = {
1056
1058
  WaterConnection: {
1057
1059
  id: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.id : waterResult === null || waterResult === void 0 ? void 0 : waterResult.id,
@@ -1112,13 +1114,13 @@ const convertToEditWSUpdate = data => {
1112
1114
  propertyCategory: ((_data$waterConnection4 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection4 === void 0 ? void 0 : _data$waterConnection4.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai15 = data.additionalDetails) === null || _data$additionalDetai15 === void 0 ? void 0 : _data$additionalDetai15.propertyCategory) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.propertyCategory),
1113
1115
  propertyType: ((_data$waterConnection5 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection5 === void 0 ? void 0 : _data$waterConnection5.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai16 = data.additionalDetails) === null || _data$additionalDetai16 === void 0 ? void 0 : _data$additionalDetai16.propertyType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.propertyType),
1114
1116
  waterConnectionUsageType: ((_data$waterConnection6 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai17 = data.additionalDetails) === null || _data$additionalDetai17 === void 0 ? void 0 : _data$additionalDetai17.waterConnectionUsageType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.waterConnectionUsageType),
1115
- numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai18 = data.additionalDetails) === null || _data$additionalDetai18 === void 0 ? void 0 : _data$additionalDetai18.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property = data.property) === null || _data$property === void 0 ? void 0 : (_data$property$additi = _data$property.additionalDetails) === null || _data$property$additi === void 0 ? void 0 : _data$property$additi.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt31 = data.cpt) === null || _data$cpt31 === void 0 ? void 0 : (_data$cpt31$details = _data$cpt31.details) === null || _data$cpt31$details === void 0 ? void 0 : (_data$cpt31$details$a = _data$cpt31$details.additionalDetails) === null || _data$cpt31$details$a === void 0 ? void 0 : _data$cpt31$details$a.numberOfDwellingUnits) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.numberOfDwellingUnits) || ""
1117
+ numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai18 = data.additionalDetails) === null || _data$additionalDetai18 === void 0 ? void 0 : _data$additionalDetai18.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property3 = data.property) === null || _data$property3 === void 0 ? void 0 : (_data$property3$addit = _data$property3.additionalDetails) === null || _data$property3$addit === void 0 ? void 0 : _data$property3$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt31 = data.cpt) === null || _data$cpt31 === void 0 ? void 0 : (_data$cpt31$details = _data$cpt31.details) === null || _data$cpt31$details === void 0 ? void 0 : (_data$cpt31$details$a = _data$cpt31$details.additionalDetails) === null || _data$cpt31$details$a === void 0 ? void 0 : _data$cpt31$details$a.numberOfDwellingUnits) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.numberOfDwellingUnits) || ""
1116
1118
  } : {})
1117
1119
  },
1118
1120
  auditDetails: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.auditDetails : waterResult === null || waterResult === void 0 ? void 0 : waterResult.auditDetails,
1119
1121
  processInstance: data !== null && data !== void 0 && data.isEditApplication ? {
1120
1122
  ...(data === null || data === void 0 ? void 0 : data.processInstance),
1121
- action: "RESUBMIT_APPLICATION"
1123
+ action: actionToTake
1122
1124
  } : {
1123
1125
  ...(waterResult === null || waterResult === void 0 ? void 0 : waterResult.processInstance),
1124
1126
  action: "SUBMIT_APPLICATION"
@@ -1206,7 +1208,7 @@ const convertToEditWSUpdate = data => {
1206
1208
  comment: "",
1207
1209
  wfDocuments: [],
1208
1210
  assignee: [],
1209
- action: data !== null && data !== void 0 && data.isEditApplication ? "RESUBMIT_APPLICATION" : "SUBMIT_APPLICATION",
1211
+ action: data !== null && data !== void 0 && data.isEditApplication ? actionToTake : "SUBMIT_APPLICATION",
1210
1212
  assignes: []
1211
1213
  }
1212
1214
  };
@@ -1214,12 +1216,13 @@ const convertToEditWSUpdate = data => {
1214
1216
  return formdata;
1215
1217
  };
1216
1218
  const convertToEditSWUpdate = data => {
1217
- var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai19, _data$additionalDetai20, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai21, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai22, _SewerageResult$addit3, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee55, _data$djbEmployee55$d, _data$djbEmployee56, _data$disability4, _data$rainWaterHarves11, _data$rainWaterHarves12, _data$rainWaterHarves13, _data$rainWaterHarves14, _data$waterConnection8, _data$additionalDetai23, _SewerageResult$addit4, _data$additionalDetai24, _SewerageResult$addit5, _data$additionalDetai25, _SewerageResult$addit6, _data$additionalDetai26, _SewerageResult$addit7, _data$waterConnection9, _data$additionalDetai27, _SewerageResult$addit8, _data$waterConnection0, _data$additionalDetai28, _SewerageResult$addit9, _data$waterConnection1, _data$additionalDetai29, _SewerageResult$addit0, _data$waterConnection10, _data$additionalDetai30, _SewerageResult$addit1, _data$additionalDetai31, _data$property2, _data$property2$addit, _data$cpt33, _data$cpt33$details, _data$cpt33$details$a, _SewerageResult$addit10, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1219
+ var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai19, _data$additionalDetai20, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai21, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai22, _SewerageResult$addit3, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee55, _data$djbEmployee55$d, _data$djbEmployee56, _data$disability4, _data$rainWaterHarves11, _data$rainWaterHarves12, _data$rainWaterHarves13, _data$rainWaterHarves14, _data$waterConnection8, _data$additionalDetai23, _SewerageResult$addit4, _data$additionalDetai24, _SewerageResult$addit5, _data$additionalDetai25, _SewerageResult$addit6, _data$additionalDetai26, _SewerageResult$addit7, _data$waterConnection9, _data$additionalDetai27, _SewerageResult$addit8, _data$waterConnection0, _data$additionalDetai28, _SewerageResult$addit9, _data$waterConnection1, _data$additionalDetai29, _SewerageResult$addit0, _data$waterConnection10, _data$additionalDetai30, _SewerageResult$addit1, _data$additionalDetai31, _data$property4, _data$property4$addit, _data$cpt33, _data$cpt33$details, _data$cpt33$details$a, _SewerageResult$addit10, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1218
1220
  const {
1219
1221
  signatureFileStoreId,
1220
1222
  signatureFileName
1221
1223
  } = getSignatureDetails(data);
1222
1224
  let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
1225
+ const actionToTake = (data === null || data === void 0 ? void 0 : data.workflowAction) || "RESUBMIT_APPLICATION";
1223
1226
  let formdata = {
1224
1227
  SewerageConnection: {
1225
1228
  id: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.id : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.id,
@@ -1280,13 +1283,13 @@ const convertToEditSWUpdate = data => {
1280
1283
  propertyCategory: ((_data$waterConnection0 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai28 = data.additionalDetails) === null || _data$additionalDetai28 === void 0 ? void 0 : _data$additionalDetai28.propertyCategory) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit9 = SewerageResult.additionalDetails) === null || _SewerageResult$addit9 === void 0 ? void 0 : _SewerageResult$addit9.propertyCategory),
1281
1284
  propertyType: ((_data$waterConnection1 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection1 === void 0 ? void 0 : _data$waterConnection1.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai29 = data.additionalDetails) === null || _data$additionalDetai29 === void 0 ? void 0 : _data$additionalDetai29.propertyType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit0 = SewerageResult.additionalDetails) === null || _SewerageResult$addit0 === void 0 ? void 0 : _SewerageResult$addit0.propertyType),
1282
1285
  waterConnectionUsageType: ((_data$waterConnection10 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection10 === void 0 ? void 0 : _data$waterConnection10.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai30 = data.additionalDetails) === null || _data$additionalDetai30 === void 0 ? void 0 : _data$additionalDetai30.waterConnectionUsageType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit1 = SewerageResult.additionalDetails) === null || _SewerageResult$addit1 === void 0 ? void 0 : _SewerageResult$addit1.waterConnectionUsageType),
1283
- numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai31 = data.additionalDetails) === null || _data$additionalDetai31 === void 0 ? void 0 : _data$additionalDetai31.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property2 = data.property) === null || _data$property2 === void 0 ? void 0 : (_data$property2$addit = _data$property2.additionalDetails) === null || _data$property2$addit === void 0 ? void 0 : _data$property2$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : (_data$cpt33$details = _data$cpt33.details) === null || _data$cpt33$details === void 0 ? void 0 : (_data$cpt33$details$a = _data$cpt33$details.additionalDetails) === null || _data$cpt33$details$a === void 0 ? void 0 : _data$cpt33$details$a.numberOfDwellingUnits) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit10 = SewerageResult.additionalDetails) === null || _SewerageResult$addit10 === void 0 ? void 0 : _SewerageResult$addit10.numberOfDwellingUnits) || ""
1286
+ numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai31 = data.additionalDetails) === null || _data$additionalDetai31 === void 0 ? void 0 : _data$additionalDetai31.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property4 = data.property) === null || _data$property4 === void 0 ? void 0 : (_data$property4$addit = _data$property4.additionalDetails) === null || _data$property4$addit === void 0 ? void 0 : _data$property4$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : (_data$cpt33$details = _data$cpt33.details) === null || _data$cpt33$details === void 0 ? void 0 : (_data$cpt33$details$a = _data$cpt33$details.additionalDetails) === null || _data$cpt33$details$a === void 0 ? void 0 : _data$cpt33$details$a.numberOfDwellingUnits) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit10 = SewerageResult.additionalDetails) === null || _SewerageResult$addit10 === void 0 ? void 0 : _SewerageResult$addit10.numberOfDwellingUnits) || ""
1284
1287
  } : {})
1285
1288
  },
1286
1289
  auditDetails: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.auditDetails : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.auditDetails,
1287
1290
  processInstance: data !== null && data !== void 0 && data.isEditApplication ? {
1288
1291
  ...(data === null || data === void 0 ? void 0 : data.processInstance),
1289
- action: "RESUBMIT_APPLICATION"
1292
+ action: actionToTake
1290
1293
  } : {
1291
1294
  ...(SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.processInstance),
1292
1295
  action: "SUBMIT_APPLICATION"
@@ -1374,7 +1377,7 @@ const convertToEditSWUpdate = data => {
1374
1377
  comment: "",
1375
1378
  wfDocuments: [],
1376
1379
  assignee: [],
1377
- action: data !== null && data !== void 0 && data.isEditApplication ? "RESUBMIT_APPLICATION" : "SUBMIT_APPLICATION",
1380
+ action: data !== null && data !== void 0 && data.isEditApplication ? actionToTake : "SUBMIT_APPLICATION",
1378
1381
  assignes: []
1379
1382
  }
1380
1383
  };
@@ -2570,6 +2573,85 @@ const WSCalculationPayload = (data, tenantId) => {
2570
2573
  if (questionsList) payload.questions = questionsList;
2571
2574
  return payload;
2572
2575
  };
2576
+ const getServiceTypeDisplay = (app, t) => {
2577
+ var _addDetails, _addDetails2, _addDetails2$connecti, _addDetails3, _addDetails3$appDetai;
2578
+ if (!app) return t ? t("CS_NA") : "NA";
2579
+ if (app !== null && app !== void 0 && app.isBillAmendment) {
2580
+ return t ? t(`WS_APPLICATION_TYPE_${app === null || app === void 0 ? void 0 : app.applicationType}`, (app === null || app === void 0 ? void 0 : app.serviceType) === "SEWERAGE" ? "Sewerage Bill Amendment" : "Water Bill Amendment") : (app === null || app === void 0 ? void 0 : app.serviceType) === "SEWERAGE" ? "Sewerage Bill Amendment" : "Water Bill Amendment";
2581
+ }
2582
+ let addDetails = app === null || app === void 0 ? void 0 : app.additionalDetails;
2583
+ if (typeof addDetails === "string") {
2584
+ try {
2585
+ addDetails = JSON.parse(addDetails);
2586
+ } catch (e) {
2587
+ addDetails = {};
2588
+ }
2589
+ }
2590
+ let srv = ((_addDetails = addDetails) === null || _addDetails === void 0 ? void 0 : _addDetails.serviceType) || ((_addDetails2 = addDetails) === null || _addDetails2 === void 0 ? void 0 : (_addDetails2$connecti = _addDetails2.connectionDetails) === null || _addDetails2$connecti === void 0 ? void 0 : _addDetails2$connecti.serviceType) || ((_addDetails3 = addDetails) === null || _addDetails3 === void 0 ? void 0 : (_addDetails3$appDetai = _addDetails3.appDetails) === null || _addDetails3$appDetai === void 0 ? void 0 : _addDetails3$appDetai.serviceType) || (app === null || app === void 0 ? void 0 : app.serviceType);
2591
+ if (typeof srv === "string" && srv.trim().startsWith("{")) {
2592
+ try {
2593
+ srv = JSON.parse(srv);
2594
+ } catch (e) {}
2595
+ }
2596
+ if (srv) {
2597
+ if (typeof srv === "object") {
2598
+ var _srv, _srv2, _srv3;
2599
+ const code = ((_srv = srv) === null || _srv === void 0 ? void 0 : _srv.code) || "";
2600
+ const i18nKey = ((_srv2 = srv) === null || _srv2 === void 0 ? void 0 : _srv2.i18nKey) || (code ? `WS_APPLICATION_TYPE_${code}` : "");
2601
+ let fallbackName = (_srv3 = srv) !== null && _srv3 !== void 0 && _srv3.name ? srv.name.trim() : "";
2602
+ if (!fallbackName && code) {
2603
+ if (code === "WATER_SEWERAGE_CONNECTION" || code === "WATER_AND_SEWERAGE") {
2604
+ fallbackName = "Water and Sewerage Connection";
2605
+ } else if (code === "NEW_WATER_CONNECTION" || code === "WATER_CONNECTION") {
2606
+ fallbackName = "Water Connection";
2607
+ } else if (code === "NEW_SEWERAGE_CONNECTION" || code === "SEWERAGE_CONNECTION") {
2608
+ fallbackName = "Sewerage Connection";
2609
+ } else {
2610
+ fallbackName = code.replace(/_/g, " ");
2611
+ }
2612
+ }
2613
+ if (t && i18nKey) {
2614
+ const translated = t(i18nKey, fallbackName || undefined);
2615
+ if (translated && translated !== i18nKey) {
2616
+ return translated;
2617
+ }
2618
+ }
2619
+ if (fallbackName) {
2620
+ return fallbackName;
2621
+ }
2622
+ if (code) {
2623
+ return code.replace(/_/g, " ");
2624
+ }
2625
+ } else if (typeof srv === "string") {
2626
+ const srvUpper = srv.toUpperCase();
2627
+ let fallbackName = "";
2628
+ if (srvUpper === "WATER_SEWERAGE_CONNECTION" || srvUpper === "WATER_AND_SEWERAGE" || srvUpper === "BOTH") {
2629
+ fallbackName = "Water and Sewerage Connection";
2630
+ } else if (srvUpper === "NEW_WATER_CONNECTION" || srvUpper === "WATER" || srvUpper === "WATER_CONNECTION") {
2631
+ fallbackName = "Water Connection";
2632
+ } else if (srvUpper === "NEW_SEWERAGE_CONNECTION" || srvUpper === "SEWERAGE" || srvUpper === "SEWERAGE_CONNECTION") {
2633
+ fallbackName = "Sewerage Connection";
2634
+ } else {
2635
+ fallbackName = srv.replace(/_/g, " ");
2636
+ }
2637
+ const i18nKey = `WS_APPLICATION_TYPE_${srvUpper}`;
2638
+ if (t) {
2639
+ const translated = t(i18nKey, fallbackName);
2640
+ if (translated && translated !== i18nKey) {
2641
+ return translated;
2642
+ }
2643
+ }
2644
+ return fallbackName || (t ? t(i18nKey) : srv);
2645
+ }
2646
+ }
2647
+ if (app !== null && app !== void 0 && app.applicationType) {
2648
+ const key = `WS_APPLICATION_TYPE_${app.applicationType}`;
2649
+ let fallback = "";
2650
+ if (app.applicationType === "NEW_WATER_CONNECTION") fallback = "Water Connection";else if (app.applicationType === "NEW_SEWERAGE_CONNECTION") fallback = "Sewerage Connection";else fallback = app.applicationType.replace(/_/g, " ");
2651
+ return t ? t(key, fallback) : fallback;
2652
+ }
2653
+ return t ? t("CS_NA") : "NA";
2654
+ };
2573
2655
 
2574
2656
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2575
2657
 
@@ -8405,7 +8487,7 @@ var lodash = createCommonjsModule(function (module, exports) {
8405
8487
  });
8406
8488
 
8407
8489
  const WSApplication = _ref => {
8408
- var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$applicat9, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
8490
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$applicat9, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat0, _application$applicat1;
8409
8491
  let {
8410
8492
  application
8411
8493
  } = _ref;
@@ -8461,7 +8543,7 @@ const WSApplication = _ref => {
8461
8543
  note: application === null || application === void 0 ? void 0 : application.applicationNo
8462
8544
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.KeyNote, {
8463
8545
  keyValue: t("WS_SERVICE_NAME"),
8464
- note: t(`WS_APPLICATION_TYPE_${application === null || application === void 0 ? void 0 : application.applicationType}`, (application === null || application === void 0 ? void 0 : application.serviceType) === "SEWERAGE" ? "Sewerage Bill Amendment" : "Water Bill Amendment")
8546
+ note: getServiceTypeDisplay(application, t)
8465
8547
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.KeyNote, {
8466
8548
  keyValue: t("WS_CONSUMER_NAME"),
8467
8549
  note: application !== null && application !== void 0 && application.isBillAmendment && application !== null && application !== void 0 && application.connectionNo ? `${t("WS_CONSUMER_CODE")}: ${application === null || application === void 0 ? void 0 : application.connectionNo}` : (application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.sort((a, b) => {
@@ -8501,17 +8583,17 @@ const WSApplication = _ref => {
8501
8583
  to: application !== null && application !== void 0 && application.isBillAmendment ? `/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${encodeApplicationNo}` : `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
8502
8584
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
8503
8585
  label: t("WS_VIEW_DETAILS_LABEL")
8504
- })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
8586
+ })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_ZRO" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_EE" || application !== null && application !== void 0 && (_application$applicat0 = application.applicationStatus) !== null && _application$applicat0 !== void 0 && (_application$applicat1 = _application$applicat0.includes) !== null && _application$applicat1 !== void 0 && _application$applicat1.call(_application$applicat0, "PENDING_FOR_INFRA_PAYMENT") ? /*#__PURE__*/React__default.createElement("div", {
8505
8587
  style: {
8506
8588
  marginTop: "10px"
8507
8589
  }
8508
8590
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
8509
8591
  label: t("MAKE_PAYMENT"),
8510
8592
  onSubmit: () => {
8511
- var _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat0;
8593
+ var _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat10;
8512
8594
  history.push({
8513
8595
  pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
8514
- search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat0 = application.applicationNo) !== null && _application$applicat0 !== void 0 && _application$applicat0.includes("DC") ? true : false}&consumerCode=${application === null || application === void 0 ? void 0 : application.applicationNo}`,
8596
+ search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat10 = application.applicationNo) !== null && _application$applicat10 !== void 0 && _application$applicat10.includes("DC") ? true : false}&consumerCode=${application === null || application === void 0 ? void 0 : application.applicationNo}`,
8515
8597
  state: {}
8516
8598
  });
8517
8599
  }
@@ -8641,6 +8723,25 @@ const WSMyApplications = () => {
8641
8723
  },
8642
8724
  enabled: userMobileNumber ? true : false
8643
8725
  });
8726
+ const {
8727
+ data: userConnections
8728
+ } = Digit.Hooks.ws.useMyApplicationSearch({
8729
+ filters: {
8730
+ tenantId,
8731
+ mobileNumber: userMobileNumber,
8732
+ searchType: "CONNECTION"
8733
+ }
8734
+ }, {
8735
+ filters: {
8736
+ tenantId,
8737
+ mobileNumber: userMobileNumber,
8738
+ searchType: "CONNECTION"
8739
+ },
8740
+ enabled: !!userMobileNumber
8741
+ });
8742
+ const [pageOffset, setPageOffset] = React.useState(0);
8743
+ const [pageSize, setPageSize] = React.useState(10);
8744
+ const [searchParams, setSearchParams] = React.useState(null);
8644
8745
  const [billAmendments, setBillAmendments] = React.useState([]);
8645
8746
  const [isBillAmendLoading, setIsBillAmendLoading] = React.useState(false);
8646
8747
  React.useEffect(() => {
@@ -8651,11 +8752,51 @@ const WSMyApplications = () => {
8651
8752
  setIsBillAmendLoading(true);
8652
8753
  const _temp = _finallyRethrows(function () {
8653
8754
  return _catch(function () {
8654
- return Promise.resolve(Digit.PaymentService.searchAmendment(tenantId, {
8655
- mobileNumber: userMobileNumber
8656
- })).then(function (res) {
8755
+ const consumerCodes = new Set();
8756
+ ((data === null || data === void 0 ? void 0 : data.WaterConnection) || []).forEach(c => (c === null || c === void 0 ? void 0 : c.connectionNo) && consumerCodes.add(c.connectionNo));
8757
+ ((SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections) || []).forEach(c => (c === null || c === void 0 ? void 0 : c.connectionNo) && consumerCodes.add(c.connectionNo));
8758
+ ((userConnections === null || userConnections === void 0 ? void 0 : userConnections.WaterConnection) || []).forEach(c => (c === null || c === void 0 ? void 0 : c.connectionNo) && consumerCodes.add(c.connectionNo));
8759
+ ((userConnections === null || userConnections === void 0 ? void 0 : userConnections.SewerageConnections) || []).forEach(c => (c === null || c === void 0 ? void 0 : c.connectionNo) && consumerCodes.add(c.connectionNo));
8760
+ const amendmentPromises = [];
8761
+ consumerCodes.forEach(code => {
8762
+ amendmentPromises.push(Digit.PaymentService.searchAmendment(tenantId, {
8763
+ consumerCode: code,
8764
+ businessService: "WS"
8765
+ }).catch(() => ({
8766
+ Amendments: []
8767
+ })));
8768
+ amendmentPromises.push(Digit.PaymentService.searchAmendment(tenantId, {
8769
+ consumerCode: code,
8770
+ businessService: "SW"
8771
+ }).catch(() => ({
8772
+ Amendments: []
8773
+ })));
8774
+ });
8775
+ if (searchParams !== null && searchParams !== void 0 && searchParams.applicationNo) {
8776
+ amendmentPromises.push(Digit.PaymentService.searchAmendment(tenantId, {
8777
+ amendmentId: searchParams.applicationNo,
8778
+ businessService: "WS"
8779
+ }).catch(() => ({
8780
+ Amendments: []
8781
+ })));
8782
+ amendmentPromises.push(Digit.PaymentService.searchAmendment(tenantId, {
8783
+ amendmentId: searchParams.applicationNo,
8784
+ businessService: "SW"
8785
+ }).catch(() => ({
8786
+ Amendments: []
8787
+ })));
8788
+ }
8789
+ return Promise.resolve(Promise.all(amendmentPromises)).then(function (responses) {
8790
+ const allAmendmentsMap = new Map();
8791
+ responses.forEach(res => {
8792
+ ((res === null || res === void 0 ? void 0 : res.Amendments) || []).forEach(amend => {
8793
+ if (amend !== null && amend !== void 0 && amend.amendmentId) {
8794
+ allAmendmentsMap.set(amend.amendmentId, amend);
8795
+ }
8796
+ });
8797
+ });
8657
8798
  if (isMounted) {
8658
- setBillAmendments((res === null || res === void 0 ? void 0 : res.Amendments) || []);
8799
+ setBillAmendments(Array.from(allAmendmentsMap.values()));
8659
8800
  }
8660
8801
  });
8661
8802
  }, function (err) {
@@ -8677,10 +8818,7 @@ const WSMyApplications = () => {
8677
8818
  return () => {
8678
8819
  isMounted = false;
8679
8820
  };
8680
- }, [tenantId, userMobileNumber]);
8681
- const [pageOffset, setPageOffset] = React.useState(0);
8682
- const [pageSize, setPageSize] = React.useState(10);
8683
- const [searchParams, setSearchParams] = React.useState(null);
8821
+ }, [tenantId, userMobileNumber, data, SWdata, userConnections, searchParams === null || searchParams === void 0 ? void 0 : searchParams.applicationNo]);
8684
8822
  const isMobile = window.Digit.Utils.browser.isMobile();
8685
8823
  const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
8686
8824
  className: "cell-text"
@@ -8709,10 +8847,7 @@ const WSMyApplications = () => {
8709
8847
  row
8710
8848
  } = _ref2;
8711
8849
  const app = row.original;
8712
- if (app !== null && app !== void 0 && app.isBillAmendment) {
8713
- return GetCell(t(`WS_APPLICATION_TYPE_${app === null || app === void 0 ? void 0 : app.applicationType}`, (app === null || app === void 0 ? void 0 : app.serviceType) === "SEWERAGE" ? "Sewerage Bill Amendment" : "Water Bill Amendment"));
8714
- }
8715
- return GetCell(t(`WS_APPLICATION_TYPE_${app === null || app === void 0 ? void 0 : app.applicationType}`));
8850
+ return GetCell(getServiceTypeDisplay(app, t));
8716
8851
  }
8717
8852
  }, {
8718
8853
  Header: t("WS_CONSUMER_NAME"),
@@ -8812,7 +8947,7 @@ const WSMyApplications = () => {
8812
8947
  Header: t("MAKE_PAYMENT"),
8813
8948
  disableSortBy: true,
8814
8949
  Cell: _ref0 => {
8815
- var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$connecti, _application$property, _application$property2, _application$applicat9;
8950
+ var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$applicat9, _application$applicat0, _application$connecti, _application$property, _application$property2, _application$applicat1;
8816
8951
  let {
8817
8952
  row
8818
8953
  } = _ref0;
@@ -8820,12 +8955,12 @@ const WSMyApplications = () => {
8820
8955
  const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
8821
8956
  const isReconnection = (application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("RECONNECT")) || (application === null || application === void 0 ? void 0 : (_application$applicat3 = application.applicationNo) === null || _application$applicat3 === void 0 ? void 0 : _application$applicat3.includes("RC"));
8822
8957
  const businessService = application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("SW") || (application === null || application === void 0 ? void 0 : application.serviceType) === "SEWERAGE" ? application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") || application !== null && application !== void 0 && (_application$applicat6 = application.applicationType) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DISCONNECT") ? "SW.DISCONNECTION" : isReconnection ? "SWReconnection" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") || application !== null && application !== void 0 && (_application$applicat8 = application.applicationType) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DISCONNECT") ? "WS.DISCONNECTION" : isReconnection ? "WSReconnection" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
8823
- return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("span", {
8958
+ return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_ZRO" || (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_EE" || application !== null && application !== void 0 && (_application$applicat9 = application.applicationStatus) !== null && _application$applicat9 !== void 0 && (_application$applicat0 = _application$applicat9.includes) !== null && _application$applicat0 !== void 0 && _application$applicat0.call(_application$applicat9, "PENDING_FOR_INFRA_PAYMENT") ? /*#__PURE__*/React__default.createElement("span", {
8824
8959
  className: "link"
8825
8960
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
8826
8961
  to: {
8827
8962
  pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
8828
- search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? true : false}&consumerCode=${application === null || application === void 0 ? void 0 : application.applicationNo}`,
8963
+ search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat1 = application.applicationNo) !== null && _application$applicat1 !== void 0 && _application$applicat1.includes("DC") ? true : false}&consumerCode=${application === null || application === void 0 ? void 0 : application.applicationNo}`,
8829
8964
  state: {
8830
8965
  fromMyApplications: true
8831
8966
  }
@@ -9970,7 +10105,7 @@ const ResponseBillAmend = () => {
9970
10105
  };
9971
10106
 
9972
10107
  const ApplicationBillAmendment = () => {
9973
- var _state, _state$data, _state$data$applicati, _state$data$applicati2, _state$data$applicati3, _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state2, _state2$data, _state2$data$applicat, _state2$data$applicat2, _state2$data$applicat3, _billSearchData, _billSearchData$filte, _billSearchData2, _state8, _state8$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state9, _state9$data;
10108
+ var _state, _state$data, _state2, _state2$data, _state3, _state3$data, _state3$data$applicat, _state3$data$applicat2, _state3$data$applicat3, _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state4, _state4$data, _state4$data$applicat, _state4$data$applicat2, _state4$data$applicat3, _billSearchData, _billSearchData$filte, _billSearchData2, _state14, _state14$data, _state15, _state15$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state16, _state16$data;
9974
10109
  const [showToast, setShowToast] = React.useState(null);
9975
10110
  const {
9976
10111
  t
@@ -10000,6 +10135,27 @@ const ApplicationBillAmendment = () => {
10000
10135
  tenantId: stateId
10001
10136
  });
10002
10137
  const servicev1 = service === "SEWERAGE" || connectionNumber !== null && connectionNumber !== void 0 && connectionNumber.includes("SW") ? "SW" : "WS";
10138
+ const isApplicationNo = (connectionNumber === null || connectionNumber === void 0 ? void 0 : connectionNumber.includes("_AP")) || (connectionNumber === null || connectionNumber === void 0 ? void 0 : connectionNumber.includes("_APPLICATION")) || (connectionNumber === null || connectionNumber === void 0 ? void 0 : connectionNumber.startsWith("WS_")) || (connectionNumber === null || connectionNumber === void 0 ? void 0 : connectionNumber.startsWith("SW_"));
10139
+ const {
10140
+ data: connSearchData,
10141
+ isLoading: isConnLoading
10142
+ } = Digit.Hooks.ws.useOldValue({
10143
+ tenantId,
10144
+ filters: {
10145
+ connectionNumber,
10146
+ searchType: "CONNECTION",
10147
+ isConnectionSearch: true
10148
+ },
10149
+ businessService: servicev1 === "SW" ? "SEWERAGE" : "WATER"
10150
+ }, {
10151
+ enabled: !isEdit && !((_state = state) !== null && _state !== void 0 && (_state$data = _state.data) !== null && _state$data !== void 0 && _state$data.action) && !!connectionNumber && !isApplicationNo,
10152
+ staleTime: 60000
10153
+ });
10154
+ const connList = (connSearchData === null || connSearchData === void 0 ? void 0 : connSearchData.WaterConnection) || (connSearchData === null || connSearchData === void 0 ? void 0 : connSearchData.SewerageConnections) || [];
10155
+ const foundConn = (connList === null || connList === void 0 ? void 0 : connList.find(c => (c === null || c === void 0 ? void 0 : c.connectionNo) === connectionNumber)) || (connList === null || connList === void 0 ? void 0 : connList[0]);
10156
+ const connStatus = String((foundConn === null || foundConn === void 0 ? void 0 : foundConn.status) || "").toUpperCase();
10157
+ const connAppStatus = String((foundConn === null || foundConn === void 0 ? void 0 : foundConn.applicationStatus) || "").toUpperCase();
10158
+ const isConnInactive = !isEdit && !((_state2 = state) !== null && _state2 !== void 0 && (_state2$data = _state2.data) !== null && _state2$data !== void 0 && _state2$data.action) && !isConnLoading && connSearchData && (!foundConn || connStatus === "INACTIVE" || connAppStatus === "DISCONNECTION_EXECUTED" || connStatus !== "ACTIVE" && connAppStatus !== "CONNECTION_ACTIVATED" && connAppStatus !== "ACTIVE");
10003
10159
  const billSearchFilters = {
10004
10160
  tenantId,
10005
10161
  consumerCode: connectionNumber,
@@ -10009,9 +10165,9 @@ const ApplicationBillAmendment = () => {
10009
10165
  data: preBillSearchData,
10010
10166
  isLoading: isBillSearchLoading
10011
10167
  } = Digit.Hooks.usePaymentSearch(tenantId, billSearchFilters, {
10012
- enabled: !!connectionNumber
10168
+ enabled: !!connectionNumber && !isApplicationNo && !isConnInactive
10013
10169
  });
10014
- const editFormData = (_state = state) === null || _state === void 0 ? void 0 : (_state$data = _state.data) === null || _state$data === void 0 ? void 0 : (_state$data$applicati = _state$data.applicationDetails) === null || _state$data$applicati === void 0 ? void 0 : (_state$data$applicati2 = _state$data$applicati.amendment) === null || _state$data$applicati2 === void 0 ? void 0 : (_state$data$applicati3 = _state$data$applicati2.additionalDetails) === null || _state$data$applicati3 === void 0 ? void 0 : _state$data$applicati3.editForm;
10170
+ const editFormData = (_state3 = state) === null || _state3 === void 0 ? void 0 : (_state3$data = _state3.data) === null || _state3$data === void 0 ? void 0 : (_state3$data$applicat = _state3$data.applicationDetails) === null || _state3$data$applicat === void 0 ? void 0 : (_state3$data$applicat2 = _state3$data$applicat.amendment) === null || _state3$data$applicat2 === void 0 ? void 0 : (_state3$data$applicat3 = _state3$data$applicat2.additionalDetails) === null || _state3$data$applicat3 === void 0 ? void 0 : _state3$data$applicat3.editForm;
10015
10171
  React.useEffect(() => {
10016
10172
  var _editFormData, _editFormData2;
10017
10173
  if (editFormData !== null && editFormData !== void 0 && (_editFormData = editFormData[`${servicev1}_REDUCED_AMOUNT`]) !== null && _editFormData !== void 0 && _editFormData.VALUE) {
@@ -10051,7 +10207,7 @@ const ApplicationBillAmendment = () => {
10051
10207
  WS_ADDITIONAL_AMOUNT: {
10052
10208
  VALUE: false
10053
10209
  },
10054
- ...((_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$data = _state2.data) === null || _state2$data === void 0 ? void 0 : (_state2$data$applicat = _state2$data.applicationDetails) === null || _state2$data$applicat === void 0 ? void 0 : (_state2$data$applicat2 = _state2$data$applicat.amendment) === null || _state2$data$applicat2 === void 0 ? void 0 : (_state2$data$applicat3 = _state2$data$applicat2.additionalDetails) === null || _state2$data$applicat3 === void 0 ? void 0 : _state2$data$applicat3.editForm)
10210
+ ...((_state4 = state) === null || _state4 === void 0 ? void 0 : (_state4$data = _state4.data) === null || _state4$data === void 0 ? void 0 : (_state4$data$applicat = _state4$data.applicationDetails) === null || _state4$data$applicat === void 0 ? void 0 : (_state4$data$applicat2 = _state4$data$applicat.amendment) === null || _state4$data$applicat2 === void 0 ? void 0 : (_state4$data$applicat3 = _state4$data$applicat2.additionalDetails) === null || _state4$data$applicat3 === void 0 ? void 0 : _state4$data$applicat3.editForm)
10055
10211
  }
10056
10212
  });
10057
10213
  const {
@@ -10231,20 +10387,21 @@ const ApplicationBillAmendment = () => {
10231
10387
  setShowToast(null);
10232
10388
  };
10233
10389
  React.useEffect(() => {
10234
- const timer = setTimeout(() => {
10235
- if (goToAppDetailsPage) {
10390
+ if (goToAppDetailsPage) {
10391
+ var _state6, _state6$data, _state6$data$applicat, _state6$data$applicat2;
10392
+ const appId = (_state6 = state) === null || _state6 === void 0 ? void 0 : (_state6$data = _state6.data) === null || _state6$data === void 0 ? void 0 : (_state6$data$applicat = _state6$data.applicationDetails) === null || _state6$data$applicat === void 0 ? void 0 : (_state6$data$applicat2 = _state6$data$applicat.amendment) === null || _state6$data$applicat2 === void 0 ? void 0 : _state6$data$applicat2.amendmentId;
10393
+ const timer = setTimeout(() => {
10236
10394
  if (isEmployee) {
10237
- var _state4, _state4$data, _state4$data$applicat, _state4$data$applicat2;
10238
- window.location.href = `${window.location.origin}/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${(_state4 = state) === null || _state4 === void 0 ? void 0 : (_state4$data = _state4.data) === null || _state4$data === void 0 ? void 0 : (_state4$data$applicat = _state4$data.applicationDetails) === null || _state4$data$applicat === void 0 ? void 0 : (_state4$data$applicat2 = _state4$data$applicat.amendment) === null || _state4$data$applicat2 === void 0 ? void 0 : _state4$data$applicat2.amendmentId}`;
10395
+ history.push(`/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${appId}`);
10239
10396
  } else {
10240
- window.location.href = `${window.location.origin}/digit-ui/citizen/ws/my-applications`;
10397
+ history.push(`/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${appId}`);
10241
10398
  }
10242
- }
10243
- }, 5000);
10244
- return () => clearTimeout(timer);
10399
+ }, 1500);
10400
+ return () => clearTimeout(timer);
10401
+ }
10245
10402
  }, [goToAppDetailsPage]);
10246
10403
  const onFormSubmit = d => {
10247
- var _state5, _state5$data;
10404
+ var _state7, _state7$data;
10248
10405
  const data = {
10249
10406
  Amendment: {
10250
10407
  consumerCode: connectionNumber,
@@ -10271,17 +10428,18 @@ const ApplicationBillAmendment = () => {
10271
10428
  }
10272
10429
  }
10273
10430
  };
10274
- if (((_state5 = state) === null || _state5 === void 0 ? void 0 : (_state5$data = _state5.data) === null || _state5$data === void 0 ? void 0 : _state5$data.action) === "RE-SUBMIT-APPLICATION") {
10275
- var _state6, _state6$data, _state6$data$applicat, _state6$data$applicat2, _state7, _state7$data, _state7$data$applicat, _state7$data$applicat2;
10431
+ if (((_state7 = state) === null || _state7 === void 0 ? void 0 : (_state7$data = _state7.data) === null || _state7$data === void 0 ? void 0 : _state7$data.action) === "RE-SUBMIT-APPLICATION") {
10432
+ var _state8, _state8$data, _state8$data$applicat, _state8$data$applicat2, _state8$data$applicat3, _state8$data$applicat4, _state8$data$applicat5, _state9, _state9$data, _state9$data$applicat, _state9$data$applicat2, _state0, _state0$data, _state0$data$applicat, _state0$data$applicat2, _state0$data$applicat3, _state0$data$applicat4, _state1, _state1$data, _state1$data$applicat, _state1$data$applicat2, _state1$data$applicat3, _state10, _state10$data, _state10$data$applica, _state10$data$applica2, _state10$data$applica3, _state11, _state11$data, _state11$data$applica, _state11$data$applica2, _state12, _state12$data, _state12$data$applica, _state12$data$applica2, _state13, _state13$data, _state13$data$applica, _state13$data$applica2;
10433
+ const selectedAction = ((_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : (_state8$data$applicat = _state8$data.applicationDetails) === null || _state8$data$applicat === void 0 ? void 0 : (_state8$data$applicat2 = _state8$data$applicat.processInstancesDetails) === null || _state8$data$applicat2 === void 0 ? void 0 : (_state8$data$applicat3 = _state8$data$applicat2[0]) === null || _state8$data$applicat3 === void 0 ? void 0 : (_state8$data$applicat4 = _state8$data$applicat3.nextActions) === null || _state8$data$applicat4 === void 0 ? void 0 : (_state8$data$applicat5 = _state8$data$applicat4.find(a => ["RE-SUBMIT", "RESUBMIT", "RE_SUBMIT", "SUBMIT"].includes(a === null || a === void 0 ? void 0 : a.action))) === null || _state8$data$applicat5 === void 0 ? void 0 : _state8$data$applicat5.action) || "RE-SUBMIT";
10276
10434
  const workflow = {
10277
- businessId: (_state6 = state) === null || _state6 === void 0 ? void 0 : (_state6$data = _state6.data) === null || _state6$data === void 0 ? void 0 : (_state6$data$applicat = _state6$data.applicationDetails) === null || _state6$data$applicat === void 0 ? void 0 : (_state6$data$applicat2 = _state6$data$applicat.amendment) === null || _state6$data$applicat2 === void 0 ? void 0 : _state6$data$applicat2.amendmentId,
10278
- action: "RE-SUBMIT",
10435
+ businessId: (_state9 = state) === null || _state9 === void 0 ? void 0 : (_state9$data = _state9.data) === null || _state9$data === void 0 ? void 0 : (_state9$data$applicat = _state9$data.applicationDetails) === null || _state9$data$applicat === void 0 ? void 0 : (_state9$data$applicat2 = _state9$data$applicat.amendment) === null || _state9$data$applicat2 === void 0 ? void 0 : _state9$data$applicat2.amendmentId,
10436
+ action: selectedAction,
10279
10437
  tenantId: tenantId,
10280
- businessService: "WS.AMENDMENT",
10281
- moduleName: "WS"
10438
+ businessService: (_state0 = state) !== null && _state0 !== void 0 && (_state0$data = _state0.data) !== null && _state0$data !== void 0 && (_state0$data$applicat = _state0$data.applicationDetails) !== null && _state0$data$applicat !== void 0 && (_state0$data$applicat2 = _state0$data$applicat.processInstancesDetails) !== null && _state0$data$applicat2 !== void 0 && (_state0$data$applicat3 = _state0$data$applicat2[0]) !== null && _state0$data$applicat3 !== void 0 && (_state0$data$applicat4 = _state0$data$applicat3.businessService) !== null && _state0$data$applicat4 !== void 0 && _state0$data$applicat4.includes(".AMENDMENT") ? (_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : (_state1$data$applicat = _state1$data.applicationDetails) === null || _state1$data$applicat === void 0 ? void 0 : (_state1$data$applicat2 = _state1$data$applicat.processInstancesDetails) === null || _state1$data$applicat2 === void 0 ? void 0 : (_state1$data$applicat3 = _state1$data$applicat2[0]) === null || _state1$data$applicat3 === void 0 ? void 0 : _state1$data$applicat3.businessService : (_state10 = state) !== null && _state10 !== void 0 && (_state10$data = _state10.data) !== null && _state10$data !== void 0 && (_state10$data$applica = _state10$data.applicationDetails) !== null && _state10$data$applica !== void 0 && (_state10$data$applica2 = _state10$data$applica.amendment) !== null && _state10$data$applica2 !== void 0 && (_state10$data$applica3 = _state10$data$applica2.businessService) !== null && _state10$data$applica3 !== void 0 && _state10$data$applica3.includes(".AMENDMENT") ? (_state11 = state) === null || _state11 === void 0 ? void 0 : (_state11$data = _state11.data) === null || _state11$data === void 0 ? void 0 : (_state11$data$applica = _state11$data.applicationDetails) === null || _state11$data$applica === void 0 ? void 0 : (_state11$data$applica2 = _state11$data$applica.amendment) === null || _state11$data$applica2 === void 0 ? void 0 : _state11$data$applica2.businessService : servicev1 === "SW" || ((_state12 = state) === null || _state12 === void 0 ? void 0 : (_state12$data = _state12.data) === null || _state12$data === void 0 ? void 0 : (_state12$data$applica = _state12$data.applicationDetails) === null || _state12$data$applica === void 0 ? void 0 : (_state12$data$applica2 = _state12$data$applica.amendment) === null || _state12$data$applica2 === void 0 ? void 0 : _state12$data$applica2.businessService) === "SW" ? "SW.AMENDMENT" : "WS.AMENDMENT",
10439
+ moduleName: servicev1 === "SW" ? "SW" : "WS"
10282
10440
  };
10283
10441
  const AmendmentUpdate = {
10284
- ...((_state7 = state) === null || _state7 === void 0 ? void 0 : (_state7$data = _state7.data) === null || _state7$data === void 0 ? void 0 : (_state7$data$applicat = _state7$data.applicationDetails) === null || _state7$data$applicat === void 0 ? void 0 : (_state7$data$applicat2 = _state7$data$applicat.applicationData) === null || _state7$data$applicat2 === void 0 ? void 0 : _state7$data$applicat2.billAmendmentDetails),
10442
+ ...((_state13 = state) === null || _state13 === void 0 ? void 0 : (_state13$data = _state13.data) === null || _state13$data === void 0 ? void 0 : (_state13$data$applica = _state13$data.applicationDetails) === null || _state13$data$applica === void 0 ? void 0 : (_state13$data$applica2 = _state13$data$applica.applicationData) === null || _state13$data$applica2 === void 0 ? void 0 : _state13$data$applica2.billAmendmentDetails),
10285
10443
  workflow,
10286
10444
  ...(data === null || data === void 0 ? void 0 : data.Amendment)
10287
10445
  };
@@ -10337,13 +10495,13 @@ const ApplicationBillAmendment = () => {
10337
10495
  const onFormError = formErrors => {
10338
10496
  console.warn("Bill Amendment form errors:", formErrors);
10339
10497
  };
10340
- if (!connectionNumber) {
10498
+ if (!connectionNumber || !isEdit && !((_state14 = state) !== null && _state14 !== void 0 && (_state14$data = _state14.data) !== null && _state14$data !== void 0 && _state14$data.action) && isApplicationNo || isConnInactive) {
10341
10499
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("WS_BILL_AMEND_APP")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
10342
10500
  style: {
10343
10501
  marginTop: "16px",
10344
10502
  marginBottom: "20px"
10345
10503
  }
10346
- }, t("WS_SELECT_CONNECTION_FOR_BILL_AMENDMENT_MSG", "Please select a connection from your connections list to apply for Bill Amendment.")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10504
+ }, isApplicationNo ? t("WS_BILL_AMENDMENT_NOT_FOR_APPLICATION", "Bill Amendment is only applicable for active connections, not for new connection applications.") : isConnInactive ? t("WS_BILL_AMENDMENT_CONN_NOT_ACTIVE", "Bill Amendment is only allowed on active connections. The selected connection is not active.") : t("WS_SELECT_CONNECTION_FOR_BILL_AMENDMENT_MSG", "Please select a connection from your connections list to apply for Bill Amendment.")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10347
10505
  label: t("WS_VIEW_MY_CONNECTIONS", "Go to My Connections"),
10348
10506
  onSubmit: () => history.push(isEmployee ? "/digit-ui/employee/ws/water/search-connection" : "/digit-ui/citizen/ws/my-connections")
10349
10507
  })));
@@ -10354,7 +10512,7 @@ const ApplicationBillAmendment = () => {
10354
10512
  style: {
10355
10513
  marginLeft: "20px"
10356
10514
  }
10357
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, (_state8 = state) !== null && _state8 !== void 0 && (_state8$data = _state8.data) !== null && _state8$data !== void 0 && _state8$data.action ? t("WS_APP_FOR_WATER_AND_SEWERAGE_EDIT_LABEL") : t("WS_BILL_AMENDMENT_BUTTON"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, {
10515
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, (_state15 = state) !== null && _state15 !== void 0 && (_state15$data = _state15.data) !== null && _state15$data !== void 0 && _state15$data.action ? t("WS_APP_FOR_WATER_AND_SEWERAGE_EDIT_LABEL") : t("WS_BILL_AMENDMENT_BUTTON"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, {
10358
10516
  style: {
10359
10517
  marginBottom: "20px"
10360
10518
  }
@@ -10770,7 +10928,7 @@ const ApplicationBillAmendment = () => {
10770
10928
  onClose: closeToast
10771
10929
  }) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10772
10930
  submit: true,
10773
- label: (_state9 = state) !== null && _state9 !== void 0 && (_state9$data = _state9.data) !== null && _state9$data !== void 0 && _state9$data.action ? t("WF_CITIZEN_NEWWS1_RESUBMIT_APPLICATION") : t("WS_COMMON_BUTTON_SUBMIT"),
10931
+ label: (_state16 = state) !== null && _state16 !== void 0 && (_state16$data = _state16.data) !== null && _state16$data !== void 0 && _state16$data.action ? t("WF_CITIZEN_NEWWS1_RESUBMIT_APPLICATION") : t("WS_COMMON_BUTTON_SUBMIT"),
10774
10932
  onSubmit: handleSubmit(onFormSubmit, onFormError)
10775
10933
  })));
10776
10934
  };
@@ -12860,8 +13018,8 @@ function getNative(object, key) {
12860
13018
  }
12861
13019
  var _getNative = getNative;
12862
13020
 
12863
- var Map = _getNative(_root, 'Map');
12864
- var _Map = Map;
13021
+ var Map$1 = _getNative(_root, 'Map');
13022
+ var _Map = Map$1;
12865
13023
 
12866
13024
  var nativeCreate = _getNative(Object, 'create');
12867
13025
  var _nativeCreate = nativeCreate;
@@ -16302,11 +16460,38 @@ function PropertyDocuments(_ref) {
16302
16460
  }
16303
16461
  }));
16304
16462
  };
16463
+ const isInvalidDocNum = (val, doc) => {
16464
+ var _doc$originalDoc, _doc$originalDoc2;
16465
+ if (!val || typeof val !== "string") return true;
16466
+ const trimmed = val.trim();
16467
+ if (!trimmed || trimmed.toUpperCase() === "NA" || trimmed.toUpperCase() === "NULL" || trimmed.toUpperCase() === "UNDEFINED" || trimmed.toUpperCase() === "NONE" || trimmed === "-") {
16468
+ return true;
16469
+ }
16470
+ const uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
16471
+ if (uuidRegex.test(trimmed)) return true;
16472
+ if (/^[0-9a-fA-F]{32}$/.test(trimmed)) return true;
16473
+ if (doc !== null && doc !== void 0 && doc.fileStoreId && trimmed === String(doc.fileStoreId).trim()) return true;
16474
+ if (doc !== null && doc !== void 0 && doc.id && trimmed === String(doc.id).trim()) return true;
16475
+ if (doc !== null && doc !== void 0 && doc.documentId && trimmed === String(doc.documentId).trim()) return true;
16476
+ if (doc !== null && doc !== void 0 && (_doc$originalDoc = doc.originalDoc) !== null && _doc$originalDoc !== void 0 && _doc$originalDoc.fileStoreId && trimmed === String(doc.originalDoc.fileStoreId).trim()) return true;
16477
+ if (doc !== null && doc !== void 0 && (_doc$originalDoc2 = doc.originalDoc) !== null && _doc$originalDoc2 !== void 0 && _doc$originalDoc2.id && trimmed === String(doc.originalDoc.id).trim()) return true;
16478
+ return false;
16479
+ };
16480
+ const getDocNumber = doc => {
16481
+ var _doc$originalDoc3, _doc$originalDoc4;
16482
+ const candidates = [doc === null || doc === void 0 ? void 0 : doc.documentNumber, doc === null || doc === void 0 ? void 0 : doc.documentUid, doc === null || doc === void 0 ? void 0 : (_doc$originalDoc3 = doc.originalDoc) === null || _doc$originalDoc3 === void 0 ? void 0 : _doc$originalDoc3.documentNumber, doc === null || doc === void 0 ? void 0 : (_doc$originalDoc4 = doc.originalDoc) === null || _doc$originalDoc4 === void 0 ? void 0 : _doc$originalDoc4.documentUid];
16483
+ for (const c of candidates) {
16484
+ if (c && !isInvalidDocNum(c, doc)) {
16485
+ return String(c).trim();
16486
+ }
16487
+ }
16488
+ return t("NA");
16489
+ };
16305
16490
  const renderDocumentRow = (value, index) => {
16306
16491
  var _pdfFiles$value$fileS;
16307
16492
  const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
16308
16493
  const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
16309
- const docUid = (value === null || value === void 0 ? void 0 : value.documentNumber) || (value === null || value === void 0 ? void 0 : value.documentUid) || "";
16494
+ const docUid = getDocNumber(value);
16310
16495
  const isPhoto = value === null || value === void 0 ? void 0 : value.isPhoto;
16311
16496
  let typeLabel = "";
16312
16497
  let numLabel = "";
@@ -20567,7 +20752,7 @@ const ApplicationDetailsBillAmendment = () => {
20567
20752
  const queryParams = Digit.Hooks.useQueryParams();
20568
20753
  const applicationNumber = (queryParams === null || queryParams === void 0 ? void 0 : queryParams.applicationNumber) || (queryParams === null || queryParams === void 0 ? void 0 : queryParams.applicationNo);
20569
20754
  const isEmployee = window.location.href.includes("/employee");
20570
- const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
20755
+ const tenantId = (queryParams === null || queryParams === void 0 ? void 0 : queryParams.tenantId) || (Digit.ULBService.getCurrentTenantId() && Digit.ULBService.getCurrentTenantId() !== "dl" ? Digit.ULBService.getCurrentTenantId() : "dl.djb");
20571
20756
  const {
20572
20757
  t
20573
20758
  } = reactI18next.useTranslation();
@@ -20591,8 +20776,9 @@ const ApplicationDetailsBillAmendment = () => {
20591
20776
  enabled: !!applicationNumber
20592
20777
  }
20593
20778
  });
20594
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.forEach(action => {
20595
- if ((action === null || action === void 0 ? void 0 : action.action) === "RE-SUBMIT") {
20779
+ const allNextActions = [...((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.nextActions) || []), ...((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.nextActions) || [])];
20780
+ allNextActions.forEach(action => {
20781
+ if (["RE-SUBMIT", "RESUBMIT", "RE_SUBMIT", "SUBMIT", "EDIT"].includes(action === null || action === void 0 ? void 0 : action.action)) {
20596
20782
  var _applicationDetails$a, _applicationDetails$a2;
20597
20783
  let pathName = isEmployee ? `/digit-ui/employee/ws/bill-amendment?connectionNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.connectionNo}&tenantId=${tenantId}&isEdit=true` : `/digit-ui/citizen/ws/bill-amendment?connectionNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.connectionNo}&tenantId=${tenantId}&isEdit=true`;
20598
20784
  action.redirectionUrll = {
@@ -20940,7 +21126,7 @@ const App = _ref => {
20940
21126
  className: "employee-form"
20941
21127
  }, /*#__PURE__*/React__default.createElement("div", {
20942
21128
  className: "employee-form-content"
20943
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21129
+ }, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
20944
21130
  path: `${path}/create-application`,
20945
21131
  component: WSInfoPage
20946
21132
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
@@ -21020,6 +21206,13 @@ const App = _ref => {
21020
21206
  path: `${path}/mutation-application`,
21021
21207
  component: WSMutationApplication
21022
21208
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21209
+ exact: true,
21210
+ path: `${path}/bill-amendment/application-details`,
21211
+ component: props => /*#__PURE__*/React__default.createElement(WSApplicationDetailsBillAmendment, _extends({}, props, {
21212
+ path: path
21213
+ }))
21214
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21215
+ exact: true,
21023
21216
  path: `${path}/bill-amendment`,
21024
21217
  component: props => /*#__PURE__*/React__default.createElement(WSApplicationBillAmendment, _extends({}, props, {
21025
21218
  path: path
@@ -21039,12 +21232,7 @@ const App = _ref => {
21039
21232
  component: props => /*#__PURE__*/React__default.createElement(ResponseBillAmend, _extends({}, props, {
21040
21233
  path: path
21041
21234
  }))
21042
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21043
- path: `${path}/bill-amendment/application-details`,
21044
- component: props => /*#__PURE__*/React__default.createElement(WSApplicationDetailsBillAmendment, _extends({}, props, {
21045
- path: path
21046
- }))
21047
- })))))));
21235
+ }))))))));
21048
21236
  };
21049
21237
 
21050
21238
  const getPropertyAddress$2 = property => {
@@ -22713,6 +22901,1969 @@ const WSZROVerificationDetails = () => {
22713
22901
  }));
22714
22902
  };
22715
22903
 
22904
+ const initialChecklist = {
22905
+ inspectionDate: new Date().toISOString().split("T")[0],
22906
+ inspectionTime: "11:30 AM",
22907
+ siteInspectorName: "",
22908
+ inspectorEmployeeId: "",
22909
+ isLicensedPlumberPresent: {
22910
+ code: "YES",
22911
+ name: "YES"
22912
+ },
22913
+ isConsumerRepresentativePresent: {
22914
+ code: "YES",
22915
+ name: "YES"
22916
+ },
22917
+ consumerIdentityVerified: false,
22918
+ knoDetailsMatched: false,
22919
+ propertyAddressVerified: false,
22920
+ localityColonyVerified: false,
22921
+ propertyUseVerified: false,
22922
+ plotDetailsVerified: false,
22923
+ existingWaterConnectionChecked: false,
22924
+ proposedConnectionPointIdentified: false,
22925
+ waterMainAndRoadAccessFeasible: false,
22926
+ meterLocationIdentifiedAndAccessible: false,
22927
+ licensedPlumberVerified: false,
22928
+ siteConditionsMatchedApplication: false,
22929
+ siteAccessibility: {
22930
+ code: "ACCESSIBLE",
22931
+ name: "ACCESSIBLE"
22932
+ },
22933
+ proposedMeterLocation: {
22934
+ code: "INSIDE_PREMISES",
22935
+ name: "INSIDE_PREMISES"
22936
+ },
22937
+ siteFeasibilityObserved: {
22938
+ code: "FEASIBLE",
22939
+ name: "FEASIBLE"
22940
+ },
22941
+ siteInspectorRemarks: ""
22942
+ };
22943
+ const initialDeclaration = {
22944
+ agreed: false,
22945
+ inspectorName: "",
22946
+ submissionDate: new Date().toISOString().split("T")[0]
22947
+ };
22948
+ const emptyConnectionDetails = {
22949
+ kno: "",
22950
+ applicationNo: "",
22951
+ connectionNo: "",
22952
+ tenantId: "",
22953
+ status: "",
22954
+ applicationType: "",
22955
+ knoIssuanceDate: "",
22956
+ knoIssuanceDateEpoch: null,
22957
+ zone: "",
22958
+ zroOffice: "",
22959
+ connectionType: "",
22960
+ connectionCategory: "",
22961
+ applicationStatus: "",
22962
+ assignedLicensedPlumber: "",
22963
+ propertyAddress: "",
22964
+ city: "",
22965
+ pincode: "",
22966
+ locality: "",
22967
+ subLocality: "",
22968
+ colonyCategory: "",
22969
+ propertyUse: "",
22970
+ ownershipType: "",
22971
+ houseNo: "",
22972
+ consumerName: "",
22973
+ mobileNumber: "",
22974
+ emailId: "",
22975
+ applicantType: "",
22976
+ identityType: "",
22977
+ alternateContactNumber: "",
22978
+ plotNumber: "",
22979
+ plotArea: "",
22980
+ plotAreaUnit: "",
22981
+ numberOfFloors: "",
22982
+ coveredArea: "",
22983
+ roadWidth: "",
22984
+ propertyType: "",
22985
+ buildingStatus: "",
22986
+ existingWaterConnection: ""
22987
+ };
22988
+ const yesNoOptions = [{
22989
+ code: "YES",
22990
+ name: "YES"
22991
+ }, {
22992
+ code: "NO",
22993
+ name: "NO"
22994
+ }];
22995
+ const siteAccessibilityOptions = [{
22996
+ code: "ACCESSIBLE",
22997
+ name: "ACCESSIBLE"
22998
+ }, {
22999
+ code: "INACCESSIBLE",
23000
+ name: "INACCESSIBLE"
23001
+ }, {
23002
+ code: "PARTIALLY_ACCESSIBLE",
23003
+ name: "PARTIALLY_ACCESSIBLE"
23004
+ }];
23005
+ const proposedMeterLocationOptions = [{
23006
+ code: "INSIDE_PREMISES",
23007
+ name: "INSIDE_PREMISES"
23008
+ }, {
23009
+ code: "OUTSIDE_PREMISES",
23010
+ name: "OUTSIDE_PREMISES"
23011
+ }, {
23012
+ code: "BOUNDARY_WALL",
23013
+ name: "BOUNDARY_WALL"
23014
+ }, {
23015
+ code: "METER_CHAMBER",
23016
+ name: "METER_CHAMBER"
23017
+ }];
23018
+ const siteFeasibilityOptions = [{
23019
+ code: "FEASIBLE",
23020
+ name: "FEASIBLE"
23021
+ }, {
23022
+ code: "NOT_FEASIBLE",
23023
+ name: "NOT_FEASIBLE"
23024
+ }, {
23025
+ code: "FEASIBLE_WITH_CONDITIONS",
23026
+ name: "FEASIBLE_WITH_CONDITIONS"
23027
+ }];
23028
+ const WSFieldInspection = () => {
23029
+ var _Digit$UserService$ge, _checklist$isLicensed2, _checklist$isConsumer2, _checklist$siteAccess2, _checklist$proposedMe2, _checklist$siteFeasib2;
23030
+ const {
23031
+ t
23032
+ } = reactI18next.useTranslation();
23033
+ const history = reactRouterDom.useHistory();
23034
+ const printRef = React.useRef();
23035
+ const loggedInUser = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
23036
+ const currentTenantId = Digit.ULBService.getCurrentTenantId() || "dl";
23037
+ const [searchKno, setSearchKno] = React.useState("");
23038
+ const [isSearching, setIsSearching] = React.useState(false);
23039
+ const [isSubmitting, setIsSubmitting] = React.useState(false);
23040
+ const [toast, setToast] = React.useState(null);
23041
+ const [dataLoaded, setDataLoaded] = React.useState(false);
23042
+ const [isSubmittedSuccess, setIsSubmittedSuccess] = React.useState(false);
23043
+ const [submittedData, setSubmittedData] = React.useState(null);
23044
+ const [connectionDetails, setConnectionDetails] = React.useState({
23045
+ ...emptyConnectionDetails,
23046
+ tenantId: currentTenantId
23047
+ });
23048
+ const [checklist, setChecklist] = React.useState({
23049
+ ...initialChecklist,
23050
+ siteInspectorName: (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || "",
23051
+ inspectorEmployeeId: loggedInUser !== null && loggedInUser !== void 0 && loggedInUser.id ? String(loggedInUser.id) : (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.code) || ""
23052
+ });
23053
+ const [uploadedDocuments, setUploadedDocuments] = React.useState([]);
23054
+ const [isUploading, setIsUploading] = React.useState(false);
23055
+ const [declaration, setDeclaration] = React.useState({
23056
+ ...initialDeclaration,
23057
+ inspectorName: (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || ""
23058
+ });
23059
+ React.useEffect(() => {
23060
+ setDeclaration(prev => ({
23061
+ ...prev,
23062
+ inspectorName: checklist.siteInspectorName
23063
+ }));
23064
+ }, [checklist.siteInspectorName]);
23065
+ const handleSearch = function (e) {
23066
+ try {
23067
+ if (e && e.preventDefault) e.preventDefault();
23068
+ const knoQuery = searchKno.trim();
23069
+ if (!knoQuery) {
23070
+ setToast({
23071
+ key: "warning",
23072
+ message: t("WS_ENTER_KNO_WARNING", "Please enter K Number / Connection ID")
23073
+ });
23074
+ return Promise.resolve();
23075
+ }
23076
+ setIsSearching(true);
23077
+ setToast(null);
23078
+ return Promise.resolve(_finallyRethrows(function () {
23079
+ return _catch(function () {
23080
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
23081
+ const params = {
23082
+ connectionNumber: knoQuery,
23083
+ searchType: "CONNECTION",
23084
+ isConnectionSearch: true
23085
+ };
23086
+ let connection = null;
23087
+ return Promise.resolve(Digit.WSService.search({
23088
+ tenantId,
23089
+ filters: params,
23090
+ businessService: "WS"
23091
+ }).catch(() => null)).then(function (wsResponse) {
23092
+ function _temp6() {
23093
+ function _temp4() {
23094
+ function _temp2() {
23095
+ var _connection$connectio, _property, _property$owners, _property2, _property3, _connection$auditDeta, _connection$plumberIn, _addr$locality, _addDetails$siteInspe, _property4, _connection$tenantId, _connection$tenantId$, _connection$tenantId$2, _addr$locality2, _addr$locality3, _addr$additionalDetai, _addr$additionalDetai2, _property5, _property6, _property7, _property8, _property9, _property0, _property1, _property10, _property11;
23096
+ const holder = ((_connection$connectio = connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : _connection$connectio[0]) || {};
23097
+ const owner = ((_property = property) === null || _property === void 0 ? void 0 : (_property$owners = _property.owners) === null || _property$owners === void 0 ? void 0 : _property$owners[0]) || {};
23098
+ const addr = ((_property2 = property) === null || _property2 === void 0 ? void 0 : _property2.address) || connection.address || {};
23099
+ const addDetails = connection.additionalDetails || {};
23100
+ const propAddDetails = ((_property3 = property) === null || _property3 === void 0 ? void 0 : _property3.additionalDetails) || {};
23101
+ const issuanceEpoch = addDetails.knoIssuanceDate || connection.dateEffectiveFrom || ((_connection$auditDeta = connection.auditDetails) === null || _connection$auditDeta === void 0 ? void 0 : _connection$auditDeta.createdTime);
23102
+ const formattedIssuanceDate = issuanceEpoch ? Digit.DateUtils ? Digit.DateUtils.ConvertTimestampToDate(issuanceEpoch) : new Date(issuanceEpoch).toLocaleDateString("en-IN") : "NA";
23103
+ const plumberInfo = (_connection$plumberIn = connection.plumberInfo) === null || _connection$plumberIn === void 0 ? void 0 : _connection$plumberIn[0];
23104
+ const assignedPlumber = addDetails.assignedLicensedPlumber || (plumberInfo !== null && plumberInfo !== void 0 && plumberInfo.name ? `${plumberInfo.name}${plumberInfo.licenseNo ? ` (${plumberInfo.licenseNo})` : ""}` : "NA");
23105
+ const formattedAddress = addr.addressLine1 || [addr.doorNo || addr.houseNo, addr.buildingName, addr.street, (_addr$locality = addr.locality) === null || _addr$locality === void 0 ? void 0 : _addr$locality.name].filter(Boolean).join(", ") || "NA";
23106
+ setConnectionDetails({
23107
+ kno: connection.connectionNo || knoQuery,
23108
+ applicationNo: connection.applicationNo || "NA",
23109
+ connectionNo: connection.connectionNo || knoQuery,
23110
+ tenantId: connection.tenantId || tenantId,
23111
+ status: connection.status || connection.applicationStatus || "Active",
23112
+ applicationType: connection.applicationType || "NEW_WATER_CONNECTION",
23113
+ knoIssuanceDate: formattedIssuanceDate,
23114
+ knoIssuanceDateEpoch: issuanceEpoch || null,
23115
+ zone: addDetails.zone || addr.zone || ((_addDetails$siteInspe = addDetails.siteInspection) === null || _addDetails$siteInspe === void 0 ? void 0 : _addDetails$siteInspe.zone) || "NA",
23116
+ zroOffice: addDetails.zroOffice || addDetails.zroName || addDetails.subdivision || addDetails.zroLocation || "NA",
23117
+ connectionType: connection.connectionType || "NA",
23118
+ connectionCategory: addDetails.category || addDetails.connectionCategory || connection.waterSource || ((_property4 = property) === null || _property4 === void 0 ? void 0 : _property4.propertyType) || "NA",
23119
+ applicationStatus: connection.applicationStatus || connection.status || "Active",
23120
+ assignedLicensedPlumber: assignedPlumber,
23121
+ propertyAddress: formattedAddress,
23122
+ city: addr.city || ((_connection$tenantId = connection.tenantId) === null || _connection$tenantId === void 0 ? void 0 : (_connection$tenantId$ = _connection$tenantId.split(".")) === null || _connection$tenantId$ === void 0 ? void 0 : (_connection$tenantId$2 = _connection$tenantId$[1]) === null || _connection$tenantId$2 === void 0 ? void 0 : _connection$tenantId$2.toUpperCase()) || "NA",
23123
+ pincode: addr.pincode || "NA",
23124
+ locality: ((_addr$locality2 = addr.locality) === null || _addr$locality2 === void 0 ? void 0 : _addr$locality2.name) || ((_addr$locality3 = addr.locality) === null || _addr$locality3 === void 0 ? void 0 : _addr$locality3.code) || "NA",
23125
+ subLocality: ((_addr$additionalDetai = addr.additionalDetails) === null || _addr$additionalDetai === void 0 ? void 0 : _addr$additionalDetai.subLocality) || addr.buildingName || addr.street || "NA",
23126
+ colonyCategory: propAddDetails.colonyCategory || ((_addr$additionalDetai2 = addr.additionalDetails) === null || _addr$additionalDetai2 === void 0 ? void 0 : _addr$additionalDetai2.colonyCategory) || "NA",
23127
+ propertyUse: ((_property5 = property) === null || _property5 === void 0 ? void 0 : _property5.usageCategory) || addDetails.propertyUse || ((_property6 = property) === null || _property6 === void 0 ? void 0 : _property6.propertyType) || "NA",
23128
+ ownershipType: ((_property7 = property) === null || _property7 === void 0 ? void 0 : _property7.ownershipCategory) || "NA",
23129
+ houseNo: addr.doorNo || addr.houseNo || ((_property8 = property) === null || _property8 === void 0 ? void 0 : _property8.propertyId) || "NA",
23130
+ consumerName: holder.name || owner.name || "NA",
23131
+ mobileNumber: holder.mobileNumber || owner.mobileNumber || "NA",
23132
+ emailId: holder.emailId || owner.emailId || "NA",
23133
+ applicantType: holder.type || owner.type || "NA",
23134
+ identityType: holder.relationship || owner.ownerType || "NA",
23135
+ alternateContactNumber: holder.altContactNumber || addDetails.alternateMobileNumber || owner.alternatemobilenumber || "NA",
23136
+ plotNumber: addr.plotNo || propAddDetails.plotNo || addr.doorNo || "NA",
23137
+ plotArea: (_property9 = property) !== null && _property9 !== void 0 && _property9.landArea ? String(property.landArea) : addDetails.plotArea ? String(addDetails.plotArea) : "NA",
23138
+ plotAreaUnit: propAddDetails.plotAreaUnit || addDetails.plotAreaUnit || "NA",
23139
+ numberOfFloors: (_property0 = property) !== null && _property0 !== void 0 && _property0.noOfFloors ? String(property.noOfFloors) : addDetails.noOfFloors ? String(addDetails.noOfFloors) : "NA",
23140
+ coveredArea: propAddDetails.coveredArea || (_property1 = property) !== null && _property1 !== void 0 && _property1.superBuiltUpArea ? String(propAddDetails.coveredArea || ((_property10 = property) === null || _property10 === void 0 ? void 0 : _property10.superBuiltUpArea)) : "NA",
23141
+ roadWidth: addDetails.roadWidth || propAddDetails.roadWidth ? String(addDetails.roadWidth || propAddDetails.roadWidth) : "NA",
23142
+ propertyType: ((_property11 = property) === null || _property11 === void 0 ? void 0 : _property11.propertyType) || "NA",
23143
+ buildingStatus: propAddDetails.buildingStatus || addDetails.buildingStatus || "NA",
23144
+ existingWaterConnection: addDetails.existingWaterConnection || (connection.connectionNo ? "Yes" : "No")
23145
+ });
23146
+ setDataLoaded(true);
23147
+ setToast({
23148
+ key: "success",
23149
+ message: t("WS_KNO_FETCH_SUCCESS", "KNO details fetched successfully from DJB records.")
23150
+ });
23151
+ }
23152
+ if (!connection) {
23153
+ setDataLoaded(false);
23154
+ setConnectionDetails({
23155
+ ...emptyConnectionDetails,
23156
+ tenantId
23157
+ });
23158
+ setToast({
23159
+ key: "error",
23160
+ message: t("WS_NO_CONNECTION_FOUND_ERR", "Active connection not found for the given K Number")
23161
+ });
23162
+ return;
23163
+ }
23164
+ let property = connection.property;
23165
+ const _temp = function () {
23166
+ if (!property && connection.propertyId) {
23167
+ return Promise.resolve(Digit.PTService.search({
23168
+ tenantId: connection.tenantId || tenantId,
23169
+ filters: {
23170
+ propertyIds: connection.propertyId
23171
+ },
23172
+ auth: true
23173
+ }).catch(() => null)).then(function (propertyResponse) {
23174
+ var _propertyResponse$Pro;
23175
+ property = propertyResponse === null || propertyResponse === void 0 ? void 0 : (_propertyResponse$Pro = propertyResponse.Properties) === null || _propertyResponse$Pro === void 0 ? void 0 : _propertyResponse$Pro[0];
23176
+ });
23177
+ }
23178
+ }();
23179
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
23180
+ }
23181
+ const _temp3 = function () {
23182
+ if (!connection) {
23183
+ return Promise.resolve(Digit.WSService.search({
23184
+ tenantId,
23185
+ filters: params,
23186
+ businessService: "SW"
23187
+ }).catch(() => null)).then(function (swResponse) {
23188
+ const swData = (swResponse === null || swResponse === void 0 ? void 0 : swResponse.data) || swResponse;
23189
+ if (swData !== null && swData !== void 0 && swData.SewerageConnections && swData.SewerageConnections.length > 0) {
23190
+ connection = swData.SewerageConnections[0];
23191
+ }
23192
+ });
23193
+ }
23194
+ }();
23195
+ return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
23196
+ }
23197
+ const waterData = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.data) || wsResponse;
23198
+ if (waterData !== null && waterData !== void 0 && waterData.WaterConnection && waterData.WaterConnection.length > 0) {
23199
+ connection = waterData.WaterConnection.find(c => c.connectionNo === knoQuery) || waterData.WaterConnection[0];
23200
+ }
23201
+ const _temp5 = function () {
23202
+ if (!connection) {
23203
+ return Promise.resolve(Digit.WSService.search({
23204
+ tenantId,
23205
+ filters: {
23206
+ applicationNumber: knoQuery
23207
+ },
23208
+ businessService: "WS"
23209
+ }).catch(() => null)).then(function (appResponse) {
23210
+ const appData = (appResponse === null || appResponse === void 0 ? void 0 : appResponse.data) || appResponse;
23211
+ if (appData !== null && appData !== void 0 && appData.WaterConnection && appData.WaterConnection.length > 0) {
23212
+ connection = appData.WaterConnection[0];
23213
+ }
23214
+ });
23215
+ }
23216
+ }();
23217
+ return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
23218
+ });
23219
+ }, function (err) {
23220
+ console.error("Error searching KNO:", err);
23221
+ setDataLoaded(false);
23222
+ setConnectionDetails({
23223
+ ...emptyConnectionDetails
23224
+ });
23225
+ setToast({
23226
+ key: "error",
23227
+ message: (err === null || err === void 0 ? void 0 : err.message) || t("WS_KNO_SEARCH_ERROR", "Error fetching KNO details.")
23228
+ });
23229
+ });
23230
+ }, function (_wasThrown, _result) {
23231
+ setIsSearching(false);
23232
+ if (_wasThrown) throw _result;
23233
+ return _result;
23234
+ }));
23235
+ } catch (e) {
23236
+ return Promise.reject(e);
23237
+ }
23238
+ };
23239
+ const handleChecklistChange = (field, value) => {
23240
+ setChecklist(prev => ({
23241
+ ...prev,
23242
+ [field]: value
23243
+ }));
23244
+ };
23245
+ const handleFileUpload = function (e) {
23246
+ try {
23247
+ var _e$target$files;
23248
+ const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
23249
+ if (!file) return Promise.resolve();
23250
+ if (file.size >= 5242880) {
23251
+ setToast({
23252
+ key: "error",
23253
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED", "Maximum file size is 5MB")
23254
+ });
23255
+ return Promise.resolve();
23256
+ }
23257
+ setIsUploading(true);
23258
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
23259
+ const _temp7 = _finallyRethrows(function () {
23260
+ return _catch(function () {
23261
+ return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, tenantId)).then(function (res) {
23262
+ var _res$data, _res$data$files, _res$data$files$;
23263
+ const fileStoreId = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$files = _res$data.files) === null || _res$data$files === void 0 ? void 0 : (_res$data$files$ = _res$data$files[0]) === null || _res$data$files$ === void 0 ? void 0 : _res$data$files$.fileStoreId;
23264
+ if (fileStoreId) {
23265
+ setUploadedDocuments(prev => [...prev, {
23266
+ documentType: "SITE_INSPECTION_PHOTO",
23267
+ fileStoreId: fileStoreId,
23268
+ documentUid: file.name,
23269
+ fileName: file.name,
23270
+ fileSize: (file.size / 1024).toFixed(1) + " KB"
23271
+ }]);
23272
+ setToast({
23273
+ key: "success",
23274
+ message: t("WS_PHOTO_UPLOAD_SUCCESS", "Photograph uploaded successfully.")
23275
+ });
23276
+ } else {
23277
+ setToast({
23278
+ key: "error",
23279
+ message: t("CS_FILE_UPLOAD_ERROR", "File upload failed.")
23280
+ });
23281
+ }
23282
+ });
23283
+ }, function (err) {
23284
+ console.error("File upload error:", err);
23285
+ setToast({
23286
+ key: "error",
23287
+ message: t("CS_FILE_UPLOAD_ERROR", "File upload failed.")
23288
+ });
23289
+ });
23290
+ }, function (_wasThrown2, _result2) {
23291
+ setIsUploading(false);
23292
+ e.target.value = null;
23293
+ if (_wasThrown2) throw _result2;
23294
+ return _result2;
23295
+ });
23296
+ return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(function () {}) : void 0);
23297
+ } catch (e) {
23298
+ return Promise.reject(e);
23299
+ }
23300
+ };
23301
+ const handleRemoveDocument = indexToRemove => {
23302
+ setUploadedDocuments(prev => prev.filter((_, idx) => idx !== indexToRemove));
23303
+ };
23304
+ const handleReset = () => {
23305
+ if (window.confirm(t("WS_RESET_CONFIRMATION", "Are you sure you want to reset the checklist, evidence, and declaration?"))) {
23306
+ setChecklist({
23307
+ ...initialChecklist,
23308
+ siteInspectorName: (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || "",
23309
+ inspectorEmployeeId: loggedInUser !== null && loggedInUser !== void 0 && loggedInUser.id ? String(loggedInUser.id) : (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.code) || ""
23310
+ });
23311
+ setUploadedDocuments([]);
23312
+ setDeclaration({
23313
+ ...initialDeclaration,
23314
+ inspectorName: (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.name) || ""
23315
+ });
23316
+ setToast({
23317
+ key: "info",
23318
+ message: t("WS_CHECKLIST_RESET", "Checklist and declaration have been reset.")
23319
+ });
23320
+ }
23321
+ };
23322
+ const handlePrint = () => {
23323
+ const printElement = document.getElementById("field-inspection-printable-document");
23324
+ if (!printElement) {
23325
+ window.print();
23326
+ return;
23327
+ }
23328
+ try {
23329
+ let iframe = document.getElementById("field-inspection-print-frame");
23330
+ if (iframe && iframe.parentNode) {
23331
+ iframe.parentNode.removeChild(iframe);
23332
+ }
23333
+ iframe = document.createElement("iframe");
23334
+ iframe.id = "field-inspection-print-frame";
23335
+ iframe.style.position = "fixed";
23336
+ iframe.style.right = "0";
23337
+ iframe.style.bottom = "0";
23338
+ iframe.style.width = "0";
23339
+ iframe.style.height = "0";
23340
+ iframe.style.border = "0";
23341
+ iframe.style.zIndex = "-9999";
23342
+ document.body.appendChild(iframe);
23343
+ const pri = iframe.contentWindow;
23344
+ pri.document.open();
23345
+ pri.document.write(`
23346
+ <!DOCTYPE html>
23347
+ <html>
23348
+ <head>
23349
+ <meta charset="utf-8" />
23350
+ <title>DJB Site Inspection Form - ${connectionDetails.kno || connectionDetails.connectionNo || searchKno || "Water Connection"}</title>
23351
+ <style>
23352
+ @page {
23353
+ size: A4 portrait;
23354
+ margin: 10mm 12mm;
23355
+ }
23356
+ * {
23357
+ box-sizing: border-box;
23358
+ -webkit-print-color-adjust: exact !important;
23359
+ print-color-adjust: exact !important;
23360
+ }
23361
+ body {
23362
+ font-family: Arial, Helvetica, sans-serif;
23363
+ color: #111111;
23364
+ margin: 0;
23365
+ padding: 0;
23366
+ font-size: 9.5pt;
23367
+ line-height: 1.35;
23368
+ background: #ffffff;
23369
+ }
23370
+ .print-header {
23371
+ text-align: center;
23372
+ border-bottom: 2px solid #003366;
23373
+ padding-bottom: 8px;
23374
+ margin-bottom: 12px;
23375
+ }
23376
+ .print-header h1 {
23377
+ font-size: 15pt;
23378
+ font-weight: bold;
23379
+ margin: 0 0 3px 0;
23380
+ color: #003366;
23381
+ }
23382
+ .print-header h2 {
23383
+ font-size: 11.5pt;
23384
+ font-weight: bold;
23385
+ margin: 0 0 3px 0;
23386
+ color: #222222;
23387
+ }
23388
+ .print-header .subtitle {
23389
+ font-size: 9pt;
23390
+ color: #555555;
23391
+ }
23392
+ .print-header .meta-bar {
23393
+ display: flex;
23394
+ justify-content: space-between;
23395
+ margin-top: 6px;
23396
+ font-size: 8.5pt;
23397
+ border-top: 1px solid #dddddd;
23398
+ padding-top: 4px;
23399
+ }
23400
+ .print-section {
23401
+ margin-bottom: 10px;
23402
+ page-break-inside: avoid;
23403
+ break-inside: avoid;
23404
+ }
23405
+ .print-section-header {
23406
+ background-color: #003366 !important;
23407
+ color: #ffffff !important;
23408
+ font-weight: bold;
23409
+ font-size: 9.5pt;
23410
+ padding: 4px 8px;
23411
+ margin-bottom: 4px;
23412
+ -webkit-print-color-adjust: exact !important;
23413
+ print-color-adjust: exact !important;
23414
+ }
23415
+ .print-table {
23416
+ width: 100%;
23417
+ border-collapse: collapse;
23418
+ margin-bottom: 4px;
23419
+ font-size: 8.5pt;
23420
+ }
23421
+ .print-table th, .print-table td {
23422
+ border: 1px solid #333333;
23423
+ padding: 4px 6px;
23424
+ vertical-align: top;
23425
+ }
23426
+ .print-label {
23427
+ font-weight: bold;
23428
+ background-color: #f7f7f7 !important;
23429
+ color: #222222;
23430
+ -webkit-print-color-adjust: exact !important;
23431
+ print-color-adjust: exact !important;
23432
+ }
23433
+ .print-value {
23434
+ color: #111111;
23435
+ word-break: break-word;
23436
+ }
23437
+ </style>
23438
+ </head>
23439
+ <body>
23440
+ ${printElement.innerHTML}
23441
+ </body>
23442
+ </html>
23443
+ `);
23444
+ pri.document.close();
23445
+ setTimeout(() => {
23446
+ pri.focus();
23447
+ pri.print();
23448
+ setTimeout(() => {
23449
+ if (iframe && iframe.parentNode) {
23450
+ iframe.parentNode.removeChild(iframe);
23451
+ }
23452
+ }, 1500);
23453
+ }, 300);
23454
+ } catch (e) {
23455
+ console.warn("Iframe print fallback triggered:", e);
23456
+ window.print();
23457
+ }
23458
+ };
23459
+ const handleSubmit = function () {
23460
+ try {
23461
+ var _checklist$siteInspec, _checklist$siteInspec2, _checklist$isLicensed, _checklist$isConsumer, _checklist$siteAccess, _checklist$proposedMe, _checklist$siteFeasib;
23462
+ if (!dataLoaded) {
23463
+ setToast({
23464
+ key: "error",
23465
+ message: t("WS_LOAD_KNO_FIRST", "Please search and load a valid KNO record first.")
23466
+ });
23467
+ return Promise.resolve();
23468
+ }
23469
+ if (!checklist.inspectionDate) {
23470
+ setToast({
23471
+ key: "error",
23472
+ message: t("WS_REQ_INSPECTION_DATE", "Please specify the Inspection Date.")
23473
+ });
23474
+ return Promise.resolve();
23475
+ }
23476
+ if (!checklist.inspectionTime) {
23477
+ setToast({
23478
+ key: "error",
23479
+ message: t("WS_REQ_INSPECTION_TIME", "Please specify the Inspection Time.")
23480
+ });
23481
+ return Promise.resolve();
23482
+ }
23483
+ if (!((_checklist$siteInspec = checklist.siteInspectorName) !== null && _checklist$siteInspec !== void 0 && _checklist$siteInspec.trim())) {
23484
+ setToast({
23485
+ key: "error",
23486
+ message: t("WS_REQ_INSPECTOR_NAME", "Please enter Site Inspector Name.")
23487
+ });
23488
+ return Promise.resolve();
23489
+ }
23490
+ if (!((_checklist$siteInspec2 = checklist.siteInspectorRemarks) !== null && _checklist$siteInspec2 !== void 0 && _checklist$siteInspec2.trim())) {
23491
+ setToast({
23492
+ key: "error",
23493
+ message: t("WS_REQ_INSPECTOR_REMARKS", "Please enter Site Inspector Observations / Remarks.")
23494
+ });
23495
+ return Promise.resolve();
23496
+ }
23497
+ if (uploadedDocuments.length === 0) {
23498
+ setToast({
23499
+ key: "error",
23500
+ message: t("WS_REQ_EVIDENCE_PHOTO", "Please upload at least one Site Photograph evidence.")
23501
+ });
23502
+ return Promise.resolve();
23503
+ }
23504
+ if (!declaration.agreed) {
23505
+ setToast({
23506
+ key: "error",
23507
+ message: t("WS_REQ_DECLARATION_AGREE", "Please accept the Declaration before submitting the report.")
23508
+ });
23509
+ return Promise.resolve();
23510
+ }
23511
+ setIsSubmitting(true);
23512
+ setToast(null);
23513
+ const inspectionDateEpoch = new Date(checklist.inspectionDate).getTime() || Date.now();
23514
+ const submissionDateEpoch = new Date(declaration.submissionDate).getTime() || Date.now();
23515
+ const knoIssuanceEpoch = connectionDetails.knoIssuanceDateEpoch || Date.now();
23516
+ const docsPayload = uploadedDocuments.map(doc => ({
23517
+ documentType: doc.documentType || "SITE_INSPECTION_PHOTO",
23518
+ fileStoreId: doc.fileStoreId,
23519
+ documentUid: doc.documentUid || doc.fileName || "property_frontage.jpg"
23520
+ }));
23521
+ const submitPayload = {
23522
+ WaterConnection: {
23523
+ applicationNo: connectionDetails.applicationNo,
23524
+ connectionNo: connectionDetails.connectionNo,
23525
+ tenantId: connectionDetails.tenantId,
23526
+ status: connectionDetails.status || "Active",
23527
+ applicationType: connectionDetails.applicationType || "NEW_WATER_CONNECTION",
23528
+ inspectionInformation: {
23529
+ inspectionType: {
23530
+ code: "SITE_INSPECTION",
23531
+ i18nKey: "WS_SITE_INSPECTION"
23532
+ },
23533
+ inspectionDate: inspectionDateEpoch,
23534
+ inspectorName: checklist.siteInspectorName
23535
+ },
23536
+ documents: docsPayload,
23537
+ additionalDetails: {
23538
+ siteInspection: {
23539
+ knoIssuanceDate: knoIssuanceEpoch,
23540
+ zone: connectionDetails.zone,
23541
+ zroOffice: connectionDetails.zroOffice,
23542
+ assignedLicensedPlumber: connectionDetails.assignedLicensedPlumber,
23543
+ inspectionTime: checklist.inspectionTime,
23544
+ inspectorEmployeeId: checklist.inspectorEmployeeId,
23545
+ isLicensedPlumberPresent: ((_checklist$isLicensed = checklist.isLicensedPlumberPresent) === null || _checklist$isLicensed === void 0 ? void 0 : _checklist$isLicensed.code) || checklist.isLicensedPlumberPresent,
23546
+ isConsumerRepresentativePresent: ((_checklist$isConsumer = checklist.isConsumerRepresentativePresent) === null || _checklist$isConsumer === void 0 ? void 0 : _checklist$isConsumer.code) || checklist.isConsumerRepresentativePresent,
23547
+ checklist: {
23548
+ consumerIdentityVerified: !!checklist.consumerIdentityVerified,
23549
+ knoDetailsMatched: !!checklist.knoDetailsMatched,
23550
+ propertyAddressVerified: !!checklist.propertyAddressVerified,
23551
+ localityColonyVerified: !!checklist.localityColonyVerified,
23552
+ propertyUseVerified: !!checklist.propertyUseVerified,
23553
+ plotDetailsVerified: !!checklist.plotDetailsVerified,
23554
+ existingWaterConnectionChecked: !!checklist.existingWaterConnectionChecked,
23555
+ proposedConnectionPointIdentified: !!checklist.proposedConnectionPointIdentified,
23556
+ waterMainAndRoadAccessFeasible: !!checklist.waterMainAndRoadAccessFeasible,
23557
+ meterLocationIdentifiedAndAccessible: !!checklist.meterLocationIdentifiedAndAccessible,
23558
+ licensedPlumberVerified: !!checklist.licensedPlumberVerified,
23559
+ siteConditionsMatchedApplication: !!checklist.siteConditionsMatchedApplication
23560
+ },
23561
+ siteAccessibility: ((_checklist$siteAccess = checklist.siteAccessibility) === null || _checklist$siteAccess === void 0 ? void 0 : _checklist$siteAccess.code) || checklist.siteAccessibility,
23562
+ proposedMeterLocation: ((_checklist$proposedMe = checklist.proposedMeterLocation) === null || _checklist$proposedMe === void 0 ? void 0 : _checklist$proposedMe.code) || checklist.proposedMeterLocation,
23563
+ siteFeasibilityObserved: ((_checklist$siteFeasib = checklist.siteFeasibilityObserved) === null || _checklist$siteFeasib === void 0 ? void 0 : _checklist$siteFeasib.code) || checklist.siteFeasibilityObserved,
23564
+ siteInspectorRemarks: checklist.siteInspectorRemarks,
23565
+ declaration: {
23566
+ agreed: !!declaration.agreed,
23567
+ inspectorName: declaration.inspectorName || checklist.siteInspectorName,
23568
+ submissionDate: submissionDateEpoch
23569
+ }
23570
+ }
23571
+ }
23572
+ }
23573
+ };
23574
+ const _temp12 = _finallyRethrows(function () {
23575
+ return _catch(function () {
23576
+ function _temp11() {
23577
+ function _temp1() {
23578
+ var _response, _response2;
23579
+ setSubmittedData({
23580
+ ...submitPayload.WaterConnection,
23581
+ responseInfo: ((_response = response) === null || _response === void 0 ? void 0 : _response.ResponseInfo) || ((_response2 = response) === null || _response2 === void 0 ? void 0 : _response2.responseInfo)
23582
+ });
23583
+ setIsSubmittedSuccess(true);
23584
+ setToast({
23585
+ key: "success",
23586
+ message: t("WS_SITE_INSPECTION_SUCCESS", "Site Inspection report submitted successfully!")
23587
+ });
23588
+ }
23589
+ const _temp0 = function (_Digit, _Digit$CustomService) {
23590
+ if (!response && (_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$CustomService = _Digit.CustomService) !== null && _Digit$CustomService !== void 0 && _Digit$CustomService.getResponse) {
23591
+ const _temp9 = _catch(function () {
23592
+ return Promise.resolve(Digit.CustomService.getResponse({
23593
+ url: "/ws-services/wc/site-inspection/_submit",
23594
+ data: submitPayload
23595
+ })).then(function (_Digit$CustomService$) {
23596
+ response = _Digit$CustomService$;
23597
+ });
23598
+ }, function (gatewayErr) {
23599
+ console.warn("Gateway endpoint call failed, attempting direct path:", gatewayErr);
23600
+ return Promise.resolve(Digit.CustomService.getResponse({
23601
+ url: "/site-inspection/_submit",
23602
+ data: submitPayload
23603
+ })).then(function (_Digit$CustomService$2) {
23604
+ response = _Digit$CustomService$2;
23605
+ });
23606
+ });
23607
+ if (_temp9 && _temp9.then) return _temp9.then(function () {});
23608
+ }
23609
+ }();
23610
+ return _temp0 && _temp0.then ? _temp0.then(_temp1) : _temp1(_temp0);
23611
+ }
23612
+ let response = null;
23613
+ const _temp10 = function (_Digit2, _Digit2$WSService) {
23614
+ if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$WSService = _Digit2.WSService) !== null && _Digit2$WSService !== void 0 && _Digit2$WSService.submitSiteInspection) {
23615
+ const _temp8 = _catch(function () {
23616
+ return Promise.resolve(Digit.WSService.submitSiteInspection(submitPayload)).then(function (_Digit$WSService$subm) {
23617
+ response = _Digit$WSService$subm;
23618
+ });
23619
+ }, function (apiErr) {
23620
+ console.warn("WSService.submitSiteInspection error:", apiErr);
23621
+ });
23622
+ if (_temp8 && _temp8.then) return _temp8.then(function () {});
23623
+ }
23624
+ }();
23625
+ return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
23626
+ }, function (err) {
23627
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
23628
+ console.error("Error submitting site inspection:", err);
23629
+ setToast({
23630
+ key: "error",
23631
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || (err === null || err === void 0 ? void 0 : err.message) || t("WS_SUBMISSION_ERROR", "Submission failed. Please try again.")
23632
+ });
23633
+ });
23634
+ }, function (_wasThrown3, _result3) {
23635
+ setIsSubmitting(false);
23636
+ if (_wasThrown3) throw _result3;
23637
+ return _result3;
23638
+ });
23639
+ return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
23640
+ } catch (e) {
23641
+ return Promise.reject(e);
23642
+ }
23643
+ };
23644
+ const grid3Style = {
23645
+ display: "grid",
23646
+ gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))",
23647
+ gap: "16px 20px",
23648
+ marginTop: "12px",
23649
+ marginBottom: "16px"
23650
+ };
23651
+ const grid2Style = {
23652
+ display: "grid",
23653
+ gridTemplateColumns: "repeat(auto-fit, minmax(320px, 1fr))",
23654
+ gap: "16px 24px",
23655
+ marginTop: "16px",
23656
+ marginBottom: "16px"
23657
+ };
23658
+ const checklistItems = [{
23659
+ label: "Consumer identity / applicant details verified at site",
23660
+ key: "consumerIdentityVerified"
23661
+ }, {
23662
+ label: "KNO and application details matched",
23663
+ key: "knoDetailsMatched"
23664
+ }, {
23665
+ label: "Property address and premises location verified",
23666
+ key: "propertyAddressVerified"
23667
+ }, {
23668
+ label: "Locality / colony details verified",
23669
+ key: "localityColonyVerified"
23670
+ }, {
23671
+ label: "Property use and category verified",
23672
+ key: "propertyUseVerified"
23673
+ }, {
23674
+ label: "Plot details / area verified at site",
23675
+ key: "plotDetailsVerified"
23676
+ }, {
23677
+ label: "Existing water connection / service line checked",
23678
+ key: "existingWaterConnectionChecked"
23679
+ }, {
23680
+ label: "Proposed connection point identified",
23681
+ key: "proposedConnectionPointIdentified"
23682
+ }, {
23683
+ label: "Water main and road access feasibility checked",
23684
+ key: "waterMainAndRoadAccessFeasible"
23685
+ }, {
23686
+ label: "Meter installation location identified and accessible",
23687
+ key: "meterLocationIdentifiedAndAccessible"
23688
+ }, {
23689
+ label: "Licensed plumber details / authorization verified",
23690
+ key: "licensedPlumberVerified"
23691
+ }, {
23692
+ label: "Site conditions match application details",
23693
+ key: "siteConditionsMatchedApplication"
23694
+ }];
23695
+ const plumberPresentValue = ((_checklist$isLicensed2 = checklist.isLicensedPlumberPresent) === null || _checklist$isLicensed2 === void 0 ? void 0 : _checklist$isLicensed2.name) || checklist.isLicensedPlumberPresent || "NA";
23696
+ const consumerPresentValue = ((_checklist$isConsumer2 = checklist.isConsumerRepresentativePresent) === null || _checklist$isConsumer2 === void 0 ? void 0 : _checklist$isConsumer2.name) || checklist.isConsumerRepresentativePresent || "NA";
23697
+ const accessibilityValue = ((_checklist$siteAccess2 = checklist.siteAccessibility) === null || _checklist$siteAccess2 === void 0 ? void 0 : _checklist$siteAccess2.name) || checklist.siteAccessibility || "NA";
23698
+ const meterLocValue = ((_checklist$proposedMe2 = checklist.proposedMeterLocation) === null || _checklist$proposedMe2 === void 0 ? void 0 : _checklist$proposedMe2.name) || checklist.proposedMeterLocation || "NA";
23699
+ const feasibilityValue = ((_checklist$siteFeasib2 = checklist.siteFeasibilityObserved) === null || _checklist$siteFeasib2 === void 0 ? void 0 : _checklist$siteFeasib2.name) || checklist.siteFeasibilityObserved || "NA";
23700
+ const renderPrintView = () => /*#__PURE__*/React__default.createElement("div", {
23701
+ id: "field-inspection-printable-document",
23702
+ className: "field-inspection-print-view",
23703
+ ref: printRef
23704
+ }, /*#__PURE__*/React__default.createElement("div", {
23705
+ className: "print-header",
23706
+ style: {
23707
+ textAlign: "center",
23708
+ borderBottom: "2px solid #003366",
23709
+ paddingBottom: "10px",
23710
+ marginBottom: "12px"
23711
+ }
23712
+ }, /*#__PURE__*/React__default.createElement("h1", {
23713
+ style: {
23714
+ fontSize: "16pt",
23715
+ fontWeight: "bold",
23716
+ margin: "0 0 4px 0",
23717
+ color: "#003366"
23718
+ }
23719
+ }, "DELHI JAL BOARD : GOVT. OF NCT OF DELHI"), /*#__PURE__*/React__default.createElement("h2", {
23720
+ style: {
23721
+ fontSize: "12pt",
23722
+ fontWeight: "bold",
23723
+ margin: "0 0 4px 0",
23724
+ color: "#222"
23725
+ }
23726
+ }, "SITE INSPECTION REPORT \u2013 NEW WATER CONNECTION"), /*#__PURE__*/React__default.createElement("div", {
23727
+ className: "subtitle",
23728
+ style: {
23729
+ fontSize: "9.5pt",
23730
+ color: "#555"
23731
+ }
23732
+ }, "Post KNO Issuance | Physical Field Inspection Assessment Form"), /*#__PURE__*/React__default.createElement("div", {
23733
+ className: "meta-bar",
23734
+ style: {
23735
+ display: "flex",
23736
+ justifyContent: "space-between",
23737
+ marginTop: "8px",
23738
+ fontSize: "9pt",
23739
+ borderTop: "1px solid #ddd",
23740
+ paddingTop: "4px"
23741
+ }
23742
+ }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement("strong", null, "Application No:"), " ", connectionDetails.applicationNo || "NA"), /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement("strong", null, "KNO / Connection No:"), " ", connectionDetails.kno || connectionDetails.connectionNo || searchKno || "NA"), /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement("strong", null, "Report Date:"), " ", new Date().toLocaleDateString("en-IN")))), /*#__PURE__*/React__default.createElement("div", {
23743
+ className: "print-section print-avoid-break"
23744
+ }, /*#__PURE__*/React__default.createElement("div", {
23745
+ className: "print-section-header"
23746
+ }, "1. SEARCH KNO & RECORD IDENTIFICATION"), /*#__PURE__*/React__default.createElement("table", {
23747
+ className: "print-table"
23748
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23749
+ className: "print-label",
23750
+ style: {
23751
+ width: "18%"
23752
+ }
23753
+ }, "Searched KNO:"), /*#__PURE__*/React__default.createElement("td", {
23754
+ className: "print-value",
23755
+ style: {
23756
+ width: "32%"
23757
+ }
23758
+ }, searchKno || connectionDetails.kno || "NA"), /*#__PURE__*/React__default.createElement("td", {
23759
+ className: "print-label",
23760
+ style: {
23761
+ width: "18%"
23762
+ }
23763
+ }, "Record Retrieval:"), /*#__PURE__*/React__default.createElement("td", {
23764
+ className: "print-value",
23765
+ style: {
23766
+ width: "32%"
23767
+ }
23768
+ }, dataLoaded ? "RECORD RETRIEVED FROM DJB DATABASE (VERIFIED)" : "MANUAL INSPECTION ENTRY"))))), /*#__PURE__*/React__default.createElement("div", {
23769
+ className: "print-section print-avoid-break"
23770
+ }, /*#__PURE__*/React__default.createElement("div", {
23771
+ className: "print-section-header"
23772
+ }, "2. KNO ISSUANCE DETAILS"), /*#__PURE__*/React__default.createElement("table", {
23773
+ className: "print-table"
23774
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23775
+ className: "print-label",
23776
+ style: {
23777
+ width: "16%"
23778
+ }
23779
+ }, "KNO:"), /*#__PURE__*/React__default.createElement("td", {
23780
+ className: "print-value",
23781
+ style: {
23782
+ width: "17%"
23783
+ }
23784
+ }, connectionDetails.kno || "NA"), /*#__PURE__*/React__default.createElement("td", {
23785
+ className: "print-label",
23786
+ style: {
23787
+ width: "16%"
23788
+ }
23789
+ }, "Application No:"), /*#__PURE__*/React__default.createElement("td", {
23790
+ className: "print-value",
23791
+ style: {
23792
+ width: "17%"
23793
+ }
23794
+ }, connectionDetails.applicationNo || "NA"), /*#__PURE__*/React__default.createElement("td", {
23795
+ className: "print-label",
23796
+ style: {
23797
+ width: "17%"
23798
+ }
23799
+ }, "KNO Issuance Date:"), /*#__PURE__*/React__default.createElement("td", {
23800
+ className: "print-value",
23801
+ style: {
23802
+ width: "17%"
23803
+ }
23804
+ }, connectionDetails.knoIssuanceDate || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23805
+ className: "print-label"
23806
+ }, "Zone:"), /*#__PURE__*/React__default.createElement("td", {
23807
+ className: "print-value"
23808
+ }, connectionDetails.zone || "NA"), /*#__PURE__*/React__default.createElement("td", {
23809
+ className: "print-label"
23810
+ }, "ZRO Name / Office:"), /*#__PURE__*/React__default.createElement("td", {
23811
+ className: "print-value"
23812
+ }, connectionDetails.zroOffice || "NA"), /*#__PURE__*/React__default.createElement("td", {
23813
+ className: "print-label"
23814
+ }, "Connection Type:"), /*#__PURE__*/React__default.createElement("td", {
23815
+ className: "print-value"
23816
+ }, connectionDetails.connectionType || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23817
+ className: "print-label"
23818
+ }, "Category:"), /*#__PURE__*/React__default.createElement("td", {
23819
+ className: "print-value"
23820
+ }, connectionDetails.connectionCategory || "NA"), /*#__PURE__*/React__default.createElement("td", {
23821
+ className: "print-label"
23822
+ }, "Status:"), /*#__PURE__*/React__default.createElement("td", {
23823
+ className: "print-value"
23824
+ }, connectionDetails.applicationStatus || "NA"), /*#__PURE__*/React__default.createElement("td", {
23825
+ className: "print-label"
23826
+ }, "Assigned Plumber:"), /*#__PURE__*/React__default.createElement("td", {
23827
+ className: "print-value"
23828
+ }, connectionDetails.assignedLicensedPlumber || "NA"))))), /*#__PURE__*/React__default.createElement("div", {
23829
+ className: "print-section print-avoid-break"
23830
+ }, /*#__PURE__*/React__default.createElement("div", {
23831
+ className: "print-section-header"
23832
+ }, "3. PROPERTY DETAILS"), /*#__PURE__*/React__default.createElement("table", {
23833
+ className: "print-table"
23834
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23835
+ className: "print-label",
23836
+ style: {
23837
+ width: "16%"
23838
+ }
23839
+ }, "Property Address:"), /*#__PURE__*/React__default.createElement("td", {
23840
+ className: "print-value",
23841
+ colSpan: 3
23842
+ }, connectionDetails.propertyAddress || "NA"), /*#__PURE__*/React__default.createElement("td", {
23843
+ className: "print-label",
23844
+ style: {
23845
+ width: "17%"
23846
+ }
23847
+ }, "City / PIN:"), /*#__PURE__*/React__default.createElement("td", {
23848
+ className: "print-value",
23849
+ style: {
23850
+ width: "17%"
23851
+ }
23852
+ }, `${connectionDetails.city || "Delhi"} - ${connectionDetails.pincode || "NA"}`)), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23853
+ className: "print-label"
23854
+ }, "Locality:"), /*#__PURE__*/React__default.createElement("td", {
23855
+ className: "print-value"
23856
+ }, connectionDetails.locality || "NA"), /*#__PURE__*/React__default.createElement("td", {
23857
+ className: "print-label"
23858
+ }, "Sub Locality:"), /*#__PURE__*/React__default.createElement("td", {
23859
+ className: "print-value"
23860
+ }, connectionDetails.subLocality || "NA"), /*#__PURE__*/React__default.createElement("td", {
23861
+ className: "print-label"
23862
+ }, "Colony Category:"), /*#__PURE__*/React__default.createElement("td", {
23863
+ className: "print-value"
23864
+ }, connectionDetails.colonyCategory || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23865
+ className: "print-label"
23866
+ }, "Property Use:"), /*#__PURE__*/React__default.createElement("td", {
23867
+ className: "print-value"
23868
+ }, connectionDetails.propertyUse || "NA"), /*#__PURE__*/React__default.createElement("td", {
23869
+ className: "print-label"
23870
+ }, "Ownership Type:"), /*#__PURE__*/React__default.createElement("td", {
23871
+ className: "print-value"
23872
+ }, connectionDetails.ownershipType || "NA"), /*#__PURE__*/React__default.createElement("td", {
23873
+ className: "print-label"
23874
+ }, "House / Prop No:"), /*#__PURE__*/React__default.createElement("td", {
23875
+ className: "print-value"
23876
+ }, connectionDetails.houseNo || "NA"))))), /*#__PURE__*/React__default.createElement("div", {
23877
+ className: "print-section print-avoid-break"
23878
+ }, /*#__PURE__*/React__default.createElement("div", {
23879
+ className: "print-section-header"
23880
+ }, "4. CONSUMER / APPLICANT DETAILS"), /*#__PURE__*/React__default.createElement("table", {
23881
+ className: "print-table"
23882
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23883
+ className: "print-label",
23884
+ style: {
23885
+ width: "16%"
23886
+ }
23887
+ }, "Consumer Name:"), /*#__PURE__*/React__default.createElement("td", {
23888
+ className: "print-value",
23889
+ style: {
23890
+ width: "17%"
23891
+ }
23892
+ }, connectionDetails.consumerName || "NA"), /*#__PURE__*/React__default.createElement("td", {
23893
+ className: "print-label",
23894
+ style: {
23895
+ width: "16%"
23896
+ }
23897
+ }, "Mobile Number:"), /*#__PURE__*/React__default.createElement("td", {
23898
+ className: "print-value",
23899
+ style: {
23900
+ width: "17%"
23901
+ }
23902
+ }, connectionDetails.mobileNumber || "NA"), /*#__PURE__*/React__default.createElement("td", {
23903
+ className: "print-label",
23904
+ style: {
23905
+ width: "17%"
23906
+ }
23907
+ }, "Email ID:"), /*#__PURE__*/React__default.createElement("td", {
23908
+ className: "print-value",
23909
+ style: {
23910
+ width: "17%"
23911
+ }
23912
+ }, connectionDetails.emailId || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23913
+ className: "print-label"
23914
+ }, "Applicant Type:"), /*#__PURE__*/React__default.createElement("td", {
23915
+ className: "print-value"
23916
+ }, connectionDetails.applicantType || "NA"), /*#__PURE__*/React__default.createElement("td", {
23917
+ className: "print-label"
23918
+ }, "Identity Type:"), /*#__PURE__*/React__default.createElement("td", {
23919
+ className: "print-value"
23920
+ }, connectionDetails.identityType || "NA"), /*#__PURE__*/React__default.createElement("td", {
23921
+ className: "print-label"
23922
+ }, "Alt Contact No:"), /*#__PURE__*/React__default.createElement("td", {
23923
+ className: "print-value"
23924
+ }, connectionDetails.alternateContactNumber || "NA"))))), /*#__PURE__*/React__default.createElement("div", {
23925
+ className: "print-section print-avoid-break"
23926
+ }, /*#__PURE__*/React__default.createElement("div", {
23927
+ className: "print-section-header"
23928
+ }, "5. PLOT & PREMISES DETAILS"), /*#__PURE__*/React__default.createElement("table", {
23929
+ className: "print-table"
23930
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23931
+ className: "print-label",
23932
+ style: {
23933
+ width: "16%"
23934
+ }
23935
+ }, "Plot Number:"), /*#__PURE__*/React__default.createElement("td", {
23936
+ className: "print-value",
23937
+ style: {
23938
+ width: "17%"
23939
+ }
23940
+ }, connectionDetails.plotNumber || "NA"), /*#__PURE__*/React__default.createElement("td", {
23941
+ className: "print-label",
23942
+ style: {
23943
+ width: "16%"
23944
+ }
23945
+ }, "Plot Area:"), /*#__PURE__*/React__default.createElement("td", {
23946
+ className: "print-value",
23947
+ style: {
23948
+ width: "17%"
23949
+ }
23950
+ }, connectionDetails.plotArea ? `${connectionDetails.plotArea} ${connectionDetails.plotAreaUnit || ""}` : "NA"), /*#__PURE__*/React__default.createElement("td", {
23951
+ className: "print-label",
23952
+ style: {
23953
+ width: "17%"
23954
+ }
23955
+ }, "No. of Floors:"), /*#__PURE__*/React__default.createElement("td", {
23956
+ className: "print-value",
23957
+ style: {
23958
+ width: "17%"
23959
+ }
23960
+ }, connectionDetails.numberOfFloors || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23961
+ className: "print-label"
23962
+ }, "Covered Area:"), /*#__PURE__*/React__default.createElement("td", {
23963
+ className: "print-value"
23964
+ }, connectionDetails.coveredArea || "NA"), /*#__PURE__*/React__default.createElement("td", {
23965
+ className: "print-label"
23966
+ }, "Road Width:"), /*#__PURE__*/React__default.createElement("td", {
23967
+ className: "print-value"
23968
+ }, connectionDetails.roadWidth || "NA"), /*#__PURE__*/React__default.createElement("td", {
23969
+ className: "print-label"
23970
+ }, "Property Type:"), /*#__PURE__*/React__default.createElement("td", {
23971
+ className: "print-value"
23972
+ }, connectionDetails.propertyType || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23973
+ className: "print-label"
23974
+ }, "Building Status:"), /*#__PURE__*/React__default.createElement("td", {
23975
+ className: "print-value"
23976
+ }, connectionDetails.buildingStatus || "NA"), /*#__PURE__*/React__default.createElement("td", {
23977
+ className: "print-label"
23978
+ }, "Existing Water Conn:"), /*#__PURE__*/React__default.createElement("td", {
23979
+ className: "print-value",
23980
+ colSpan: 3
23981
+ }, connectionDetails.existingWaterConnection || "NA"))))), /*#__PURE__*/React__default.createElement("div", {
23982
+ className: "print-section print-avoid-break"
23983
+ }, /*#__PURE__*/React__default.createElement("div", {
23984
+ className: "print-section-header"
23985
+ }, "6. SITE INSPECTION CHECKLIST & OBSERVATIONS"), /*#__PURE__*/React__default.createElement("table", {
23986
+ className: "print-table"
23987
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
23988
+ className: "print-label",
23989
+ style: {
23990
+ width: "16%"
23991
+ }
23992
+ }, "Inspection Date:"), /*#__PURE__*/React__default.createElement("td", {
23993
+ className: "print-value",
23994
+ style: {
23995
+ width: "17%"
23996
+ }
23997
+ }, checklist.inspectionDate || "NA"), /*#__PURE__*/React__default.createElement("td", {
23998
+ className: "print-label",
23999
+ style: {
24000
+ width: "16%"
24001
+ }
24002
+ }, "Inspection Time:"), /*#__PURE__*/React__default.createElement("td", {
24003
+ className: "print-value",
24004
+ style: {
24005
+ width: "17%"
24006
+ }
24007
+ }, checklist.inspectionTime || "NA"), /*#__PURE__*/React__default.createElement("td", {
24008
+ className: "print-label",
24009
+ style: {
24010
+ width: "17%"
24011
+ }
24012
+ }, "Inspector Name:"), /*#__PURE__*/React__default.createElement("td", {
24013
+ className: "print-value",
24014
+ style: {
24015
+ width: "17%"
24016
+ }
24017
+ }, checklist.siteInspectorName || "NA")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
24018
+ className: "print-label"
24019
+ }, "Inspector Emp ID:"), /*#__PURE__*/React__default.createElement("td", {
24020
+ className: "print-value"
24021
+ }, checklist.inspectorEmployeeId || "NA"), /*#__PURE__*/React__default.createElement("td", {
24022
+ className: "print-label"
24023
+ }, "Plumber Present:"), /*#__PURE__*/React__default.createElement("td", {
24024
+ className: "print-value"
24025
+ }, plumberPresentValue), /*#__PURE__*/React__default.createElement("td", {
24026
+ className: "print-label"
24027
+ }, "Consumer Present:"), /*#__PURE__*/React__default.createElement("td", {
24028
+ className: "print-value"
24029
+ }, consumerPresentValue)))), /*#__PURE__*/React__default.createElement("div", {
24030
+ style: {
24031
+ marginTop: "6px",
24032
+ fontWeight: "bold",
24033
+ fontSize: "9.5pt"
24034
+ }
24035
+ }, "Checklist Verification Criteria:"), /*#__PURE__*/React__default.createElement("table", {
24036
+ className: "print-table",
24037
+ style: {
24038
+ marginTop: "4px"
24039
+ }
24040
+ }, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
24041
+ style: {
24042
+ backgroundColor: "#f0f0f0"
24043
+ }
24044
+ }, /*#__PURE__*/React__default.createElement("th", {
24045
+ style: {
24046
+ width: "6%",
24047
+ textAlign: "center"
24048
+ }
24049
+ }, "S.No"), /*#__PURE__*/React__default.createElement("th", {
24050
+ style: {
24051
+ width: "68%",
24052
+ textAlign: "left"
24053
+ }
24054
+ }, "Inspection Checklist Item"), /*#__PURE__*/React__default.createElement("th", {
24055
+ style: {
24056
+ width: "26%",
24057
+ textAlign: "center"
24058
+ }
24059
+ }, "Verification Status"))), /*#__PURE__*/React__default.createElement("tbody", null, checklistItems.map((item, idx) => /*#__PURE__*/React__default.createElement("tr", {
24060
+ key: idx
24061
+ }, /*#__PURE__*/React__default.createElement("td", {
24062
+ style: {
24063
+ textAlign: "center"
24064
+ }
24065
+ }, idx + 1), /*#__PURE__*/React__default.createElement("td", null, item.label), /*#__PURE__*/React__default.createElement("td", {
24066
+ style: {
24067
+ textAlign: "center",
24068
+ fontWeight: "bold"
24069
+ }
24070
+ }, checklist[item.key] ? /*#__PURE__*/React__default.createElement("span", {
24071
+ style: {
24072
+ color: "#006600"
24073
+ }
24074
+ }, "[\u2713] YES (Verified)") : /*#__PURE__*/React__default.createElement("span", {
24075
+ style: {
24076
+ color: "#555555"
24077
+ }
24078
+ }, "[ ] NO (Not Verified)")))))), /*#__PURE__*/React__default.createElement("table", {
24079
+ className: "print-table",
24080
+ style: {
24081
+ marginTop: "6px"
24082
+ }
24083
+ }, /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
24084
+ className: "print-label",
24085
+ style: {
24086
+ width: "20%"
24087
+ }
24088
+ }, "Site Accessibility:"), /*#__PURE__*/React__default.createElement("td", {
24089
+ className: "print-value",
24090
+ style: {
24091
+ width: "30%"
24092
+ }
24093
+ }, accessibilityValue), /*#__PURE__*/React__default.createElement("td", {
24094
+ className: "print-label",
24095
+ style: {
24096
+ width: "25%"
24097
+ }
24098
+ }, "Proposed Meter Location:"), /*#__PURE__*/React__default.createElement("td", {
24099
+ className: "print-value",
24100
+ style: {
24101
+ width: "25%"
24102
+ }
24103
+ }, meterLocValue)), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
24104
+ className: "print-label"
24105
+ }, "Site Feasibility Observed:"), /*#__PURE__*/React__default.createElement("td", {
24106
+ className: "print-value",
24107
+ colSpan: 3,
24108
+ style: {
24109
+ fontWeight: "bold"
24110
+ }
24111
+ }, feasibilityValue)), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
24112
+ className: "print-label"
24113
+ }, "Inspector Observations / Remarks:"), /*#__PURE__*/React__default.createElement("td", {
24114
+ className: "print-value",
24115
+ colSpan: 3,
24116
+ style: {
24117
+ minHeight: "36px"
24118
+ }
24119
+ }, checklist.siteInspectorRemarks || "None"))))), /*#__PURE__*/React__default.createElement("div", {
24120
+ className: "print-section print-avoid-break"
24121
+ }, /*#__PURE__*/React__default.createElement("div", {
24122
+ className: "print-section-header"
24123
+ }, "7. SITE INSPECTION EVIDENCE / PHOTOGRAPHS"), uploadedDocuments.length === 0 ? /*#__PURE__*/React__default.createElement("div", {
24124
+ style: {
24125
+ padding: "6px 8px",
24126
+ fontStyle: "italic",
24127
+ fontSize: "9pt",
24128
+ border: "1px solid #ccc"
24129
+ }
24130
+ }, "No photographs attached.") : /*#__PURE__*/React__default.createElement("table", {
24131
+ className: "print-table"
24132
+ }, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
24133
+ style: {
24134
+ backgroundColor: "#f0f0f0"
24135
+ }
24136
+ }, /*#__PURE__*/React__default.createElement("th", {
24137
+ style: {
24138
+ width: "8%",
24139
+ textAlign: "center"
24140
+ }
24141
+ }, "S.No"), /*#__PURE__*/React__default.createElement("th", {
24142
+ style: {
24143
+ width: "40%"
24144
+ }
24145
+ }, "Document Type"), /*#__PURE__*/React__default.createElement("th", {
24146
+ style: {
24147
+ width: "37%"
24148
+ }
24149
+ }, "File Name / UID"), /*#__PURE__*/React__default.createElement("th", {
24150
+ style: {
24151
+ width: "15%",
24152
+ textAlign: "center"
24153
+ }
24154
+ }, "File Size"))), /*#__PURE__*/React__default.createElement("tbody", null, uploadedDocuments.map((doc, idx) => /*#__PURE__*/React__default.createElement("tr", {
24155
+ key: idx
24156
+ }, /*#__PURE__*/React__default.createElement("td", {
24157
+ style: {
24158
+ textAlign: "center"
24159
+ }
24160
+ }, idx + 1), /*#__PURE__*/React__default.createElement("td", null, doc.documentType || "SITE_INSPECTION_PHOTO"), /*#__PURE__*/React__default.createElement("td", null, doc.fileName || doc.documentUid || `Photo-${idx + 1}.jpg`), /*#__PURE__*/React__default.createElement("td", {
24161
+ style: {
24162
+ textAlign: "center"
24163
+ }
24164
+ }, doc.fileSize || "NA")))))), /*#__PURE__*/React__default.createElement("div", {
24165
+ className: "print-section print-avoid-break",
24166
+ style: {
24167
+ marginTop: "8px"
24168
+ }
24169
+ }, /*#__PURE__*/React__default.createElement("div", {
24170
+ className: "print-section-header"
24171
+ }, "8. DECLARATION & SIGNATURES"), /*#__PURE__*/React__default.createElement("div", {
24172
+ style: {
24173
+ padding: "6px 8px",
24174
+ fontSize: "9pt",
24175
+ lineHeight: "1.35",
24176
+ border: "1px solid #333",
24177
+ marginBottom: "12px",
24178
+ backgroundColor: "#fafafa"
24179
+ }
24180
+ }, /*#__PURE__*/React__default.createElement("strong", null, "Declaration:"), " I hereby declare that I have physically inspected the site and that the details, checklist responses, observations and photographs submitted in this inspection report are true and correct to the best of my knowledge. I understand that this report will be recorded against the respective KNO.", /*#__PURE__*/React__default.createElement("div", {
24181
+ style: {
24182
+ marginTop: "4px"
24183
+ }
24184
+ }, /*#__PURE__*/React__default.createElement("strong", null, "Declaration Status:"), " ", declaration.agreed ? /*#__PURE__*/React__default.createElement("span", {
24185
+ style: {
24186
+ color: "#006600",
24187
+ fontWeight: "bold"
24188
+ }
24189
+ }, "[\u2713] YES (Agreed & Confirmed by Site Inspector)") : /*#__PURE__*/React__default.createElement("span", {
24190
+ style: {
24191
+ color: "#555555"
24192
+ }
24193
+ }, "[ ] Pending Confirmation"))), /*#__PURE__*/React__default.createElement("div", {
24194
+ style: {
24195
+ display: "flex",
24196
+ justifyContent: "space-between",
24197
+ marginTop: "32px",
24198
+ padding: "0 24px"
24199
+ }
24200
+ }, /*#__PURE__*/React__default.createElement("div", {
24201
+ style: {
24202
+ textAlign: "center",
24203
+ width: "45%"
24204
+ }
24205
+ }, /*#__PURE__*/React__default.createElement("div", {
24206
+ style: {
24207
+ borderBottom: "1px solid #000",
24208
+ width: "220px",
24209
+ margin: "0 auto 4px auto"
24210
+ }
24211
+ }), /*#__PURE__*/React__default.createElement("div", {
24212
+ style: {
24213
+ fontWeight: "bold",
24214
+ fontSize: "9.5pt"
24215
+ }
24216
+ }, "Signature of Site Inspector"), /*#__PURE__*/React__default.createElement("div", {
24217
+ style: {
24218
+ fontSize: "8.5pt"
24219
+ }
24220
+ }, "Name: ", declaration.inspectorName || checklist.siteInspectorName || "____________________"), /*#__PURE__*/React__default.createElement("div", {
24221
+ style: {
24222
+ fontSize: "8.5pt"
24223
+ }
24224
+ }, "Emp ID: ", checklist.inspectorEmployeeId || "____________________"), /*#__PURE__*/React__default.createElement("div", {
24225
+ style: {
24226
+ fontSize: "8.5pt"
24227
+ }
24228
+ }, "Date: ", declaration.submissionDate || "____________________")), /*#__PURE__*/React__default.createElement("div", {
24229
+ style: {
24230
+ textAlign: "center",
24231
+ width: "45%"
24232
+ }
24233
+ }, /*#__PURE__*/React__default.createElement("div", {
24234
+ style: {
24235
+ borderBottom: "1px solid #000",
24236
+ width: "220px",
24237
+ margin: "0 auto 4px auto"
24238
+ }
24239
+ }), /*#__PURE__*/React__default.createElement("div", {
24240
+ style: {
24241
+ fontWeight: "bold",
24242
+ fontSize: "9.5pt"
24243
+ }
24244
+ }, "Counter Signature (ZRO / EE)"), /*#__PURE__*/React__default.createElement("div", {
24245
+ style: {
24246
+ fontSize: "8.5pt"
24247
+ }
24248
+ }, "ZRO / Office: ", connectionDetails.zroOffice || "____________________"), /*#__PURE__*/React__default.createElement("div", {
24249
+ style: {
24250
+ fontSize: "8.5pt"
24251
+ }
24252
+ }, "Zone: ", connectionDetails.zone || "____________________"), /*#__PURE__*/React__default.createElement("div", {
24253
+ style: {
24254
+ fontSize: "8.5pt"
24255
+ }
24256
+ }, "Date: ____________________")))), /*#__PURE__*/React__default.createElement("div", {
24257
+ style: {
24258
+ textAlign: "center",
24259
+ fontSize: "8pt",
24260
+ color: "#666",
24261
+ marginTop: "16px",
24262
+ borderTop: "1px solid #ddd",
24263
+ paddingTop: "4px"
24264
+ }
24265
+ }, "Delhi Jal Board | Water & Sewerage Department | Site Inspection Report | Computer Generated Printout"));
24266
+ if (isSubmittedSuccess) {
24267
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("style", null, `
24268
+ @media screen {
24269
+ .field-inspection-print-view {
24270
+ display: none !important;
24271
+ }
24272
+ }
24273
+ @media print {
24274
+ @page {
24275
+ size: A4 portrait;
24276
+ margin: 10mm 12mm;
24277
+ }
24278
+ html, body, #root, .app-container, .ground-container {
24279
+ height: auto !important;
24280
+ min-height: 100% !important;
24281
+ overflow: visible !important;
24282
+ position: static !important;
24283
+ margin: 0 !important;
24284
+ padding: 0 !important;
24285
+ background: #ffffff !important;
24286
+ color: #000000 !important;
24287
+ -webkit-print-color-adjust: exact !important;
24288
+ print-color-adjust: exact !important;
24289
+ }
24290
+ header, nav, .topbar, .sidebar, .collapsible-sidebar, .action-bar-wrap, .digit-action-bar, .submit-bar, .toast, .breadcrumbs, .clear-both, .employee-header, .digit-header, .field-inspection-screen-view {
24291
+ display: none !important;
24292
+ }
24293
+ .field-inspection-print-view {
24294
+ display: block !important;
24295
+ visibility: visible !important;
24296
+ position: static !important;
24297
+ width: 100% !important;
24298
+ margin: 0 !important;
24299
+ padding: 0 !important;
24300
+ background: #ffffff !important;
24301
+ color: #111111 !important;
24302
+ font-family: Arial, Helvetica, sans-serif !important;
24303
+ font-size: 9.5pt !important;
24304
+ line-height: 1.35 !important;
24305
+ }
24306
+ .field-inspection-print-view * {
24307
+ visibility: visible !important;
24308
+ box-sizing: border-box !important;
24309
+ }
24310
+ .print-section {
24311
+ margin-bottom: 10px !important;
24312
+ }
24313
+ .print-avoid-break {
24314
+ page-break-inside: avoid !important;
24315
+ break-inside: avoid !important;
24316
+ }
24317
+ .print-section-header {
24318
+ background-color: #003366 !important;
24319
+ color: #ffffff !important;
24320
+ font-weight: bold !important;
24321
+ font-size: 10pt !important;
24322
+ padding: 4px 8px !important;
24323
+ margin-bottom: 4px !important;
24324
+ -webkit-print-color-adjust: exact !important;
24325
+ print-color-adjust: exact !important;
24326
+ }
24327
+ .print-table {
24328
+ width: 100% !important;
24329
+ border-collapse: collapse !important;
24330
+ margin-bottom: 6px !important;
24331
+ font-size: 9pt !important;
24332
+ }
24333
+ .print-table th, .print-table td {
24334
+ border: 1px solid #333333 !important;
24335
+ padding: 4px 6px !important;
24336
+ vertical-align: top !important;
24337
+ }
24338
+ .print-label {
24339
+ font-weight: bold !important;
24340
+ background-color: #f7f7f7 !important;
24341
+ color: #222222 !important;
24342
+ -webkit-print-color-adjust: exact !important;
24343
+ print-color-adjust: exact !important;
24344
+ }
24345
+ .print-value {
24346
+ color: #111111 !important;
24347
+ word-break: break-word !important;
24348
+ }
24349
+ }
24350
+ `), /*#__PURE__*/React__default.createElement("div", {
24351
+ className: "field-inspection-screen-view"
24352
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("WS_SITE_INSPECTION_HEADER", "Site Inspection – New Water Connection")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
24353
+ successful: true,
24354
+ message: t("WS_SITE_INSPECTION_SUBMITTED_SUCCESS", "Site Inspection Report Submitted Successfully"),
24355
+ applicationNumber: (submittedData === null || submittedData === void 0 ? void 0 : submittedData.connectionNo) || connectionDetails.connectionNo,
24356
+ info: t("WS_CONNECTION_NO_LABEL", "Connection No (KNO)")
24357
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_SITE_INSPECTION_SUCCESS_NOTE", "The physical site inspection report and checklist evidence have been successfully recorded against the connection.")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24358
+ label: t("WS_PRINT_FORM", "Print Form"),
24359
+ onSubmit: handlePrint,
24360
+ style: {
24361
+ backgroundColor: "#e6f4ff",
24362
+ color: "#003366",
24363
+ border: "1px solid #91caff",
24364
+ marginRight: "12px"
24365
+ }
24366
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24367
+ label: t("WS_INSPECT_ANOTHER_KNO", "Inspect Another KNO"),
24368
+ onSubmit: () => {
24369
+ setIsSubmittedSuccess(false);
24370
+ setDataLoaded(false);
24371
+ setSearchKno("");
24372
+ setUploadedDocuments([]);
24373
+ setConnectionDetails({
24374
+ ...emptyConnectionDetails
24375
+ });
24376
+ setChecklist(initialChecklist);
24377
+ },
24378
+ style: {
24379
+ marginRight: "12px"
24380
+ }
24381
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24382
+ label: t("CORE_COMMON_GO_TO_HOME", "Go to Home"),
24383
+ onSubmit: () => history.push("/digit-ui/employee/ws/water/inbox")
24384
+ })))), renderPrintView());
24385
+ }
24386
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("style", null, `
24387
+ @media screen {
24388
+ .field-inspection-print-view {
24389
+ display: none !important;
24390
+ }
24391
+ }
24392
+ @media print {
24393
+ @page {
24394
+ size: A4 portrait;
24395
+ margin: 10mm 12mm;
24396
+ }
24397
+ html, body, #root, .app-container, .ground-container {
24398
+ height: auto !important;
24399
+ min-height: 100% !important;
24400
+ overflow: visible !important;
24401
+ position: static !important;
24402
+ margin: 0 !important;
24403
+ padding: 0 !important;
24404
+ background: #ffffff !important;
24405
+ color: #000000 !important;
24406
+ -webkit-print-color-adjust: exact !important;
24407
+ print-color-adjust: exact !important;
24408
+ }
24409
+ header, nav, .topbar, .sidebar, .collapsible-sidebar, .action-bar-wrap, .digit-action-bar, .submit-bar, .toast, .breadcrumbs, .clear-both, .employee-header, .digit-header, .field-inspection-screen-view {
24410
+ display: none !important;
24411
+ }
24412
+ .field-inspection-print-view {
24413
+ display: block !important;
24414
+ visibility: visible !important;
24415
+ position: static !important;
24416
+ width: 100% !important;
24417
+ margin: 0 !important;
24418
+ padding: 0 !important;
24419
+ background: #ffffff !important;
24420
+ color: #111111 !important;
24421
+ font-family: Arial, Helvetica, sans-serif !important;
24422
+ font-size: 9.5pt !important;
24423
+ line-height: 1.35 !important;
24424
+ }
24425
+ .field-inspection-print-view * {
24426
+ visibility: visible !important;
24427
+ box-sizing: border-box !important;
24428
+ }
24429
+ .print-section {
24430
+ margin-bottom: 10px !important;
24431
+ }
24432
+ .print-avoid-break {
24433
+ page-break-inside: avoid !important;
24434
+ break-inside: avoid !important;
24435
+ }
24436
+ .print-section-header {
24437
+ background-color: #003366 !important;
24438
+ color: #ffffff !important;
24439
+ font-weight: bold !important;
24440
+ font-size: 10pt !important;
24441
+ padding: 4px 8px !important;
24442
+ margin-bottom: 4px !important;
24443
+ -webkit-print-color-adjust: exact !important;
24444
+ print-color-adjust: exact !important;
24445
+ }
24446
+ .print-table {
24447
+ width: 100% !important;
24448
+ border-collapse: collapse !important;
24449
+ margin-bottom: 6px !important;
24450
+ font-size: 9pt !important;
24451
+ }
24452
+ .print-table th, .print-table td {
24453
+ border: 1px solid #333333 !important;
24454
+ padding: 4px 6px !important;
24455
+ vertical-align: top !important;
24456
+ }
24457
+ .print-label {
24458
+ font-weight: bold !important;
24459
+ background-color: #f7f7f7 !important;
24460
+ color: #222222 !important;
24461
+ -webkit-print-color-adjust: exact !important;
24462
+ print-color-adjust: exact !important;
24463
+ }
24464
+ .print-value {
24465
+ color: #111111 !important;
24466
+ word-break: break-word !important;
24467
+ }
24468
+ }
24469
+ `), /*#__PURE__*/React__default.createElement("div", {
24470
+ className: "field-inspection-screen-view"
24471
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("WS_SITE_INSPECTION_TITLE", "Site Inspection – New Water Connection")), /*#__PURE__*/React__default.createElement("div", {
24472
+ style: {
24473
+ color: "#505a5f",
24474
+ fontSize: "14px",
24475
+ marginTop: "-8px",
24476
+ marginBottom: "16px"
24477
+ }
24478
+ }, t("WS_SITE_INSPECTION_SUBTITLE", "Post KNO issuance | Site Inspector Form")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
24479
+ style: {
24480
+ backgroundColor: "#fffbe6",
24481
+ border: "1px solid #ffe58f",
24482
+ marginBottom: "16px"
24483
+ }
24484
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
24485
+ style: {
24486
+ margin: 0,
24487
+ color: "#595959",
24488
+ fontSize: "14px",
24489
+ lineHeight: "1.5"
24490
+ }
24491
+ }, /*#__PURE__*/React__default.createElement("strong", null, "Workflow:"), " KNO issuance, property, consumer and plot details are fetched from the application record. The site inspector completes the checklist, uploads site photographs and submits the inspection report. No approval process is included.")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_SEARCH_KNO_SECTION", "1. Search KNO")), /*#__PURE__*/React__default.createElement("div", {
24492
+ style: {
24493
+ maxWidth: "600px",
24494
+ marginTop: "12px"
24495
+ }
24496
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
24497
+ style: {
24498
+ fontWeight: "600",
24499
+ width: "120px"
24500
+ }
24501
+ }, `${t("WS_KNO_LABEL", "KNO")} *`), /*#__PURE__*/React__default.createElement("div", {
24502
+ className: "field",
24503
+ style: {
24504
+ display: "flex",
24505
+ gap: "12px",
24506
+ width: "100%"
24507
+ }
24508
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24509
+ name: "searchKno",
24510
+ value: searchKno,
24511
+ onChange: e => setSearchKno(e.target.value),
24512
+ placeholder: t("WS_ENTER_KNO_PLACEHOLDER", "Enter KNO"),
24513
+ onKeyDown: e => e.key === "Enter" && handleSearch(e)
24514
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24515
+ label: isSearching ? t("COMMON_SEARCHING", "Searching...") : t("WS_FETCH_KNO_DETAILS", "Fetch KNO Details"),
24516
+ onSubmit: handleSearch,
24517
+ disabled: isSearching
24518
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, {
24519
+ style: {
24520
+ marginTop: "4px",
24521
+ fontSize: "12px"
24522
+ }
24523
+ }, t("WS_SEARCH_KNO_HELPER", "The live DJB application should retrieve the issued KNO record and populate the read-only sections below.")))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_KNO_ISSUANCE_DETAILS", "2. KNO Issuance Details")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, null, t("WS_KNO_ISSUANCE_SUBTEXT", "Auto-fetched from KNO issuance record; read-only for site inspector.")), /*#__PURE__*/React__default.createElement("div", {
24524
+ style: grid3Style
24525
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_KNO_LABEL", "KNO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24526
+ disabled: true,
24527
+ value: connectionDetails.kno
24528
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_APPLICATION_NUMBER_LABEL", "Application Number")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24529
+ disabled: true,
24530
+ value: connectionDetails.applicationNo
24531
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_KNO_ISSUANCE_DATE_LABEL", "KNO Issuance Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24532
+ disabled: true,
24533
+ value: connectionDetails.knoIssuanceDate
24534
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ZONE_LABEL", "Zone")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24535
+ disabled: true,
24536
+ value: connectionDetails.zone
24537
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ZRO_NAME_OFFICE_LABEL", "ZRO Name / Office")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24538
+ disabled: true,
24539
+ value: connectionDetails.zroOffice
24540
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_CONNECTION_TYPE_LABEL", "Connection Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24541
+ disabled: true,
24542
+ value: connectionDetails.connectionType
24543
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_CONNECTION_CATEGORY_LABEL", "Connection Category")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24544
+ disabled: true,
24545
+ value: connectionDetails.connectionCategory
24546
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_APPLICATION_STATUS_LABEL", "Application Status")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24547
+ disabled: true,
24548
+ value: connectionDetails.applicationStatus
24549
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ASSIGNED_LICENSED_PLUMBER_LABEL", "Assigned Licensed Plumber")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24550
+ disabled: true,
24551
+ value: connectionDetails.assignedLicensedPlumber
24552
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_DETAILS", "3. Property Details")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, null, t("WS_PREFILLED_FROM_CITIZEN_APP", "Prefilled from citizen application.")), /*#__PURE__*/React__default.createElement("div", {
24553
+ style: grid3Style
24554
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PROPERTY_ADDRESS_LABEL", "Property Address")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24555
+ disabled: true,
24556
+ value: connectionDetails.propertyAddress
24557
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_CITY_LABEL", "City")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24558
+ disabled: true,
24559
+ value: connectionDetails.city
24560
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PIN_CODE_LABEL", "PIN Code")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24561
+ disabled: true,
24562
+ value: connectionDetails.pincode
24563
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_LOCALITY_LABEL", "Locality")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24564
+ disabled: true,
24565
+ value: connectionDetails.locality
24566
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SUB_LOCALITY_LABEL", "Sub Locality")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24567
+ disabled: true,
24568
+ value: connectionDetails.subLocality
24569
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_COLONY_CATEGORY_LABEL", "Colony Category")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24570
+ disabled: true,
24571
+ value: connectionDetails.colonyCategory
24572
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PROPERTY_USE_LABEL", "Property Use")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24573
+ disabled: true,
24574
+ value: connectionDetails.propertyUse
24575
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_OWNERSHIP_TYPE_LABEL", "Ownership Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24576
+ disabled: true,
24577
+ value: connectionDetails.ownershipType
24578
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_HOUSE_PROPERTY_NO_LABEL", "House / Property Number")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24579
+ disabled: true,
24580
+ value: connectionDetails.houseNo
24581
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_CONSUMER_DETAILS", "4. Consumer Details")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, null, t("WS_PREFILLED_FROM_CITIZEN_APP", "Prefilled from citizen application.")), /*#__PURE__*/React__default.createElement("div", {
24582
+ style: grid3Style
24583
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_CONSUMER_NAME_LABEL", "Consumer / Applicant Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24584
+ disabled: true,
24585
+ value: connectionDetails.consumerName
24586
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_MOBILE_NUMBER_LABEL", "Mobile Number")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24587
+ disabled: true,
24588
+ value: connectionDetails.mobileNumber
24589
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EMAIL_ID_LABEL", "Email ID")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24590
+ disabled: true,
24591
+ value: connectionDetails.emailId
24592
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_APPLICANT_TYPE_LABEL", "Applicant Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24593
+ disabled: true,
24594
+ value: connectionDetails.applicantType
24595
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_IDENTITY_TYPE_LABEL", "Identity / Reference Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24596
+ disabled: true,
24597
+ value: connectionDetails.identityType
24598
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ALT_CONTACT_LABEL", "Alternate Contact Number")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24599
+ disabled: true,
24600
+ value: connectionDetails.alternateContactNumber
24601
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PLOT_DETAILS", "5. Plot Details")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, null, t("WS_PREFILLED_PLOT_INFO", "Prefilled plot / premises information as submitted in the application.")), /*#__PURE__*/React__default.createElement("div", {
24602
+ style: grid3Style
24603
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PLOT_NUMBER_LABEL", "Plot Number")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24604
+ disabled: true,
24605
+ value: connectionDetails.plotNumber
24606
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PLOT_AREA_LABEL", "Plot Area")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24607
+ disabled: true,
24608
+ value: connectionDetails.plotArea
24609
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PLOT_AREA_UNIT_LABEL", "Plot Area Unit")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24610
+ disabled: true,
24611
+ value: connectionDetails.plotAreaUnit
24612
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NUMBER_OF_FLOORS_LABEL", "Number of Floors")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24613
+ disabled: true,
24614
+ value: connectionDetails.numberOfFloors
24615
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_COVERED_AREA_LABEL", "Covered Area")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24616
+ disabled: true,
24617
+ value: connectionDetails.coveredArea
24618
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ROAD_WIDTH_LABEL", "Road Width")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24619
+ disabled: true,
24620
+ value: connectionDetails.roadWidth
24621
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PROPERTY_TYPE_LABEL", "Property Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24622
+ disabled: true,
24623
+ value: connectionDetails.propertyType
24624
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_BUILDING_STATUS_LABEL", "Building Status")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24625
+ disabled: true,
24626
+ value: connectionDetails.buildingStatus
24627
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EXISTING_WATER_CONN_LABEL", "Existing Water Connection")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24628
+ disabled: true,
24629
+ value: connectionDetails.existingWaterConnection
24630
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_SITE_INSPECTION_CHECKLIST", "6. Site Inspection Checklist")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, null, t("WS_CHECKLIST_SUBTEXT", "To be filled by the site inspector during the physical site visit.")), /*#__PURE__*/React__default.createElement("div", {
24631
+ style: grid3Style
24632
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_INSPECTION_DATE_LABEL", "Inspection Date")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24633
+ type: "date",
24634
+ value: checklist.inspectionDate,
24635
+ onChange: e => handleChecklistChange("inspectionDate", e.target.value)
24636
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_INSPECTION_TIME_LABEL", "Inspection Time")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24637
+ value: checklist.inspectionTime,
24638
+ placeholder: "11:30 AM",
24639
+ onChange: e => handleChecklistChange("inspectionTime", e.target.value)
24640
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_INSPECTOR_NAME_LABEL", "Site Inspector Name")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24641
+ value: checklist.siteInspectorName,
24642
+ placeholder: t("WS_ENTER_INSPECTOR_NAME", "Enter inspector name"),
24643
+ onChange: e => handleChecklistChange("siteInspectorName", e.target.value)
24644
+ }))), /*#__PURE__*/React__default.createElement("div", {
24645
+ style: grid3Style
24646
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_INSPECTOR_EMPLOYEE_ID_LABEL", "Inspector Employee ID")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24647
+ value: checklist.inspectorEmployeeId,
24648
+ placeholder: t("WS_EMPLOYEE_ID_PLACEHOLDER", "Employee ID"),
24649
+ onChange: e => handleChecklistChange("inspectorEmployeeId", e.target.value)
24650
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_LICENSED_PLUMBER_PRESENT_LABEL", "Licensed Plumber Present?")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24651
+ option: yesNoOptions,
24652
+ selected: checklist.isLicensedPlumberPresent,
24653
+ select: val => handleChecklistChange("isLicensedPlumberPresent", val),
24654
+ optionKey: "name",
24655
+ t: t
24656
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_CONSUMER_REP_PRESENT_LABEL", "Consumer / Representative Present?")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24657
+ option: yesNoOptions,
24658
+ selected: checklist.isConsumerRepresentativePresent,
24659
+ select: val => handleChecklistChange("isConsumerRepresentativePresent", val),
24660
+ optionKey: "name",
24661
+ t: t
24662
+ }))), /*#__PURE__*/React__default.createElement("div", {
24663
+ style: grid2Style
24664
+ }, /*#__PURE__*/React__default.createElement("div", {
24665
+ style: {
24666
+ display: "flex",
24667
+ flexDirection: "column",
24668
+ gap: "12px"
24669
+ }
24670
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24671
+ checked: checklist.consumerIdentityVerified,
24672
+ onChange: e => handleChecklistChange("consumerIdentityVerified", e.target.checked),
24673
+ label: t("WS_CHECKLIST_CONSUMER_IDENTITY", "Consumer identity / applicant details verified at site")
24674
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24675
+ checked: checklist.propertyAddressVerified,
24676
+ onChange: e => handleChecklistChange("propertyAddressVerified", e.target.checked),
24677
+ label: t("WS_CHECKLIST_PROP_ADDRESS", "Property address and premises location verified")
24678
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24679
+ checked: checklist.propertyUseVerified,
24680
+ onChange: e => handleChecklistChange("propertyUseVerified", e.target.checked),
24681
+ label: t("WS_CHECKLIST_PROP_USE", "Property use and category verified")
24682
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24683
+ checked: checklist.existingWaterConnectionChecked,
24684
+ onChange: e => handleChecklistChange("existingWaterConnectionChecked", e.target.checked),
24685
+ label: t("WS_CHECKLIST_EXISTING_CONN", "Existing water connection / service line checked")
24686
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24687
+ checked: checklist.waterMainAndRoadAccessFeasible,
24688
+ onChange: e => handleChecklistChange("waterMainAndRoadAccessFeasible", e.target.checked),
24689
+ label: t("WS_CHECKLIST_ROAD_ACCESS", "Water main and road access feasibility checked")
24690
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24691
+ checked: checklist.licensedPlumberVerified,
24692
+ onChange: e => handleChecklistChange("licensedPlumberVerified", e.target.checked),
24693
+ label: t("WS_CHECKLIST_PLUMBER_AUTH", "Licensed plumber details / authorization verified")
24694
+ })), /*#__PURE__*/React__default.createElement("div", {
24695
+ style: {
24696
+ display: "flex",
24697
+ flexDirection: "column",
24698
+ gap: "12px"
24699
+ }
24700
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24701
+ checked: checklist.knoDetailsMatched,
24702
+ onChange: e => handleChecklistChange("knoDetailsMatched", e.target.checked),
24703
+ label: t("WS_CHECKLIST_KNO_MATCHED", "KNO and application details matched")
24704
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24705
+ checked: checklist.localityColonyVerified,
24706
+ onChange: e => handleChecklistChange("localityColonyVerified", e.target.checked),
24707
+ label: t("WS_CHECKLIST_LOCALITY_VERIFIED", "Locality / colony details verified")
24708
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24709
+ checked: checklist.plotDetailsVerified,
24710
+ onChange: e => handleChecklistChange("plotDetailsVerified", e.target.checked),
24711
+ label: t("WS_CHECKLIST_PLOT_DETAILS", "Plot details / area verified at site")
24712
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24713
+ checked: checklist.proposedConnectionPointIdentified,
24714
+ onChange: e => handleChecklistChange("proposedConnectionPointIdentified", e.target.checked),
24715
+ label: t("WS_CHECKLIST_PROPOSED_POINT", "Proposed connection point identified")
24716
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24717
+ checked: checklist.meterLocationIdentifiedAndAccessible,
24718
+ onChange: e => handleChecklistChange("meterLocationIdentifiedAndAccessible", e.target.checked),
24719
+ label: t("WS_CHECKLIST_METER_LOCATION", "Meter installation location identified and accessible")
24720
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24721
+ checked: checklist.siteConditionsMatchedApplication,
24722
+ onChange: e => handleChecklistChange("siteConditionsMatchedApplication", e.target.checked),
24723
+ label: t("WS_CHECKLIST_SITE_CONDITIONS", "Site conditions match application details")
24724
+ }))), /*#__PURE__*/React__default.createElement("div", {
24725
+ style: grid3Style
24726
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SITE_ACCESSIBILITY_LABEL", "Site Accessibility")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24727
+ option: siteAccessibilityOptions,
24728
+ selected: checklist.siteAccessibility,
24729
+ select: val => handleChecklistChange("siteAccessibility", val),
24730
+ optionKey: "name",
24731
+ t: t
24732
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PROPOSED_METER_LOC_LABEL", "Proposed Meter Location")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24733
+ option: proposedMeterLocationOptions,
24734
+ selected: checklist.proposedMeterLocation,
24735
+ select: val => handleChecklistChange("proposedMeterLocation", val),
24736
+ optionKey: "name",
24737
+ t: t
24738
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SITE_FEASIBILITY_LABEL", "Site Feasibility Observed")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24739
+ option: siteFeasibilityOptions,
24740
+ selected: checklist.siteFeasibilityObserved,
24741
+ select: val => handleChecklistChange("siteFeasibilityObserved", val),
24742
+ optionKey: "name",
24743
+ t: t
24744
+ }))), /*#__PURE__*/React__default.createElement("div", {
24745
+ style: {
24746
+ marginTop: "16px"
24747
+ }
24748
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_INSPECTOR_REMARKS_LABEL", "Site Inspector Observations / Remarks")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
24749
+ name: "siteInspectorRemarks",
24750
+ value: checklist.siteInspectorRemarks,
24751
+ placeholder: t("WS_ENTER_SITE_REMARKS", "Enter site observations, discrepancies, measurements and findings"),
24752
+ onChange: e => handleChecklistChange("siteInspectorRemarks", e.target.value),
24753
+ style: {
24754
+ minHeight: "90px"
24755
+ }
24756
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_SITE_INSPECTION_EVIDENCE", "7. Site Inspection Evidence")), /*#__PURE__*/React__default.createElement("div", {
24757
+ style: {
24758
+ marginTop: "12px"
24759
+ }
24760
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_UPLOAD_SITE_PHOTOS", "Upload Site Photograph(s)")} *`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
24761
+ id: "site-inspection-photos",
24762
+ accept: "image/*",
24763
+ onUpload: handleFileUpload,
24764
+ onDelete: () => setUploadedDocuments([]),
24765
+ message: uploadedDocuments.length > 0 ? `${uploadedDocuments.length} ${t("CS_ACTION_FILEUPLOADED", "file(s) uploaded")}` : t("ES_NO_FILE_SELECTED_LABEL", "No file selected"),
24766
+ disabled: isUploading
24767
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionSubText, {
24768
+ style: {
24769
+ marginTop: "6px",
24770
+ fontSize: "12px"
24771
+ }
24772
+ }, t("WS_UPLOAD_EVIDENCE_HELPER", "Upload photographs of property frontage, premises, proposed connection point and proposed meter installation location. No supporting documents or coordinates are required.")), uploadedDocuments.length > 0 && /*#__PURE__*/React__default.createElement("div", {
24773
+ style: {
24774
+ marginTop: "12px",
24775
+ display: "flex",
24776
+ flexDirection: "column",
24777
+ gap: "8px"
24778
+ }
24779
+ }, uploadedDocuments.map((doc, idx) => /*#__PURE__*/React__default.createElement("div", {
24780
+ key: idx,
24781
+ style: {
24782
+ display: "flex",
24783
+ alignItems: "center",
24784
+ justifyContent: "space-between",
24785
+ padding: "8px 12px",
24786
+ backgroundColor: "#f5f5f5",
24787
+ border: "1px solid #d9d9d9",
24788
+ borderRadius: "4px"
24789
+ }
24790
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
24791
+ style: {
24792
+ fontWeight: "500",
24793
+ fontSize: "13px"
24794
+ }
24795
+ }, doc.fileName || doc.documentUid), /*#__PURE__*/React__default.createElement("span", {
24796
+ style: {
24797
+ fontSize: "11px",
24798
+ color: "#666",
24799
+ marginLeft: "8px"
24800
+ }
24801
+ }, "(", doc.fileSize, ")")), /*#__PURE__*/React__default.createElement("button", {
24802
+ type: "button",
24803
+ onClick: () => handleRemoveDocument(idx),
24804
+ style: {
24805
+ background: "none",
24806
+ border: "none",
24807
+ color: "#cf1322",
24808
+ cursor: "pointer",
24809
+ fontWeight: "600",
24810
+ fontSize: "12px"
24811
+ }
24812
+ }, t("CS_COMMON_DELETE", "Remove"))))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DECLARATION", "8. Declaration")), /*#__PURE__*/React__default.createElement("div", {
24813
+ style: {
24814
+ marginTop: "12px",
24815
+ marginBottom: "16px"
24816
+ }
24817
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
24818
+ checked: declaration.agreed,
24819
+ onChange: e => setDeclaration(prev => ({
24820
+ ...prev,
24821
+ agreed: e.target.checked
24822
+ })),
24823
+ label: t("WS_INSPECTION_DECLARATION_TEXT", "I hereby declare that I have physically inspected the site and that the details, checklist responses, observations and photographs submitted in this inspection report are true and correct to the best of my knowledge. I understand that this report will be recorded against the respective KNO.")
24824
+ })), /*#__PURE__*/React__default.createElement("div", {
24825
+ style: grid2Style
24826
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_INSPECTOR_NAME_LABEL", "Inspector Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24827
+ disabled: true,
24828
+ value: declaration.inspectorName
24829
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SUBMISSION_DATE_LABEL", "Submission Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24830
+ type: "date",
24831
+ value: declaration.submissionDate,
24832
+ onChange: e => setDeclaration(prev => ({
24833
+ ...prev,
24834
+ submissionDate: e.target.value
24835
+ }))
24836
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24837
+ label: t("WS_PRINT_FORM", "Print Form"),
24838
+ onSubmit: handlePrint,
24839
+ style: {
24840
+ backgroundColor: "#e6f4ff",
24841
+ color: "#003366",
24842
+ border: "1px solid #91caff",
24843
+ marginRight: "12px"
24844
+ }
24845
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24846
+ label: t("WS_RESET", "Reset"),
24847
+ onSubmit: handleReset,
24848
+ style: {
24849
+ backgroundColor: "#fff1f0",
24850
+ color: "#cf1322",
24851
+ border: "1px solid #ffa39e",
24852
+ marginRight: "12px"
24853
+ }
24854
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
24855
+ label: isSubmitting ? t("WS_SUBMITTING", "Submitting...") : t("WS_SUBMIT_SITE_INSPECTION", "Submit Site Inspection"),
24856
+ onSubmit: handleSubmit,
24857
+ disabled: isSubmitting
24858
+ }))), renderPrintView(), toast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
24859
+ error: toast.key === "error",
24860
+ warning: toast.key === "warning",
24861
+ info: toast.key === "info",
24862
+ label: toast.message,
24863
+ onClose: () => setToast(null)
24864
+ }));
24865
+ };
24866
+
22716
24867
  const BILLSBreadCrumbs = _ref => {
22717
24868
  var _applicationDetails$a, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a13, _applicationDetails$a14, _reciept_data$Payment2;
22718
24869
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
@@ -23185,6 +25336,10 @@ const BILLSBreadCrumbs = _ref => {
23185
25336
  path: "/digit-ui/employee/ws/zro-verification-details",
23186
25337
  label: t("WS_APPLICATION_DETAILS_HEADER"),
23187
25338
  show: location.pathname.includes("/ws/zro-verification-details") ? true : false
25339
+ }, {
25340
+ path: "/digit-ui/employee/ws/field-inspection",
25341
+ label: t("WS_FIELD_INSPECTION", "Field Inspection"),
25342
+ show: location.pathname.includes("/ws/field-inspection") ? true : false
23188
25343
  }];
23189
25344
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
23190
25345
  crumbs[lastCrumbIndex] = {
@@ -23537,6 +25692,9 @@ const App$1 = _ref2 => {
23537
25692
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
23538
25693
  path: `${path}/zro-verification-details`,
23539
25694
  component: () => /*#__PURE__*/React__default.createElement(WSZROVerificationDetails, null)
25695
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
25696
+ path: `${path}/field-inspection`,
25697
+ component: WSFieldInspection
23540
25698
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
23541
25699
  path: `${path}/execute-disconnection`,
23542
25700
  component: WSExecuteDisconnection
@@ -29907,7 +32065,15 @@ function SelectDocument$2(_ref3) {
29907
32065
  });
29908
32066
  const [file, setFile] = React.useState(null);
29909
32067
  const [uploadedFile, setUploadedFile] = React.useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null);
29910
- const [documentUid, setDocumentUid] = React.useState(() => isOther ? "" : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || "");
32068
+ const [documentUid, setDocumentUid] = React.useState(() => {
32069
+ if (isOther) return "";
32070
+ const num = (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || "";
32071
+ const uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
32072
+ if (uuidRegex.test(num) || num === (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || num === (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.id)) {
32073
+ return "";
32074
+ }
32075
+ return num;
32076
+ });
29911
32077
  const [isDocumentUidLocked, setIsDocumentUidLocked] = React.useState(false);
29912
32078
  const [showCamera, setShowCamera] = React.useState(false);
29913
32079
  const [isUploading, setIsUploading] = React.useState(false);
@@ -38966,10 +41132,6 @@ const MobileSearchApplication = _ref => {
38966
41132
  ...props
38967
41133
  });
38968
41134
  }, [currentlyActiveMobileModal]);
38969
- const replaceUnderscore = str => {
38970
- str = str.replace(/_/g, " ");
38971
- return str;
38972
- };
38973
41135
  const propsMobileInboxCards = React.useMemo(() => {
38974
41136
  if (data !== null && data !== void 0 && data.display) {
38975
41137
  return [];
@@ -39002,7 +41164,7 @@ const MobileSearchApplication = _ref => {
39002
41164
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
39003
41165
  to: `/digit-ui/employee/ws/${getFlowUrls(data === null || data === void 0 ? void 0 : data.applicationType)}-details?applicationNumber=${data === null || data === void 0 ? void 0 : data.applicationNo}&tenantId=${tenantId}&service=${getWaterSewerageData(data)}`
39004
41166
  }, data === null || data === void 0 ? void 0 : data.applicationNo))),
39005
- [t("WS_APPLICATION_TYPE_LABEL")]: data !== null && data !== void 0 && data.applicationType ? replaceUnderscore(data.applicationType) : "-",
41167
+ [t("WS_APPLICATION_TYPE_LABEL")]: getServiceTypeDisplay(data, t) || "-",
39006
41168
  [t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL")]: (data === null || data === void 0 ? void 0 : data.ownerNames) || "-",
39007
41169
  [t("WS_COMMON_TABLE_COL_APPLICATION_STATUS_LABEL")]: t((data === null || data === void 0 ? void 0 : data.applicationStatus) || "NA"),
39008
41170
  [t("WS_COMMON_TABLE_COL_ADDRESS")]: (data === null || data === void 0 ? void 0 : data.address) || "-"
@@ -39203,7 +41365,7 @@ const SearchApplication = _ref => {
39203
41365
  Header: t("WS_APPLICATION_TYPE_LABEL"),
39204
41366
  disableSortBy: true,
39205
41367
  accessor: row => {
39206
- return GetCell(t(`WS_${row.applicationType}`));
41368
+ return GetCell(getServiceTypeDisplay(row, t));
39207
41369
  }
39208
41370
  }, {
39209
41371
  Header: t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL"),
@@ -40800,6 +42962,10 @@ const WSCard = () => {
40800
42962
  label: t("WS_APPLY_MUTATION"),
40801
42963
  link: `/digit-ui/employee/ws/mutation-application`,
40802
42964
  roles: []
42965
+ }, {
42966
+ label: t("WS_FIELD_INSPECTION", "Field Inspection"),
42967
+ link: `/digit-ui/employee/ws/field-inspection`,
42968
+ roles: ["WS_CEMP", "WS_FIELD_INSPECTOR", "WS_APPROVER", "WS_ZRO", "EE", "WS_CLERK", "SW_FIELD_INSPECTOR"]
40803
42969
  }, {
40804
42970
  label: t("WS_ZRO_VERIFICATION"),
40805
42971
  link: `/digit-ui/employee/ws/zro-application`,
@@ -44883,6 +47049,34 @@ const isPhotoDoc = (doc, code) => {
44883
47049
  const str = (((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "") + " " + (code || "")).toUpperCase();
44884
47050
  return str.includes("APPLICANTPHOTO") || str.includes("PHOTO");
44885
47051
  };
47052
+ const isPhotoOrSignatureDoc = (doc, code) => {
47053
+ const str = (((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "") + " " + (code || "")).toUpperCase();
47054
+ return str.includes("APPLICANTPHOTO") || str.includes("PHOTO") || str.includes("SIGNATURE") || str.includes("SIGN");
47055
+ };
47056
+ const isInvalidDocNum = (val, doc) => {
47057
+ if (!val || typeof val !== "string") return true;
47058
+ const trimmed = val.trim();
47059
+ if (!trimmed || trimmed.toUpperCase() === "NA" || trimmed.toUpperCase() === "NULL" || trimmed.toUpperCase() === "UNDEFINED" || trimmed.toUpperCase() === "NONE" || trimmed === "-") {
47060
+ return true;
47061
+ }
47062
+ const uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
47063
+ if (uuidRegex.test(trimmed)) return true;
47064
+ if (/^[0-9a-fA-F]{32}$/.test(trimmed)) return true;
47065
+ if (doc !== null && doc !== void 0 && doc.fileStoreId && trimmed === String(doc.fileStoreId).trim()) return true;
47066
+ if (doc !== null && doc !== void 0 && doc.id && trimmed === String(doc.id).trim()) return true;
47067
+ if (doc !== null && doc !== void 0 && doc.documentId && trimmed === String(doc.documentId).trim()) return true;
47068
+ return false;
47069
+ };
47070
+ const getDocNumber = (document, isPhotoOrSig, t) => {
47071
+ if (isPhotoOrSig) return "";
47072
+ const candidates = [document === null || document === void 0 ? void 0 : document.documentNumber, document === null || document === void 0 ? void 0 : document.documentUid];
47073
+ for (const c of candidates) {
47074
+ if (c && !isInvalidDocNum(c, document)) {
47075
+ return String(c).trim();
47076
+ }
47077
+ }
47078
+ return t ? t("NA") : "NA";
47079
+ };
44886
47080
  function WSDocument(_ref) {
44887
47081
  var _value$documents;
44888
47082
  let {
@@ -44945,7 +47139,8 @@ function WSDocument(_ref) {
44945
47139
  const finalUrl = linkFromData || localLink || (typeof fileId === "string" && fileId.startsWith("http") ? fileId : "");
44946
47140
  const displayName = getDocumentDisplayName(document, Code, t);
44947
47141
  const isPhoto = isPhotoDoc(document, Code);
44948
- const docNum = !isPhoto ? (document === null || document === void 0 ? void 0 : document.documentNumber) || (document === null || document === void 0 ? void 0 : document.documentUid) || "" : "";
47142
+ const isPhotoOrSig = isPhotoOrSignatureDoc(document, Code);
47143
+ const docNum = getDocNumber(document, isPhotoOrSig, t);
44949
47144
  return /*#__PURE__*/React__default.createElement("div", {
44950
47145
  style: {
44951
47146
  display: "flex",
@@ -45010,7 +47205,7 @@ function WSDocument(_ref) {
45010
47205
  maxWidth: "200px",
45011
47206
  lineHeight: "1.3"
45012
47207
  }
45013
- }, displayName), docNum ? /*#__PURE__*/React__default.createElement("p", {
47208
+ }, displayName), !isPhotoOrSig && /*#__PURE__*/React__default.createElement("p", {
45014
47209
  style: {
45015
47210
  marginTop: "4px",
45016
47211
  fontSize: "13px",
@@ -45018,7 +47213,7 @@ function WSDocument(_ref) {
45018
47213
  wordBreak: "break-all",
45019
47214
  maxWidth: "200px"
45020
47215
  }
45021
- }, docNum) : null), appStatus === "PENDING_FOR_CONNECTION_ACTIVATION" && /*#__PURE__*/React__default.createElement("div", {
47216
+ }, docNum || t("NA"))), appStatus === "PENDING_FOR_CONNECTION_ACTIVATION" && /*#__PURE__*/React__default.createElement("div", {
45022
47217
  style: {
45023
47218
  marginTop: "10px"
45024
47219
  }
@@ -45175,33 +47370,33 @@ const checkForNA$2 = value => {
45175
47370
  return value ? value : "CS_NA";
45176
47371
  };
45177
47372
  const WSApplicationDetails = () => {
45178
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _propertyAddress$geoL, _propertyAddress$loca, _additionalDetails$ge, _additionalDetails$pr, _additionalDetails$pr2, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties9, _PTData$Properties9$, _PTData$Properties9$$, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$prop4, _applicationData$prop5, _propertyAddress$geoL2, _propertyAddress$loca2, _additionalDetails$ge2, _additionalDetails$pr3, _additionalDetails$pr4, _PTData$Properties0, _PTData$Properties0$, _PTData$Properties0$$, _PTData$Properties1, _PTData$Properties1$, _PTData$Properties1$$, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _PTData$Properties10$3, _PTData$Properties11, _PTData$Properties11$, _PTData$Properties11$2, _PTData$Properties11$3, _PTData$Properties12, _PTData$Properties12$, _PTData$Properties13, _PTData$Properties13$, _PTData$Properties14, _PTData$Properties14$, _PTData$Properties14$2, _applicationData$prop6, _applicationData$prop7, _applicationData$prop8, _applicationData$prop9, _applicationData$prop0, _additionalDetails$pr5, _additionalDetails$pr6, _PTData$Properties15, _PTData$Properties15$, _PTData$Properties16, _PTData$Properties16$, _PTData$Properties17, _PTData$Properties17$, _PTData$Properties18, _PTData$Properties18$, _PTData$Properties19, _PTData$Properties19$, _PTData$Properties20, _PTData$Properties20$, _PTData$Properties20$2, _PTData$Properties21, _PTData$Properties21$, _PTData$Properties21$2, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _PTData$Properties24, _PTData$Properties24$, _PTData$Properties24$2, _PTData$Properties24$3, _PTData$Properties25, _PTData$Properties25$, _PTData$Properties26, _PTData$Properties26$, _PTData$Properties26$2, _PTData$Properties26$3, _PTData$Properties27, _PTData$Properties27$, _PTData$Properties28, _PTData$Properties28$, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca3, _propertyAddress$loca4, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties29, _PTData$Properties29$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties30, _PTData$Properties30$, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties31, _PTData$Properties31$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop1, _applicationData$prop10, _applicationData$prop11, _applicationData$addi7, _applicationData$addi8, _applicationData$prop12, _applicationData$prop13, _applicationData$addi9, _applicationData$addi0, _applicationData$prop14, _applicationData$prop15, _applicationData$dueV, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _ref2, _data$WaterConnection132, _data$SewerageConnect127, _ref3, _data$WaterConnection133, _data$SewerageConnect128, _ref4, _ref4$additionalDetai, _data$WaterConnection134, _data$SewerageConnect129, _ref5, _ref5$additionalDetai, _ref5$additionalDetai2, _data$WaterConnection135, _data$SewerageConnect130, _ref6, _ref6$additionalDetai, _data$WaterConnection136, _data$SewerageConnect131, _ref7, _ref7$additionalDetai, _ref7$additionalDetai2, _data$WaterConnection137, _data$SewerageConnect132, _ref8, _ref8$additionalDetai, _ref8$additionalDetai2, _data$WaterConnection138, _data$SewerageConnect133, _ref9, _ref9$plumberInfo, _ref9$plumberInfo$, _data$WaterConnection139, _data$SewerageConnect134, _ref0, _ref0$plumberInfo, _ref0$plumberInfo$, _data$WaterConnection140, _data$SewerageConnect135, _ref1, _ref1$plumberInfo, _ref1$plumberInfo$, _data$WaterConnection141, _data$SewerageConnect136, _ref10, _data$WaterConnection142, _data$SewerageConnect137, _ref11, _data$WaterConnection143, _data$SewerageConnect138, _ref12, _data$WaterConnection144, _data$SewerageConnect139, _ref13, _ref13$additionalDeta, _data$WaterConnection145, _data$SewerageConnect140, _ref14, _ref14$additionalDeta, _data$WaterConnection146, _data$SewerageConnect141, _ref15, _ref15$additionalDeta, _data$WaterConnection147, _data$SewerageConnect142, _ref16, _ref16$additionalDeta, _data$WaterConnection148, _data$SewerageConnect143, _ref17, _data$WaterConnection149, _data$SewerageConnect144, _ref18, _data$WaterConnection150, _data$SewerageConnect145, _ref19, _data$WaterConnection151, _data$SewerageConnect146, _ref20, _data$WaterConnection152, _data$SewerageConnect147, _ref21, _data$WaterConnection153, _data$SewerageConnect148, _ref22, _data$WaterConnection154, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection171, _data$WaterConnection172, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection173, _data$WaterConnection174, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect170, _data$SewerageConnect171, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect172, _data$SewerageConnect173, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect174, _data$SewerageConnect175, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect181, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$SewerageConnect185, _data$SewerageConnect186, _data$SewerageConnect187, _data$SewerageConnect188, _data$SewerageConnect189, _data$SewerageConnect190, _data$SewerageConnect191, _data$WaterConnection189, _data$WaterConnection190, _data$WaterConnection191, _data$WaterConnection192, _data$WaterConnection193, _data$WaterConnection194, _data$WaterConnection195, _data$WaterConnection196, _data$WaterConnection197, _data$WaterConnection198, _data$WaterConnection199, _data$WaterConnection200, _data$WaterConnection201, _data$SewerageConnect192, _data$SewerageConnect193, _data$SewerageConnect194, _data$SewerageConnect195, _data$WaterConnection202, _data$SewerageConnect196, _data$WaterConnection203, _data$WaterConnection204, _data$WaterConnection205, _data$WaterConnection206, _data$SewerageConnect197, _data$SewerageConnect198, _data$SewerageConnect199, _data$WaterConnection207, _data$WaterConnection208, _data$WaterConnection209, _data$SewerageConnect200, _data$SewerageConnect201, _data$SewerageConnect202, _data$WaterConnection217, _data$WaterConnection218, _data$WaterConnection219, _data$SewerageConnect209, _data$SewerageConnect210, _data$SewerageConnect211;
47373
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _propertyAddress$geoL, _propertyAddress$loca, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties9, _PTData$Properties9$, _PTData$Properties9$$, _additionalDetails$ge, _additionalDetails$pr, _additionalDetails$pr2, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$prop4, _applicationData$prop5, _propertyAddress$geoL2, _propertyAddress$loca2, _PTData$Properties0, _PTData$Properties0$, _PTData$Properties0$$, _PTData$Properties1, _PTData$Properties1$, _PTData$Properties1$$, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _PTData$Properties10$3, _PTData$Properties11, _PTData$Properties11$, _PTData$Properties11$2, _PTData$Properties11$3, _PTData$Properties12, _PTData$Properties12$, _PTData$Properties13, _PTData$Properties13$, _PTData$Properties14, _PTData$Properties14$, _PTData$Properties14$2, _additionalDetails$ge2, _additionalDetails$pr3, _additionalDetails$pr4, _applicationData$prop6, _applicationData$prop7, _applicationData$prop8, _applicationData$prop9, _applicationData$prop0, _PTData$Properties15, _PTData$Properties15$, _PTData$Properties16, _PTData$Properties16$, _additionalDetails$pr5, _additionalDetails$pr6, _PTData$Properties17, _PTData$Properties17$, _PTData$Properties18, _PTData$Properties18$, _PTData$Properties19, _PTData$Properties19$, _PTData$Properties20, _PTData$Properties20$, _PTData$Properties20$2, _PTData$Properties21, _PTData$Properties21$, _PTData$Properties21$2, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect55, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _PTData$Properties24, _PTData$Properties24$, _PTData$Properties24$2, _PTData$Properties24$3, _PTData$Properties25, _PTData$Properties25$, _PTData$Properties26, _PTData$Properties26$, _PTData$Properties26$2, _PTData$Properties26$3, _PTData$Properties27, _PTData$Properties27$, _PTData$Properties28, _PTData$Properties28$, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca3, _propertyAddress$loca4, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _propertyAdditionalDe, _propertyAdditionalDe2, _propertyAdditionalDe3, _propertyAdditionalDe4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$WaterConn, _useDetails$WaterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _propertyAdditionalDe7, _PTData$Properties29, _PTData$Properties29$, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyC3, _applicationData$prop1, _propertyAdditionalDe8, _propertyAdditionalDe9, _propertyAdditionalDe0, _PTData$Properties30, _PTData$Properties30$, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$propertyT3, _PTData$Properties31, _PTData$Properties31$, _PTData$Properties32, _PTData$Properties32$, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties33, _PTData$Properties33$, _PTData$Properties34, _PTData$Properties34$, _PTData$Properties35, _PTData$Properties35$, _PTData$Properties36, _PTData$Properties36$, _PTData$Properties37, _PTData$Properties37$, _PTData$Properties38, _PTData$Properties38$, _PTData$Properties39, _PTData$Properties39$, _PTData$Properties40, _PTData$Properties40$, _PTData$Properties41, _PTData$Properties41$, _propertyAdditionalDe1, _propertyAdditionalDe10, _propertyAdditionalDe11, _propertyAdditionalDe12, _propertyAdditionalDe13, _propertyAdditionalDe14, _propertyAdditionalDe15, _propertyAdditionalDe16, _propertyAdditionalDe17, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _propertyAdditionalDe18, _propertyAdditionalDe19, _PTData$Properties42, _PTData$Properties42$, _PTData$Properties43, _PTData$Properties43$, _useDetails$propertyC4, _useDetails$propertyC5, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop10, _applicationData$prop11, _applicationData$prop12, _PTData$Properties44, _PTData$Properties44$, _PTData$Properties45, _PTData$Properties45$, _PTData$Properties46, _PTData$Properties46$, _PTData$Properties47, _PTData$Properties47$, _PTData$Properties48, _PTData$Properties48$, _PTData$Properties49, _PTData$Properties49$, _PTData$Properties50, _PTData$Properties50$, _PTData$Properties51, _PTData$Properties51$, _PTData$Properties52, _PTData$Properties52$, _PTData$Properties53, _PTData$Properties53$, _PTData$Properties54, _PTData$Properties54$, _PTData$Properties55, _PTData$Properties55$, _PTData$Properties56, _PTData$Properties56$, _applicationData$addi7, _applicationData$addi8, _applicationData$prop13, _applicationData$prop14, _PTData$Properties57, _PTData$Properties57$, _applicationData$addi9, _applicationData$addi0, _applicationData$prop15, _applicationData$prop16, _applicationData$dueV, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _ref2, _data$WaterConnection130, _data$SewerageConnect125, _ref3, _data$WaterConnection131, _data$SewerageConnect126, _ref4, _ref4$additionalDetai, _data$WaterConnection132, _data$SewerageConnect127, _ref5, _ref5$additionalDetai, _ref5$additionalDetai2, _data$WaterConnection133, _data$SewerageConnect128, _ref6, _ref6$additionalDetai, _data$WaterConnection134, _data$SewerageConnect129, _ref7, _ref7$additionalDetai, _ref7$additionalDetai2, _data$WaterConnection135, _data$SewerageConnect130, _ref8, _ref8$additionalDetai, _ref8$additionalDetai2, _data$WaterConnection136, _data$SewerageConnect131, _ref9, _ref9$plumberInfo, _ref9$plumberInfo$, _data$WaterConnection137, _data$SewerageConnect132, _ref0, _ref0$plumberInfo, _ref0$plumberInfo$, _data$WaterConnection138, _data$SewerageConnect133, _ref1, _ref1$plumberInfo, _ref1$plumberInfo$, _data$WaterConnection139, _data$SewerageConnect134, _ref10, _data$WaterConnection140, _data$SewerageConnect135, _ref11, _data$WaterConnection141, _data$SewerageConnect136, _ref12, _data$WaterConnection142, _data$SewerageConnect137, _ref13, _ref13$additionalDeta, _data$WaterConnection143, _data$SewerageConnect138, _ref14, _ref14$additionalDeta, _data$WaterConnection144, _data$SewerageConnect139, _ref15, _ref15$additionalDeta, _data$WaterConnection145, _data$SewerageConnect140, _ref16, _ref16$additionalDeta, _data$WaterConnection146, _data$SewerageConnect141, _ref17, _data$WaterConnection147, _data$SewerageConnect142, _ref18, _data$WaterConnection148, _data$SewerageConnect143, _ref19, _data$WaterConnection149, _data$SewerageConnect144, _ref20, _data$WaterConnection150, _data$SewerageConnect145, _ref21, _data$WaterConnection151, _data$SewerageConnect146, _ref22, _data$WaterConnection152, _data$SewerageConnect147, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$WaterConnection177, _data$WaterConnection178, _data$SewerageConnect172, _data$SewerageConnect173, _data$WaterConnection179, _data$WaterConnection180, _data$SewerageConnect174, _data$SewerageConnect175, _data$WaterConnection181, _data$WaterConnection182, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181, _data$WaterConnection188, _data$WaterConnection189, _data$WaterConnection190, _data$WaterConnection191, _data$WaterConnection192, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$SewerageConnect185, _data$SewerageConnect186, _data$WaterConnection193, _data$WaterConnection194, _data$SewerageConnect187, _data$SewerageConnect188, _data$SewerageConnect189, _data$SewerageConnect190, _data$SewerageConnect191, _data$SewerageConnect192, _data$SewerageConnect193, _data$SewerageConnect194, _data$SewerageConnect195, _data$SewerageConnect196, _data$SewerageConnect197, _data$WaterConnection195, _data$WaterConnection196, _data$WaterConnection197, _data$WaterConnection198, _data$WaterConnection199, _data$WaterConnection200, _data$WaterConnection201, _data$WaterConnection202, _data$WaterConnection203, _data$WaterConnection204, _data$WaterConnection205, _data$WaterConnection206, _data$WaterConnection207, _data$SewerageConnect198, _data$SewerageConnect199, _data$SewerageConnect200, _data$SewerageConnect201, _data$WaterConnection208, _data$SewerageConnect202, _data$WaterConnection209, _data$WaterConnection210, _data$WaterConnection211, _data$WaterConnection212, _data$SewerageConnect203, _data$SewerageConnect204, _data$SewerageConnect205, _data$WaterConnection213, _data$WaterConnection214, _data$WaterConnection215, _data$SewerageConnect206, _data$SewerageConnect207, _data$SewerageConnect208, _data$WaterConnection223, _data$WaterConnection224, _data$WaterConnection225, _data$SewerageConnect215, _data$SewerageConnect216, _data$SewerageConnect217;
45179
47374
  const getDisconnectionNoticeSearch = function () {
45180
47375
  try {
45181
- var _data$WaterConnection221, _data$WaterConnection222, _data$SewerageConnect213, _data$SewerageConnect214;
47376
+ var _data$WaterConnection227, _data$WaterConnection228, _data$SewerageConnect219, _data$SewerageConnect220;
45182
47377
  let key = "ws-waterdisconnectionnotice";
45183
47378
  let details = {};
45184
47379
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
45185
- var _data$WaterConnection220, _PTData$Properties33;
47380
+ var _data$WaterConnection226, _PTData$Properties59;
45186
47381
  details = {
45187
47382
  WaterConnection: [{
45188
- ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection220 = data.WaterConnection) === null || _data$WaterConnection220 === void 0 ? void 0 : _data$WaterConnection220[0]),
45189
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties33 = PTData.Properties) === null || _PTData$Properties33 === void 0 ? void 0 : _PTData$Properties33[0]
47383
+ ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection226 = data.WaterConnection) === null || _data$WaterConnection226 === void 0 ? void 0 : _data$WaterConnection226[0]),
47384
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties59 = PTData.Properties) === null || _PTData$Properties59 === void 0 ? void 0 : _PTData$Properties59[0]
45190
47385
  }]
45191
47386
  };
45192
47387
  } else {
45193
- var _data$SewerageConnect212, _PTData$Properties34;
47388
+ var _data$SewerageConnect218, _PTData$Properties60;
45194
47389
  key = "ws-seweragedisconnectionnotice";
45195
47390
  details = {
45196
47391
  SewerageConnection: [{
45197
- ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect212 = data.SewerageConnections) === null || _data$SewerageConnect212 === void 0 ? void 0 : _data$SewerageConnect212[0]),
45198
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties34 = PTData.Properties) === null || _PTData$Properties34 === void 0 ? void 0 : _PTData$Properties34[0]
47392
+ ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect218 = data.SewerageConnections) === null || _data$SewerageConnect218 === void 0 ? void 0 : _data$SewerageConnect218[0]),
47393
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties60 = PTData.Properties) === null || _PTData$Properties60 === void 0 ? void 0 : _PTData$Properties60[0]
45199
47394
  }]
45200
47395
  };
45201
47396
  }
45202
- return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection221 = data.WaterConnection) === null || _data$WaterConnection221 === void 0 ? void 0 : (_data$WaterConnection222 = _data$WaterConnection221[0]) === null || _data$WaterConnection222 === void 0 ? void 0 : _data$WaterConnection222.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect213 = data.SewerageConnections) === null || _data$SewerageConnect213 === void 0 ? void 0 : (_data$SewerageConnect214 = _data$SewerageConnect213[0]) === null || _data$SewerageConnect214 === void 0 ? void 0 : _data$SewerageConnect214.tenantId), details, key)).then(function (response) {
45203
- var _data$WaterConnection223, _data$WaterConnection224, _data$SewerageConnect215, _data$SewerageConnect216;
45204
- return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection223 = data.WaterConnection) === null || _data$WaterConnection223 === void 0 ? void 0 : (_data$WaterConnection224 = _data$WaterConnection223[0]) === null || _data$WaterConnection224 === void 0 ? void 0 : _data$WaterConnection224.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect215 = data.SewerageConnections) === null || _data$SewerageConnect215 === void 0 ? void 0 : (_data$SewerageConnect216 = _data$SewerageConnect215[0]) === null || _data$SewerageConnect216 === void 0 ? void 0 : _data$SewerageConnect216.tenantId), {
47397
+ return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection227 = data.WaterConnection) === null || _data$WaterConnection227 === void 0 ? void 0 : (_data$WaterConnection228 = _data$WaterConnection227[0]) === null || _data$WaterConnection228 === void 0 ? void 0 : _data$WaterConnection228.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect219 = data.SewerageConnections) === null || _data$SewerageConnect219 === void 0 ? void 0 : (_data$SewerageConnect220 = _data$SewerageConnect219[0]) === null || _data$SewerageConnect220 === void 0 ? void 0 : _data$SewerageConnect220.tenantId), details, key)).then(function (response) {
47398
+ var _data$WaterConnection229, _data$WaterConnection230, _data$SewerageConnect221, _data$SewerageConnect222;
47399
+ return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection229 = data.WaterConnection) === null || _data$WaterConnection229 === void 0 ? void 0 : (_data$WaterConnection230 = _data$WaterConnection229[0]) === null || _data$WaterConnection230 === void 0 ? void 0 : _data$WaterConnection230.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect221 = data.SewerageConnections) === null || _data$SewerageConnect221 === void 0 ? void 0 : (_data$SewerageConnect222 = _data$SewerageConnect221[0]) === null || _data$SewerageConnect222 === void 0 ? void 0 : _data$SewerageConnect222.tenantId), {
45205
47400
  fileStoreIds: response.filestoreIds[0]
45206
47401
  })).then(function (fileStore) {
45207
47402
  window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
@@ -45365,10 +47560,10 @@ const WSApplicationDetails = () => {
45365
47560
  const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
45366
47561
  const djbEmployee = additionalDetails;
45367
47562
  const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
45368
- const rawLatitude = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.Latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$geoL = propertyAddress.geoLocation) === null || _propertyAddress$geoL === void 0 ? void 0 : _propertyAddress$geoL.latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.Latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$ge = additionalDetails.geoLocation) === null || _additionalDetails$ge === void 0 ? void 0 : _additionalDetails$ge.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr === void 0 ? void 0 : _additionalDetails$pr.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr2 = additionalDetails.propertyAddress) === null || _additionalDetails$pr2 === void 0 ? void 0 : _additionalDetails$pr2.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : (_PTData$Properties3$ = _PTData$Properties3[0]) === null || _PTData$Properties3$ === void 0 ? void 0 : (_PTData$Properties3$$ = _PTData$Properties3$.address) === null || _PTData$Properties3$$ === void 0 ? void 0 : _PTData$Properties3$$.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : (_PTData$Properties4$ = _PTData$Properties4[0]) === null || _PTData$Properties4$ === void 0 ? void 0 : (_PTData$Properties4$$ = _PTData$Properties4$.address) === null || _PTData$Properties4$$ === void 0 ? void 0 : _PTData$Properties4$$.Latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : (_PTData$Properties5$$ = _PTData$Properties5$.address) === null || _PTData$Properties5$$ === void 0 ? void 0 : (_PTData$Properties5$$2 = _PTData$Properties5$$.geoLocation) === null || _PTData$Properties5$$2 === void 0 ? void 0 : _PTData$Properties5$$2.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : (_PTData$Properties6$$ = _PTData$Properties6$.address) === null || _PTData$Properties6$$ === void 0 ? void 0 : (_PTData$Properties6$$2 = _PTData$Properties6$$.locality) === null || _PTData$Properties6$$2 === void 0 ? void 0 : _PTData$Properties6$$2.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : _PTData$Properties7$.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : _PTData$Properties8$.Latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : (_PTData$Properties9$$ = _PTData$Properties9$.additionalDetails) === null || _PTData$Properties9$$ === void 0 ? void 0 : _PTData$Properties9$$.latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : (_applicationData$prop2 = _applicationData$prop.address) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop3 = applicationData.property) === null || _applicationData$prop3 === void 0 ? void 0 : (_applicationData$prop4 = _applicationData$prop3.address) === null || _applicationData$prop4 === void 0 ? void 0 : _applicationData$prop4.Latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop5 = applicationData.propertyAddress) === null || _applicationData$prop5 === void 0 ? void 0 : _applicationData$prop5.latitude) || "";
45369
- const rawLongitude = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.Longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$geoL2 = propertyAddress.geoLocation) === null || _propertyAddress$geoL2 === void 0 ? void 0 : _propertyAddress$geoL2.longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca2 = propertyAddress.locality) === null || _propertyAddress$loca2 === void 0 ? void 0 : _propertyAddress$loca2.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.Longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$ge2 = additionalDetails.geoLocation) === null || _additionalDetails$ge2 === void 0 ? void 0 : _additionalDetails$ge2.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr3 = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr3 === void 0 ? void 0 : _additionalDetails$pr3.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr4 = additionalDetails.propertyAddress) === null || _additionalDetails$pr4 === void 0 ? void 0 : _additionalDetails$pr4.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : (_PTData$Properties0$$ = _PTData$Properties0$.address) === null || _PTData$Properties0$$ === void 0 ? void 0 : _PTData$Properties0$$.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : (_PTData$Properties1$$ = _PTData$Properties1$.address) === null || _PTData$Properties1$$ === void 0 ? void 0 : _PTData$Properties1$$.Longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.address) === null || _PTData$Properties10$2 === void 0 ? void 0 : (_PTData$Properties10$3 = _PTData$Properties10$2.geoLocation) === null || _PTData$Properties10$3 === void 0 ? void 0 : _PTData$Properties10$3.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : (_PTData$Properties11$ = _PTData$Properties11[0]) === null || _PTData$Properties11$ === void 0 ? void 0 : (_PTData$Properties11$2 = _PTData$Properties11$.address) === null || _PTData$Properties11$2 === void 0 ? void 0 : (_PTData$Properties11$3 = _PTData$Properties11$2.locality) === null || _PTData$Properties11$3 === void 0 ? void 0 : _PTData$Properties11$3.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : (_PTData$Properties12$ = _PTData$Properties12[0]) === null || _PTData$Properties12$ === void 0 ? void 0 : _PTData$Properties12$.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : (_PTData$Properties13$ = _PTData$Properties13[0]) === null || _PTData$Properties13$ === void 0 ? void 0 : _PTData$Properties13$.Longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties14 = PTData.Properties) === null || _PTData$Properties14 === void 0 ? void 0 : (_PTData$Properties14$ = _PTData$Properties14[0]) === null || _PTData$Properties14$ === void 0 ? void 0 : (_PTData$Properties14$2 = _PTData$Properties14$.additionalDetails) === null || _PTData$Properties14$2 === void 0 ? void 0 : _PTData$Properties14$2.longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop6 = applicationData.property) === null || _applicationData$prop6 === void 0 ? void 0 : (_applicationData$prop7 = _applicationData$prop6.address) === null || _applicationData$prop7 === void 0 ? void 0 : _applicationData$prop7.longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop8 = applicationData.property) === null || _applicationData$prop8 === void 0 ? void 0 : (_applicationData$prop9 = _applicationData$prop8.address) === null || _applicationData$prop9 === void 0 ? void 0 : _applicationData$prop9.Longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop0 = applicationData.propertyAddress) === null || _applicationData$prop0 === void 0 ? void 0 : _applicationData$prop0.longitude) || "";
45370
- const rawFloorConsumerResides = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr5 = additionalDetails.propertyAddress) === null || _additionalDetails$pr5 === void 0 ? void 0 : _additionalDetails$pr5.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr6 = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr6 === void 0 ? void 0 : _additionalDetails$pr6.atWhichFloorConsumerResides) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.numberOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.noOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.numberOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.atWhichFloorConsumerResides) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties15 = PTData.Properties) === null || _PTData$Properties15 === void 0 ? void 0 : (_PTData$Properties15$ = _PTData$Properties15[0]) === null || _PTData$Properties15$ === void 0 ? void 0 : _PTData$Properties15$.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties16 = PTData.Properties) === null || _PTData$Properties16 === void 0 ? void 0 : (_PTData$Properties16$ = _PTData$Properties16[0]) === null || _PTData$Properties16$ === void 0 ? void 0 : _PTData$Properties16$.numberOfFloors) || "";
45371
- const rawTotalFloors = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalNumberOfFloorInTheBuilding) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalNoOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNumberOfFloorInTheBuilding) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNoOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalNumberOfFloorInTheBuilding) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalNoOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties17 = PTData.Properties) === null || _PTData$Properties17 === void 0 ? void 0 : (_PTData$Properties17$ = _PTData$Properties17[0]) === null || _PTData$Properties17$ === void 0 ? void 0 : _PTData$Properties17$.totalNumberOfFloorInTheBuilding) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties18 = PTData.Properties) === null || _PTData$Properties18 === void 0 ? void 0 : (_PTData$Properties18$ = _PTData$Properties18[0]) === null || _PTData$Properties18$ === void 0 ? void 0 : _PTData$Properties18$.totalNoOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties19 = PTData.Properties) === null || _PTData$Properties19 === void 0 ? void 0 : (_PTData$Properties19$ = _PTData$Properties19[0]) === null || _PTData$Properties19$ === void 0 ? void 0 : _PTData$Properties19$.totalFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties20 = PTData.Properties) === null || _PTData$Properties20 === void 0 ? void 0 : (_PTData$Properties20$ = _PTData$Properties20[0]) === null || _PTData$Properties20$ === void 0 ? void 0 : (_PTData$Properties20$2 = _PTData$Properties20$.address) === null || _PTData$Properties20$2 === void 0 ? void 0 : _PTData$Properties20$2.totalNoOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties21 = PTData.Properties) === null || _PTData$Properties21 === void 0 ? void 0 : (_PTData$Properties21$ = _PTData$Properties21[0]) === null || _PTData$Properties21$ === void 0 ? void 0 : (_PTData$Properties21$2 = _PTData$Properties21$.address) === null || _PTData$Properties21$2 === void 0 ? void 0 : _PTData$Properties21$2.totalFloors) || "";
47563
+ const rawLatitude = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.Latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$geoL = propertyAddress.geoLocation) === null || _propertyAddress$geoL === void 0 ? void 0 : _propertyAddress$geoL.latitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.latitude) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : (_PTData$Properties3$ = _PTData$Properties3[0]) === null || _PTData$Properties3$ === void 0 ? void 0 : (_PTData$Properties3$$ = _PTData$Properties3$.address) === null || _PTData$Properties3$$ === void 0 ? void 0 : _PTData$Properties3$$.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : (_PTData$Properties4$ = _PTData$Properties4[0]) === null || _PTData$Properties4$ === void 0 ? void 0 : (_PTData$Properties4$$ = _PTData$Properties4$.address) === null || _PTData$Properties4$$ === void 0 ? void 0 : _PTData$Properties4$$.Latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : (_PTData$Properties5$$ = _PTData$Properties5$.address) === null || _PTData$Properties5$$ === void 0 ? void 0 : (_PTData$Properties5$$2 = _PTData$Properties5$$.geoLocation) === null || _PTData$Properties5$$2 === void 0 ? void 0 : _PTData$Properties5$$2.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : (_PTData$Properties6$$ = _PTData$Properties6$.address) === null || _PTData$Properties6$$ === void 0 ? void 0 : (_PTData$Properties6$$2 = _PTData$Properties6$$.locality) === null || _PTData$Properties6$$2 === void 0 ? void 0 : _PTData$Properties6$$2.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : _PTData$Properties7$.latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : _PTData$Properties8$.Latitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : (_PTData$Properties9$$ = _PTData$Properties9$.additionalDetails) === null || _PTData$Properties9$$ === void 0 ? void 0 : _PTData$Properties9$$.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.Latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$ge = additionalDetails.geoLocation) === null || _additionalDetails$ge === void 0 ? void 0 : _additionalDetails$ge.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr === void 0 ? void 0 : _additionalDetails$pr.latitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr2 = additionalDetails.propertyAddress) === null || _additionalDetails$pr2 === void 0 ? void 0 : _additionalDetails$pr2.latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : (_applicationData$prop2 = _applicationData$prop.address) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop3 = applicationData.property) === null || _applicationData$prop3 === void 0 ? void 0 : (_applicationData$prop4 = _applicationData$prop3.address) === null || _applicationData$prop4 === void 0 ? void 0 : _applicationData$prop4.Latitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop5 = applicationData.propertyAddress) === null || _applicationData$prop5 === void 0 ? void 0 : _applicationData$prop5.latitude) || "";
47564
+ const rawLongitude = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.Longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$geoL2 = propertyAddress.geoLocation) === null || _propertyAddress$geoL2 === void 0 ? void 0 : _propertyAddress$geoL2.longitude) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca2 = propertyAddress.locality) === null || _propertyAddress$loca2 === void 0 ? void 0 : _propertyAddress$loca2.longitude) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : (_PTData$Properties0$$ = _PTData$Properties0$.address) === null || _PTData$Properties0$$ === void 0 ? void 0 : _PTData$Properties0$$.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : (_PTData$Properties1$$ = _PTData$Properties1$.address) === null || _PTData$Properties1$$ === void 0 ? void 0 : _PTData$Properties1$$.Longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.address) === null || _PTData$Properties10$2 === void 0 ? void 0 : (_PTData$Properties10$3 = _PTData$Properties10$2.geoLocation) === null || _PTData$Properties10$3 === void 0 ? void 0 : _PTData$Properties10$3.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : (_PTData$Properties11$ = _PTData$Properties11[0]) === null || _PTData$Properties11$ === void 0 ? void 0 : (_PTData$Properties11$2 = _PTData$Properties11$.address) === null || _PTData$Properties11$2 === void 0 ? void 0 : (_PTData$Properties11$3 = _PTData$Properties11$2.locality) === null || _PTData$Properties11$3 === void 0 ? void 0 : _PTData$Properties11$3.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : (_PTData$Properties12$ = _PTData$Properties12[0]) === null || _PTData$Properties12$ === void 0 ? void 0 : _PTData$Properties12$.longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : (_PTData$Properties13$ = _PTData$Properties13[0]) === null || _PTData$Properties13$ === void 0 ? void 0 : _PTData$Properties13$.Longitude) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties14 = PTData.Properties) === null || _PTData$Properties14 === void 0 ? void 0 : (_PTData$Properties14$ = _PTData$Properties14[0]) === null || _PTData$Properties14$ === void 0 ? void 0 : (_PTData$Properties14$2 = _PTData$Properties14$.additionalDetails) === null || _PTData$Properties14$2 === void 0 ? void 0 : _PTData$Properties14$2.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.Longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$ge2 = additionalDetails.geoLocation) === null || _additionalDetails$ge2 === void 0 ? void 0 : _additionalDetails$ge2.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr3 = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr3 === void 0 ? void 0 : _additionalDetails$pr3.longitude) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr4 = additionalDetails.propertyAddress) === null || _additionalDetails$pr4 === void 0 ? void 0 : _additionalDetails$pr4.longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop6 = applicationData.property) === null || _applicationData$prop6 === void 0 ? void 0 : (_applicationData$prop7 = _applicationData$prop6.address) === null || _applicationData$prop7 === void 0 ? void 0 : _applicationData$prop7.longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop8 = applicationData.property) === null || _applicationData$prop8 === void 0 ? void 0 : (_applicationData$prop9 = _applicationData$prop8.address) === null || _applicationData$prop9 === void 0 ? void 0 : _applicationData$prop9.Longitude) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop0 = applicationData.propertyAddress) === null || _applicationData$prop0 === void 0 ? void 0 : _applicationData$prop0.longitude) || "";
47565
+ const rawFloorConsumerResides = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.atWhichFloorConsumerResides) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.atWhichFloorConsumerResides) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.numberOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties15 = PTData.Properties) === null || _PTData$Properties15 === void 0 ? void 0 : (_PTData$Properties15$ = _PTData$Properties15[0]) === null || _PTData$Properties15$ === void 0 ? void 0 : _PTData$Properties15$.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties16 = PTData.Properties) === null || _PTData$Properties16 === void 0 ? void 0 : (_PTData$Properties16$ = _PTData$Properties16[0]) === null || _PTData$Properties16$ === void 0 ? void 0 : _PTData$Properties16$.numberOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr5 = additionalDetails.propertyAddress) === null || _additionalDetails$pr5 === void 0 ? void 0 : _additionalDetails$pr5.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$pr6 = additionalDetails.propertyLocationDetails) === null || _additionalDetails$pr6 === void 0 ? void 0 : _additionalDetails$pr6.atWhichFloorConsumerResides) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.numberOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || "";
47566
+ const rawTotalFloors = (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalNumberOfFloorInTheBuilding) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalNoOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.totalFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalNumberOfFloorInTheBuilding) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalNoOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.totalFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties17 = PTData.Properties) === null || _PTData$Properties17 === void 0 ? void 0 : (_PTData$Properties17$ = _PTData$Properties17[0]) === null || _PTData$Properties17$ === void 0 ? void 0 : _PTData$Properties17$.totalNumberOfFloorInTheBuilding) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties18 = PTData.Properties) === null || _PTData$Properties18 === void 0 ? void 0 : (_PTData$Properties18$ = _PTData$Properties18[0]) === null || _PTData$Properties18$ === void 0 ? void 0 : _PTData$Properties18$.totalNoOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties19 = PTData.Properties) === null || _PTData$Properties19 === void 0 ? void 0 : (_PTData$Properties19$ = _PTData$Properties19[0]) === null || _PTData$Properties19$ === void 0 ? void 0 : _PTData$Properties19$.totalFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties20 = PTData.Properties) === null || _PTData$Properties20 === void 0 ? void 0 : (_PTData$Properties20$ = _PTData$Properties20[0]) === null || _PTData$Properties20$ === void 0 ? void 0 : (_PTData$Properties20$2 = _PTData$Properties20$.address) === null || _PTData$Properties20$2 === void 0 ? void 0 : _PTData$Properties20$2.totalNoOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties21 = PTData.Properties) === null || _PTData$Properties21 === void 0 ? void 0 : (_PTData$Properties21$ = _PTData$Properties21[0]) === null || _PTData$Properties21$ === void 0 ? void 0 : (_PTData$Properties21$2 = _PTData$Properties21$.address) === null || _PTData$Properties21$2 === void 0 ? void 0 : _PTData$Properties21$2.totalFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNumberOfFloorInTheBuilding) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNoOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalFloors) || "";
45372
47567
  const getFloorDisplay = val => {
45373
47568
  if (val === undefined || val === null || val === "") return "";
45374
47569
  if (typeof val === "object") {
@@ -45390,7 +47585,7 @@ const WSApplicationDetails = () => {
45390
47585
  }) || false;
45391
47586
  const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection18 = data.WaterConnection) === null || _data$WaterConnection18 === void 0 ? void 0 : (_data$WaterConnection19 = _data$WaterConnection18[0]) === null || _data$WaterConnection19 === void 0 ? void 0 : _data$WaterConnection19.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect18 = data.SewerageConnections) === null || _data$SewerageConnect18 === void 0 ? void 0 : (_data$SewerageConnect19 = _data$SewerageConnect18[0]) === null || _data$SewerageConnect19 === void 0 ? void 0 : _data$SewerageConnect19.applicationStatus);
45392
47587
  const isDisconnectionExecuted = applicationStatus === "DISCONNECTION_EXECUTED";
45393
- const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
47588
+ const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && applicationStatus !== "PENDING_FOR_INFRA_PAYMENT_ZRO" && applicationStatus !== "PENDING_FOR_INFRA_PAYMENT_EE" && !applicationStatus.includes("PENDING_FOR_INFRA_PAYMENT") ? true : false;
45394
47589
  const {
45395
47590
  isLoading: isAppDetailsLoading,
45396
47591
  data: appDetailsData
@@ -45525,6 +47720,8 @@ const WSApplicationDetails = () => {
45525
47720
  break;
45526
47721
  case "PENDING_APPROVAL_FOR_CONNECTION":
45527
47722
  case "PENDING_FOR_PAYMENT":
47723
+ case "PENDING_FOR_INFRA_PAYMENT_ZRO":
47724
+ case "PENDING_FOR_INFRA_PAYMENT_EE":
45528
47725
  downloadOptions = downloadOptions.concat(applicationDownloadObject, wsEstimateDownloadObject);
45529
47726
  break;
45530
47727
  case "PENDING_FOR_CONNECTION_ACTIVATION":
@@ -45617,25 +47814,25 @@ const WSApplicationDetails = () => {
45617
47814
  }
45618
47815
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45619
47816
  label: t("WS_SERVICE_NAME_LABEL"),
45620
- text: t(`WS_APPLICATION_TYPE_${(data === null || data === void 0 ? void 0 : (_data$WaterConnection60 = data.WaterConnection) === null || _data$WaterConnection60 === void 0 ? void 0 : (_data$WaterConnection61 = _data$WaterConnection60[0]) === null || _data$WaterConnection61 === void 0 ? void 0 : _data$WaterConnection61.applicationType) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect55 = data.SewerageConnections) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0]) === null || _data$SewerageConnect56 === void 0 ? void 0 : _data$SewerageConnect56.applicationType)}`),
47817
+ text: getServiceTypeDisplay(applicationData, t),
45621
47818
  textStyle: {
45622
47819
  wordBreak: "break-word"
45623
47820
  }
45624
- }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection62 = data.WaterConnection) === null || _data$WaterConnection62 === void 0 ? void 0 : (_data$WaterConnection63 = _data$WaterConnection62[0]) === null || _data$WaterConnection63 === void 0 ? void 0 : (_data$WaterConnection64 = _data$WaterConnection63.applicationType) === null || _data$WaterConnection64 === void 0 ? void 0 : _data$WaterConnection64.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect57 = data.SewerageConnections) === null || _data$SewerageConnect57 === void 0 ? void 0 : (_data$SewerageConnect58 = _data$SewerageConnect57[0]) === null || _data$SewerageConnect58 === void 0 ? void 0 : (_data$SewerageConnect59 = _data$SewerageConnect58.applicationType) === null || _data$SewerageConnect59 === void 0 ? void 0 : _data$SewerageConnect59.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
47821
+ }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection60 = data.WaterConnection) === null || _data$WaterConnection60 === void 0 ? void 0 : (_data$WaterConnection61 = _data$WaterConnection60[0]) === null || _data$WaterConnection61 === void 0 ? void 0 : (_data$WaterConnection62 = _data$WaterConnection61.applicationType) === null || _data$WaterConnection62 === void 0 ? void 0 : _data$WaterConnection62.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect55 = data.SewerageConnections) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0]) === null || _data$SewerageConnect56 === void 0 ? void 0 : (_data$SewerageConnect57 = _data$SewerageConnect56.applicationType) === null || _data$SewerageConnect57 === void 0 ? void 0 : _data$SewerageConnect57.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45625
47822
  label: t("WS_DISCONNECTION_PROPOSED_DATE"),
45626
- text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection65 = data.WaterConnection) === null || _data$WaterConnection65 === void 0 ? void 0 : (_data$WaterConnection66 = _data$WaterConnection65[0]) === null || _data$WaterConnection66 === void 0 ? void 0 : _data$WaterConnection66.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect60 = data.SewerageConnections) === null || _data$SewerageConnect60 === void 0 ? void 0 : (_data$SewerageConnect61 = _data$SewerageConnect60[0]) === null || _data$SewerageConnect61 === void 0 ? void 0 : _data$SewerageConnect61.dateEffectiveFrom),
47823
+ text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection63 = data.WaterConnection) === null || _data$WaterConnection63 === void 0 ? void 0 : (_data$WaterConnection64 = _data$WaterConnection63[0]) === null || _data$WaterConnection64 === void 0 ? void 0 : _data$WaterConnection64.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect58 = data.SewerageConnections) === null || _data$SewerageConnect58 === void 0 ? void 0 : (_data$SewerageConnect59 = _data$SewerageConnect58[0]) === null || _data$SewerageConnect59 === void 0 ? void 0 : _data$SewerageConnect59.dateEffectiveFrom),
45627
47824
  textStyle: {
45628
47825
  wordBreak: "break-word"
45629
47826
  }
45630
- }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection67 = data.WaterConnection) === null || _data$WaterConnection67 === void 0 ? void 0 : (_data$WaterConnection68 = _data$WaterConnection67[0]) === null || _data$WaterConnection68 === void 0 ? void 0 : (_data$WaterConnection69 = _data$WaterConnection68.applicationType) === null || _data$WaterConnection69 === void 0 ? void 0 : _data$WaterConnection69.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect62 = data.SewerageConnections) === null || _data$SewerageConnect62 === void 0 ? void 0 : (_data$SewerageConnect63 = _data$SewerageConnect62[0]) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63.applicationType) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
47827
+ }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection65 = data.WaterConnection) === null || _data$WaterConnection65 === void 0 ? void 0 : (_data$WaterConnection66 = _data$WaterConnection65[0]) === null || _data$WaterConnection66 === void 0 ? void 0 : (_data$WaterConnection67 = _data$WaterConnection66.applicationType) === null || _data$WaterConnection67 === void 0 ? void 0 : _data$WaterConnection67.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect60 = data.SewerageConnections) === null || _data$SewerageConnect60 === void 0 ? void 0 : (_data$SewerageConnect61 = _data$SewerageConnect60[0]) === null || _data$SewerageConnect61 === void 0 ? void 0 : (_data$SewerageConnect62 = _data$SewerageConnect61.applicationType) === null || _data$SewerageConnect62 === void 0 ? void 0 : _data$SewerageConnect62.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45631
47828
  label: t("WS_DISCONNECTION_EXECUTED_DATE"),
45632
- text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection70 = data.WaterConnection) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70[0]) === null || _data$WaterConnection71 === void 0 ? void 0 : _data$WaterConnection71.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect65 = data.SewerageConnections) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65[0]) === null || _data$SewerageConnect66 === void 0 ? void 0 : _data$SewerageConnect66.disconnectionExecutionDate),
47829
+ text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection68 = data.WaterConnection) === null || _data$WaterConnection68 === void 0 ? void 0 : (_data$WaterConnection69 = _data$WaterConnection68[0]) === null || _data$WaterConnection69 === void 0 ? void 0 : _data$WaterConnection69.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect63 = data.SewerageConnections) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.disconnectionExecutionDate),
45633
47830
  textStyle: {
45634
47831
  wordBreak: "break-word"
45635
47832
  }
45636
- }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection72 = data.WaterConnection) === null || _data$WaterConnection72 === void 0 ? void 0 : (_data$WaterConnection73 = _data$WaterConnection72[0]) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73.applicationType) === null || _data$WaterConnection74 === void 0 ? void 0 : _data$WaterConnection74.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect67 = data.SewerageConnections) === null || _data$SewerageConnect67 === void 0 ? void 0 : (_data$SewerageConnect68 = _data$SewerageConnect67[0]) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68.applicationType) === null || _data$SewerageConnect69 === void 0 ? void 0 : _data$SewerageConnect69.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
47833
+ }), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection70 = data.WaterConnection) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70[0]) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71.applicationType) === null || _data$WaterConnection72 === void 0 ? void 0 : _data$WaterConnection72.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect65 = data.SewerageConnections) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65[0]) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66.applicationType) === null || _data$SewerageConnect67 === void 0 ? void 0 : _data$SewerageConnect67.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45637
47834
  label: t("WS_DISCONNECTION_REASON"),
45638
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection75 = data.WaterConnection) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection77 = data.WaterConnection) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : _data$WaterConnection78.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect70 = data.SewerageConnections) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70[0]) === null || _data$SewerageConnect71 === void 0 ? void 0 : _data$SewerageConnect71.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect72 = data.SewerageConnections) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72[0]) === null || _data$SewerageConnect73 === void 0 ? void 0 : _data$SewerageConnect73.disconnectionReason : t("NA"),
47835
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection73 = data.WaterConnection) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73[0]) === null || _data$WaterConnection74 === void 0 ? void 0 : _data$WaterConnection74.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection75 = data.WaterConnection) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect68 = data.SewerageConnections) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68[0]) === null || _data$SewerageConnect69 === void 0 ? void 0 : _data$SewerageConnect69.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect70 = data.SewerageConnections) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70[0]) === null || _data$SewerageConnect71 === void 0 ? void 0 : _data$SewerageConnect71.disconnectionReason : t("NA"),
45639
47836
  textStyle: {
45640
47837
  wordBreak: "break-word"
45641
47838
  }
@@ -45664,7 +47861,7 @@ const WSApplicationDetails = () => {
45664
47861
  }
45665
47862
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45666
47863
  label: t("WS_SERVICE_TYPE"),
45667
- text: `${t(checkForNA$2(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$se = connectionDetails.serviceType) !== null && _connectionDetails$se !== void 0 && _connectionDetails$se.code ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$se2 = connectionDetails.serviceType) === null || _connectionDetails$se2 === void 0 ? void 0 : _connectionDetails$se2.code}` : connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.serviceType ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.serviceType}` : applicationData !== null && applicationData !== void 0 && applicationData.applicationType ? `WS_APPLICATION_TYPE_${applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationType}` : "NA"))}`
47864
+ text: getServiceTypeDisplay(applicationData, t)
45668
47865
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45669
47866
  label: t("WS_APPLICANT_TYPE"),
45670
47867
  text: `${t(checkForNA$2((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap = connectionDetails.applicantType) === null || _connectionDetails$ap === void 0 ? void 0 : _connectionDetails$ap.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap2 = connectionDetails.applicantType) === null || _connectionDetails$ap2 === void 0 ? void 0 : _connectionDetails$ap2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.applicantType)))}`
@@ -45696,18 +47893,18 @@ const WSApplicationDetails = () => {
45696
47893
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45697
47894
  label: t("WS_NATURE_OF_WORK"),
45698
47895
  text: `${t(checkForNA$2(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))}`
45699
- }))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection79 = data.WaterConnection) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80.connectionHolders) === null || _data$WaterConnection81 === void 0 ? void 0 : _data$WaterConnection81.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect74 = data.SewerageConnections) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74[0]) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75.connectionHolders) === null || _data$SewerageConnect76 === void 0 ? void 0 : _data$SewerageConnect76.length) > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
47896
+ }))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection77 = data.WaterConnection) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78.connectionHolders) === null || _data$WaterConnection79 === void 0 ? void 0 : _data$WaterConnection79.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect72 = data.SewerageConnections) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72[0]) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73.connectionHolders) === null || _data$SewerageConnect74 === void 0 ? void 0 : _data$SewerageConnect74.length) > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
45700
47897
  styles: {
45701
47898
  fontSize: "28px"
45702
47899
  }
45703
47900
  }, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45704
47901
  label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
45705
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection82 = data.WaterConnection) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82[0]) === null || _data$WaterConnection83 === void 0 ? void 0 : (_data$WaterConnection84 = _data$WaterConnection83.connectionHolders) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84[0]) === null || _data$WaterConnection85 === void 0 ? void 0 : _data$WaterConnection85.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect77 = data.SewerageConnections) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77[0]) === null || _data$SewerageConnect78 === void 0 ? void 0 : (_data$SewerageConnect79 = _data$SewerageConnect78.connectionHolders) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79[0]) === null || _data$SewerageConnect80 === void 0 ? void 0 : _data$SewerageConnect80.mobileNumber),
47902
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection80 = data.WaterConnection) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80[0]) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81.connectionHolders) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82[0]) === null || _data$WaterConnection83 === void 0 ? void 0 : _data$WaterConnection83.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect75 = data.SewerageConnections) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75[0]) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76.connectionHolders) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77[0]) === null || _data$SewerageConnect78 === void 0 ? void 0 : _data$SewerageConnect78.mobileNumber),
45706
47903
  textStyle: {
45707
47904
  whiteSpace: "pre"
45708
47905
  },
45709
47906
  privacy: {
45710
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection86 = data.WaterConnection) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87.connectionHolders) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : _data$WaterConnection89.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect81 = data.SewerageConnections) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82.connectionHolders) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : _data$SewerageConnect84.uuid,
47907
+ uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection84 = data.WaterConnection) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84[0]) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85.connectionHolders) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : _data$WaterConnection87.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect79 = data.SewerageConnections) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79[0]) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80.connectionHolders) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : _data$SewerageConnect82.uuid,
45711
47908
  fieldName: "connectionHoldersMobileNumber",
45712
47909
  model: "WnSConnectionOwner",
45713
47910
  showValue: false,
@@ -45724,30 +47921,30 @@ const WSApplicationDetails = () => {
45724
47921
  }
45725
47922
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45726
47923
  label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
45727
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection90 = data.WaterConnection) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91.connectionHolders) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : _data$WaterConnection93.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect85 = data.SewerageConnections) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86.connectionHolders) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : _data$SewerageConnect88.name),
47924
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection88 = data.WaterConnection) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89.connectionHolders) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : _data$WaterConnection91.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect83 = data.SewerageConnections) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84.connectionHolders) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : _data$SewerageConnect86.name),
45728
47925
  textStyle: {
45729
47926
  whiteSpace: "pre"
45730
47927
  }
45731
47928
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45732
47929
  label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
45733
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.middleName),
47930
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection92 = data.WaterConnection) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93.connectionHolders) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : _data$WaterConnection95.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect87 = data.SewerageConnections) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88.connectionHolders) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : _data$SewerageConnect90.middleName),
45734
47931
  textStyle: {
45735
47932
  whiteSpace: "pre"
45736
47933
  }
45737
47934
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45738
47935
  label: t("WS_OWN_DETAIL_LAST_NAME"),
45739
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection98 = data.WaterConnection) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99.connectionHolders) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : _data$WaterConnection101.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect93 = data.SewerageConnections) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94.connectionHolders) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : _data$SewerageConnect96.lastName),
47936
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection96 = data.WaterConnection) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97.connectionHolders) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : _data$WaterConnection99.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect91 = data.SewerageConnections) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92.connectionHolders) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : _data$SewerageConnect94.lastName),
45740
47937
  textStyle: {
45741
47938
  whiteSpace: "pre"
45742
47939
  }
45743
47940
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45744
47941
  label: t("WS_OWN_DETAIL_GENDER_LABEL"),
45745
- text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection102 = data.WaterConnection) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103.connectionHolders) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : _data$WaterConnection105.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect97 = data.SewerageConnections) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98.connectionHolders) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : _data$SewerageConnect100.gender)),
47942
+ text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection100 = data.WaterConnection) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101.connectionHolders) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : _data$WaterConnection103.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect95 = data.SewerageConnections) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96.connectionHolders) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : _data$SewerageConnect98.gender)),
45746
47943
  textStyle: {
45747
47944
  whiteSpace: "pre"
45748
47945
  },
45749
47946
  privacy: {
45750
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection106 = data.WaterConnection) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107.connectionHolders) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect101 = data.SewerageConnections) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102.connectionHolders) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.uuid,
47947
+ uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection104 = data.WaterConnection) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105.connectionHolders) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : _data$WaterConnection107.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect99 = data.SewerageConnections) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100.connectionHolders) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : _data$SewerageConnect102.uuid,
45751
47948
  fieldName: "gender",
45752
47949
  model: "WnSConnectionOwner",
45753
47950
  showValue: false,
@@ -45764,12 +47961,12 @@ const WSApplicationDetails = () => {
45764
47961
  }
45765
47962
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45766
47963
  label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
45767
- text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.emailId) || "NA",
47964
+ text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection108 = data.WaterConnection) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109.connectionHolders) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : _data$WaterConnection111.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect103 = data.SewerageConnections) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104.connectionHolders) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : _data$SewerageConnect106.emailId) || "NA",
45768
47965
  textStyle: {
45769
47966
  whiteSpace: "pre"
45770
47967
  },
45771
47968
  privacy: {
45772
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.uuid,
47969
+ uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection112 = data.WaterConnection) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113.connectionHolders) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : _data$WaterConnection115.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect107 = data.SewerageConnections) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108.connectionHolders) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : _data$SewerageConnect110.uuid,
45773
47970
  fieldName: "connectionHoldersEmailId",
45774
47971
  model: "WnSConnectionOwner",
45775
47972
  showValue: false,
@@ -45822,7 +48019,7 @@ const WSApplicationDetails = () => {
45822
48019
  }
45823
48020
  }
45824
48021
  }), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
45825
- to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : _data$WaterConnection119.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : _data$SewerageConnect114.propertyId)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection120 = data.WaterConnection) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect115 = data.SewerageConnections) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.tenantId)}`
48022
+ to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection116 = data.WaterConnection) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect111 = data.SewerageConnections) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.propertyId)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : _data$WaterConnection119.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : _data$SewerageConnect114.tenantId)}`
45826
48023
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
45827
48024
  style: {
45828
48025
  textAlign: "left"
@@ -45908,32 +48105,41 @@ const WSApplicationDetails = () => {
45908
48105
  }
45909
48106
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45910
48107
  label: t("WS_CATEGORY_TYPE"),
45911
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`
48108
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.categoryType) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.categoryType) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.categoryType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType)))}`
45912
48109
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45913
48110
  label: t("WS_PROPERTY_CATEGORY"),
45914
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties29 = PTData.Properties) === null || _PTData$Properties29 === void 0 ? void 0 : (_PTData$Properties29$ = _PTData$Properties29[0]) === null || _PTData$Properties29$ === void 0 ? void 0 : _PTData$Properties29$.usageCategory)))}`
48111
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe7 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe7 === void 0 ? void 0 : _propertyAdditionalDe7.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties29 = PTData.Properties) === null || _PTData$Properties29 === void 0 ? void 0 : (_PTData$Properties29$ = _PTData$Properties29[0]) === null || _PTData$Properties29$ === void 0 ? void 0 : _PTData$Properties29$.usageCategory) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.name) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC3 = useDetails.propertyCategory) === null || _useDetails$propertyC3 === void 0 ? void 0 : _useDetails$propertyC3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop1 = applicationData.property) === null || _applicationData$prop1 === void 0 ? void 0 : _applicationData$prop1.usageCategory)))}`
45915
48112
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45916
48113
  label: t("WS_PROPERTY_TYPE"),
45917
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties30 = PTData.Properties) === null || _PTData$Properties30 === void 0 ? void 0 : (_PTData$Properties30$ = _PTData$Properties30[0]) === null || _PTData$Properties30$ === void 0 ? void 0 : _PTData$Properties30$.propertyType)))}`
48114
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe8 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe8 === void 0 ? void 0 : _propertyAdditionalDe8.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe9 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe9 === void 0 ? void 0 : _propertyAdditionalDe9.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe0 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe0 === void 0 ? void 0 : _propertyAdditionalDe0.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties30 = PTData.Properties) === null || _PTData$Properties30 === void 0 ? void 0 : (_PTData$Properties30$ = _PTData$Properties30[0]) === null || _PTData$Properties30$ === void 0 ? void 0 : _PTData$Properties30$.propertyType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.name) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT3 = useDetails.propertyType) === null || _useDetails$propertyT3 === void 0 ? void 0 : _useDetails$propertyT3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))}`
45918
48115
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45919
48116
  label: t("WS_NUMBER_OF_FLOORS"),
45920
- text: `${t(checkForNA$2(getFloorDisplay(rawFloorConsumerResides) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties31 = PTData.Properties) === null || _PTData$Properties31 === void 0 ? void 0 : (_PTData$Properties31$ = _PTData$Properties31[0]) === null || _PTData$Properties31$ === void 0 ? void 0 : _PTData$Properties31$.noOfFloors)))}`
48117
+ text: `${t(checkForNA$2(getFloorDisplay((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.atWhichFloorConsumerResides) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.atWhichFloorConsumerResides) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.numberOfFloors) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties31 = PTData.Properties) === null || _PTData$Properties31 === void 0 ? void 0 : (_PTData$Properties31$ = _PTData$Properties31[0]) === null || _PTData$Properties31$ === void 0 ? void 0 : _PTData$Properties31$.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties32 = PTData.Properties) === null || _PTData$Properties32 === void 0 ? void 0 : (_PTData$Properties32$ = _PTData$Properties32[0]) === null || _PTData$Properties32$ === void 0 ? void 0 : _PTData$Properties32$.numberOfFloors) || rawFloorConsumerResides || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfFloors))))}`
45921
48118
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45922
48119
  label: t("WS_PLOT_AREA"),
45923
- text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
48120
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.plotArea) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.plotArea) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.plotArea) !== "" ? propertyAdditionalDetails.plotArea : (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties33 = PTData.Properties) === null || _PTData$Properties33 === void 0 ? void 0 : (_PTData$Properties33$ = _PTData$Properties33[0]) === null || _PTData$Properties33$ === void 0 ? void 0 : _PTData$Properties33$.landArea) !== undefined && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties34 = PTData.Properties) === null || _PTData$Properties34 === void 0 ? void 0 : (_PTData$Properties34$ = _PTData$Properties34[0]) === null || _PTData$Properties34$ === void 0 ? void 0 : _PTData$Properties34$.landArea) !== null && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties35 = PTData.Properties) === null || _PTData$Properties35 === void 0 ? void 0 : (_PTData$Properties35$ = _PTData$Properties35[0]) === null || _PTData$Properties35$ === void 0 ? void 0 : _PTData$Properties35$.landArea) !== "" ? PTData.Properties[0].landArea : useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
45924
48121
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45925
48122
  label: t("WS_BUILT_UP_AREA"),
45926
- text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
48123
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.builtUpArea) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.builtUpArea) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.builtUpArea) !== "" ? propertyAdditionalDetails.builtUpArea : (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties36 = PTData.Properties) === null || _PTData$Properties36 === void 0 ? void 0 : (_PTData$Properties36$ = _PTData$Properties36[0]) === null || _PTData$Properties36$ === void 0 ? void 0 : _PTData$Properties36$.superBuiltUpArea) !== undefined && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties37 = PTData.Properties) === null || _PTData$Properties37 === void 0 ? void 0 : (_PTData$Properties37$ = _PTData$Properties37[0]) === null || _PTData$Properties37$ === void 0 ? void 0 : _PTData$Properties37$.superBuiltUpArea) !== null && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties38 = PTData.Properties) === null || _PTData$Properties38 === void 0 ? void 0 : (_PTData$Properties38$ = _PTData$Properties38[0]) === null || _PTData$Properties38$ === void 0 ? void 0 : _PTData$Properties38$.superBuiltUpArea) !== "" ? PTData.Properties[0].superBuiltUpArea : useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
45927
48124
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45928
48125
  label: t("WS_HEIGHT_OF_THE_BUILDING"),
45929
- text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
48126
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.heightOfTheBuilding) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.heightOfTheBuilding) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.heightOfTheBuilding) !== "" ? propertyAdditionalDetails.heightOfTheBuilding : (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties39 = PTData.Properties) === null || _PTData$Properties39 === void 0 ? void 0 : (_PTData$Properties39$ = _PTData$Properties39[0]) === null || _PTData$Properties39$ === void 0 ? void 0 : _PTData$Properties39$.heightOfTheBuilding) !== undefined && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties40 = PTData.Properties) === null || _PTData$Properties40 === void 0 ? void 0 : (_PTData$Properties40$ = _PTData$Properties40[0]) === null || _PTData$Properties40$ === void 0 ? void 0 : _PTData$Properties40$.heightOfTheBuilding) !== null && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties41 = PTData.Properties) === null || _PTData$Properties41 === void 0 ? void 0 : (_PTData$Properties41$ = _PTData$Properties41[0]) === null || _PTData$Properties41$ === void 0 ? void 0 : _PTData$Properties41$.heightOfTheBuilding) !== "" ? PTData.Properties[0].heightOfTheBuilding : useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
45930
48127
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45931
48128
  label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
45932
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
45933
- }), String((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC3 = useDetails.propertyCategory) === null || _useDetails$propertyC3 === void 0 ? void 0 : _useDetails$propertyC3.code) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC4 = useDetails.propertyCategory) === null || _useDetails$propertyC4 === void 0 ? void 0 : _useDetails$propertyC4.name) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi4 = applicationData.additionalDetails) === null || _applicationData$addi4 === void 0 ? void 0 : (_applicationData$addi5 = _applicationData$addi4.propertyCategory) === null || _applicationData$addi5 === void 0 ? void 0 : _applicationData$addi5.code) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi6 = applicationData.additionalDetails) === null || _applicationData$addi6 === void 0 ? void 0 : _applicationData$addi6.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop1 = applicationData.property) === null || _applicationData$prop1 === void 0 ? void 0 : (_applicationData$prop10 = _applicationData$prop1.propertyType) === null || _applicationData$prop10 === void 0 ? void 0 : _applicationData$prop10.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop11 = applicationData.property) === null || _applicationData$prop11 === void 0 ? void 0 : _applicationData$prop11.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48129
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe1 = propertyAdditionalDetails.yearOfConstruction) === null || _propertyAdditionalDe1 === void 0 ? void 0 : _propertyAdditionalDe1.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe10 = propertyAdditionalDetails.yearOfConstruction) === null || _propertyAdditionalDe10 === void 0 ? void 0 : _propertyAdditionalDe10.value) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe11 = propertyAdditionalDetails.yearOfConstruction) === null || _propertyAdditionalDe11 === void 0 ? void 0 : _propertyAdditionalDe11.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.yearOfConstruction) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe12 = propertyAdditionalDetails.SelectYearofConstruction) === null || _propertyAdditionalDe12 === void 0 ? void 0 : _propertyAdditionalDe12.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe13 = propertyAdditionalDetails.SelectYearofConstruction) === null || _propertyAdditionalDe13 === void 0 ? void 0 : _propertyAdditionalDe13.value) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe14 = propertyAdditionalDetails.SelectYearofConstruction) === null || _propertyAdditionalDe14 === void 0 ? void 0 : _propertyAdditionalDe14.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.SelectYearofConstruction) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe15 = propertyAdditionalDetails.constructionYear) === null || _propertyAdditionalDe15 === void 0 ? void 0 : _propertyAdditionalDe15.i18nKey) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe16 = propertyAdditionalDetails.constructionYear) === null || _propertyAdditionalDe16 === void 0 ? void 0 : _propertyAdditionalDe16.value) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe17 = propertyAdditionalDetails.constructionYear) === null || _propertyAdditionalDe17 === void 0 ? void 0 : _propertyAdditionalDe17.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.constructionYear) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.yearOfConstruction)))}`
48130
+ }), String((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe18 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe18 === void 0 ? void 0 : _propertyAdditionalDe18.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe19 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe19 === void 0 ? void 0 : _propertyAdditionalDe19.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties42 = PTData.Properties) === null || _PTData$Properties42 === void 0 ? void 0 : (_PTData$Properties42$ = _PTData$Properties42[0]) === null || _PTData$Properties42$ === void 0 ? void 0 : _PTData$Properties42$.usageCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties43 = PTData.Properties) === null || _PTData$Properties43 === void 0 ? void 0 : (_PTData$Properties43$ = _PTData$Properties43[0]) === null || _PTData$Properties43$ === void 0 ? void 0 : _PTData$Properties43$.propertyType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC4 = useDetails.propertyCategory) === null || _useDetails$propertyC4 === void 0 ? void 0 : _useDetails$propertyC4.code) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC5 = useDetails.propertyCategory) === null || _useDetails$propertyC5 === void 0 ? void 0 : _useDetails$propertyC5.name) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi4 = applicationData.additionalDetails) === null || _applicationData$addi4 === void 0 ? void 0 : (_applicationData$addi5 = _applicationData$addi4.propertyCategory) === null || _applicationData$addi5 === void 0 ? void 0 : _applicationData$addi5.code) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi6 = applicationData.additionalDetails) === null || _applicationData$addi6 === void 0 ? void 0 : _applicationData$addi6.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop10 = applicationData.property) === null || _applicationData$prop10 === void 0 ? void 0 : (_applicationData$prop11 = _applicationData$prop10.propertyType) === null || _applicationData$prop11 === void 0 ? void 0 : _applicationData$prop11.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop12 = applicationData.property) === null || _applicationData$prop12 === void 0 ? void 0 : _applicationData$prop12.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45934
48131
  label: t("WS_NUMBER_OF_DWELLING_UNITS"),
45935
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
45936
- }) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi7 = applicationData.additionalDetails) === null || _applicationData$addi7 === void 0 ? void 0 : _applicationData$addi7.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi8 = applicationData.additionalDetails) === null || _applicationData$addi8 === void 0 ? void 0 : _applicationData$addi8.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop12 = applicationData.property) === null || _applicationData$prop12 === void 0 ? void 0 : (_applicationData$prop13 = _applicationData$prop12.additionalDetails) === null || _applicationData$prop13 === void 0 ? void 0 : _applicationData$prop13.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi9 = applicationData.additionalDetails) === null || _applicationData$addi9 === void 0 ? void 0 : _applicationData$addi9.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi0 = applicationData.additionalDetails) === null || _applicationData$addi0 === void 0 ? void 0 : _applicationData$addi0.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop14 = applicationData.property) === null || _applicationData$prop14 === void 0 ? void 0 : (_applicationData$prop15 = _applicationData$prop14.additionalDetails) === null || _applicationData$prop15 === void 0 ? void 0 : _applicationData$prop15.questions) : []).map((q, idx) => {
48132
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfDwellingUnits) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfDwellingUnits) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfDwellingUnits) !== "" ? propertyAdditionalDetails.numberOfDwellingUnits : (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.NumberofDwellingUnits) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.NumberofDwellingUnits) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.NumberofDwellingUnits) !== "" ? propertyAdditionalDetails.NumberofDwellingUnits : (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfDwellingUnits) !== undefined && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfDwellingUnits) !== null && (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfDwellingUnits) !== "" ? propertyAdditionalDetails.noOfDwellingUnits : (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties44 = PTData.Properties) === null || _PTData$Properties44 === void 0 ? void 0 : (_PTData$Properties44$ = _PTData$Properties44[0]) === null || _PTData$Properties44$ === void 0 ? void 0 : _PTData$Properties44$.numberOfDwellingUnits) !== undefined && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties45 = PTData.Properties) === null || _PTData$Properties45 === void 0 ? void 0 : (_PTData$Properties45$ = _PTData$Properties45[0]) === null || _PTData$Properties45$ === void 0 ? void 0 : _PTData$Properties45$.numberOfDwellingUnits) !== null && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties46 = PTData.Properties) === null || _PTData$Properties46 === void 0 ? void 0 : (_PTData$Properties46$ = _PTData$Properties46[0]) === null || _PTData$Properties46$ === void 0 ? void 0 : _PTData$Properties46$.numberOfDwellingUnits) !== "" ? PTData.Properties[0].numberOfDwellingUnits : (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties47 = PTData.Properties) === null || _PTData$Properties47 === void 0 ? void 0 : (_PTData$Properties47$ = _PTData$Properties47[0]) === null || _PTData$Properties47$ === void 0 ? void 0 : _PTData$Properties47$.noOfDwellingUnits) !== undefined && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties48 = PTData.Properties) === null || _PTData$Properties48 === void 0 ? void 0 : (_PTData$Properties48$ = _PTData$Properties48[0]) === null || _PTData$Properties48$ === void 0 ? void 0 : _PTData$Properties48$.noOfDwellingUnits) !== null && (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties49 = PTData.Properties) === null || _PTData$Properties49 === void 0 ? void 0 : (_PTData$Properties49$ = _PTData$Properties49[0]) === null || _PTData$Properties49$ === void 0 ? void 0 : _PTData$Properties49$.noOfDwellingUnits) !== "" ? PTData.Properties[0].noOfDwellingUnits : (useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) !== undefined && (useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) !== null && (useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) !== "" ? useDetails.NumberofDwellingUnits : (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits) !== undefined && (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits) !== null && (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits) !== "" ? useDetails.noOfDwellingUnits : useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfDwellingUnits))}`
48133
+ }) : null, Boolean((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfRooms) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.NumberofRooms) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties50 = PTData.Properties) === null || _PTData$Properties50 === void 0 ? void 0 : (_PTData$Properties50$ = _PTData$Properties50[0]) === null || _PTData$Properties50$ === void 0 ? void 0 : _PTData$Properties50$.numberOfRooms) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofRooms) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfRooms)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48134
+ label: t("WS_NUMBER_OF_ROOMS"),
48135
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfRooms) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.NumberofRooms) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties51 = PTData.Properties) === null || _PTData$Properties51 === void 0 ? void 0 : (_PTData$Properties51$ = _PTData$Properties51[0]) === null || _PTData$Properties51$ === void 0 ? void 0 : _PTData$Properties51$.numberOfRooms) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofRooms) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfRooms)))}`
48136
+ }), Boolean((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfBeds) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.hospitalBeds) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties52 = PTData.Properties) === null || _PTData$Properties52 === void 0 ? void 0 : (_PTData$Properties52$ = _PTData$Properties52[0]) === null || _PTData$Properties52$ === void 0 ? void 0 : _PTData$Properties52$.numberOfBeds) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfBeds)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48137
+ label: t("WS_NUMBER_OF_BEDS"),
48138
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfBeds) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.hospitalBeds) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties53 = PTData.Properties) === null || _PTData$Properties53 === void 0 ? void 0 : (_PTData$Properties53$ = _PTData$Properties53[0]) === null || _PTData$Properties53$ === void 0 ? void 0 : _PTData$Properties53$.numberOfBeds) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfBeds)))}`
48139
+ }), Boolean((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfStudents) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties54 = PTData.Properties) === null || _PTData$Properties54 === void 0 ? void 0 : (_PTData$Properties54$ = _PTData$Properties54[0]) === null || _PTData$Properties54$ === void 0 ? void 0 : _PTData$Properties54$.numberOfStudents) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfStudents)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48140
+ label: t("WS_NUMBER_OF_STUDENTS"),
48141
+ text: `${t(checkForNA$2((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfStudents) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties55 = PTData.Properties) === null || _PTData$Properties55 === void 0 ? void 0 : (_PTData$Properties55$ = _PTData$Properties55[0]) === null || _PTData$Properties55$ === void 0 ? void 0 : _PTData$Properties55$.numberOfStudents) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfStudents)))}`
48142
+ }), (Array.isArray((propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.questions) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.questionAnswers) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyQuestions) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties56 = PTData.Properties) === null || _PTData$Properties56 === void 0 ? void 0 : (_PTData$Properties56$ = _PTData$Properties56[0]) === null || _PTData$Properties56$ === void 0 ? void 0 : _PTData$Properties56$.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi7 = applicationData.additionalDetails) === null || _applicationData$addi7 === void 0 ? void 0 : _applicationData$addi7.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi8 = applicationData.additionalDetails) === null || _applicationData$addi8 === void 0 ? void 0 : _applicationData$addi8.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop13 = applicationData.property) === null || _applicationData$prop13 === void 0 ? void 0 : (_applicationData$prop14 = _applicationData$prop13.additionalDetails) === null || _applicationData$prop14 === void 0 ? void 0 : _applicationData$prop14.questions)) ? (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.questions) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.questionAnswers) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyQuestions) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties57 = PTData.Properties) === null || _PTData$Properties57 === void 0 ? void 0 : (_PTData$Properties57$ = _PTData$Properties57[0]) === null || _PTData$Properties57$ === void 0 ? void 0 : _PTData$Properties57$.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi9 = applicationData.additionalDetails) === null || _applicationData$addi9 === void 0 ? void 0 : _applicationData$addi9.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi0 = applicationData.additionalDetails) === null || _applicationData$addi0 === void 0 ? void 0 : _applicationData$addi0.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop15 = applicationData.property) === null || _applicationData$prop15 === void 0 ? void 0 : (_applicationData$prop16 = _applicationData$prop15.additionalDetails) === null || _applicationData$prop16 === void 0 ? void 0 : _applicationData$prop16.questions) : []).map((q, idx) => {
45937
48143
  var _q$answer, _q$answer2, _q$answer3;
45938
48144
  const qText = typeof q === "object" ? (q === null || q === void 0 ? void 0 : q.question) || (q === null || q === void 0 ? void 0 : q.questionText) || (q === null || q === void 0 ? void 0 : q.title) || `Question ${idx + 1}` : `Question ${idx + 1}`;
45939
48145
  const aText = typeof q === "object" ? typeof (q === null || q === void 0 ? void 0 : q.answer) === "object" ? (q === null || q === void 0 ? void 0 : (_q$answer = q.answer) === null || _q$answer === void 0 ? void 0 : _q$answer.name) || (q === null || q === void 0 ? void 0 : (_q$answer2 = q.answer) === null || _q$answer2 === void 0 ? void 0 : _q$answer2.value) || (q === null || q === void 0 ? void 0 : (_q$answer3 = q.answer) === null || _q$answer3 === void 0 ? void 0 : _q$answer3.code) : q === null || q === void 0 ? void 0 : q.answer : q;
@@ -46073,7 +48279,7 @@ const WSApplicationDetails = () => {
46073
48279
  styles: {
46074
48280
  fontSize: "28px"
46075
48281
  }
46076
- }, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : _data$WaterConnection123.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection124 = data.WaterConnection) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.documents.reduce((acc, current) => {
48282
+ }, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection120 = data.WaterConnection) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : _data$WaterConnection123.documents.reduce((acc, current) => {
46077
48283
  const x = acc.find(item => item.documentType === current.documentType);
46078
48284
  if (!x) {
46079
48285
  return acc.concat([current]);
@@ -46087,11 +48293,11 @@ const WSApplicationDetails = () => {
46087
48293
  if (!isPhotoA && isPhotoB) return 1;
46088
48294
  return 0;
46089
48295
  }).map((doc, index, array) => {
46090
- var _doc$documentType, _data$WaterConnection126, _data$WaterConnection127;
48296
+ var _doc$documentType, _data$WaterConnection124, _data$WaterConnection125;
46091
48297
  return /*#__PURE__*/React__default.createElement("div", {
46092
48298
  key: `doc-${index}`
46093
48299
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
46094
- value: data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : _data$WaterConnection127.documents,
48300
+ value: data === null || data === void 0 ? void 0 : (_data$WaterConnection124 = data.WaterConnection) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.documents,
46095
48301
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
46096
48302
  index: index
46097
48303
  }), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
@@ -46103,7 +48309,7 @@ const WSApplicationDetails = () => {
46103
48309
  marginBottom: "20px"
46104
48310
  }
46105
48311
  }) : null)));
46106
- })), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : _data$SewerageConnect118.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect119 = data.SewerageConnections) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.documents.reduce((acc, current) => {
48312
+ })), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect115 = data.SewerageConnections) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : _data$SewerageConnect118.documents.reduce((acc, current) => {
46107
48313
  const x = acc.find(item => item.documentType === current.documentType);
46108
48314
  if (!x) {
46109
48315
  return acc.concat([current]);
@@ -46117,11 +48323,11 @@ const WSApplicationDetails = () => {
46117
48323
  if (!isPhotoA && isPhotoB) return 1;
46118
48324
  return 0;
46119
48325
  }).map((doc, index, array) => {
46120
- var _doc$documentType2, _data$SewerageConnect121, _data$SewerageConnect122;
48326
+ var _doc$documentType2, _data$SewerageConnect119, _data$SewerageConnect120;
46121
48327
  return /*#__PURE__*/React__default.createElement("div", {
46122
48328
  key: `doc-${index}`
46123
48329
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
46124
- value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : _data$SewerageConnect122.documents,
48330
+ value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect119 = data.SewerageConnections) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.documents,
46125
48331
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
46126
48332
  index: index
46127
48333
  }), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
@@ -46133,7 +48339,7 @@ const WSApplicationDetails = () => {
46133
48339
  marginBottom: "20px"
46134
48340
  }
46135
48341
  }) : null)));
46136
- }))), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection128 = data.WaterConnection) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : _data$WaterConnection131.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect123 = data.SewerageConnections) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : _data$SewerageConnect126.applicationStatus) === "CONNECTION_ACTIVATED") && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
48342
+ }))), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : _data$WaterConnection127.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection128 = data.WaterConnection) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : _data$SewerageConnect122.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect123 = data.SewerageConnections) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.applicationStatus) === "CONNECTION_ACTIVATED") && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
46137
48343
  styles: {
46138
48344
  fontSize: "28px",
46139
48345
  marginTop: "24px"
@@ -46145,74 +48351,76 @@ const WSApplicationDetails = () => {
46145
48351
  }
46146
48352
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46147
48353
  label: t("WS_SERV_DETAIL_CONN_TYPE"),
46148
- text: (_ref2 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection132 = data.WaterConnection) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect127 = data.SewerageConnections) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127[0])) !== null && _ref2 !== void 0 && _ref2.connectionType ? t((_ref3 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection133 = data.WaterConnection) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect128 = data.SewerageConnections) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128[0])) === null || _ref3 === void 0 ? void 0 : _ref3.connectionType) || "Metered" : "Metered"
48354
+ text: (_ref2 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125[0])) !== null && _ref2 !== void 0 && _ref2.connectionType ? t((_ref3 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection131 = data.WaterConnection) === null || _data$WaterConnection131 === void 0 ? void 0 : _data$WaterConnection131[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect126 = data.SewerageConnections) === null || _data$SewerageConnect126 === void 0 ? void 0 : _data$SewerageConnect126[0])) === null || _ref3 === void 0 ? void 0 : _ref3.connectionType) || "Metered" : "Metered"
46149
48355
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46150
48356
  label: t("WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY"),
46151
- text: (_ref4 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : _data$WaterConnection134[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : _data$SewerageConnect129[0])) !== null && _ref4 !== void 0 && (_ref4$additionalDetai = _ref4.additionalDetails) !== null && _ref4$additionalDetai !== void 0 && _ref4$additionalDetai.detailsProvidedBy ? ((_ref5 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130[0])) === null || _ref5 === void 0 ? void 0 : (_ref5$additionalDetai = _ref5.additionalDetails) === null || _ref5$additionalDetai === void 0 ? void 0 : (_ref5$additionalDetai2 = _ref5$additionalDetai.detailsProvidedBy) === null || _ref5$additionalDetai2 === void 0 ? void 0 : _ref5$additionalDetai2.toUpperCase()) === "ULB" ? "DJB" : (_ref6 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131[0])) === null || _ref6 === void 0 ? void 0 : (_ref6$additionalDetai = _ref6.additionalDetails) === null || _ref6$additionalDetai === void 0 ? void 0 : _ref6$additionalDetai.detailsProvidedBy : t("NA")
46152
- }), (((_ref7 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132[0])) === null || _ref7 === void 0 ? void 0 : (_ref7$additionalDetai = _ref7.additionalDetails) === null || _ref7$additionalDetai === void 0 ? void 0 : (_ref7$additionalDetai2 = _ref7$additionalDetai.detailsProvidedBy) === null || _ref7$additionalDetai2 === void 0 ? void 0 : _ref7$additionalDetai2.toUpperCase()) === "ULB" || ((_ref8 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133[0])) === null || _ref8 === void 0 ? void 0 : (_ref8$additionalDetai = _ref8.additionalDetails) === null || _ref8$additionalDetai === void 0 ? void 0 : (_ref8$additionalDetai2 = _ref8$additionalDetai.detailsProvidedBy) === null || _ref8$additionalDetai2 === void 0 ? void 0 : _ref8$additionalDetai2.toUpperCase()) === "DJB") && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48357
+ text: (_ref4 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection132 = data.WaterConnection) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect127 = data.SewerageConnections) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127[0])) !== null && _ref4 !== void 0 && (_ref4$additionalDetai = _ref4.additionalDetails) !== null && _ref4$additionalDetai !== void 0 && _ref4$additionalDetai.detailsProvidedBy ? ((_ref5 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection133 = data.WaterConnection) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect128 = data.SewerageConnections) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128[0])) === null || _ref5 === void 0 ? void 0 : (_ref5$additionalDetai = _ref5.additionalDetails) === null || _ref5$additionalDetai === void 0 ? void 0 : (_ref5$additionalDetai2 = _ref5$additionalDetai.detailsProvidedBy) === null || _ref5$additionalDetai2 === void 0 ? void 0 : _ref5$additionalDetai2.toUpperCase()) === "ULB" ? "DJB" : (_ref6 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : _data$WaterConnection134[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : _data$SewerageConnect129[0])) === null || _ref6 === void 0 ? void 0 : (_ref6$additionalDetai = _ref6.additionalDetails) === null || _ref6$additionalDetai === void 0 ? void 0 : _ref6$additionalDetai.detailsProvidedBy : t("NA")
48358
+ }), (((_ref7 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130[0])) === null || _ref7 === void 0 ? void 0 : (_ref7$additionalDetai = _ref7.additionalDetails) === null || _ref7$additionalDetai === void 0 ? void 0 : (_ref7$additionalDetai2 = _ref7$additionalDetai.detailsProvidedBy) === null || _ref7$additionalDetai2 === void 0 ? void 0 : _ref7$additionalDetai2.toUpperCase()) === "ULB" || ((_ref8 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131[0])) === null || _ref8 === void 0 ? void 0 : (_ref8$additionalDetai = _ref8.additionalDetails) === null || _ref8$additionalDetai === void 0 ? void 0 : (_ref8$additionalDetai2 = _ref8$additionalDetai.detailsProvidedBy) === null || _ref8$additionalDetai2 === void 0 ? void 0 : _ref8$additionalDetai2.toUpperCase()) === "DJB") && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46153
48359
  label: t("WS_ADDN_DETAILS_PLUMBER_LICENCE_NO_LABEL"),
46154
- text: ((_ref9 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134[0])) === null || _ref9 === void 0 ? void 0 : (_ref9$plumberInfo = _ref9.plumberInfo) === null || _ref9$plumberInfo === void 0 ? void 0 : (_ref9$plumberInfo$ = _ref9$plumberInfo[0]) === null || _ref9$plumberInfo$ === void 0 ? void 0 : _ref9$plumberInfo$.licenseNo) || t("NA")
48360
+ text: ((_ref9 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132[0])) === null || _ref9 === void 0 ? void 0 : (_ref9$plumberInfo = _ref9.plumberInfo) === null || _ref9$plumberInfo === void 0 ? void 0 : (_ref9$plumberInfo$ = _ref9$plumberInfo[0]) === null || _ref9$plumberInfo$ === void 0 ? void 0 : _ref9$plumberInfo$.licenseNo) || t("NA")
46155
48361
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46156
48362
  label: t("WS_ADDN_DETAILS_PLUMBER_NAME_LABEL"),
46157
- text: ((_ref0 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135[0])) === null || _ref0 === void 0 ? void 0 : (_ref0$plumberInfo = _ref0.plumberInfo) === null || _ref0$plumberInfo === void 0 ? void 0 : (_ref0$plumberInfo$ = _ref0$plumberInfo[0]) === null || _ref0$plumberInfo$ === void 0 ? void 0 : _ref0$plumberInfo$.name) || t("NA")
48363
+ text: ((_ref0 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133[0])) === null || _ref0 === void 0 ? void 0 : (_ref0$plumberInfo = _ref0.plumberInfo) === null || _ref0$plumberInfo === void 0 ? void 0 : (_ref0$plumberInfo$ = _ref0$plumberInfo[0]) === null || _ref0$plumberInfo$ === void 0 ? void 0 : _ref0$plumberInfo$.name) || t("NA")
46158
48364
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46159
48365
  label: t("WS_PLUMBER_MOBILE_NO_LABEL"),
46160
- text: ((_ref1 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136[0])) === null || _ref1 === void 0 ? void 0 : (_ref1$plumberInfo = _ref1.plumberInfo) === null || _ref1$plumberInfo === void 0 ? void 0 : (_ref1$plumberInfo$ = _ref1$plumberInfo[0]) === null || _ref1$plumberInfo$ === void 0 ? void 0 : _ref1$plumberInfo$.mobileNumber) || t("NA")
48366
+ text: ((_ref1 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134[0])) === null || _ref1 === void 0 ? void 0 : (_ref1$plumberInfo = _ref1.plumberInfo) === null || _ref1$plumberInfo === void 0 ? void 0 : (_ref1$plumberInfo$ = _ref1$plumberInfo[0]) === null || _ref1$plumberInfo$ === void 0 ? void 0 : _ref1$plumberInfo$.mobileNumber) || t("NA")
46161
48367
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46162
48368
  label: t("WS_SERV_DETAIL_METER_ID"),
46163
- text: ((_ref10 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137[0])) === null || _ref10 === void 0 ? void 0 : _ref10.meterId) || t("NA")
48369
+ text: ((_ref10 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135[0])) === null || _ref10 === void 0 ? void 0 : _ref10.meterId) || t("NA")
46164
48370
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46165
48371
  label: t("WS_INSTALLATION_DATE_LABEL"),
46166
- text: (_ref11 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138[0])) !== null && _ref11 !== void 0 && _ref11.meterInstallationDate ? convertEpochToDate((_ref12 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139[0])) === null || _ref12 === void 0 ? void 0 : _ref12.meterInstallationDate) : t("NA")
48372
+ text: (_ref11 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136[0])) !== null && _ref11 !== void 0 && _ref11.meterInstallationDate ? convertEpochToDate((_ref12 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137[0])) === null || _ref12 === void 0 ? void 0 : _ref12.meterInstallationDate) : t("NA")
46167
48373
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46168
48374
  label: t("WS_INITIAL_METER_READING_LABEL"),
46169
- text: ((_ref13 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140[0])) === null || _ref13 === void 0 ? void 0 : (_ref13$additionalDeta = _ref13.additionalDetails) === null || _ref13$additionalDeta === void 0 ? void 0 : _ref13$additionalDeta.initialMeterReading) !== undefined && ((_ref14 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141[0])) === null || _ref14 === void 0 ? void 0 : (_ref14$additionalDeta = _ref14.additionalDetails) === null || _ref14$additionalDeta === void 0 ? void 0 : _ref14$additionalDeta.initialMeterReading) !== null && ((_ref15 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142[0])) === null || _ref15 === void 0 ? void 0 : (_ref15$additionalDeta = _ref15.additionalDetails) === null || _ref15$additionalDeta === void 0 ? void 0 : _ref15$additionalDeta.initialMeterReading) !== "" ? String((_ref16 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : _data$WaterConnection148[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : _data$SewerageConnect143[0])) === null || _ref16 === void 0 ? void 0 : (_ref16$additionalDeta = _ref16.additionalDetails) === null || _ref16$additionalDeta === void 0 ? void 0 : _ref16$additionalDeta.initialMeterReading) : "0"
48375
+ text: ((_ref13 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138[0])) === null || _ref13 === void 0 ? void 0 : (_ref13$additionalDeta = _ref13.additionalDetails) === null || _ref13$additionalDeta === void 0 ? void 0 : _ref13$additionalDeta.initialMeterReading) !== undefined && ((_ref14 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139[0])) === null || _ref14 === void 0 ? void 0 : (_ref14$additionalDeta = _ref14.additionalDetails) === null || _ref14$additionalDeta === void 0 ? void 0 : _ref14$additionalDeta.initialMeterReading) !== null && ((_ref15 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140[0])) === null || _ref15 === void 0 ? void 0 : (_ref15$additionalDeta = _ref15.additionalDetails) === null || _ref15$additionalDeta === void 0 ? void 0 : _ref15$additionalDeta.initialMeterReading) !== "" ? String((_ref16 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141[0])) === null || _ref16 === void 0 ? void 0 : (_ref16$additionalDeta = _ref16.additionalDetails) === null || _ref16$additionalDeta === void 0 ? void 0 : _ref16$additionalDeta.initialMeterReading) : "0"
46170
48376
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46171
48377
  label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
46172
- text: (_ref17 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection149 = data.WaterConnection) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect144 = data.SewerageConnections) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144[0])) !== null && _ref17 !== void 0 && _ref17.connectionExecutionDate ? convertEpochToDate((_ref18 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : _data$WaterConnection150[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : _data$SewerageConnect145[0])) === null || _ref18 === void 0 ? void 0 : _ref18.connectionExecutionDate) : t("NA")
46173
- }), (((_ref19 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection151 = data.WaterConnection) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect146 = data.SewerageConnections) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146[0])) === null || _ref19 === void 0 ? void 0 : _ref19.comment) || ((_ref20 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : _data$WaterConnection152[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : _data$SewerageConnect147[0])) === null || _ref20 === void 0 ? void 0 : _ref20.comments)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48378
+ text: (_ref17 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142[0])) !== null && _ref17 !== void 0 && _ref17.connectionExecutionDate ? convertEpochToDate((_ref18 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : _data$WaterConnection148[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : _data$SewerageConnect143[0])) === null || _ref18 === void 0 ? void 0 : _ref18.connectionExecutionDate) : t("NA")
48379
+ }), (((_ref19 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection149 = data.WaterConnection) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect144 = data.SewerageConnections) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144[0])) === null || _ref19 === void 0 ? void 0 : _ref19.comment) || ((_ref20 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : _data$WaterConnection150[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : _data$SewerageConnect145[0])) === null || _ref20 === void 0 ? void 0 : _ref20.comments)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46174
48380
  label: t("WS_COMMON_COMMENTS"),
46175
- text: ((_ref21 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection153 = data.WaterConnection) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect148 = data.SewerageConnections) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148[0])) === null || _ref21 === void 0 ? void 0 : _ref21.comment) || ((_ref22 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : _data$WaterConnection154[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : _data$SewerageConnect149[0])) === null || _ref22 === void 0 ? void 0 : _ref22.comments) || t("NA")
46176
- }))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection159 = data.WaterConnection) === null || _data$WaterConnection159 === void 0 ? void 0 : (_data$WaterConnection160 = _data$WaterConnection159[0]) === null || _data$WaterConnection160 === void 0 ? void 0 : _data$WaterConnection160.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect150 = data.SewerageConnections) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150[0]) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect152 = data.SewerageConnections) === null || _data$SewerageConnect152 === void 0 ? void 0 : (_data$SewerageConnect153 = _data$SewerageConnect152[0]) === null || _data$SewerageConnect153 === void 0 ? void 0 : _data$SewerageConnect153.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect154 = data.SewerageConnections) === null || _data$SewerageConnect154 === void 0 ? void 0 : (_data$SewerageConnect155 = _data$SewerageConnect154[0]) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
48381
+ text: ((_ref21 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection151 = data.WaterConnection) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect146 = data.SewerageConnections) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146[0])) === null || _ref21 === void 0 ? void 0 : _ref21.comment) || ((_ref22 = (data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : _data$WaterConnection152[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : _data$SewerageConnect147[0])) === null || _ref22 === void 0 ? void 0 : _ref22.comments) || t("NA")
48382
+ }))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection153 = data.WaterConnection) === null || _data$WaterConnection153 === void 0 ? void 0 : (_data$WaterConnection154 = _data$WaterConnection153[0]) === null || _data$WaterConnection154 === void 0 ? void 0 : _data$WaterConnection154.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection159 = data.WaterConnection) === null || _data$WaterConnection159 === void 0 ? void 0 : (_data$WaterConnection160 = _data$WaterConnection159[0]) === null || _data$WaterConnection160 === void 0 ? void 0 : _data$WaterConnection160.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_ZRO" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_EE" || data !== null && data !== void 0 && (_data$WaterConnection163 = data.WaterConnection) !== null && _data$WaterConnection163 !== void 0 && (_data$WaterConnection164 = _data$WaterConnection163[0]) !== null && _data$WaterConnection164 !== void 0 && (_data$WaterConnection165 = _data$WaterConnection164.applicationStatus) !== null && _data$WaterConnection165 !== void 0 && (_data$WaterConnection166 = _data$WaterConnection165.includes) !== null && _data$WaterConnection166 !== void 0 && _data$WaterConnection166.call(_data$WaterConnection165, "PENDING_FOR_INFRA_PAYMENT") || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect148 = data.SewerageConnections) === null || _data$SewerageConnect148 === void 0 ? void 0 : (_data$SewerageConnect149 = _data$SewerageConnect148[0]) === null || _data$SewerageConnect149 === void 0 ? void 0 : _data$SewerageConnect149.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect150 = data.SewerageConnections) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150[0]) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect152 = data.SewerageConnections) === null || _data$SewerageConnect152 === void 0 ? void 0 : (_data$SewerageConnect153 = _data$SewerageConnect152[0]) === null || _data$SewerageConnect153 === void 0 ? void 0 : _data$SewerageConnect153.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect154 = data.SewerageConnections) === null || _data$SewerageConnect154 === void 0 ? void 0 : (_data$SewerageConnect155 = _data$SewerageConnect154[0]) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_ZRO" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.applicationStatus) === "PENDING_FOR_INFRA_PAYMENT_EE" || data !== null && data !== void 0 && (_data$SewerageConnect158 = data.SewerageConnections) !== null && _data$SewerageConnect158 !== void 0 && (_data$SewerageConnect159 = _data$SewerageConnect158[0]) !== null && _data$SewerageConnect159 !== void 0 && (_data$SewerageConnect160 = _data$SewerageConnect159.applicationStatus) !== null && _data$SewerageConnect160 !== void 0 && (_data$SewerageConnect161 = _data$SewerageConnect160.includes) !== null && _data$SewerageConnect161 !== void 0 && _data$SewerageConnect161.call(_data$SewerageConnect160, "PENDING_FOR_INFRA_PAYMENT") ? /*#__PURE__*/React__default.createElement("div", {
46177
48383
  style: {
46178
48384
  marginTop: "10px"
46179
48385
  }
46180
48386
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46181
48387
  label: t("MAKE_PAYMENT"),
46182
48388
  onSubmit: () => {
46183
- var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _PTData$Properties32, _PTData$Properties32$, _PTData$Properties32$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
48389
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection167, _data$WaterConnection168, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _PTData$Properties58, _PTData$Properties58$, _PTData$Properties58$2;
48390
+ const bService = (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) || (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SW.ONE_TIME_FEE" : "WS.ONE_TIME_FEE");
48391
+ const cCode = (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode) || applicationNobyData;
46184
48392
  history.push({
46185
- pathname: `/digit-ui/citizen/payment/collect/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
46186
- search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : (_data$WaterConnection165 = _data$WaterConnection164.connectionHolders) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : (_data$SewerageConnect160 = _data$SewerageConnect159.connectionHolders) === null || _data$SewerageConnect160 === void 0 ? void 0 : _data$SewerageConnect160.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties32 = PTData.Properties) === null || _PTData$Properties32 === void 0 ? void 0 : (_PTData$Properties32$ = _PTData$Properties32[0]) === null || _PTData$Properties32$ === void 0 ? void 0 : (_PTData$Properties32$2 = _PTData$Properties32$.owners) === null || _PTData$Properties32$2 === void 0 ? void 0 : _PTData$Properties32$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
48393
+ pathname: `/digit-ui/citizen/payment/collect/${bService}/${stringReplaceAll(cCode, "/", "+")}`,
48394
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection167 = data.WaterConnection) === null || _data$WaterConnection167 === void 0 ? void 0 : (_data$WaterConnection168 = _data$WaterConnection167[0]) === null || _data$WaterConnection168 === void 0 ? void 0 : _data$WaterConnection168.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170.connectionHolders) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : (_data$SewerageConnect166 = _data$SewerageConnect165.connectionHolders) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties58 = PTData.Properties) === null || _PTData$Properties58 === void 0 ? void 0 : (_PTData$Properties58$ = _PTData$Properties58[0]) === null || _PTData$Properties58$ === void 0 ? void 0 : (_PTData$Properties58$2 = _PTData$Properties58$.owners) === null || _PTData$Properties58$2 === void 0 ? void 0 : _PTData$Properties58$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${cCode}`,
46187
48395
  state: {
46188
48396
  fromApplicationDetails: true
46189
48397
  }
46190
48398
  });
46191
48399
  }
46192
- })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection166 = data.WaterConnection) !== null && _data$WaterConnection166 !== void 0 && (_data$WaterConnection167 = _data$WaterConnection166[0]) !== null && _data$WaterConnection167 !== void 0 && (_data$WaterConnection168 = _data$WaterConnection167.applicationType) !== null && _data$WaterConnection168 !== void 0 && _data$WaterConnection168.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection169 = data.WaterConnection) !== null && _data$WaterConnection169 !== void 0 && (_data$WaterConnection170 = _data$WaterConnection169[0]) !== null && _data$WaterConnection170 !== void 0 && _data$WaterConnection170.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect161 = data.SewerageConnections) !== null && _data$SewerageConnect161 !== void 0 && (_data$SewerageConnect162 = _data$SewerageConnect161[0]) !== null && _data$SewerageConnect162 !== void 0 && (_data$SewerageConnect163 = _data$SewerageConnect162.applicationType) !== null && _data$SewerageConnect163 !== void 0 && _data$SewerageConnect163.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect164 = data.SewerageConnections) !== null && _data$SewerageConnect164 !== void 0 && (_data$SewerageConnect165 = _data$SewerageConnect164[0]) !== null && _data$SewerageConnect165 !== void 0 && _data$SewerageConnect165.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
48400
+ })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection172 = data.WaterConnection) !== null && _data$WaterConnection172 !== void 0 && (_data$WaterConnection173 = _data$WaterConnection172[0]) !== null && _data$WaterConnection173 !== void 0 && (_data$WaterConnection174 = _data$WaterConnection173.applicationType) !== null && _data$WaterConnection174 !== void 0 && _data$WaterConnection174.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection175 = data.WaterConnection) !== null && _data$WaterConnection175 !== void 0 && (_data$WaterConnection176 = _data$WaterConnection175[0]) !== null && _data$WaterConnection176 !== void 0 && _data$WaterConnection176.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect167 = data.SewerageConnections) !== null && _data$SewerageConnect167 !== void 0 && (_data$SewerageConnect168 = _data$SewerageConnect167[0]) !== null && _data$SewerageConnect168 !== void 0 && (_data$SewerageConnect169 = _data$SewerageConnect168.applicationType) !== null && _data$SewerageConnect169 !== void 0 && _data$SewerageConnect169.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect170 = data.SewerageConnections) !== null && _data$SewerageConnect170 !== void 0 && (_data$SewerageConnect171 = _data$SewerageConnect170[0]) !== null && _data$SewerageConnect171 !== void 0 && _data$SewerageConnect171.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
46193
48401
  to: {
46194
- pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : (_data$WaterConnection172 = _data$WaterConnection171[0]) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : (_data$SewerageConnect167 = _data$SewerageConnect166[0]) === null || _data$SewerageConnect167 === void 0 ? void 0 : _data$SewerageConnect167.tenantId)}`,
46195
- search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : (_data$WaterConnection174 = _data$WaterConnection173[0]) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : (_data$SewerageConnect169 = _data$SewerageConnect168[0]) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169.applicationNo)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : (_data$WaterConnection176 = _data$WaterConnection175[0]) === null || _data$WaterConnection176 === void 0 ? void 0 : _data$WaterConnection176.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.tenantId)}&service=${data !== null && data !== void 0 && (_data$WaterConnection177 = data.WaterConnection) !== null && _data$WaterConnection177 !== void 0 && _data$WaterConnection177[0] ? "WATER" : "SEWERAGE"}&propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : (_data$WaterConnection179 = _data$WaterConnection178[0]) === null || _data$WaterConnection179 === void 0 ? void 0 : _data$WaterConnection179.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : (_data$SewerageConnect173 = _data$SewerageConnect172[0]) === null || _data$SewerageConnect173 === void 0 ? void 0 : _data$SewerageConnect173.propertyId)}` : "",
48402
+ pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection177 = data.WaterConnection) === null || _data$WaterConnection177 === void 0 ? void 0 : (_data$WaterConnection178 = _data$WaterConnection177[0]) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : (_data$SewerageConnect173 = _data$SewerageConnect172[0]) === null || _data$SewerageConnect173 === void 0 ? void 0 : _data$SewerageConnect173.tenantId)}`,
48403
+ search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection179 = data.WaterConnection) === null || _data$WaterConnection179 === void 0 ? void 0 : (_data$WaterConnection180 = _data$WaterConnection179[0]) === null || _data$WaterConnection180 === void 0 ? void 0 : _data$WaterConnection180.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect174 = data.SewerageConnections) === null || _data$SewerageConnect174 === void 0 ? void 0 : (_data$SewerageConnect175 = _data$SewerageConnect174[0]) === null || _data$SewerageConnect175 === void 0 ? void 0 : _data$SewerageConnect175.applicationNo)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : (_data$WaterConnection182 = _data$WaterConnection181[0]) === null || _data$WaterConnection182 === void 0 ? void 0 : _data$WaterConnection182.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect176 = data.SewerageConnections) === null || _data$SewerageConnect176 === void 0 ? void 0 : (_data$SewerageConnect177 = _data$SewerageConnect176[0]) === null || _data$SewerageConnect177 === void 0 ? void 0 : _data$SewerageConnect177.tenantId)}&service=${data !== null && data !== void 0 && (_data$WaterConnection183 = data.WaterConnection) !== null && _data$WaterConnection183 !== void 0 && _data$WaterConnection183[0] ? "WATER" : "SEWERAGE"}&propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection184 = data.WaterConnection) === null || _data$WaterConnection184 === void 0 ? void 0 : (_data$WaterConnection185 = _data$WaterConnection184[0]) === null || _data$WaterConnection185 === void 0 ? void 0 : _data$WaterConnection185.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect178 = data.SewerageConnections) === null || _data$SewerageConnect178 === void 0 ? void 0 : (_data$SewerageConnect179 = _data$SewerageConnect178[0]) === null || _data$SewerageConnect179 === void 0 ? void 0 : _data$SewerageConnect179.propertyId)}` : "",
46196
48404
  state: {
46197
- id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection180 = data.WaterConnection) === null || _data$WaterConnection180 === void 0 ? void 0 : (_data$WaterConnection181 = _data$WaterConnection180[0]) === null || _data$WaterConnection181 === void 0 ? void 0 : _data$WaterConnection181.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect174 = data.SewerageConnections) === null || _data$SewerageConnect174 === void 0 ? void 0 : (_data$SewerageConnect175 = _data$SewerageConnect174[0]) === null || _data$SewerageConnect175 === void 0 ? void 0 : _data$SewerageConnect175.applicationNo)}`
48405
+ id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection186 = data.WaterConnection) === null || _data$WaterConnection186 === void 0 ? void 0 : (_data$WaterConnection187 = _data$WaterConnection186[0]) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect180 = data.SewerageConnections) === null || _data$SewerageConnect180 === void 0 ? void 0 : (_data$SewerageConnect181 = _data$SewerageConnect180[0]) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181.applicationNo)}`
46198
48406
  }
46199
48407
  }
46200
48408
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46201
48409
  label: t("COMMON_EDIT")
46202
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection182 = data.WaterConnection) !== null && _data$WaterConnection182 !== void 0 && (_data$WaterConnection183 = _data$WaterConnection182[0]) !== null && _data$WaterConnection183 !== void 0 && (_data$WaterConnection184 = _data$WaterConnection183.applicationType) !== null && _data$WaterConnection184 !== void 0 && _data$WaterConnection184.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection185 = data.WaterConnection) !== null && _data$WaterConnection185 !== void 0 && (_data$WaterConnection186 = _data$WaterConnection185[0]) !== null && _data$WaterConnection186 !== void 0 && _data$WaterConnection186.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect176 = data.SewerageConnections) !== null && _data$SewerageConnect176 !== void 0 && (_data$SewerageConnect177 = _data$SewerageConnect176[0]) !== null && _data$SewerageConnect177 !== void 0 && (_data$SewerageConnect178 = _data$SewerageConnect177.applicationType) !== null && _data$SewerageConnect178 !== void 0 && _data$SewerageConnect178.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect179 = data.SewerageConnections) !== null && _data$SewerageConnect179 !== void 0 && (_data$SewerageConnect180 = _data$SewerageConnect179[0]) !== null && _data$SewerageConnect180 !== void 0 && _data$SewerageConnect180.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
48410
+ })) : null, data !== null && data !== void 0 && (_data$WaterConnection188 = data.WaterConnection) !== null && _data$WaterConnection188 !== void 0 && (_data$WaterConnection189 = _data$WaterConnection188[0]) !== null && _data$WaterConnection189 !== void 0 && (_data$WaterConnection190 = _data$WaterConnection189.applicationType) !== null && _data$WaterConnection190 !== void 0 && _data$WaterConnection190.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection191 = data.WaterConnection) !== null && _data$WaterConnection191 !== void 0 && (_data$WaterConnection192 = _data$WaterConnection191[0]) !== null && _data$WaterConnection192 !== void 0 && _data$WaterConnection192.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect182 = data.SewerageConnections) !== null && _data$SewerageConnect182 !== void 0 && (_data$SewerageConnect183 = _data$SewerageConnect182[0]) !== null && _data$SewerageConnect183 !== void 0 && (_data$SewerageConnect184 = _data$SewerageConnect183.applicationType) !== null && _data$SewerageConnect184 !== void 0 && _data$SewerageConnect184.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect185 = data.SewerageConnections) !== null && _data$SewerageConnect185 !== void 0 && (_data$SewerageConnect186 = _data$SewerageConnect185[0]) !== null && _data$SewerageConnect186 !== void 0 && _data$SewerageConnect186.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
46203
48411
  to: {
46204
48412
  pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
46205
48413
  state: {
46206
- id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection187 = data.WaterConnection) === null || _data$WaterConnection187 === void 0 ? void 0 : (_data$WaterConnection188 = _data$WaterConnection187[0]) === null || _data$WaterConnection188 === void 0 ? void 0 : _data$WaterConnection188.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : (_data$SewerageConnect182 = _data$SewerageConnect181[0]) === null || _data$SewerageConnect182 === void 0 ? void 0 : _data$SewerageConnect182.applicationNo)}`
48414
+ id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection193 = data.WaterConnection) === null || _data$WaterConnection193 === void 0 ? void 0 : (_data$WaterConnection194 = _data$WaterConnection193[0]) === null || _data$WaterConnection194 === void 0 ? void 0 : _data$WaterConnection194.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect187 = data.SewerageConnections) === null || _data$SewerageConnect187 === void 0 ? void 0 : (_data$SewerageConnect188 = _data$SewerageConnect187[0]) === null || _data$SewerageConnect188 === void 0 ? void 0 : _data$SewerageConnect188.applicationNo)}`
46207
48415
  }
46208
48416
  }
46209
48417
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46210
48418
  label: t("RESUBMIT_APPLICATION"),
46211
48419
  onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
46212
- applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect183 = data.SewerageConnections) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183[0],
48420
+ applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect189 = data.SewerageConnections) === null || _data$SewerageConnect189 === void 0 ? void 0 : _data$SewerageConnect189[0],
46213
48421
  serviceType: "SEWERAGE",
46214
48422
  WSDisconnectionForm: {
46215
- type: data !== null && data !== void 0 && (_data$SewerageConnect184 = data.SewerageConnections) !== null && _data$SewerageConnect184 !== void 0 && (_data$SewerageConnect185 = _data$SewerageConnect184[0]) !== null && _data$SewerageConnect185 !== void 0 && _data$SewerageConnect185.isDisconnectionTemporary ? {
48423
+ type: data !== null && data !== void 0 && (_data$SewerageConnect190 = data.SewerageConnections) !== null && _data$SewerageConnect190 !== void 0 && (_data$SewerageConnect191 = _data$SewerageConnect190[0]) !== null && _data$SewerageConnect191 !== void 0 && _data$SewerageConnect191.isDisconnectionTemporary ? {
46216
48424
  code: "type",
46217
48425
  value: {
46218
48426
  name: "Temporary",
@@ -46229,18 +48437,18 @@ const WSApplicationDetails = () => {
46229
48437
  code: "Permanent"
46230
48438
  }
46231
48439
  },
46232
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect186 = data.SewerageConnections) === null || _data$SewerageConnect186 === void 0 ? void 0 : (_data$SewerageConnect187 = _data$SewerageConnect186[0]) === null || _data$SewerageConnect187 === void 0 ? void 0 : _data$SewerageConnect187.dateEffectiveFrom, true),
48440
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect192 = data.SewerageConnections) === null || _data$SewerageConnect192 === void 0 ? void 0 : (_data$SewerageConnect193 = _data$SewerageConnect192[0]) === null || _data$SewerageConnect193 === void 0 ? void 0 : _data$SewerageConnect193.dateEffectiveFrom, true),
46233
48441
  reason: {
46234
48442
  code: "reason",
46235
- value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect188 = data.SewerageConnections) === null || _data$SewerageConnect188 === void 0 ? void 0 : (_data$SewerageConnect189 = _data$SewerageConnect188[0]) === null || _data$SewerageConnect189 === void 0 ? void 0 : _data$SewerageConnect189.disconnectionReason
48443
+ value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect194 = data.SewerageConnections) === null || _data$SewerageConnect194 === void 0 ? void 0 : (_data$SewerageConnect195 = _data$SewerageConnect194[0]) === null || _data$SewerageConnect195 === void 0 ? void 0 : _data$SewerageConnect195.disconnectionReason
46236
48444
  },
46237
- documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect190 = data.SewerageConnections) === null || _data$SewerageConnect190 === void 0 ? void 0 : (_data$SewerageConnect191 = _data$SewerageConnect190[0]) === null || _data$SewerageConnect191 === void 0 ? void 0 : _data$SewerageConnect191.documents
48445
+ documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect196 = data.SewerageConnections) === null || _data$SewerageConnect196 === void 0 ? void 0 : (_data$SewerageConnect197 = _data$SewerageConnect196[0]) === null || _data$SewerageConnect197 === void 0 ? void 0 : _data$SewerageConnect197.documents
46238
48446
  }
46239
48447
  } : {
46240
- applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection189 = data.WaterConnection) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189[0],
48448
+ applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection195 = data.WaterConnection) === null || _data$WaterConnection195 === void 0 ? void 0 : _data$WaterConnection195[0],
46241
48449
  serviceType: "WATER",
46242
48450
  WSDisconnectionForm: {
46243
- type: data !== null && data !== void 0 && (_data$WaterConnection190 = data.WaterConnection) !== null && _data$WaterConnection190 !== void 0 && (_data$WaterConnection191 = _data$WaterConnection190[0]) !== null && _data$WaterConnection191 !== void 0 && _data$WaterConnection191.isDisconnectionTemporary ? {
48451
+ type: data !== null && data !== void 0 && (_data$WaterConnection196 = data.WaterConnection) !== null && _data$WaterConnection196 !== void 0 && (_data$WaterConnection197 = _data$WaterConnection196[0]) !== null && _data$WaterConnection197 !== void 0 && _data$WaterConnection197.isDisconnectionTemporary ? {
46244
48452
  code: "type",
46245
48453
  value: {
46246
48454
  name: "Temporary",
@@ -46257,28 +48465,28 @@ const WSApplicationDetails = () => {
46257
48465
  code: "Permanent"
46258
48466
  }
46259
48467
  },
46260
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection192 = data.WaterConnection) === null || _data$WaterConnection192 === void 0 ? void 0 : (_data$WaterConnection193 = _data$WaterConnection192[0]) === null || _data$WaterConnection193 === void 0 ? void 0 : _data$WaterConnection193.dateEffectiveFrom, true),
48468
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection198 = data.WaterConnection) === null || _data$WaterConnection198 === void 0 ? void 0 : (_data$WaterConnection199 = _data$WaterConnection198[0]) === null || _data$WaterConnection199 === void 0 ? void 0 : _data$WaterConnection199.dateEffectiveFrom, true),
46261
48469
  reason: {
46262
48470
  code: "reason",
46263
- value: data === null || data === void 0 ? void 0 : (_data$WaterConnection194 = data.WaterConnection) === null || _data$WaterConnection194 === void 0 ? void 0 : (_data$WaterConnection195 = _data$WaterConnection194[0]) === null || _data$WaterConnection195 === void 0 ? void 0 : _data$WaterConnection195.disconnectionReason
48471
+ value: data === null || data === void 0 ? void 0 : (_data$WaterConnection200 = data.WaterConnection) === null || _data$WaterConnection200 === void 0 ? void 0 : (_data$WaterConnection201 = _data$WaterConnection200[0]) === null || _data$WaterConnection201 === void 0 ? void 0 : _data$WaterConnection201.disconnectionReason
46264
48472
  },
46265
- documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection196 = data.WaterConnection) === null || _data$WaterConnection196 === void 0 ? void 0 : (_data$WaterConnection197 = _data$WaterConnection196[0]) === null || _data$WaterConnection197 === void 0 ? void 0 : _data$WaterConnection197.documents
48473
+ documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection202 = data.WaterConnection) === null || _data$WaterConnection202 === void 0 ? void 0 : (_data$WaterConnection203 = _data$WaterConnection202[0]) === null || _data$WaterConnection203 === void 0 ? void 0 : _data$WaterConnection203.documents
46266
48474
  }
46267
48475
  })
46268
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection198 = data.WaterConnection) !== null && _data$WaterConnection198 !== void 0 && (_data$WaterConnection199 = _data$WaterConnection198[0]) !== null && _data$WaterConnection199 !== void 0 && _data$WaterConnection199.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection200 = data.WaterConnection) !== null && _data$WaterConnection200 !== void 0 && (_data$WaterConnection201 = _data$WaterConnection200[0]) !== null && _data$WaterConnection201 !== void 0 && _data$WaterConnection201.applicationStatus.includes("PENDING_FOR_DISCONNECTION_EXECUTION") || data !== null && data !== void 0 && (_data$SewerageConnect192 = data.SewerageConnections) !== null && _data$SewerageConnect192 !== void 0 && (_data$SewerageConnect193 = _data$SewerageConnect192[0]) !== null && _data$SewerageConnect193 !== void 0 && _data$SewerageConnect193.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect194 = data.SewerageConnections) !== null && _data$SewerageConnect194 !== void 0 && (_data$SewerageConnect195 = _data$SewerageConnect194[0]) !== null && _data$SewerageConnect195 !== void 0 && _data$SewerageConnect195.applicationStatus.includes("PENDING_FOR_DISCONNECTION_EXECUTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
48476
+ })) : null, data !== null && data !== void 0 && (_data$WaterConnection204 = data.WaterConnection) !== null && _data$WaterConnection204 !== void 0 && (_data$WaterConnection205 = _data$WaterConnection204[0]) !== null && _data$WaterConnection205 !== void 0 && _data$WaterConnection205.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection206 = data.WaterConnection) !== null && _data$WaterConnection206 !== void 0 && (_data$WaterConnection207 = _data$WaterConnection206[0]) !== null && _data$WaterConnection207 !== void 0 && _data$WaterConnection207.applicationStatus.includes("PENDING_FOR_DISCONNECTION_EXECUTION") || data !== null && data !== void 0 && (_data$SewerageConnect198 = data.SewerageConnections) !== null && _data$SewerageConnect198 !== void 0 && (_data$SewerageConnect199 = _data$SewerageConnect198[0]) !== null && _data$SewerageConnect199 !== void 0 && _data$SewerageConnect199.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect200 = data.SewerageConnections) !== null && _data$SewerageConnect200 !== void 0 && (_data$SewerageConnect201 = _data$SewerageConnect200[0]) !== null && _data$SewerageConnect201 !== void 0 && _data$SewerageConnect201.applicationStatus.includes("PENDING_FOR_DISCONNECTION_EXECUTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
46269
48477
  to: {
46270
48478
  pathname: `/digit-ui/citizen/ws/execute-disconnection`,
46271
48479
  state: {
46272
- applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection202 = data.WaterConnection) === null || _data$WaterConnection202 === void 0 ? void 0 : _data$WaterConnection202[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect196 = data.SewerageConnections) === null || _data$SewerageConnect196 === void 0 ? void 0 : _data$SewerageConnect196[0]),
48480
+ applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection208 = data.WaterConnection) === null || _data$WaterConnection208 === void 0 ? void 0 : _data$WaterConnection208[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect202 = data.SewerageConnections) === null || _data$SewerageConnect202 === void 0 ? void 0 : _data$SewerageConnect202[0]),
46273
48481
  action: {
46274
48482
  action: "EXECUTE_DISCONNECTION"
46275
48483
  },
46276
- serviceType: data !== null && data !== void 0 && (_data$WaterConnection203 = data.WaterConnection) !== null && _data$WaterConnection203 !== void 0 && _data$WaterConnection203[0] ? "WATER" : "SEWERAGE"
48484
+ serviceType: data !== null && data !== void 0 && (_data$WaterConnection209 = data.WaterConnection) !== null && _data$WaterConnection209 !== void 0 && _data$WaterConnection209[0] ? "WATER" : "SEWERAGE"
46277
48485
  }
46278
48486
  }
46279
48487
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46280
48488
  label: t("WS_EXECUTE_DISCONNECTION")
46281
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection204 = data.WaterConnection) !== null && _data$WaterConnection204 !== void 0 && (_data$WaterConnection205 = _data$WaterConnection204[0]) !== null && _data$WaterConnection205 !== void 0 && (_data$WaterConnection206 = _data$WaterConnection205.applicationStatus) !== null && _data$WaterConnection206 !== void 0 && _data$WaterConnection206.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect197 = data.SewerageConnections) !== null && _data$SewerageConnect197 !== void 0 && (_data$SewerageConnect198 = _data$SewerageConnect197[0]) !== null && _data$SewerageConnect198 !== void 0 && (_data$SewerageConnect199 = _data$SewerageConnect198.applicationStatus) !== null && _data$SewerageConnect199 !== void 0 && _data$SewerageConnect199.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$WaterConnection207 = data.WaterConnection) !== null && _data$WaterConnection207 !== void 0 && (_data$WaterConnection208 = _data$WaterConnection207[0]) !== null && _data$WaterConnection208 !== void 0 && (_data$WaterConnection209 = _data$WaterConnection208.applicationStatus) !== null && _data$WaterConnection209 !== void 0 && _data$WaterConnection209.includes("PENDING_FOR_RECONNECTION_EXECUTION") || data !== null && data !== void 0 && (_data$SewerageConnect200 = data.SewerageConnections) !== null && _data$SewerageConnect200 !== void 0 && (_data$SewerageConnect201 = _data$SewerageConnect200[0]) !== null && _data$SewerageConnect201 !== void 0 && (_data$SewerageConnect202 = _data$SewerageConnect201.applicationStatus) !== null && _data$SewerageConnect202 !== void 0 && _data$SewerageConnect202.includes("PENDING_FOR_RECONNECTION_EXECUTION") ? /*#__PURE__*/React__default.createElement("button", {
48489
+ })) : null, data !== null && data !== void 0 && (_data$WaterConnection210 = data.WaterConnection) !== null && _data$WaterConnection210 !== void 0 && (_data$WaterConnection211 = _data$WaterConnection210[0]) !== null && _data$WaterConnection211 !== void 0 && (_data$WaterConnection212 = _data$WaterConnection211.applicationStatus) !== null && _data$WaterConnection212 !== void 0 && _data$WaterConnection212.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect203 = data.SewerageConnections) !== null && _data$SewerageConnect203 !== void 0 && (_data$SewerageConnect204 = _data$SewerageConnect203[0]) !== null && _data$SewerageConnect204 !== void 0 && (_data$SewerageConnect205 = _data$SewerageConnect204.applicationStatus) !== null && _data$SewerageConnect205 !== void 0 && _data$SewerageConnect205.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$WaterConnection213 = data.WaterConnection) !== null && _data$WaterConnection213 !== void 0 && (_data$WaterConnection214 = _data$WaterConnection213[0]) !== null && _data$WaterConnection214 !== void 0 && (_data$WaterConnection215 = _data$WaterConnection214.applicationStatus) !== null && _data$WaterConnection215 !== void 0 && _data$WaterConnection215.includes("PENDING_FOR_RECONNECTION_EXECUTION") || data !== null && data !== void 0 && (_data$SewerageConnect206 = data.SewerageConnections) !== null && _data$SewerageConnect206 !== void 0 && (_data$SewerageConnect207 = _data$SewerageConnect206[0]) !== null && _data$SewerageConnect207 !== void 0 && (_data$SewerageConnect208 = _data$SewerageConnect207.applicationStatus) !== null && _data$SewerageConnect208 !== void 0 && _data$SewerageConnect208.includes("PENDING_FOR_RECONNECTION_EXECUTION") ? /*#__PURE__*/React__default.createElement("button", {
46282
48490
  type: "button",
46283
48491
  style: {
46284
48492
  padding: "12px 24px",
@@ -46293,19 +48501,19 @@ const WSApplicationDetails = () => {
46293
48501
  display: "inline-block"
46294
48502
  },
46295
48503
  onClick: () => {
46296
- var _data$WaterConnection210, _data$WaterConnection211, _data$WaterConnection212, _data$SewerageConnect203, _data$SewerageConnect204, _data$SewerageConnect205, _data$WaterConnection213, _data$WaterConnection214, _data$SewerageConnect206, _data$SewerageConnect207, _data$WaterConnection215, _data$WaterConnection216, _data$SewerageConnect208;
46297
- const isPendingMeter = (data === null || data === void 0 ? void 0 : (_data$WaterConnection210 = data.WaterConnection) === null || _data$WaterConnection210 === void 0 ? void 0 : (_data$WaterConnection211 = _data$WaterConnection210[0]) === null || _data$WaterConnection211 === void 0 ? void 0 : (_data$WaterConnection212 = _data$WaterConnection211.applicationStatus) === null || _data$WaterConnection212 === void 0 ? void 0 : _data$WaterConnection212.includes("PENDING_FOR_METER_INSTALLATION")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect203 = data.SewerageConnections) === null || _data$SewerageConnect203 === void 0 ? void 0 : (_data$SewerageConnect204 = _data$SewerageConnect203[0]) === null || _data$SewerageConnect204 === void 0 ? void 0 : (_data$SewerageConnect205 = _data$SewerageConnect204.applicationStatus) === null || _data$SewerageConnect205 === void 0 ? void 0 : _data$SewerageConnect205.includes("PENDING_FOR_METER_INSTALLATION"));
48504
+ var _data$WaterConnection216, _data$WaterConnection217, _data$WaterConnection218, _data$SewerageConnect209, _data$SewerageConnect210, _data$SewerageConnect211, _data$WaterConnection219, _data$WaterConnection220, _data$SewerageConnect212, _data$SewerageConnect213, _data$WaterConnection221, _data$WaterConnection222, _data$SewerageConnect214;
48505
+ const isPendingMeter = (data === null || data === void 0 ? void 0 : (_data$WaterConnection216 = data.WaterConnection) === null || _data$WaterConnection216 === void 0 ? void 0 : (_data$WaterConnection217 = _data$WaterConnection216[0]) === null || _data$WaterConnection217 === void 0 ? void 0 : (_data$WaterConnection218 = _data$WaterConnection217.applicationStatus) === null || _data$WaterConnection218 === void 0 ? void 0 : _data$WaterConnection218.includes("PENDING_FOR_METER_INSTALLATION")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect209 = data.SewerageConnections) === null || _data$SewerageConnect209 === void 0 ? void 0 : (_data$SewerageConnect210 = _data$SewerageConnect209[0]) === null || _data$SewerageConnect210 === void 0 ? void 0 : (_data$SewerageConnect211 = _data$SewerageConnect210.applicationStatus) === null || _data$SewerageConnect211 === void 0 ? void 0 : _data$SewerageConnect211.includes("PENDING_FOR_METER_INSTALLATION"));
46298
48506
  const currentAction = isPendingMeter ? "ENTER_METER_DETAILS" : "ACTIVATE_CONNECTION";
46299
48507
  history.push({
46300
48508
  pathname: `/digit-ui/citizen/ws/activate-connection`,
46301
- search: `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection213 = data.WaterConnection) === null || _data$WaterConnection213 === void 0 ? void 0 : (_data$WaterConnection214 = _data$WaterConnection213[0]) === null || _data$WaterConnection214 === void 0 ? void 0 : _data$WaterConnection214.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect206 = data.SewerageConnections) === null || _data$SewerageConnect206 === void 0 ? void 0 : (_data$SewerageConnect207 = _data$SewerageConnect206[0]) === null || _data$SewerageConnect207 === void 0 ? void 0 : _data$SewerageConnect207.applicationNo)}&service=${data !== null && data !== void 0 && (_data$WaterConnection215 = data.WaterConnection) !== null && _data$WaterConnection215 !== void 0 && _data$WaterConnection215[0] ? "WATER" : "SEWERAGE"}&action=${currentAction}`,
48509
+ search: `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection219 = data.WaterConnection) === null || _data$WaterConnection219 === void 0 ? void 0 : (_data$WaterConnection220 = _data$WaterConnection219[0]) === null || _data$WaterConnection220 === void 0 ? void 0 : _data$WaterConnection220.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect212 = data.SewerageConnections) === null || _data$SewerageConnect212 === void 0 ? void 0 : (_data$SewerageConnect213 = _data$SewerageConnect212[0]) === null || _data$SewerageConnect213 === void 0 ? void 0 : _data$SewerageConnect213.applicationNo)}&service=${data !== null && data !== void 0 && (_data$WaterConnection221 = data.WaterConnection) !== null && _data$WaterConnection221 !== void 0 && _data$WaterConnection221[0] ? "WATER" : "SEWERAGE"}&action=${currentAction}`,
46302
48510
  state: {
46303
- applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection216 = data.WaterConnection) === null || _data$WaterConnection216 === void 0 ? void 0 : _data$WaterConnection216[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect208 = data.SewerageConnections) === null || _data$SewerageConnect208 === void 0 ? void 0 : _data$SewerageConnect208[0]),
48511
+ applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection222 = data.WaterConnection) === null || _data$WaterConnection222 === void 0 ? void 0 : _data$WaterConnection222[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect214 = data.SewerageConnections) === null || _data$SewerageConnect214 === void 0 ? void 0 : _data$SewerageConnect214[0]),
46304
48512
  action: currentAction
46305
48513
  }
46306
48514
  });
46307
48515
  }
46308
- }, data !== null && data !== void 0 && (_data$WaterConnection217 = data.WaterConnection) !== null && _data$WaterConnection217 !== void 0 && (_data$WaterConnection218 = _data$WaterConnection217[0]) !== null && _data$WaterConnection218 !== void 0 && (_data$WaterConnection219 = _data$WaterConnection218.applicationStatus) !== null && _data$WaterConnection219 !== void 0 && _data$WaterConnection219.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect209 = data.SewerageConnections) !== null && _data$SewerageConnect209 !== void 0 && (_data$SewerageConnect210 = _data$SewerageConnect209[0]) !== null && _data$SewerageConnect210 !== void 0 && (_data$SewerageConnect211 = _data$SewerageConnect210.applicationStatus) !== null && _data$SewerageConnect211 !== void 0 && _data$SewerageConnect211.includes("PENDING_FOR_METER_INSTALLATION") ? t("CS_PENDING_FOR_METER_INSTALLATION") : t("WS_ACTIVATE_CONNECTION")) : null)))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
48516
+ }, data !== null && data !== void 0 && (_data$WaterConnection223 = data.WaterConnection) !== null && _data$WaterConnection223 !== void 0 && (_data$WaterConnection224 = _data$WaterConnection223[0]) !== null && _data$WaterConnection224 !== void 0 && (_data$WaterConnection225 = _data$WaterConnection224.applicationStatus) !== null && _data$WaterConnection225 !== void 0 && _data$WaterConnection225.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect215 = data.SewerageConnections) !== null && _data$SewerageConnect215 !== void 0 && (_data$SewerageConnect216 = _data$SewerageConnect215[0]) !== null && _data$SewerageConnect216 !== void 0 && (_data$SewerageConnect217 = _data$SewerageConnect216.applicationStatus) !== null && _data$SewerageConnect217 !== void 0 && _data$SewerageConnect217.includes("PENDING_FOR_METER_INSTALLATION") ? t("CS_PENDING_FOR_METER_INSTALLATION") : t("WS_ACTIVATE_CONNECTION")) : null)))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46309
48517
  open: showDocModal,
46310
48518
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
46311
48519
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -49054,7 +51262,7 @@ const EditApplication = _ref1 => {
49054
51262
  };
49055
51263
  const createApplication = function () {
49056
51264
  try {
49057
- var _params$DocumentsRequ, _currentApp$documents, _params$additionalDet4, _params$additionalDet5, _params$declarationDa, _currentApp$additiona6, _params$cpt4;
51265
+ var _params$DocumentsRequ, _currentApp$documents, _params$additionalDet4, _params$additionalDet5, _params$declarationDa, _currentApp$additiona6, _params$cpt4, _latestProperty$audit2, _appProp$auditDetails, _currentApp$auditDeta3, _currentApp$auditDeta4, _latestProperty$addit, _latestProperty$addit2, _appProp$additionalDe, _latestProperty$addit3, _latestProperty$addit4, _appProp$additionalDe2, _latestProperty$addit5, _latestProperty$addit6, _appProp$additionalDe3, _latestProperty$addit7, _latestProperty$addit8, _latestProperty$addit9, _latestProperty$addit0, _appProp$additionalDe4, _appProp$additionalDe5, _latestProperty$addit1, _latestProperty$addit10, _appProp$additionalDe6;
49058
51266
  if (params !== null && params !== void 0 && (_params$DocumentsRequ = params.DocumentsRequired) !== null && _params$DocumentsRequ !== void 0 && _params$DocumentsRequ.documents) {
49059
51267
  params.documents = {
49060
51268
  documents: params.DocumentsRequired.documents
@@ -49148,6 +51356,14 @@ const EditApplication = _ref1 => {
49148
51356
  params.SewerageConnectionResult.SewerageConnections[0].propertyId = propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId;
49149
51357
  }
49150
51358
  }
51359
+ const isPropertySessionUpdated = sessionStorage.getItem("IS_PROPERTY_UPDATED") === "true" || propertyId && sessionStorage.getItem("IS_PROPERTY_UPDATED_" + propertyId) === "true" || (propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId) && sessionStorage.getItem("IS_PROPERTY_UPDATED_" + propToSubmit.propertyId) === "true";
51360
+ const appProp = (Waterresult === null || Waterresult === void 0 ? void 0 : Waterresult.property) || (Sewarageresult === null || Sewarageresult === void 0 ? void 0 : Sewarageresult.property);
51361
+ const isPropertyTimeUpdated = Boolean((latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$audit2 = latestProperty.auditDetails) === null || _latestProperty$audit2 === void 0 ? void 0 : _latestProperty$audit2.lastModifiedTime) && ((appProp === null || appProp === void 0 ? void 0 : (_appProp$auditDetails = appProp.auditDetails) === null || _appProp$auditDetails === void 0 ? void 0 : _appProp$auditDetails.lastModifiedTime) && latestProperty.auditDetails.lastModifiedTime > appProp.auditDetails.lastModifiedTime || (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$auditDeta3 = currentApp.auditDetails) === null || _currentApp$auditDeta3 === void 0 ? void 0 : _currentApp$auditDeta3.lastModifiedTime) && latestProperty.auditDetails.lastModifiedTime > currentApp.auditDetails.lastModifiedTime || (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$auditDeta4 = currentApp.auditDetails) === null || _currentApp$auditDeta4 === void 0 ? void 0 : _currentApp$auditDeta4.createdTime) && latestProperty.auditDetails.lastModifiedTime > currentApp.auditDetails.createdTime));
51362
+ const isPropertyFieldUpdated = Boolean(latestProperty && appProp && ((latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit = latestProperty.additionalDetails) === null || _latestProperty$addit === void 0 ? void 0 : _latestProperty$addit.plotArea) && (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit2 = latestProperty.additionalDetails) === null || _latestProperty$addit2 === void 0 ? void 0 : _latestProperty$addit2.plotArea) != (appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe = appProp.additionalDetails) === null || _appProp$additionalDe === void 0 ? void 0 : _appProp$additionalDe.plotArea) || (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit3 = latestProperty.additionalDetails) === null || _latestProperty$addit3 === void 0 ? void 0 : _latestProperty$addit3.builtUpArea) && (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit4 = latestProperty.additionalDetails) === null || _latestProperty$addit4 === void 0 ? void 0 : _latestProperty$addit4.builtUpArea) != (appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe2 = appProp.additionalDetails) === null || _appProp$additionalDe2 === void 0 ? void 0 : _appProp$additionalDe2.builtUpArea) || (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit5 = latestProperty.additionalDetails) === null || _latestProperty$addit5 === void 0 ? void 0 : _latestProperty$addit5.propertyCategory) && (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit6 = latestProperty.additionalDetails) === null || _latestProperty$addit6 === void 0 ? void 0 : _latestProperty$addit6.propertyCategory) != (appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe3 = appProp.additionalDetails) === null || _appProp$additionalDe3 === void 0 ? void 0 : _appProp$additionalDe3.propertyCategory) || (latestProperty === null || latestProperty === void 0 ? void 0 : latestProperty.propertyType) && (latestProperty === null || latestProperty === void 0 ? void 0 : latestProperty.propertyType) != (appProp === null || appProp === void 0 ? void 0 : appProp.propertyType) || (latestProperty === null || latestProperty === void 0 ? void 0 : latestProperty.noOfFloors) && (latestProperty === null || latestProperty === void 0 ? void 0 : latestProperty.noOfFloors) != (appProp === null || appProp === void 0 ? void 0 : appProp.noOfFloors) || ((latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit7 = latestProperty.additionalDetails) === null || _latestProperty$addit7 === void 0 ? void 0 : _latestProperty$addit7.numberOfDwellingUnits) || (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit8 = latestProperty.additionalDetails) === null || _latestProperty$addit8 === void 0 ? void 0 : _latestProperty$addit8.noOfDwellingUnits)) && ((latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit9 = latestProperty.additionalDetails) === null || _latestProperty$addit9 === void 0 ? void 0 : _latestProperty$addit9.numberOfDwellingUnits) || (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit0 = latestProperty.additionalDetails) === null || _latestProperty$addit0 === void 0 ? void 0 : _latestProperty$addit0.noOfDwellingUnits)) != ((appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe4 = appProp.additionalDetails) === null || _appProp$additionalDe4 === void 0 ? void 0 : _appProp$additionalDe4.numberOfDwellingUnits) || (appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe5 = appProp.additionalDetails) === null || _appProp$additionalDe5 === void 0 ? void 0 : _appProp$additionalDe5.noOfDwellingUnits)) || (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit1 = latestProperty.additionalDetails) === null || _latestProperty$addit1 === void 0 ? void 0 : _latestProperty$addit1.heightOfTheBuilding) && (latestProperty === null || latestProperty === void 0 ? void 0 : (_latestProperty$addit10 = latestProperty.additionalDetails) === null || _latestProperty$addit10 === void 0 ? void 0 : _latestProperty$addit10.heightOfTheBuilding) != (appProp === null || appProp === void 0 ? void 0 : (_appProp$additionalDe6 = appProp.additionalDetails) === null || _appProp$additionalDe6 === void 0 ? void 0 : _appProp$additionalDe6.heightOfTheBuilding)));
51363
+ const isPropUpdated = Boolean(isPropertySessionUpdated || isPropertyTimeUpdated || isPropertyFieldUpdated || (params === null || params === void 0 ? void 0 : params.isPropertyUpdated) === true);
51364
+ params.isPropertyUpdated = isPropUpdated;
51365
+ params.workflowAction = isPropUpdated ? "RESUBMIT_FOR_INFRA_PAYMENT" : "RESUBMIT_APPLICATION";
51366
+ sessionStorage.setItem("WS_WORKFLOW_ACTION", params.workflowAction);
49151
51367
  history.push(`${getPath$3(match.path, match.params)}/acknowledgement`);
49152
51368
  return Promise.resolve();
49153
51369
  } catch (e) {
@@ -50278,7 +52494,7 @@ const BannerPicker$2 = props => {
50278
52494
  });
50279
52495
  };
50280
52496
  const WSAcknowledgement = _ref => {
50281
- var _data$serviceName7, _data$serviceName8, _data$serviceName9, _data$serviceName0, _data$serviceName1, _data$serviceName10, _data$serviceName11, _data$serviceName12, _data$serviceName13, _data$serviceName14;
52497
+ var _data$serviceName7, _data$serviceName8, _data$serviceName9, _data$serviceName0, _data$serviceName1, _data$serviceName10, _data$serviceName11, _data$serviceName12, _data$serviceName13, _data$serviceName14, _WSmutation$data3, _WSmutation$data3$Wat, _WSmutation$data3$Wat2, _WSmutation$data3$Wat3, _WSmutation$data4, _WSmutation$data4$Wat, _WSmutation$data4$Wat2, _SWmutation$data3, _SWmutation$data3$Sew, _SWmutation$data3$Sew2, _SWmutation$data3$Sew3, _SWmutation$data4, _SWmutation$data4$Sew, _SWmutation$data4$Sew2, _WSmutation$data5, _WSmutation$data5$Wat, _WSmutation$data5$Wat2, _WSmutation$data6, _WSmutation$data6$Wat, _WSmutation$data6$Wat2, _SWmutation$data5, _SWmutation$data5$Sew, _SWmutation$data5$Sew2, _data$cpt11, _data$cpt11$details, _WSmutation$data7, _WSmutation$data7$Wat, _WSmutation$data7$Wat2, _SWmutation$data6, _SWmutation$data6$Sew, _SWmutation$data6$Sew2, _WSmutation$data8, _WSmutation$data8$Wat, _WSmutation$data8$Wat2, _SWmutation$data7, _SWmutation$data7$Sew, _SWmutation$data7$Sew2;
50282
52498
  let {
50283
52499
  data,
50284
52500
  onSuccess,
@@ -50305,9 +52521,18 @@ const WSAcknowledgement = _ref => {
50305
52521
  const mutationTriggeredRef = React__default.useRef(false);
50306
52522
  const swMutationTriggeredRef = React__default.useRef(false);
50307
52523
  const handleSuccess = res => {
52524
+ var _data$cpt, _data$cpt$details;
50308
52525
  sessionStorage.removeItem("WS_EDIT_APPLICATION_V5");
50309
52526
  sessionStorage.removeItem("WaterInitialObject");
50310
52527
  sessionStorage.removeItem("SewerageInitialObject");
52528
+ sessionStorage.removeItem("IS_PROPERTY_UPDATED");
52529
+ sessionStorage.removeItem("WS_WORKFLOW_ACTION");
52530
+ if (data !== null && data !== void 0 && data.propertyId) {
52531
+ sessionStorage.removeItem("IS_PROPERTY_UPDATED_" + data.propertyId);
52532
+ }
52533
+ if (data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && (_data$cpt$details = _data$cpt.details) !== null && _data$cpt$details !== void 0 && _data$cpt$details.propertyId) {
52534
+ sessionStorage.removeItem("IS_PROPERTY_UPDATED_" + data.cpt.details.propertyId);
52535
+ }
50311
52536
  if (onSuccess) onSuccess(res);
50312
52537
  };
50313
52538
  React.useEffect(() => {
@@ -50316,9 +52541,9 @@ const WSAcknowledgement = _ref => {
50316
52541
  var _data$serviceName, _data$serviceName2;
50317
52542
  let tenantId;
50318
52543
  if ((data === null || data === void 0 ? void 0 : (_data$serviceName = data.serviceName) === null || _data$serviceName === void 0 ? void 0 : _data$serviceName.code) === "WATER" || (data === null || data === void 0 ? void 0 : (_data$serviceName2 = data.serviceName) === null || _data$serviceName2 === void 0 ? void 0 : _data$serviceName2.code) === "BOTH") {
50319
- var _data$cpt, _data$cpt$details;
52544
+ var _data$cpt2, _data$cpt2$details;
50320
52545
  mutationTriggeredRef.current = true;
50321
- tenantId = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.tenantId) || tenantId;
52546
+ tenantId = (data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.tenantId) || tenantId;
50322
52547
  let formdata = isEdit ? convertToEditWSUpdate(data) : convertToWSUpdate(data);
50323
52548
  const formdataNew = {
50324
52549
  ...formdata,
@@ -50350,30 +52575,30 @@ const WSAcknowledgement = _ref => {
50350
52575
  }
50351
52576
  }, [data, WSmutation.isSuccess]);
50352
52577
  const handleDownloadPdfWater = () => {
50353
- var _WSmutation$data, _WSmutation$data$Wate, _data$cpt4;
52578
+ var _WSmutation$data, _WSmutation$data$Wate, _data$cpt5;
50354
52579
  const WSmutationdata = WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data = WSmutation.data) === null || _WSmutation$data === void 0 ? void 0 : (_WSmutation$data$Wate = _WSmutation$data.WaterConnection) === null || _WSmutation$data$Wate === void 0 ? void 0 : _WSmutation$data$Wate[0];
50355
52580
  const tenantInfo = tenants.find(tenant => {
50356
- var _data$cpt3, _data$cpt3$details;
50357
- return tenant.code === (data === null || data === void 0 ? void 0 : (_data$cpt3 = data.cpt) === null || _data$cpt3 === void 0 ? void 0 : (_data$cpt3$details = _data$cpt3.details) === null || _data$cpt3$details === void 0 ? void 0 : _data$cpt3$details.tenantId);
52581
+ var _data$cpt4, _data$cpt4$details;
52582
+ return tenant.code === (data === null || data === void 0 ? void 0 : (_data$cpt4 = data.cpt) === null || _data$cpt4 === void 0 ? void 0 : (_data$cpt4$details = _data$cpt4.details) === null || _data$cpt4$details === void 0 ? void 0 : _data$cpt4$details.tenantId);
50358
52583
  });
50359
52584
  const data1 = getWSAcknowledgementData({
50360
52585
  ...WSmutationdata
50361
52586
  }, {
50362
- ...(data === null || data === void 0 ? void 0 : (_data$cpt4 = data.cpt) === null || _data$cpt4 === void 0 ? void 0 : _data$cpt4.details)
52587
+ ...(data === null || data === void 0 ? void 0 : (_data$cpt5 = data.cpt) === null || _data$cpt5 === void 0 ? void 0 : _data$cpt5.details)
50363
52588
  }, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
50364
52589
  data1.then(ress => Digit.Utils.pdf.generatev1(ress));
50365
52590
  };
50366
52591
  const handleDownloadPdfSewerage = () => {
50367
- var _SWmutation$data, _SWmutation$data$Sewe, _data$cpt6;
52592
+ var _SWmutation$data, _SWmutation$data$Sewe, _data$cpt7;
50368
52593
  const SWmutationdata = SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data = SWmutation.data) === null || _SWmutation$data === void 0 ? void 0 : (_SWmutation$data$Sewe = _SWmutation$data.SewerageConnections) === null || _SWmutation$data$Sewe === void 0 ? void 0 : _SWmutation$data$Sewe[0];
50369
52594
  const tenantInfo = tenants.find(tenant => {
50370
- var _data$cpt5, _data$cpt5$details;
50371
- return tenant.code === (data === null || data === void 0 ? void 0 : (_data$cpt5 = data.cpt) === null || _data$cpt5 === void 0 ? void 0 : (_data$cpt5$details = _data$cpt5.details) === null || _data$cpt5$details === void 0 ? void 0 : _data$cpt5$details.tenantId);
52595
+ var _data$cpt6, _data$cpt6$details;
52596
+ return tenant.code === (data === null || data === void 0 ? void 0 : (_data$cpt6 = data.cpt) === null || _data$cpt6 === void 0 ? void 0 : (_data$cpt6$details = _data$cpt6.details) === null || _data$cpt6$details === void 0 ? void 0 : _data$cpt6$details.tenantId);
50372
52597
  });
50373
52598
  const data2 = getWSAcknowledgementData({
50374
52599
  ...SWmutationdata
50375
52600
  }, {
50376
- ...(data === null || data === void 0 ? void 0 : (_data$cpt6 = data.cpt) === null || _data$cpt6 === void 0 ? void 0 : _data$cpt6.details)
52601
+ ...(data === null || data === void 0 ? void 0 : (_data$cpt7 = data.cpt) === null || _data$cpt7 === void 0 ? void 0 : _data$cpt7.details)
50377
52602
  }, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
50378
52603
  data2.then(ress => Digit.Utils.pdf.generatev1(ress));
50379
52604
  };
@@ -50414,7 +52639,22 @@ const WSAcknowledgement = _ref => {
50414
52639
  className: "download-button"
50415
52640
  }, t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))),
50416
52641
  onClick: handleDownloadPdfSewerage
50417
- }), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
52642
+ }), ((WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data3 = WSmutation.data) === null || _WSmutation$data3 === void 0 ? void 0 : (_WSmutation$data3$Wat = _WSmutation$data3.WaterConnection) === null || _WSmutation$data3$Wat === void 0 ? void 0 : (_WSmutation$data3$Wat2 = _WSmutation$data3$Wat[0]) === null || _WSmutation$data3$Wat2 === void 0 ? void 0 : (_WSmutation$data3$Wat3 = _WSmutation$data3$Wat2.applicationStatus) === null || _WSmutation$data3$Wat3 === void 0 ? void 0 : _WSmutation$data3$Wat3.includes("INFRA_PAYMENT")) || (WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data4 = WSmutation.data) === null || _WSmutation$data4 === void 0 ? void 0 : (_WSmutation$data4$Wat = _WSmutation$data4.WaterConnection) === null || _WSmutation$data4$Wat === void 0 ? void 0 : (_WSmutation$data4$Wat2 = _WSmutation$data4$Wat[0]) === null || _WSmutation$data4$Wat2 === void 0 ? void 0 : _WSmutation$data4$Wat2.applicationStatus) === "PENDING_FOR_PAYMENT" || (SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data3 = SWmutation.data) === null || _SWmutation$data3 === void 0 ? void 0 : (_SWmutation$data3$Sew = _SWmutation$data3.SewerageConnections) === null || _SWmutation$data3$Sew === void 0 ? void 0 : (_SWmutation$data3$Sew2 = _SWmutation$data3$Sew[0]) === null || _SWmutation$data3$Sew2 === void 0 ? void 0 : (_SWmutation$data3$Sew3 = _SWmutation$data3$Sew2.applicationStatus) === null || _SWmutation$data3$Sew3 === void 0 ? void 0 : _SWmutation$data3$Sew3.includes("INFRA_PAYMENT")) || (SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data4 = SWmutation.data) === null || _SWmutation$data4 === void 0 ? void 0 : (_SWmutation$data4$Sew = _SWmutation$data4.SewerageConnections) === null || _SWmutation$data4$Sew === void 0 ? void 0 : (_SWmutation$data4$Sew2 = _SWmutation$data4$Sew[0]) === null || _SWmutation$data4$Sew2 === void 0 ? void 0 : _SWmutation$data4$Sew2.applicationStatus) === "PENDING_FOR_PAYMENT") && /*#__PURE__*/React__default.createElement("div", {
52643
+ style: {
52644
+ marginTop: "10px",
52645
+ marginBottom: "10px"
52646
+ }
52647
+ }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
52648
+ to: {
52649
+ pathname: `/digit-ui/citizen/payment/collect/${WSmutation !== null && WSmutation !== void 0 && (_WSmutation$data5 = WSmutation.data) !== null && _WSmutation$data5 !== void 0 && (_WSmutation$data5$Wat = _WSmutation$data5.WaterConnection) !== null && _WSmutation$data5$Wat !== void 0 && (_WSmutation$data5$Wat2 = _WSmutation$data5$Wat[0]) !== null && _WSmutation$data5$Wat2 !== void 0 && _WSmutation$data5$Wat2.applicationNo ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE"}/${((WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data6 = WSmutation.data) === null || _WSmutation$data6 === void 0 ? void 0 : (_WSmutation$data6$Wat = _WSmutation$data6.WaterConnection) === null || _WSmutation$data6$Wat === void 0 ? void 0 : (_WSmutation$data6$Wat2 = _WSmutation$data6$Wat[0]) === null || _WSmutation$data6$Wat2 === void 0 ? void 0 : _WSmutation$data6$Wat2.applicationNo) || (SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data5 = SWmutation.data) === null || _SWmutation$data5 === void 0 ? void 0 : (_SWmutation$data5$Sew = _SWmutation$data5.SewerageConnections) === null || _SWmutation$data5$Sew === void 0 ? void 0 : (_SWmutation$data5$Sew2 = _SWmutation$data5$Sew[0]) === null || _SWmutation$data5$Sew2 === void 0 ? void 0 : _SWmutation$data5$Sew2.applicationNo) || "").replace(/\//g, "+")}`,
52650
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$cpt11 = data.cpt) === null || _data$cpt11 === void 0 ? void 0 : (_data$cpt11$details = _data$cpt11.details) === null || _data$cpt11$details === void 0 ? void 0 : _data$cpt11$details.tenantId) || (WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data7 = WSmutation.data) === null || _WSmutation$data7 === void 0 ? void 0 : (_WSmutation$data7$Wat = _WSmutation$data7.WaterConnection) === null || _WSmutation$data7$Wat === void 0 ? void 0 : (_WSmutation$data7$Wat2 = _WSmutation$data7$Wat[0]) === null || _WSmutation$data7$Wat2 === void 0 ? void 0 : _WSmutation$data7$Wat2.tenantId) || (SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data6 = SWmutation.data) === null || _SWmutation$data6 === void 0 ? void 0 : (_SWmutation$data6$Sew = _SWmutation$data6.SewerageConnections) === null || _SWmutation$data6$Sew === void 0 ? void 0 : (_SWmutation$data6$Sew2 = _SWmutation$data6$Sew[0]) === null || _SWmutation$data6$Sew2 === void 0 ? void 0 : _SWmutation$data6$Sew2.tenantId)}&consumerCode=${(WSmutation === null || WSmutation === void 0 ? void 0 : (_WSmutation$data8 = WSmutation.data) === null || _WSmutation$data8 === void 0 ? void 0 : (_WSmutation$data8$Wat = _WSmutation$data8.WaterConnection) === null || _WSmutation$data8$Wat === void 0 ? void 0 : (_WSmutation$data8$Wat2 = _WSmutation$data8$Wat[0]) === null || _WSmutation$data8$Wat2 === void 0 ? void 0 : _WSmutation$data8$Wat2.applicationNo) || (SWmutation === null || SWmutation === void 0 ? void 0 : (_SWmutation$data7 = SWmutation.data) === null || _SWmutation$data7 === void 0 ? void 0 : (_SWmutation$data7$Sew = _SWmutation$data7.SewerageConnections) === null || _SWmutation$data7$Sew === void 0 ? void 0 : (_SWmutation$data7$Sew2 = _SWmutation$data7$Sew[0]) === null || _SWmutation$data7$Sew2 === void 0 ? void 0 : _SWmutation$data7$Sew2.applicationNo)}`,
52651
+ state: {
52652
+ fromAcknowledgement: true
52653
+ }
52654
+ }
52655
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
52656
+ label: t("MAKE_PAYMENT")
52657
+ }))), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
50418
52658
  to: {
50419
52659
  pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
50420
52660
  }
@@ -54160,7 +56400,7 @@ const NewApplication = () => {
54160
56400
  });
54161
56401
  return Promise.resolve();
54162
56402
  }
54163
- const _temp10 = _catch(function () {
56403
+ const _temp0 = _catch(function () {
54164
56404
  var _propertyDetails$Prop2;
54165
56405
  const formDataWithProperty = {
54166
56406
  ...data,
@@ -54172,8 +56412,7 @@ const NewApplication = () => {
54172
56412
  let waterAndSewerageLoader = false;
54173
56413
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) waterAndSewerageLoader = true;
54174
56414
  if (waterAndSewerageLoader) {
54175
- setWaterAndSewerageBoth(true);
54176
- sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
56415
+ sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
54177
56416
  } else {
54178
56417
  sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
54179
56418
  }
@@ -54182,15 +56421,10 @@ const NewApplication = () => {
54182
56421
  disconnectRequest: false,
54183
56422
  reconnectRequest: false
54184
56423
  };
54185
- let sewerageConnection = {
54186
- SewerageConnection: payload,
54187
- disconnectRequest: false,
54188
- reconnectRequest: false
54189
- };
54190
- const _temp1 = function () {
56424
+ const _temp9 = function () {
54191
56425
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) {
54192
56426
  const _temp6 = function () {
54193
- if (waterMutation && sewerageMutation) {
56427
+ if (waterMutation) {
54194
56428
  setIsEnableLoader(true);
54195
56429
  return Promise.resolve(waterMutation(waterConnection, {
54196
56430
  onError: error => {
@@ -54224,6 +56458,7 @@ const NewApplication = () => {
54224
56458
  },
54225
56459
  onSuccess: function (waterUpdateData) {
54226
56460
  try {
56461
+ var _waterUpdateData$Wate2, _waterUpdateData$Wate3;
54227
56462
  setAppDetails(prev => {
54228
56463
  var _waterUpdateData$Wate;
54229
56464
  return {
@@ -54231,61 +56466,9 @@ const NewApplication = () => {
54231
56466
  waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
54232
56467
  };
54233
56468
  });
54234
- return Promise.resolve(sewerageMutation(sewerageConnection, {
54235
- onError: error => {
54236
- var _error$response3, _error$response3$data, _error$response3$data2;
54237
- setIsEnableLoader(false);
54238
- setShowToast({
54239
- key: "error",
54240
- message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2[0].message) || error
54241
- });
54242
- setTimeout(closeToastOfError, 5000);
54243
- },
54244
- onSuccess: function (sewerageData) {
54245
- try {
54246
- var _sewerageData$Sewerag;
54247
- return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
54248
- let sewerageConnectionUpdate = {
54249
- SewerageConnection: response,
54250
- disconnectRequest: false,
54251
- reconnectRequest: false
54252
- };
54253
- return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
54254
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
54255
- onError: error => {
54256
- var _error$response4, _error$response4$data, _error$response4$data2;
54257
- setIsEnableLoader(false);
54258
- setShowToast({
54259
- key: "error",
54260
- message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message) || error
54261
- });
54262
- setTimeout(closeToastOfError, 5000);
54263
- },
54264
- onSuccess: function (sewerageUpdateData) {
54265
- try {
54266
- var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
54267
- setAppDetails(prev => {
54268
- var _sewerageUpdateData$S;
54269
- return {
54270
- ...prev,
54271
- sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
54272
- };
54273
- });
54274
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
54275
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo}`);
54276
- return Promise.resolve();
54277
- } catch (e) {
54278
- return Promise.reject(e);
54279
- }
54280
- }
54281
- })).then(function () {});
54282
- });
54283
- });
54284
- } catch (e) {
54285
- return Promise.reject(e);
54286
- }
54287
- }
54288
- })).then(function () {});
56469
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
56470
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}`);
56471
+ return Promise.resolve();
54289
56472
  } catch (e) {
54290
56473
  return Promise.reject(e);
54291
56474
  }
@@ -54302,18 +56485,18 @@ const NewApplication = () => {
54302
56485
  }();
54303
56486
  if (_temp6 && _temp6.then) return _temp6.then(function () {});
54304
56487
  } else {
54305
- const _temp0 = function () {
56488
+ const _temp8 = function () {
54306
56489
  if (payload !== null && payload !== void 0 && payload.water && !(payload !== null && payload !== void 0 && payload.sewerage)) {
54307
56490
  const _temp7 = function () {
54308
56491
  if (waterMutation) {
54309
56492
  setIsEnableLoader(true);
54310
56493
  return Promise.resolve(waterMutation(waterConnection, {
54311
56494
  onError: error => {
54312
- var _error$response5, _error$response5$data, _error$response5$data2;
56495
+ var _error$response3, _error$response3$data, _error$response3$data2;
54313
56496
  setIsEnableLoader(false);
54314
56497
  setShowToast({
54315
56498
  key: "error",
54316
- message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : _error$response5$data2[0].message) || error
56499
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2[0].message) || error
54317
56500
  });
54318
56501
  setTimeout(closeToastOfError, 5000);
54319
56502
  },
@@ -54327,11 +56510,11 @@ const NewApplication = () => {
54327
56510
  return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
54328
56511
  waterUpdateMutation(waterConnectionUpdate, {
54329
56512
  onError: error => {
54330
- var _error$response6, _error$response6$data, _error$response6$data2;
56513
+ var _error$response4, _error$response4$data, _error$response4$data2;
54331
56514
  setIsEnableLoader(false);
54332
56515
  setShowToast({
54333
56516
  key: "error",
54334
- message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message) || error
56517
+ message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message) || error
54335
56518
  });
54336
56519
  setTimeout(closeToastOfError, 5000);
54337
56520
  },
@@ -54358,72 +56541,12 @@ const NewApplication = () => {
54358
56541
  }
54359
56542
  }();
54360
56543
  if (_temp7 && _temp7.then) return _temp7.then(function () {});
54361
- } else {
54362
- const _temp9 = function () {
54363
- if (payload !== null && payload !== void 0 && payload.sewerage && !(payload !== null && payload !== void 0 && payload.water)) {
54364
- const _temp8 = function () {
54365
- if (sewerageMutation) {
54366
- setIsEnableLoader(true);
54367
- return Promise.resolve(sewerageMutation(sewerageConnection, {
54368
- onError: error => {
54369
- var _error$response7, _error$response7$data, _error$response7$data2;
54370
- setIsEnableLoader(false);
54371
- setShowToast({
54372
- key: "error",
54373
- message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : _error$response7$data2[0].message) || error
54374
- });
54375
- setTimeout(closeToastOfError, 5000);
54376
- },
54377
- onSuccess: function (data) {
54378
- try {
54379
- var _data$SewerageConnect;
54380
- return Promise.resolve(updatePayloadOfWS(data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0], "SEWERAGE")).then(function (response) {
54381
- let sewerageConnectionUpdate = {
54382
- SewerageConnection: response
54383
- };
54384
- return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
54385
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
54386
- onError: error => {
54387
- var _error$response8, _error$response8$data, _error$response8$data2;
54388
- setIsEnableLoader(false);
54389
- setShowToast({
54390
- key: "error",
54391
- message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message) || error
54392
- });
54393
- setTimeout(closeToastOfError, 5000);
54394
- },
54395
- onSuccess: data => {
54396
- var _data$SewerageConnect3, _data$SewerageConnect4;
54397
- setAppDetails(prev => {
54398
- var _data$SewerageConnect2;
54399
- return {
54400
- ...prev,
54401
- sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
54402
- };
54403
- });
54404
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
54405
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
54406
- }
54407
- })).then(function () {});
54408
- });
54409
- });
54410
- } catch (e) {
54411
- return Promise.reject(e);
54412
- }
54413
- }
54414
- })).then(function () {});
54415
- }
54416
- }();
54417
- if (_temp8 && _temp8.then) return _temp8.then(function () {});
54418
- }
54419
- }();
54420
- if (_temp9 && _temp9.then) return _temp9.then(function () {});
54421
56544
  }
54422
56545
  }();
54423
- if (_temp0 && _temp0.then) return _temp0.then(function () {});
56546
+ if (_temp8 && _temp8.then) return _temp8.then(function () {});
54424
56547
  }
54425
56548
  }();
54426
- if (_temp1 && _temp1.then) return _temp1.then(function () {});
56549
+ if (_temp9 && _temp9.then) return _temp9.then(function () {});
54427
56550
  });
54428
56551
  }, function () {
54429
56552
  setIsEnableLoader(false);
@@ -54432,7 +56555,7 @@ const NewApplication = () => {
54432
56555
  message: "Failed to generate payload or submit application."
54433
56556
  });
54434
56557
  });
54435
- return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
56558
+ return Promise.resolve(_temp0 && _temp0.then ? _temp0.then(function () {}) : void 0);
54436
56559
  } catch (e) {
54437
56560
  return Promise.reject(e);
54438
56561
  }
@@ -65366,14 +67489,14 @@ const OLDApplication = () => {
65366
67489
  reconnectRequest: false
65367
67490
  };
65368
67491
  if (waterAndSewerageLoader) {
65369
- sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
67492
+ sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
65370
67493
  } else {
65371
67494
  sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
65372
67495
  }
65373
- const _temp6 = function () {
67496
+ const _temp4 = function () {
65374
67497
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) {
65375
67498
  const _temp = function () {
65376
- if (waterMutation && sewerageMutation) {
67499
+ if (waterMutation) {
65377
67500
  setIsEnableLoader(true);
65378
67501
  return Promise.resolve(waterMutation(waterConnection, {
65379
67502
  onError: error => {
@@ -65405,53 +67528,11 @@ const OLDApplication = () => {
65405
67528
  },
65406
67529
  onSuccess: function (waterUpdateData) {
65407
67530
  try {
65408
- return Promise.resolve(sewerageMutation(sewerageConnection, {
65409
- onError: error => {
65410
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
65411
- setIsEnableLoader(false);
65412
- setShowToast({
65413
- key: "error",
65414
- message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65415
- });
65416
- },
65417
- onSuccess: function (sewerageData) {
65418
- try {
65419
- var _sewerageData$Sewerag;
65420
- return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
65421
- let sewerageConnectionUpdate = {
65422
- SewerageConnection: response,
65423
- disconnectRequest: false,
65424
- reconnectRequest: false
65425
- };
65426
- return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
65427
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
65428
- onError: error => {
65429
- var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
65430
- setIsEnableLoader(false);
65431
- setShowToast({
65432
- key: "error",
65433
- message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65434
- });
65435
- },
65436
- onSuccess: function (sewerageUpdateData) {
65437
- try {
65438
- var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
65439
- clearSessionFormData();
65440
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
65441
- history.push(`${basePath}/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo}`);
65442
- return Promise.resolve();
65443
- } catch (e) {
65444
- return Promise.reject(e);
65445
- }
65446
- }
65447
- })).then(function () {});
65448
- });
65449
- });
65450
- } catch (e) {
65451
- return Promise.reject(e);
65452
- }
65453
- }
65454
- })).then(function () {});
67531
+ var _waterUpdateData$Wate, _waterUpdateData$Wate2;
67532
+ clearSessionFormData();
67533
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
67534
+ history.push(`${basePath}/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo}`);
67535
+ return Promise.resolve();
65455
67536
  } catch (e) {
65456
67537
  return Promise.reject(e);
65457
67538
  }
@@ -65468,19 +67549,19 @@ const OLDApplication = () => {
65468
67549
  }();
65469
67550
  if (_temp && _temp.then) return _temp.then(function () {});
65470
67551
  } else {
65471
- const _temp5 = function () {
67552
+ const _temp3 = function () {
65472
67553
  if (payload !== null && payload !== void 0 && payload.water && !(payload !== null && payload !== void 0 && payload.sewerage)) {
65473
67554
  const _temp2 = function () {
65474
67555
  if (waterMutation) {
65475
67556
  setIsEnableLoader(true);
65476
67557
  return Promise.resolve(waterMutation(waterConnection, {
65477
67558
  onError: error => {
65478
- var _error$response5, _error$response5$data, _error$response5$data2, _error$response5$data3;
67559
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
65479
67560
  setIsEnableLoader(false);
65480
67561
  console.error("[WS] waterMutation error", error);
65481
67562
  setShowToast({
65482
67563
  key: "error",
65483
- message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : (_error$response5$data3 = _error$response5$data2[0]) === null || _error$response5$data3 === void 0 ? void 0 : _error$response5$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
67564
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65484
67565
  });
65485
67566
  },
65486
67567
  onSuccess: function (data) {
@@ -65493,12 +67574,12 @@ const OLDApplication = () => {
65493
67574
  return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
65494
67575
  waterUpdateMutation(waterConnectionUpdate, {
65495
67576
  onError: error => {
65496
- var _error$response6, _error$response6$data, _error$response6$data2, _error$response6$data3;
67577
+ var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
65497
67578
  setIsEnableLoader(false);
65498
67579
  console.error("[WS] waterUpdateMutation error", error);
65499
67580
  setShowToast({
65500
67581
  key: "error",
65501
- message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
67582
+ message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65502
67583
  });
65503
67584
  },
65504
67585
  onSuccess: data => {
@@ -65518,66 +67599,12 @@ const OLDApplication = () => {
65518
67599
  }
65519
67600
  }();
65520
67601
  if (_temp2 && _temp2.then) return _temp2.then(function () {});
65521
- } else {
65522
- const _temp4 = function () {
65523
- if (payload !== null && payload !== void 0 && payload.sewerage && !(payload !== null && payload !== void 0 && payload.water)) {
65524
- const _temp3 = function () {
65525
- if (sewerageMutation) {
65526
- setIsEnableLoader(true);
65527
- return Promise.resolve(sewerageMutation(sewerageConnection, {
65528
- onError: error => {
65529
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response7$data3;
65530
- setIsEnableLoader(false);
65531
- console.error("[WS] sewerageMutation error", error);
65532
- setShowToast({
65533
- key: "error",
65534
- message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : (_error$response7$data3 = _error$response7$data2[0]) === null || _error$response7$data3 === void 0 ? void 0 : _error$response7$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65535
- });
65536
- },
65537
- onSuccess: function (data) {
65538
- try {
65539
- var _data$SewerageConnect;
65540
- return Promise.resolve(updatePayloadOfWS(data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0], "SEWERAGE")).then(function (response) {
65541
- let sewerageConnectionUpdate = {
65542
- SewerageConnection: response
65543
- };
65544
- return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
65545
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
65546
- onError: error => {
65547
- var _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
65548
- setIsEnableLoader(false);
65549
- console.error("[WS] sewerageUpdateMutation error", error);
65550
- setShowToast({
65551
- key: "error",
65552
- message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
65553
- });
65554
- },
65555
- onSuccess: data => {
65556
- var _data$SewerageConnect2, _data$SewerageConnect3;
65557
- clearSessionFormData();
65558
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
65559
- history.push(`${basePath}/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo}`);
65560
- }
65561
- })).then(function () {});
65562
- });
65563
- });
65564
- } catch (e) {
65565
- return Promise.reject(e);
65566
- }
65567
- }
65568
- })).then(function () {});
65569
- }
65570
- }();
65571
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
65572
- }
65573
- }();
65574
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
65575
67602
  }
65576
67603
  }();
65577
- if (_temp5 && _temp5.then) return _temp5.then(function () {});
67604
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
65578
67605
  }
65579
67606
  }();
65580
- if (_temp6 && _temp6.then) return _temp6.then(function () {});
67607
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
65581
67608
  });
65582
67609
  } catch (e) {
65583
67610
  return Promise.reject(e);
@@ -66339,7 +68366,8 @@ const componentsToRegister = {
66339
68366
  WSOLDApplication: OLDApplication,
66340
68367
  WSDivyangjan: WSDivyangjan,
66341
68368
  WSRainWaterHarvesting: WSRainWaterHarvesting,
66342
- WSExecuteDisconnection: WSExecuteDisconnection
68369
+ WSExecuteDisconnection: WSExecuteDisconnection,
68370
+ WSFieldInspection: WSFieldInspection
66343
68371
  };
66344
68372
  const initWSComponents = () => {
66345
68373
  Object.entries(componentsToRegister).forEach(_ref3 => {