@djb25/digit-ui-module-ws 1.0.118 → 1.0.119

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.
@@ -579,6 +579,29 @@ const getSignatureDetails = data => {
579
579
  signatureFileName
580
580
  };
581
581
  };
582
+ const getNormalizedBankDetails = data => {
583
+ var _data$bankDetails, _data$additionalDetai6;
584
+ const bank = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.bankDetails) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
585
+ const bankName = (bank === null || bank === void 0 ? void 0 : bank.bankName) || "";
586
+ const branchName = (bank === null || bank === void 0 ? void 0 : bank.branchName) || (bank === null || bank === void 0 ? void 0 : bank.bankBranchName) || "";
587
+ const ifscCode = (bank === null || bank === void 0 ? void 0 : bank.ifscCode) || "";
588
+ const accountNumber = (bank === null || bank === void 0 ? void 0 : bank.bankAccountNumber) || (bank === null || bank === void 0 ? void 0 : bank.accountNumber) || "";
589
+ const accountHolderName = (bank === null || bank === void 0 ? void 0 : bank.accountHolderName) || "";
590
+ const confirmAccountNumber = (bank === null || bank === void 0 ? void 0 : bank.confirmAccountNumber) || accountNumber || "";
591
+ if (!bankName && !branchName && !ifscCode && !accountNumber) {
592
+ return null;
593
+ }
594
+ return {
595
+ bankName,
596
+ branchName,
597
+ bankBranchName: branchName,
598
+ ifscCode,
599
+ accountNumber,
600
+ bankAccountNumber: accountNumber,
601
+ accountHolderName,
602
+ confirmAccountNumber
603
+ };
604
+ };
582
605
  const createPayloadOfWS = function (data) {
583
606
  try {
584
607
  var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents2, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$rainWaterHarves, _data$rainWaterHarves2, _data$rainWaterHarves3, _data$rainWaterHarves4, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$djbEmployee6, _allDocuments$find, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _connectionDetailsObj2, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj3, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$propertyAddress16, _data$propertyAddress17, _data$propertyAddress18, _data$propertyAddress19, _data$cpt18, _data$cpt18$details, _data$cpt18$details$a, _data$cpt19, _data$cpt19$details, _data$cpt19$details$a, _data$cpt20, _data$cpt20$details, _data$propertyAddress20, _data$propertyAddress21, _data$propertyAddress22, _data$propertyAddress23, _useDetailsObject$noO2, _data$cpt21, _data$cpt21$details, _data$cpt21$details$a, _data$cpt22, _data$cpt22$details, _data$propertyAddress24, _data$propertyAddress25, _data$cpt23, _data$cpt23$details, _data$cpt23$details$a, _data$cpt24, _data$cpt24$details, _data$cpt24$details$a, _data$cpt25, _data$cpt25$details, _data$propertyAddress26, _data$propertyAddress27, _data$cpt26, _data$cpt26$details, _data$cpt26$details$a, _data$cpt27, _data$cpt27$details, _data$cpt27$details$a, _data$cpt28, _data$cpt28$details, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents3, _data$documents4, _data$documents5, _data$documents6, _allDocuments$find2, _allDocuments$find3, _data$cpt29, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
@@ -753,7 +776,10 @@ const createPayloadOfWS = function (data) {
753
776
  var _d$documentType5;
754
777
  return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType5 = d.documentType) === null || _d$documentType5 === void 0 ? void 0 : _d$documentType5.includes("DJB_EMPLOYEE_ID"));
755
778
  })) === null || _allDocuments$find === void 0 ? void 0 : _allDocuments$find.fileStoreId) || undefined,
756
- ...(data === null || data === void 0 ? void 0 : data.bankDetails),
779
+ ...(getNormalizedBankDetails(data) ? {
780
+ ...getNormalizedBankDetails(data),
781
+ bankDetails: getNormalizedBankDetails(data)
782
+ } : {}),
757
783
  ...(data === null || data === void 0 ? void 0 : data.declarationData),
758
784
  ...(data === null || data === void 0 ? void 0 : data.declaration),
759
785
  ...(signatureFileStoreId ? {
@@ -806,6 +832,10 @@ const createPayloadOfWS = function (data) {
806
832
  var _d$documentType8, _d$documentType9;
807
833
  return (d === null || d === void 0 ? void 0 : (_d$documentType8 = d.documentType) === null || _d$documentType8 === void 0 ? void 0 : _d$documentType8.includes("OTHER_DOCUMENTS")) || (d === null || d === void 0 ? void 0 : (_d$documentType9 = d.documentType) === null || _d$documentType9 === void 0 ? void 0 : _d$documentType9.includes("OTHERDOCUMENTS"));
808
834
  })) === null || _allDocuments$find3 === void 0 ? void 0 : _allDocuments$find3.remarks),
835
+ ...(getNormalizedBankDetails(data) ? {
836
+ ...getNormalizedBankDetails(data),
837
+ bankDetails: getNormalizedBankDetails(data)
838
+ } : {}),
809
839
  detailsProvidedBy: "",
810
840
  channel: isCitizen ? "CITIZEN" : "CFC_COUNTER"
811
841
  },
@@ -830,7 +860,7 @@ const createPayloadOfWS = function (data) {
830
860
  };
831
861
  const updatePayloadOfWS = function (data, type) {
832
862
  try {
833
- var _data$additionalDetai6, _data$additionalDetai7, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
863
+ var _data$additionalDetai7, _data$additionalDetai8, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
834
864
  const {
835
865
  signatureFileStoreId,
836
866
  signatureFileName
@@ -872,8 +902,8 @@ const updatePayloadOfWS = function (data, type) {
872
902
  fileName: signatureFileName
873
903
  }
874
904
  } : {}),
875
- connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.connectionType) || "Permanent",
876
- waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.waterDemandType) || {
905
+ connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.connectionType) || "Permanent",
906
+ waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai8 = data.additionalDetails) === null || _data$additionalDetai8 === void 0 ? void 0 : _data$additionalDetai8.waterDemandType) || {
877
907
  code: "NON_BULK",
878
908
  i18nKey: "WS_WATER_DEMAND_NON_BULK"
879
909
  }
@@ -1032,7 +1062,10 @@ const convertToWSUpdate = data => {
1032
1062
  hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves5 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves5 !== void 0 && _data$rainWaterHarves5.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves6 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves6 !== void 0 && _data$rainWaterHarves6.isRainwaterHarvesting),
1033
1063
  isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves7 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves7 !== void 0 && _data$rainWaterHarves7.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves8 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves8 !== void 0 && _data$rainWaterHarves8.isRainwaterHarvesting)
1034
1064
  } : {}),
1035
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {})
1065
+ ...(getNormalizedBankDetails(data) ? {
1066
+ ...getNormalizedBankDetails(data),
1067
+ bankDetails: getNormalizedBankDetails(data)
1068
+ } : {})
1036
1069
  },
1037
1070
  processInstance: {
1038
1071
  action: "SUBMIT_APPLICATION"
@@ -1043,7 +1076,7 @@ const convertToWSUpdate = data => {
1043
1076
  return formdata;
1044
1077
  };
1045
1078
  const convertToEditWSUpdate = data => {
1046
- 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;
1079
+ var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$additionalDetai9, _data$additionalDetai0, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai1, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai10, _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$additionalDetai11, _waterResult$addition4, _data$additionalDetai12, _waterResult$addition5, _data$additionalDetai13, _waterResult$addition6, _data$additionalDetai14, _waterResult$addition7, _data$waterConnection3, _data$additionalDetai15, _waterResult$addition8, _data$waterConnection4, _data$additionalDetai16, _waterResult$addition9, _data$waterConnection5, _data$additionalDetai17, _waterResult$addition0, _data$waterConnection6, _data$additionalDetai18, _waterResult$addition1, _data$additionalDetai19, _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;
1047
1080
  const {
1048
1081
  signatureFileStoreId,
1049
1082
  signatureFileName
@@ -1081,9 +1114,9 @@ const convertToEditWSUpdate = data => {
1081
1114
  fileName: signatureFileName
1082
1115
  }
1083
1116
  } : {}),
1084
- CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai8 = data.additionalDetails) === null || _data$additionalDetai8 === void 0 ? void 0 : _data$additionalDetai8.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai9 = data.additionalDetails) === null || _data$additionalDetai9 === void 0 ? void 0 : _data$additionalDetai9.CompletelySatisfied : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition = waterResult.additionalDetails) === null || _waterResult$addition === void 0 ? void 0 : _waterResult$addition.CompletelySatisfied,
1085
- addressType: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai3 = data.ConnectionDetails) === null || _data$ConnectionDetai3 === void 0 ? void 0 : (_data$ConnectionDetai4 = _data$ConnectionDetai3[0]) === null || _data$ConnectionDetai4 === void 0 ? void 0 : (_data$ConnectionDetai5 = _data$ConnectionDetai4.addressType) === null || _data$ConnectionDetai5 === void 0 ? void 0 : _data$ConnectionDetai5.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai6 = data.ConnectionDetails) === null || _data$ConnectionDetai6 === void 0 ? void 0 : (_data$ConnectionDetai7 = _data$ConnectionDetai6[0]) === null || _data$ConnectionDetai7 === void 0 ? void 0 : _data$ConnectionDetai7.addressType) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai0 = data.additionalDetails) === null || _data$additionalDetai0 === void 0 ? void 0 : _data$additionalDetai0.addressType : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.addressType) || "",
1086
- completeAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai8 = data.ConnectionDetails) === null || _data$ConnectionDetai8 === void 0 ? void 0 : (_data$ConnectionDetai9 = _data$ConnectionDetai8[0]) === null || _data$ConnectionDetai9 === void 0 ? void 0 : _data$ConnectionDetai9.completeAddress) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai1 = data.additionalDetails) === null || _data$additionalDetai1 === void 0 ? void 0 : _data$additionalDetai1.completeAddress : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.completeAddress) || "",
1117
+ CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai9 = data.additionalDetails) === null || _data$additionalDetai9 === void 0 ? void 0 : _data$additionalDetai9.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai0 = data.additionalDetails) === null || _data$additionalDetai0 === void 0 ? void 0 : _data$additionalDetai0.CompletelySatisfied : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition = waterResult.additionalDetails) === null || _waterResult$addition === void 0 ? void 0 : _waterResult$addition.CompletelySatisfied,
1118
+ addressType: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai3 = data.ConnectionDetails) === null || _data$ConnectionDetai3 === void 0 ? void 0 : (_data$ConnectionDetai4 = _data$ConnectionDetai3[0]) === null || _data$ConnectionDetai4 === void 0 ? void 0 : (_data$ConnectionDetai5 = _data$ConnectionDetai4.addressType) === null || _data$ConnectionDetai5 === void 0 ? void 0 : _data$ConnectionDetai5.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai6 = data.ConnectionDetails) === null || _data$ConnectionDetai6 === void 0 ? void 0 : (_data$ConnectionDetai7 = _data$ConnectionDetai6[0]) === null || _data$ConnectionDetai7 === void 0 ? void 0 : _data$ConnectionDetai7.addressType) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai1 = data.additionalDetails) === null || _data$additionalDetai1 === void 0 ? void 0 : _data$additionalDetai1.addressType : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.addressType) || "",
1119
+ completeAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai8 = data.ConnectionDetails) === null || _data$ConnectionDetai8 === void 0 ? void 0 : (_data$ConnectionDetai9 = _data$ConnectionDetai8[0]) === null || _data$ConnectionDetai9 === void 0 ? void 0 : _data$ConnectionDetai9.completeAddress) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai10 = data.additionalDetails) === null || _data$additionalDetai10 === void 0 ? void 0 : _data$additionalDetai10.completeAddress : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.completeAddress) || "",
1087
1120
  ...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
1088
1121
  ...(data === null || data === void 0 ? void 0 : data.djbEmployee),
1089
1122
  isDjbEmployee: String(data === null || data === void 0 ? void 0 : (_data$djbEmployee27 = data.djbEmployee) === null || _data$djbEmployee27 === void 0 ? void 0 : _data$djbEmployee27.isDjbEmployee) === "true" || (data === null || data === void 0 ? void 0 : (_data$djbEmployee28 = data.djbEmployee) === null || _data$djbEmployee28 === void 0 ? void 0 : _data$djbEmployee28.isDjbEmployee) === true,
@@ -1101,17 +1134,20 @@ const convertToEditWSUpdate = data => {
1101
1134
  hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves9 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves9 !== void 0 && _data$rainWaterHarves9.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves0 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves0 !== void 0 && _data$rainWaterHarves0.isRainwaterHarvesting),
1102
1135
  isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves1 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves1 !== void 0 && _data$rainWaterHarves1.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves10 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves10 !== void 0 && _data$rainWaterHarves10.isRainwaterHarvesting)
1103
1136
  } : {}),
1104
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {}),
1137
+ ...(getNormalizedBankDetails(data) ? {
1138
+ ...getNormalizedBankDetails(data),
1139
+ bankDetails: getNormalizedBankDetails(data)
1140
+ } : {}),
1105
1141
  ...(data !== null && data !== void 0 && (_data$waterConnection2 = data.waterConnection) !== null && _data$waterConnection2 !== void 0 && _data$waterConnection2.useDetails ? {
1106
- plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai10 = data.additionalDetails) === null || _data$additionalDetai10 === void 0 ? void 0 : _data$additionalDetai10.plotArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition4 = waterResult.additionalDetails) === null || _waterResult$addition4 === void 0 ? void 0 : _waterResult$addition4.plotArea),
1107
- plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai11 = data.additionalDetails) === null || _data$additionalDetai11 === void 0 ? void 0 : _data$additionalDetai11.plotSize) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.plotSize),
1108
- builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai12 = data.additionalDetails) === null || _data$additionalDetai12 === void 0 ? void 0 : _data$additionalDetai12.builtUpArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.builtUpArea),
1109
- heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai13 = data.additionalDetails) === null || _data$additionalDetai13 === void 0 ? void 0 : _data$additionalDetai13.heightOfTheBuilding) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.heightOfTheBuilding),
1110
- categoryType: ((_data$waterConnection3 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai14 = data.additionalDetails) === null || _data$additionalDetai14 === void 0 ? void 0 : _data$additionalDetai14.categoryType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType),
1111
- 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),
1112
- 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),
1113
- 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),
1114
- 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) || ""
1142
+ plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai11 = data.additionalDetails) === null || _data$additionalDetai11 === void 0 ? void 0 : _data$additionalDetai11.plotArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition4 = waterResult.additionalDetails) === null || _waterResult$addition4 === void 0 ? void 0 : _waterResult$addition4.plotArea),
1143
+ plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai12 = data.additionalDetails) === null || _data$additionalDetai12 === void 0 ? void 0 : _data$additionalDetai12.plotSize) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.plotSize),
1144
+ builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai13 = data.additionalDetails) === null || _data$additionalDetai13 === void 0 ? void 0 : _data$additionalDetai13.builtUpArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.builtUpArea),
1145
+ heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai14 = data.additionalDetails) === null || _data$additionalDetai14 === void 0 ? void 0 : _data$additionalDetai14.heightOfTheBuilding) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.heightOfTheBuilding),
1146
+ categoryType: ((_data$waterConnection3 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai15 = data.additionalDetails) === null || _data$additionalDetai15 === void 0 ? void 0 : _data$additionalDetai15.categoryType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType),
1147
+ 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$additionalDetai16 = data.additionalDetails) === null || _data$additionalDetai16 === void 0 ? void 0 : _data$additionalDetai16.propertyCategory) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.propertyCategory),
1148
+ 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$additionalDetai17 = data.additionalDetails) === null || _data$additionalDetai17 === void 0 ? void 0 : _data$additionalDetai17.propertyType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.propertyType),
1149
+ 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$additionalDetai18 = data.additionalDetails) === null || _data$additionalDetai18 === void 0 ? void 0 : _data$additionalDetai18.waterConnectionUsageType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.waterConnectionUsageType),
1150
+ numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai19 = data.additionalDetails) === null || _data$additionalDetai19 === void 0 ? void 0 : _data$additionalDetai19.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) || ""
1115
1151
  } : {})
1116
1152
  },
1117
1153
  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,
@@ -1213,7 +1249,7 @@ const convertToEditWSUpdate = data => {
1213
1249
  return formdata;
1214
1250
  };
1215
1251
  const convertToEditSWUpdate = data => {
1216
- 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;
1252
+ var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai20, _data$additionalDetai21, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai22, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai23, _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$additionalDetai24, _SewerageResult$addit4, _data$additionalDetai25, _SewerageResult$addit5, _data$additionalDetai26, _SewerageResult$addit6, _data$additionalDetai27, _SewerageResult$addit7, _data$waterConnection9, _data$additionalDetai28, _SewerageResult$addit8, _data$waterConnection0, _data$additionalDetai29, _SewerageResult$addit9, _data$waterConnection1, _data$additionalDetai30, _SewerageResult$addit0, _data$waterConnection10, _data$additionalDetai31, _SewerageResult$addit1, _data$additionalDetai32, _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;
1217
1253
  const {
1218
1254
  signatureFileStoreId,
1219
1255
  signatureFileName
@@ -1250,9 +1286,9 @@ const convertToEditSWUpdate = data => {
1250
1286
  fileName: signatureFileName
1251
1287
  }
1252
1288
  } : {}),
1253
- CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai19 = data.additionalDetails) === null || _data$additionalDetai19 === void 0 ? void 0 : _data$additionalDetai19.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai20 = data.additionalDetails) === null || _data$additionalDetai20 === void 0 ? void 0 : _data$additionalDetai20.CompletelySatisfied : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit = SewerageResult.additionalDetails) === null || _SewerageResult$addit === void 0 ? void 0 : _SewerageResult$addit.CompletelySatisfied,
1254
- addressType: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai0 = data.ConnectionDetails) === null || _data$ConnectionDetai0 === void 0 ? void 0 : (_data$ConnectionDetai1 = _data$ConnectionDetai0[0]) === null || _data$ConnectionDetai1 === void 0 ? void 0 : (_data$ConnectionDetai10 = _data$ConnectionDetai1.addressType) === null || _data$ConnectionDetai10 === void 0 ? void 0 : _data$ConnectionDetai10.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai11 = data.ConnectionDetails) === null || _data$ConnectionDetai11 === void 0 ? void 0 : (_data$ConnectionDetai12 = _data$ConnectionDetai11[0]) === null || _data$ConnectionDetai12 === void 0 ? void 0 : _data$ConnectionDetai12.addressType) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai21 = data.additionalDetails) === null || _data$additionalDetai21 === void 0 ? void 0 : _data$additionalDetai21.addressType : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit2 = SewerageResult.additionalDetails) === null || _SewerageResult$addit2 === void 0 ? void 0 : _SewerageResult$addit2.addressType) || "",
1255
- completeAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai13 = data.ConnectionDetails) === null || _data$ConnectionDetai13 === void 0 ? void 0 : (_data$ConnectionDetai14 = _data$ConnectionDetai13[0]) === null || _data$ConnectionDetai14 === void 0 ? void 0 : _data$ConnectionDetai14.completeAddress) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai22 = data.additionalDetails) === null || _data$additionalDetai22 === void 0 ? void 0 : _data$additionalDetai22.completeAddress : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit3 = SewerageResult.additionalDetails) === null || _SewerageResult$addit3 === void 0 ? void 0 : _SewerageResult$addit3.completeAddress) || "",
1289
+ CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai20 = data.additionalDetails) === null || _data$additionalDetai20 === void 0 ? void 0 : _data$additionalDetai20.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai21 = data.additionalDetails) === null || _data$additionalDetai21 === void 0 ? void 0 : _data$additionalDetai21.CompletelySatisfied : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit = SewerageResult.additionalDetails) === null || _SewerageResult$addit === void 0 ? void 0 : _SewerageResult$addit.CompletelySatisfied,
1290
+ addressType: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai0 = data.ConnectionDetails) === null || _data$ConnectionDetai0 === void 0 ? void 0 : (_data$ConnectionDetai1 = _data$ConnectionDetai0[0]) === null || _data$ConnectionDetai1 === void 0 ? void 0 : (_data$ConnectionDetai10 = _data$ConnectionDetai1.addressType) === null || _data$ConnectionDetai10 === void 0 ? void 0 : _data$ConnectionDetai10.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai11 = data.ConnectionDetails) === null || _data$ConnectionDetai11 === void 0 ? void 0 : (_data$ConnectionDetai12 = _data$ConnectionDetai11[0]) === null || _data$ConnectionDetai12 === void 0 ? void 0 : _data$ConnectionDetai12.addressType) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai22 = data.additionalDetails) === null || _data$additionalDetai22 === void 0 ? void 0 : _data$additionalDetai22.addressType : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit2 = SewerageResult.additionalDetails) === null || _SewerageResult$addit2 === void 0 ? void 0 : _SewerageResult$addit2.addressType) || "",
1291
+ completeAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai13 = data.ConnectionDetails) === null || _data$ConnectionDetai13 === void 0 ? void 0 : (_data$ConnectionDetai14 = _data$ConnectionDetai13[0]) === null || _data$ConnectionDetai14 === void 0 ? void 0 : _data$ConnectionDetai14.completeAddress) || (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$additionalDetai23 = data.additionalDetails) === null || _data$additionalDetai23 === void 0 ? void 0 : _data$additionalDetai23.completeAddress : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit3 = SewerageResult.additionalDetails) === null || _SewerageResult$addit3 === void 0 ? void 0 : _SewerageResult$addit3.completeAddress) || "",
1256
1292
  ...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
1257
1293
  ...(data === null || data === void 0 ? void 0 : data.djbEmployee),
1258
1294
  isDjbEmployee: String(data === null || data === void 0 ? void 0 : (_data$djbEmployee42 = data.djbEmployee) === null || _data$djbEmployee42 === void 0 ? void 0 : _data$djbEmployee42.isDjbEmployee) === "true" || (data === null || data === void 0 ? void 0 : (_data$djbEmployee43 = data.djbEmployee) === null || _data$djbEmployee43 === void 0 ? void 0 : _data$djbEmployee43.isDjbEmployee) === true,
@@ -1270,17 +1306,20 @@ const convertToEditSWUpdate = data => {
1270
1306
  hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves11 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves11 !== void 0 && _data$rainWaterHarves11.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves12 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves12 !== void 0 && _data$rainWaterHarves12.isRainwaterHarvesting),
1271
1307
  isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves13 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves13 !== void 0 && _data$rainWaterHarves13.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves14 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves14 !== void 0 && _data$rainWaterHarves14.isRainwaterHarvesting)
1272
1308
  } : {}),
1273
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {}),
1309
+ ...(getNormalizedBankDetails(data) ? {
1310
+ ...getNormalizedBankDetails(data),
1311
+ bankDetails: getNormalizedBankDetails(data)
1312
+ } : {}),
1274
1313
  ...(data !== null && data !== void 0 && (_data$waterConnection8 = data.waterConnection) !== null && _data$waterConnection8 !== void 0 && _data$waterConnection8.useDetails ? {
1275
- plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai23 = data.additionalDetails) === null || _data$additionalDetai23 === void 0 ? void 0 : _data$additionalDetai23.plotArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit4 = SewerageResult.additionalDetails) === null || _SewerageResult$addit4 === void 0 ? void 0 : _SewerageResult$addit4.plotArea),
1276
- plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai24 = data.additionalDetails) === null || _data$additionalDetai24 === void 0 ? void 0 : _data$additionalDetai24.plotSize) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit5 = SewerageResult.additionalDetails) === null || _SewerageResult$addit5 === void 0 ? void 0 : _SewerageResult$addit5.plotSize),
1277
- builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai25 = data.additionalDetails) === null || _data$additionalDetai25 === void 0 ? void 0 : _data$additionalDetai25.builtUpArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit6 = SewerageResult.additionalDetails) === null || _SewerageResult$addit6 === void 0 ? void 0 : _SewerageResult$addit6.builtUpArea),
1278
- heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai26 = data.additionalDetails) === null || _data$additionalDetai26 === void 0 ? void 0 : _data$additionalDetai26.heightOfTheBuilding) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit7 = SewerageResult.additionalDetails) === null || _SewerageResult$addit7 === void 0 ? void 0 : _SewerageResult$addit7.heightOfTheBuilding),
1279
- categoryType: ((_data$waterConnection9 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection9 === void 0 ? void 0 : _data$waterConnection9.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai27 = data.additionalDetails) === null || _data$additionalDetai27 === void 0 ? void 0 : _data$additionalDetai27.categoryType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit8 = SewerageResult.additionalDetails) === null || _SewerageResult$addit8 === void 0 ? void 0 : _SewerageResult$addit8.categoryType),
1280
- 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
- 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
- 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$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) || ""
1314
+ plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai24 = data.additionalDetails) === null || _data$additionalDetai24 === void 0 ? void 0 : _data$additionalDetai24.plotArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit4 = SewerageResult.additionalDetails) === null || _SewerageResult$addit4 === void 0 ? void 0 : _SewerageResult$addit4.plotArea),
1315
+ plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai25 = data.additionalDetails) === null || _data$additionalDetai25 === void 0 ? void 0 : _data$additionalDetai25.plotSize) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit5 = SewerageResult.additionalDetails) === null || _SewerageResult$addit5 === void 0 ? void 0 : _SewerageResult$addit5.plotSize),
1316
+ builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai26 = data.additionalDetails) === null || _data$additionalDetai26 === void 0 ? void 0 : _data$additionalDetai26.builtUpArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit6 = SewerageResult.additionalDetails) === null || _SewerageResult$addit6 === void 0 ? void 0 : _SewerageResult$addit6.builtUpArea),
1317
+ heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai27 = data.additionalDetails) === null || _data$additionalDetai27 === void 0 ? void 0 : _data$additionalDetai27.heightOfTheBuilding) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit7 = SewerageResult.additionalDetails) === null || _SewerageResult$addit7 === void 0 ? void 0 : _SewerageResult$addit7.heightOfTheBuilding),
1318
+ categoryType: ((_data$waterConnection9 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection9 === void 0 ? void 0 : _data$waterConnection9.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai28 = data.additionalDetails) === null || _data$additionalDetai28 === void 0 ? void 0 : _data$additionalDetai28.categoryType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit8 = SewerageResult.additionalDetails) === null || _SewerageResult$addit8 === void 0 ? void 0 : _SewerageResult$addit8.categoryType),
1319
+ 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$additionalDetai29 = data.additionalDetails) === null || _data$additionalDetai29 === void 0 ? void 0 : _data$additionalDetai29.propertyCategory) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit9 = SewerageResult.additionalDetails) === null || _SewerageResult$addit9 === void 0 ? void 0 : _SewerageResult$addit9.propertyCategory),
1320
+ 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$additionalDetai30 = data.additionalDetails) === null || _data$additionalDetai30 === void 0 ? void 0 : _data$additionalDetai30.propertyType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit0 = SewerageResult.additionalDetails) === null || _SewerageResult$addit0 === void 0 ? void 0 : _SewerageResult$addit0.propertyType),
1321
+ 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$additionalDetai31 = data.additionalDetails) === null || _data$additionalDetai31 === void 0 ? void 0 : _data$additionalDetai31.waterConnectionUsageType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit1 = SewerageResult.additionalDetails) === null || _SewerageResult$addit1 === void 0 ? void 0 : _SewerageResult$addit1.waterConnectionUsageType),
1322
+ numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai32 = data.additionalDetails) === null || _data$additionalDetai32 === void 0 ? void 0 : _data$additionalDetai32.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
1323
  } : {})
1285
1324
  },
1286
1325
  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,
@@ -1426,7 +1465,10 @@ const convertToSWUpdate = data => {
1426
1465
  hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves15 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves15 !== void 0 && _data$rainWaterHarves15.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves16 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves16 !== void 0 && _data$rainWaterHarves16.isRainwaterHarvesting),
1427
1466
  isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves17 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves17 !== void 0 && _data$rainWaterHarves17.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves18 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves18 !== void 0 && _data$rainWaterHarves18.isRainwaterHarvesting)
1428
1467
  } : {}),
1429
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {})
1468
+ ...(getNormalizedBankDetails(data) ? {
1469
+ ...getNormalizedBankDetails(data),
1470
+ bankDetails: getNormalizedBankDetails(data)
1471
+ } : {})
1430
1472
  },
1431
1473
  processInstance: {
1432
1474
  action: "SUBMIT_APPLICATION"
@@ -21687,7 +21729,7 @@ const colonyNameOptions = [{
21687
21729
  const NUMBER_PATTERN = /^\d+$/;
21688
21730
  const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
21689
21731
  const WSCalculation = _ref => {
21690
- var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
21732
+ var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails8, _formValue$useDetails9, _formValue$useDetails0, _formValue$useDetails1, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
21691
21733
  let {
21692
21734
  config,
21693
21735
  onSelect,
@@ -21901,6 +21943,33 @@ const WSCalculation = _ref => {
21901
21943
  };
21902
21944
  const isMobile = window.Digit.Utils.browser.isMobile();
21903
21945
  const handleSubmit = () => {
21946
+ var _formValue$useDetails, _formValue$useDetails2, _formValue$useDetails3, _formValue$useDetails4;
21947
+ const plotAreaNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails = formValue.useDetails) === null || _formValue$useDetails === void 0 ? void 0 : _formValue$useDetails.plotArea);
21948
+ const builtUpAreaNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea);
21949
+ if (!isNaN(plotAreaNum) && !isNaN(builtUpAreaNum) && plotAreaNum <= builtUpAreaNum) {
21950
+ const plotTrans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
21951
+ if (setError) {
21952
+ setError(config === null || config === void 0 ? void 0 : config.key, {
21953
+ type: "custom",
21954
+ message: plotTrans && plotTrans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? plotTrans : "Plot area should always be more than built up area."
21955
+ });
21956
+ }
21957
+ return;
21958
+ }
21959
+ const usageTypeObj = formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.WaterConnectionUsageType;
21960
+ const usageTypeCode = typeof usageTypeObj === "object" ? (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.code) || (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.value) || (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.name) : usageTypeObj;
21961
+ const isNormalUsage = String(usageTypeCode || "").toUpperCase() === "NORMAL";
21962
+ const heightNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.heightOfTheBuilding);
21963
+ if (isNormalUsage && !isNaN(heightNum) && heightNum > 17.5) {
21964
+ const heightTrans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
21965
+ if (setError) {
21966
+ setError(config === null || config === void 0 ? void 0 : config.key, {
21967
+ type: "custom",
21968
+ message: heightTrans && heightTrans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? heightTrans : "Height of the building must be 17.5 meters or less for Normal connection."
21969
+ });
21970
+ }
21971
+ return;
21972
+ }
21904
21973
  const payload = WSCalculationPayload(formValue);
21905
21974
  calculateCharges(payload, {
21906
21975
  onSuccess: data => {
@@ -22350,6 +22419,15 @@ const WSCalculation = _ref => {
22350
22419
  pattern: {
22351
22420
  value: DECIMAL_PATTERN,
22352
22421
  message: t("ERR_INVALID_DECIMAL")
22422
+ },
22423
+ validate: value => {
22424
+ var _formValue$useDetails5;
22425
+ const plot = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.plotArea);
22426
+ const built = parseFloat(value);
22427
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
22428
+ return t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA") || "Plot area should always be more than built up area.";
22429
+ }
22430
+ return true;
22353
22431
  }
22354
22432
  }),
22355
22433
  name: "useDetails.builtUpArea"
@@ -22365,8 +22443,8 @@ const WSCalculation = _ref => {
22365
22443
  message: t("ERR_INVALID_DECIMAL")
22366
22444
  },
22367
22445
  validate: value => {
22368
- var _formValue$useDetails, _formValue$useDetails2;
22369
- if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
22446
+ var _formValue$useDetails6, _formValue$useDetails7;
22447
+ if (formValue !== null && formValue !== void 0 && (_formValue$useDetails6 = formValue.useDetails) !== null && _formValue$useDetails6 !== void 0 && _formValue$useDetails6.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails7 = formValue.useDetails) === null || _formValue$useDetails7 === void 0 ? void 0 : _formValue$useDetails7.builtUpArea)) {
22370
22448
  return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
22371
22449
  }
22372
22450
  }
@@ -22374,7 +22452,7 @@ const WSCalculation = _ref => {
22374
22452
  name: "useDetails.farArea"
22375
22453
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React.createElement(CardLabelError, {
22376
22454
  style: errorStyle
22377
- }, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
22455
+ }, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails8 = formValue.useDetails) === null || _formValue$useDetails8 === void 0 ? void 0 : _formValue$useDetails8.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails9 = formValue.useDetails) === null || _formValue$useDetails9 === void 0 ? void 0 : _formValue$useDetails9.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails0 = formValue.useDetails) === null || _formValue$useDetails0 === void 0 ? void 0 : _formValue$useDetails0.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails1 = formValue.useDetails) === null || _formValue$useDetails1 === void 0 ? void 0 : _formValue$useDetails1.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
22378
22456
  style: {
22379
22457
  width: "70%",
22380
22458
  marginLeft: "30%",
@@ -26000,7 +26078,10 @@ const WSDocsRequired = _ref => {
26000
26078
  return /*#__PURE__*/React.createElement("div", {
26001
26079
  className: "employee-form-content-with-action-bar"
26002
26080
  }, /*#__PURE__*/React.createElement("div", {
26003
- className: "overflow-y-scroll"
26081
+ style: {
26082
+ width: "100%",
26083
+ height: "auto"
26084
+ }
26004
26085
  }, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
26005
26086
  id: "documents-div",
26006
26087
  className: "ws-docs-container"
@@ -26575,40 +26656,90 @@ const getCptAddress = formData => {
26575
26656
  } catch (e) {}
26576
26657
  return null;
26577
26658
  };
26578
- const getPropertyAddressString = (address, t) => {
26579
- var _address$locality, _Digit$Utils, _Digit$Utils$pt, _Digit$Utils2, _Digit$Utils2$pt;
26580
- if (!address) return "";
26581
- if (typeof address === "string") return address;
26659
+ const getPropertyAddressString = (address, t, formData) => {
26660
+ var _formData$cpt5, _formData$cpt5$detail, _Digit$Utils, _Digit$Utils$pt, _addrObj$additionalDe, _cptDetailsAddr$addit, _addrObj$additionalDe2, _cptDetailsAddr$addit2, _addrObj$additionalDe3, _addrObj$additionalDe4, _cptDetailsAddr$addit3, _cptDetailsAddr$addit4, _Digit$Utils2, _Digit$Utils2$pt;
26661
+ if (!address && !formData) return "";
26662
+ if (typeof address === "string" && address.trim()) {
26663
+ var _formData$cpt2, _formData$cpt2$detail, _formData$cpt2$detail2, _formData$cpt3, _formData$cpt3$detail, _formData$cpt3$detail2, _formData$cpt4, _formData$cpt4$detail, _formData$cpt4$detail2, _formData$propertyAdd, _formData$propertyAdd2, _formData$propertyAdd3;
26664
+ const hasAssemblyZoneWard = (formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : (_formData$cpt2$detail = _formData$cpt2.details) === null || _formData$cpt2$detail === void 0 ? void 0 : (_formData$cpt2$detail2 = _formData$cpt2$detail.address) === null || _formData$cpt2$detail2 === void 0 ? void 0 : _formData$cpt2$detail2.assembly) || (formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : (_formData$cpt3$detail2 = _formData$cpt3$detail.address) === null || _formData$cpt3$detail2 === void 0 ? void 0 : _formData$cpt3$detail2.zone) || (formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : (_formData$cpt4$detail2 = _formData$cpt4$detail.address) === null || _formData$cpt4$detail2 === void 0 ? void 0 : _formData$cpt4$detail2.ward) || (formData === null || formData === void 0 ? void 0 : (_formData$propertyAdd = formData.propertyAddress) === null || _formData$propertyAdd === void 0 ? void 0 : _formData$propertyAdd.assembly) || (formData === null || formData === void 0 ? void 0 : (_formData$propertyAdd2 = formData.propertyAddress) === null || _formData$propertyAdd2 === void 0 ? void 0 : _formData$propertyAdd2.zone) || (formData === null || formData === void 0 ? void 0 : (_formData$propertyAdd3 = formData.propertyAddress) === null || _formData$propertyAdd3 === void 0 ? void 0 : _formData$propertyAdd3.ward);
26665
+ if (!hasAssemblyZoneWard) return address.trim();
26666
+ }
26667
+ const addrObj = typeof address === "object" && address !== null ? address : {};
26668
+ const cptDetailsAddr = (formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : _formData$cpt5$detail.address) || {};
26669
+ const propAddr = (formData === null || formData === void 0 ? void 0 : formData.propertyAddress) || {};
26670
+ const addDetails = (formData === null || formData === void 0 ? void 0 : formData.additionalDetails) || {};
26582
26671
  const parts = [];
26583
- if (address !== null && address !== void 0 && address.doorNo) parts.push(address.doorNo);
26584
- if (address !== null && address !== void 0 && address.buildingName) parts.push(address.buildingName);
26585
- if (address !== null && address !== void 0 && address.street) parts.push(address.street);
26586
- if (address !== null && address !== void 0 && address.landmark) parts.push(address.landmark);
26587
- const tenantId = (address === null || address === void 0 ? void 0 : address.tenantId) || Digit.ULBService.getCurrentTenantId();
26588
- const localityCode = (address === null || address === void 0 ? void 0 : (_address$locality = address.locality) === null || _address$locality === void 0 ? void 0 : _address$locality.code) || (typeof (address === null || address === void 0 ? void 0 : address.locality) === "string" ? address === null || address === void 0 ? void 0 : address.locality : null);
26672
+ const houseNo = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.doorNo) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.houseNo) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.houseDoorNo) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.doorNo) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.houseNo) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.houseDoorNo) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.doorNo) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.houseNo) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.houseDoorNo) || "";
26673
+ if (houseNo && String(houseNo).trim() && String(houseNo).trim() !== "NA") {
26674
+ parts.push(String(houseNo).trim());
26675
+ }
26676
+ const building = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.buildingName) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.buildingColonyName) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.buildingName) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.buildingColonyName) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.buildingName) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.buildingColonyName) || "";
26677
+ if (building && String(building).trim() && String(building).trim() !== "NA") {
26678
+ parts.push(String(building).trim());
26679
+ }
26680
+ const street = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.street) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.streetName) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.addressLine1) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.street) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.streetName) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.addressLine1) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.street) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.streetName) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.addressLine1) || "";
26681
+ if (street && String(street).trim() && String(street).trim() !== "NA") {
26682
+ parts.push(String(street).trim());
26683
+ }
26684
+ const addressLine2 = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.addressLine2) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.addressLine2) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.addressLine2) || "";
26685
+ if (addressLine2 && String(addressLine2).trim() && String(addressLine2).trim() !== "NA") {
26686
+ parts.push(String(addressLine2).trim());
26687
+ }
26688
+ const landmark = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.landmark) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.landmarkName) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.landmark) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.landmarkName) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.landmark) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.landmarkName) || "";
26689
+ if (landmark && String(landmark).trim() && String(landmark).trim() !== "NA") {
26690
+ parts.push(String(landmark).trim());
26691
+ }
26692
+ const tenantId = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.tenantId) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.tenantId) || Digit.ULBService.getCurrentTenantId();
26693
+ const localityRaw = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.locality) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.locality) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.locality);
26694
+ const localityCode = (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.code) || (typeof localityRaw === "string" ? localityRaw : null);
26589
26695
  let localityText = "";
26590
26696
  if (localityCode && (_Digit$Utils = Digit.Utils) !== null && _Digit$Utils !== void 0 && (_Digit$Utils$pt = _Digit$Utils.pt) !== null && _Digit$Utils$pt !== void 0 && _Digit$Utils$pt.getMohallaLocale) {
26591
26697
  const locLocale = Digit.Utils.pt.getMohallaLocale(localityCode, tenantId);
26592
26698
  localityText = t ? t(locLocale) : locLocale;
26593
26699
  }
26594
26700
  if (!localityText || localityText === localityCode) {
26595
- var _address$locality2, _address$locality3;
26596
- localityText = (address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.name) || (address === null || address === void 0 ? void 0 : (_address$locality3 = address.locality) === null || _address$locality3 === void 0 ? void 0 : _address$locality3.code) || "";
26701
+ localityText = (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.name) || (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.code) || "";
26702
+ }
26703
+ if (localityText && String(localityText).trim() && String(localityText).trim() !== "NA") {
26704
+ parts.push(String(localityText).trim());
26705
+ }
26706
+ const assemblyVal = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.assembly) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.Assembly) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.actualAssembly) || (addrObj === null || addrObj === void 0 ? void 0 : (_addrObj$additionalDe = addrObj.additionalDetails) === null || _addrObj$additionalDe === void 0 ? void 0 : _addrObj$additionalDe.assembly) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.assembly) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.Assembly) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.actualAssembly) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : (_cptDetailsAddr$addit = cptDetailsAddr.additionalDetails) === null || _cptDetailsAddr$addit === void 0 ? void 0 : _cptDetailsAddr$addit.assembly) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.assembly) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.Assembly) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.actualAssembly) || (addDetails === null || addDetails === void 0 ? void 0 : addDetails.assembly) || "";
26707
+ const assemblyText = typeof assemblyVal === "object" ? (assemblyVal === null || assemblyVal === void 0 ? void 0 : assemblyVal.name) || (assemblyVal === null || assemblyVal === void 0 ? void 0 : assemblyVal.code) || "" : String(assemblyVal || "");
26708
+ if (assemblyText && assemblyText.trim() && assemblyText.trim() !== "NA") {
26709
+ parts.push(assemblyText.trim());
26710
+ }
26711
+ const zoneVal = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.zone) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.Zone) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.actualZone) || (addrObj === null || addrObj === void 0 ? void 0 : (_addrObj$additionalDe2 = addrObj.additionalDetails) === null || _addrObj$additionalDe2 === void 0 ? void 0 : _addrObj$additionalDe2.zone) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.zone) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.Zone) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.actualZone) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : (_cptDetailsAddr$addit2 = cptDetailsAddr.additionalDetails) === null || _cptDetailsAddr$addit2 === void 0 ? void 0 : _cptDetailsAddr$addit2.zone) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.zone) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.Zone) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.actualZone) || (addDetails === null || addDetails === void 0 ? void 0 : addDetails.zone) || "";
26712
+ const zoneText = typeof zoneVal === "object" ? (zoneVal === null || zoneVal === void 0 ? void 0 : zoneVal.name) || (zoneVal === null || zoneVal === void 0 ? void 0 : zoneVal.code) || "" : String(zoneVal || "");
26713
+ if (zoneText && zoneText.trim() && zoneText.trim() !== "NA") {
26714
+ parts.push(zoneText.trim());
26715
+ }
26716
+ const wardVal = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.ward) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.Ward) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.block) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.Block) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.actualWard) || (addrObj === null || addrObj === void 0 ? void 0 : (_addrObj$additionalDe3 = addrObj.additionalDetails) === null || _addrObj$additionalDe3 === void 0 ? void 0 : _addrObj$additionalDe3.ward) || (addrObj === null || addrObj === void 0 ? void 0 : (_addrObj$additionalDe4 = addrObj.additionalDetails) === null || _addrObj$additionalDe4 === void 0 ? void 0 : _addrObj$additionalDe4.block) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.ward) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.Ward) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.block) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.Block) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.actualWard) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : (_cptDetailsAddr$addit3 = cptDetailsAddr.additionalDetails) === null || _cptDetailsAddr$addit3 === void 0 ? void 0 : _cptDetailsAddr$addit3.ward) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : (_cptDetailsAddr$addit4 = cptDetailsAddr.additionalDetails) === null || _cptDetailsAddr$addit4 === void 0 ? void 0 : _cptDetailsAddr$addit4.block) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.ward) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.Ward) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.block) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.Block) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.actualWard) || (addDetails === null || addDetails === void 0 ? void 0 : addDetails.ward) || "";
26717
+ const wardText = typeof wardVal === "object" ? (wardVal === null || wardVal === void 0 ? void 0 : wardVal.name) || (wardVal === null || wardVal === void 0 ? void 0 : wardVal.code) || "" : String(wardVal || "");
26718
+ if (wardText && wardText.trim() && wardText.trim() !== "NA") {
26719
+ parts.push(wardText.trim());
26597
26720
  }
26598
- if (localityText) parts.push(localityText);
26599
26721
  let cityText = "";
26600
26722
  if (tenantId && (_Digit$Utils2 = Digit.Utils) !== null && _Digit$Utils2 !== void 0 && (_Digit$Utils2$pt = _Digit$Utils2.pt) !== null && _Digit$Utils2$pt !== void 0 && _Digit$Utils2$pt.getCityLocale) {
26601
26723
  const cityLocale = Digit.Utils.pt.getCityLocale(tenantId);
26602
26724
  cityText = t ? t(cityLocale) : cityLocale;
26603
26725
  }
26604
26726
  if (!cityText || cityText === tenantId) {
26605
- cityText = (address === null || address === void 0 ? void 0 : address.city) || tenantId || "";
26727
+ cityText = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.city) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.city) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.city) || tenantId || "";
26606
26728
  }
26607
- if (cityText) parts.push(cityText);
26608
- if (address !== null && address !== void 0 && address.pincode) {
26609
- parts.push(address.pincode);
26729
+ if (cityText && String(cityText).trim() && String(cityText).trim() !== "NA") {
26730
+ parts.push(String(cityText).trim());
26610
26731
  }
26611
- return parts.filter(Boolean).join(", ");
26732
+ const pincode = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.pincode) || (addrObj === null || addrObj === void 0 ? void 0 : addrObj.pinCode) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.pincode) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.pinCode) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.pincode) || (propAddr === null || propAddr === void 0 ? void 0 : propAddr.pinCode) || "";
26733
+ if (pincode && String(pincode).trim() && String(pincode).trim() !== "NA") {
26734
+ parts.push(String(pincode).trim());
26735
+ }
26736
+ const uniqueParts = [];
26737
+ parts.forEach(p => {
26738
+ if (p && !uniqueParts.some(existing => existing.toLowerCase() === p.toLowerCase())) {
26739
+ uniqueParts.push(p);
26740
+ }
26741
+ });
26742
+ return uniqueParts.join(", ");
26612
26743
  };
26613
26744
  const getCleanAddressValue = val => {
26614
26745
  if (!val) return "";
@@ -26638,7 +26769,7 @@ const WSConnectionDetails = _ref => {
26638
26769
  pathname
26639
26770
  } = useLocation();
26640
26771
  const cptAddrTop = getCptAddress(formData);
26641
- const formattedPropertyAddressTop = getPropertyAddressString(cptAddrTop, t);
26772
+ const formattedPropertyAddressTop = getPropertyAddressString(cptAddrTop, t, formData);
26642
26773
  const [connectionDetails, setConnectionDetails] = useState(() => {
26643
26774
  var _formData$ConnectionD;
26644
26775
  if ((formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : _formData$ConnectionD.length) > 0) {
@@ -26827,7 +26958,7 @@ const WSConnectionDetails = _ref => {
26827
26958
  }, commonProps))));
26828
26959
  };
26829
26960
  const ConnectionDetails = _props => {
26830
- var _formData$ConnectionD3, _formData$ConnectionD4, _formData$additionalD, _formData$additionalD2, _formData$additionalD3, _formData$additionalD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$additionalD5, _formData$additionalD6, _formData$additionalD7, _formData$additionalD8, _formData$cpt2, _formData$cpt2$detail, _formData$cpt2$detail2, _connectionDetail$ser, _connectionDetail$ser2, _formData$cpt3, _formData$cpt3$detail, _formData$cpt5, _formData$cpt5$detail, _formData$cpt6, _formData$cpt6$detail, _formData$property2, _formData$DocumentsRe;
26961
+ var _formData$ConnectionD3, _formData$ConnectionD4, _formData$additionalD, _formData$additionalD2, _formData$additionalD3, _formData$additionalD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$additionalD5, _formData$additionalD6, _formData$additionalD7, _formData$additionalD8, _formData$cpt6, _formData$cpt6$detail, _formData$cpt6$detail2, _connectionDetail$ser, _connectionDetail$ser2, _formData$cpt7, _formData$cpt7$detail, _formData$cpt9, _formData$cpt9$detail, _formData$cpt0, _formData$cpt0$detail, _formData$property2, _formData$DocumentsRe;
26831
26962
  const {
26832
26963
  connectionDetail,
26833
26964
  focusIndex,
@@ -26853,13 +26984,13 @@ const ConnectionDetails = _props => {
26853
26984
  userType
26854
26985
  } = _props;
26855
26986
  const cptAddr = getCptAddress(formData);
26856
- const formattedPropertyAddress = getPropertyAddressString(cptAddr, t);
26987
+ const formattedPropertyAddress = getPropertyAddressString(cptAddr, t, formData);
26857
26988
  const rawAddressType = (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD3 = formData.ConnectionDetails) === null || _formData$ConnectionD3 === void 0 ? void 0 : (_formData$ConnectionD4 = _formData$ConnectionD3[0]) === null || _formData$ConnectionD4 === void 0 ? void 0 : _formData$ConnectionD4.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD2 = formData.additionalDetails) === null || _formData$additionalD2 === void 0 ? void 0 : (_formData$additionalD3 = _formData$additionalD2.ConnectionDetails) === null || _formData$additionalD3 === void 0 ? void 0 : (_formData$additionalD4 = _formData$additionalD3[0]) === null || _formData$additionalD4 === void 0 ? void 0 : _formData$additionalD4.addressType) || (formData === null || formData === void 0 ? void 0 : formData.addressType);
26858
26989
  const rawCompleteAddress = (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD5 = formData.ConnectionDetails) === null || _formData$ConnectionD5 === void 0 ? void 0 : (_formData$ConnectionD6 = _formData$ConnectionD5[0]) === null || _formData$ConnectionD6 === void 0 ? void 0 : _formData$ConnectionD6.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD5 = formData.additionalDetails) === null || _formData$additionalD5 === void 0 ? void 0 : _formData$additionalD5.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD6 = formData.additionalDetails) === null || _formData$additionalD6 === void 0 ? void 0 : (_formData$additionalD7 = _formData$additionalD6.ConnectionDetails) === null || _formData$additionalD7 === void 0 ? void 0 : (_formData$additionalD8 = _formData$additionalD7[0]) === null || _formData$additionalD8 === void 0 ? void 0 : _formData$additionalD8.completeAddress) || (formData === null || formData === void 0 ? void 0 : formData.completeAddress);
26859
- const owner = formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : (_formData$cpt2$detail = _formData$cpt2.details) === null || _formData$cpt2$detail === void 0 ? void 0 : (_formData$cpt2$detail2 = _formData$cpt2$detail.owners) === null || _formData$cpt2$detail2 === void 0 ? void 0 : _formData$cpt2$detail2[0];
26990
+ const owner = formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : (_formData$cpt6$detail = _formData$cpt6.details) === null || _formData$cpt6$detail === void 0 ? void 0 : (_formData$cpt6$detail2 = _formData$cpt6$detail.owners) === null || _formData$cpt6$detail2 === void 0 ? void 0 : _formData$cpt6$detail2[0];
26860
26991
  const ownerPermAddress = owner !== null && owner !== void 0 && owner.permanentAddress && (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) !== "NA" ? owner.permanentAddress : "";
26861
26992
  const ownerCorrAddress = owner !== null && owner !== void 0 && owner.correspondenceAddress && (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) !== "NA" ? owner.correspondenceAddress : "";
26862
- const initialAddressValue = getCleanAddressValue(rawAddressType) || getCleanAddressValue(rawCompleteAddress) || formattedPropertyAddress || ownerCorrAddress || ownerPermAddress || "";
26993
+ const initialAddressValue = formattedPropertyAddress || getCleanAddressValue(rawAddressType) || getCleanAddressValue(rawCompleteAddress) || ownerCorrAddress || ownerPermAddress || "";
26863
26994
  const {
26864
26995
  control,
26865
26996
  formState: localFormState,
@@ -26920,12 +27051,12 @@ const ConnectionDetails = _props => {
26920
27051
  const {
26921
27052
  errors
26922
27053
  } = localFormState;
26923
- const prevPropertyIdRef = React.useRef(formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.propertyId);
27054
+ const prevPropertyIdRef = React.useRef(formData === null || formData === void 0 ? void 0 : (_formData$cpt7 = formData.cpt) === null || _formData$cpt7 === void 0 ? void 0 : (_formData$cpt7$detail = _formData$cpt7.details) === null || _formData$cpt7$detail === void 0 ? void 0 : _formData$cpt7$detail.propertyId);
26924
27055
  const prevPropAddrRef = React.useRef(formattedPropertyAddress);
26925
27056
  const isAddressUserEditedRef = React.useRef(false);
26926
27057
  useEffect(() => {
26927
- var _formData$cpt4, _formData$cpt4$detail;
26928
- const currentPropertyId = formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : _formData$cpt4$detail.propertyId;
27058
+ var _formData$cpt8, _formData$cpt8$detail;
27059
+ const currentPropertyId = formData === null || formData === void 0 ? void 0 : (_formData$cpt8 = formData.cpt) === null || _formData$cpt8 === void 0 ? void 0 : (_formData$cpt8$detail = _formData$cpt8.details) === null || _formData$cpt8$detail === void 0 ? void 0 : _formData$cpt8$detail.propertyId;
26929
27060
  const isNewPropertySelected = Boolean(currentPropertyId && prevPropertyIdRef.current && currentPropertyId !== prevPropertyIdRef.current);
26930
27061
  if (isNewPropertySelected) {
26931
27062
  prevPropertyIdRef.current = currentPropertyId;
@@ -26937,17 +27068,17 @@ const ConnectionDetails = _props => {
26937
27068
  return;
26938
27069
  }
26939
27070
  const currentCptAddr = getCptAddress(formData);
26940
- const newFormattedAddr = getPropertyAddressString(currentCptAddr, t);
27071
+ const newFormattedAddr = getPropertyAddressString(currentCptAddr, t, formData);
26941
27072
  const currentVal = getValues("addressType");
26942
27073
  const isValOldType = typeof currentVal === "object" || currentVal === "PERMANENT" || currentVal === "CORRESPONDENCE";
26943
- if (newFormattedAddr && (isNewPropertySelected || isValOldType || currentVal === undefined || currentVal === null || currentVal === prevPropAddrRef.current)) {
27074
+ if (newFormattedAddr && (isNewPropertySelected || isValOldType || !currentVal || currentVal === prevPropAddrRef.current || !prevPropAddrRef.current)) {
26944
27075
  setValue("addressType", newFormattedAddr, {
26945
27076
  shouldValidate: true
26946
27077
  });
26947
27078
  setValue("completeAddress", newFormattedAddr);
26948
27079
  prevPropAddrRef.current = newFormattedAddr;
26949
27080
  }
26950
- }, [formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : _formData$cpt5$detail.propertyId, formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : (_formData$cpt6$detail = _formData$cpt6.details) === null || _formData$cpt6$detail === void 0 ? void 0 : _formData$cpt6$detail.address, formData === null || formData === void 0 ? void 0 : (_formData$property2 = formData.property) === null || _formData$property2 === void 0 ? void 0 : _formData$property2.address]);
27081
+ }, [formData === null || formData === void 0 ? void 0 : (_formData$cpt9 = formData.cpt) === null || _formData$cpt9 === void 0 ? void 0 : (_formData$cpt9$detail = _formData$cpt9.details) === null || _formData$cpt9$detail === void 0 ? void 0 : _formData$cpt9$detail.propertyId, formData === null || formData === void 0 ? void 0 : (_formData$cpt0 = formData.cpt) === null || _formData$cpt0 === void 0 ? void 0 : (_formData$cpt0$detail = _formData$cpt0.details) === null || _formData$cpt0$detail === void 0 ? void 0 : _formData$cpt0$detail.address, formData === null || formData === void 0 ? void 0 : (_formData$property2 = formData.property) === null || _formData$property2 === void 0 ? void 0 : _formData$property2.address, formData === null || formData === void 0 ? void 0 : formData.propertyAddress]);
26951
27082
  useEffect(() => {
26952
27083
  if (applicationTypeList && applicationTypeList.length > 0) {
26953
27084
  const waterOption = applicationTypeList.find(opt => {
@@ -31512,8 +31643,7 @@ const WSDocumentsEmployee = _ref => {
31512
31643
  const removeEmployeeDocError = () => {
31513
31644
  var _formState$errors2, _formState$errors2$co;
31514
31645
  let type = formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$co = _formState$errors2[config === null || config === void 0 ? void 0 : config.key]) === null || _formState$errors2$co === void 0 ? void 0 : _formState$errors2$co.type;
31515
- if (!Array.isArray(type)) type = [];
31516
- if (type.includes("OWNER.DJB_EMPLOYEE_ID")) {
31646
+ if (Array.isArray(type)) {
31517
31647
  type = type.filter(e => e != "OWNER.DJB_EMPLOYEE_ID");
31518
31648
  if (!type.length) {
31519
31649
  clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
@@ -31522,8 +31652,18 @@ const WSDocumentsEmployee = _ref => {
31522
31652
  type
31523
31653
  });
31524
31654
  }
31655
+ } else {
31656
+ clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
31525
31657
  }
31526
31658
  };
31659
+ useEffect(() => {
31660
+ if (onSelect && Array.isArray(documents) && documents.length > 0) {
31661
+ const docPayload = {
31662
+ documents: removeDuplicateOtherDocuments(documents)
31663
+ };
31664
+ onSelect(config.key, docPayload);
31665
+ }
31666
+ }, [documents]);
31527
31667
  useEffect(() => {
31528
31668
  if (isDjbEmployee) {
31529
31669
  if (!hasDjbEmployeeDoc) {
@@ -31600,7 +31740,17 @@ const WSDocumentsEmployee = _ref => {
31600
31740
  const isDocRequired = isOtherDocument(doc === null || doc === void 0 ? void 0 : doc.code) ? false : doc.required;
31601
31741
  let isRequired = false;
31602
31742
  documents.map(data => {
31603
- if (isDocRequired && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
31743
+ if (isDocRequired && data !== null && data !== void 0 && data.documentType.includes(doc.code)) {
31744
+ var _doc$code, _doc$code2, _doc$code3;
31745
+ const isIdOrOwn = doc.code === "OWNER.IDENTITYPROOF" || doc.code === "OWNER.ADDRESSPROOF" || doc.code === "OWNER.OWNERSHIPPROOF" || ((_doc$code = doc.code) === null || _doc$code === void 0 ? void 0 : _doc$code.includes("IDENTITY")) || ((_doc$code2 = doc.code) === null || _doc$code2 === void 0 ? void 0 : _doc$code2.includes("ADDRESS")) || ((_doc$code3 = doc.code) === null || _doc$code3 === void 0 ? void 0 : _doc$code3.includes("OWNERSHIP"));
31746
+ if (isIdOrOwn) {
31747
+ if (data !== null && data !== void 0 && data.fileStoreId && data !== null && data !== void 0 && data.documentUid && String(data.documentUid).trim()) {
31748
+ isRequired = true;
31749
+ }
31750
+ } else if (data !== null && data !== void 0 && data.fileStoreId) {
31751
+ isRequired = true;
31752
+ }
31753
+ }
31604
31754
  });
31605
31755
  if (!isRequired && isDocRequired) count = count + 1;
31606
31756
  });
@@ -32040,7 +32190,7 @@ function EmployeeIdDocumentUpload(_ref2) {
32040
32190
  }, /*#__PURE__*/React.createElement(RemoveIcon, null)))));
32041
32191
  }
32042
32192
  function SelectDocument$2(_ref3) {
32043
- var _selectedDocument$cod, _selectedDocument$cod2, _selectedDocument$nam, _selectedDocument$nam2, _selectedDocument$i, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$application4, _formData$application5, _formData$application6, _formData$connectionH3, _formData$connectionH4, _formData$ConnectionH3, _formData$ConnectionH4, _formData$additionalD4, _formData$ConnectionD7, _doc$i18nKey, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _selectedDocument$cod16, _selectedDocument$cod17, _doc$i18nKey2;
32193
+ var _doc$code4, _doc$code5, _doc$code6, _doc$code7, _selectedDocument$cod, _selectedDocument$cod2, _selectedDocument$nam, _selectedDocument$nam2, _selectedDocument$i, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$application4, _formData$application5, _formData$application6, _formData$connectionH3, _formData$connectionH4, _formData$ConnectionH3, _formData$ConnectionH4, _formData$additionalD4, _formData$ConnectionD7, _doc$i18nKey, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _selectedDocument$cod16, _selectedDocument$cod17, _doc$i18nKey2;
32044
32194
  let {
32045
32195
  t,
32046
32196
  document: doc,
@@ -32072,6 +32222,9 @@ function SelectDocument$2(_ref3) {
32072
32222
  return item === null || item === void 0 ? void 0 : (_item$documentType2 = item.documentType) === null || _item$documentType2 === void 0 ? void 0 : _item$documentType2.includes(doc === null || doc === void 0 ? void 0 : doc.code);
32073
32223
  })[0];
32074
32224
  const isApplicantPhoto = (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO";
32225
+ const isIdentityProof = (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.IDENTITYPROOF" || (doc === null || doc === void 0 ? void 0 : (_doc$code4 = doc.code) === null || _doc$code4 === void 0 ? void 0 : _doc$code4.includes("IDENTITYPROOF")) || (doc === null || doc === void 0 ? void 0 : (_doc$code5 = doc.code) === null || _doc$code5 === void 0 ? void 0 : _doc$code5.includes("IDENTITY"));
32226
+ const isOwnershipProof = (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.ADDRESSPROOF" || (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.OWNERSHIPPROOF" || (doc === null || doc === void 0 ? void 0 : (_doc$code6 = doc.code) === null || _doc$code6 === void 0 ? void 0 : _doc$code6.includes("ADDRESSPROOF")) || (doc === null || doc === void 0 ? void 0 : (_doc$code7 = doc.code) === null || _doc$code7 === void 0 ? void 0 : _doc$code7.includes("OWNERSHIP"));
32227
+ const isDocNumberMandatory = isIdentityProof || isOwnershipProof;
32075
32228
  const [selectedDocument, setSelectedDocument] = useState(() => {
32076
32229
  var _filteredDocument$doc, _doc$dropdownData3, _doc$dropdownData4;
32077
32230
  if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
@@ -32129,9 +32282,13 @@ function SelectDocument$2(_ref3) {
32129
32282
  const [docNumberError, setDocNumberError] = useState(null);
32130
32283
  const isOtherDocumentsRemark = Boolean(isOther && selectedDocument && ((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) === "OWNER.OTHERDOCUMENTS.OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) === "OWNER_OTHERDOCUMENTS_OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) === "OWNER_OTHERDOCUMENTS_OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod = selectedDocument.code) === null || _selectedDocument$cod === void 0 ? void 0 : _selectedDocument$cod.endsWith(".OTHER_DOCUMENTS")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod2 = selectedDocument.code) === null || _selectedDocument$cod2 === void 0 ? void 0 : _selectedDocument$cod2.includes("OTHER_DOCUMENTS")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$nam = selectedDocument.name) === null || _selectedDocument$nam === void 0 ? void 0 : (_selectedDocument$nam2 = _selectedDocument$nam.toUpperCase()) === null || _selectedDocument$nam2 === void 0 ? void 0 : _selectedDocument$nam2.includes("OTHER DOCUMENT")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$i = selectedDocument.i18nKey) === null || _selectedDocument$i === void 0 ? void 0 : _selectedDocument$i.includes("OTHER_DOCUMENTS"))));
32131
32284
  const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
32132
- if (!isReq && !hasFile && (!value || !value.trim())) return null;
32133
- if (!value || !value.trim()) return null;
32134
- const trimmed = value.trim();
32285
+ const trimmed = (value || "").trim();
32286
+ if (isDocNumberMandatory || isReq) {
32287
+ if (!trimmed) return t("CORE_COMMON_REQUIRED_ERRMSG") || "This field is required";
32288
+ } else {
32289
+ if (!isReq && !hasFile && !trimmed) return null;
32290
+ if (!trimmed) return null;
32291
+ }
32135
32292
  const upperCode = (docTypeCode || "").toUpperCase();
32136
32293
  if (isOtherDocumentsRemark || upperCode.includes("OTHER_DOCUMENTS") || upperCode.includes("OTHERDOCUMENTS") || upperCode.includes("OTHER_DOCUMENT")) {
32137
32294
  return null;
@@ -32400,15 +32557,17 @@ function SelectDocument$2(_ref3) {
32400
32557
  return item === null || item === void 0 ? void 0 : (_item$documentType4 = item.documentType) === null || _item$documentType4 === void 0 ? void 0 : _item$documentType4.includes(doc === null || doc === void 0 ? void 0 : doc.code);
32401
32558
  }));
32402
32559
  const isCompletelyEmpty = isApplicantPhoto ? !uploadedFile : !uploadedFile && (!documentUid || !documentUid.trim()) && !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32403
- const isPartiallyFilled = isApplicantPhoto ? false : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32404
- const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded;
32405
- const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, effectiveRequired, !!uploadedFile);
32560
+ const isDocNumberMissing = isDocNumberMandatory && (!documentUid || !documentUid.trim());
32561
+ const isDocMissing = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code));
32562
+ const isPartiallyFilled = isApplicantPhoto ? false : isDocNumberMandatory ? !uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || isDocNumberMissing : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32563
+ const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isDocNumberMandatory;
32564
+ const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || effectiveRequired, !!uploadedFile);
32406
32565
  if (!isHidden) {
32407
32566
  if (err) {
32408
32567
  addError();
32409
- } else if (isPartiallyFilled) {
32568
+ } else if (isDocNumberMissing) {
32410
32569
  addError();
32411
- } else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
32570
+ } else if (isDocMissing) {
32412
32571
  addError();
32413
32572
  } else if (rwhMissing) {
32414
32573
  addError();
@@ -32539,7 +32698,9 @@ function SelectDocument$2(_ref3) {
32539
32698
  style: {
32540
32699
  margin: 0
32541
32700
  }
32542
- }, isOtherDocumentsRemark ? !t("WS_OTHER_DOCUMENT_REMARK") || t("WS_OTHER_DOCUMENT_REMARK") === "WS_OTHER_DOCUMENT_REMARK" ? "Other Document Remark" : t("WS_OTHER_DOCUMENT_REMARK") : t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey = doc.i18nKey) === null || _doc$i18nKey === void 0 ? void 0 : _doc$i18nKey.replaceAll(".", "_")}_DOCUMENT_NO`)), /*#__PURE__*/React.createElement("div", {
32701
+ }, isOtherDocumentsRemark ? !t("WS_OTHER_DOCUMENT_REMARK") || t("WS_OTHER_DOCUMENT_REMARK") === "WS_OTHER_DOCUMENT_REMARK" ? "Other Document Remark" : t("WS_OTHER_DOCUMENT_REMARK") : t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey = doc.i18nKey) === null || _doc$i18nKey === void 0 ? void 0 : _doc$i18nKey.replaceAll(".", "_")}_DOCUMENT_NO`), isDocNumberMandatory && /*#__PURE__*/React.createElement("span", {
32702
+ className: "check-page-link-button"
32703
+ }, " *")), /*#__PURE__*/React.createElement("div", {
32543
32704
  className: "field"
32544
32705
  }, /*#__PURE__*/React.createElement(TextInput, {
32545
32706
  type: "text",
@@ -32554,11 +32715,15 @@ function SelectDocument$2(_ref3) {
32554
32715
  val = val.substring(0, maxLen);
32555
32716
  }
32556
32717
  setDocumentUid(val);
32557
- setDocNumberError(null);
32718
+ if (isDocNumberMandatory && !val.trim()) {
32719
+ setDocNumberError(t("CORE_COMMON_REQUIRED_ERRMSG") || "This field is required");
32720
+ } else {
32721
+ setDocNumberError(validateDocumentNumber(val, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || (doc === null || doc === void 0 ? void 0 : doc.required), !!uploadedFile));
32722
+ }
32558
32723
  }
32559
32724
  },
32560
32725
  onBlur: () => {
32561
- setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile));
32726
+ setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || (doc === null || doc === void 0 ? void 0 : doc.required), !!uploadedFile));
32562
32727
  },
32563
32728
  placeholder: isOtherDocumentsRemark ? !t("WS_ENTER_OTHER_DOCUMENT_REMARK") || t("WS_ENTER_OTHER_DOCUMENT_REMARK") === "WS_ENTER_OTHER_DOCUMENT_REMARK" ? "Enter Other Document Remark" : t("WS_ENTER_OTHER_DOCUMENT_REMARK") : t("WS_IDENTITY_NO_PLACEHOLDER"),
32564
32729
  disabled: isDocumentUidLocked,
@@ -38309,7 +38474,7 @@ const PlumberDetails$1 = _props => {
38309
38474
  };
38310
38475
 
38311
38476
  const WSBankDetails = _ref => {
38312
- var _localFormState$touch, _errors$bankName, _localFormState$touch2, _errors$bankBranchNam, _localFormState$touch3, _errors$ifscCode, _localFormState$touch4, _errors$accountNumber;
38477
+ var _formData$WaterConnec4, _formData$WaterConnec5, _formData$WaterConnec6, _formData$WaterConnec0, _formData$WaterConnec1, _formData$WaterConnec10, _localFormState$touch, _errors$bankName, _errors$bankName2, _localFormState$touch2, _errors$bankBranchNam, _errors$bankBranchNam2, _localFormState$touch3, _errors$ifscCode, _errors$ifscCode2, _localFormState$touch4, _errors$accountNumber, _errors$accountNumber2;
38313
38478
  let {
38314
38479
  config,
38315
38480
  onSelect,
@@ -38322,60 +38487,143 @@ const WSBankDetails = _ref => {
38322
38487
  const {
38323
38488
  t
38324
38489
  } = useTranslation();
38490
+ const getInitialBankDetails = () => {
38491
+ var _formData$bankDetails, _formData$additionalD, _formData$application, _formData$WaterConnec, _formData$WaterConnec2, _formData$WaterConnec3, _formData$SewerageCon, _formData$SewerageCon2, _formData$SewerageCon3;
38492
+ const src = (formData === null || formData === void 0 ? void 0 : (_formData$bankDetails = formData.bankDetails) === null || _formData$bankDetails === void 0 ? void 0 : _formData$bankDetails.bankDetails) || (formData === null || formData === void 0 ? void 0 : formData.bankDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.bankDetails) || (formData === null || formData === void 0 ? void 0 : formData.additionalDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$application = formData.applicationData) === null || _formData$application === void 0 ? void 0 : _formData$application.additionalDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$WaterConnec = formData.WaterConnectionResult) === null || _formData$WaterConnec === void 0 ? void 0 : (_formData$WaterConnec2 = _formData$WaterConnec.WaterConnection) === null || _formData$WaterConnec2 === void 0 ? void 0 : (_formData$WaterConnec3 = _formData$WaterConnec2[0]) === null || _formData$WaterConnec3 === void 0 ? void 0 : _formData$WaterConnec3.additionalDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$SewerageCon = formData.SewerageConnectionResult) === null || _formData$SewerageCon === void 0 ? void 0 : (_formData$SewerageCon2 = _formData$SewerageCon.SewerageConnections) === null || _formData$SewerageCon2 === void 0 ? void 0 : (_formData$SewerageCon3 = _formData$SewerageCon2[0]) === null || _formData$SewerageCon3 === void 0 ? void 0 : _formData$SewerageCon3.additionalDetails) || {};
38493
+ return {
38494
+ bankName: (src === null || src === void 0 ? void 0 : src.bankName) || "",
38495
+ bankBranchName: (src === null || src === void 0 ? void 0 : src.bankBranchName) || (src === null || src === void 0 ? void 0 : src.branchName) || "",
38496
+ ifscCode: (src === null || src === void 0 ? void 0 : src.ifscCode) || "",
38497
+ accountNumber: (src === null || src === void 0 ? void 0 : src.accountNumber) || (src === null || src === void 0 ? void 0 : src.bankAccountNumber) || "",
38498
+ confirmAccountNumber: (src === null || src === void 0 ? void 0 : src.confirmAccountNumber) || (src === null || src === void 0 ? void 0 : src.accountNumber) || (src === null || src === void 0 ? void 0 : src.bankAccountNumber) || "",
38499
+ accountHolderName: (src === null || src === void 0 ? void 0 : src.accountHolderName) || ""
38500
+ };
38501
+ };
38502
+ const initialVals = getInitialBankDetails();
38503
+ const hasInitialData = Boolean(initialVals.bankName || initialVals.bankBranchName || initialVals.ifscCode || initialVals.accountNumber);
38504
+ const isInitializedRef = React.useRef(hasInitialData);
38505
+ const currentAppId = (formData === null || formData === void 0 ? void 0 : formData.applicationNo) || (formData === null || formData === void 0 ? void 0 : formData.applicationNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$WaterConnec4 = formData.WaterConnectionResult) === null || _formData$WaterConnec4 === void 0 ? void 0 : (_formData$WaterConnec5 = _formData$WaterConnec4.WaterConnection) === null || _formData$WaterConnec5 === void 0 ? void 0 : (_formData$WaterConnec6 = _formData$WaterConnec5[0]) === null || _formData$WaterConnec6 === void 0 ? void 0 : _formData$WaterConnec6.applicationNo) || (formData === null || formData === void 0 ? void 0 : formData.propertyId) || "";
38506
+ const appIdRef = React.useRef(currentAppId);
38325
38507
  const {
38326
38508
  control,
38327
38509
  formState: localFormState,
38328
38510
  watch,
38329
38511
  trigger,
38330
38512
  getValues,
38331
- setValue
38513
+ setValue,
38514
+ reset
38332
38515
  } = useForm({
38333
- defaultValues: (formData === null || formData === void 0 ? void 0 : formData.bankDetails) || {
38334
- bankName: "",
38335
- bankBranchName: "",
38336
- ifscCode: "",
38337
- accountNumber: "",
38338
- confirmAccountNumber: "",
38339
- accountHolderName: ""
38340
- }
38516
+ defaultValues: initialVals,
38517
+ mode: "all"
38341
38518
  });
38342
38519
  const formValue = watch();
38343
38520
  const {
38344
38521
  errors
38345
38522
  } = localFormState;
38523
+ const onSelectRef = React.useRef(onSelect);
38346
38524
  useEffect(() => {
38347
- if (userType === "employee") {
38348
- const isDifferent = !lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData.bankDetails, formValue);
38349
- if (isDifferent) {
38350
- const timer = setTimeout(() => {
38351
- onSelect(config === null || config === void 0 ? void 0 : config.key, {
38352
- ...formValue
38353
- });
38354
- }, 200);
38355
- return () => clearTimeout(timer);
38525
+ onSelectRef.current = onSelect;
38526
+ }, [onSelect]);
38527
+ const getValidationErrors = values => {
38528
+ const errs = {};
38529
+ const bankName = String((values === null || values === void 0 ? void 0 : values.bankName) || "").trim();
38530
+ const bankBranchName = String((values === null || values === void 0 ? void 0 : values.bankBranchName) || (values === null || values === void 0 ? void 0 : values.branchName) || "").trim();
38531
+ const ifscCode = String((values === null || values === void 0 ? void 0 : values.ifscCode) || "").trim().toUpperCase();
38532
+ const accountNumber = String((values === null || values === void 0 ? void 0 : values.accountNumber) || (values === null || values === void 0 ? void 0 : values.bankAccountNumber) || "").trim();
38533
+ if (!bankName) {
38534
+ errs.bankName = t("CORE_COMMON_REQUIRED_ERRMSG");
38535
+ }
38536
+ if (!bankBranchName) {
38537
+ errs.bankBranchName = t("CORE_COMMON_REQUIRED_ERRMSG");
38538
+ }
38539
+ if (!ifscCode) {
38540
+ errs.ifscCode = t("CORE_COMMON_REQUIRED_ERRMSG");
38541
+ } else if (!/^[A-Z]{4}0[A-Z0-9]{6}$/.test(ifscCode)) {
38542
+ errs.ifscCode = t("ERR_INVALID_IFSC_CODE");
38543
+ }
38544
+ if (!accountNumber) {
38545
+ errs.accountNumber = t("CORE_COMMON_REQUIRED_ERRMSG");
38546
+ } else if (!/^[0-9]{1,18}$/.test(accountNumber)) {
38547
+ errs.accountNumber = t("ERR_INVALID_BA_ACCOUNT_NUMBER");
38548
+ }
38549
+ return errs;
38550
+ };
38551
+ const bankErrors = getValidationErrors(formValue);
38552
+ const hasBankErrors = Object.keys(bankErrors).length > 0;
38553
+ useEffect(() => {
38554
+ var _formData$WaterConnec7, _formData$WaterConnec8, _formData$WaterConnec9;
38555
+ const latestAppId = (formData === null || formData === void 0 ? void 0 : formData.applicationNo) || (formData === null || formData === void 0 ? void 0 : formData.applicationNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$WaterConnec7 = formData.WaterConnectionResult) === null || _formData$WaterConnec7 === void 0 ? void 0 : (_formData$WaterConnec8 = _formData$WaterConnec7.WaterConnection) === null || _formData$WaterConnec8 === void 0 ? void 0 : (_formData$WaterConnec9 = _formData$WaterConnec8[0]) === null || _formData$WaterConnec9 === void 0 ? void 0 : _formData$WaterConnec9.applicationNo) || (formData === null || formData === void 0 ? void 0 : formData.propertyId) || "";
38556
+ const isDifferentApp = Boolean(latestAppId && appIdRef.current && latestAppId !== appIdRef.current);
38557
+ if (isDifferentApp) {
38558
+ appIdRef.current = latestAppId;
38559
+ const initial = getInitialBankDetails();
38560
+ reset(initial);
38561
+ isInitializedRef.current = true;
38562
+ return;
38563
+ }
38564
+ if (!isInitializedRef.current) {
38565
+ const initial = getInitialBankDetails();
38566
+ if (initial.bankName || initial.bankBranchName || initial.ifscCode || initial.accountNumber) {
38567
+ setValue("bankName", initial.bankName);
38568
+ setValue("bankBranchName", initial.bankBranchName);
38569
+ setValue("ifscCode", initial.ifscCode);
38570
+ setValue("accountNumber", initial.accountNumber);
38571
+ setValue("confirmAccountNumber", initial.confirmAccountNumber);
38572
+ setValue("accountHolderName", initial.accountHolderName);
38573
+ isInitializedRef.current = true;
38356
38574
  }
38357
38575
  }
38358
- }, [formValue, userType]);
38576
+ }, [formData === null || formData === void 0 ? void 0 : formData.bankDetails, formData === null || formData === void 0 ? void 0 : formData.additionalDetails, formData === null || formData === void 0 ? void 0 : formData.applicationNo, formData === null || formData === void 0 ? void 0 : formData.applicationNumber, formData === null || formData === void 0 ? void 0 : (_formData$WaterConnec0 = formData.WaterConnectionResult) === null || _formData$WaterConnec0 === void 0 ? void 0 : (_formData$WaterConnec1 = _formData$WaterConnec0.WaterConnection) === null || _formData$WaterConnec1 === void 0 ? void 0 : (_formData$WaterConnec10 = _formData$WaterConnec1[0]) === null || _formData$WaterConnec10 === void 0 ? void 0 : _formData$WaterConnec10.additionalDetails]);
38359
38577
  useEffect(() => {
38360
- var _formState$errors, _formState$errors$con, _formState$errors2;
38361
- if (Object.keys(errors).length && !lodash.isEqual((formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$con = _formState$errors[config.key]) === null || _formState$errors$con === void 0 ? void 0 : _formState$errors$con.type) || {}, errors)) {
38362
- if (setError) setError(config.key, {
38363
- type: errors
38578
+ var _formData$bankDetails2;
38579
+ const currentBank = (formData === null || formData === void 0 ? void 0 : (_formData$bankDetails2 = formData.bankDetails) === null || _formData$bankDetails2 === void 0 ? void 0 : _formData$bankDetails2.bankDetails) || (formData === null || formData === void 0 ? void 0 : formData.bankDetails) || {};
38580
+ const isDifferent = ((currentBank === null || currentBank === void 0 ? void 0 : currentBank.bankName) || "") !== ((formValue === null || formValue === void 0 ? void 0 : formValue.bankName) || "") || ((currentBank === null || currentBank === void 0 ? void 0 : currentBank.bankBranchName) || (currentBank === null || currentBank === void 0 ? void 0 : currentBank.branchName) || "") !== ((formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || "") || ((currentBank === null || currentBank === void 0 ? void 0 : currentBank.ifscCode) || "") !== ((formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode) || "") || ((currentBank === null || currentBank === void 0 ? void 0 : currentBank.accountNumber) || (currentBank === null || currentBank === void 0 ? void 0 : currentBank.bankAccountNumber) || "") !== ((formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || "");
38581
+ if (isDifferent && onSelectRef.current) {
38582
+ const timer = setTimeout(() => {
38583
+ const normalized = {
38584
+ bankName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankName) || "",
38585
+ branchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38586
+ bankBranchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38587
+ ifscCode: (formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode) || "",
38588
+ accountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || "",
38589
+ bankAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || "",
38590
+ confirmAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.confirmAccountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || "",
38591
+ accountHolderName: (formValue === null || formValue === void 0 ? void 0 : formValue.accountHolderName) || ""
38592
+ };
38593
+ onSelectRef.current((config === null || config === void 0 ? void 0 : config.key) || "bankDetails", normalized);
38594
+ }, 150);
38595
+ return () => clearTimeout(timer);
38596
+ }
38597
+ }, [formValue === null || formValue === void 0 ? void 0 : formValue.bankName, formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName, formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode, formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber, formData === null || formData === void 0 ? void 0 : formData.bankDetails, config === null || config === void 0 ? void 0 : config.key]);
38598
+ useEffect(() => {
38599
+ const configKey = (config === null || config === void 0 ? void 0 : config.key) || "bankDetails";
38600
+ if (hasBankErrors) {
38601
+ if (setError) setError(configKey, {
38602
+ type: "required",
38603
+ message: "CORE_COMMON_REQUIRED_ERRMSG"
38364
38604
  });
38365
- } else if (!Object.keys(errors).length && formState !== null && formState !== void 0 && (_formState$errors2 = formState.errors) !== null && _formState$errors2 !== void 0 && _formState$errors2[config.key]) {
38366
- if (clearErrors) clearErrors(config.key);
38605
+ } else {
38606
+ if (clearErrors) clearErrors(configKey);
38367
38607
  }
38368
- }, [errors]);
38608
+ }, [hasBankErrors, config === null || config === void 0 ? void 0 : config.key]);
38609
+ const lastFetchedIfscRef = React.useRef((initialVals === null || initialVals === void 0 ? void 0 : initialVals.ifscCode) || "");
38369
38610
  useEffect(() => {
38370
38611
  const ifsc = formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode;
38371
- if (ifsc && ifsc.length === 11) {
38612
+ if (ifsc && ifsc.length === 11 && ifsc !== lastFetchedIfscRef.current) {
38613
+ lastFetchedIfscRef.current = ifsc;
38372
38614
  fetch(`https://ifsc.razorpay.com/${ifsc}`).then(response => {
38373
38615
  if (response.ok) return response.json();
38374
38616
  throw new Error("Invalid IFSC");
38375
38617
  }).then(data => {
38376
38618
  if (data) {
38377
- setValue("bankName", data.BANK);
38378
- setValue("bankBranchName", data.BRANCH);
38619
+ if (data.BANK) setValue("bankName", data.BANK, {
38620
+ shouldValidate: true,
38621
+ shouldDirty: true
38622
+ });
38623
+ if (data.BRANCH) setValue("bankBranchName", data.BRANCH, {
38624
+ shouldValidate: true,
38625
+ shouldDirty: true
38626
+ });
38379
38627
  }
38380
38628
  }).catch(err => {
38381
38629
  console.error("IFSC lookup failed", err);
@@ -38388,16 +38636,48 @@ const WSBankDetails = _ref => {
38388
38636
  fontSize: "12px",
38389
38637
  marginTop: "-21px"
38390
38638
  };
38639
+ const triggerParentSync = () => {
38640
+ if (onSelectRef.current) {
38641
+ const current = getValues();
38642
+ const normalized = {
38643
+ bankName: (current === null || current === void 0 ? void 0 : current.bankName) || "",
38644
+ branchName: (current === null || current === void 0 ? void 0 : current.bankBranchName) || (current === null || current === void 0 ? void 0 : current.branchName) || "",
38645
+ bankBranchName: (current === null || current === void 0 ? void 0 : current.bankBranchName) || (current === null || current === void 0 ? void 0 : current.branchName) || "",
38646
+ ifscCode: (current === null || current === void 0 ? void 0 : current.ifscCode) || "",
38647
+ accountNumber: (current === null || current === void 0 ? void 0 : current.accountNumber) || (current === null || current === void 0 ? void 0 : current.bankAccountNumber) || "",
38648
+ bankAccountNumber: (current === null || current === void 0 ? void 0 : current.accountNumber) || (current === null || current === void 0 ? void 0 : current.bankAccountNumber) || "",
38649
+ confirmAccountNumber: (current === null || current === void 0 ? void 0 : current.confirmAccountNumber) || (current === null || current === void 0 ? void 0 : current.accountNumber) || "",
38650
+ accountHolderName: (current === null || current === void 0 ? void 0 : current.accountHolderName) || ""
38651
+ };
38652
+ onSelectRef.current((config === null || config === void 0 ? void 0 : config.key) || "bankDetails", normalized);
38653
+ }
38654
+ };
38391
38655
  const goNext = () => {
38392
- onSelect(config.key, formValue);
38656
+ const errs = getValidationErrors(formValue);
38657
+ if (Object.keys(errs).length > 0) {
38658
+ trigger(["bankName", "bankBranchName", "ifscCode", "accountNumber"]);
38659
+ return;
38660
+ }
38661
+ const normalized = {
38662
+ ...formValue,
38663
+ branchName: (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || "",
38664
+ bankBranchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38665
+ bankAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || "",
38666
+ accountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || ""
38667
+ };
38668
+ onSelect(config.key, normalized);
38393
38669
  };
38394
- const onSkip = () => onSelect();
38395
38670
  const FormContent = /*#__PURE__*/React.createElement(CollapsibleCardPage, {
38396
38671
  title: t("WS_BANK_DETAILS"),
38397
38672
  defaultOpen: true
38398
38673
  }, /*#__PURE__*/React.createElement("div", {
38399
38674
  className: "formcomposer-section-grid"
38400
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BANK") + " *"), /*#__PURE__*/React.createElement("div", {
38675
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BANK"), " ", /*#__PURE__*/React.createElement("span", {
38676
+ className: "astericColor",
38677
+ style: {
38678
+ color: "#d4351c"
38679
+ }
38680
+ }, "*")), /*#__PURE__*/React.createElement("div", {
38401
38681
  className: "field"
38402
38682
  }, /*#__PURE__*/React.createElement(Controller, {
38403
38683
  control: control,
@@ -38408,12 +38688,24 @@ const WSBankDetails = _ref => {
38408
38688
  render: props => /*#__PURE__*/React.createElement(TextInput, {
38409
38689
  value: props.value,
38410
38690
  placeholder: t("WS_NAME_OF_BANK_PLACEHOLDER"),
38411
- onChange: e => props.onChange(e.target.value),
38412
- onBlur: props.onBlur
38691
+ onChange: e => {
38692
+ props.onChange(e.target.value);
38693
+ trigger("bankName");
38694
+ },
38695
+ onBlur: e => {
38696
+ props.onBlur(e);
38697
+ trigger("bankName");
38698
+ triggerParentSync();
38699
+ }
38413
38700
  })
38414
- }))), (_localFormState$touch = localFormState.touched) !== null && _localFormState$touch !== void 0 && _localFormState$touch.bankName ? /*#__PURE__*/React.createElement(CardLabelError, {
38701
+ }))), ((_localFormState$touch = localFormState.touched) !== null && _localFormState$touch !== void 0 && _localFormState$touch.bankName || localFormState.isSubmitted) && (errors !== null && errors !== void 0 && (_errors$bankName = errors.bankName) !== null && _errors$bankName !== void 0 && _errors$bankName.message || bankErrors !== null && bankErrors !== void 0 && bankErrors.bankName) ? /*#__PURE__*/React.createElement(CardLabelError, {
38415
38702
  style: errorStyle
38416
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankName = errors.bankName) === null || _errors$bankName === void 0 ? void 0 : _errors$bankName.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BRANCH") + " *"), /*#__PURE__*/React.createElement("div", {
38703
+ }, " ", (errors === null || errors === void 0 ? void 0 : (_errors$bankName2 = errors.bankName) === null || _errors$bankName2 === void 0 ? void 0 : _errors$bankName2.message) || (bankErrors === null || bankErrors === void 0 ? void 0 : bankErrors.bankName)) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BRANCH"), " ", /*#__PURE__*/React.createElement("span", {
38704
+ className: "astericColor",
38705
+ style: {
38706
+ color: "#d4351c"
38707
+ }
38708
+ }, "*")), /*#__PURE__*/React.createElement("div", {
38417
38709
  className: "field"
38418
38710
  }, /*#__PURE__*/React.createElement(Controller, {
38419
38711
  control: control,
@@ -38424,12 +38716,24 @@ const WSBankDetails = _ref => {
38424
38716
  render: props => /*#__PURE__*/React.createElement(TextInput, {
38425
38717
  value: props.value,
38426
38718
  placeholder: t("WS_NAME_OF_BRANCH_PLACEHOLDER"),
38427
- onChange: e => props.onChange(e.target.value),
38428
- onBlur: props.onBlur
38719
+ onChange: e => {
38720
+ props.onChange(e.target.value);
38721
+ trigger("bankBranchName");
38722
+ },
38723
+ onBlur: e => {
38724
+ props.onBlur(e);
38725
+ trigger("bankBranchName");
38726
+ triggerParentSync();
38727
+ }
38429
38728
  })
38430
- }))), (_localFormState$touch2 = localFormState.touched) !== null && _localFormState$touch2 !== void 0 && _localFormState$touch2.bankBranchName ? /*#__PURE__*/React.createElement(CardLabelError, {
38729
+ }))), ((_localFormState$touch2 = localFormState.touched) !== null && _localFormState$touch2 !== void 0 && _localFormState$touch2.bankBranchName || localFormState.isSubmitted) && (errors !== null && errors !== void 0 && (_errors$bankBranchNam = errors.bankBranchName) !== null && _errors$bankBranchNam !== void 0 && _errors$bankBranchNam.message || bankErrors !== null && bankErrors !== void 0 && bankErrors.bankBranchName) ? /*#__PURE__*/React.createElement(CardLabelError, {
38431
38730
  style: errorStyle
38432
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankBranchNam = errors.bankBranchName) === null || _errors$bankBranchNam === void 0 ? void 0 : _errors$bankBranchNam.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_IFSC_CODE") + " *"), /*#__PURE__*/React.createElement("div", {
38731
+ }, " ", (errors === null || errors === void 0 ? void 0 : (_errors$bankBranchNam2 = errors.bankBranchName) === null || _errors$bankBranchNam2 === void 0 ? void 0 : _errors$bankBranchNam2.message) || (bankErrors === null || bankErrors === void 0 ? void 0 : bankErrors.bankBranchName)) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_IFSC_CODE"), " ", /*#__PURE__*/React.createElement("span", {
38732
+ className: "astericColor",
38733
+ style: {
38734
+ color: "#d4351c"
38735
+ }
38736
+ }, "*")), /*#__PURE__*/React.createElement("div", {
38433
38737
  className: "field"
38434
38738
  }, /*#__PURE__*/React.createElement(Controller, {
38435
38739
  control: control,
@@ -38444,12 +38748,27 @@ const WSBankDetails = _ref => {
38444
38748
  render: props => /*#__PURE__*/React.createElement(TextInput, {
38445
38749
  value: props.value,
38446
38750
  placeholder: t("WS_IFSC_CODE_PLACEHOLDER"),
38447
- onChange: e => props.onChange(e.target.value.toUpperCase()),
38448
- onBlur: props.onBlur
38751
+ onChange: e => {
38752
+ let val = e.target.value.toUpperCase();
38753
+ if (val.length > 11) val = val.slice(0, 11);
38754
+ props.onChange(val);
38755
+ trigger("ifscCode");
38756
+ },
38757
+ onBlur: e => {
38758
+ props.onBlur(e);
38759
+ trigger("ifscCode");
38760
+ triggerParentSync();
38761
+ },
38762
+ maxLength: 11
38449
38763
  })
38450
- }))), (_localFormState$touch3 = localFormState.touched) !== null && _localFormState$touch3 !== void 0 && _localFormState$touch3.ifscCode ? /*#__PURE__*/React.createElement(CardLabelError, {
38764
+ }))), ((_localFormState$touch3 = localFormState.touched) !== null && _localFormState$touch3 !== void 0 && _localFormState$touch3.ifscCode || localFormState.isSubmitted) && (errors !== null && errors !== void 0 && (_errors$ifscCode = errors.ifscCode) !== null && _errors$ifscCode !== void 0 && _errors$ifscCode.message || bankErrors !== null && bankErrors !== void 0 && bankErrors.ifscCode) ? /*#__PURE__*/React.createElement(CardLabelError, {
38451
38765
  style: errorStyle
38452
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$ifscCode = errors.ifscCode) === null || _errors$ifscCode === void 0 ? void 0 : _errors$ifscCode.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_BANK_ACCOUNT_NO") + " *"), /*#__PURE__*/React.createElement("div", {
38766
+ }, " ", (errors === null || errors === void 0 ? void 0 : (_errors$ifscCode2 = errors.ifscCode) === null || _errors$ifscCode2 === void 0 ? void 0 : _errors$ifscCode2.message) || (bankErrors === null || bankErrors === void 0 ? void 0 : bankErrors.ifscCode)) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_BANK_ACCOUNT_NO"), " ", /*#__PURE__*/React.createElement("span", {
38767
+ className: "astericColor",
38768
+ style: {
38769
+ color: "#d4351c"
38770
+ }
38771
+ }, "*")), /*#__PURE__*/React.createElement("div", {
38453
38772
  className: "field"
38454
38773
  }, /*#__PURE__*/React.createElement(Controller, {
38455
38774
  control: control,
@@ -38470,13 +38789,19 @@ const WSBankDetails = _ref => {
38470
38789
  value = value.slice(0, 18);
38471
38790
  }
38472
38791
  props.onChange(value);
38792
+ setValue("confirmAccountNumber", value);
38793
+ trigger("accountNumber");
38794
+ },
38795
+ onBlur: e => {
38796
+ props.onBlur(e);
38797
+ trigger("accountNumber");
38798
+ triggerParentSync();
38473
38799
  },
38474
- onBlur: props.onBlur,
38475
38800
  maxLength: 18
38476
38801
  })
38477
- }))), (_localFormState$touch4 = localFormState.touched) !== null && _localFormState$touch4 !== void 0 && _localFormState$touch4.accountNumber ? /*#__PURE__*/React.createElement(CardLabelError, {
38802
+ }))), ((_localFormState$touch4 = localFormState.touched) !== null && _localFormState$touch4 !== void 0 && _localFormState$touch4.accountNumber || localFormState.isSubmitted) && (errors !== null && errors !== void 0 && (_errors$accountNumber = errors.accountNumber) !== null && _errors$accountNumber !== void 0 && _errors$accountNumber.message || bankErrors !== null && bankErrors !== void 0 && bankErrors.accountNumber) ? /*#__PURE__*/React.createElement(CardLabelError, {
38478
38803
  style: errorStyle
38479
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$accountNumber = errors.accountNumber) === null || _errors$accountNumber === void 0 ? void 0 : _errors$accountNumber.message) : null), /*#__PURE__*/React.createElement("div", {
38804
+ }, " ", (errors === null || errors === void 0 ? void 0 : (_errors$accountNumber2 = errors.accountNumber) === null || _errors$accountNumber2 === void 0 ? void 0 : _errors$accountNumber2.message) || (bankErrors === null || bankErrors === void 0 ? void 0 : bankErrors.accountNumber)) : null), /*#__PURE__*/React.createElement("div", {
38480
38805
  style: {
38481
38806
  display: "none"
38482
38807
  }
@@ -38500,8 +38825,7 @@ const WSBankDetails = _ref => {
38500
38825
  t: t,
38501
38826
  config: config,
38502
38827
  onSelect: goNext,
38503
- onSkip: onSkip,
38504
- isDisabled: Object.keys(errors).length > 0
38828
+ isDisabled: hasBankErrors || Object.keys(errors).length > 0
38505
38829
  }, /*#__PURE__*/React.createElement("div", {
38506
38830
  style: {
38507
38831
  marginTop: "-30px",
@@ -38873,7 +39197,7 @@ const WSDeclaration = _ref => {
38873
39197
  };
38874
39198
 
38875
39199
  const WSDjbEmployee = _ref => {
38876
- var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch, _formValue$employeeId, _formValue$employeeId2, _localFormState$touch2, _formValue$designatio, _formValue$designatio2, _formData$dueVerifica;
39200
+ var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch, _localFormState$error, _localFormState$error2, _localFormState$error3, _localFormState$error4, _localFormState$touch2, _formValue$designatio, _formValue$designatio2, _formData$dueVerifica;
38877
39201
  let {
38878
39202
  config,
38879
39203
  onSelect,
@@ -38923,8 +39247,11 @@ const WSDjbEmployee = _ref => {
38923
39247
  const errs = {};
38924
39248
  const isEmp = (values === null || values === void 0 ? void 0 : values.isDjbEmployee) === true || String(values === null || values === void 0 ? void 0 : values.isDjbEmployee) === "true";
38925
39249
  if (isEmp) {
38926
- if (!(values !== null && values !== void 0 && values.employeeId) || !String(values === null || values === void 0 ? void 0 : values.employeeId).trim()) {
39250
+ const empId = String((values === null || values === void 0 ? void 0 : values.employeeId) || "").trim();
39251
+ if (!empId) {
38927
39252
  errs.employeeId = t("CORE_COMMON_REQUIRED_ERRMSG");
39253
+ } else if (!/^\d{8}$/.test(empId)) {
39254
+ errs.employeeId = t("WS_EMPLOYEE_ID_8_DIGITS_ERRMSG") || "Employee ID must be exactly 8 digits (numbers only)";
38928
39255
  }
38929
39256
  if (!(values !== null && values !== void 0 && values.designation) || !String(values === null || values === void 0 ? void 0 : values.designation).trim()) {
38930
39257
  errs.designation = t("CORE_COMMON_REQUIRED_ERRMSG");
@@ -39000,12 +39327,9 @@ const WSDjbEmployee = _ref => {
39000
39327
  message: "CORE_COMMON_REQUIRED_ERRMSG"
39001
39328
  });
39002
39329
  } else {
39003
- var _formState$errors;
39004
- if (formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && _formState$errors[configKey] && clearErrors) {
39005
- clearErrors(configKey);
39006
- }
39330
+ if (clearErrors) clearErrors(configKey);
39007
39331
  }
39008
- }, [hasDjbErrors, formValue === null || formValue === void 0 ? void 0 : formValue.isDjbEmployee, formValue === null || formValue === void 0 ? void 0 : formValue.employeeId, formValue === null || formValue === void 0 ? void 0 : formValue.designation, config === null || config === void 0 ? void 0 : config.key]);
39332
+ }, [hasDjbErrors, config === null || config === void 0 ? void 0 : config.key]);
39009
39333
  const goNext = () => {
39010
39334
  onSelect(config.key, formValue);
39011
39335
  };
@@ -39065,12 +39389,25 @@ const WSDjbEmployee = _ref => {
39065
39389
  control: control,
39066
39390
  name: "employeeId",
39067
39391
  rules: {
39068
- required: isDjbEmployee ? t("CORE_COMMON_REQUIRED_ERRMSG") : false
39392
+ required: isDjbEmployee ? t("CORE_COMMON_REQUIRED_ERRMSG") : false,
39393
+ validate: val => {
39394
+ if (!isDjbEmployee) return true;
39395
+ const trimmed = String(val || "").trim();
39396
+ if (!trimmed) return t("CORE_COMMON_REQUIRED_ERRMSG");
39397
+ if (!/^\d{8}$/.test(trimmed)) {
39398
+ return t("WS_EMPLOYEE_ID_8_DIGITS_ERRMSG") || "Employee ID must be exactly 8 digits (numbers only)";
39399
+ }
39400
+ return true;
39401
+ }
39069
39402
  },
39070
39403
  render: props => /*#__PURE__*/React.createElement(TextInput, {
39404
+ type: "text",
39071
39405
  value: props.value,
39406
+ maxlength: 8,
39407
+ maxLength: 8,
39072
39408
  onChange: e => {
39073
- props.onChange(e.target.value);
39409
+ const cleanVal = e.target.value.replace(/\D/g, "").slice(0, 8);
39410
+ props.onChange(cleanVal);
39074
39411
  trigger("employeeId");
39075
39412
  },
39076
39413
  onBlur: e => {
@@ -39079,9 +39416,9 @@ const WSDjbEmployee = _ref => {
39079
39416
  },
39080
39417
  placeholder: t("Employee ID")
39081
39418
  })
39082
- }), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch = localFormState.touched) === null || _localFormState$touch === void 0 ? void 0 : _localFormState$touch.employeeId) && !(formValue !== null && formValue !== void 0 && (_formValue$employeeId = formValue.employeeId) !== null && _formValue$employeeId !== void 0 && (_formValue$employeeId2 = _formValue$employeeId.trim) !== null && _formValue$employeeId2 !== void 0 && _formValue$employeeId2.call(_formValue$employeeId)) && /*#__PURE__*/React.createElement(CardLabelError, {
39419
+ }), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch = localFormState.touched) === null || _localFormState$touch === void 0 ? void 0 : _localFormState$touch.employeeId) && (localFormState !== null && localFormState !== void 0 && (_localFormState$error = localFormState.errors) !== null && _localFormState$error !== void 0 && (_localFormState$error2 = _localFormState$error.employeeId) !== null && _localFormState$error2 !== void 0 && _localFormState$error2.message || djbErrors !== null && djbErrors !== void 0 && djbErrors.employeeId ? /*#__PURE__*/React.createElement(CardLabelError, {
39083
39420
  style: errorStyle
39084
- }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Date of Retirement"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
39421
+ }, (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$error3 = localFormState.errors) === null || _localFormState$error3 === void 0 ? void 0 : (_localFormState$error4 = _localFormState$error3.employeeId) === null || _localFormState$error4 === void 0 ? void 0 : _localFormState$error4.message) || (djbErrors === null || djbErrors === void 0 ? void 0 : djbErrors.employeeId)) : null)))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Date of Retirement"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
39085
39422
  className: "check-page-link-button"
39086
39423
  }, " *")), /*#__PURE__*/React.createElement("div", {
39087
39424
  className: "field"
@@ -39495,6 +39832,86 @@ const PropertyWaterConnection = _ref => {
39495
39832
  const watchPropertyType = watch("useDetails.propertyType");
39496
39833
  const watchPropertyCategory = watch("useDetails.propertyCategory");
39497
39834
  const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
39835
+ const watchPlotArea = watch("useDetails.plotArea");
39836
+ const watchBuiltUpArea = watch("useDetails.builtUpArea");
39837
+ const watchHeightOfTheBuilding = watch("useDetails.heightOfTheBuilding");
39838
+ const [showToast, setShowToast] = useState(null);
39839
+ useEffect(() => {
39840
+ if (showToast) {
39841
+ const timer = setTimeout(() => {
39842
+ setShowToast(null);
39843
+ }, 5000);
39844
+ return () => clearTimeout(timer);
39845
+ }
39846
+ }, [showToast]);
39847
+ const getPlotAreaError = () => {
39848
+ const trans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
39849
+ return trans && trans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? trans : "Plot area should always be more than built up area.";
39850
+ };
39851
+ const getHeightErrorMessage = () => {
39852
+ const trans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
39853
+ return trans && trans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? trans : "Height of the building must be 17.5 meters or less for Normal connection.";
39854
+ };
39855
+ const isPlotAreaInvalid = useMemo(() => {
39856
+ if (!watchPlotArea || !watchBuiltUpArea) return false;
39857
+ const plot = parseFloat(watchPlotArea);
39858
+ const built = parseFloat(watchBuiltUpArea);
39859
+ if (!isNaN(plot) && !isNaN(built)) {
39860
+ return plot <= built;
39861
+ }
39862
+ return false;
39863
+ }, [watchPlotArea, watchBuiltUpArea]);
39864
+ const isHeightInvalid = useMemo(() => {
39865
+ if (!watchHeightOfTheBuilding) return false;
39866
+ const usageCode = typeof watchWaterConnectionUsageType === "object" ? (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.code) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.value) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.name) : watchWaterConnectionUsageType;
39867
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
39868
+ if (!isNormal) return false;
39869
+ const height = parseFloat(watchHeightOfTheBuilding);
39870
+ return !isNaN(height) && height > 17.5;
39871
+ }, [watchHeightOfTheBuilding, watchWaterConnectionUsageType]);
39872
+ const handleAreaBlur = () => {
39873
+ const plot = parseFloat(watchPlotArea);
39874
+ const built = parseFloat(watchBuiltUpArea);
39875
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
39876
+ setShowToast({
39877
+ key: true,
39878
+ label: getPlotAreaError()
39879
+ });
39880
+ }
39881
+ };
39882
+ const handleHeightBlur = e => {
39883
+ var _e$target;
39884
+ const usageCode = typeof watchWaterConnectionUsageType === "object" ? (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.code) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.value) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.name) : watchWaterConnectionUsageType;
39885
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
39886
+ const height = parseFloat((e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) !== undefined ? e.target.value : watchHeightOfTheBuilding);
39887
+ if (isNormal && !isNaN(height) && height > 17.5) {
39888
+ setShowToast({
39889
+ key: true,
39890
+ label: getHeightErrorMessage()
39891
+ });
39892
+ }
39893
+ };
39894
+ useEffect(() => {
39895
+ if (isPlotAreaInvalid) {
39896
+ if (typeof setError === "function" && config !== null && config !== void 0 && config.key) {
39897
+ setError(config.key, {
39898
+ type: "custom",
39899
+ message: getPlotAreaError()
39900
+ });
39901
+ }
39902
+ } else if (isHeightInvalid) {
39903
+ if (typeof setError === "function" && config !== null && config !== void 0 && config.key) {
39904
+ setError(config.key, {
39905
+ type: "custom",
39906
+ message: getHeightErrorMessage()
39907
+ });
39908
+ }
39909
+ } else {
39910
+ if (typeof clearErrors === "function" && config !== null && config !== void 0 && config.key) {
39911
+ clearErrors(config.key);
39912
+ }
39913
+ }
39914
+ }, [isPlotAreaInvalid, isHeightInvalid, config === null || config === void 0 ? void 0 : config.key, setError, clearErrors]);
39498
39915
  const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
39499
39916
  const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
39500
39917
  const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
@@ -39537,7 +39954,10 @@ const PropertyWaterConnection = _ref => {
39537
39954
  var _ptServicesMastersDat2;
39538
39955
  const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat2 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat2 === void 0 ? void 0 : _ptServicesMastersDat2.PropertyType) || [];
39539
39956
  const uniqueCats = [...new Set(list.map(item => item.propertyCategory).filter(Boolean))];
39540
- return uniqueCats.map(cat => ({
39957
+ return uniqueCats.sort((a, b) => a.localeCompare(b, undefined, {
39958
+ numeric: true,
39959
+ sensitivity: "base"
39960
+ })).map(cat => ({
39541
39961
  code: cat,
39542
39962
  name: cat,
39543
39963
  i18nKey: cat
@@ -39551,6 +39971,9 @@ const PropertyWaterConnection = _ref => {
39551
39971
  code: item.code,
39552
39972
  name: item.name || item.code,
39553
39973
  i18nKey: item.i18nKey || item.code
39974
+ })).sort((a, b) => (a.name || "").localeCompare(b.name || "", undefined, {
39975
+ numeric: true,
39976
+ sensitivity: "base"
39554
39977
  }));
39555
39978
  }, [propertyType2List, ptServicesMastersData]);
39556
39979
  const usageTypeOptions = useMemo(() => {
@@ -39558,7 +39981,10 @@ const PropertyWaterConnection = _ref => {
39558
39981
  const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat4 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat4 === void 0 ? void 0 : _ptServicesMastersDat4.PropertyType) || [];
39559
39982
  const uniqueTypes = [...new Set(list.map(item => item.waterConnectionUsageType).filter(Boolean))];
39560
39983
  const typesToMap = uniqueTypes.length > 0 ? uniqueTypes : ["Normal", "Bulk"];
39561
- return typesToMap.map(type => ({
39984
+ return typesToMap.sort((a, b) => a.localeCompare(b, undefined, {
39985
+ numeric: true,
39986
+ sensitivity: "base"
39987
+ })).map(type => ({
39562
39988
  code: type,
39563
39989
  name: type,
39564
39990
  value: type
@@ -39830,7 +40256,7 @@ const PropertyWaterConnection = _ref => {
39830
40256
  fontSize: "12px",
39831
40257
  marginTop: "-21px"
39832
40258
  };
39833
- return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
40259
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
39834
40260
  title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
39835
40261
  defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
39836
40262
  style: props.style
@@ -40007,9 +40433,18 @@ const PropertyWaterConnection = _ref => {
40007
40433
  }, /*#__PURE__*/React.createElement(TextInput, {
40008
40434
  t: t,
40009
40435
  inputRef: register({
40436
+ required: t("REQUIRED_FIELD"),
40010
40437
  pattern: {
40011
40438
  value: DECIMAL_PATTERN$1,
40012
40439
  message: t("ERR_INVALID_DECIMAL")
40440
+ },
40441
+ validate: value => {
40442
+ const built = parseFloat(watchBuiltUpArea);
40443
+ const plot = parseFloat(value);
40444
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
40445
+ return getPlotAreaError();
40446
+ }
40447
+ return true;
40013
40448
  }
40014
40449
  }),
40015
40450
  rules: {
@@ -40017,10 +40452,15 @@ const PropertyWaterConnection = _ref => {
40017
40452
  },
40018
40453
  name: "useDetails.plotArea",
40019
40454
  disabled: isPropertyFound,
40020
- placeholder: t("WS_PLOT_AREA")
40021
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
40022
- style: errorStyle
40023
- }, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React.createElement("span", {
40455
+ placeholder: t("WS_PLOT_AREA"),
40456
+ onBlur: handleAreaBlur
40457
+ }), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
40458
+ style: {
40459
+ fontSize: "12px",
40460
+ color: "#d4351c",
40461
+ marginTop: "4px"
40462
+ }
40463
+ }, errors.useDetails.plotArea.message))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React.createElement("span", {
40024
40464
  className: "check-page-link-button"
40025
40465
  }, "*")), /*#__PURE__*/React.createElement("div", {
40026
40466
  className: "form-field"
@@ -40031,6 +40471,14 @@ const PropertyWaterConnection = _ref => {
40031
40471
  pattern: {
40032
40472
  value: DECIMAL_PATTERN$1,
40033
40473
  message: t("ERR_INVALID_DECIMAL")
40474
+ },
40475
+ validate: value => {
40476
+ const plot = parseFloat(watchPlotArea);
40477
+ const built = parseFloat(value);
40478
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
40479
+ return getPlotAreaError();
40480
+ }
40481
+ return true;
40034
40482
  }
40035
40483
  }),
40036
40484
  name: "useDetails.builtUpArea",
@@ -40038,10 +40486,21 @@ const PropertyWaterConnection = _ref => {
40038
40486
  required: t("REQUIRED_FIELD")
40039
40487
  },
40040
40488
  disabled: isPropertyFound,
40041
- placeholder: t("WS_BUILT_UP_AREA")
40042
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
40043
- style: errorStyle
40044
- }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_HEIGHT_OF_THE_BUILDING(meters)")}`, /*#__PURE__*/React.createElement("span", {
40489
+ placeholder: t("WS_BUILT_UP_AREA"),
40490
+ onBlur: handleAreaBlur
40491
+ }), errors !== null && errors !== void 0 && (_errors$useDetails9 = errors.useDetails) !== null && _errors$useDetails9 !== void 0 && _errors$useDetails9.builtUpArea ? /*#__PURE__*/React.createElement(CardLabelError, {
40492
+ style: {
40493
+ fontSize: "12px",
40494
+ color: "#d4351c",
40495
+ marginTop: "4px"
40496
+ }
40497
+ }, errors.useDetails.builtUpArea.message) : isPlotAreaInvalid ? /*#__PURE__*/React.createElement(CardLabelError, {
40498
+ style: {
40499
+ fontSize: "12px",
40500
+ color: "#d4351c",
40501
+ marginTop: "4px"
40502
+ }
40503
+ }, getPlotAreaError()) : null)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_HEIGHT_OF_THE_BUILDING(meters)")}`, /*#__PURE__*/React.createElement("span", {
40045
40504
  className: "check-page-link-button"
40046
40505
  }, " *")), /*#__PURE__*/React.createElement("div", {
40047
40506
  className: "form-field"
@@ -40052,6 +40511,15 @@ const PropertyWaterConnection = _ref => {
40052
40511
  pattern: {
40053
40512
  value: DECIMAL_PATTERN$1,
40054
40513
  message: t("ERR_INVALID_DECIMAL")
40514
+ },
40515
+ validate: value => {
40516
+ const usageCode = typeof watchWaterConnectionUsageType === "object" ? (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.code) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.value) || (watchWaterConnectionUsageType === null || watchWaterConnectionUsageType === void 0 ? void 0 : watchWaterConnectionUsageType.name) : watchWaterConnectionUsageType;
40517
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
40518
+ const height = parseFloat(value);
40519
+ if (isNormal && !isNaN(height) && height > 17.5) {
40520
+ return getHeightErrorMessage();
40521
+ }
40522
+ return true;
40055
40523
  }
40056
40524
  }),
40057
40525
  name: "useDetails.heightOfTheBuilding",
@@ -40059,10 +40527,21 @@ const PropertyWaterConnection = _ref => {
40059
40527
  required: t("REQUIRED_FIELD")
40060
40528
  },
40061
40529
  disabled: isPropertyFound,
40062
- placeholder: t("WS_HEIGHT_OF_THE_BUILDING")
40063
- })), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.heightOfTheBuilding) && /*#__PURE__*/React.createElement(CardLabelError, {
40064
- style: errorStyle
40065
- }, errors.useDetails.heightOfTheBuilding.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`), /*#__PURE__*/React.createElement("div", {
40530
+ placeholder: t("WS_HEIGHT_OF_THE_BUILDING"),
40531
+ onBlur: handleHeightBlur
40532
+ }), errors !== null && errors !== void 0 && (_errors$useDetails0 = errors.useDetails) !== null && _errors$useDetails0 !== void 0 && _errors$useDetails0.heightOfTheBuilding ? /*#__PURE__*/React.createElement(CardLabelError, {
40533
+ style: {
40534
+ fontSize: "12px",
40535
+ color: "#d4351c",
40536
+ marginTop: "4px"
40537
+ }
40538
+ }, errors.useDetails.heightOfTheBuilding.message) : isHeightInvalid ? /*#__PURE__*/React.createElement(CardLabelError, {
40539
+ style: {
40540
+ fontSize: "12px",
40541
+ color: "#d4351c",
40542
+ marginTop: "4px"
40543
+ }
40544
+ }, getHeightErrorMessage()) : null)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`), /*#__PURE__*/React.createElement("div", {
40066
40545
  className: "form-field"
40067
40546
  }, /*#__PURE__*/React.createElement(Controller, {
40068
40547
  control: control,
@@ -40100,7 +40579,14 @@ const PropertyWaterConnection = _ref => {
40100
40579
  placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
40101
40580
  }))) : null, isDwellingUnit && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.NumberofDwellingUnits) && /*#__PURE__*/React.createElement(CardLabelError, {
40102
40581
  style: errorStyle
40103
- }, errors.useDetails.NumberofDwellingUnits.message)));
40582
+ }, errors.useDetails.NumberofDwellingUnits.message))), showToast && /*#__PURE__*/React.createElement(Toast, {
40583
+ error: showToast.key,
40584
+ label: showToast.label,
40585
+ isDleteBtn: true,
40586
+ onClose: () => {
40587
+ setShowToast(null);
40588
+ }
40589
+ }));
40104
40590
  };
40105
40591
 
40106
40592
  const WSPropertyWaterConnection = props => {
@@ -44183,6 +44669,20 @@ const newConfig = [{
44183
44669
  cardText: "",
44184
44670
  submitBarLabel: "CS_COMMON_NEXT"
44185
44671
  }
44672
+ }, {
44673
+ route: "bank-details",
44674
+ component: "WSBankDetails",
44675
+ isMandatory: true,
44676
+ key: "bankDetails",
44677
+ nextStep: "disability-details",
44678
+ WATER: "disability-details",
44679
+ hideInEmployee: true,
44680
+ texts: {
44681
+ headerCaption: "WS_COMMON_CONNECTION_DETAIL",
44682
+ header: "WS_BANK_DETAILS",
44683
+ cardText: "",
44684
+ submitBarLabel: "CS_COMMON_NEXT"
44685
+ }
44186
44686
  }, {
44187
44687
  route: "disability-details",
44188
44688
  component: "WSDivyangjan",
@@ -47468,7 +47968,7 @@ const checkForNA$2 = value => {
47468
47968
  return value ? value : "CS_NA";
47469
47969
  };
47470
47970
  const WSApplicationDetails = () => {
47471
- 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;
47971
+ 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, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _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$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca3, _propertyAddress$loca4, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse3, _propertyAddress$asse4, _propertyAddress$bloc3, _propertyAddress$bloc4, _propertyAddress$ward3, _propertyAddress$ward4, _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;
47472
47972
  const getDisconnectionNoticeSearch = function () {
47473
47973
  try {
47474
47974
  var _data$WaterConnection227, _data$WaterConnection228, _data$SewerageConnect219, _data$SewerageConnect220;
@@ -47657,6 +48157,7 @@ const WSApplicationDetails = () => {
47657
48157
  const useDetails = additionalDetails;
47658
48158
  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) || {};
47659
48159
  const djbEmployee = additionalDetails;
48160
+ const bankDetails = (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.bankDetails) || additionalDetails || {};
47660
48161
  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;
47661
48162
  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) || "";
47662
48163
  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) || "";
@@ -47674,6 +48175,20 @@ const WSApplicationDetails = () => {
47674
48175
  if (translated && translated !== key) return translated;
47675
48176
  return str;
47676
48177
  };
48178
+ const baseAssembly = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly) || "";
48179
+ const baseWard = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward) || "";
48180
+ const baseZone = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone) || "";
48181
+ const getValidActualValue = (actualVal, baseVal) => {
48182
+ if (!actualVal) return null;
48183
+ const str = String(typeof actualVal === "object" ? (actualVal === null || actualVal === void 0 ? void 0 : actualVal.name) || (actualVal === null || actualVal === void 0 ? void 0 : actualVal.code) || "" : actualVal).trim();
48184
+ const baseStr = String(typeof baseVal === "object" ? (baseVal === null || baseVal === void 0 ? void 0 : baseVal.name) || (baseVal === null || baseVal === void 0 ? void 0 : baseVal.code) || "" : baseVal).trim();
48185
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
48186
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
48187
+ return str;
48188
+ };
48189
+ const validActualAssembly = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly), baseAssembly);
48190
+ const validActualWard = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard), baseWard);
48191
+ const validActualZone = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone), baseZone);
47677
48192
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
47678
48193
  privacy: {
47679
48194
  uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection14 = data.WaterConnection) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14[0]) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15.connectionHolders) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : _data$WaterConnection17.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect14 = data.SewerageConnections) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15.connectionHolders) === null || _data$SewerageConnect16 === void 0 ? void 0 : (_data$SewerageConnect17 = _data$SewerageConnect16[0]) === null || _data$SewerageConnect17 === void 0 ? void 0 : _data$SewerageConnect17.uuid,
@@ -48133,6 +48648,9 @@ const WSApplicationDetails = () => {
48133
48648
  marginBottom: "30px"
48134
48649
  }
48135
48650
  }, /*#__PURE__*/React.createElement(Row, {
48651
+ label: t("COMMON_ADDRESS_TYPE"),
48652
+ text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))}`
48653
+ }), /*#__PURE__*/React.createElement(Row, {
48136
48654
  label: t("CORE_COMMON_PROFILE_CITY"),
48137
48655
  text: `${t(checkForNA$2(((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city = propertyAddress.city) === null || _propertyAddress$city === void 0 ? void 0 : _propertyAddress$city.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city2 = propertyAddress.city) === null || _propertyAddress$city2 === void 0 ? void 0 : _propertyAddress$city2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)) === "dl.djb" ? "Delhi" : (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city3 = propertyAddress.city) === null || _propertyAddress$city3 === void 0 ? void 0 : _propertyAddress$city3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city4 = propertyAddress.city) === null || _propertyAddress$city4 === void 0 ? void 0 : _propertyAddress$city4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)))}`
48138
48656
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48173,23 +48691,23 @@ const WSApplicationDetails = () => {
48173
48691
  text: `${t(checkForNA$2(rawLongitude))}`
48174
48692
  }), /*#__PURE__*/React.createElement(Row, {
48175
48693
  label: t("COMMON_ASSEMBLY"),
48176
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
48694
+ text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse3 = propertyAddress.assembly) === null || _propertyAddress$asse3 === void 0 ? void 0 : _propertyAddress$asse3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse4 = propertyAddress.assembly) === null || _propertyAddress$asse4 === void 0 ? void 0 : _propertyAddress$asse4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
48177
48695
  }), /*#__PURE__*/React.createElement(Row, {
48178
48696
  label: t("COMMON_WARD"),
48179
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
48697
+ text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc3 = propertyAddress.block) === null || _propertyAddress$bloc3 === void 0 ? void 0 : _propertyAddress$bloc3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc4 = propertyAddress.block) === null || _propertyAddress$bloc4 === void 0 ? void 0 : _propertyAddress$bloc4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward3 = propertyAddress.ward) === null || _propertyAddress$ward3 === void 0 ? void 0 : _propertyAddress$ward3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward4 = propertyAddress.ward) === null || _propertyAddress$ward4 === void 0 ? void 0 : _propertyAddress$ward4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
48180
48698
  }), /*#__PURE__*/React.createElement(Row, {
48181
48699
  label: t("COMMON_ZONE"),
48182
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
48183
- }), /*#__PURE__*/React.createElement(Row, {
48700
+ text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone3 = propertyAddress.zone) === null || _propertyAddress$zone3 === void 0 ? void 0 : _propertyAddress$zone3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone4 = propertyAddress.zone) === null || _propertyAddress$zone4 === void 0 ? void 0 : _propertyAddress$zone4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
48701
+ }), validActualAssembly ? /*#__PURE__*/React.createElement(Row, {
48184
48702
  label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
48185
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
48186
- }), /*#__PURE__*/React.createElement(Row, {
48703
+ text: `${t(validActualAssembly)}`
48704
+ }) : null, validActualWard ? /*#__PURE__*/React.createElement(Row, {
48187
48705
  label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
48188
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
48189
- }), /*#__PURE__*/React.createElement(Row, {
48706
+ text: `${t(validActualWard)}`
48707
+ }) : null, validActualZone ? /*#__PURE__*/React.createElement(Row, {
48190
48708
  label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
48191
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone3 = propertyAddress.zone) === null || _propertyAddress$zone3 === void 0 ? void 0 : _propertyAddress$zone3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone4 = propertyAddress.zone) === null || _propertyAddress$zone4 === void 0 ? void 0 : _propertyAddress$zone4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone)))}`
48192
- }), /*#__PURE__*/React.createElement(Row, {
48709
+ text: `${t(validActualZone)}`
48710
+ }) : null, /*#__PURE__*/React.createElement(Row, {
48193
48711
  label: t("LANDMARK"),
48194
48712
  text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
48195
48713
  })), /*#__PURE__*/React.createElement(CardHeader, {
@@ -48373,7 +48891,28 @@ const WSApplicationDetails = () => {
48373
48891
  color: "green",
48374
48892
  fontWeight: "bold"
48375
48893
  }
48376
- }, t("BILL_ALREADY_PAID"))))))))), !isDisconnectionExecuted && !isDisconnectionPaymentPending && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
48894
+ }, t("BILL_ALREADY_PAID"))))))))), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
48895
+ styles: {
48896
+ fontSize: "28px"
48897
+ }
48898
+ }, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
48899
+ style: {
48900
+ marginTop: "10px",
48901
+ marginBottom: "30px"
48902
+ }
48903
+ }, /*#__PURE__*/React.createElement(Row, {
48904
+ label: t("WS_NAME_OF_BANK"),
48905
+ text: `${t(checkForNA$2(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
48906
+ }), /*#__PURE__*/React.createElement(Row, {
48907
+ label: t("WS_NAME_OF_BRANCH"),
48908
+ text: `${t(checkForNA$2((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
48909
+ }), /*#__PURE__*/React.createElement(Row, {
48910
+ label: t("WS_IFSC_CODE"),
48911
+ text: `${t(checkForNA$2(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
48912
+ }), /*#__PURE__*/React.createElement(Row, {
48913
+ label: t("WS_BANK_ACCOUNT_NO"),
48914
+ text: `${t(checkForNA$2((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
48915
+ }))), !isDisconnectionExecuted && !isDisconnectionPaymentPending && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
48377
48916
  styles: {
48378
48917
  fontSize: "28px"
48379
48918
  }
@@ -50816,7 +51355,7 @@ const mapPropertyToFormFields = property => {
50816
51355
  };
50817
51356
  const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
50818
51357
  if (waterResult) {
50819
- var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _propToUse$owners, _propToUse$owners$, _propToUse$owners2, _propToUse$owners2$, _propToUse$owners3, _propToUse$owners3$, _propToUse$owners4, _propToUse$owners4$, _propToUse$owners5, _propToUse$owners5$, _propToUse$owners6, _propToUse$owners6$, _propToUse$owners7, _propToUse$owners7$, _propToUse$owners8, _propToUse$owners8$, _propToUse$owners9, _propToUse$owners9$, _propToUse$owners0, _propToUse$owners0$, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$Connecti, _waterResult$Connecti2, _waterResult$addition2, _waterResult$Connecti3, _waterResult$Connecti4, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24, _waterResult$addition25, _waterResult$addition26;
51358
+ var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _propToUse$owners, _propToUse$owners$, _propToUse$owners2, _propToUse$owners2$, _propToUse$owners3, _propToUse$owners3$, _propToUse$owners4, _propToUse$owners4$, _propToUse$owners5, _propToUse$owners5$, _propToUse$owners6, _propToUse$owners6$, _propToUse$owners7, _propToUse$owners7$, _propToUse$owners8, _propToUse$owners8$, _propToUse$owners9, _propToUse$owners9$, _propToUse$owners0, _propToUse$owners0$, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$Connecti, _waterResult$Connecti2, _waterResult$addition2, _waterResult$Connecti3, _waterResult$Connecti4, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16;
50820
51359
  const propToUse = latestProperty || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.property);
50821
51360
  const propMapped = mapPropertyToFormFields(propToUse);
50822
51361
  waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
@@ -50951,23 +51490,24 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
50951
51490
  }];
50952
51491
  waterResult.addressType = addressTypeObj;
50953
51492
  waterResult.completeAddress = completeAddressStr;
51493
+ const bankSrc = (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.bankDetails) || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.additionalDetails) || {};
50954
51494
  waterResult.bankDetails = {
50955
- bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.bankName) || "",
50956
- bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.bankBranchName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.branchName) || "",
50957
- ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.ifscCode) || "",
50958
- accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.accountNumber) || "",
50959
- confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.confirmAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition17 = waterResult.additionalDetails) === null || _waterResult$addition17 === void 0 ? void 0 : _waterResult$addition17.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition18 = waterResult.additionalDetails) === null || _waterResult$addition18 === void 0 ? void 0 : _waterResult$addition18.accountNumber) || "",
50960
- accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.accountHolderName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.ownerName) || ""
51495
+ bankName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankName) || "",
51496
+ bankBranchName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankBranchName) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.branchName) || "",
51497
+ ifscCode: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.ifscCode) || "",
51498
+ accountNumber: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankAccountNumber) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.accountNumber) || "",
51499
+ confirmAccountNumber: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.confirmAccountNumber) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankAccountNumber) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.accountNumber) || "",
51500
+ accountHolderName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.accountHolderName) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.ownerName) || ""
50961
51501
  };
50962
51502
  waterResult.djbEmployee = {
50963
- isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.isDjbEmployee) === "true",
50964
- employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.employeeId) || "",
50965
- designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.designation) || "",
50966
- dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition24 = waterResult.additionalDetails) === null || _waterResult$addition24 === void 0 ? void 0 : _waterResult$addition24.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition25 = waterResult.additionalDetails) === null || _waterResult$addition25 === void 0 ? void 0 : _waterResult$addition25.dorDate) || "",
50967
- document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition26 = waterResult.additionalDetails) === null || _waterResult$addition26 === void 0 ? void 0 : _waterResult$addition26.document) || ""
51503
+ isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.isDjbEmployee) === "true",
51504
+ employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.employeeId) || "",
51505
+ designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.designation) || "",
51506
+ dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.dorDate) || "",
51507
+ document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.document) || ""
50968
51508
  };
50969
51509
  } else if (sewerageresult) {
50970
- var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _ref, _ref$owners, _ref$owners$, _ref2, _ref2$owners, _ref2$owners$, _ref3, _ref3$owners, _ref3$owners$, _ref4, _ref4$owners, _ref4$owners$, _ref5, _ref5$owners, _ref5$owners$, _ref6, _ref6$owners, _ref6$owners$, _ref7, _ref7$owners, _ref7$owners$, _ref8, _ref8$owners, _ref8$owners$, _ref9, _ref9$owners, _ref9$owners$, _ref0, _ref0$owners, _ref0$owners$, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$Conne, _sewerageresult$Conne2, _sewerageresult$addit2, _sewerageresult$Conne3, _sewerageresult$Conne4, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24, _sewerageresult$addit25, _sewerageresult$addit26;
51510
+ var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _ref, _ref$owners, _ref$owners$, _ref2, _ref2$owners, _ref2$owners$, _ref3, _ref3$owners, _ref3$owners$, _ref4, _ref4$owners, _ref4$owners$, _ref5, _ref5$owners, _ref5$owners$, _ref6, _ref6$owners, _ref6$owners$, _ref7, _ref7$owners, _ref7$owners$, _ref8, _ref8$owners, _ref8$owners$, _ref9, _ref9$owners, _ref9$owners$, _ref0, _ref0$owners, _ref0$owners$, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$Conne, _sewerageresult$Conne2, _sewerageresult$addit2, _sewerageresult$Conne3, _sewerageresult$Conne4, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16;
50971
51511
  sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
50972
51512
  ...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
50973
51513
  address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne2 = sewerageresult.connectionHolders) === null || _sewerageresult$conne2 === void 0 ? void 0 : (_sewerageresult$conne3 = _sewerageresult$conne2[0]) === null || _sewerageresult$conne3 === void 0 ? void 0 : _sewerageresult$conne3.correspondenceAddress,
@@ -51097,20 +51637,21 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
51097
51637
  }];
51098
51638
  sewerageresult.addressType = addressTypeObjSewerage;
51099
51639
  sewerageresult.completeAddress = completeAddressStrSewerage;
51640
+ const bankSrcSewerage = (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.bankDetails) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.additionalDetails) || {};
51100
51641
  sewerageresult.bankDetails = {
51101
- bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.bankName) || "",
51102
- bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.bankBranchName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.branchName) || "",
51103
- ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.ifscCode) || "",
51104
- accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.accountNumber) || "",
51105
- confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.confirmAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit17 = sewerageresult.additionalDetails) === null || _sewerageresult$addit17 === void 0 ? void 0 : _sewerageresult$addit17.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit18 = sewerageresult.additionalDetails) === null || _sewerageresult$addit18 === void 0 ? void 0 : _sewerageresult$addit18.accountNumber) || "",
51106
- accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.accountHolderName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.ownerName) || ""
51642
+ bankName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankName) || "",
51643
+ bankBranchName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankBranchName) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.branchName) || "",
51644
+ ifscCode: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.ifscCode) || "",
51645
+ accountNumber: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankAccountNumber) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.accountNumber) || "",
51646
+ confirmAccountNumber: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.confirmAccountNumber) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankAccountNumber) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.accountNumber) || "",
51647
+ accountHolderName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.accountHolderName) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.ownerName) || ""
51107
51648
  };
51108
51649
  sewerageresult.djbEmployee = {
51109
- isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.isDjbEmployee) === "true",
51110
- employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.employeeId) || "",
51111
- designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.designation) || "",
51112
- dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit24 = sewerageresult.additionalDetails) === null || _sewerageresult$addit24 === void 0 ? void 0 : _sewerageresult$addit24.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit25 = sewerageresult.additionalDetails) === null || _sewerageresult$addit25 === void 0 ? void 0 : _sewerageresult$addit25.dorDate) || "",
51113
- document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit26 = sewerageresult.additionalDetails) === null || _sewerageresult$addit26 === void 0 ? void 0 : _sewerageresult$addit26.document) || ""
51650
+ isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.isDjbEmployee) === "true",
51651
+ employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.employeeId) || "",
51652
+ designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.designation) || "",
51653
+ dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.dorDate) || "",
51654
+ document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.document) || ""
51114
51655
  };
51115
51656
  }
51116
51657
  if (waterResult) return {
@@ -51454,6 +51995,31 @@ const EditApplication = _ref1 => {
51454
51995
  params.SewerageConnectionResult.SewerageConnections[0].propertyId = propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId;
51455
51996
  }
51456
51997
  }
51998
+ const normalizedBank = getNormalizedBankDetails(params);
51999
+ if (normalizedBank) {
52000
+ var _params$WaterConnecti6, _params$WaterConnecti7, _params$SewerageConne6, _params$SewerageConne7;
52001
+ params.additionalDetails = {
52002
+ ...params.additionalDetails,
52003
+ ...normalizedBank,
52004
+ bankDetails: normalizedBank
52005
+ };
52006
+ if (params !== null && params !== void 0 && (_params$WaterConnecti6 = params.WaterConnectionResult) !== null && _params$WaterConnecti6 !== void 0 && (_params$WaterConnecti7 = _params$WaterConnecti6.WaterConnection) !== null && _params$WaterConnecti7 !== void 0 && _params$WaterConnecti7[0]) {
52007
+ var _params$WaterConnecti8;
52008
+ params.WaterConnectionResult.WaterConnection[0].additionalDetails = {
52009
+ ...((_params$WaterConnecti8 = params.WaterConnectionResult.WaterConnection[0]) === null || _params$WaterConnecti8 === void 0 ? void 0 : _params$WaterConnecti8.additionalDetails),
52010
+ ...normalizedBank,
52011
+ bankDetails: normalizedBank
52012
+ };
52013
+ }
52014
+ if (params !== null && params !== void 0 && (_params$SewerageConne6 = params.SewerageConnectionResult) !== null && _params$SewerageConne6 !== void 0 && (_params$SewerageConne7 = _params$SewerageConne6.SewerageConnections) !== null && _params$SewerageConne7 !== void 0 && _params$SewerageConne7[0]) {
52015
+ var _params$SewerageConne8;
52016
+ params.SewerageConnectionResult.SewerageConnections[0].additionalDetails = {
52017
+ ...((_params$SewerageConne8 = params.SewerageConnectionResult.SewerageConnections[0]) === null || _params$SewerageConne8 === void 0 ? void 0 : _params$SewerageConne8.additionalDetails),
52018
+ ...normalizedBank,
52019
+ bankDetails: normalizedBank
52020
+ };
52021
+ }
52022
+ }
51457
52023
  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";
51458
52024
  const appProp = (Waterresult === null || Waterresult === void 0 ? void 0 : Waterresult.property) || (Sewarageresult === null || Sewarageresult === void 0 ? void 0 : Sewarageresult.property);
51459
52025
  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));
@@ -51501,6 +52067,31 @@ const EditApplication = _ref1 => {
51501
52067
  }
51502
52068
  };
51503
52069
  });
52070
+ } else if (key === "bankDetails") {
52071
+ setParams(prev => {
52072
+ var _prev$additionalDetai, _prev$additionalDetai2, _prev$additionalDetai3, _prev$additionalDetai4, _prev$additionalDetai5, _prev$additionalDetai6, _prev$additionalDetai7, _prev$additionalDetai8;
52073
+ const updatedBank = {
52074
+ ...(prev === null || prev === void 0 ? void 0 : prev.bankDetails),
52075
+ ...data
52076
+ };
52077
+ return {
52078
+ ...prev,
52079
+ bankDetails: updatedBank,
52080
+ additionalDetails: {
52081
+ ...(prev === null || prev === void 0 ? void 0 : prev.additionalDetails),
52082
+ ...data,
52083
+ bankName: (data === null || data === void 0 ? void 0 : data.bankName) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai = prev.additionalDetails) === null || _prev$additionalDetai === void 0 ? void 0 : _prev$additionalDetai.bankName),
52084
+ bankBranchName: (data === null || data === void 0 ? void 0 : data.bankBranchName) ?? (data === null || data === void 0 ? void 0 : data.branchName) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai2 = prev.additionalDetails) === null || _prev$additionalDetai2 === void 0 ? void 0 : _prev$additionalDetai2.bankBranchName),
52085
+ branchName: (data === null || data === void 0 ? void 0 : data.bankBranchName) ?? (data === null || data === void 0 ? void 0 : data.branchName) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai3 = prev.additionalDetails) === null || _prev$additionalDetai3 === void 0 ? void 0 : _prev$additionalDetai3.branchName),
52086
+ ifscCode: (data === null || data === void 0 ? void 0 : data.ifscCode) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai4 = prev.additionalDetails) === null || _prev$additionalDetai4 === void 0 ? void 0 : _prev$additionalDetai4.ifscCode),
52087
+ accountNumber: (data === null || data === void 0 ? void 0 : data.accountNumber) ?? (data === null || data === void 0 ? void 0 : data.bankAccountNumber) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai5 = prev.additionalDetails) === null || _prev$additionalDetai5 === void 0 ? void 0 : _prev$additionalDetai5.accountNumber),
52088
+ bankAccountNumber: (data === null || data === void 0 ? void 0 : data.accountNumber) ?? (data === null || data === void 0 ? void 0 : data.bankAccountNumber) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai6 = prev.additionalDetails) === null || _prev$additionalDetai6 === void 0 ? void 0 : _prev$additionalDetai6.bankAccountNumber),
52089
+ confirmAccountNumber: (data === null || data === void 0 ? void 0 : data.confirmAccountNumber) ?? (data === null || data === void 0 ? void 0 : data.accountNumber) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai7 = prev.additionalDetails) === null || _prev$additionalDetai7 === void 0 ? void 0 : _prev$additionalDetai7.confirmAccountNumber),
52090
+ accountHolderName: (data === null || data === void 0 ? void 0 : data.accountHolderName) ?? (prev === null || prev === void 0 ? void 0 : (_prev$additionalDetai8 = prev.additionalDetails) === null || _prev$additionalDetai8 === void 0 ? void 0 : _prev$additionalDetai8.accountHolderName),
52091
+ bankDetails: updatedBank
52092
+ }
52093
+ };
52094
+ });
51504
52095
  } else {
51505
52096
  setParams(prev => ({
51506
52097
  ...prev,
@@ -51523,7 +52114,7 @@ const EditApplication = _ref1 => {
51523
52114
  config = config.slice(startIndex);
51524
52115
  }
51525
52116
  config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
51526
- const desiredOrder = ["connection-details", "connection-holder", "djb-employee-details", "disability-details", "property-location-details", "property-water-details", "due-verification-details", "document-details"];
52117
+ const desiredOrder = ["connection-details", "connection-holder", "djb-employee-details", "disability-details", "bank-details", "rain-water-harvesting", "property-location-details", "property-water-details", "due-verification-details", "document-details"];
51527
52118
  let sortedConfig = [];
51528
52119
  desiredOrder.forEach(route => {
51529
52120
  const found = config.find(c => c.route === route);
@@ -51721,7 +52312,7 @@ const ReSubmitDisconnectionApplication = () => {
51721
52312
  };
51722
52313
 
51723
52314
  const CheckPage = _ref => {
51724
- var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _reversedOwners$, _cpt$details14, _cpt$details15, _cpt$details16, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _data, _data$additionalDetai, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _cpt$details17, _cpt$details17$addres, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _cpt$details18, _cpt$details18$addres, _cpt$details19, _cpt$details19$addres, _propertyAddress$zone, _propertyAddress$zone2, _cpt$details20, _cpt$details20$addres, _cpt$details21, _cpt$details21$addres, _cpt$details22, _cpt$details22$addres, _cpt$details23, _cpt$details23$addres, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$numberOfF, _useDetails$numberOfF2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _property, _property$additionalD, _property2, _property2$additional, _property3, _property4, _property5, _property6, _property6$additional, _property7, _property7$additional, _property8, _property9, _property0, _property0$additional, _property1, _property1$additional, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail, _cpt$additionalDetail2, _cpt$additionalDetail3, _cpt$propertyType, _cpt$additionalDetail4, _cpt$additionalDetail5;
52315
+ var _value$ConnectionDeta, _value$waterConnectio, _value$bankDetails, _value$additionalDeta, _propertyAddress$asse, _propertyAddress$asse2, _cpt$details, _cpt$details$address, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _cpt$details2, _cpt$details2$address, _cpt$details3, _cpt$details3$address, _propertyAddress$zone, _propertyAddress$zone2, _cpt$details4, _cpt$details4$address, _cpt$details16, _cpt$details17, _reversedOwners$, _cpt$details18, _cpt$details19, _cpt$details20, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _data, _data$additionalDetai, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse3, _propertyAddress$asse4, _cpt$details21, _cpt$details21$addres, _propertyAddress$bloc3, _propertyAddress$bloc4, _propertyAddress$ward3, _propertyAddress$ward4, _cpt$details22, _cpt$details22$addres, _cpt$details23, _cpt$details23$addres, _propertyAddress$zone3, _propertyAddress$zone4, _cpt$details24, _cpt$details24$addres, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$numberOfF, _useDetails$numberOfF2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _property, _property$additionalD, _property2, _property2$additional, _property3, _property4, _property5, _property6, _property6$additional, _property7, _property7$additional, _property8, _property9, _property0, _property0$additional, _property1, _property1$additional, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail, _cpt$additionalDetail2, _cpt$additionalDetail3, _cpt$propertyType, _cpt$additionalDetail4, _cpt$additionalDetail5;
51725
52316
  let {
51726
52317
  onSubmit,
51727
52318
  value
@@ -51752,7 +52343,22 @@ const CheckPage = _ref => {
51752
52343
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
51753
52344
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
51754
52345
  const rainWaterHarvesting = (value === null || value === void 0 ? void 0 : value.rainWaterHarvesting) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
52346
+ const bankDetails = (value === null || value === void 0 ? void 0 : (_value$bankDetails = value.bankDetails) === null || _value$bankDetails === void 0 ? void 0 : _value$bankDetails.bankDetails) || (value === null || value === void 0 ? void 0 : value.bankDetails) || (value === null || value === void 0 ? void 0 : (_value$additionalDeta = value.additionalDetails) === null || _value$additionalDeta === void 0 ? void 0 : _value$additionalDeta.bankDetails) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
51755
52347
  const additionalDetails = {};
52348
+ const baseAssembly = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details = cpt.details) === null || _cpt$details === void 0 ? void 0 : (_cpt$details$address = _cpt$details.address) === null || _cpt$details$address === void 0 ? void 0 : _cpt$details$address.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly) || "";
52349
+ const baseWard = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details2 = cpt.details) === null || _cpt$details2 === void 0 ? void 0 : (_cpt$details2$address = _cpt$details2.address) === null || _cpt$details2$address === void 0 ? void 0 : _cpt$details2$address.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details3 = cpt.details) === null || _cpt$details3 === void 0 ? void 0 : (_cpt$details3$address = _cpt$details3.address) === null || _cpt$details3$address === void 0 ? void 0 : _cpt$details3$address.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward) || "";
52350
+ const baseZone = (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details4 = cpt.details) === null || _cpt$details4 === void 0 ? void 0 : (_cpt$details4$address = _cpt$details4.address) === null || _cpt$details4$address === void 0 ? void 0 : _cpt$details4$address.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone) || "";
52351
+ const getValidActualValue = (actualVal, baseVal) => {
52352
+ if (!actualVal) return null;
52353
+ const str = String(typeof actualVal === "object" ? (actualVal === null || actualVal === void 0 ? void 0 : actualVal.name) || (actualVal === null || actualVal === void 0 ? void 0 : actualVal.code) || "" : actualVal).trim();
52354
+ const baseStr = String(typeof baseVal === "object" ? (baseVal === null || baseVal === void 0 ? void 0 : baseVal.name) || (baseVal === null || baseVal === void 0 ? void 0 : baseVal.code) || "" : baseVal).trim();
52355
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
52356
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
52357
+ return str;
52358
+ };
52359
+ const validActualAssembly = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly, baseAssembly);
52360
+ const validActualWard = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard, baseWard);
52361
+ const validActualZone = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone, baseZone);
51756
52362
  const checkForNA = val => val ? val : "CS_NA";
51757
52363
  const onEdit = () => {};
51758
52364
  const ActionButton = () => null;
@@ -51768,33 +52374,33 @@ const CheckPage = _ref => {
51768
52374
  };
51769
52375
  let propAddArr = [];
51770
52376
  if (cpt && cpt !== null && cpt !== void 0 && cpt.details && Object.keys(cpt === null || cpt === void 0 ? void 0 : cpt.details).length > 0) {
51771
- var _cpt$details, _cpt$details$address, _cpt$details3, _cpt$details3$address, _cpt$details5, _cpt$details5$address, _cpt$details7, _cpt$details7$address, _cpt$details7$address2, _cpt$details0, _cpt$details10, _cpt$details10$addres;
51772
- if (cpt !== null && cpt !== void 0 && (_cpt$details = cpt.details) !== null && _cpt$details !== void 0 && (_cpt$details$address = _cpt$details.address) !== null && _cpt$details$address !== void 0 && _cpt$details$address.doorNo) {
51773
- var _cpt$details2, _cpt$details2$address;
51774
- propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details2 = cpt.details) === null || _cpt$details2 === void 0 ? void 0 : (_cpt$details2$address = _cpt$details2.address) === null || _cpt$details2$address === void 0 ? void 0 : _cpt$details2$address.doorNo);
52377
+ var _cpt$details5, _cpt$details5$address, _cpt$details7, _cpt$details7$address, _cpt$details9, _cpt$details9$address, _cpt$details1, _cpt$details1$address, _cpt$details1$address2, _cpt$details12, _cpt$details14, _cpt$details14$addres;
52378
+ if (cpt !== null && cpt !== void 0 && (_cpt$details5 = cpt.details) !== null && _cpt$details5 !== void 0 && (_cpt$details5$address = _cpt$details5.address) !== null && _cpt$details5$address !== void 0 && _cpt$details5$address.doorNo) {
52379
+ var _cpt$details6, _cpt$details6$address;
52380
+ propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details6 = cpt.details) === null || _cpt$details6 === void 0 ? void 0 : (_cpt$details6$address = _cpt$details6.address) === null || _cpt$details6$address === void 0 ? void 0 : _cpt$details6$address.doorNo);
51775
52381
  }
51776
- if (cpt !== null && cpt !== void 0 && (_cpt$details3 = cpt.details) !== null && _cpt$details3 !== void 0 && (_cpt$details3$address = _cpt$details3.address) !== null && _cpt$details3$address !== void 0 && _cpt$details3$address.street) {
51777
- var _cpt$details4, _cpt$details4$address;
51778
- propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details4 = cpt.details) === null || _cpt$details4 === void 0 ? void 0 : (_cpt$details4$address = _cpt$details4.address) === null || _cpt$details4$address === void 0 ? void 0 : _cpt$details4$address.street);
52382
+ if (cpt !== null && cpt !== void 0 && (_cpt$details7 = cpt.details) !== null && _cpt$details7 !== void 0 && (_cpt$details7$address = _cpt$details7.address) !== null && _cpt$details7$address !== void 0 && _cpt$details7$address.street) {
52383
+ var _cpt$details8, _cpt$details8$address;
52384
+ propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details8 = cpt.details) === null || _cpt$details8 === void 0 ? void 0 : (_cpt$details8$address = _cpt$details8.address) === null || _cpt$details8$address === void 0 ? void 0 : _cpt$details8$address.street);
51779
52385
  }
51780
- if (cpt !== null && cpt !== void 0 && (_cpt$details5 = cpt.details) !== null && _cpt$details5 !== void 0 && (_cpt$details5$address = _cpt$details5.address) !== null && _cpt$details5$address !== void 0 && _cpt$details5$address.landmark) {
51781
- var _cpt$details6, _cpt$details6$address;
51782
- propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details6 = cpt.details) === null || _cpt$details6 === void 0 ? void 0 : (_cpt$details6$address = _cpt$details6.address) === null || _cpt$details6$address === void 0 ? void 0 : _cpt$details6$address.landmark);
52386
+ if (cpt !== null && cpt !== void 0 && (_cpt$details9 = cpt.details) !== null && _cpt$details9 !== void 0 && (_cpt$details9$address = _cpt$details9.address) !== null && _cpt$details9$address !== void 0 && _cpt$details9$address.landmark) {
52387
+ var _cpt$details0, _cpt$details0$address;
52388
+ propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details0 = cpt.details) === null || _cpt$details0 === void 0 ? void 0 : (_cpt$details0$address = _cpt$details0.address) === null || _cpt$details0$address === void 0 ? void 0 : _cpt$details0$address.landmark);
51783
52389
  }
51784
- if (cpt !== null && cpt !== void 0 && (_cpt$details7 = cpt.details) !== null && _cpt$details7 !== void 0 && (_cpt$details7$address = _cpt$details7.address) !== null && _cpt$details7$address !== void 0 && (_cpt$details7$address2 = _cpt$details7$address.locality) !== null && _cpt$details7$address2 !== void 0 && _cpt$details7$address2.code) {
51785
- var _cpt$details8, _cpt$details8$address, _cpt$details8$address2, _cpt$details9;
51786
- propAddArr.push(t(Digit.Utils.pt.getMohallaLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$details8 = cpt.details) === null || _cpt$details8 === void 0 ? void 0 : (_cpt$details8$address = _cpt$details8.address) === null || _cpt$details8$address === void 0 ? void 0 : (_cpt$details8$address2 = _cpt$details8$address.locality) === null || _cpt$details8$address2 === void 0 ? void 0 : _cpt$details8$address2.code, cpt === null || cpt === void 0 ? void 0 : (_cpt$details9 = cpt.details) === null || _cpt$details9 === void 0 ? void 0 : _cpt$details9.tenantId)));
52390
+ if (cpt !== null && cpt !== void 0 && (_cpt$details1 = cpt.details) !== null && _cpt$details1 !== void 0 && (_cpt$details1$address = _cpt$details1.address) !== null && _cpt$details1$address !== void 0 && (_cpt$details1$address2 = _cpt$details1$address.locality) !== null && _cpt$details1$address2 !== void 0 && _cpt$details1$address2.code) {
52391
+ var _cpt$details10, _cpt$details10$addres, _cpt$details10$addres2, _cpt$details11;
52392
+ propAddArr.push(t(Digit.Utils.pt.getMohallaLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$details10 = cpt.details) === null || _cpt$details10 === void 0 ? void 0 : (_cpt$details10$addres = _cpt$details10.address) === null || _cpt$details10$addres === void 0 ? void 0 : (_cpt$details10$addres2 = _cpt$details10$addres.locality) === null || _cpt$details10$addres2 === void 0 ? void 0 : _cpt$details10$addres2.code, cpt === null || cpt === void 0 ? void 0 : (_cpt$details11 = cpt.details) === null || _cpt$details11 === void 0 ? void 0 : _cpt$details11.tenantId)));
51787
52393
  }
51788
- if (cpt !== null && cpt !== void 0 && (_cpt$details0 = cpt.details) !== null && _cpt$details0 !== void 0 && _cpt$details0.tenantId) {
51789
- var _cpt$details1;
51790
- propAddArr.push(t(Digit.Utils.pt.getCityLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$details1 = cpt.details) === null || _cpt$details1 === void 0 ? void 0 : _cpt$details1.tenantId)));
52394
+ if (cpt !== null && cpt !== void 0 && (_cpt$details12 = cpt.details) !== null && _cpt$details12 !== void 0 && _cpt$details12.tenantId) {
52395
+ var _cpt$details13;
52396
+ propAddArr.push(t(Digit.Utils.pt.getCityLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$details13 = cpt.details) === null || _cpt$details13 === void 0 ? void 0 : _cpt$details13.tenantId)));
51791
52397
  }
51792
- if (cpt !== null && cpt !== void 0 && (_cpt$details10 = cpt.details) !== null && _cpt$details10 !== void 0 && (_cpt$details10$addres = _cpt$details10.address) !== null && _cpt$details10$addres !== void 0 && _cpt$details10$addres.pincode) {
51793
- var _cpt$details11, _cpt$details11$addres;
51794
- propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details11 = cpt.details) === null || _cpt$details11 === void 0 ? void 0 : (_cpt$details11$addres = _cpt$details11.address) === null || _cpt$details11$addres === void 0 ? void 0 : _cpt$details11$addres.pincode);
52398
+ if (cpt !== null && cpt !== void 0 && (_cpt$details14 = cpt.details) !== null && _cpt$details14 !== void 0 && (_cpt$details14$addres = _cpt$details14.address) !== null && _cpt$details14$addres !== void 0 && _cpt$details14$addres.pincode) {
52399
+ var _cpt$details15, _cpt$details15$addres;
52400
+ propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$details15 = cpt.details) === null || _cpt$details15 === void 0 ? void 0 : (_cpt$details15$addres = _cpt$details15.address) === null || _cpt$details15$addres === void 0 ? void 0 : _cpt$details15$addres.pincode);
51795
52401
  }
51796
52402
  }
51797
- const reversedOwners = Array.isArray(cpt === null || cpt === void 0 ? void 0 : (_cpt$details12 = cpt.details) === null || _cpt$details12 === void 0 ? void 0 : _cpt$details12.owners) ? cpt === null || cpt === void 0 ? void 0 : (_cpt$details13 = cpt.details) === null || _cpt$details13 === void 0 ? void 0 : _cpt$details13.owners.slice().reverse() : [];
52403
+ const reversedOwners = Array.isArray(cpt === null || cpt === void 0 ? void 0 : (_cpt$details16 = cpt.details) === null || _cpt$details16 === void 0 ? void 0 : _cpt$details16.owners) ? cpt === null || cpt === void 0 ? void 0 : (_cpt$details17 = cpt.details) === null || _cpt$details17 === void 0 ? void 0 : _cpt$details17.owners.slice().reverse() : [];
51798
52404
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Timeline, {
51799
52405
  currentStep: 4
51800
52406
  }), /*#__PURE__*/React.createElement(Header, {
@@ -51820,13 +52426,13 @@ const CheckPage = _ref => {
51820
52426
  }), /*#__PURE__*/React.createElement(Row, {
51821
52427
  className: "border-none",
51822
52428
  label: t("WS_CONNECTION_DETAILS_STATUS_LABEL"),
51823
- text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$details14 = cpt.details) === null || _cpt$details14 === void 0 ? void 0 : _cpt$details14.status)
52429
+ text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$details18 = cpt.details) === null || _cpt$details18 === void 0 ? void 0 : _cpt$details18.status)
51824
52430
  })), /*#__PURE__*/React.createElement("div", {
51825
52431
  style: {
51826
52432
  textAlign: "left"
51827
52433
  }
51828
52434
  }, /*#__PURE__*/React.createElement(Link, {
51829
- to: `/digit-ui/citizen/commonpt/view-property?propertyId=${cpt === null || cpt === void 0 ? void 0 : (_cpt$details15 = cpt.details) === null || _cpt$details15 === void 0 ? void 0 : _cpt$details15.propertyId}&tenantId=${cpt === null || cpt === void 0 ? void 0 : (_cpt$details16 = cpt.details) === null || _cpt$details16 === void 0 ? void 0 : _cpt$details16.tenantId}`
52435
+ to: `/digit-ui/citizen/commonpt/view-property?propertyId=${cpt === null || cpt === void 0 ? void 0 : (_cpt$details19 = cpt.details) === null || _cpt$details19 === void 0 ? void 0 : _cpt$details19.propertyId}&tenantId=${cpt === null || cpt === void 0 ? void 0 : (_cpt$details20 = cpt.details) === null || _cpt$details20 === void 0 ? void 0 : _cpt$details20.tenantId}`
51830
52436
  }, /*#__PURE__*/React.createElement(LinkButton, {
51831
52437
  style: {
51832
52438
  textAlign: "left"
@@ -51935,20 +52541,82 @@ const CheckPage = _ref => {
51935
52541
  className: "border-none",
51936
52542
  label: t("WS_EMAIL_ID"),
51937
52543
  text: (ConnectionHolderDetails === null || ConnectionHolderDetails === void 0 ? void 0 : (_ConnectionHolderDeta0 = ConnectionHolderDetails[0]) === null || _ConnectionHolderDeta0 === void 0 ? void 0 : _ConnectionHolderDeta0.emailId) || t("CS_NA")
51938
- }))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
52544
+ }))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React.createElement(StatusTable, {
51939
52545
  style: {
51940
52546
  marginTop: "10px",
51941
52547
  marginBottom: "30px"
51942
52548
  }
51943
52549
  }, /*#__PURE__*/React.createElement(Row, {
51944
- label: t("WS_ZRO_LOCATION"),
51945
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zro) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addi = propertyAddress.additionalDetails) === null || _propertyAddress$addi === void 0 ? void 0 : _propertyAddress$addi.zroLocation)))}`,
52550
+ label: t("WS_DIVYANGJAN"),
52551
+ text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52552
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
52553
+ style: {
52554
+ marginTop: "10px",
52555
+ marginBottom: "30px"
52556
+ }
52557
+ }, /*#__PURE__*/React.createElement(Row, {
52558
+ label: t("WS_DJB_EMPLOYEE"),
52559
+ text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
51946
52560
  actionButton: /*#__PURE__*/React.createElement(ActionButton, {
51947
52561
  onClick: onEdit
51948
52562
  })
52563
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
52564
+ label: t("WS_EMPLOYEE_ID"),
52565
+ text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
51949
52566
  }), /*#__PURE__*/React.createElement(Row, {
52567
+ label: t("WS_EMPLOYEE_DESIGNATION"),
52568
+ text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
52569
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
52570
+ label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
52571
+ text: /*#__PURE__*/React.createElement("span", {
52572
+ style: {
52573
+ display: "flex",
52574
+ alignItems: "center",
52575
+ gap: "8px",
52576
+ cursor: "pointer",
52577
+ color: "#f47738"
52578
+ },
52579
+ onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
52580
+ }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
52581
+ }))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
52582
+ style: {
52583
+ marginTop: "10px",
52584
+ marginBottom: "30px"
52585
+ }
52586
+ }, /*#__PURE__*/React.createElement(Row, {
52587
+ label: t("WS_NAME_OF_BANK"),
52588
+ text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
52589
+ actionButton: /*#__PURE__*/React.createElement(ActionButton, {
52590
+ onClick: onEdit
52591
+ })
52592
+ }), /*#__PURE__*/React.createElement(Row, {
52593
+ label: t("WS_NAME_OF_BRANCH"),
52594
+ text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
52595
+ }), /*#__PURE__*/React.createElement(Row, {
52596
+ label: t("WS_IFSC_CODE"),
52597
+ text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
52598
+ }), /*#__PURE__*/React.createElement(Row, {
52599
+ label: t("WS_BANK_ACCOUNT_NO"),
52600
+ text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
52601
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
52602
+ style: {
52603
+ marginTop: "10px",
52604
+ marginBottom: "30px"
52605
+ }
52606
+ }, /*#__PURE__*/React.createElement(Row, {
52607
+ label: t("Rain Water Harvesting Certificate"),
52608
+ text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52609
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
52610
+ style: {
52611
+ marginTop: "10px",
52612
+ marginBottom: "30px"
52613
+ }
52614
+ }, /*#__PURE__*/React.createElement(Row, {
51950
52615
  label: t("COMMON_ADDRESS_TYPE"),
51951
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))}`
52616
+ text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))}`,
52617
+ actionButton: /*#__PURE__*/React.createElement(ActionButton, {
52618
+ onClick: onEdit
52619
+ })
51952
52620
  }), /*#__PURE__*/React.createElement(Row, {
51953
52621
  label: t("CORE_COMMON_PROFILE_CITY"),
51954
52622
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city = propertyAddress.city) === null || _propertyAddress$city === void 0 ? void 0 : _propertyAddress$city.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city2 = propertyAddress.city) === null || _propertyAddress$city2 === void 0 ? void 0 : _propertyAddress$city2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)))}`
@@ -51981,23 +52649,23 @@ const CheckPage = _ref => {
51981
52649
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
51982
52650
  }), /*#__PURE__*/React.createElement(Row, {
51983
52651
  label: t("COMMON_ASSEMBLY"),
51984
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details17 = cpt.details) === null || _cpt$details17 === void 0 ? void 0 : (_cpt$details17$addres = _cpt$details17.address) === null || _cpt$details17$addres === void 0 ? void 0 : _cpt$details17$addres.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
52652
+ text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse3 = propertyAddress.assembly) === null || _propertyAddress$asse3 === void 0 ? void 0 : _propertyAddress$asse3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse4 = propertyAddress.assembly) === null || _propertyAddress$asse4 === void 0 ? void 0 : _propertyAddress$asse4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details21 = cpt.details) === null || _cpt$details21 === void 0 ? void 0 : (_cpt$details21$addres = _cpt$details21.address) === null || _cpt$details21$addres === void 0 ? void 0 : _cpt$details21$addres.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
51985
52653
  }), /*#__PURE__*/React.createElement(Row, {
51986
52654
  label: t("COMMON_WARD"),
51987
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details18 = cpt.details) === null || _cpt$details18 === void 0 ? void 0 : (_cpt$details18$addres = _cpt$details18.address) === null || _cpt$details18$addres === void 0 ? void 0 : _cpt$details18$addres.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details19 = cpt.details) === null || _cpt$details19 === void 0 ? void 0 : (_cpt$details19$addres = _cpt$details19.address) === null || _cpt$details19$addres === void 0 ? void 0 : _cpt$details19$addres.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
52655
+ text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc3 = propertyAddress.block) === null || _propertyAddress$bloc3 === void 0 ? void 0 : _propertyAddress$bloc3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc4 = propertyAddress.block) === null || _propertyAddress$bloc4 === void 0 ? void 0 : _propertyAddress$bloc4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward3 = propertyAddress.ward) === null || _propertyAddress$ward3 === void 0 ? void 0 : _propertyAddress$ward3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward4 = propertyAddress.ward) === null || _propertyAddress$ward4 === void 0 ? void 0 : _propertyAddress$ward4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details22 = cpt.details) === null || _cpt$details22 === void 0 ? void 0 : (_cpt$details22$addres = _cpt$details22.address) === null || _cpt$details22$addres === void 0 ? void 0 : _cpt$details22$addres.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details23 = cpt.details) === null || _cpt$details23 === void 0 ? void 0 : (_cpt$details23$addres = _cpt$details23.address) === null || _cpt$details23$addres === void 0 ? void 0 : _cpt$details23$addres.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
51988
52656
  }), /*#__PURE__*/React.createElement(Row, {
51989
52657
  label: t("COMMON_ZONE"),
51990
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details20 = cpt.details) === null || _cpt$details20 === void 0 ? void 0 : (_cpt$details20$addres = _cpt$details20.address) === null || _cpt$details20$addres === void 0 ? void 0 : _cpt$details20$addres.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
51991
- }), /*#__PURE__*/React.createElement(Row, {
52658
+ text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone3 = propertyAddress.zone) === null || _propertyAddress$zone3 === void 0 ? void 0 : _propertyAddress$zone3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone4 = propertyAddress.zone) === null || _propertyAddress$zone4 === void 0 ? void 0 : _propertyAddress$zone4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details24 = cpt.details) === null || _cpt$details24 === void 0 ? void 0 : (_cpt$details24$addres = _cpt$details24.address) === null || _cpt$details24$addres === void 0 ? void 0 : _cpt$details24$addres.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
52659
+ }), validActualAssembly ? /*#__PURE__*/React.createElement(Row, {
51992
52660
  label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
51993
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details21 = cpt.details) === null || _cpt$details21 === void 0 ? void 0 : (_cpt$details21$addres = _cpt$details21.address) === null || _cpt$details21$addres === void 0 ? void 0 : _cpt$details21$addres.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
51994
- }), /*#__PURE__*/React.createElement(Row, {
52661
+ text: `${t(validActualAssembly)}`
52662
+ }) : null, validActualWard ? /*#__PURE__*/React.createElement(Row, {
51995
52663
  label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
51996
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details22 = cpt.details) === null || _cpt$details22 === void 0 ? void 0 : (_cpt$details22$addres = _cpt$details22.address) === null || _cpt$details22$addres === void 0 ? void 0 : _cpt$details22$addres.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
51997
- }), /*#__PURE__*/React.createElement(Row, {
52664
+ text: `${t(validActualWard)}`
52665
+ }) : null, validActualZone ? /*#__PURE__*/React.createElement(Row, {
51998
52666
  label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
51999
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details23 = cpt.details) === null || _cpt$details23 === void 0 ? void 0 : (_cpt$details23$addres = _cpt$details23.address) === null || _cpt$details23$addres === void 0 ? void 0 : _cpt$details23$addres.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
52000
- }), /*#__PURE__*/React.createElement(Row, {
52667
+ text: `${t(validActualZone)}`
52668
+ }) : null, /*#__PURE__*/React.createElement(Row, {
52001
52669
  label: t("LANDMARK"),
52002
52670
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
52003
52671
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
@@ -52052,51 +52720,6 @@ const CheckPage = _ref => {
52052
52720
  label: displayLabel,
52053
52721
  text: `${t(checkForNA(aText))}`
52054
52722
  });
52055
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
52056
- style: {
52057
- marginTop: "10px",
52058
- marginBottom: "30px"
52059
- }
52060
- }, /*#__PURE__*/React.createElement(Row, {
52061
- label: t("WS_DJB_EMPLOYEE"),
52062
- text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
52063
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
52064
- onClick: onEdit
52065
- })
52066
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
52067
- label: t("WS_EMPLOYEE_ID"),
52068
- text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
52069
- }), /*#__PURE__*/React.createElement(Row, {
52070
- label: t("WS_EMPLOYEE_DESIGNATION"),
52071
- text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
52072
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
52073
- label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
52074
- text: /*#__PURE__*/React.createElement("span", {
52075
- style: {
52076
- display: "flex",
52077
- alignItems: "center",
52078
- gap: "8px",
52079
- cursor: "pointer",
52080
- color: "#f47738"
52081
- },
52082
- onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
52083
- }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
52084
- }))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React.createElement(StatusTable, {
52085
- style: {
52086
- marginTop: "10px",
52087
- marginBottom: "30px"
52088
- }
52089
- }, /*#__PURE__*/React.createElement(Row, {
52090
- label: t("WS_DIVYANGJAN"),
52091
- text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52092
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
52093
- style: {
52094
- marginTop: "10px",
52095
- marginBottom: "30px"
52096
- }
52097
- }, /*#__PURE__*/React.createElement(Row, {
52098
- label: t("Rain Water Harvesting Certificate"),
52099
- text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52100
52723
  })), /*#__PURE__*/React.createElement(Card, {
52101
52724
  style: {
52102
52725
  paddingRight: "16px"
@@ -55294,6 +55917,8 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
55294
55917
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
55295
55918
  const NUMBER_PATTERN$2 = /^\d+$/;
55296
55919
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
55920
+ const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
55921
+ const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
55297
55922
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
55298
55923
  const createOption = (code, name) => ({
55299
55924
  code,
@@ -55743,7 +56368,12 @@ const FieldBlock = _ref3 => {
55743
56368
  fontWeight: "600",
55744
56369
  marginBottom: "0px"
55745
56370
  }
55746
- }, required ? `${label} *` : label), children, hint ? /*#__PURE__*/React.createElement(CardText, {
56371
+ }, label, required ? /*#__PURE__*/React.createElement("span", {
56372
+ className: "astericColor",
56373
+ style: {
56374
+ color: "#d4351c"
56375
+ }
56376
+ }, " *") : null), children, hint ? /*#__PURE__*/React.createElement(CardText, {
55747
56377
  style: {
55748
56378
  color: "#505A5F",
55749
56379
  fontSize: "14px",
@@ -55974,7 +56604,7 @@ const FileUploadField = _ref6 => {
55974
56604
  })))));
55975
56605
  };
55976
56606
  const NewApplication = () => {
55977
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$disabilit, _formValues$rainWater, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$useDetail12, _formValues$useDetail13, _formValues$useDetail14, _formValues$useDetail15, _formValues$useDetail16, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
56607
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$disabilit, _formValues$rainWater, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$useDetail12, _formValues$useDetail13, _formValues$useDetail14, _formValues$useDetail15, _formValues$useDetail16, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
55978
56608
  const {
55979
56609
  t
55980
56610
  } = useTranslation();
@@ -56204,6 +56834,10 @@ const NewApplication = () => {
56204
56834
  sectionId: "useDetails",
56205
56835
  route: "use-details",
56206
56836
  actions: "Property & Connection Use Details"
56837
+ }, {
56838
+ sectionId: "bankDetails",
56839
+ route: "bank-details",
56840
+ actions: "Bank Details"
56207
56841
  }, {
56208
56842
  sectionId: "documents",
56209
56843
  route: "documents",
@@ -56483,7 +57117,7 @@ const NewApplication = () => {
56483
57117
  };
56484
57118
  const onSubmit = function (data) {
56485
57119
  try {
56486
- var _propertyDetails$Prop;
57120
+ var _data$useDetails, _data$useDetails2, _data$useDetails3, _data$useDetails4, _propertyDetails$Prop;
56487
57121
  if (hasPendingUpload) {
56488
57122
  setShowToast({
56489
57123
  warning: true,
@@ -56491,6 +57125,28 @@ const NewApplication = () => {
56491
57125
  });
56492
57126
  return Promise.resolve();
56493
57127
  }
57128
+ const plotAreaNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.plotArea);
57129
+ const builtUpAreaNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails2 = data.useDetails) === null || _data$useDetails2 === void 0 ? void 0 : _data$useDetails2.builtUpArea);
57130
+ if (!isNaN(plotAreaNum) && !isNaN(builtUpAreaNum) && plotAreaNum <= builtUpAreaNum) {
57131
+ const plotTrans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
57132
+ setShowToast({
57133
+ key: "error",
57134
+ message: plotTrans && plotTrans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? plotTrans : "Plot area should always be more than built up area."
57135
+ });
57136
+ return Promise.resolve();
57137
+ }
57138
+ const usageTypeObj = data === null || data === void 0 ? void 0 : (_data$useDetails3 = data.useDetails) === null || _data$useDetails3 === void 0 ? void 0 : _data$useDetails3.WaterConnectionUsageType;
57139
+ const usageTypeCode = typeof usageTypeObj === "object" ? (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.code) || (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.value) || (usageTypeObj === null || usageTypeObj === void 0 ? void 0 : usageTypeObj.name) : usageTypeObj;
57140
+ const isNormalUsage = String(usageTypeCode || "").toUpperCase() === "NORMAL";
57141
+ const heightNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails4 = data.useDetails) === null || _data$useDetails4 === void 0 ? void 0 : _data$useDetails4.heightOfTheBuilding);
57142
+ if (isNormalUsage && !isNaN(heightNum) && heightNum > 17.5) {
57143
+ const heightTrans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
57144
+ setShowToast({
57145
+ key: "error",
57146
+ message: heightTrans && heightTrans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? heightTrans : "Height of the building must be 17.5 meters or less for Normal connection."
57147
+ });
57148
+ return Promise.resolve();
57149
+ }
56494
57150
  if (!(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
56495
57151
  setShowToast({
56496
57152
  key: "error",
@@ -56781,7 +57437,6 @@ const NewApplication = () => {
56781
57437
  }), /*#__PURE__*/React.createElement("div", {
56782
57438
  style: {
56783
57439
  flex: "1",
56784
- overflowY: "auto",
56785
57440
  minWidth: 0
56786
57441
  }
56787
57442
  }, /*#__PURE__*/React.createElement("div", {
@@ -57301,10 +57956,19 @@ const NewApplication = () => {
57301
57956
  required: isDjbEmployee
57302
57957
  }, /*#__PURE__*/React.createElement(TextInput, {
57303
57958
  errorStyle: !!getFieldError("djbEmployee.employeeId"),
57959
+ maxlength: 8,
57960
+ maxLength: 8,
57304
57961
  inputRef: register({
57305
- required: isDjbEmployee ? "Employee ID is required." : false
57962
+ required: isDjbEmployee ? "Employee ID is required." : false,
57963
+ pattern: {
57964
+ value: /^\d{8}$/,
57965
+ message: "Employee ID must be exactly 8 digits (numbers only)"
57966
+ }
57306
57967
  }),
57307
- name: "djbEmployee.employeeId"
57968
+ name: "djbEmployee.employeeId",
57969
+ onChange: e => {
57970
+ e.target.value = e.target.value.replace(/\D/g, "").slice(0, 8);
57971
+ }
57308
57972
  })), /*#__PURE__*/React.createElement(FieldBlock, {
57309
57973
  error: getFieldError("djbEmployee.officeNameAndAddress"),
57310
57974
  isFullWidth: true,
@@ -57697,6 +58361,84 @@ const NewApplication = () => {
57697
58361
  }),
57698
58362
  name: "useDetails.hospitalBeds"
57699
58363
  })) : null), /*#__PURE__*/React.createElement(SectionCard, {
58364
+ description: "Refund or payment-linked bank account details.",
58365
+ isOpen: collapsedSections.bank,
58366
+ onToggle: toggleSection,
58367
+ sectionKey: "bank",
58368
+ title: "Bank Details",
58369
+ sectionRef: sectionRefs.bankDetails
58370
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
58371
+ error: getFieldError("bankDetails.bankName"),
58372
+ label: "Name of the Bank",
58373
+ required: true
58374
+ }, /*#__PURE__*/React.createElement(TextInput, {
58375
+ errorStyle: !!getFieldError("bankDetails.bankName"),
58376
+ inputRef: register({
58377
+ required: "Bank Name is required."
58378
+ }),
58379
+ name: "bankDetails.bankName"
58380
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
58381
+ error: getFieldError("bankDetails.branchName"),
58382
+ label: "Name of the Branch",
58383
+ required: true
58384
+ }, /*#__PURE__*/React.createElement(TextInput, {
58385
+ errorStyle: !!getFieldError("bankDetails.branchName"),
58386
+ inputRef: register({
58387
+ required: "Branch Name is required."
58388
+ }),
58389
+ name: "bankDetails.branchName"
58390
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
58391
+ error: getFieldError("bankDetails.ifscCode"),
58392
+ label: "IFSC Code",
58393
+ required: true
58394
+ }, /*#__PURE__*/React.createElement(TextInput, {
58395
+ errorStyle: !!getFieldError("bankDetails.ifscCode"),
58396
+ inputRef: register({
58397
+ pattern: {
58398
+ value: IFSC_PATTERN,
58399
+ message: "Enter a valid IFSC code."
58400
+ },
58401
+ required: "IFSC Code is required."
58402
+ }),
58403
+ name: "bankDetails.ifscCode",
58404
+ maxLength: 11,
58405
+ onChange: event => {
58406
+ const code = event.target.value.toUpperCase();
58407
+ event.target.value = code;
58408
+ if (code.length === 11) {
58409
+ fetch(`https://ifsc.razorpay.com/${code}`).then(res => res.ok ? res.json() : null).then(d => {
58410
+ if (d) {
58411
+ if (d.BANK) setValue("bankDetails.bankName", d.BANK, {
58412
+ shouldValidate: true,
58413
+ shouldDirty: true
58414
+ });
58415
+ if (d.BRANCH) setValue("bankDetails.branchName", d.BRANCH, {
58416
+ shouldValidate: true,
58417
+ shouldDirty: true
58418
+ });
58419
+ }
58420
+ }).catch(() => {});
58421
+ }
58422
+ }
58423
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
58424
+ error: getFieldError("bankDetails.bankAccountNumber"),
58425
+ label: "Bank Account No.",
58426
+ required: true
58427
+ }, /*#__PURE__*/React.createElement(TextInput, {
58428
+ errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
58429
+ inputRef: register({
58430
+ pattern: {
58431
+ value: ACCOUNT_PATTERN,
58432
+ message: "Enter a valid bank account number."
58433
+ },
58434
+ required: "Bank Account Number is required."
58435
+ }),
58436
+ name: "bankDetails.bankAccountNumber",
58437
+ maxLength: 18,
58438
+ onChange: e => {
58439
+ e.target.value = e.target.value.replace(/\D/g, "").slice(0, 18);
58440
+ }
58441
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
57700
58442
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
57701
58443
  isOpen: collapsedSections.documents,
57702
58444
  onToggle: toggleSection,
@@ -57773,10 +58515,13 @@ const NewApplication = () => {
57773
58515
  })
57774
58516
  })), /*#__PURE__*/React.createElement(FieldBlock, {
57775
58517
  error: getFieldError("documents.identityProofNumber"),
57776
- label: "Proof of Identity Document"
58518
+ label: "Proof of Identity Document *",
58519
+ required: true
57777
58520
  }, /*#__PURE__*/React.createElement(TextInput, {
57778
58521
  name: "documents.identityProofNumber",
57779
- inputRef: register(),
58522
+ inputRef: register({
58523
+ required: "Proof of Identity Document Number is required."
58524
+ }),
57780
58525
  placeholder: "Identity No."
57781
58526
  })), /*#__PURE__*/React.createElement(Controller, {
57782
58527
  control: control,
@@ -57823,10 +58568,13 @@ const NewApplication = () => {
57823
58568
  })
57824
58569
  })), /*#__PURE__*/React.createElement(FieldBlock, {
57825
58570
  error: getFieldError("documents.ownershipDocumentNumber"),
57826
- label: "Proof of Ownership Document"
58571
+ label: "Proof of Ownership Document *",
58572
+ required: true
57827
58573
  }, /*#__PURE__*/React.createElement(TextInput, {
57828
58574
  name: "documents.ownershipDocumentNumber",
57829
- inputRef: register(),
58575
+ inputRef: register({
58576
+ required: "Proof of Ownership Document Number is required."
58577
+ }),
57830
58578
  placeholder: "Ownership No."
57831
58579
  })), /*#__PURE__*/React.createElement(Controller, {
57832
58580
  control: control,
@@ -57950,9 +58698,6 @@ const NewApplication = () => {
57950
58698
  title: "Application Selection",
57951
58699
  onEditClick: () => handleSectionEdit("application")
57952
58700
  }, /*#__PURE__*/React.createElement(PreviewItem, {
57953
- label: "ZRO Location",
57954
- value: formValues === null || formValues === void 0 ? void 0 : formValues.zro
57955
- }), /*#__PURE__*/React.createElement(PreviewItem, {
57956
58701
  label: "Service Type",
57957
58702
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicati = formValues.applicationSelection) === null || _formValues$applicati === void 0 ? void 0 : _formValues$applicati.serviceType
57958
58703
  }), /*#__PURE__*/React.createElement(PreviewItem, {
@@ -58188,6 +58933,25 @@ const NewApplication = () => {
58188
58933
  }), /*#__PURE__*/React.createElement(PreviewItem, {
58189
58934
  label: "Water Connection Usage Type",
58190
58935
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail16 = formValues.useDetails) === null || _formValues$useDetail16 === void 0 ? void 0 : _formValues$useDetail16.WaterConnectionUsageType
58936
+ })), /*#__PURE__*/React.createElement(SectionCard, {
58937
+ description: "Banking information as entered in the form.",
58938
+ isOpen: collapsedSections.bank,
58939
+ onToggle: toggleSection,
58940
+ sectionKey: "bank",
58941
+ title: "Bank Details",
58942
+ onEditClick: () => handleSectionEdit("bankDetails")
58943
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
58944
+ label: "Name of the Bank",
58945
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
58946
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
58947
+ label: "Name of the Branch",
58948
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
58949
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
58950
+ label: "IFSC Code",
58951
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
58952
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
58953
+ label: "Bank Account No.",
58954
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
58191
58955
  })), /*#__PURE__*/React.createElement(SectionCard, {
58192
58956
  description: "Uploaded supporting documents.",
58193
58957
  isOpen: collapsedSections.documents,
@@ -59156,7 +59920,7 @@ const GetConnectionDetails = () => {
59156
59920
  position: "relative",
59157
59921
  width: "100%",
59158
59922
  height: "100%",
59159
- overflowY: "scroll"
59923
+ overflowY: "visible"
59160
59924
  }
59161
59925
  }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
59162
59926
  style: {
@@ -64626,7 +65390,6 @@ const MutationApplication = () => {
64626
65390
  }), /*#__PURE__*/React.createElement("div", {
64627
65391
  style: {
64628
65392
  flex: "1",
64629
- overflowY: "auto",
64630
65393
  minWidth: 0
64631
65394
  }
64632
65395
  }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
@@ -66672,7 +67435,7 @@ const openFilePDF = fileId => {
66672
67435
  }).catch(error => console.error("Error fetching file:", error));
66673
67436
  };
66674
67437
  const CheckPage$4 = _ref2 => {
66675
- var _Digit$UserService$ge, _data$cpt, _propertyAddress, _propertyAddress2, _cpt$additionalDetail, _cpt$additionalDetail2, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ad, _data$cpt3, _data$cpt3$details, _data$cpt3$details$ad, _data$cpt4, _data$cpt4$details, _propertyAddress3, _propertyAddress4, _cpt$additionalDetail3, _cpt$additionalDetail4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _data$rainWaterHarves, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails10$, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _data$additionalDetai4, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress5, _propertyAddress5$zro, _propertyAddress6, _propertyAddress7, _propertyAddress8, _propertyAddress8$add, _propertyAddress9, _propertyAddress9$add, _propertyAddress0, _propertyAddress0$add, _propertyAddress1, _propertyAddress10, _propertyAddress10$ci, _propertyAddress11, _propertyAddress11$ci, _propertyAddress12, _propertyAddress13, _propertyAddress14, _propertyAddress15, _propertyAddress15$lo, _propertyAddress16, _propertyAddress16$lo, _propertyAddress17, _propertyAddress18, _propertyAddress18$su, _propertyAddress19, _propertyAddress19$su, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress27, _propertyAddress28, _propertyAddress29, _propertyAddress30, _propertyAddress31, _propertyAddress31$as, _propertyAddress32, _propertyAddress32$as, _propertyAddress33, _cpt$address, _propertyAddress34, _propertyAddress34$bl, _propertyAddress35, _propertyAddress35$bl, _propertyAddress36, _propertyAddress37, _propertyAddress37$wa, _propertyAddress38, _propertyAddress38$wa, _propertyAddress39, _cpt$address2, _cpt$address3, _propertyAddress40, _propertyAddress40$zo, _propertyAddress41, _propertyAddress41$zo, _propertyAddress42, _cpt$address4, _propertyAddress43, _cpt$address5, _cpt$additionalDetail5, _propertyAddress44, _cpt$address6, _cpt$additionalDetail6, _propertyAddress45, _cpt$address7, _cpt$additionalDetail7, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail8, _cpt$additionalDetail9, _cpt$additionalDetail0, _cpt$propertyType, _cpt$additionalDetail1, _cpt$additionalDetail10;
67438
+ var _Digit$UserService$ge, _data$cpt, _propertyAddress, _propertyAddress$asse, _propertyAddress2, _propertyAddress2$ass, _propertyAddress3, _cpt$address, _cpt$details, _cpt$details$address, _propertyAddress4, _propertyAddress4$blo, _propertyAddress5, _propertyAddress5$blo, _propertyAddress6, _propertyAddress7, _propertyAddress7$war, _propertyAddress8, _propertyAddress8$war, _propertyAddress9, _cpt$address2, _cpt$address3, _cpt$details2, _cpt$details2$address, _cpt$details3, _cpt$details3$address, _propertyAddress0, _propertyAddress0$zon, _propertyAddress1, _propertyAddress1$zon, _propertyAddress10, _cpt$address4, _cpt$details4, _cpt$details4$address, _propertyAddress11, _propertyAddress12, _propertyAddress13, _propertyAddress14, _propertyAddress15, _cpt$additionalDetail, _cpt$additionalDetail2, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ad, _data$cpt3, _data$cpt3$details, _data$cpt3$details$ad, _data$cpt4, _data$cpt4$details, _propertyAddress16, _propertyAddress17, _cpt$additionalDetail3, _cpt$additionalDetail4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$additionalDetai, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _data$rainWaterHarves, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails10$, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _data$additionalDetai5, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress18, _propertyAddress18$ad, _propertyAddress19, _propertyAddress19$ad, _propertyAddress20, _propertyAddress21, _propertyAddress21$ci, _propertyAddress22, _propertyAddress22$ci, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$lo, _propertyAddress27, _propertyAddress27$lo, _propertyAddress28, _propertyAddress29, _propertyAddress29$su, _propertyAddress30, _propertyAddress30$su, _propertyAddress31, _propertyAddress32, _propertyAddress33, _propertyAddress34, _propertyAddress35, _propertyAddress36, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _propertyAddress42, _propertyAddress42$as, _propertyAddress43, _propertyAddress43$as, _propertyAddress44, _cpt$address5, _propertyAddress45, _propertyAddress45$bl, _propertyAddress46, _propertyAddress46$bl, _propertyAddress47, _propertyAddress48, _propertyAddress48$wa, _propertyAddress49, _propertyAddress49$wa, _propertyAddress50, _cpt$address6, _cpt$address7, _propertyAddress51, _propertyAddress51$zo, _propertyAddress52, _propertyAddress52$zo, _propertyAddress53, _cpt$address8, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail5, _cpt$additionalDetail6, _cpt$additionalDetail7, _cpt$propertyType, _cpt$additionalDetail8, _cpt$additionalDetail9;
66676
67439
  let {
66677
67440
  data,
66678
67441
  onSubmit,
@@ -66693,8 +67456,22 @@ const CheckPage$4 = _ref2 => {
66693
67456
  propertyAddress = (cpt === null || cpt === void 0 ? void 0 : cpt.address) || {};
66694
67457
  }
66695
67458
  const additionalDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.additionalDetails) || {};
66696
- const rawNumberOfFloors = ((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : _propertyAddress.numberOfFloors) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.noOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.numberOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail = cpt.additionalDetails) === null || _cpt$additionalDetail === void 0 ? void 0 : _cpt$additionalDetail.numberOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail2 = cpt.additionalDetails) === null || _cpt$additionalDetail2 === void 0 ? void 0 : _cpt$additionalDetail2.noOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.numberOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.noOfFloors) || (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$ad = _data$cpt2$details.additionalDetails) === null || _data$cpt2$details$ad === void 0 ? void 0 : _data$cpt2$details$ad.numberOfFloors) || (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$ad = _data$cpt3$details.additionalDetails) === null || _data$cpt3$details$ad === void 0 ? void 0 : _data$cpt3$details$ad.noOfFloors) || (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.noOfFloors);
66697
- const rawTotalNoOfFloors = ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.totalNoOfFloors) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : _propertyAddress4.totalFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNoOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail3 = cpt.additionalDetails) === null || _cpt$additionalDetail3 === void 0 ? void 0 : _cpt$additionalDetail3.totalNoOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail4 = cpt.additionalDetails) === null || _cpt$additionalDetail4 === void 0 ? void 0 : _cpt$additionalDetail4.totalFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.totalNoOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.totalNoOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.totalFloors) || (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$ad = _data$cpt5$details.additionalDetails) === null || _data$cpt5$details$ad === void 0 ? void 0 : _data$cpt5$details$ad.totalNoOfFloors) || (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$ad = _data$cpt6$details.additionalDetails) === null || _data$cpt6$details$ad === void 0 ? void 0 : _data$cpt6$details$ad.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.noOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors);
67459
+ const baseAssembly = ((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = _propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : (_propertyAddress2$ass = _propertyAddress2.assembly) === null || _propertyAddress2$ass === void 0 ? void 0 : _propertyAddress2$ass.code) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address = cpt.address) === null || _cpt$address === void 0 ? void 0 : _cpt$address.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details = cpt.details) === null || _cpt$details === void 0 ? void 0 : (_cpt$details$address = _cpt$details.address) === null || _cpt$details$address === void 0 ? void 0 : _cpt$details$address.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly) || "";
67460
+ const baseWard = ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$blo = _propertyAddress4.block) === null || _propertyAddress4$blo === void 0 ? void 0 : _propertyAddress4$blo.name) || ((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$blo = _propertyAddress5.block) === null || _propertyAddress5$blo === void 0 ? void 0 : _propertyAddress5$blo.code) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : _propertyAddress6.block) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : (_propertyAddress7$war = _propertyAddress7.ward) === null || _propertyAddress7$war === void 0 ? void 0 : _propertyAddress7$war.name) || ((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$war = _propertyAddress8.ward) === null || _propertyAddress8$war === void 0 ? void 0 : _propertyAddress8$war.code) || ((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : _propertyAddress9.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address2 = cpt.address) === null || _cpt$address2 === void 0 ? void 0 : _cpt$address2.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address3 = cpt.address) === null || _cpt$address3 === void 0 ? void 0 : _cpt$address3.block) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details2 = cpt.details) === null || _cpt$details2 === void 0 ? void 0 : (_cpt$details2$address = _cpt$details2.address) === null || _cpt$details2$address === void 0 ? void 0 : _cpt$details2$address.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details3 = cpt.details) === null || _cpt$details3 === void 0 ? void 0 : (_cpt$details3$address = _cpt$details3.address) === null || _cpt$details3$address === void 0 ? void 0 : _cpt$details3$address.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward) || "";
67461
+ const baseZone = ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : (_propertyAddress0$zon = _propertyAddress0.zone) === null || _propertyAddress0$zon === void 0 ? void 0 : _propertyAddress0$zon.name) || ((_propertyAddress1 = propertyAddress) === null || _propertyAddress1 === void 0 ? void 0 : (_propertyAddress1$zon = _propertyAddress1.zone) === null || _propertyAddress1$zon === void 0 ? void 0 : _propertyAddress1$zon.code) || ((_propertyAddress10 = propertyAddress) === null || _propertyAddress10 === void 0 ? void 0 : _propertyAddress10.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address4 = cpt.address) === null || _cpt$address4 === void 0 ? void 0 : _cpt$address4.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$details4 = cpt.details) === null || _cpt$details4 === void 0 ? void 0 : (_cpt$details4$address = _cpt$details4.address) === null || _cpt$details4$address === void 0 ? void 0 : _cpt$details4$address.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone) || "";
67462
+ const getValidActualValue = (actualVal, baseVal) => {
67463
+ if (!actualVal) return null;
67464
+ const str = String(typeof actualVal === "object" ? (actualVal === null || actualVal === void 0 ? void 0 : actualVal.name) || (actualVal === null || actualVal === void 0 ? void 0 : actualVal.code) || "" : actualVal).trim();
67465
+ const baseStr = String(typeof baseVal === "object" ? (baseVal === null || baseVal === void 0 ? void 0 : baseVal.name) || (baseVal === null || baseVal === void 0 ? void 0 : baseVal.code) || "" : baseVal).trim();
67466
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
67467
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
67468
+ return str;
67469
+ };
67470
+ const validActualAssembly = getValidActualValue((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : _propertyAddress11.actualAssembly, baseAssembly);
67471
+ const validActualWard = getValidActualValue((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : _propertyAddress12.actualWard, baseWard);
67472
+ const validActualZone = getValidActualValue((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.actualZone, baseZone);
67473
+ const rawNumberOfFloors = ((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : _propertyAddress14.numberOfFloors) || ((_propertyAddress15 = propertyAddress) === null || _propertyAddress15 === void 0 ? void 0 : _propertyAddress15.noOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.numberOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail = cpt.additionalDetails) === null || _cpt$additionalDetail === void 0 ? void 0 : _cpt$additionalDetail.numberOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail2 = cpt.additionalDetails) === null || _cpt$additionalDetail2 === void 0 ? void 0 : _cpt$additionalDetail2.noOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.numberOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.noOfFloors) || (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$ad = _data$cpt2$details.additionalDetails) === null || _data$cpt2$details$ad === void 0 ? void 0 : _data$cpt2$details$ad.numberOfFloors) || (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$ad = _data$cpt3$details.additionalDetails) === null || _data$cpt3$details$ad === void 0 ? void 0 : _data$cpt3$details$ad.noOfFloors) || (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.noOfFloors);
67474
+ const rawTotalNoOfFloors = ((_propertyAddress16 = propertyAddress) === null || _propertyAddress16 === void 0 ? void 0 : _propertyAddress16.totalNoOfFloors) || ((_propertyAddress17 = propertyAddress) === null || _propertyAddress17 === void 0 ? void 0 : _propertyAddress17.totalFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalNoOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail3 = cpt.additionalDetails) === null || _cpt$additionalDetail3 === void 0 ? void 0 : _cpt$additionalDetail3.totalNoOfFloors) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail4 = cpt.additionalDetails) === null || _cpt$additionalDetail4 === void 0 ? void 0 : _cpt$additionalDetail4.totalFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.totalNoOfFloors) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.totalNoOfFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.totalFloors) || (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$ad = _data$cpt5$details.additionalDetails) === null || _data$cpt5$details$ad === void 0 ? void 0 : _data$cpt5$details$ad.totalNoOfFloors) || (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$ad = _data$cpt6$details.additionalDetails) === null || _data$cpt6$details$ad === void 0 ? void 0 : _data$cpt6$details$ad.totalFloors) || (cpt === null || cpt === void 0 ? void 0 : cpt.noOfFloors) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.noOfFloors);
66698
67475
  const getFloorDisplay = floor => {
66699
67476
  if (floor === undefined || floor === null || floor === "") return t("CS_NA");
66700
67477
  if (typeof floor === "object") {
@@ -66730,12 +67507,17 @@ const CheckPage$4 = _ref2 => {
66730
67507
  holderDetails = holderDetails[0] || {};
66731
67508
  }
66732
67509
  const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
67510
+ const bankDetails = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.bankDetails) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
66733
67511
  const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
66734
67512
  const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
66735
67513
  const disability = (data === null || data === void 0 ? void 0 : (_data$disability = data.disability) === null || _data$disability === void 0 ? void 0 : _data$disability.disability) || (data === null || data === void 0 ? void 0 : data.disability) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
66736
67514
  const rainWaterHarvesting = (data === null || data === void 0 ? void 0 : (_data$rainWaterHarves = data.rainWaterHarvesting) === null || _data$rainWaterHarves === void 0 ? void 0 : _data$rainWaterHarves.rainWaterHarvesting) || (data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
66737
67515
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
66738
- className: "overflow-y-scroll"
67516
+ style: {
67517
+ paddingRight: "16px",
67518
+ height: "auto",
67519
+ overflow: "visible"
67520
+ }
66739
67521
  }, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, {
66740
67522
  style: {
66741
67523
  marginTop: "10px",
@@ -66755,25 +67537,25 @@ const CheckPage$4 = _ref2 => {
66755
67537
  const val = typeof appType === "object" ? (appType === null || appType === void 0 ? void 0 : appType.code) || (appType === null || appType === void 0 ? void 0 : appType.name) || (appType === null || appType === void 0 ? void 0 : appType.i18nKey) || "" : String(appType || "");
66756
67538
  const isAuthRep = String(val).toLowerCase().includes("authorized") || String(val).toLowerCase().includes("representative");
66757
67539
  if (isAuthRep) {
66758
- var _connectionDetails8, _data$additionalDetai, _connectionDetails9, _data$additionalDetai2, _connectionDetails0, _data$additionalDetai3;
67540
+ var _connectionDetails8, _data$additionalDetai2, _connectionDetails9, _data$additionalDetai3, _connectionDetails0, _data$additionalDetai4;
66759
67541
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
66760
67542
  label: t("Authorized Representative Name"),
66761
- text: `${checkForNA$1(((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : _connectionDetails8.authorizedRepresentativeName) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.authorizedRepresentativeName))}`
67543
+ text: `${checkForNA$1(((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : _connectionDetails8.authorizedRepresentativeName) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.authorizedRepresentativeName))}`
66762
67544
  }), /*#__PURE__*/React.createElement(Row, {
66763
67545
  label: t("Authorized Representative Designation"),
66764
- text: `${checkForNA$1(((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : _connectionDetails9.authorizedRepresentativeDesignation) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.authorizedRepresentativeDesignation))}`
67546
+ text: `${checkForNA$1(((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : _connectionDetails9.authorizedRepresentativeDesignation) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai3 = data.additionalDetails) === null || _data$additionalDetai3 === void 0 ? void 0 : _data$additionalDetai3.authorizedRepresentativeDesignation))}`
66765
67547
  }), /*#__PURE__*/React.createElement(Row, {
66766
67548
  label: t("CORE_COMMON_MOBILE_NUMBER"),
66767
- text: `${checkForNA$1(((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : _connectionDetails0.authorizedRepresentativeMobileNumber) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai3 = data.additionalDetails) === null || _data$additionalDetai3 === void 0 ? void 0 : _data$additionalDetai3.authorizedRepresentativeMobileNumber))}`
67549
+ text: `${checkForNA$1(((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : _connectionDetails0.authorizedRepresentativeMobileNumber) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai4 = data.additionalDetails) === null || _data$additionalDetai4 === void 0 ? void 0 : _data$additionalDetai4.authorizedRepresentativeMobileNumber))}`
66768
67550
  }));
66769
67551
  }
66770
67552
  return null;
66771
67553
  })(), /*#__PURE__*/React.createElement(Row, {
66772
67554
  label: t("WS_Billing_Address_Type"),
66773
- text: `${t(checkForNA$1(((_connectionDetails1 = connectionDetails) === null || _connectionDetails1 === void 0 ? void 0 : (_connectionDetails1$a = _connectionDetails1.addressType) === null || _connectionDetails1$a === void 0 ? void 0 : _connectionDetails1$a.i18nKey) || ((_connectionDetails10 = connectionDetails) === null || _connectionDetails10 === void 0 ? void 0 : (_connectionDetails10$ = _connectionDetails10.addressType) === null || _connectionDetails10$ === void 0 ? void 0 : _connectionDetails10$.name) || (typeof ((_connectionDetails11 = connectionDetails) === null || _connectionDetails11 === void 0 ? void 0 : (_connectionDetails11$ = _connectionDetails11.addressType) === null || _connectionDetails11$ === void 0 ? void 0 : _connectionDetails11$.code) === "string" ? connectionDetails.addressType.code === "PERMANENT" ? "Permanent" : connectionDetails.addressType.code === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType.code : null) || (typeof ((_connectionDetails12 = connectionDetails) === null || _connectionDetails12 === void 0 ? void 0 : _connectionDetails12.addressType) === "string" ? connectionDetails.addressType === "PERMANENT" ? "Permanent" : connectionDetails.addressType === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType : null) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai4 = data.additionalDetails) === null || _data$additionalDetai4 === void 0 ? void 0 : _data$additionalDetai4.addressType)))}`
66774
- }), ((_connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _data$additionalDetai5, _connectionDetails16, _data$additionalDetai6) => {
66775
- const addrTypeStr = (typeof ((_connectionDetails13 = connectionDetails) === null || _connectionDetails13 === void 0 ? void 0 : _connectionDetails13.addressType) === "string" ? connectionDetails.addressType : ((_connectionDetails14 = connectionDetails) === null || _connectionDetails14 === void 0 ? void 0 : (_connectionDetails14$ = _connectionDetails14.addressType) === null || _connectionDetails14$ === void 0 ? void 0 : _connectionDetails14$.code) || ((_connectionDetails15 = connectionDetails) === null || _connectionDetails15 === void 0 ? void 0 : (_connectionDetails15$ = _connectionDetails15.addressType) === null || _connectionDetails15$ === void 0 ? void 0 : _connectionDetails15$.name)) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai5 = data.additionalDetails) === null || _data$additionalDetai5 === void 0 ? void 0 : _data$additionalDetai5.addressType) || "";
66776
- const compAddrStr = ((_connectionDetails16 = connectionDetails) === null || _connectionDetails16 === void 0 ? void 0 : _connectionDetails16.completeAddress) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.completeAddress) || "";
67555
+ text: `${t(checkForNA$1(((_connectionDetails1 = connectionDetails) === null || _connectionDetails1 === void 0 ? void 0 : (_connectionDetails1$a = _connectionDetails1.addressType) === null || _connectionDetails1$a === void 0 ? void 0 : _connectionDetails1$a.i18nKey) || ((_connectionDetails10 = connectionDetails) === null || _connectionDetails10 === void 0 ? void 0 : (_connectionDetails10$ = _connectionDetails10.addressType) === null || _connectionDetails10$ === void 0 ? void 0 : _connectionDetails10$.name) || (typeof ((_connectionDetails11 = connectionDetails) === null || _connectionDetails11 === void 0 ? void 0 : (_connectionDetails11$ = _connectionDetails11.addressType) === null || _connectionDetails11$ === void 0 ? void 0 : _connectionDetails11$.code) === "string" ? connectionDetails.addressType.code === "PERMANENT" ? "Permanent" : connectionDetails.addressType.code === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType.code : null) || (typeof ((_connectionDetails12 = connectionDetails) === null || _connectionDetails12 === void 0 ? void 0 : _connectionDetails12.addressType) === "string" ? connectionDetails.addressType === "PERMANENT" ? "Permanent" : connectionDetails.addressType === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType : null) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai5 = data.additionalDetails) === null || _data$additionalDetai5 === void 0 ? void 0 : _data$additionalDetai5.addressType)))}`
67556
+ }), ((_connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _data$additionalDetai6, _connectionDetails16, _data$additionalDetai7) => {
67557
+ const addrTypeStr = (typeof ((_connectionDetails13 = connectionDetails) === null || _connectionDetails13 === void 0 ? void 0 : _connectionDetails13.addressType) === "string" ? connectionDetails.addressType : ((_connectionDetails14 = connectionDetails) === null || _connectionDetails14 === void 0 ? void 0 : (_connectionDetails14$ = _connectionDetails14.addressType) === null || _connectionDetails14$ === void 0 ? void 0 : _connectionDetails14$.code) || ((_connectionDetails15 = connectionDetails) === null || _connectionDetails15 === void 0 ? void 0 : (_connectionDetails15$ = _connectionDetails15.addressType) === null || _connectionDetails15$ === void 0 ? void 0 : _connectionDetails15$.name)) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.addressType) || "";
67558
+ const compAddrStr = ((_connectionDetails16 = connectionDetails) === null || _connectionDetails16 === void 0 ? void 0 : _connectionDetails16.completeAddress) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.completeAddress) || "";
66777
67559
  if (compAddrStr && compAddrStr !== addrTypeStr && ["PERMANENT", "CORRESPONDENCE", "Permanent", "Correspondence"].includes(addrTypeStr)) {
66778
67560
  return /*#__PURE__*/React.createElement(Row, {
66779
67561
  label: t("Complete Address"),
@@ -66810,38 +67592,100 @@ const CheckPage$4 = _ref2 => {
66810
67592
  }), /*#__PURE__*/React.createElement(Row, {
66811
67593
  label: t("WS_EMAIL_ID"),
66812
67594
  text: `${t(checkForNA$1((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
66813
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
67595
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React.createElement(StatusTable, {
66814
67596
  style: {
66815
67597
  marginTop: "10px",
66816
67598
  marginBottom: "30px"
66817
67599
  }
66818
67600
  }, /*#__PURE__*/React.createElement(Row, {
66819
- label: t("WS_ZRO_LOCATION"),
66820
- text: `${t(checkForNA$1(((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$zro = _propertyAddress5.zro) === null || _propertyAddress5$zro === void 0 ? void 0 : _propertyAddress5$zro.name) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : _propertyAddress6.zro) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : _propertyAddress7.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$add = _propertyAddress8.additionalDetails) === null || _propertyAddress8$add === void 0 ? void 0 : _propertyAddress8$add.zroLocation)))}`,
67601
+ label: "Divyangjan/Person with Disability?",
67602
+ text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
67603
+ })), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
67604
+ style: {
67605
+ marginTop: "10px",
67606
+ marginBottom: "30px"
67607
+ }
67608
+ }, /*#__PURE__*/React.createElement(Row, {
67609
+ label: t("WS_DJB_EMPLOYEE"),
67610
+ text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
66821
67611
  actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
66822
67612
  onClick: onEdit
66823
67613
  })
67614
+ }), ((djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
67615
+ label: t("WS_EMPLOYEE_ID"),
67616
+ text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
66824
67617
  }), /*#__PURE__*/React.createElement(Row, {
67618
+ label: t("WS_EMPLOYEE_DESIGNATION"),
67619
+ text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
67620
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
67621
+ label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
67622
+ text: /*#__PURE__*/React.createElement("span", {
67623
+ style: {
67624
+ display: "flex",
67625
+ alignItems: "center",
67626
+ gap: "8px",
67627
+ cursor: "pointer",
67628
+ color: "#f47738"
67629
+ },
67630
+ onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
67631
+ }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
67632
+ })))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
67633
+ style: {
67634
+ marginTop: "10px",
67635
+ marginBottom: "30px"
67636
+ }
67637
+ }, /*#__PURE__*/React.createElement(Row, {
67638
+ label: t("WS_NAME_OF_BANK"),
67639
+ text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
67640
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
67641
+ onClick: onEdit
67642
+ })
67643
+ }), /*#__PURE__*/React.createElement(Row, {
67644
+ label: t("WS_NAME_OF_BRANCH"),
67645
+ text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
67646
+ }), /*#__PURE__*/React.createElement(Row, {
67647
+ label: t("WS_IFSC_CODE"),
67648
+ text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
67649
+ }), /*#__PURE__*/React.createElement(Row, {
67650
+ label: t("WS_BANK_ACCOUNT_NO"),
67651
+ text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
67652
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
67653
+ style: {
67654
+ marginTop: "10px",
67655
+ marginBottom: "30px"
67656
+ }
67657
+ }, /*#__PURE__*/React.createElement(Row, {
67658
+ label: t("Rain Water Harvesting Certificate"),
67659
+ text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
67660
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
67661
+ style: {
67662
+ marginTop: "10px",
67663
+ marginBottom: "30px"
67664
+ }
67665
+ }, /*#__PURE__*/React.createElement(Row, {
66825
67666
  label: t("COMMON_ADDRESS_TYPE"),
66826
- text: `${t(checkForNA$1(((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : (_propertyAddress9$add = _propertyAddress9.addressType) === null || _propertyAddress9$add === void 0 ? void 0 : _propertyAddress9$add.i18nKey) || ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : (_propertyAddress0$add = _propertyAddress0.addressType) === null || _propertyAddress0$add === void 0 ? void 0 : _propertyAddress0$add.code) || ((_propertyAddress1 = propertyAddress) === null || _propertyAddress1 === void 0 ? void 0 : _propertyAddress1.addressType)))}`
67667
+ text: `${t(checkForNA$1(((_propertyAddress18 = propertyAddress) === null || _propertyAddress18 === void 0 ? void 0 : (_propertyAddress18$ad = _propertyAddress18.addressType) === null || _propertyAddress18$ad === void 0 ? void 0 : _propertyAddress18$ad.i18nKey) || ((_propertyAddress19 = propertyAddress) === null || _propertyAddress19 === void 0 ? void 0 : (_propertyAddress19$ad = _propertyAddress19.addressType) === null || _propertyAddress19$ad === void 0 ? void 0 : _propertyAddress19$ad.code) || ((_propertyAddress20 = propertyAddress) === null || _propertyAddress20 === void 0 ? void 0 : _propertyAddress20.addressType)))}`,
67668
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
67669
+ onClick: onEdit
67670
+ })
66827
67671
  }), /*#__PURE__*/React.createElement(Row, {
66828
67672
  label: t("CORE_COMMON_PROFILE_CITY"),
66829
- text: `${t(checkForNA$1(((_propertyAddress10 = propertyAddress) === null || _propertyAddress10 === void 0 ? void 0 : (_propertyAddress10$ci = _propertyAddress10.city) === null || _propertyAddress10$ci === void 0 ? void 0 : _propertyAddress10$ci.name) || ((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : (_propertyAddress11$ci = _propertyAddress11.city) === null || _propertyAddress11$ci === void 0 ? void 0 : _propertyAddress11$ci.code) || ((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : _propertyAddress12.city)))}`
67673
+ text: `${t(checkForNA$1(((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : (_propertyAddress21$ci = _propertyAddress21.city) === null || _propertyAddress21$ci === void 0 ? void 0 : _propertyAddress21$ci.name) || ((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : (_propertyAddress22$ci = _propertyAddress22.city) === null || _propertyAddress22$ci === void 0 ? void 0 : _propertyAddress22$ci.code) || ((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.city)))}`
66830
67674
  }), /*#__PURE__*/React.createElement(Row, {
66831
67675
  label: t("PINCODE"),
66832
- text: `${t(checkForNA$1(((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.pincode) || ((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : _propertyAddress14.pinCode)))}`
67676
+ text: `${t(checkForNA$1(((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.pincode) || ((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.pinCode)))}`
66833
67677
  }), /*#__PURE__*/React.createElement(Row, {
66834
67678
  label: t("LOCALITY"),
66835
- text: `${t(checkForNA$1(((_propertyAddress15 = propertyAddress) === null || _propertyAddress15 === void 0 ? void 0 : (_propertyAddress15$lo = _propertyAddress15.locality) === null || _propertyAddress15$lo === void 0 ? void 0 : _propertyAddress15$lo.name) || ((_propertyAddress16 = propertyAddress) === null || _propertyAddress16 === void 0 ? void 0 : (_propertyAddress16$lo = _propertyAddress16.locality) === null || _propertyAddress16$lo === void 0 ? void 0 : _propertyAddress16$lo.code) || ((_propertyAddress17 = propertyAddress) === null || _propertyAddress17 === void 0 ? void 0 : _propertyAddress17.locality)))}`
67679
+ text: `${t(checkForNA$1(((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : (_propertyAddress26$lo = _propertyAddress26.locality) === null || _propertyAddress26$lo === void 0 ? void 0 : _propertyAddress26$lo.name) || ((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : (_propertyAddress27$lo = _propertyAddress27.locality) === null || _propertyAddress27$lo === void 0 ? void 0 : _propertyAddress27$lo.code) || ((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.locality)))}`
66836
67680
  }), /*#__PURE__*/React.createElement(Row, {
66837
67681
  label: t("SubLocality"),
66838
- text: `${t(checkForNA$1(((_propertyAddress18 = propertyAddress) === null || _propertyAddress18 === void 0 ? void 0 : (_propertyAddress18$su = _propertyAddress18.subLocality) === null || _propertyAddress18$su === void 0 ? void 0 : _propertyAddress18$su.name) || ((_propertyAddress19 = propertyAddress) === null || _propertyAddress19 === void 0 ? void 0 : (_propertyAddress19$su = _propertyAddress19.subLocality) === null || _propertyAddress19$su === void 0 ? void 0 : _propertyAddress19$su.code) || ((_propertyAddress20 = propertyAddress) === null || _propertyAddress20 === void 0 ? void 0 : _propertyAddress20.subLocality)))}`
67682
+ text: `${t(checkForNA$1(((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : (_propertyAddress29$su = _propertyAddress29.subLocality) === null || _propertyAddress29$su === void 0 ? void 0 : _propertyAddress29$su.name) || ((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : (_propertyAddress30$su = _propertyAddress30.subLocality) === null || _propertyAddress30$su === void 0 ? void 0 : _propertyAddress30$su.code) || ((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : _propertyAddress31.subLocality)))}`
66839
67683
  }), /*#__PURE__*/React.createElement(Row, {
66840
67684
  label: t("STREET_NAME"),
66841
- text: `${t(checkForNA$1(((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : _propertyAddress21.streetName) || ((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.street)))}`
67685
+ text: `${t(checkForNA$1(((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : _propertyAddress32.streetName) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : _propertyAddress33.street)))}`
66842
67686
  }), /*#__PURE__*/React.createElement(Row, {
66843
67687
  label: t("HOUSE_NO"),
66844
- text: `${t(checkForNA$1(((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.houseNo) || ((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.doorNo)))}`
67688
+ text: `${t(checkForNA$1(((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.houseNo) || ((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : _propertyAddress35.doorNo)))}`
66845
67689
  }), /*#__PURE__*/React.createElement(Row, {
66846
67690
  label: t("WS_NUMBER_OF_FLOORS"),
66847
67691
  text: `${getFloorDisplay(rawNumberOfFloors)}`
@@ -66850,38 +67694,38 @@ const CheckPage$4 = _ref2 => {
66850
67694
  text: `${getTotalFloorsDisplay(rawTotalNoOfFloors)}`
66851
67695
  }), /*#__PURE__*/React.createElement(Row, {
66852
67696
  label: t("ADDRESS_LINE1"),
66853
- text: `${t(checkForNA$1(((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.addressLine1) || ((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : _propertyAddress26.street)))}`
67697
+ text: `${t(checkForNA$1(((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : _propertyAddress36.addressLine1) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.street)))}`
66854
67698
  }), /*#__PURE__*/React.createElement(Row, {
66855
67699
  label: t("ADDRESS_LINE2"),
66856
- text: `${t(checkForNA$1((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : _propertyAddress27.addressLine2))}`
67700
+ text: `${t(checkForNA$1((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.addressLine2))}`
66857
67701
  }), /*#__PURE__*/React.createElement(Row, {
66858
67702
  label: t("LANDMARK"),
66859
- text: `${t(checkForNA$1((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.landmark))}`
67703
+ text: `${t(checkForNA$1((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.landmark))}`
66860
67704
  }), /*#__PURE__*/React.createElement(Row, {
66861
67705
  label: t("LATITUDE_GEOTAG"),
66862
- text: `${t(checkForNA$1((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : _propertyAddress29.latitude))}`
67706
+ text: `${t(checkForNA$1((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.latitude))}`
66863
67707
  }), /*#__PURE__*/React.createElement(Row, {
66864
67708
  label: t("LONGITUDE_GEOTAG"),
66865
- text: `${t(checkForNA$1((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : _propertyAddress30.longitude))}`
67709
+ text: `${t(checkForNA$1((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.longitude))}`
66866
67710
  }), /*#__PURE__*/React.createElement(Row, {
66867
67711
  label: t("COMMON_ASSEMBLY"),
66868
- text: `${t(checkForNA$1(((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : (_propertyAddress31$as = _propertyAddress31.assembly) === null || _propertyAddress31$as === void 0 ? void 0 : _propertyAddress31$as.name) || ((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : (_propertyAddress32$as = _propertyAddress32.assembly) === null || _propertyAddress32$as === void 0 ? void 0 : _propertyAddress32$as.code) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : _propertyAddress33.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address = cpt.address) === null || _cpt$address === void 0 ? void 0 : _cpt$address.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
67712
+ text: `${t(checkForNA$1(((_propertyAddress42 = propertyAddress) === null || _propertyAddress42 === void 0 ? void 0 : (_propertyAddress42$as = _propertyAddress42.assembly) === null || _propertyAddress42$as === void 0 ? void 0 : _propertyAddress42$as.name) || ((_propertyAddress43 = propertyAddress) === null || _propertyAddress43 === void 0 ? void 0 : (_propertyAddress43$as = _propertyAddress43.assembly) === null || _propertyAddress43$as === void 0 ? void 0 : _propertyAddress43$as.code) || ((_propertyAddress44 = propertyAddress) === null || _propertyAddress44 === void 0 ? void 0 : _propertyAddress44.assembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address5 = cpt.address) === null || _cpt$address5 === void 0 ? void 0 : _cpt$address5.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
66869
67713
  }), /*#__PURE__*/React.createElement(Row, {
66870
67714
  label: t("COMMON_WARD"),
66871
- text: `${t(checkForNA$1(((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : (_propertyAddress34$bl = _propertyAddress34.block) === null || _propertyAddress34$bl === void 0 ? void 0 : _propertyAddress34$bl.name) || ((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : (_propertyAddress35$bl = _propertyAddress35.block) === null || _propertyAddress35$bl === void 0 ? void 0 : _propertyAddress35$bl.code) || ((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : _propertyAddress36.block) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : (_propertyAddress37$wa = _propertyAddress37.ward) === null || _propertyAddress37$wa === void 0 ? void 0 : _propertyAddress37$wa.name) || ((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : (_propertyAddress38$wa = _propertyAddress38.ward) === null || _propertyAddress38$wa === void 0 ? void 0 : _propertyAddress38$wa.code) || ((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address2 = cpt.address) === null || _cpt$address2 === void 0 ? void 0 : _cpt$address2.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address3 = cpt.address) === null || _cpt$address3 === void 0 ? void 0 : _cpt$address3.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
67715
+ text: `${t(checkForNA$1(((_propertyAddress45 = propertyAddress) === null || _propertyAddress45 === void 0 ? void 0 : (_propertyAddress45$bl = _propertyAddress45.block) === null || _propertyAddress45$bl === void 0 ? void 0 : _propertyAddress45$bl.name) || ((_propertyAddress46 = propertyAddress) === null || _propertyAddress46 === void 0 ? void 0 : (_propertyAddress46$bl = _propertyAddress46.block) === null || _propertyAddress46$bl === void 0 ? void 0 : _propertyAddress46$bl.code) || ((_propertyAddress47 = propertyAddress) === null || _propertyAddress47 === void 0 ? void 0 : _propertyAddress47.block) || ((_propertyAddress48 = propertyAddress) === null || _propertyAddress48 === void 0 ? void 0 : (_propertyAddress48$wa = _propertyAddress48.ward) === null || _propertyAddress48$wa === void 0 ? void 0 : _propertyAddress48$wa.name) || ((_propertyAddress49 = propertyAddress) === null || _propertyAddress49 === void 0 ? void 0 : (_propertyAddress49$wa = _propertyAddress49.ward) === null || _propertyAddress49$wa === void 0 ? void 0 : _propertyAddress49$wa.code) || ((_propertyAddress50 = propertyAddress) === null || _propertyAddress50 === void 0 ? void 0 : _propertyAddress50.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address6 = cpt.address) === null || _cpt$address6 === void 0 ? void 0 : _cpt$address6.ward) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address7 = cpt.address) === null || _cpt$address7 === void 0 ? void 0 : _cpt$address7.block) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
66872
67716
  }), /*#__PURE__*/React.createElement(Row, {
66873
67717
  label: t("COMMON_ZONE"),
66874
- text: `${t(checkForNA$1(((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : (_propertyAddress40$zo = _propertyAddress40.zone) === null || _propertyAddress40$zo === void 0 ? void 0 : _propertyAddress40$zo.name) || ((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : (_propertyAddress41$zo = _propertyAddress41.zone) === null || _propertyAddress41$zo === void 0 ? void 0 : _propertyAddress41$zo.code) || ((_propertyAddress42 = propertyAddress) === null || _propertyAddress42 === void 0 ? void 0 : _propertyAddress42.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address4 = cpt.address) === null || _cpt$address4 === void 0 ? void 0 : _cpt$address4.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
66875
- }), /*#__PURE__*/React.createElement(Row, {
67718
+ text: `${t(checkForNA$1(((_propertyAddress51 = propertyAddress) === null || _propertyAddress51 === void 0 ? void 0 : (_propertyAddress51$zo = _propertyAddress51.zone) === null || _propertyAddress51$zo === void 0 ? void 0 : _propertyAddress51$zo.name) || ((_propertyAddress52 = propertyAddress) === null || _propertyAddress52 === void 0 ? void 0 : (_propertyAddress52$zo = _propertyAddress52.zone) === null || _propertyAddress52$zo === void 0 ? void 0 : _propertyAddress52$zo.code) || ((_propertyAddress53 = propertyAddress) === null || _propertyAddress53 === void 0 ? void 0 : _propertyAddress53.zone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address8 = cpt.address) === null || _cpt$address8 === void 0 ? void 0 : _cpt$address8.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
67719
+ }), validActualAssembly ? /*#__PURE__*/React.createElement(Row, {
66876
67720
  label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
66877
- text: `${t(checkForNA$1(((_propertyAddress43 = propertyAddress) === null || _propertyAddress43 === void 0 ? void 0 : _propertyAddress43.actualAssembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address5 = cpt.address) === null || _cpt$address5 === void 0 ? void 0 : _cpt$address5.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail5 = cpt.additionalDetails) === null || _cpt$additionalDetail5 === void 0 ? void 0 : _cpt$additionalDetail5.actualAssembly)))}`
66878
- }), /*#__PURE__*/React.createElement(Row, {
67721
+ text: `${t(validActualAssembly)}`
67722
+ }) : null, validActualWard ? /*#__PURE__*/React.createElement(Row, {
66879
67723
  label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
66880
- text: `${t(checkForNA$1(((_propertyAddress44 = propertyAddress) === null || _propertyAddress44 === void 0 ? void 0 : _propertyAddress44.actualWard) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address6 = cpt.address) === null || _cpt$address6 === void 0 ? void 0 : _cpt$address6.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail6 = cpt.additionalDetails) === null || _cpt$additionalDetail6 === void 0 ? void 0 : _cpt$additionalDetail6.actualWard)))}`
66881
- }), /*#__PURE__*/React.createElement(Row, {
67724
+ text: `${t(validActualWard)}`
67725
+ }) : null, validActualZone ? /*#__PURE__*/React.createElement(Row, {
66882
67726
  label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
66883
- text: `${t(checkForNA$1(((_propertyAddress45 = propertyAddress) === null || _propertyAddress45 === void 0 ? void 0 : _propertyAddress45.actualZone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$address7 = cpt.address) === null || _cpt$address7 === void 0 ? void 0 : _cpt$address7.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail7 = cpt.additionalDetails) === null || _cpt$additionalDetail7 === void 0 ? void 0 : _cpt$additionalDetail7.actualZone)))}`
66884
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
67727
+ text: `${t(validActualZone)}`
67728
+ }) : null), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
66885
67729
  style: {
66886
67730
  marginTop: "10px",
66887
67731
  marginBottom: "30px"
@@ -66913,10 +67757,10 @@ const CheckPage$4 = _ref2 => {
66913
67757
  }), /*#__PURE__*/React.createElement(Row, {
66914
67758
  label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
66915
67759
  text: `${t(checkForNA$1((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)))}`
66916
- }), 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) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail8 = cpt.additionalDetails) === null || _cpt$additionalDetail8 === void 0 ? void 0 : (_cpt$additionalDetail9 = _cpt$additionalDetail8.propertyCategory) === null || _cpt$additionalDetail9 === void 0 ? void 0 : _cpt$additionalDetail9.code) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail0 = cpt.additionalDetails) === null || _cpt$additionalDetail0 === void 0 ? void 0 : _cpt$additionalDetail0.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$propertyType = cpt.propertyType) === null || _cpt$propertyType === void 0 ? void 0 : _cpt$propertyType.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : cpt.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(Row, {
67760
+ }), 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) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail5 = cpt.additionalDetails) === null || _cpt$additionalDetail5 === void 0 ? void 0 : (_cpt$additionalDetail6 = _cpt$additionalDetail5.propertyCategory) === null || _cpt$additionalDetail6 === void 0 ? void 0 : _cpt$additionalDetail6.code) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail7 = cpt.additionalDetails) === null || _cpt$additionalDetail7 === void 0 ? void 0 : _cpt$additionalDetail7.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$propertyType = cpt.propertyType) === null || _cpt$propertyType === void 0 ? void 0 : _cpt$propertyType.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : cpt.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(Row, {
66917
67761
  label: t("WS_NUMBER_OF_DWELLING_UNITS"),
66918
67762
  text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
66919
- }) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail1 = cpt.additionalDetails) === null || _cpt$additionalDetail1 === void 0 ? void 0 : _cpt$additionalDetail1.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail10 = cpt.additionalDetails) === null || _cpt$additionalDetail10 === void 0 ? void 0 : _cpt$additionalDetail10.questions) : []).map((q, idx) => {
67763
+ }) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail8 = cpt.additionalDetails) === null || _cpt$additionalDetail8 === void 0 ? void 0 : _cpt$additionalDetail8.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail9 = cpt.additionalDetails) === null || _cpt$additionalDetail9 === void 0 ? void 0 : _cpt$additionalDetail9.questions) : []).map((q, idx) => {
66920
67764
  var _q$answer, _q$answer2, _q$answer3;
66921
67765
  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}`;
66922
67766
  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;
@@ -66927,51 +67771,6 @@ const CheckPage$4 = _ref2 => {
66927
67771
  label: displayLabel,
66928
67772
  text: `${t(checkForNA$1(aText))}`
66929
67773
  });
66930
- })), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
66931
- style: {
66932
- marginTop: "10px",
66933
- marginBottom: "30px"
66934
- }
66935
- }, /*#__PURE__*/React.createElement(Row, {
66936
- label: t("WS_DJB_EMPLOYEE"),
66937
- text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
66938
- actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
66939
- onClick: onEdit
66940
- })
66941
- }), ((djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
66942
- label: t("WS_EMPLOYEE_ID"),
66943
- text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
66944
- }), /*#__PURE__*/React.createElement(Row, {
66945
- label: t("WS_EMPLOYEE_DESIGNATION"),
66946
- text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
66947
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
66948
- label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
66949
- text: /*#__PURE__*/React.createElement("span", {
66950
- style: {
66951
- display: "flex",
66952
- alignItems: "center",
66953
- gap: "8px",
66954
- cursor: "pointer",
66955
- color: "#f47738"
66956
- },
66957
- onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
66958
- }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
66959
- })))), /*#__PURE__*/React.createElement(CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React.createElement(StatusTable, {
66960
- style: {
66961
- marginTop: "10px",
66962
- marginBottom: "30px"
66963
- }
66964
- }, /*#__PURE__*/React.createElement(Row, {
66965
- label: "Divyangjan/Person with Disability?",
66966
- text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
66967
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
66968
- style: {
66969
- marginTop: "10px",
66970
- marginBottom: "30px"
66971
- }
66972
- }, /*#__PURE__*/React.createElement(Row, {
66973
- label: t("Rain Water Harvesting Certificate"),
66974
- text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
66975
67774
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, {
66976
67775
  style: {
66977
67776
  marginTop: "10px",
@@ -67008,8 +67807,8 @@ const CheckPage$4 = _ref2 => {
67008
67807
  declarationData: declarationData
67009
67808
  },
67010
67809
  userType: "employee"
67011
- })), ((_declarationData$sign, _data$declarationData, _data$declaration, _data$additionalDetai7) => {
67012
- const hasSignature = Boolean((declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFileStoreId) || (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signature) || (declarationData === null || declarationData === void 0 ? void 0 : (_declarationData$sign = declarationData.signatureFile) === null || _declarationData$sign === void 0 ? void 0 : _declarationData$sign.fileStoreId) || typeof (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFile) === "string" && (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFile.trim()) || (data === null || data === void 0 ? void 0 : (_data$declarationData = data.declarationData) === null || _data$declarationData === void 0 ? void 0 : _data$declarationData.signatureFileStoreId) || (data === null || data === void 0 ? void 0 : (_data$declaration = data.declaration) === null || _data$declaration === void 0 ? void 0 : _data$declaration.signatureFileStoreId) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.signatureFileStoreId));
67810
+ })), ((_declarationData$sign, _data$declarationData, _data$declaration, _data$additionalDetai8) => {
67811
+ const hasSignature = Boolean((declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFileStoreId) || (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signature) || (declarationData === null || declarationData === void 0 ? void 0 : (_declarationData$sign = declarationData.signatureFile) === null || _declarationData$sign === void 0 ? void 0 : _declarationData$sign.fileStoreId) || typeof (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFile) === "string" && (declarationData === null || declarationData === void 0 ? void 0 : declarationData.signatureFile.trim()) || (data === null || data === void 0 ? void 0 : (_data$declarationData = data.declarationData) === null || _data$declarationData === void 0 ? void 0 : _data$declarationData.signatureFileStoreId) || (data === null || data === void 0 ? void 0 : (_data$declaration = data.declaration) === null || _data$declaration === void 0 ? void 0 : _data$declaration.signatureFileStoreId) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai8 = data.additionalDetails) === null || _data$additionalDetai8 === void 0 ? void 0 : _data$additionalDetai8.signatureFileStoreId));
67013
67812
  const isSubmitDisabled = !(declarationData !== null && declarationData !== void 0 && declarationData.agree) || !hasSignature;
67014
67813
  return /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
67015
67814
  label: t("CS_COMMON_SUBMIT"),
@@ -67109,6 +67908,8 @@ const OLDApplication = () => {
67109
67908
  label: "Are you a Divyangjan/Person with Disability?"
67110
67909
  }, {
67111
67910
  label: "WS_DJB_EMPLOYEE"
67911
+ }, {
67912
+ label: "WS_BANK_DETAILS"
67112
67913
  }, {
67113
67914
  label: "Rain Water Harvesting Certificate"
67114
67915
  }, {
@@ -67184,7 +67985,7 @@ const OLDApplication = () => {
67184
67985
  };
67185
67986
  const configCopy = cloneDeep_1(foundConfig);
67186
67987
  const allCreateSections = (configCopy === null || configCopy === void 0 ? void 0 : (_configCopy$body = configCopy.body) === null || _configCopy$body === void 0 ? void 0 : _configCopy$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
67187
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSRainWaterHarvesting", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
67988
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSBankDetails", "WSRainWaterHarvesting", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
67188
67989
  const reorderedBody = [];
67189
67990
  desiredComponentOrder.forEach(compName => {
67190
67991
  const section = allCreateSections.find(s => {
@@ -67266,6 +68067,19 @@ const OLDApplication = () => {
67266
68067
  }
67267
68068
  }]
67268
68069
  });
68070
+ } else if (compName === "WSBankDetails") {
68071
+ reorderedBody.push({
68072
+ isCreateConnection: true,
68073
+ body: [{
68074
+ type: "component",
68075
+ key: "bankDetails",
68076
+ component: "WSBankDetails",
68077
+ withoutLabel: true,
68078
+ texts: {
68079
+ header: "Bank Details"
68080
+ }
68081
+ }]
68082
+ });
67269
68083
  }
67270
68084
  });
67271
68085
  allCreateSections.forEach(section => {
@@ -67292,35 +68106,7 @@ const OLDApplication = () => {
67292
68106
  var _formDataRef$current, _formDataRef$current$, _formDataRef$current$2, _propertyDetails$Prop, _propertyDetails$Prop2;
67293
68107
  const hasProp = ((_formDataRef$current = formDataRef.current) === null || _formDataRef$current === void 0 ? void 0 : (_formDataRef$current$ = _formDataRef$current.cpt) === null || _formDataRef$current$ === void 0 ? void 0 : (_formDataRef$current$2 = _formDataRef$current$.details) === null || _formDataRef$current$2 === void 0 ? void 0 : _formDataRef$current$2.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : (_propertyDetails$Prop2 = _propertyDetails$Prop[0]) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2.propertyId);
67294
68108
  if (hasProp && !canSubmit) {
67295
- var _formDataRef$current2, _formDataRef$current3, _formDataRef$current4, _formDataRef$current5, _formDataRef$current6, _formDataRef$current7, _formDataRef$current8, _djbData$document, _formDataRef$current9, _formDataRef$current0;
67296
- const djbData = ((_formDataRef$current2 = formDataRef.current) === null || _formDataRef$current2 === void 0 ? void 0 : _formDataRef$current2.djbEmployee) || ((_formDataRef$current3 = formDataRef.current) === null || _formDataRef$current3 === void 0 ? void 0 : _formDataRef$current3.additionalDetails);
67297
- const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
67298
- const docs = ((_formDataRef$current4 = formDataRef.current) === null || _formDataRef$current4 === void 0 ? void 0 : (_formDataRef$current5 = _formDataRef$current4.DocumentsRequired) === null || _formDataRef$current5 === void 0 ? void 0 : _formDataRef$current5.documents) || ((_formDataRef$current6 = formDataRef.current) === null || _formDataRef$current6 === void 0 ? void 0 : (_formDataRef$current7 = _formDataRef$current6.documents) === null || _formDataRef$current7 === void 0 ? void 0 : _formDataRef$current7.documents) || ((_formDataRef$current8 = formDataRef.current) === null || _formDataRef$current8 === void 0 ? void 0 : _formDataRef$current8.documents) || [];
67299
- const foundDjb = Array.isArray(docs) && docs.find(d => {
67300
- var _d$documentType;
67301
- return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType = d.documentType) === null || _d$documentType === void 0 ? void 0 : _d$documentType.includes("DJB_EMPLOYEE_ID"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file) || (d === null || d === void 0 ? void 0 : d.filestoreId));
67302
- });
67303
- const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$document = djbData.document) === null || _djbData$document === void 0 ? void 0 : _djbData$document.fileStoreId) || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && (djbData === null || djbData === void 0 ? void 0 : djbData.document.trim()) || (djbData === null || djbData === void 0 ? void 0 : djbData.document) || (foundDjb ? foundDjb.fileStoreId || foundDjb.file || foundDjb.filestoreId : null);
67304
- const isDjbEmpInv = isDjbEmp && (!(djbData !== null && djbData !== void 0 && djbData.employeeId) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.employeeId).trim() || !(djbData !== null && djbData !== void 0 && djbData.designation) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.designation).trim() || !djbDoc);
67305
- const rwhData = ((_formDataRef$current9 = formDataRef.current) === null || _formDataRef$current9 === void 0 ? void 0 : _formDataRef$current9.rainWaterHarvesting) || ((_formDataRef$current0 = formDataRef.current) === null || _formDataRef$current0 === void 0 ? void 0 : _formDataRef$current0.additionalDetails);
67306
- const isRwhReq = (rwhData === null || rwhData === void 0 ? void 0 : rwhData.hasCertificate) === true || String(rwhData === null || rwhData === void 0 ? void 0 : rwhData.hasCertificate) === "true" || (rwhData === null || rwhData === void 0 ? void 0 : rwhData.isRainwaterHarvesting) === true || String(rwhData === null || rwhData === void 0 ? void 0 : rwhData.isRainwaterHarvesting) === "true";
67307
- const isRwhUploaded = Array.isArray(docs) && docs.some(d => isRwhDoc(d) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file)));
67308
- const isRwhInv = isRwhReq && !isRwhUploaded;
67309
- const storedErrors = sessionStorage.getItem("FORMSTATE_ERRORS");
67310
- let parsedErrors = {};
67311
- try {
67312
- parsedErrors = storedErrors ? JSON.parse(storedErrors) : {};
67313
- } catch (e) {}
67314
- const hasStoredErrors = Object.keys(parsedErrors).some(k => {
67315
- const err = parsedErrors[k];
67316
- if (!err) return false;
67317
- if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
67318
- if (typeof err === "object" && Object.keys(err).length === 0) return false;
67319
- return true;
67320
- });
67321
- if (!hasStoredErrors && !isDjbEmpInv && !isRwhInv) {
67322
- setSubmitValve(true);
67323
- }
68109
+ setSubmitValve(true);
67324
68110
  }
67325
68111
  }, [propertyId, propertyDetails]);
67326
68112
  const {
@@ -67340,7 +68126,7 @@ const OLDApplication = () => {
67340
68126
  mutate: sewerageUpdateMutation
67341
68127
  } = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
67342
68128
  const onFormValueChange = (setValue, formData, formState) => {
67343
- var _formData$cpt, _formData$cpt$details, _formDataRef$current1, _formDataRef$current10, _djbData$document2, _formDataRef$current11, _formDataRef$current12, _formData$DocumentsRe, _formDataRef$current13, _formDataRef$current14, _formData$documents, _formDataRef$current15, _formDataRef$current16, _formDataRef$current17, _formDataRef$current18, _formDataRef$current19, _formData$DocumentsRe2, _formDataRef$current20, _formDataRef$current21, _formData$documents2, _formDataRef$current22, _formDataRef$current23, _formDataRef$current24, _formDataRef$current25, _propertyDetails$Prop3, _propertyDetails$Prop4;
68129
+ var _formData$cpt, _formData$cpt$details, _formDataRef$current2, _formDataRef$current3, _djbData$document, _formDataRef$current4, _formDataRef$current5, _formData$DocumentsRe, _formDataRef$current6, _formDataRef$current7, _formData$documents, _formDataRef$current8, _formDataRef$current1, _formDataRef$current10, _formData$DocumentsRe2, _formDataRef$current11, _formDataRef$current12, _formData$documents2, _formDataRef$current13, _formDataRef$current14, _formDataRef$current15, _formDataRef$current16, _propertyDetails$Prop3, _propertyDetails$Prop4;
67344
68130
  formDataRef.current = {
67345
68131
  ...formDataRef.current,
67346
68132
  ...formData
@@ -67360,39 +68146,27 @@ const OLDApplication = () => {
67360
68146
  const findDjbDoc = docs => {
67361
68147
  if (!Array.isArray(docs)) return null;
67362
68148
  const found = docs.find(d => {
67363
- var _d$documentType2;
67364
- return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType2 = d.documentType) === null || _d$documentType2 === void 0 ? void 0 : _d$documentType2.includes("DJB_EMPLOYEE_ID"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file) || (d === null || d === void 0 ? void 0 : d.filestoreId));
68149
+ var _d$documentType;
68150
+ return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType = d.documentType) === null || _d$documentType === void 0 ? void 0 : _d$documentType.includes("DJB_EMPLOYEE_ID"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file) || (d === null || d === void 0 ? void 0 : d.filestoreId));
67365
68151
  });
67366
68152
  return found ? found.fileStoreId || found.file || found.filestoreId : null;
67367
68153
  };
67368
- const djbData = ((_formDataRef$current1 = formDataRef.current) === null || _formDataRef$current1 === void 0 ? void 0 : _formDataRef$current1.djbEmployee) || ((_formDataRef$current10 = formDataRef.current) === null || _formDataRef$current10 === void 0 ? void 0 : _formDataRef$current10.additionalDetails);
68154
+ const djbData = ((_formDataRef$current2 = formDataRef.current) === null || _formDataRef$current2 === void 0 ? void 0 : _formDataRef$current2.djbEmployee) || ((_formDataRef$current3 = formDataRef.current) === null || _formDataRef$current3 === void 0 ? void 0 : _formDataRef$current3.additionalDetails);
67369
68155
  const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
67370
- const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$document2 = djbData.document) === null || _djbData$document2 === void 0 ? void 0 : _djbData$document2.fileStoreId) || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && (djbData === null || djbData === void 0 ? void 0 : djbData.document.trim()) || (djbData === null || djbData === void 0 ? void 0 : djbData.document) || findDjbDoc((_formDataRef$current11 = formDataRef.current) === null || _formDataRef$current11 === void 0 ? void 0 : (_formDataRef$current12 = _formDataRef$current11.DocumentsRequired) === null || _formDataRef$current12 === void 0 ? void 0 : _formDataRef$current12.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || findDjbDoc((_formDataRef$current13 = formDataRef.current) === null || _formDataRef$current13 === void 0 ? void 0 : (_formDataRef$current14 = _formDataRef$current13.documents) === null || _formDataRef$current14 === void 0 ? void 0 : _formDataRef$current14.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || findDjbDoc((_formDataRef$current15 = formDataRef.current) === null || _formDataRef$current15 === void 0 ? void 0 : _formDataRef$current15.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : formData.documents);
68156
+ const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$document = djbData.document) === null || _djbData$document === void 0 ? void 0 : _djbData$document.fileStoreId) || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && (djbData === null || djbData === void 0 ? void 0 : djbData.document.trim()) || (djbData === null || djbData === void 0 ? void 0 : djbData.document) || findDjbDoc((_formDataRef$current4 = formDataRef.current) === null || _formDataRef$current4 === void 0 ? void 0 : (_formDataRef$current5 = _formDataRef$current4.DocumentsRequired) === null || _formDataRef$current5 === void 0 ? void 0 : _formDataRef$current5.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || findDjbDoc((_formDataRef$current6 = formDataRef.current) === null || _formDataRef$current6 === void 0 ? void 0 : (_formDataRef$current7 = _formDataRef$current6.documents) === null || _formDataRef$current7 === void 0 ? void 0 : _formDataRef$current7.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || findDjbDoc((_formDataRef$current8 = formDataRef.current) === null || _formDataRef$current8 === void 0 ? void 0 : _formDataRef$current8.documents) || findDjbDoc(formData === null || formData === void 0 ? void 0 : formData.documents);
67371
68157
  if (djbDoc) {
67372
68158
  if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
67373
68159
  formDataRef.current.djbEmployee.document = djbDoc;
67374
68160
  }
67375
68161
  const isDjbEmpInvalid = isDjbEmp && (!(djbData !== null && djbData !== void 0 && djbData.employeeId) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.employeeId).trim() || !(djbData !== null && djbData !== void 0 && djbData.designation) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.designation).trim() || !djbDoc);
67376
- const rwhData = ((_formDataRef$current16 = formDataRef.current) === null || _formDataRef$current16 === void 0 ? void 0 : _formDataRef$current16.rainWaterHarvesting) || ((_formDataRef$current17 = formDataRef.current) === null || _formDataRef$current17 === void 0 ? void 0 : _formDataRef$current17.additionalDetails);
67377
- const isRwhRequired = (rwhData === null || rwhData === void 0 ? void 0 : rwhData.hasCertificate) === true || String(rwhData === null || rwhData === void 0 ? void 0 : rwhData.hasCertificate) === "true" || (rwhData === null || rwhData === void 0 ? void 0 : rwhData.isRainwaterHarvesting) === true || String(rwhData === null || rwhData === void 0 ? void 0 : rwhData.isRainwaterHarvesting) === "true";
67378
- const allCurrentDocs = ((_formDataRef$current18 = formDataRef.current) === null || _formDataRef$current18 === void 0 ? void 0 : (_formDataRef$current19 = _formDataRef$current18.DocumentsRequired) === null || _formDataRef$current19 === void 0 ? void 0 : _formDataRef$current19.documents) || (formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe2 = formData.DocumentsRequired) === null || _formData$DocumentsRe2 === void 0 ? void 0 : _formData$DocumentsRe2.documents) || ((_formDataRef$current20 = formDataRef.current) === null || _formDataRef$current20 === void 0 ? void 0 : (_formDataRef$current21 = _formDataRef$current20.documents) === null || _formDataRef$current21 === void 0 ? void 0 : _formDataRef$current21.documents) || (formData === null || formData === void 0 ? void 0 : (_formData$documents2 = formData.documents) === null || _formData$documents2 === void 0 ? void 0 : _formData$documents2.documents) || ((_formDataRef$current22 = formDataRef.current) === null || _formDataRef$current22 === void 0 ? void 0 : _formDataRef$current22.documents) || (formData === null || formData === void 0 ? void 0 : formData.documents) || [];
68162
+ const allCurrentDocs = ((_formDataRef$current1 = formDataRef.current) === null || _formDataRef$current1 === void 0 ? void 0 : (_formDataRef$current10 = _formDataRef$current1.DocumentsRequired) === null || _formDataRef$current10 === void 0 ? void 0 : _formDataRef$current10.documents) || (formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe2 = formData.DocumentsRequired) === null || _formData$DocumentsRe2 === void 0 ? void 0 : _formData$DocumentsRe2.documents) || ((_formDataRef$current11 = formDataRef.current) === null || _formDataRef$current11 === void 0 ? void 0 : (_formDataRef$current12 = _formDataRef$current11.documents) === null || _formDataRef$current12 === void 0 ? void 0 : _formDataRef$current12.documents) || (formData === null || formData === void 0 ? void 0 : (_formData$documents2 = formData.documents) === null || _formData$documents2 === void 0 ? void 0 : _formData$documents2.documents) || ((_formDataRef$current13 = formDataRef.current) === null || _formDataRef$current13 === void 0 ? void 0 : _formDataRef$current13.documents) || (formData === null || formData === void 0 ? void 0 : formData.documents) || [];
67379
68163
  const isRwhDocUploaded = Array.isArray(allCurrentDocs) && allCurrentDocs.some(d => isRwhDoc(d) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file)));
67380
- const isRwhInvalid = isRwhRequired && !isRwhDocUploaded;
67381
- const actualFormErrors = Object.keys((formState === null || formState === void 0 ? void 0 : formState.errors) || {}).filter(key => {
67382
- var _formState$errors;
67383
- const err = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : _formState$errors[key];
67384
- if (!err) return false;
67385
- if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
67386
- if (typeof err === "object" && Object.keys(err).length === 0) return false;
67387
- return true;
67388
- });
67389
- const hasErrors = actualFormErrors.length > 0 || isDjbEmpInvalid || isRwhInvalid;
67390
- const hasProperty = ((_formDataRef$current23 = formDataRef.current) === null || _formDataRef$current23 === void 0 ? void 0 : (_formDataRef$current24 = _formDataRef$current23.cpt) === null || _formDataRef$current24 === void 0 ? void 0 : (_formDataRef$current25 = _formDataRef$current24.details) === null || _formDataRef$current25 === void 0 ? void 0 : _formDataRef$current25.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : (_propertyDetails$Prop4 = _propertyDetails$Prop3[0]) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4.propertyId);
67391
- const canSubmitNow = !hasErrors && !!hasProperty;
68164
+ const hasProperty = ((_formDataRef$current14 = formDataRef.current) === null || _formDataRef$current14 === void 0 ? void 0 : (_formDataRef$current15 = _formDataRef$current14.cpt) === null || _formDataRef$current15 === void 0 ? void 0 : (_formDataRef$current16 = _formDataRef$current15.details) === null || _formDataRef$current16 === void 0 ? void 0 : _formDataRef$current16.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : (_propertyDetails$Prop4 = _propertyDetails$Prop3[0]) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4.propertyId);
68165
+ const canSubmitNow = !!hasProperty;
67392
68166
  setSubmitValve(prev => prev !== canSubmitNow ? canSubmitNow : prev);
67393
68167
  };
67394
68168
  const onFormSubmit = data => {
67395
- var _combinedData$cpt, _combinedData$cpt$det, _propertyDetails$Prop5, _propertyDetails$Prop6, _combinedData$cpt2, _propertyDetails$Prop7, _djbData$document3, _combinedData$Documen, _combinedData$documen, _formDataRef$current26, _formDataRef$current27, _formDataRef$current28, _formDataRef$current29, _formDataRef$current30, _combinedData$Documen2, _combinedData$documen2, _formDataRef$current31, _formDataRef$current32, _formDataRef$current33, _formDataRef$current34, _formDataRef$current35;
68169
+ var _combinedData$cpt, _combinedData$cpt$det, _propertyDetails$Prop5, _propertyDetails$Prop6, _combinedData$cpt2, _propertyDetails$Prop7, _combinedData$Documen, _combinedData$documen, _formDataRef$current17, _formDataRef$current18, _formDataRef$current19, _formDataRef$current20, _formDataRef$current21, _djbData$document2, _config$body;
67396
68170
  const combinedData = {
67397
68171
  ...formDataRef.current,
67398
68172
  ...data
@@ -67426,17 +68200,26 @@ const OLDApplication = () => {
67426
68200
  return;
67427
68201
  }
67428
68202
  }
67429
- const djbData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.djbEmployee) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
67430
- const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
68203
+ const docsFromStorage = (() => {
68204
+ try {
68205
+ const stored = sessionStorage.getItem("DISCONNECTION_EDIT_DOCS");
68206
+ return stored ? JSON.parse(stored) : [];
68207
+ } catch (e) {
68208
+ return [];
68209
+ }
68210
+ })();
68211
+ const allSubmitDocs = [...(Array.isArray(combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$Documen = combinedData.DocumentsRequired) === null || _combinedData$Documen === void 0 ? void 0 : _combinedData$Documen.documents) ? combinedData.DocumentsRequired.documents : []), ...(Array.isArray(combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$documen = combinedData.documents) === null || _combinedData$documen === void 0 ? void 0 : _combinedData$documen.documents) ? combinedData.documents.documents : []), ...(Array.isArray(combinedData === null || combinedData === void 0 ? void 0 : combinedData.documents) ? combinedData.documents : []), ...(Array.isArray((_formDataRef$current17 = formDataRef.current) === null || _formDataRef$current17 === void 0 ? void 0 : (_formDataRef$current18 = _formDataRef$current17.DocumentsRequired) === null || _formDataRef$current18 === void 0 ? void 0 : _formDataRef$current18.documents) ? formDataRef.current.DocumentsRequired.documents : []), ...(Array.isArray((_formDataRef$current19 = formDataRef.current) === null || _formDataRef$current19 === void 0 ? void 0 : (_formDataRef$current20 = _formDataRef$current19.documents) === null || _formDataRef$current20 === void 0 ? void 0 : _formDataRef$current20.documents) ? formDataRef.current.documents.documents : []), ...(Array.isArray((_formDataRef$current21 = formDataRef.current) === null || _formDataRef$current21 === void 0 ? void 0 : _formDataRef$current21.documents) ? formDataRef.current.documents : []), ...docsFromStorage];
67431
68212
  const findDjbDocInSubmit = docs => {
67432
68213
  if (!Array.isArray(docs)) return null;
67433
68214
  const found = docs.find(d => {
67434
- var _d$documentType3;
67435
- return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType3 = d.documentType) === null || _d$documentType3 === void 0 ? void 0 : _d$documentType3.includes("DJB_EMPLOYEE_ID"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file) || (d === null || d === void 0 ? void 0 : d.filestoreId));
68215
+ var _d$documentType2;
68216
+ return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType2 = d.documentType) === null || _d$documentType2 === void 0 ? void 0 : _d$documentType2.includes("DJB_EMPLOYEE_ID"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file) || (d === null || d === void 0 ? void 0 : d.filestoreId));
67436
68217
  });
67437
68218
  return found ? found.fileStoreId || found.file || found.filestoreId : null;
67438
68219
  };
67439
- const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$document3 = djbData.document) === null || _djbData$document3 === void 0 ? void 0 : _djbData$document3.fileStoreId) || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && (djbData === null || djbData === void 0 ? void 0 : djbData.document.trim()) || (djbData === null || djbData === void 0 ? void 0 : djbData.document) || findDjbDocInSubmit(combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$Documen = combinedData.DocumentsRequired) === null || _combinedData$Documen === void 0 ? void 0 : _combinedData$Documen.documents) || findDjbDocInSubmit(combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$documen = combinedData.documents) === null || _combinedData$documen === void 0 ? void 0 : _combinedData$documen.documents) || findDjbDocInSubmit(combinedData === null || combinedData === void 0 ? void 0 : combinedData.documents) || findDjbDocInSubmit((_formDataRef$current26 = formDataRef.current) === null || _formDataRef$current26 === void 0 ? void 0 : (_formDataRef$current27 = _formDataRef$current26.DocumentsRequired) === null || _formDataRef$current27 === void 0 ? void 0 : _formDataRef$current27.documents) || findDjbDocInSubmit((_formDataRef$current28 = formDataRef.current) === null || _formDataRef$current28 === void 0 ? void 0 : (_formDataRef$current29 = _formDataRef$current28.documents) === null || _formDataRef$current29 === void 0 ? void 0 : _formDataRef$current29.documents) || findDjbDocInSubmit((_formDataRef$current30 = formDataRef.current) === null || _formDataRef$current30 === void 0 ? void 0 : _formDataRef$current30.documents);
68220
+ const djbData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.djbEmployee) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
68221
+ const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
68222
+ const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$document2 = djbData.document) === null || _djbData$document2 === void 0 ? void 0 : _djbData$document2.fileStoreId) || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && (djbData === null || djbData === void 0 ? void 0 : djbData.document.trim()) || (djbData === null || djbData === void 0 ? void 0 : djbData.document) || findDjbDocInSubmit(allSubmitDocs);
67440
68223
  const isDjbEmpInvalid = isDjbEmp && (!(djbData !== null && djbData !== void 0 && djbData.employeeId) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.employeeId).trim() || !(djbData !== null && djbData !== void 0 && djbData.designation) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.designation).trim() || !djbDoc);
67441
68224
  if (isDjbEmpInvalid) {
67442
68225
  setShowToast({
@@ -67447,7 +68230,6 @@ const OLDApplication = () => {
67447
68230
  }
67448
68231
  const rwhSubmitData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.rainWaterHarvesting) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
67449
68232
  const isRwhSubmitRequired = (rwhSubmitData === null || rwhSubmitData === void 0 ? void 0 : rwhSubmitData.hasCertificate) === true || String(rwhSubmitData === null || rwhSubmitData === void 0 ? void 0 : rwhSubmitData.hasCertificate) === "true" || (rwhSubmitData === null || rwhSubmitData === void 0 ? void 0 : rwhSubmitData.isRainwaterHarvesting) === true || String(rwhSubmitData === null || rwhSubmitData === void 0 ? void 0 : rwhSubmitData.isRainwaterHarvesting) === "true";
67450
- const allSubmitDocs = (combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$Documen2 = combinedData.DocumentsRequired) === null || _combinedData$Documen2 === void 0 ? void 0 : _combinedData$Documen2.documents) || (combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$documen2 = combinedData.documents) === null || _combinedData$documen2 === void 0 ? void 0 : _combinedData$documen2.documents) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.documents) || ((_formDataRef$current31 = formDataRef.current) === null || _formDataRef$current31 === void 0 ? void 0 : (_formDataRef$current32 = _formDataRef$current31.DocumentsRequired) === null || _formDataRef$current32 === void 0 ? void 0 : _formDataRef$current32.documents) || ((_formDataRef$current33 = formDataRef.current) === null || _formDataRef$current33 === void 0 ? void 0 : (_formDataRef$current34 = _formDataRef$current33.documents) === null || _formDataRef$current34 === void 0 ? void 0 : _formDataRef$current34.documents) || ((_formDataRef$current35 = formDataRef.current) === null || _formDataRef$current35 === void 0 ? void 0 : _formDataRef$current35.documents) || [];
67451
68233
  const isRwhSubmitDocUploaded = Array.isArray(allSubmitDocs) && allSubmitDocs.some(d => isRwhDoc(d) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file)));
67452
68234
  if (isRwhSubmitRequired && !isRwhSubmitDocUploaded) {
67453
68235
  setShowToast({
@@ -67462,6 +68244,67 @@ const OLDApplication = () => {
67462
68244
  if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
67463
68245
  formDataRef.current.djbEmployee.document = djbDoc;
67464
68246
  }
68247
+ const hasBankDetailsStep = config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.some(s => {
68248
+ var _s$body2, _s$body2$;
68249
+ return ((_s$body2 = s.body) === null || _s$body2 === void 0 ? void 0 : (_s$body2$ = _s$body2[0]) === null || _s$body2$ === void 0 ? void 0 : _s$body2$.component) === "WSBankDetails";
68250
+ });
68251
+ if (hasBankDetailsStep) {
68252
+ var _combinedData$bankDet, _formDataRef$current22, _formDataRef$current23, _formDataRef$current24;
68253
+ const bankData = (combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$bankDet = combinedData.bankDetails) === null || _combinedData$bankDet === void 0 ? void 0 : _combinedData$bankDet.bankDetails) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.bankDetails) || ((_formDataRef$current22 = formDataRef.current) === null || _formDataRef$current22 === void 0 ? void 0 : (_formDataRef$current23 = _formDataRef$current22.bankDetails) === null || _formDataRef$current23 === void 0 ? void 0 : _formDataRef$current23.bankDetails) || ((_formDataRef$current24 = formDataRef.current) === null || _formDataRef$current24 === void 0 ? void 0 : _formDataRef$current24.bankDetails);
68254
+ const isBankInvalid = !(bankData !== null && bankData !== void 0 && bankData.bankName) || !String(bankData === null || bankData === void 0 ? void 0 : bankData.bankName).trim() || !(bankData !== null && bankData !== void 0 && bankData.bankBranchName || bankData !== null && bankData !== void 0 && bankData.branchName) || !String((bankData === null || bankData === void 0 ? void 0 : bankData.bankBranchName) || (bankData === null || bankData === void 0 ? void 0 : bankData.branchName)).trim() || !(bankData !== null && bankData !== void 0 && bankData.ifscCode) || !/^[A-Z]{4}0[A-Z0-9]{6}$/.test(String(bankData === null || bankData === void 0 ? void 0 : bankData.ifscCode).trim().toUpperCase()) || !(bankData !== null && bankData !== void 0 && bankData.bankAccountNumber || bankData !== null && bankData !== void 0 && bankData.accountNumber) || !/^[0-9]{1,18}$/.test(String((bankData === null || bankData === void 0 ? void 0 : bankData.bankAccountNumber) || (bankData === null || bankData === void 0 ? void 0 : bankData.accountNumber)).trim());
68255
+ if (isBankInvalid) {
68256
+ setShowToast({
68257
+ key: "error",
68258
+ message: t("ERR_BANK_DETAILS_MANDATORY") || "All Bank Details fields are mandatory"
68259
+ });
68260
+ return;
68261
+ }
68262
+ }
68263
+ const hasPhoto = allSubmitDocs.some(d => {
68264
+ var _d$documentType3;
68265
+ return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.PHOTO" || (d === null || d === void 0 ? void 0 : (_d$documentType3 = d.documentType) === null || _d$documentType3 === void 0 ? void 0 : _d$documentType3.includes("PHOTO")) || (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.APPLICANTPHOTO") && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file));
68266
+ });
68267
+ if (!hasPhoto) {
68268
+ setShowToast({
68269
+ key: "error",
68270
+ message: t("WS_PHOTO_MANDATORY") || "Applicant Photo is mandatory"
68271
+ });
68272
+ return;
68273
+ }
68274
+ const hasIdentity = allSubmitDocs.some(d => {
68275
+ var _d$documentType4, _d$documentType5;
68276
+ return ((d === null || d === void 0 ? void 0 : (_d$documentType4 = d.documentType) === null || _d$documentType4 === void 0 ? void 0 : _d$documentType4.includes("IDENTITYPROOF")) || (d === null || d === void 0 ? void 0 : (_d$documentType5 = d.documentType) === null || _d$documentType5 === void 0 ? void 0 : _d$documentType5.includes("IDENTITY"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file));
68277
+ });
68278
+ if (!hasIdentity) {
68279
+ setShowToast({
68280
+ key: "error",
68281
+ message: t("WS_IDENTITY_PROOF_MANDATORY") || "Identity Proof Document is mandatory"
68282
+ });
68283
+ return;
68284
+ }
68285
+ const hasOwnership = allSubmitDocs.some(d => {
68286
+ var _d$documentType6, _d$documentType7;
68287
+ return ((d === null || d === void 0 ? void 0 : (_d$documentType6 = d.documentType) === null || _d$documentType6 === void 0 ? void 0 : _d$documentType6.includes("ADDRESSPROOF")) || (d === null || d === void 0 ? void 0 : (_d$documentType7 = d.documentType) === null || _d$documentType7 === void 0 ? void 0 : _d$documentType7.includes("OWNERSHIP"))) && ((d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.file));
68288
+ });
68289
+ if (!hasOwnership) {
68290
+ setShowToast({
68291
+ key: "error",
68292
+ message: t("WS_OWNERSHIP_PROOF_MANDATORY") || "Ownership Proof Document is mandatory"
68293
+ });
68294
+ return;
68295
+ }
68296
+ if (combinedData !== null && combinedData !== void 0 && combinedData.bankDetails) {
68297
+ combinedData.bankDetails = {
68298
+ ...combinedData.bankDetails,
68299
+ branchName: combinedData.bankDetails.branchName || combinedData.bankDetails.bankBranchName,
68300
+ bankBranchName: combinedData.bankDetails.bankBranchName || combinedData.bankDetails.branchName,
68301
+ bankAccountNumber: combinedData.bankDetails.bankAccountNumber || combinedData.bankDetails.accountNumber,
68302
+ accountNumber: combinedData.bankDetails.accountNumber || combinedData.bankDetails.bankAccountNumber
68303
+ };
68304
+ if (formDataRef.current) {
68305
+ formDataRef.current.bankDetails = combinedData.bankDetails;
68306
+ }
68307
+ }
67465
68308
  setShowCheckPage(true);
67466
68309
  };
67467
68310
  const processSubmission = function (data) {
@@ -67509,16 +68352,16 @@ const OLDApplication = () => {
67509
68352
  if (data !== null && data !== void 0 && (_data$DocumentsRequir = data.DocumentsRequired) !== null && _data$DocumentsRequir !== void 0 && _data$DocumentsRequir.documents) {
67510
68353
  const docs = data.DocumentsRequired.documents;
67511
68354
  const identityDoc = docs.find(d => {
67512
- var _d$documentType4;
67513
- return d === null || d === void 0 ? void 0 : (_d$documentType4 = d.documentType) === null || _d$documentType4 === void 0 ? void 0 : _d$documentType4.includes("IDENTITYPROOF");
68355
+ var _d$documentType8;
68356
+ return d === null || d === void 0 ? void 0 : (_d$documentType8 = d.documentType) === null || _d$documentType8 === void 0 ? void 0 : _d$documentType8.includes("IDENTITYPROOF");
67514
68357
  });
67515
68358
  const ownershipDoc = docs.find(d => {
67516
- var _d$documentType5, _d$documentType6;
67517
- return (d === null || d === void 0 ? void 0 : (_d$documentType5 = d.documentType) === null || _d$documentType5 === void 0 ? void 0 : _d$documentType5.includes("ADDRESSPROOF")) || (d === null || d === void 0 ? void 0 : (_d$documentType6 = d.documentType) === null || _d$documentType6 === void 0 ? void 0 : _d$documentType6.includes("OWNERSHIPPROOF"));
68359
+ var _d$documentType9, _d$documentType0;
68360
+ return (d === null || d === void 0 ? void 0 : (_d$documentType9 = d.documentType) === null || _d$documentType9 === void 0 ? void 0 : _d$documentType9.includes("ADDRESSPROOF")) || (d === null || d === void 0 ? void 0 : (_d$documentType0 = d.documentType) === null || _d$documentType0 === void 0 ? void 0 : _d$documentType0.includes("OWNERSHIPPROOF"));
67518
68361
  });
67519
68362
  const otherDoc = docs.find(d => {
67520
- var _d$documentType7;
67521
- return d === null || d === void 0 ? void 0 : (_d$documentType7 = d.documentType) === null || _d$documentType7 === void 0 ? void 0 : _d$documentType7.includes("OTHERDOCUMENTS");
68363
+ var _d$documentType1;
68364
+ return d === null || d === void 0 ? void 0 : (_d$documentType1 = d.documentType) === null || _d$documentType1 === void 0 ? void 0 : _d$documentType1.includes("OTHERDOCUMENTS");
67522
68365
  });
67523
68366
  data.documents = {
67524
68367
  documents: docs,
@@ -67528,11 +68371,11 @@ const OLDApplication = () => {
67528
68371
  };
67529
68372
  }
67530
68373
  const djbDoc = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : (_data$djbEmployee$doc = _data$djbEmployee.document) === null || _data$djbEmployee$doc === void 0 ? void 0 : _data$djbEmployee$doc.fileStoreId) || typeof (data === null || data === void 0 ? void 0 : (_data$djbEmployee2 = data.djbEmployee) === null || _data$djbEmployee2 === void 0 ? void 0 : _data$djbEmployee2.document) === "string" && (data === null || data === void 0 ? void 0 : (_data$djbEmployee3 = data.djbEmployee) === null || _data$djbEmployee3 === void 0 ? void 0 : _data$djbEmployee3.document.trim()) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee4 = data.djbEmployee) === null || _data$djbEmployee4 === void 0 ? void 0 : _data$djbEmployee4.document) || (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir2 = data.DocumentsRequired) === null || _data$DocumentsRequir2 === void 0 ? void 0 : (_data$DocumentsRequir3 = _data$DocumentsRequir2.documents) === null || _data$DocumentsRequir3 === void 0 ? void 0 : (_data$DocumentsRequir4 = _data$DocumentsRequir3.find(d => {
67531
- var _d$documentType8;
67532
- return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType8 = d.documentType) === null || _d$documentType8 === void 0 ? void 0 : _d$documentType8.includes("DJB_EMPLOYEE_ID"));
68374
+ var _d$documentType10;
68375
+ return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType10 = d.documentType) === null || _d$documentType10 === void 0 ? void 0 : _d$documentType10.includes("DJB_EMPLOYEE_ID"));
67533
68376
  })) === null || _data$DocumentsRequir4 === void 0 ? void 0 : _data$DocumentsRequir4.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : (_data$documents$docum = _data$documents.documents) === null || _data$documents$docum === void 0 ? void 0 : (_data$documents$docum2 = _data$documents$docum.find(d => {
67534
- var _d$documentType9;
67535
- return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType9 = d.documentType) === null || _d$documentType9 === void 0 ? void 0 : _d$documentType9.includes("DJB_EMPLOYEE_ID"));
68377
+ var _d$documentType11;
68378
+ return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType11 = d.documentType) === null || _d$documentType11 === void 0 ? void 0 : _d$documentType11.includes("DJB_EMPLOYEE_ID"));
67536
68379
  })) === null || _data$documents$docum2 === void 0 ? void 0 : _data$documents$docum2.fileStoreId);
67537
68380
  if (djbDoc) {
67538
68381
  if (!data.djbEmployee) data.djbEmployee = {};
@@ -67608,6 +68451,16 @@ const OLDApplication = () => {
67608
68451
  isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves3 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves3 !== void 0 && _data$rainWaterHarves3.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves4 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves4 !== void 0 && _data$rainWaterHarves4.isRainwaterHarvesting)
67609
68452
  };
67610
68453
  }
68454
+ if (data !== null && data !== void 0 && data.bankDetails) {
68455
+ const normalizedBank = getNormalizedBankDetails(data);
68456
+ if (normalizedBank) {
68457
+ data.additionalDetails = {
68458
+ ...data.additionalDetails,
68459
+ ...normalizedBank,
68460
+ bankDetails: normalizedBank
68461
+ };
68462
+ }
68463
+ }
67611
68464
  if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.details)) {
67612
68465
  var _propertyDetails$Prop8;
67613
68466
  data.cpt = {