@djb25/digit-ui-module-ws 1.0.115 → 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
  };
@@ -8484,7 +8487,7 @@ var lodash = createCommonjsModule(function (module, exports) {
8484
8487
  });
8485
8488
 
8486
8489
  const WSApplication = _ref => {
8487
- 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;
8488
8491
  let {
8489
8492
  application
8490
8493
  } = _ref;
@@ -8580,17 +8583,17 @@ const WSApplication = _ref => {
8580
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}`
8581
8584
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
8582
8585
  label: t("WS_VIEW_DETAILS_LABEL")
8583
- })), (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", {
8584
8587
  style: {
8585
8588
  marginTop: "10px"
8586
8589
  }
8587
8590
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
8588
8591
  label: t("MAKE_PAYMENT"),
8589
8592
  onSubmit: () => {
8590
- 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;
8591
8594
  history.push({
8592
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, "/", "+")}`,
8593
- 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}`,
8594
8597
  state: {}
8595
8598
  });
8596
8599
  }
@@ -8720,6 +8723,25 @@ const WSMyApplications = () => {
8720
8723
  },
8721
8724
  enabled: userMobileNumber ? true : false
8722
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);
8723
8745
  const [billAmendments, setBillAmendments] = React.useState([]);
8724
8746
  const [isBillAmendLoading, setIsBillAmendLoading] = React.useState(false);
8725
8747
  React.useEffect(() => {
@@ -8730,11 +8752,51 @@ const WSMyApplications = () => {
8730
8752
  setIsBillAmendLoading(true);
8731
8753
  const _temp = _finallyRethrows(function () {
8732
8754
  return _catch(function () {
8733
- return Promise.resolve(Digit.PaymentService.searchAmendment(tenantId, {
8734
- mobileNumber: userMobileNumber
8735
- })).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
+ });
8736
8798
  if (isMounted) {
8737
- setBillAmendments((res === null || res === void 0 ? void 0 : res.Amendments) || []);
8799
+ setBillAmendments(Array.from(allAmendmentsMap.values()));
8738
8800
  }
8739
8801
  });
8740
8802
  }, function (err) {
@@ -8756,10 +8818,7 @@ const WSMyApplications = () => {
8756
8818
  return () => {
8757
8819
  isMounted = false;
8758
8820
  };
8759
- }, [tenantId, userMobileNumber]);
8760
- const [pageOffset, setPageOffset] = React.useState(0);
8761
- const [pageSize, setPageSize] = React.useState(10);
8762
- const [searchParams, setSearchParams] = React.useState(null);
8821
+ }, [tenantId, userMobileNumber, data, SWdata, userConnections, searchParams === null || searchParams === void 0 ? void 0 : searchParams.applicationNo]);
8763
8822
  const isMobile = window.Digit.Utils.browser.isMobile();
8764
8823
  const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
8765
8824
  className: "cell-text"
@@ -8888,7 +8947,7 @@ const WSMyApplications = () => {
8888
8947
  Header: t("MAKE_PAYMENT"),
8889
8948
  disableSortBy: true,
8890
8949
  Cell: _ref0 => {
8891
- 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;
8892
8951
  let {
8893
8952
  row
8894
8953
  } = _ref0;
@@ -8896,12 +8955,12 @@ const WSMyApplications = () => {
8896
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");
8897
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"));
8898
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";
8899
- 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", {
8900
8959
  className: "link"
8901
8960
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
8902
8961
  to: {
8903
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, "/", "+")}`,
8904
- 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}`,
8905
8964
  state: {
8906
8965
  fromMyApplications: true
8907
8966
  }
@@ -10046,7 +10105,7 @@ const ResponseBillAmend = () => {
10046
10105
  };
10047
10106
 
10048
10107
  const ApplicationBillAmendment = () => {
10049
- 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;
10050
10109
  const [showToast, setShowToast] = React.useState(null);
10051
10110
  const {
10052
10111
  t
@@ -10076,6 +10135,27 @@ const ApplicationBillAmendment = () => {
10076
10135
  tenantId: stateId
10077
10136
  });
10078
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");
10079
10159
  const billSearchFilters = {
10080
10160
  tenantId,
10081
10161
  consumerCode: connectionNumber,
@@ -10085,9 +10165,9 @@ const ApplicationBillAmendment = () => {
10085
10165
  data: preBillSearchData,
10086
10166
  isLoading: isBillSearchLoading
10087
10167
  } = Digit.Hooks.usePaymentSearch(tenantId, billSearchFilters, {
10088
- enabled: !!connectionNumber
10168
+ enabled: !!connectionNumber && !isApplicationNo && !isConnInactive
10089
10169
  });
10090
- 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;
10091
10171
  React.useEffect(() => {
10092
10172
  var _editFormData, _editFormData2;
10093
10173
  if (editFormData !== null && editFormData !== void 0 && (_editFormData = editFormData[`${servicev1}_REDUCED_AMOUNT`]) !== null && _editFormData !== void 0 && _editFormData.VALUE) {
@@ -10127,7 +10207,7 @@ const ApplicationBillAmendment = () => {
10127
10207
  WS_ADDITIONAL_AMOUNT: {
10128
10208
  VALUE: false
10129
10209
  },
10130
- ...((_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)
10131
10211
  }
10132
10212
  });
10133
10213
  const {
@@ -10307,20 +10387,21 @@ const ApplicationBillAmendment = () => {
10307
10387
  setShowToast(null);
10308
10388
  };
10309
10389
  React.useEffect(() => {
10310
- const timer = setTimeout(() => {
10311
- 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(() => {
10312
10394
  if (isEmployee) {
10313
- var _state4, _state4$data, _state4$data$applicat, _state4$data$applicat2;
10314
- 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}`);
10315
10396
  } else {
10316
- 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}`);
10317
10398
  }
10318
- }
10319
- }, 5000);
10320
- return () => clearTimeout(timer);
10399
+ }, 1500);
10400
+ return () => clearTimeout(timer);
10401
+ }
10321
10402
  }, [goToAppDetailsPage]);
10322
10403
  const onFormSubmit = d => {
10323
- var _state5, _state5$data;
10404
+ var _state7, _state7$data;
10324
10405
  const data = {
10325
10406
  Amendment: {
10326
10407
  consumerCode: connectionNumber,
@@ -10347,17 +10428,18 @@ const ApplicationBillAmendment = () => {
10347
10428
  }
10348
10429
  }
10349
10430
  };
10350
- 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") {
10351
- 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";
10352
10434
  const workflow = {
10353
- 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,
10354
- 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,
10355
10437
  tenantId: tenantId,
10356
- businessService: "WS.AMENDMENT",
10357
- 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"
10358
10440
  };
10359
10441
  const AmendmentUpdate = {
10360
- ...((_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),
10361
10443
  workflow,
10362
10444
  ...(data === null || data === void 0 ? void 0 : data.Amendment)
10363
10445
  };
@@ -10413,13 +10495,13 @@ const ApplicationBillAmendment = () => {
10413
10495
  const onFormError = formErrors => {
10414
10496
  console.warn("Bill Amendment form errors:", formErrors);
10415
10497
  };
10416
- 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) {
10417
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, {
10418
10500
  style: {
10419
10501
  marginTop: "16px",
10420
10502
  marginBottom: "20px"
10421
10503
  }
10422
- }, 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, {
10423
10505
  label: t("WS_VIEW_MY_CONNECTIONS", "Go to My Connections"),
10424
10506
  onSubmit: () => history.push(isEmployee ? "/digit-ui/employee/ws/water/search-connection" : "/digit-ui/citizen/ws/my-connections")
10425
10507
  })));
@@ -10430,7 +10512,7 @@ const ApplicationBillAmendment = () => {
10430
10512
  style: {
10431
10513
  marginLeft: "20px"
10432
10514
  }
10433
- }, /*#__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, {
10434
10516
  style: {
10435
10517
  marginBottom: "20px"
10436
10518
  }
@@ -10846,7 +10928,7 @@ const ApplicationBillAmendment = () => {
10846
10928
  onClose: closeToast
10847
10929
  }) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10848
10930
  submit: true,
10849
- 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"),
10850
10932
  onSubmit: handleSubmit(onFormSubmit, onFormError)
10851
10933
  })));
10852
10934
  };
@@ -12936,8 +13018,8 @@ function getNative(object, key) {
12936
13018
  }
12937
13019
  var _getNative = getNative;
12938
13020
 
12939
- var Map = _getNative(_root, 'Map');
12940
- var _Map = Map;
13021
+ var Map$1 = _getNative(_root, 'Map');
13022
+ var _Map = Map$1;
12941
13023
 
12942
13024
  var nativeCreate = _getNative(Object, 'create');
12943
13025
  var _nativeCreate = nativeCreate;
@@ -16378,11 +16460,38 @@ function PropertyDocuments(_ref) {
16378
16460
  }
16379
16461
  }));
16380
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
+ };
16381
16490
  const renderDocumentRow = (value, index) => {
16382
16491
  var _pdfFiles$value$fileS;
16383
16492
  const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
16384
16493
  const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
16385
- 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);
16386
16495
  const isPhoto = value === null || value === void 0 ? void 0 : value.isPhoto;
16387
16496
  let typeLabel = "";
16388
16497
  let numLabel = "";
@@ -20643,7 +20752,7 @@ const ApplicationDetailsBillAmendment = () => {
20643
20752
  const queryParams = Digit.Hooks.useQueryParams();
20644
20753
  const applicationNumber = (queryParams === null || queryParams === void 0 ? void 0 : queryParams.applicationNumber) || (queryParams === null || queryParams === void 0 ? void 0 : queryParams.applicationNo);
20645
20754
  const isEmployee = window.location.href.includes("/employee");
20646
- 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");
20647
20756
  const {
20648
20757
  t
20649
20758
  } = reactI18next.useTranslation();
@@ -20667,8 +20776,9 @@ const ApplicationDetailsBillAmendment = () => {
20667
20776
  enabled: !!applicationNumber
20668
20777
  }
20669
20778
  });
20670
- 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 => {
20671
- 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)) {
20672
20782
  var _applicationDetails$a, _applicationDetails$a2;
20673
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`;
20674
20784
  action.redirectionUrll = {
@@ -21016,7 +21126,7 @@ const App = _ref => {
21016
21126
  className: "employee-form"
21017
21127
  }, /*#__PURE__*/React__default.createElement("div", {
21018
21128
  className: "employee-form-content"
21019
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21129
+ }, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21020
21130
  path: `${path}/create-application`,
21021
21131
  component: WSInfoPage
21022
21132
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
@@ -21096,6 +21206,13 @@ const App = _ref => {
21096
21206
  path: `${path}/mutation-application`,
21097
21207
  component: WSMutationApplication
21098
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,
21099
21216
  path: `${path}/bill-amendment`,
21100
21217
  component: props => /*#__PURE__*/React__default.createElement(WSApplicationBillAmendment, _extends({}, props, {
21101
21218
  path: path
@@ -21115,12 +21232,7 @@ const App = _ref => {
21115
21232
  component: props => /*#__PURE__*/React__default.createElement(ResponseBillAmend, _extends({}, props, {
21116
21233
  path: path
21117
21234
  }))
21118
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
21119
- path: `${path}/bill-amendment/application-details`,
21120
- component: props => /*#__PURE__*/React__default.createElement(WSApplicationDetailsBillAmendment, _extends({}, props, {
21121
- path: path
21122
- }))
21123
- })))))));
21235
+ }))))))));
21124
21236
  };
21125
21237
 
21126
21238
  const getPropertyAddress$2 = property => {
@@ -22789,6 +22901,1969 @@ const WSZROVerificationDetails = () => {
22789
22901
  }));
22790
22902
  };
22791
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
+
22792
24867
  const BILLSBreadCrumbs = _ref => {
22793
24868
  var _applicationDetails$a, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a13, _applicationDetails$a14, _reciept_data$Payment2;
22794
24869
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
@@ -23261,6 +25336,10 @@ const BILLSBreadCrumbs = _ref => {
23261
25336
  path: "/digit-ui/employee/ws/zro-verification-details",
23262
25337
  label: t("WS_APPLICATION_DETAILS_HEADER"),
23263
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
23264
25343
  }];
23265
25344
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
23266
25345
  crumbs[lastCrumbIndex] = {
@@ -23613,6 +25692,9 @@ const App$1 = _ref2 => {
23613
25692
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
23614
25693
  path: `${path}/zro-verification-details`,
23615
25694
  component: () => /*#__PURE__*/React__default.createElement(WSZROVerificationDetails, null)
25695
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
25696
+ path: `${path}/field-inspection`,
25697
+ component: WSFieldInspection
23616
25698
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
23617
25699
  path: `${path}/execute-disconnection`,
23618
25700
  component: WSExecuteDisconnection
@@ -29983,7 +32065,15 @@ function SelectDocument$2(_ref3) {
29983
32065
  });
29984
32066
  const [file, setFile] = React.useState(null);
29985
32067
  const [uploadedFile, setUploadedFile] = React.useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null);
29986
- 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
+ });
29987
32077
  const [isDocumentUidLocked, setIsDocumentUidLocked] = React.useState(false);
29988
32078
  const [showCamera, setShowCamera] = React.useState(false);
29989
32079
  const [isUploading, setIsUploading] = React.useState(false);
@@ -40872,6 +42962,10 @@ const WSCard = () => {
40872
42962
  label: t("WS_APPLY_MUTATION"),
40873
42963
  link: `/digit-ui/employee/ws/mutation-application`,
40874
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"]
40875
42969
  }, {
40876
42970
  label: t("WS_ZRO_VERIFICATION"),
40877
42971
  link: `/digit-ui/employee/ws/zro-application`,
@@ -44955,6 +47049,34 @@ const isPhotoDoc = (doc, code) => {
44955
47049
  const str = (((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "") + " " + (code || "")).toUpperCase();
44956
47050
  return str.includes("APPLICANTPHOTO") || str.includes("PHOTO");
44957
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
+ };
44958
47080
  function WSDocument(_ref) {
44959
47081
  var _value$documents;
44960
47082
  let {
@@ -45017,7 +47139,8 @@ function WSDocument(_ref) {
45017
47139
  const finalUrl = linkFromData || localLink || (typeof fileId === "string" && fileId.startsWith("http") ? fileId : "");
45018
47140
  const displayName = getDocumentDisplayName(document, Code, t);
45019
47141
  const isPhoto = isPhotoDoc(document, Code);
45020
- 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);
45021
47144
  return /*#__PURE__*/React__default.createElement("div", {
45022
47145
  style: {
45023
47146
  display: "flex",
@@ -45082,7 +47205,7 @@ function WSDocument(_ref) {
45082
47205
  maxWidth: "200px",
45083
47206
  lineHeight: "1.3"
45084
47207
  }
45085
- }, displayName), docNum ? /*#__PURE__*/React__default.createElement("p", {
47208
+ }, displayName), !isPhotoOrSig && /*#__PURE__*/React__default.createElement("p", {
45086
47209
  style: {
45087
47210
  marginTop: "4px",
45088
47211
  fontSize: "13px",
@@ -45090,7 +47213,7 @@ function WSDocument(_ref) {
45090
47213
  wordBreak: "break-all",
45091
47214
  maxWidth: "200px"
45092
47215
  }
45093
- }, 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", {
45094
47217
  style: {
45095
47218
  marginTop: "10px"
45096
47219
  }
@@ -45247,33 +47370,33 @@ const checkForNA$2 = value => {
45247
47370
  return value ? value : "CS_NA";
45248
47371
  };
45249
47372
  const WSApplicationDetails = () => {
45250
- 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$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, _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$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$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection169, _data$WaterConnection170, _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$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect172, _data$SewerageConnect173, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect179, _data$SewerageConnect180, _data$SewerageConnect181, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$SewerageConnect185, _data$SewerageConnect186, _data$SewerageConnect187, _data$SewerageConnect188, _data$SewerageConnect189, _data$WaterConnection187, _data$WaterConnection188, _data$WaterConnection189, _data$WaterConnection190, _data$WaterConnection191, _data$WaterConnection192, _data$WaterConnection193, _data$WaterConnection194, _data$WaterConnection195, _data$WaterConnection196, _data$WaterConnection197, _data$WaterConnection198, _data$WaterConnection199, _data$SewerageConnect190, _data$SewerageConnect191, _data$SewerageConnect192, _data$SewerageConnect193, _data$WaterConnection200, _data$SewerageConnect194, _data$WaterConnection201, _data$WaterConnection202, _data$WaterConnection203, _data$WaterConnection204, _data$SewerageConnect195, _data$SewerageConnect196, _data$SewerageConnect197, _data$WaterConnection205, _data$WaterConnection206, _data$WaterConnection207, _data$SewerageConnect198, _data$SewerageConnect199, _data$SewerageConnect200, _data$WaterConnection215, _data$WaterConnection216, _data$WaterConnection217, _data$SewerageConnect207, _data$SewerageConnect208, _data$SewerageConnect209;
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;
45251
47374
  const getDisconnectionNoticeSearch = function () {
45252
47375
  try {
45253
- var _data$WaterConnection219, _data$WaterConnection220, _data$SewerageConnect211, _data$SewerageConnect212;
47376
+ var _data$WaterConnection227, _data$WaterConnection228, _data$SewerageConnect219, _data$SewerageConnect220;
45254
47377
  let key = "ws-waterdisconnectionnotice";
45255
47378
  let details = {};
45256
47379
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
45257
- var _data$WaterConnection218, _PTData$Properties33;
47380
+ var _data$WaterConnection226, _PTData$Properties59;
45258
47381
  details = {
45259
47382
  WaterConnection: [{
45260
- ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection218 = data.WaterConnection) === null || _data$WaterConnection218 === void 0 ? void 0 : _data$WaterConnection218[0]),
45261
- 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]
45262
47385
  }]
45263
47386
  };
45264
47387
  } else {
45265
- var _data$SewerageConnect210, _PTData$Properties34;
47388
+ var _data$SewerageConnect218, _PTData$Properties60;
45266
47389
  key = "ws-seweragedisconnectionnotice";
45267
47390
  details = {
45268
47391
  SewerageConnection: [{
45269
- ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect210 = data.SewerageConnections) === null || _data$SewerageConnect210 === void 0 ? void 0 : _data$SewerageConnect210[0]),
45270
- 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]
45271
47394
  }]
45272
47395
  };
45273
47396
  }
45274
- return Promise.resolve(Digit.WSService.WSDisconnectionNotice((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.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect211 = data.SewerageConnections) === null || _data$SewerageConnect211 === void 0 ? void 0 : (_data$SewerageConnect212 = _data$SewerageConnect211[0]) === null || _data$SewerageConnect212 === void 0 ? void 0 : _data$SewerageConnect212.tenantId), details, key)).then(function (response) {
45275
- var _data$WaterConnection221, _data$WaterConnection222, _data$SewerageConnect213, _data$SewerageConnect214;
45276
- return Promise.resolve(Digit.PaymentService.printReciept((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), {
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), {
45277
47400
  fileStoreIds: response.filestoreIds[0]
45278
47401
  })).then(function (fileStore) {
45279
47402
  window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
@@ -45437,10 +47560,10 @@ const WSApplicationDetails = () => {
45437
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) || {};
45438
47561
  const djbEmployee = additionalDetails;
45439
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;
45440
- 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) || "";
45441
- 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) || "";
45442
- 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) || "";
45443
- 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) || "";
45444
47567
  const getFloorDisplay = val => {
45445
47568
  if (val === undefined || val === null || val === "") return "";
45446
47569
  if (typeof val === "object") {
@@ -45462,7 +47585,7 @@ const WSApplicationDetails = () => {
45462
47585
  }) || false;
45463
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);
45464
47587
  const isDisconnectionExecuted = applicationStatus === "DISCONNECTION_EXECUTED";
45465
- 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;
45466
47589
  const {
45467
47590
  isLoading: isAppDetailsLoading,
45468
47591
  data: appDetailsData
@@ -45597,6 +47720,8 @@ const WSApplicationDetails = () => {
45597
47720
  break;
45598
47721
  case "PENDING_APPROVAL_FOR_CONNECTION":
45599
47722
  case "PENDING_FOR_PAYMENT":
47723
+ case "PENDING_FOR_INFRA_PAYMENT_ZRO":
47724
+ case "PENDING_FOR_INFRA_PAYMENT_EE":
45600
47725
  downloadOptions = downloadOptions.concat(applicationDownloadObject, wsEstimateDownloadObject);
45601
47726
  break;
45602
47727
  case "PENDING_FOR_CONNECTION_ACTIVATION":
@@ -45980,32 +48105,41 @@ const WSApplicationDetails = () => {
45980
48105
  }
45981
48106
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45982
48107
  label: t("WS_CATEGORY_TYPE"),
45983
- 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)))}`
45984
48109
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45985
48110
  label: t("WS_PROPERTY_CATEGORY"),
45986
- 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)))}`
45987
48112
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45988
48113
  label: t("WS_PROPERTY_TYPE"),
45989
- 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)))}`
45990
48115
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45991
48116
  label: t("WS_NUMBER_OF_FLOORS"),
45992
- 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))))}`
45993
48118
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45994
48119
  label: t("WS_PLOT_AREA"),
45995
- 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))}`
45996
48121
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
45997
48122
  label: t("WS_BUILT_UP_AREA"),
45998
- 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))}`
45999
48124
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46000
48125
  label: t("WS_HEIGHT_OF_THE_BUILDING"),
46001
- 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))}`
46002
48127
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
46003
48128
  label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
46004
- 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)))}`
46005
- }), 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, {
46006
48131
  label: t("WS_NUMBER_OF_DWELLING_UNITS"),
46007
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
46008
- }) : 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) => {
46009
48143
  var _q$answer, _q$answer2, _q$answer3;
46010
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}`;
46011
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;
@@ -46245,46 +48379,48 @@ const WSApplicationDetails = () => {
46245
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, {
46246
48380
  label: t("WS_COMMON_COMMENTS"),
46247
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")
46248
- }))), (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$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" ? /*#__PURE__*/React__default.createElement("div", {
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", {
46249
48383
  style: {
46250
48384
  marginTop: "10px"
46251
48385
  }
46252
48386
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46253
48387
  label: t("MAKE_PAYMENT"),
46254
48388
  onSubmit: () => {
46255
- var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _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;
46256
48392
  history.push({
46257
- 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, "/", "+")}`,
46258
- search: `?workflow=WNS&tenantId=${(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.tenantId) || (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.tenantId)}&ConsumerName=${(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$WaterConnection163 = _data$WaterConnection162.connectionHolders) === null || _data$WaterConnection163 === void 0 ? void 0 : _data$WaterConnection163.map(owner => owner.name).join(",")) || (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$SewerageConnect158 = _data$SewerageConnect157.connectionHolders) === null || _data$SewerageConnect158 === void 0 ? void 0 : _data$SewerageConnect158.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}`,
46259
48395
  state: {
46260
48396
  fromApplicationDetails: true
46261
48397
  }
46262
48398
  });
46263
48399
  }
46264
- })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection164 = data.WaterConnection) !== null && _data$WaterConnection164 !== void 0 && (_data$WaterConnection165 = _data$WaterConnection164[0]) !== null && _data$WaterConnection165 !== void 0 && (_data$WaterConnection166 = _data$WaterConnection165.applicationType) !== null && _data$WaterConnection166 !== void 0 && _data$WaterConnection166.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && (_data$WaterConnection168 = _data$WaterConnection167[0]) !== null && _data$WaterConnection168 !== void 0 && _data$WaterConnection168.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect159 = data.SewerageConnections) !== null && _data$SewerageConnect159 !== void 0 && (_data$SewerageConnect160 = _data$SewerageConnect159[0]) !== null && _data$SewerageConnect160 !== void 0 && (_data$SewerageConnect161 = _data$SewerageConnect160.applicationType) !== null && _data$SewerageConnect161 !== void 0 && _data$SewerageConnect161.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect162 = data.SewerageConnections) !== null && _data$SewerageConnect162 !== void 0 && (_data$SewerageConnect163 = _data$SewerageConnect162[0]) !== null && _data$SewerageConnect163 !== void 0 && _data$SewerageConnect163.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, {
46265
48401
  to: {
46266
- pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(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$WaterConnection170.tenantId) || (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$SewerageConnect165.tenantId)}`,
46267
- search: isMutation ? `?applicationNumber=${(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.applicationNo) || (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.applicationNo)}&tenantId=${(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.tenantId) || (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.tenantId)}&service=${data !== null && data !== void 0 && (_data$WaterConnection175 = data.WaterConnection) !== null && _data$WaterConnection175 !== void 0 && _data$WaterConnection175[0] ? "WATER" : "SEWERAGE"}&propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.propertyId) || (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.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)}` : "",
46268
48404
  state: {
46269
- id: `${(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.applicationNo) || (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.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)}`
46270
48406
  }
46271
48407
  }
46272
48408
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46273
48409
  label: t("COMMON_EDIT")
46274
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection180 = data.WaterConnection) !== null && _data$WaterConnection180 !== void 0 && (_data$WaterConnection181 = _data$WaterConnection180[0]) !== null && _data$WaterConnection181 !== void 0 && (_data$WaterConnection182 = _data$WaterConnection181.applicationType) !== null && _data$WaterConnection182 !== void 0 && _data$WaterConnection182.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection183 = data.WaterConnection) !== null && _data$WaterConnection183 !== void 0 && (_data$WaterConnection184 = _data$WaterConnection183[0]) !== null && _data$WaterConnection184 !== void 0 && _data$WaterConnection184.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect174 = data.SewerageConnections) !== null && _data$SewerageConnect174 !== void 0 && (_data$SewerageConnect175 = _data$SewerageConnect174[0]) !== null && _data$SewerageConnect175 !== void 0 && (_data$SewerageConnect176 = _data$SewerageConnect175.applicationType) !== null && _data$SewerageConnect176 !== void 0 && _data$SewerageConnect176.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect177 = data.SewerageConnections) !== null && _data$SewerageConnect177 !== void 0 && (_data$SewerageConnect178 = _data$SewerageConnect177[0]) !== null && _data$SewerageConnect178 !== void 0 && _data$SewerageConnect178.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, {
46275
48411
  to: {
46276
48412
  pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
46277
48413
  state: {
46278
- id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection185 = data.WaterConnection) === null || _data$WaterConnection185 === void 0 ? void 0 : (_data$WaterConnection186 = _data$WaterConnection185[0]) === null || _data$WaterConnection186 === void 0 ? void 0 : _data$WaterConnection186.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect179 = data.SewerageConnections) === null || _data$SewerageConnect179 === void 0 ? void 0 : (_data$SewerageConnect180 = _data$SewerageConnect179[0]) === null || _data$SewerageConnect180 === void 0 ? void 0 : _data$SewerageConnect180.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)}`
46279
48415
  }
46280
48416
  }
46281
48417
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46282
48418
  label: t("RESUBMIT_APPLICATION"),
46283
48419
  onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
46284
- applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0],
48420
+ applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect189 = data.SewerageConnections) === null || _data$SewerageConnect189 === void 0 ? void 0 : _data$SewerageConnect189[0],
46285
48421
  serviceType: "SEWERAGE",
46286
48422
  WSDisconnectionForm: {
46287
- type: 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$SewerageConnect183.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 ? {
46288
48424
  code: "type",
46289
48425
  value: {
46290
48426
  name: "Temporary",
@@ -46301,18 +48437,18 @@ const WSApplicationDetails = () => {
46301
48437
  code: "Permanent"
46302
48438
  }
46303
48439
  },
46304
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect184 = data.SewerageConnections) === null || _data$SewerageConnect184 === void 0 ? void 0 : (_data$SewerageConnect185 = _data$SewerageConnect184[0]) === null || _data$SewerageConnect185 === void 0 ? void 0 : _data$SewerageConnect185.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),
46305
48441
  reason: {
46306
48442
  code: "reason",
46307
- value: 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.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
46308
48444
  },
46309
- documents: 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.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
46310
48446
  }
46311
48447
  } : {
46312
- applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection187 = data.WaterConnection) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187[0],
48448
+ applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection195 = data.WaterConnection) === null || _data$WaterConnection195 === void 0 ? void 0 : _data$WaterConnection195[0],
46313
48449
  serviceType: "WATER",
46314
48450
  WSDisconnectionForm: {
46315
- type: 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$WaterConnection189.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 ? {
46316
48452
  code: "type",
46317
48453
  value: {
46318
48454
  name: "Temporary",
@@ -46329,28 +48465,28 @@ const WSApplicationDetails = () => {
46329
48465
  code: "Permanent"
46330
48466
  }
46331
48467
  },
46332
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection190 = data.WaterConnection) === null || _data$WaterConnection190 === void 0 ? void 0 : (_data$WaterConnection191 = _data$WaterConnection190[0]) === null || _data$WaterConnection191 === void 0 ? void 0 : _data$WaterConnection191.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),
46333
48469
  reason: {
46334
48470
  code: "reason",
46335
- value: 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.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
46336
48472
  },
46337
- documents: 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.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
46338
48474
  }
46339
48475
  })
46340
- })) : null, 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.applicationType.includes("DISCONNECT") && 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.applicationStatus.includes("PENDING_FOR_DISCONNECTION_EXECUTION") || 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.applicationType.includes("DISCONNECT") && 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.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, {
46341
48477
  to: {
46342
48478
  pathname: `/digit-ui/citizen/ws/execute-disconnection`,
46343
48479
  state: {
46344
- applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection200 = data.WaterConnection) === null || _data$WaterConnection200 === void 0 ? void 0 : _data$WaterConnection200[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect194 = data.SewerageConnections) === null || _data$SewerageConnect194 === void 0 ? void 0 : _data$SewerageConnect194[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]),
46345
48481
  action: {
46346
48482
  action: "EXECUTE_DISCONNECTION"
46347
48483
  },
46348
- serviceType: data !== null && data !== void 0 && (_data$WaterConnection201 = data.WaterConnection) !== null && _data$WaterConnection201 !== void 0 && _data$WaterConnection201[0] ? "WATER" : "SEWERAGE"
48484
+ serviceType: data !== null && data !== void 0 && (_data$WaterConnection209 = data.WaterConnection) !== null && _data$WaterConnection209 !== void 0 && _data$WaterConnection209[0] ? "WATER" : "SEWERAGE"
46349
48485
  }
46350
48486
  }
46351
48487
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
46352
48488
  label: t("WS_EXECUTE_DISCONNECTION")
46353
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection202 = data.WaterConnection) !== null && _data$WaterConnection202 !== void 0 && (_data$WaterConnection203 = _data$WaterConnection202[0]) !== null && _data$WaterConnection203 !== void 0 && (_data$WaterConnection204 = _data$WaterConnection203.applicationStatus) !== null && _data$WaterConnection204 !== void 0 && _data$WaterConnection204.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect195 = data.SewerageConnections) !== null && _data$SewerageConnect195 !== void 0 && (_data$SewerageConnect196 = _data$SewerageConnect195[0]) !== null && _data$SewerageConnect196 !== void 0 && (_data$SewerageConnect197 = _data$SewerageConnect196.applicationStatus) !== null && _data$SewerageConnect197 !== void 0 && _data$SewerageConnect197.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$WaterConnection205 = data.WaterConnection) !== null && _data$WaterConnection205 !== void 0 && (_data$WaterConnection206 = _data$WaterConnection205[0]) !== null && _data$WaterConnection206 !== void 0 && (_data$WaterConnection207 = _data$WaterConnection206.applicationStatus) !== null && _data$WaterConnection207 !== void 0 && _data$WaterConnection207.includes("PENDING_FOR_RECONNECTION_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$SewerageConnect200 = _data$SewerageConnect199.applicationStatus) !== null && _data$SewerageConnect200 !== void 0 && _data$SewerageConnect200.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", {
46354
48490
  type: "button",
46355
48491
  style: {
46356
48492
  padding: "12px 24px",
@@ -46365,19 +48501,19 @@ const WSApplicationDetails = () => {
46365
48501
  display: "inline-block"
46366
48502
  },
46367
48503
  onClick: () => {
46368
- var _data$WaterConnection208, _data$WaterConnection209, _data$WaterConnection210, _data$SewerageConnect201, _data$SewerageConnect202, _data$SewerageConnect203, _data$WaterConnection211, _data$WaterConnection212, _data$SewerageConnect204, _data$SewerageConnect205, _data$WaterConnection213, _data$WaterConnection214, _data$SewerageConnect206;
46369
- const isPendingMeter = (data === null || data === void 0 ? void 0 : (_data$WaterConnection208 = data.WaterConnection) === null || _data$WaterConnection208 === void 0 ? void 0 : (_data$WaterConnection209 = _data$WaterConnection208[0]) === null || _data$WaterConnection209 === void 0 ? void 0 : (_data$WaterConnection210 = _data$WaterConnection209.applicationStatus) === null || _data$WaterConnection210 === void 0 ? void 0 : _data$WaterConnection210.includes("PENDING_FOR_METER_INSTALLATION")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect201 = data.SewerageConnections) === null || _data$SewerageConnect201 === void 0 ? void 0 : (_data$SewerageConnect202 = _data$SewerageConnect201[0]) === null || _data$SewerageConnect202 === void 0 ? void 0 : (_data$SewerageConnect203 = _data$SewerageConnect202.applicationStatus) === null || _data$SewerageConnect203 === void 0 ? void 0 : _data$SewerageConnect203.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"));
46370
48506
  const currentAction = isPendingMeter ? "ENTER_METER_DETAILS" : "ACTIVATE_CONNECTION";
46371
48507
  history.push({
46372
48508
  pathname: `/digit-ui/citizen/ws/activate-connection`,
46373
- search: `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection211 = data.WaterConnection) === null || _data$WaterConnection211 === void 0 ? void 0 : (_data$WaterConnection212 = _data$WaterConnection211[0]) === null || _data$WaterConnection212 === void 0 ? void 0 : _data$WaterConnection212.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect204 = data.SewerageConnections) === null || _data$SewerageConnect204 === void 0 ? void 0 : (_data$SewerageConnect205 = _data$SewerageConnect204[0]) === null || _data$SewerageConnect205 === void 0 ? void 0 : _data$SewerageConnect205.applicationNo)}&service=${data !== null && data !== void 0 && (_data$WaterConnection213 = data.WaterConnection) !== null && _data$WaterConnection213 !== void 0 && _data$WaterConnection213[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}`,
46374
48510
  state: {
46375
- applicationData: (data === null || data === void 0 ? void 0 : (_data$WaterConnection214 = data.WaterConnection) === null || _data$WaterConnection214 === void 0 ? void 0 : _data$WaterConnection214[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect206 = data.SewerageConnections) === null || _data$SewerageConnect206 === void 0 ? void 0 : _data$SewerageConnect206[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]),
46376
48512
  action: currentAction
46377
48513
  }
46378
48514
  });
46379
48515
  }
46380
- }, data !== null && data !== void 0 && (_data$WaterConnection215 = data.WaterConnection) !== null && _data$WaterConnection215 !== void 0 && (_data$WaterConnection216 = _data$WaterConnection215[0]) !== null && _data$WaterConnection216 !== void 0 && (_data$WaterConnection217 = _data$WaterConnection216.applicationStatus) !== null && _data$WaterConnection217 !== void 0 && _data$WaterConnection217.includes("PENDING_FOR_METER_INSTALLATION") || data !== null && data !== void 0 && (_data$SewerageConnect207 = data.SewerageConnections) !== null && _data$SewerageConnect207 !== void 0 && (_data$SewerageConnect208 = _data$SewerageConnect207[0]) !== null && _data$SewerageConnect208 !== void 0 && (_data$SewerageConnect209 = _data$SewerageConnect208.applicationStatus) !== null && _data$SewerageConnect209 !== void 0 && _data$SewerageConnect209.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, {
46381
48517
  open: showDocModal,
46382
48518
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
46383
48519
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -49126,7 +51262,7 @@ const EditApplication = _ref1 => {
49126
51262
  };
49127
51263
  const createApplication = function () {
49128
51264
  try {
49129
- 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;
49130
51266
  if (params !== null && params !== void 0 && (_params$DocumentsRequ = params.DocumentsRequired) !== null && _params$DocumentsRequ !== void 0 && _params$DocumentsRequ.documents) {
49131
51267
  params.documents = {
49132
51268
  documents: params.DocumentsRequired.documents
@@ -49220,6 +51356,14 @@ const EditApplication = _ref1 => {
49220
51356
  params.SewerageConnectionResult.SewerageConnections[0].propertyId = propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId;
49221
51357
  }
49222
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);
49223
51367
  history.push(`${getPath$3(match.path, match.params)}/acknowledgement`);
49224
51368
  return Promise.resolve();
49225
51369
  } catch (e) {
@@ -50350,7 +52494,7 @@ const BannerPicker$2 = props => {
50350
52494
  });
50351
52495
  };
50352
52496
  const WSAcknowledgement = _ref => {
50353
- 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;
50354
52498
  let {
50355
52499
  data,
50356
52500
  onSuccess,
@@ -50377,9 +52521,18 @@ const WSAcknowledgement = _ref => {
50377
52521
  const mutationTriggeredRef = React__default.useRef(false);
50378
52522
  const swMutationTriggeredRef = React__default.useRef(false);
50379
52523
  const handleSuccess = res => {
52524
+ var _data$cpt, _data$cpt$details;
50380
52525
  sessionStorage.removeItem("WS_EDIT_APPLICATION_V5");
50381
52526
  sessionStorage.removeItem("WaterInitialObject");
50382
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
+ }
50383
52536
  if (onSuccess) onSuccess(res);
50384
52537
  };
50385
52538
  React.useEffect(() => {
@@ -50388,9 +52541,9 @@ const WSAcknowledgement = _ref => {
50388
52541
  var _data$serviceName, _data$serviceName2;
50389
52542
  let tenantId;
50390
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") {
50391
- var _data$cpt, _data$cpt$details;
52544
+ var _data$cpt2, _data$cpt2$details;
50392
52545
  mutationTriggeredRef.current = true;
50393
- 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;
50394
52547
  let formdata = isEdit ? convertToEditWSUpdate(data) : convertToWSUpdate(data);
50395
52548
  const formdataNew = {
50396
52549
  ...formdata,
@@ -50422,30 +52575,30 @@ const WSAcknowledgement = _ref => {
50422
52575
  }
50423
52576
  }, [data, WSmutation.isSuccess]);
50424
52577
  const handleDownloadPdfWater = () => {
50425
- var _WSmutation$data, _WSmutation$data$Wate, _data$cpt4;
52578
+ var _WSmutation$data, _WSmutation$data$Wate, _data$cpt5;
50426
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];
50427
52580
  const tenantInfo = tenants.find(tenant => {
50428
- var _data$cpt3, _data$cpt3$details;
50429
- 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);
50430
52583
  });
50431
52584
  const data1 = getWSAcknowledgementData({
50432
52585
  ...WSmutationdata
50433
52586
  }, {
50434
- ...(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)
50435
52588
  }, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
50436
52589
  data1.then(ress => Digit.Utils.pdf.generatev1(ress));
50437
52590
  };
50438
52591
  const handleDownloadPdfSewerage = () => {
50439
- var _SWmutation$data, _SWmutation$data$Sewe, _data$cpt6;
52592
+ var _SWmutation$data, _SWmutation$data$Sewe, _data$cpt7;
50440
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];
50441
52594
  const tenantInfo = tenants.find(tenant => {
50442
- var _data$cpt5, _data$cpt5$details;
50443
- 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);
50444
52597
  });
50445
52598
  const data2 = getWSAcknowledgementData({
50446
52599
  ...SWmutationdata
50447
52600
  }, {
50448
- ...(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)
50449
52602
  }, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
50450
52603
  data2.then(ress => Digit.Utils.pdf.generatev1(ress));
50451
52604
  };
@@ -50486,7 +52639,22 @@ const WSAcknowledgement = _ref => {
50486
52639
  className: "download-button"
50487
52640
  }, t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))),
50488
52641
  onClick: handleDownloadPdfSewerage
50489
- }), /*#__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, {
50490
52658
  to: {
50491
52659
  pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
50492
52660
  }
@@ -66198,7 +68366,8 @@ const componentsToRegister = {
66198
68366
  WSOLDApplication: OLDApplication,
66199
68367
  WSDivyangjan: WSDivyangjan,
66200
68368
  WSRainWaterHarvesting: WSRainWaterHarvesting,
66201
- WSExecuteDisconnection: WSExecuteDisconnection
68369
+ WSExecuteDisconnection: WSExecuteDisconnection,
68370
+ WSFieldInspection: WSFieldInspection
66202
68371
  };
66203
68372
  const initWSComponents = () => {
66204
68373
  Object.entries(componentsToRegister).forEach(_ref3 => {