@djb25/digit-ui-module-ws 1.0.117 → 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.
package/dist/index.js CHANGED
@@ -582,6 +582,29 @@ const getSignatureDetails = data => {
582
582
  signatureFileName
583
583
  };
584
584
  };
585
+ const getNormalizedBankDetails = data => {
586
+ var _data$bankDetails, _data$additionalDetai6;
587
+ 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) || {};
588
+ const bankName = (bank === null || bank === void 0 ? void 0 : bank.bankName) || "";
589
+ const branchName = (bank === null || bank === void 0 ? void 0 : bank.branchName) || (bank === null || bank === void 0 ? void 0 : bank.bankBranchName) || "";
590
+ const ifscCode = (bank === null || bank === void 0 ? void 0 : bank.ifscCode) || "";
591
+ const accountNumber = (bank === null || bank === void 0 ? void 0 : bank.bankAccountNumber) || (bank === null || bank === void 0 ? void 0 : bank.accountNumber) || "";
592
+ const accountHolderName = (bank === null || bank === void 0 ? void 0 : bank.accountHolderName) || "";
593
+ const confirmAccountNumber = (bank === null || bank === void 0 ? void 0 : bank.confirmAccountNumber) || accountNumber || "";
594
+ if (!bankName && !branchName && !ifscCode && !accountNumber) {
595
+ return null;
596
+ }
597
+ return {
598
+ bankName,
599
+ branchName,
600
+ bankBranchName: branchName,
601
+ ifscCode,
602
+ accountNumber,
603
+ bankAccountNumber: accountNumber,
604
+ accountHolderName,
605
+ confirmAccountNumber
606
+ };
607
+ };
585
608
  const createPayloadOfWS = function (data) {
586
609
  try {
587
610
  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;
@@ -756,7 +779,10 @@ const createPayloadOfWS = function (data) {
756
779
  var _d$documentType5;
757
780
  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"));
758
781
  })) === null || _allDocuments$find === void 0 ? void 0 : _allDocuments$find.fileStoreId) || undefined,
759
- ...(data === null || data === void 0 ? void 0 : data.bankDetails),
782
+ ...(getNormalizedBankDetails(data) ? {
783
+ ...getNormalizedBankDetails(data),
784
+ bankDetails: getNormalizedBankDetails(data)
785
+ } : {}),
760
786
  ...(data === null || data === void 0 ? void 0 : data.declarationData),
761
787
  ...(data === null || data === void 0 ? void 0 : data.declaration),
762
788
  ...(signatureFileStoreId ? {
@@ -809,6 +835,10 @@ const createPayloadOfWS = function (data) {
809
835
  var _d$documentType8, _d$documentType9;
810
836
  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"));
811
837
  })) === null || _allDocuments$find3 === void 0 ? void 0 : _allDocuments$find3.remarks),
838
+ ...(getNormalizedBankDetails(data) ? {
839
+ ...getNormalizedBankDetails(data),
840
+ bankDetails: getNormalizedBankDetails(data)
841
+ } : {}),
812
842
  detailsProvidedBy: "",
813
843
  channel: isCitizen ? "CITIZEN" : "CFC_COUNTER"
814
844
  },
@@ -833,7 +863,7 @@ const createPayloadOfWS = function (data) {
833
863
  };
834
864
  const updatePayloadOfWS = function (data, type) {
835
865
  try {
836
- var _data$additionalDetai6, _data$additionalDetai7, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
866
+ var _data$additionalDetai7, _data$additionalDetai8, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
837
867
  const {
838
868
  signatureFileStoreId,
839
869
  signatureFileName
@@ -875,8 +905,8 @@ const updatePayloadOfWS = function (data, type) {
875
905
  fileName: signatureFileName
876
906
  }
877
907
  } : {}),
878
- connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.connectionType) || "Permanent",
879
- waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.waterDemandType) || {
908
+ connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.connectionType) || "Permanent",
909
+ waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai8 = data.additionalDetails) === null || _data$additionalDetai8 === void 0 ? void 0 : _data$additionalDetai8.waterDemandType) || {
880
910
  code: "NON_BULK",
881
911
  i18nKey: "WS_WATER_DEMAND_NON_BULK"
882
912
  }
@@ -1035,7 +1065,10 @@ const convertToWSUpdate = data => {
1035
1065
  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),
1036
1066
  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)
1037
1067
  } : {}),
1038
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {})
1068
+ ...(getNormalizedBankDetails(data) ? {
1069
+ ...getNormalizedBankDetails(data),
1070
+ bankDetails: getNormalizedBankDetails(data)
1071
+ } : {})
1039
1072
  },
1040
1073
  processInstance: {
1041
1074
  action: "SUBMIT_APPLICATION"
@@ -1046,7 +1079,7 @@ const convertToWSUpdate = data => {
1046
1079
  return formdata;
1047
1080
  };
1048
1081
  const convertToEditWSUpdate = data => {
1049
- var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$additionalDetai8, _data$additionalDetai9, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai0, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai1, _waterResult$addition3, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee40, _data$djbEmployee40$d, _data$djbEmployee41, _data$disability3, _data$rainWaterHarves9, _data$rainWaterHarves0, _data$rainWaterHarves1, _data$rainWaterHarves10, _data$waterConnection2, _data$additionalDetai10, _waterResult$addition4, _data$additionalDetai11, _waterResult$addition5, _data$additionalDetai12, _waterResult$addition6, _data$additionalDetai13, _waterResult$addition7, _data$waterConnection3, _data$additionalDetai14, _waterResult$addition8, _data$waterConnection4, _data$additionalDetai15, _waterResult$addition9, _data$waterConnection5, _data$additionalDetai16, _waterResult$addition0, _data$waterConnection6, _data$additionalDetai17, _waterResult$addition1, _data$additionalDetai18, _data$property3, _data$property3$addit, _data$cpt31, _data$cpt31$details, _data$cpt31$details$a, _waterResult$addition10, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
1082
+ 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;
1050
1083
  const {
1051
1084
  signatureFileStoreId,
1052
1085
  signatureFileName
@@ -1084,9 +1117,9 @@ const convertToEditWSUpdate = data => {
1084
1117
  fileName: signatureFileName
1085
1118
  }
1086
1119
  } : {}),
1087
- 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,
1088
- 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) || "",
1089
- 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) || "",
1120
+ 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,
1121
+ 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) || "",
1122
+ 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) || "",
1090
1123
  ...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
1091
1124
  ...(data === null || data === void 0 ? void 0 : data.djbEmployee),
1092
1125
  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,
@@ -1104,17 +1137,20 @@ const convertToEditWSUpdate = data => {
1104
1137
  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),
1105
1138
  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)
1106
1139
  } : {}),
1107
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {}),
1140
+ ...(getNormalizedBankDetails(data) ? {
1141
+ ...getNormalizedBankDetails(data),
1142
+ bankDetails: getNormalizedBankDetails(data)
1143
+ } : {}),
1108
1144
  ...(data !== null && data !== void 0 && (_data$waterConnection2 = data.waterConnection) !== null && _data$waterConnection2 !== void 0 && _data$waterConnection2.useDetails ? {
1109
- 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),
1110
- 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),
1111
- 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),
1112
- 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),
1113
- 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),
1114
- propertyCategory: ((_data$waterConnection4 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection4 === void 0 ? void 0 : _data$waterConnection4.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai15 = data.additionalDetails) === null || _data$additionalDetai15 === void 0 ? void 0 : _data$additionalDetai15.propertyCategory) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.propertyCategory),
1115
- propertyType: ((_data$waterConnection5 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection5 === void 0 ? void 0 : _data$waterConnection5.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai16 = data.additionalDetails) === null || _data$additionalDetai16 === void 0 ? void 0 : _data$additionalDetai16.propertyType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.propertyType),
1116
- waterConnectionUsageType: ((_data$waterConnection6 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai17 = data.additionalDetails) === null || _data$additionalDetai17 === void 0 ? void 0 : _data$additionalDetai17.waterConnectionUsageType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.waterConnectionUsageType),
1117
- numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai18 = data.additionalDetails) === null || _data$additionalDetai18 === void 0 ? void 0 : _data$additionalDetai18.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property3 = data.property) === null || _data$property3 === void 0 ? void 0 : (_data$property3$addit = _data$property3.additionalDetails) === null || _data$property3$addit === void 0 ? void 0 : _data$property3$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt31 = data.cpt) === null || _data$cpt31 === void 0 ? void 0 : (_data$cpt31$details = _data$cpt31.details) === null || _data$cpt31$details === void 0 ? void 0 : (_data$cpt31$details$a = _data$cpt31$details.additionalDetails) === null || _data$cpt31$details$a === void 0 ? void 0 : _data$cpt31$details$a.numberOfDwellingUnits) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.numberOfDwellingUnits) || ""
1145
+ 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),
1146
+ 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),
1147
+ 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),
1148
+ 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),
1149
+ 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),
1150
+ 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),
1151
+ 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),
1152
+ 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),
1153
+ 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) || ""
1118
1154
  } : {})
1119
1155
  },
1120
1156
  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,
@@ -1216,7 +1252,7 @@ const convertToEditWSUpdate = data => {
1216
1252
  return formdata;
1217
1253
  };
1218
1254
  const convertToEditSWUpdate = data => {
1219
- var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai19, _data$additionalDetai20, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai21, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai22, _SewerageResult$addit3, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee55, _data$djbEmployee55$d, _data$djbEmployee56, _data$disability4, _data$rainWaterHarves11, _data$rainWaterHarves12, _data$rainWaterHarves13, _data$rainWaterHarves14, _data$waterConnection8, _data$additionalDetai23, _SewerageResult$addit4, _data$additionalDetai24, _SewerageResult$addit5, _data$additionalDetai25, _SewerageResult$addit6, _data$additionalDetai26, _SewerageResult$addit7, _data$waterConnection9, _data$additionalDetai27, _SewerageResult$addit8, _data$waterConnection0, _data$additionalDetai28, _SewerageResult$addit9, _data$waterConnection1, _data$additionalDetai29, _SewerageResult$addit0, _data$waterConnection10, _data$additionalDetai30, _SewerageResult$addit1, _data$additionalDetai31, _data$property4, _data$property4$addit, _data$cpt33, _data$cpt33$details, _data$cpt33$details$a, _SewerageResult$addit10, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1255
+ 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;
1220
1256
  const {
1221
1257
  signatureFileStoreId,
1222
1258
  signatureFileName
@@ -1253,9 +1289,9 @@ const convertToEditSWUpdate = data => {
1253
1289
  fileName: signatureFileName
1254
1290
  }
1255
1291
  } : {}),
1256
- 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,
1257
- 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) || "",
1258
- 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) || "",
1292
+ 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,
1293
+ 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) || "",
1294
+ 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) || "",
1259
1295
  ...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
1260
1296
  ...(data === null || data === void 0 ? void 0 : data.djbEmployee),
1261
1297
  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,
@@ -1273,17 +1309,20 @@ const convertToEditSWUpdate = data => {
1273
1309
  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),
1274
1310
  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)
1275
1311
  } : {}),
1276
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {}),
1312
+ ...(getNormalizedBankDetails(data) ? {
1313
+ ...getNormalizedBankDetails(data),
1314
+ bankDetails: getNormalizedBankDetails(data)
1315
+ } : {}),
1277
1316
  ...(data !== null && data !== void 0 && (_data$waterConnection8 = data.waterConnection) !== null && _data$waterConnection8 !== void 0 && _data$waterConnection8.useDetails ? {
1278
- 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),
1279
- 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),
1280
- 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),
1281
- 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),
1282
- 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),
1283
- propertyCategory: ((_data$waterConnection0 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai28 = data.additionalDetails) === null || _data$additionalDetai28 === void 0 ? void 0 : _data$additionalDetai28.propertyCategory) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit9 = SewerageResult.additionalDetails) === null || _SewerageResult$addit9 === void 0 ? void 0 : _SewerageResult$addit9.propertyCategory),
1284
- propertyType: ((_data$waterConnection1 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection1 === void 0 ? void 0 : _data$waterConnection1.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai29 = data.additionalDetails) === null || _data$additionalDetai29 === void 0 ? void 0 : _data$additionalDetai29.propertyType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit0 = SewerageResult.additionalDetails) === null || _SewerageResult$addit0 === void 0 ? void 0 : _SewerageResult$addit0.propertyType),
1285
- waterConnectionUsageType: ((_data$waterConnection10 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection10 === void 0 ? void 0 : _data$waterConnection10.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai30 = data.additionalDetails) === null || _data$additionalDetai30 === void 0 ? void 0 : _data$additionalDetai30.waterConnectionUsageType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit1 = SewerageResult.additionalDetails) === null || _SewerageResult$addit1 === void 0 ? void 0 : _SewerageResult$addit1.waterConnectionUsageType),
1286
- numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai31 = data.additionalDetails) === null || _data$additionalDetai31 === void 0 ? void 0 : _data$additionalDetai31.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property4 = data.property) === null || _data$property4 === void 0 ? void 0 : (_data$property4$addit = _data$property4.additionalDetails) === null || _data$property4$addit === void 0 ? void 0 : _data$property4$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : (_data$cpt33$details = _data$cpt33.details) === null || _data$cpt33$details === void 0 ? void 0 : (_data$cpt33$details$a = _data$cpt33$details.additionalDetails) === null || _data$cpt33$details$a === void 0 ? void 0 : _data$cpt33$details$a.numberOfDwellingUnits) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit10 = SewerageResult.additionalDetails) === null || _SewerageResult$addit10 === void 0 ? void 0 : _SewerageResult$addit10.numberOfDwellingUnits) || ""
1317
+ 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),
1318
+ 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),
1319
+ 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),
1320
+ 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),
1321
+ 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),
1322
+ 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),
1323
+ 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),
1324
+ 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),
1325
+ 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) || ""
1287
1326
  } : {})
1288
1327
  },
1289
1328
  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,
@@ -1429,7 +1468,10 @@ const convertToSWUpdate = data => {
1429
1468
  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),
1430
1469
  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)
1431
1470
  } : {}),
1432
- ...((data === null || data === void 0 ? void 0 : data.bankDetails) !== undefined ? data === null || data === void 0 ? void 0 : data.bankDetails : {})
1471
+ ...(getNormalizedBankDetails(data) ? {
1472
+ ...getNormalizedBankDetails(data),
1473
+ bankDetails: getNormalizedBankDetails(data)
1474
+ } : {})
1433
1475
  },
1434
1476
  processInstance: {
1435
1477
  action: "SUBMIT_APPLICATION"
@@ -21690,7 +21732,7 @@ const colonyNameOptions = [{
21690
21732
  const NUMBER_PATTERN = /^\d+$/;
21691
21733
  const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
21692
21734
  const WSCalculation = _ref => {
21693
- 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;
21735
+ 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;
21694
21736
  let {
21695
21737
  config,
21696
21738
  onSelect,
@@ -21904,6 +21946,33 @@ const WSCalculation = _ref => {
21904
21946
  };
21905
21947
  const isMobile = window.Digit.Utils.browser.isMobile();
21906
21948
  const handleSubmit = () => {
21949
+ var _formValue$useDetails, _formValue$useDetails2, _formValue$useDetails3, _formValue$useDetails4;
21950
+ const plotAreaNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails = formValue.useDetails) === null || _formValue$useDetails === void 0 ? void 0 : _formValue$useDetails.plotArea);
21951
+ const builtUpAreaNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea);
21952
+ if (!isNaN(plotAreaNum) && !isNaN(builtUpAreaNum) && plotAreaNum <= builtUpAreaNum) {
21953
+ const plotTrans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
21954
+ if (setError) {
21955
+ setError(config === null || config === void 0 ? void 0 : config.key, {
21956
+ type: "custom",
21957
+ message: plotTrans && plotTrans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? plotTrans : "Plot area should always be more than built up area."
21958
+ });
21959
+ }
21960
+ return;
21961
+ }
21962
+ const usageTypeObj = formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.WaterConnectionUsageType;
21963
+ 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;
21964
+ const isNormalUsage = String(usageTypeCode || "").toUpperCase() === "NORMAL";
21965
+ const heightNum = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.heightOfTheBuilding);
21966
+ if (isNormalUsage && !isNaN(heightNum) && heightNum > 17.5) {
21967
+ const heightTrans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
21968
+ if (setError) {
21969
+ setError(config === null || config === void 0 ? void 0 : config.key, {
21970
+ type: "custom",
21971
+ message: heightTrans && heightTrans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? heightTrans : "Height of the building must be 17.5 meters or less for Normal connection."
21972
+ });
21973
+ }
21974
+ return;
21975
+ }
21907
21976
  const payload = WSCalculationPayload(formValue);
21908
21977
  calculateCharges(payload, {
21909
21978
  onSuccess: data => {
@@ -22353,6 +22422,15 @@ const WSCalculation = _ref => {
22353
22422
  pattern: {
22354
22423
  value: DECIMAL_PATTERN,
22355
22424
  message: t("ERR_INVALID_DECIMAL")
22425
+ },
22426
+ validate: value => {
22427
+ var _formValue$useDetails5;
22428
+ const plot = parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.plotArea);
22429
+ const built = parseFloat(value);
22430
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
22431
+ return t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA") || "Plot area should always be more than built up area.";
22432
+ }
22433
+ return true;
22356
22434
  }
22357
22435
  }),
22358
22436
  name: "useDetails.builtUpArea"
@@ -22368,8 +22446,8 @@ const WSCalculation = _ref => {
22368
22446
  message: t("ERR_INVALID_DECIMAL")
22369
22447
  },
22370
22448
  validate: value => {
22371
- var _formValue$useDetails, _formValue$useDetails2;
22372
- 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)) {
22449
+ var _formValue$useDetails6, _formValue$useDetails7;
22450
+ 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)) {
22373
22451
  return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
22374
22452
  }
22375
22453
  }
@@ -22377,7 +22455,7 @@ const WSCalculation = _ref => {
22377
22455
  name: "useDetails.farArea"
22378
22456
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
22379
22457
  style: errorStyle
22380
- }, 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__default.createElement(digitUiReactComponents.CardLabelError, {
22458
+ }, 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__default.createElement(digitUiReactComponents.CardLabelError, {
22381
22459
  style: {
22382
22460
  width: "70%",
22383
22461
  marginLeft: "30%",
@@ -26003,7 +26081,10 @@ const WSDocsRequired = _ref => {
26003
26081
  return /*#__PURE__*/React__default.createElement("div", {
26004
26082
  className: "employee-form-content-with-action-bar"
26005
26083
  }, /*#__PURE__*/React__default.createElement("div", {
26006
- className: "overflow-y-scroll"
26084
+ style: {
26085
+ width: "100%",
26086
+ height: "auto"
26087
+ }
26007
26088
  }, wsDocsLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
26008
26089
  id: "documents-div",
26009
26090
  className: "ws-docs-container"
@@ -26578,40 +26659,90 @@ const getCptAddress = formData => {
26578
26659
  } catch (e) {}
26579
26660
  return null;
26580
26661
  };
26581
- const getPropertyAddressString = (address, t) => {
26582
- var _address$locality, _Digit$Utils, _Digit$Utils$pt, _Digit$Utils2, _Digit$Utils2$pt;
26583
- if (!address) return "";
26584
- if (typeof address === "string") return address;
26662
+ const getPropertyAddressString = (address, t, formData) => {
26663
+ 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;
26664
+ if (!address && !formData) return "";
26665
+ if (typeof address === "string" && address.trim()) {
26666
+ 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;
26667
+ 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);
26668
+ if (!hasAssemblyZoneWard) return address.trim();
26669
+ }
26670
+ const addrObj = typeof address === "object" && address !== null ? address : {};
26671
+ 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) || {};
26672
+ const propAddr = (formData === null || formData === void 0 ? void 0 : formData.propertyAddress) || {};
26673
+ const addDetails = (formData === null || formData === void 0 ? void 0 : formData.additionalDetails) || {};
26585
26674
  const parts = [];
26586
- if (address !== null && address !== void 0 && address.doorNo) parts.push(address.doorNo);
26587
- if (address !== null && address !== void 0 && address.buildingName) parts.push(address.buildingName);
26588
- if (address !== null && address !== void 0 && address.street) parts.push(address.street);
26589
- if (address !== null && address !== void 0 && address.landmark) parts.push(address.landmark);
26590
- const tenantId = (address === null || address === void 0 ? void 0 : address.tenantId) || Digit.ULBService.getCurrentTenantId();
26591
- 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);
26675
+ 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) || "";
26676
+ if (houseNo && String(houseNo).trim() && String(houseNo).trim() !== "NA") {
26677
+ parts.push(String(houseNo).trim());
26678
+ }
26679
+ 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) || "";
26680
+ if (building && String(building).trim() && String(building).trim() !== "NA") {
26681
+ parts.push(String(building).trim());
26682
+ }
26683
+ 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) || "";
26684
+ if (street && String(street).trim() && String(street).trim() !== "NA") {
26685
+ parts.push(String(street).trim());
26686
+ }
26687
+ 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) || "";
26688
+ if (addressLine2 && String(addressLine2).trim() && String(addressLine2).trim() !== "NA") {
26689
+ parts.push(String(addressLine2).trim());
26690
+ }
26691
+ 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) || "";
26692
+ if (landmark && String(landmark).trim() && String(landmark).trim() !== "NA") {
26693
+ parts.push(String(landmark).trim());
26694
+ }
26695
+ const tenantId = (addrObj === null || addrObj === void 0 ? void 0 : addrObj.tenantId) || (cptDetailsAddr === null || cptDetailsAddr === void 0 ? void 0 : cptDetailsAddr.tenantId) || Digit.ULBService.getCurrentTenantId();
26696
+ 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);
26697
+ const localityCode = (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.code) || (typeof localityRaw === "string" ? localityRaw : null);
26592
26698
  let localityText = "";
26593
26699
  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) {
26594
26700
  const locLocale = Digit.Utils.pt.getMohallaLocale(localityCode, tenantId);
26595
26701
  localityText = t ? t(locLocale) : locLocale;
26596
26702
  }
26597
26703
  if (!localityText || localityText === localityCode) {
26598
- var _address$locality2, _address$locality3;
26599
- 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) || "";
26704
+ localityText = (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.name) || (localityRaw === null || localityRaw === void 0 ? void 0 : localityRaw.code) || "";
26705
+ }
26706
+ if (localityText && String(localityText).trim() && String(localityText).trim() !== "NA") {
26707
+ parts.push(String(localityText).trim());
26708
+ }
26709
+ 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) || "";
26710
+ 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 || "");
26711
+ if (assemblyText && assemblyText.trim() && assemblyText.trim() !== "NA") {
26712
+ parts.push(assemblyText.trim());
26713
+ }
26714
+ 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) || "";
26715
+ 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 || "");
26716
+ if (zoneText && zoneText.trim() && zoneText.trim() !== "NA") {
26717
+ parts.push(zoneText.trim());
26718
+ }
26719
+ 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) || "";
26720
+ 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 || "");
26721
+ if (wardText && wardText.trim() && wardText.trim() !== "NA") {
26722
+ parts.push(wardText.trim());
26600
26723
  }
26601
- if (localityText) parts.push(localityText);
26602
26724
  let cityText = "";
26603
26725
  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) {
26604
26726
  const cityLocale = Digit.Utils.pt.getCityLocale(tenantId);
26605
26727
  cityText = t ? t(cityLocale) : cityLocale;
26606
26728
  }
26607
26729
  if (!cityText || cityText === tenantId) {
26608
- cityText = (address === null || address === void 0 ? void 0 : address.city) || tenantId || "";
26730
+ 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 || "";
26731
+ }
26732
+ if (cityText && String(cityText).trim() && String(cityText).trim() !== "NA") {
26733
+ parts.push(String(cityText).trim());
26609
26734
  }
26610
- if (cityText) parts.push(cityText);
26611
- if (address !== null && address !== void 0 && address.pincode) {
26612
- parts.push(address.pincode);
26735
+ 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) || "";
26736
+ if (pincode && String(pincode).trim() && String(pincode).trim() !== "NA") {
26737
+ parts.push(String(pincode).trim());
26613
26738
  }
26614
- return parts.filter(Boolean).join(", ");
26739
+ const uniqueParts = [];
26740
+ parts.forEach(p => {
26741
+ if (p && !uniqueParts.some(existing => existing.toLowerCase() === p.toLowerCase())) {
26742
+ uniqueParts.push(p);
26743
+ }
26744
+ });
26745
+ return uniqueParts.join(", ");
26615
26746
  };
26616
26747
  const getCleanAddressValue = val => {
26617
26748
  if (!val) return "";
@@ -26641,7 +26772,7 @@ const WSConnectionDetails = _ref => {
26641
26772
  pathname
26642
26773
  } = reactRouterDom.useLocation();
26643
26774
  const cptAddrTop = getCptAddress(formData);
26644
- const formattedPropertyAddressTop = getPropertyAddressString(cptAddrTop, t);
26775
+ const formattedPropertyAddressTop = getPropertyAddressString(cptAddrTop, t, formData);
26645
26776
  const [connectionDetails, setConnectionDetails] = React.useState(() => {
26646
26777
  var _formData$ConnectionD;
26647
26778
  if ((formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : _formData$ConnectionD.length) > 0) {
@@ -26830,7 +26961,7 @@ const WSConnectionDetails = _ref => {
26830
26961
  }, commonProps))));
26831
26962
  };
26832
26963
  const ConnectionDetails = _props => {
26833
- 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;
26964
+ 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;
26834
26965
  const {
26835
26966
  connectionDetail,
26836
26967
  focusIndex,
@@ -26856,13 +26987,13 @@ const ConnectionDetails = _props => {
26856
26987
  userType
26857
26988
  } = _props;
26858
26989
  const cptAddr = getCptAddress(formData);
26859
- const formattedPropertyAddress = getPropertyAddressString(cptAddr, t);
26990
+ const formattedPropertyAddress = getPropertyAddressString(cptAddr, t, formData);
26860
26991
  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);
26861
26992
  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);
26862
- 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];
26993
+ 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];
26863
26994
  const ownerPermAddress = owner !== null && owner !== void 0 && owner.permanentAddress && (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) !== "NA" ? owner.permanentAddress : "";
26864
26995
  const ownerCorrAddress = owner !== null && owner !== void 0 && owner.correspondenceAddress && (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) !== "NA" ? owner.correspondenceAddress : "";
26865
- const initialAddressValue = getCleanAddressValue(rawAddressType) || getCleanAddressValue(rawCompleteAddress) || formattedPropertyAddress || ownerCorrAddress || ownerPermAddress || "";
26996
+ const initialAddressValue = formattedPropertyAddress || getCleanAddressValue(rawAddressType) || getCleanAddressValue(rawCompleteAddress) || ownerCorrAddress || ownerPermAddress || "";
26866
26997
  const {
26867
26998
  control,
26868
26999
  formState: localFormState,
@@ -26923,12 +27054,12 @@ const ConnectionDetails = _props => {
26923
27054
  const {
26924
27055
  errors
26925
27056
  } = localFormState;
26926
- const prevPropertyIdRef = React__default.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);
27057
+ const prevPropertyIdRef = React__default.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);
26927
27058
  const prevPropAddrRef = React__default.useRef(formattedPropertyAddress);
26928
27059
  const isAddressUserEditedRef = React__default.useRef(false);
26929
27060
  React.useEffect(() => {
26930
- var _formData$cpt4, _formData$cpt4$detail;
26931
- 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;
27061
+ var _formData$cpt8, _formData$cpt8$detail;
27062
+ 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;
26932
27063
  const isNewPropertySelected = Boolean(currentPropertyId && prevPropertyIdRef.current && currentPropertyId !== prevPropertyIdRef.current);
26933
27064
  if (isNewPropertySelected) {
26934
27065
  prevPropertyIdRef.current = currentPropertyId;
@@ -26940,17 +27071,17 @@ const ConnectionDetails = _props => {
26940
27071
  return;
26941
27072
  }
26942
27073
  const currentCptAddr = getCptAddress(formData);
26943
- const newFormattedAddr = getPropertyAddressString(currentCptAddr, t);
27074
+ const newFormattedAddr = getPropertyAddressString(currentCptAddr, t, formData);
26944
27075
  const currentVal = getValues("addressType");
26945
27076
  const isValOldType = typeof currentVal === "object" || currentVal === "PERMANENT" || currentVal === "CORRESPONDENCE";
26946
- if (newFormattedAddr && (isNewPropertySelected || isValOldType || currentVal === undefined || currentVal === null || currentVal === prevPropAddrRef.current)) {
27077
+ if (newFormattedAddr && (isNewPropertySelected || isValOldType || !currentVal || currentVal === prevPropAddrRef.current || !prevPropAddrRef.current)) {
26947
27078
  setValue("addressType", newFormattedAddr, {
26948
27079
  shouldValidate: true
26949
27080
  });
26950
27081
  setValue("completeAddress", newFormattedAddr);
26951
27082
  prevPropAddrRef.current = newFormattedAddr;
26952
27083
  }
26953
- }, [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]);
27084
+ }, [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]);
26954
27085
  React.useEffect(() => {
26955
27086
  if (applicationTypeList && applicationTypeList.length > 0) {
26956
27087
  const waterOption = applicationTypeList.find(opt => {
@@ -27832,10 +27963,15 @@ const WSConnectionHolderDetails = _ref => {
27832
27963
  } = reactRouterDom.useLocation();
27833
27964
  const filters = getQueryStringParams(location.search);
27834
27965
  const [connectionHolderDetails, setConnectionHolderDetails] = React.useState(() => {
27835
- if (formData !== null && formData !== void 0 && formData.ConnectionHolderDetails) {
27836
- var _formData$ConnectionH;
27966
+ var _Digit$SessionStorage, _formData$ConnectionH, _sessionDetails$;
27967
+ const sessionDetails = (_Digit$SessionStorage = Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.ConnectionHolderDetails;
27968
+ if (formData !== null && formData !== void 0 && formData.ConnectionHolderDetails && formData.ConnectionHolderDetails.length > 0 && (_formData$ConnectionH = formData.ConnectionHolderDetails[0]) !== null && _formData$ConnectionH !== void 0 && _formData$ConnectionH.name) {
27837
27969
  return [{
27838
- ...(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH = formData.ConnectionHolderDetails) === null || _formData$ConnectionH === void 0 ? void 0 : _formData$ConnectionH[0])
27970
+ ...formData.ConnectionHolderDetails[0]
27971
+ }];
27972
+ } else if (sessionDetails && sessionDetails.length > 0 && (_sessionDetails$ = sessionDetails[0]) !== null && _sessionDetails$ !== void 0 && _sessionDetails$.name) {
27973
+ return [{
27974
+ ...sessionDetails[0]
27839
27975
  }];
27840
27976
  } else {
27841
27977
  var _Digit$UserService$ge;
@@ -27905,6 +28041,17 @@ const WSConnectionHolderDetails = _ref => {
27905
28041
  }
27906
28042
  }
27907
28043
  }, [connectionHolderDetails, config === null || config === void 0 ? void 0 : config.key]);
28044
+ React.useEffect(() => {
28045
+ if (formData !== null && formData !== void 0 && formData.ConnectionHolderDetails && formData.ConnectionHolderDetails.length > 0) {
28046
+ const incoming = formData.ConnectionHolderDetails[0];
28047
+ const current = connectionHolderDetails === null || connectionHolderDetails === void 0 ? void 0 : connectionHolderDetails[0];
28048
+ if (incoming && (incoming.name || incoming.middleName || incoming.lastName) && !lodash.isEqual(current, incoming)) {
28049
+ setConnectionHolderDetails([{
28050
+ ...incoming
28051
+ }]);
28052
+ }
28053
+ }
28054
+ }, [formData === null || formData === void 0 ? void 0 : formData.ConnectionHolderDetails]);
27908
28055
  function ispagereloadingenabled(eyeclick) {
27909
28056
  var _Object$values, _formData$ConnectionH2;
27910
28057
  if ((window.location.href.includes("edit") || window.location.href.includes("modify")) && formData !== null && formData !== void 0 && formData.ConnectionHolderDetails && ((_Object$values = Object.values(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH2 = formData.ConnectionHolderDetails) === null || _formData$ConnectionH2 === void 0 ? void 0 : _formData$ConnectionH2[0])) === null || _Object$values === void 0 ? void 0 : _Object$values.length) > 1) {
@@ -28050,6 +28197,23 @@ const ConnectionDetails$1 = _props => {
28050
28197
  watsAppMobileNumber,
28051
28198
  isWatsappSameAsMobile
28052
28199
  }), [name, middleName, lastName, gender, mobileNumber, guardian, relationship, ownerType, sameAsOwnerDetails, address, uuid, emailId, watsAppMobileNumber, isWatsappSameAsMobile]);
28200
+ React.useEffect(() => {
28201
+ if (connectionHolderDetail) {
28202
+ if (connectionHolderDetail.name !== undefined && connectionHolderDetail.name !== name) setName(connectionHolderDetail.name);
28203
+ if (connectionHolderDetail.middleName !== undefined && connectionHolderDetail.middleName !== middleName) setMiddleName(connectionHolderDetail.middleName);
28204
+ if (connectionHolderDetail.lastName !== undefined && connectionHolderDetail.lastName !== lastName) setLastName(connectionHolderDetail.lastName);
28205
+ if (connectionHolderDetail.gender !== undefined && connectionHolderDetail.gender !== gender) setGender(connectionHolderDetail.gender);
28206
+ if (connectionHolderDetail.mobileNumber !== undefined && connectionHolderDetail.mobileNumber !== mobileNumber) setMobileNumber(connectionHolderDetail.mobileNumber);
28207
+ if (connectionHolderDetail.guardian !== undefined && connectionHolderDetail.guardian !== guardian) setGuardian(connectionHolderDetail.guardian);
28208
+ if (connectionHolderDetail.relationship !== undefined && connectionHolderDetail.relationship !== relationship) setRelationship(connectionHolderDetail.relationship);
28209
+ if (connectionHolderDetail.address !== undefined && connectionHolderDetail.address !== address) setAddress(connectionHolderDetail.address);
28210
+ if (connectionHolderDetail.ownerType !== undefined && connectionHolderDetail.ownerType !== ownerType) setOwnerType(connectionHolderDetail.ownerType);
28211
+ if (connectionHolderDetail.sameAsOwnerDetails !== undefined && connectionHolderDetail.sameAsOwnerDetails !== sameAsOwnerDetails) setSameAsOwnerDetails(connectionHolderDetail.sameAsOwnerDetails);
28212
+ if (connectionHolderDetail.emailId !== undefined && connectionHolderDetail.emailId !== emailId) setEmailId(connectionHolderDetail.emailId);
28213
+ if (connectionHolderDetail.watsAppMobileNumber !== undefined && connectionHolderDetail.watsAppMobileNumber !== watsAppMobileNumber) setWatsAppMobileNumber(connectionHolderDetail.watsAppMobileNumber);
28214
+ if (connectionHolderDetail.isWatsappSameAsMobile !== undefined && connectionHolderDetail.isWatsappSameAsMobile !== isWatsappSameAsMobile) setIsWatsappSameAsMobile(connectionHolderDetail.isWatsappSameAsMobile);
28215
+ }
28216
+ }, [connectionHolderDetail]);
28053
28217
  const {
28054
28218
  errors
28055
28219
  } = localFormState;
@@ -31482,8 +31646,7 @@ const WSDocumentsEmployee = _ref => {
31482
31646
  const removeEmployeeDocError = () => {
31483
31647
  var _formState$errors2, _formState$errors2$co;
31484
31648
  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;
31485
- if (!Array.isArray(type)) type = [];
31486
- if (type.includes("OWNER.DJB_EMPLOYEE_ID")) {
31649
+ if (Array.isArray(type)) {
31487
31650
  type = type.filter(e => e != "OWNER.DJB_EMPLOYEE_ID");
31488
31651
  if (!type.length) {
31489
31652
  clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
@@ -31492,8 +31655,18 @@ const WSDocumentsEmployee = _ref => {
31492
31655
  type
31493
31656
  });
31494
31657
  }
31658
+ } else {
31659
+ clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
31495
31660
  }
31496
31661
  };
31662
+ React.useEffect(() => {
31663
+ if (onSelect && Array.isArray(documents) && documents.length > 0) {
31664
+ const docPayload = {
31665
+ documents: removeDuplicateOtherDocuments(documents)
31666
+ };
31667
+ onSelect(config.key, docPayload);
31668
+ }
31669
+ }, [documents]);
31497
31670
  React.useEffect(() => {
31498
31671
  if (isDjbEmployee) {
31499
31672
  if (!hasDjbEmployeeDoc) {
@@ -31570,7 +31743,17 @@ const WSDocumentsEmployee = _ref => {
31570
31743
  const isDocRequired = isOtherDocument(doc === null || doc === void 0 ? void 0 : doc.code) ? false : doc.required;
31571
31744
  let isRequired = false;
31572
31745
  documents.map(data => {
31573
- if (isDocRequired && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
31746
+ if (isDocRequired && data !== null && data !== void 0 && data.documentType.includes(doc.code)) {
31747
+ var _doc$code, _doc$code2, _doc$code3;
31748
+ 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"));
31749
+ if (isIdOrOwn) {
31750
+ if (data !== null && data !== void 0 && data.fileStoreId && data !== null && data !== void 0 && data.documentUid && String(data.documentUid).trim()) {
31751
+ isRequired = true;
31752
+ }
31753
+ } else if (data !== null && data !== void 0 && data.fileStoreId) {
31754
+ isRequired = true;
31755
+ }
31756
+ }
31574
31757
  });
31575
31758
  if (!isRequired && isDocRequired) count = count + 1;
31576
31759
  });
@@ -32010,7 +32193,7 @@ function EmployeeIdDocumentUpload(_ref2) {
32010
32193
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null)))));
32011
32194
  }
32012
32195
  function SelectDocument$2(_ref3) {
32013
- 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;
32196
+ 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;
32014
32197
  let {
32015
32198
  t,
32016
32199
  document: doc,
@@ -32042,6 +32225,9 @@ function SelectDocument$2(_ref3) {
32042
32225
  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);
32043
32226
  })[0];
32044
32227
  const isApplicantPhoto = (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO";
32228
+ 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"));
32229
+ 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"));
32230
+ const isDocNumberMandatory = isIdentityProof || isOwnershipProof;
32045
32231
  const [selectedDocument, setSelectedDocument] = React.useState(() => {
32046
32232
  var _filteredDocument$doc, _doc$dropdownData3, _doc$dropdownData4;
32047
32233
  if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
@@ -32099,9 +32285,13 @@ function SelectDocument$2(_ref3) {
32099
32285
  const [docNumberError, setDocNumberError] = React.useState(null);
32100
32286
  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"))));
32101
32287
  const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
32102
- if (!isReq && !hasFile && (!value || !value.trim())) return null;
32103
- if (!value || !value.trim()) return null;
32104
- const trimmed = value.trim();
32288
+ const trimmed = (value || "").trim();
32289
+ if (isDocNumberMandatory || isReq) {
32290
+ if (!trimmed) return t("CORE_COMMON_REQUIRED_ERRMSG") || "This field is required";
32291
+ } else {
32292
+ if (!isReq && !hasFile && !trimmed) return null;
32293
+ if (!trimmed) return null;
32294
+ }
32105
32295
  const upperCode = (docTypeCode || "").toUpperCase();
32106
32296
  if (isOtherDocumentsRemark || upperCode.includes("OTHER_DOCUMENTS") || upperCode.includes("OTHERDOCUMENTS") || upperCode.includes("OTHER_DOCUMENT")) {
32107
32297
  return null;
@@ -32370,15 +32560,17 @@ function SelectDocument$2(_ref3) {
32370
32560
  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);
32371
32561
  }));
32372
32562
  const isCompletelyEmpty = isApplicantPhoto ? !uploadedFile : !uploadedFile && (!documentUid || !documentUid.trim()) && !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32373
- const isPartiallyFilled = isApplicantPhoto ? false : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32374
- const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded;
32375
- const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, effectiveRequired, !!uploadedFile);
32563
+ const isDocNumberMissing = isDocNumberMandatory && (!documentUid || !documentUid.trim());
32564
+ const isDocMissing = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code));
32565
+ const isPartiallyFilled = isApplicantPhoto ? false : isDocNumberMandatory ? !uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || isDocNumberMissing : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
32566
+ const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isDocNumberMandatory;
32567
+ const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || effectiveRequired, !!uploadedFile);
32376
32568
  if (!isHidden) {
32377
32569
  if (err) {
32378
32570
  addError();
32379
- } else if (isPartiallyFilled) {
32571
+ } else if (isDocNumberMissing) {
32380
32572
  addError();
32381
- } else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
32573
+ } else if (isDocMissing) {
32382
32574
  addError();
32383
32575
  } else if (rwhMissing) {
32384
32576
  addError();
@@ -32509,7 +32701,9 @@ function SelectDocument$2(_ref3) {
32509
32701
  style: {
32510
32702
  margin: 0
32511
32703
  }
32512
- }, 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__default.createElement("div", {
32704
+ }, 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__default.createElement("span", {
32705
+ className: "check-page-link-button"
32706
+ }, " *")), /*#__PURE__*/React__default.createElement("div", {
32513
32707
  className: "field"
32514
32708
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
32515
32709
  type: "text",
@@ -32524,11 +32718,15 @@ function SelectDocument$2(_ref3) {
32524
32718
  val = val.substring(0, maxLen);
32525
32719
  }
32526
32720
  setDocumentUid(val);
32527
- setDocNumberError(null);
32721
+ if (isDocNumberMandatory && !val.trim()) {
32722
+ setDocNumberError(t("CORE_COMMON_REQUIRED_ERRMSG") || "This field is required");
32723
+ } else {
32724
+ setDocNumberError(validateDocumentNumber(val, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || (doc === null || doc === void 0 ? void 0 : doc.required), !!uploadedFile));
32725
+ }
32528
32726
  }
32529
32727
  },
32530
32728
  onBlur: () => {
32531
- setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile));
32729
+ setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || (doc === null || doc === void 0 ? void 0 : doc.required), !!uploadedFile));
32532
32730
  },
32533
32731
  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"),
32534
32732
  disabled: isDocumentUidLocked,
@@ -38279,7 +38477,7 @@ const PlumberDetails$1 = _props => {
38279
38477
  };
38280
38478
 
38281
38479
  const WSBankDetails = _ref => {
38282
- var _localFormState$touch, _errors$bankName, _localFormState$touch2, _errors$bankBranchNam, _localFormState$touch3, _errors$ifscCode, _localFormState$touch4, _errors$accountNumber;
38480
+ 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;
38283
38481
  let {
38284
38482
  config,
38285
38483
  onSelect,
@@ -38292,60 +38490,143 @@ const WSBankDetails = _ref => {
38292
38490
  const {
38293
38491
  t
38294
38492
  } = reactI18next.useTranslation();
38493
+ const getInitialBankDetails = () => {
38494
+ var _formData$bankDetails, _formData$additionalD, _formData$application, _formData$WaterConnec, _formData$WaterConnec2, _formData$WaterConnec3, _formData$SewerageCon, _formData$SewerageCon2, _formData$SewerageCon3;
38495
+ 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) || {};
38496
+ return {
38497
+ bankName: (src === null || src === void 0 ? void 0 : src.bankName) || "",
38498
+ bankBranchName: (src === null || src === void 0 ? void 0 : src.bankBranchName) || (src === null || src === void 0 ? void 0 : src.branchName) || "",
38499
+ ifscCode: (src === null || src === void 0 ? void 0 : src.ifscCode) || "",
38500
+ accountNumber: (src === null || src === void 0 ? void 0 : src.accountNumber) || (src === null || src === void 0 ? void 0 : src.bankAccountNumber) || "",
38501
+ 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) || "",
38502
+ accountHolderName: (src === null || src === void 0 ? void 0 : src.accountHolderName) || ""
38503
+ };
38504
+ };
38505
+ const initialVals = getInitialBankDetails();
38506
+ const hasInitialData = Boolean(initialVals.bankName || initialVals.bankBranchName || initialVals.ifscCode || initialVals.accountNumber);
38507
+ const isInitializedRef = React__default.useRef(hasInitialData);
38508
+ 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) || "";
38509
+ const appIdRef = React__default.useRef(currentAppId);
38295
38510
  const {
38296
38511
  control,
38297
38512
  formState: localFormState,
38298
38513
  watch,
38299
38514
  trigger,
38300
38515
  getValues,
38301
- setValue
38516
+ setValue,
38517
+ reset
38302
38518
  } = reactHookForm.useForm({
38303
- defaultValues: (formData === null || formData === void 0 ? void 0 : formData.bankDetails) || {
38304
- bankName: "",
38305
- bankBranchName: "",
38306
- ifscCode: "",
38307
- accountNumber: "",
38308
- confirmAccountNumber: "",
38309
- accountHolderName: ""
38310
- }
38519
+ defaultValues: initialVals,
38520
+ mode: "all"
38311
38521
  });
38312
38522
  const formValue = watch();
38313
38523
  const {
38314
38524
  errors
38315
38525
  } = localFormState;
38526
+ const onSelectRef = React__default.useRef(onSelect);
38316
38527
  React.useEffect(() => {
38317
- if (userType === "employee") {
38318
- const isDifferent = !lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData.bankDetails, formValue);
38319
- if (isDifferent) {
38320
- const timer = setTimeout(() => {
38321
- onSelect(config === null || config === void 0 ? void 0 : config.key, {
38322
- ...formValue
38323
- });
38324
- }, 200);
38325
- return () => clearTimeout(timer);
38528
+ onSelectRef.current = onSelect;
38529
+ }, [onSelect]);
38530
+ const getValidationErrors = values => {
38531
+ const errs = {};
38532
+ const bankName = String((values === null || values === void 0 ? void 0 : values.bankName) || "").trim();
38533
+ const bankBranchName = String((values === null || values === void 0 ? void 0 : values.bankBranchName) || (values === null || values === void 0 ? void 0 : values.branchName) || "").trim();
38534
+ const ifscCode = String((values === null || values === void 0 ? void 0 : values.ifscCode) || "").trim().toUpperCase();
38535
+ const accountNumber = String((values === null || values === void 0 ? void 0 : values.accountNumber) || (values === null || values === void 0 ? void 0 : values.bankAccountNumber) || "").trim();
38536
+ if (!bankName) {
38537
+ errs.bankName = t("CORE_COMMON_REQUIRED_ERRMSG");
38538
+ }
38539
+ if (!bankBranchName) {
38540
+ errs.bankBranchName = t("CORE_COMMON_REQUIRED_ERRMSG");
38541
+ }
38542
+ if (!ifscCode) {
38543
+ errs.ifscCode = t("CORE_COMMON_REQUIRED_ERRMSG");
38544
+ } else if (!/^[A-Z]{4}0[A-Z0-9]{6}$/.test(ifscCode)) {
38545
+ errs.ifscCode = t("ERR_INVALID_IFSC_CODE");
38546
+ }
38547
+ if (!accountNumber) {
38548
+ errs.accountNumber = t("CORE_COMMON_REQUIRED_ERRMSG");
38549
+ } else if (!/^[0-9]{1,18}$/.test(accountNumber)) {
38550
+ errs.accountNumber = t("ERR_INVALID_BA_ACCOUNT_NUMBER");
38551
+ }
38552
+ return errs;
38553
+ };
38554
+ const bankErrors = getValidationErrors(formValue);
38555
+ const hasBankErrors = Object.keys(bankErrors).length > 0;
38556
+ React.useEffect(() => {
38557
+ var _formData$WaterConnec7, _formData$WaterConnec8, _formData$WaterConnec9;
38558
+ 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) || "";
38559
+ const isDifferentApp = Boolean(latestAppId && appIdRef.current && latestAppId !== appIdRef.current);
38560
+ if (isDifferentApp) {
38561
+ appIdRef.current = latestAppId;
38562
+ const initial = getInitialBankDetails();
38563
+ reset(initial);
38564
+ isInitializedRef.current = true;
38565
+ return;
38566
+ }
38567
+ if (!isInitializedRef.current) {
38568
+ const initial = getInitialBankDetails();
38569
+ if (initial.bankName || initial.bankBranchName || initial.ifscCode || initial.accountNumber) {
38570
+ setValue("bankName", initial.bankName);
38571
+ setValue("bankBranchName", initial.bankBranchName);
38572
+ setValue("ifscCode", initial.ifscCode);
38573
+ setValue("accountNumber", initial.accountNumber);
38574
+ setValue("confirmAccountNumber", initial.confirmAccountNumber);
38575
+ setValue("accountHolderName", initial.accountHolderName);
38576
+ isInitializedRef.current = true;
38326
38577
  }
38327
38578
  }
38328
- }, [formValue, userType]);
38579
+ }, [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]);
38329
38580
  React.useEffect(() => {
38330
- var _formState$errors, _formState$errors$con, _formState$errors2;
38331
- 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)) {
38332
- if (setError) setError(config.key, {
38333
- type: errors
38581
+ var _formData$bankDetails2;
38582
+ 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) || {};
38583
+ 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) || "");
38584
+ if (isDifferent && onSelectRef.current) {
38585
+ const timer = setTimeout(() => {
38586
+ const normalized = {
38587
+ bankName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankName) || "",
38588
+ branchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38589
+ bankBranchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38590
+ ifscCode: (formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode) || "",
38591
+ accountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || "",
38592
+ bankAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || "",
38593
+ confirmAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.confirmAccountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || "",
38594
+ accountHolderName: (formValue === null || formValue === void 0 ? void 0 : formValue.accountHolderName) || ""
38595
+ };
38596
+ onSelectRef.current((config === null || config === void 0 ? void 0 : config.key) || "bankDetails", normalized);
38597
+ }, 150);
38598
+ return () => clearTimeout(timer);
38599
+ }
38600
+ }, [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]);
38601
+ React.useEffect(() => {
38602
+ const configKey = (config === null || config === void 0 ? void 0 : config.key) || "bankDetails";
38603
+ if (hasBankErrors) {
38604
+ if (setError) setError(configKey, {
38605
+ type: "required",
38606
+ message: "CORE_COMMON_REQUIRED_ERRMSG"
38334
38607
  });
38335
- } else if (!Object.keys(errors).length && formState !== null && formState !== void 0 && (_formState$errors2 = formState.errors) !== null && _formState$errors2 !== void 0 && _formState$errors2[config.key]) {
38336
- if (clearErrors) clearErrors(config.key);
38608
+ } else {
38609
+ if (clearErrors) clearErrors(configKey);
38337
38610
  }
38338
- }, [errors]);
38611
+ }, [hasBankErrors, config === null || config === void 0 ? void 0 : config.key]);
38612
+ const lastFetchedIfscRef = React__default.useRef((initialVals === null || initialVals === void 0 ? void 0 : initialVals.ifscCode) || "");
38339
38613
  React.useEffect(() => {
38340
38614
  const ifsc = formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode;
38341
- if (ifsc && ifsc.length === 11) {
38615
+ if (ifsc && ifsc.length === 11 && ifsc !== lastFetchedIfscRef.current) {
38616
+ lastFetchedIfscRef.current = ifsc;
38342
38617
  fetch(`https://ifsc.razorpay.com/${ifsc}`).then(response => {
38343
38618
  if (response.ok) return response.json();
38344
38619
  throw new Error("Invalid IFSC");
38345
38620
  }).then(data => {
38346
38621
  if (data) {
38347
- setValue("bankName", data.BANK);
38348
- setValue("bankBranchName", data.BRANCH);
38622
+ if (data.BANK) setValue("bankName", data.BANK, {
38623
+ shouldValidate: true,
38624
+ shouldDirty: true
38625
+ });
38626
+ if (data.BRANCH) setValue("bankBranchName", data.BRANCH, {
38627
+ shouldValidate: true,
38628
+ shouldDirty: true
38629
+ });
38349
38630
  }
38350
38631
  }).catch(err => {
38351
38632
  console.error("IFSC lookup failed", err);
@@ -38358,16 +38639,48 @@ const WSBankDetails = _ref => {
38358
38639
  fontSize: "12px",
38359
38640
  marginTop: "-21px"
38360
38641
  };
38642
+ const triggerParentSync = () => {
38643
+ if (onSelectRef.current) {
38644
+ const current = getValues();
38645
+ const normalized = {
38646
+ bankName: (current === null || current === void 0 ? void 0 : current.bankName) || "",
38647
+ branchName: (current === null || current === void 0 ? void 0 : current.bankBranchName) || (current === null || current === void 0 ? void 0 : current.branchName) || "",
38648
+ bankBranchName: (current === null || current === void 0 ? void 0 : current.bankBranchName) || (current === null || current === void 0 ? void 0 : current.branchName) || "",
38649
+ ifscCode: (current === null || current === void 0 ? void 0 : current.ifscCode) || "",
38650
+ accountNumber: (current === null || current === void 0 ? void 0 : current.accountNumber) || (current === null || current === void 0 ? void 0 : current.bankAccountNumber) || "",
38651
+ bankAccountNumber: (current === null || current === void 0 ? void 0 : current.accountNumber) || (current === null || current === void 0 ? void 0 : current.bankAccountNumber) || "",
38652
+ confirmAccountNumber: (current === null || current === void 0 ? void 0 : current.confirmAccountNumber) || (current === null || current === void 0 ? void 0 : current.accountNumber) || "",
38653
+ accountHolderName: (current === null || current === void 0 ? void 0 : current.accountHolderName) || ""
38654
+ };
38655
+ onSelectRef.current((config === null || config === void 0 ? void 0 : config.key) || "bankDetails", normalized);
38656
+ }
38657
+ };
38361
38658
  const goNext = () => {
38362
- onSelect(config.key, formValue);
38659
+ const errs = getValidationErrors(formValue);
38660
+ if (Object.keys(errs).length > 0) {
38661
+ trigger(["bankName", "bankBranchName", "ifscCode", "accountNumber"]);
38662
+ return;
38663
+ }
38664
+ const normalized = {
38665
+ ...formValue,
38666
+ branchName: (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || "",
38667
+ bankBranchName: (formValue === null || formValue === void 0 ? void 0 : formValue.bankBranchName) || (formValue === null || formValue === void 0 ? void 0 : formValue.branchName) || "",
38668
+ bankAccountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || "",
38669
+ accountNumber: (formValue === null || formValue === void 0 ? void 0 : formValue.accountNumber) || (formValue === null || formValue === void 0 ? void 0 : formValue.bankAccountNumber) || ""
38670
+ };
38671
+ onSelect(config.key, normalized);
38363
38672
  };
38364
- const onSkip = () => onSelect();
38365
38673
  const FormContent = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
38366
38674
  title: t("WS_BANK_DETAILS"),
38367
38675
  defaultOpen: true
38368
38676
  }, /*#__PURE__*/React__default.createElement("div", {
38369
38677
  className: "formcomposer-section-grid"
38370
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NAME_OF_BANK") + " *"), /*#__PURE__*/React__default.createElement("div", {
38678
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NAME_OF_BANK"), " ", /*#__PURE__*/React__default.createElement("span", {
38679
+ className: "astericColor",
38680
+ style: {
38681
+ color: "#d4351c"
38682
+ }
38683
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
38371
38684
  className: "field"
38372
38685
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
38373
38686
  control: control,
@@ -38378,12 +38691,24 @@ const WSBankDetails = _ref => {
38378
38691
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
38379
38692
  value: props.value,
38380
38693
  placeholder: t("WS_NAME_OF_BANK_PLACEHOLDER"),
38381
- onChange: e => props.onChange(e.target.value),
38382
- onBlur: props.onBlur
38694
+ onChange: e => {
38695
+ props.onChange(e.target.value);
38696
+ trigger("bankName");
38697
+ },
38698
+ onBlur: e => {
38699
+ props.onBlur(e);
38700
+ trigger("bankName");
38701
+ triggerParentSync();
38702
+ }
38383
38703
  })
38384
- }))), (_localFormState$touch = localFormState.touched) !== null && _localFormState$touch !== void 0 && _localFormState$touch.bankName ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
38704
+ }))), ((_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__default.createElement(digitUiReactComponents.CardLabelError, {
38385
38705
  style: errorStyle
38386
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankName = errors.bankName) === null || _errors$bankName === void 0 ? void 0 : _errors$bankName.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NAME_OF_BRANCH") + " *"), /*#__PURE__*/React__default.createElement("div", {
38706
+ }, " ", (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__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NAME_OF_BRANCH"), " ", /*#__PURE__*/React__default.createElement("span", {
38707
+ className: "astericColor",
38708
+ style: {
38709
+ color: "#d4351c"
38710
+ }
38711
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
38387
38712
  className: "field"
38388
38713
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
38389
38714
  control: control,
@@ -38394,12 +38719,24 @@ const WSBankDetails = _ref => {
38394
38719
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
38395
38720
  value: props.value,
38396
38721
  placeholder: t("WS_NAME_OF_BRANCH_PLACEHOLDER"),
38397
- onChange: e => props.onChange(e.target.value),
38398
- onBlur: props.onBlur
38722
+ onChange: e => {
38723
+ props.onChange(e.target.value);
38724
+ trigger("bankBranchName");
38725
+ },
38726
+ onBlur: e => {
38727
+ props.onBlur(e);
38728
+ trigger("bankBranchName");
38729
+ triggerParentSync();
38730
+ }
38399
38731
  })
38400
- }))), (_localFormState$touch2 = localFormState.touched) !== null && _localFormState$touch2 !== void 0 && _localFormState$touch2.bankBranchName ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
38732
+ }))), ((_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__default.createElement(digitUiReactComponents.CardLabelError, {
38401
38733
  style: errorStyle
38402
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankBranchNam = errors.bankBranchName) === null || _errors$bankBranchNam === void 0 ? void 0 : _errors$bankBranchNam.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_IFSC_CODE") + " *"), /*#__PURE__*/React__default.createElement("div", {
38734
+ }, " ", (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__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_IFSC_CODE"), " ", /*#__PURE__*/React__default.createElement("span", {
38735
+ className: "astericColor",
38736
+ style: {
38737
+ color: "#d4351c"
38738
+ }
38739
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
38403
38740
  className: "field"
38404
38741
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
38405
38742
  control: control,
@@ -38414,12 +38751,27 @@ const WSBankDetails = _ref => {
38414
38751
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
38415
38752
  value: props.value,
38416
38753
  placeholder: t("WS_IFSC_CODE_PLACEHOLDER"),
38417
- onChange: e => props.onChange(e.target.value.toUpperCase()),
38418
- onBlur: props.onBlur
38754
+ onChange: e => {
38755
+ let val = e.target.value.toUpperCase();
38756
+ if (val.length > 11) val = val.slice(0, 11);
38757
+ props.onChange(val);
38758
+ trigger("ifscCode");
38759
+ },
38760
+ onBlur: e => {
38761
+ props.onBlur(e);
38762
+ trigger("ifscCode");
38763
+ triggerParentSync();
38764
+ },
38765
+ maxLength: 11
38419
38766
  })
38420
- }))), (_localFormState$touch3 = localFormState.touched) !== null && _localFormState$touch3 !== void 0 && _localFormState$touch3.ifscCode ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
38767
+ }))), ((_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__default.createElement(digitUiReactComponents.CardLabelError, {
38421
38768
  style: errorStyle
38422
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$ifscCode = errors.ifscCode) === null || _errors$ifscCode === void 0 ? void 0 : _errors$ifscCode.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_BANK_ACCOUNT_NO") + " *"), /*#__PURE__*/React__default.createElement("div", {
38769
+ }, " ", (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__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_BANK_ACCOUNT_NO"), " ", /*#__PURE__*/React__default.createElement("span", {
38770
+ className: "astericColor",
38771
+ style: {
38772
+ color: "#d4351c"
38773
+ }
38774
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
38423
38775
  className: "field"
38424
38776
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
38425
38777
  control: control,
@@ -38440,13 +38792,19 @@ const WSBankDetails = _ref => {
38440
38792
  value = value.slice(0, 18);
38441
38793
  }
38442
38794
  props.onChange(value);
38795
+ setValue("confirmAccountNumber", value);
38796
+ trigger("accountNumber");
38797
+ },
38798
+ onBlur: e => {
38799
+ props.onBlur(e);
38800
+ trigger("accountNumber");
38801
+ triggerParentSync();
38443
38802
  },
38444
- onBlur: props.onBlur,
38445
38803
  maxLength: 18
38446
38804
  })
38447
- }))), (_localFormState$touch4 = localFormState.touched) !== null && _localFormState$touch4 !== void 0 && _localFormState$touch4.accountNumber ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
38805
+ }))), ((_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__default.createElement(digitUiReactComponents.CardLabelError, {
38448
38806
  style: errorStyle
38449
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$accountNumber = errors.accountNumber) === null || _errors$accountNumber === void 0 ? void 0 : _errors$accountNumber.message) : null), /*#__PURE__*/React__default.createElement("div", {
38807
+ }, " ", (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__default.createElement("div", {
38450
38808
  style: {
38451
38809
  display: "none"
38452
38810
  }
@@ -38470,8 +38828,7 @@ const WSBankDetails = _ref => {
38470
38828
  t: t,
38471
38829
  config: config,
38472
38830
  onSelect: goNext,
38473
- onSkip: onSkip,
38474
- isDisabled: Object.keys(errors).length > 0
38831
+ isDisabled: hasBankErrors || Object.keys(errors).length > 0
38475
38832
  }, /*#__PURE__*/React__default.createElement("div", {
38476
38833
  style: {
38477
38834
  marginTop: "-30px",
@@ -38500,6 +38857,7 @@ const WSDeclaration = _ref => {
38500
38857
  const initialFsId = (formData === null || formData === void 0 ? void 0 : (_formData$declaration = formData.declarationData) === null || _formData$declaration === void 0 ? void 0 : _formData$declaration.signatureFileStoreId) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration2 = formData.declaration) === null || _formData$declaration2 === void 0 ? void 0 : _formData$declaration2.signatureFileStoreId) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration3 = formData.declarationData) === null || _formData$declaration3 === void 0 ? void 0 : (_formData$declaration4 = _formData$declaration3.signatureFile) === null || _formData$declaration4 === void 0 ? void 0 : _formData$declaration4.fileStoreId) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration5 = formData.declaration) === null || _formData$declaration5 === void 0 ? void 0 : (_formData$declaration6 = _formData$declaration5.signatureFile) === null || _formData$declaration6 === void 0 ? void 0 : _formData$declaration6.fileStoreId) || (typeof (formData === null || formData === void 0 ? void 0 : (_formData$declaration7 = formData.declarationData) === null || _formData$declaration7 === void 0 ? void 0 : _formData$declaration7.signatureFile) === "string" ? formData === null || formData === void 0 ? void 0 : (_formData$declaration8 = formData.declarationData) === null || _formData$declaration8 === void 0 ? void 0 : _formData$declaration8.signatureFile : null) || (typeof (formData === null || formData === void 0 ? void 0 : (_formData$declaration9 = formData.declaration) === null || _formData$declaration9 === void 0 ? void 0 : _formData$declaration9.signatureFile) === "string" ? formData === null || formData === void 0 ? void 0 : (_formData$declaration0 = formData.declaration) === null || _formData$declaration0 === void 0 ? void 0 : _formData$declaration0.signatureFile : null) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.signatureFileStoreId) || null;
38501
38858
  const initialFileName = (formData === null || formData === void 0 ? void 0 : (_formData$declaration1 = formData.declarationData) === null || _formData$declaration1 === void 0 ? void 0 : _formData$declaration1.signatureFileName) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration10 = formData.declaration) === null || _formData$declaration10 === void 0 ? void 0 : _formData$declaration10.signatureFileName) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration11 = formData.declarationData) === null || _formData$declaration11 === void 0 ? void 0 : (_formData$declaration12 = _formData$declaration11.signatureFile) === null || _formData$declaration12 === void 0 ? void 0 : _formData$declaration12.fileName) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration13 = formData.declaration) === null || _formData$declaration13 === void 0 ? void 0 : (_formData$declaration14 = _formData$declaration13.signatureFile) === null || _formData$declaration14 === void 0 ? void 0 : _formData$declaration14.fileName) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration15 = formData.declarationData) === null || _formData$declaration15 === void 0 ? void 0 : (_formData$declaration16 = _formData$declaration15.signatureFile) === null || _formData$declaration16 === void 0 ? void 0 : _formData$declaration16.name) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration17 = formData.declaration) === null || _formData$declaration17 === void 0 ? void 0 : (_formData$declaration18 = _formData$declaration17.signatureFile) === null || _formData$declaration18 === void 0 ? void 0 : _formData$declaration18.name) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD2 = formData.additionalDetails) === null || _formData$additionalD2 === void 0 ? void 0 : _formData$additionalD2.signatureFileName) || (initialFsId ? "signature.png" : "");
38502
38859
  const [signatureFileStoreId, setSignatureFileStoreId] = React.useState(initialFsId);
38860
+ const [localFile, setLocalFile] = React.useState(null);
38503
38861
  const [signatureFile, setSignatureFile] = React.useState((formData === null || formData === void 0 ? void 0 : (_formData$declaration19 = formData.declarationData) === null || _formData$declaration19 === void 0 ? void 0 : _formData$declaration19.signatureFile) || (formData === null || formData === void 0 ? void 0 : (_formData$declaration20 = formData.declaration) === null || _formData$declaration20 === void 0 ? void 0 : _formData$declaration20.signatureFile) || (initialFsId ? {
38504
38862
  fileStoreId: initialFsId,
38505
38863
  fileName: initialFileName
@@ -38574,11 +38932,8 @@ const WSDeclaration = _ref => {
38574
38932
  } : null
38575
38933
  };
38576
38934
  if (!lodash.isEqual(lastSentValue.current, currentValues)) {
38577
- const timer = setTimeout(() => {
38578
- lastSentValue.current = currentValues;
38579
- onSelect(config === null || config === void 0 ? void 0 : config.key, currentValues);
38580
- }, 200);
38581
- return () => clearTimeout(timer);
38935
+ lastSentValue.current = currentValues;
38936
+ onSelect(config === null || config === void 0 ? void 0 : config.key, currentValues);
38582
38937
  }
38583
38938
  }, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
38584
38939
  const onUploadSignature = function (e) {
@@ -38589,6 +38944,7 @@ const WSDeclaration = _ref => {
38589
38944
  if (file) {
38590
38945
  const _temp2 = function () {
38591
38946
  if (file.size >= 5242880) {} else {
38947
+ setLocalFile(file);
38592
38948
  const _temp = _catch(function () {
38593
38949
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
38594
38950
  var _response$data, _response$data$files;
@@ -38601,13 +38957,23 @@ const WSDeclaration = _ref => {
38601
38957
  };
38602
38958
  setSignatureFileStoreId(fsId);
38603
38959
  setSignatureFile(sigObj);
38604
- setValue("signatureFileStoreId", fsId);
38605
- setValue("signatureFile", sigObj);
38606
- setValue("signatureFileName", file.name);
38960
+ setValue("signatureFileStoreId", fsId, {
38961
+ shouldDirty: true,
38962
+ shouldValidate: true
38963
+ });
38964
+ setValue("signatureFile", sigObj, {
38965
+ shouldDirty: true,
38966
+ shouldValidate: true
38967
+ });
38968
+ setValue("signatureFileName", file.name, {
38969
+ shouldDirty: true,
38970
+ shouldValidate: true
38971
+ });
38607
38972
  }
38608
38973
  });
38609
38974
  }, function (err) {
38610
38975
  console.error("Signature upload failed", err);
38976
+ setLocalFile(null);
38611
38977
  });
38612
38978
  if (_temp && _temp.then) return _temp.then(function () {});
38613
38979
  }
@@ -38697,12 +39063,23 @@ const WSDeclaration = _ref => {
38697
39063
  })
38698
39064
  })), /*#__PURE__*/React__default.createElement("div", {
38699
39065
  className: "formcomposer-section-grid"
38700
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_UPLOAD_SIGNATURE_FILE")), /*#__PURE__*/React__default.createElement("div", {
39066
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_UPLOAD_SIGNATURE_FILE"), " ", /*#__PURE__*/React__default.createElement("span", {
39067
+ style: {
39068
+ color: "red"
39069
+ }
39070
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
38701
39071
  className: "field",
39072
+ style: {
39073
+ display: "flex",
39074
+ flexDirection: "column",
39075
+ gap: "6px"
39076
+ }
39077
+ }, /*#__PURE__*/React__default.createElement("div", {
38702
39078
  style: {
38703
39079
  display: "flex",
38704
39080
  gap: "10px",
38705
- alignItems: "center"
39081
+ alignItems: "center",
39082
+ width: "100%"
38706
39083
  }
38707
39084
  }, /*#__PURE__*/React__default.createElement("div", {
38708
39085
  style: {
@@ -38711,10 +39088,21 @@ const WSDeclaration = _ref => {
38711
39088
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
38712
39089
  onUpload: onUploadSignature,
38713
39090
  onDelete: () => {
39091
+ setLocalFile(null);
38714
39092
  setSignatureFile(null);
38715
39093
  setSignatureFileStoreId(null);
38716
- setValue("signatureFile", null);
38717
- setValue("signatureFileStoreId", null);
39094
+ setValue("signatureFile", null, {
39095
+ shouldDirty: true,
39096
+ shouldValidate: true
39097
+ });
39098
+ setValue("signatureFileStoreId", null, {
39099
+ shouldDirty: true,
39100
+ shouldValidate: true
39101
+ });
39102
+ setValue("signatureFileName", "", {
39103
+ shouldDirty: true,
39104
+ shouldValidate: true
39105
+ });
38718
39106
  },
38719
39107
  id: "ws-declaration-signature",
38720
39108
  message: signatureFileStoreId ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
@@ -38723,22 +39111,38 @@ const WSDeclaration = _ref => {
38723
39111
  },
38724
39112
  buttonType: "button",
38725
39113
  accept: "image/*, .pdf, .png, .jpeg, .jpg",
38726
- uploadedFiles: signatureFileStoreId ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Signature", {
39114
+ uploadedFiles: signatureFileStoreId && !localFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || (signatureFile === null || signatureFile === void 0 ? void 0 : signatureFile.fileName) || (signatureFile === null || signatureFile === void 0 ? void 0 : signatureFile.name) || "signature.png", {
38727
39115
  fileStoreId: signatureFileStoreId
38728
39116
  }]] : undefined,
38729
39117
  removeTargetedFile: () => {
39118
+ setLocalFile(null);
38730
39119
  setSignatureFile(null);
38731
39120
  setSignatureFileStoreId(null);
38732
- setValue("signatureFile", null);
38733
- setValue("signatureFileStoreId", null);
38734
- setValue("signatureFileName", "");
39121
+ setValue("signatureFile", null, {
39122
+ shouldDirty: true,
39123
+ shouldValidate: true
39124
+ });
39125
+ setValue("signatureFileStoreId", null, {
39126
+ shouldDirty: true,
39127
+ shouldValidate: true
39128
+ });
39129
+ setValue("signatureFileName", "", {
39130
+ shouldDirty: true,
39131
+ shouldValidate: true
39132
+ });
38735
39133
  }
38736
39134
  })), signatureFileStoreId && /*#__PURE__*/React__default.createElement("div", {
38737
39135
  onClick: viewDocument,
38738
39136
  style: {
38739
39137
  cursor: "pointer"
38740
39138
  }
38741
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null))))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
39139
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null))), !signatureFileStoreId && (formValue === null || formValue === void 0 ? void 0 : formValue.agree) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
39140
+ style: {
39141
+ color: "red",
39142
+ fontSize: "12px",
39143
+ marginTop: "4px"
39144
+ }
39145
+ }, t("WS_SIGNATURE_MANDATORY_ERROR") || "Signature is mandatory to submit application")))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
38742
39146
  open: showDocModal,
38743
39147
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
38744
39148
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -38796,7 +39200,7 @@ const WSDeclaration = _ref => {
38796
39200
  };
38797
39201
 
38798
39202
  const WSDjbEmployee = _ref => {
38799
- var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch, _formValue$employeeId, _formValue$employeeId2, _localFormState$touch2, _formValue$designatio, _formValue$designatio2, _formData$dueVerifica;
39203
+ var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch, _localFormState$error, _localFormState$error2, _localFormState$error3, _localFormState$error4, _localFormState$touch2, _formValue$designatio, _formValue$designatio2, _formData$dueVerifica;
38800
39204
  let {
38801
39205
  config,
38802
39206
  onSelect,
@@ -38846,8 +39250,11 @@ const WSDjbEmployee = _ref => {
38846
39250
  const errs = {};
38847
39251
  const isEmp = (values === null || values === void 0 ? void 0 : values.isDjbEmployee) === true || String(values === null || values === void 0 ? void 0 : values.isDjbEmployee) === "true";
38848
39252
  if (isEmp) {
38849
- if (!(values !== null && values !== void 0 && values.employeeId) || !String(values === null || values === void 0 ? void 0 : values.employeeId).trim()) {
39253
+ const empId = String((values === null || values === void 0 ? void 0 : values.employeeId) || "").trim();
39254
+ if (!empId) {
38850
39255
  errs.employeeId = t("CORE_COMMON_REQUIRED_ERRMSG");
39256
+ } else if (!/^\d{8}$/.test(empId)) {
39257
+ errs.employeeId = t("WS_EMPLOYEE_ID_8_DIGITS_ERRMSG") || "Employee ID must be exactly 8 digits (numbers only)";
38851
39258
  }
38852
39259
  if (!(values !== null && values !== void 0 && values.designation) || !String(values === null || values === void 0 ? void 0 : values.designation).trim()) {
38853
39260
  errs.designation = t("CORE_COMMON_REQUIRED_ERRMSG");
@@ -38923,12 +39330,9 @@ const WSDjbEmployee = _ref => {
38923
39330
  message: "CORE_COMMON_REQUIRED_ERRMSG"
38924
39331
  });
38925
39332
  } else {
38926
- var _formState$errors;
38927
- if (formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && _formState$errors[configKey] && clearErrors) {
38928
- clearErrors(configKey);
38929
- }
39333
+ if (clearErrors) clearErrors(configKey);
38930
39334
  }
38931
- }, [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]);
39335
+ }, [hasDjbErrors, config === null || config === void 0 ? void 0 : config.key]);
38932
39336
  const goNext = () => {
38933
39337
  onSelect(config.key, formValue);
38934
39338
  };
@@ -38988,12 +39392,25 @@ const WSDjbEmployee = _ref => {
38988
39392
  control: control,
38989
39393
  name: "employeeId",
38990
39394
  rules: {
38991
- required: isDjbEmployee ? t("CORE_COMMON_REQUIRED_ERRMSG") : false
39395
+ required: isDjbEmployee ? t("CORE_COMMON_REQUIRED_ERRMSG") : false,
39396
+ validate: val => {
39397
+ if (!isDjbEmployee) return true;
39398
+ const trimmed = String(val || "").trim();
39399
+ if (!trimmed) return t("CORE_COMMON_REQUIRED_ERRMSG");
39400
+ if (!/^\d{8}$/.test(trimmed)) {
39401
+ return t("WS_EMPLOYEE_ID_8_DIGITS_ERRMSG") || "Employee ID must be exactly 8 digits (numbers only)";
39402
+ }
39403
+ return true;
39404
+ }
38992
39405
  },
38993
39406
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
39407
+ type: "text",
38994
39408
  value: props.value,
39409
+ maxlength: 8,
39410
+ maxLength: 8,
38995
39411
  onChange: e => {
38996
- props.onChange(e.target.value);
39412
+ const cleanVal = e.target.value.replace(/\D/g, "").slice(0, 8);
39413
+ props.onChange(cleanVal);
38997
39414
  trigger("employeeId");
38998
39415
  },
38999
39416
  onBlur: e => {
@@ -39002,9 +39419,9 @@ const WSDjbEmployee = _ref => {
39002
39419
  },
39003
39420
  placeholder: t("Employee ID")
39004
39421
  })
39005
- }), (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__default.createElement(digitUiReactComponents.CardLabelError, {
39422
+ }), (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__default.createElement(digitUiReactComponents.CardLabelError, {
39006
39423
  style: errorStyle
39007
- }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Date of Retirement"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
39424
+ }, (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__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Date of Retirement"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
39008
39425
  className: "check-page-link-button"
39009
39426
  }, " *")), /*#__PURE__*/React__default.createElement("div", {
39010
39427
  className: "field"
@@ -39418,6 +39835,86 @@ const PropertyWaterConnection = _ref => {
39418
39835
  const watchPropertyType = watch("useDetails.propertyType");
39419
39836
  const watchPropertyCategory = watch("useDetails.propertyCategory");
39420
39837
  const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
39838
+ const watchPlotArea = watch("useDetails.plotArea");
39839
+ const watchBuiltUpArea = watch("useDetails.builtUpArea");
39840
+ const watchHeightOfTheBuilding = watch("useDetails.heightOfTheBuilding");
39841
+ const [showToast, setShowToast] = React.useState(null);
39842
+ React.useEffect(() => {
39843
+ if (showToast) {
39844
+ const timer = setTimeout(() => {
39845
+ setShowToast(null);
39846
+ }, 5000);
39847
+ return () => clearTimeout(timer);
39848
+ }
39849
+ }, [showToast]);
39850
+ const getPlotAreaError = () => {
39851
+ const trans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
39852
+ return trans && trans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? trans : "Plot area should always be more than built up area.";
39853
+ };
39854
+ const getHeightErrorMessage = () => {
39855
+ const trans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
39856
+ return trans && trans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? trans : "Height of the building must be 17.5 meters or less for Normal connection.";
39857
+ };
39858
+ const isPlotAreaInvalid = React.useMemo(() => {
39859
+ if (!watchPlotArea || !watchBuiltUpArea) return false;
39860
+ const plot = parseFloat(watchPlotArea);
39861
+ const built = parseFloat(watchBuiltUpArea);
39862
+ if (!isNaN(plot) && !isNaN(built)) {
39863
+ return plot <= built;
39864
+ }
39865
+ return false;
39866
+ }, [watchPlotArea, watchBuiltUpArea]);
39867
+ const isHeightInvalid = React.useMemo(() => {
39868
+ if (!watchHeightOfTheBuilding) return false;
39869
+ 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;
39870
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
39871
+ if (!isNormal) return false;
39872
+ const height = parseFloat(watchHeightOfTheBuilding);
39873
+ return !isNaN(height) && height > 17.5;
39874
+ }, [watchHeightOfTheBuilding, watchWaterConnectionUsageType]);
39875
+ const handleAreaBlur = () => {
39876
+ const plot = parseFloat(watchPlotArea);
39877
+ const built = parseFloat(watchBuiltUpArea);
39878
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
39879
+ setShowToast({
39880
+ key: true,
39881
+ label: getPlotAreaError()
39882
+ });
39883
+ }
39884
+ };
39885
+ const handleHeightBlur = e => {
39886
+ var _e$target;
39887
+ 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;
39888
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
39889
+ 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);
39890
+ if (isNormal && !isNaN(height) && height > 17.5) {
39891
+ setShowToast({
39892
+ key: true,
39893
+ label: getHeightErrorMessage()
39894
+ });
39895
+ }
39896
+ };
39897
+ React.useEffect(() => {
39898
+ if (isPlotAreaInvalid) {
39899
+ if (typeof setError === "function" && config !== null && config !== void 0 && config.key) {
39900
+ setError(config.key, {
39901
+ type: "custom",
39902
+ message: getPlotAreaError()
39903
+ });
39904
+ }
39905
+ } else if (isHeightInvalid) {
39906
+ if (typeof setError === "function" && config !== null && config !== void 0 && config.key) {
39907
+ setError(config.key, {
39908
+ type: "custom",
39909
+ message: getHeightErrorMessage()
39910
+ });
39911
+ }
39912
+ } else {
39913
+ if (typeof clearErrors === "function" && config !== null && config !== void 0 && config.key) {
39914
+ clearErrors(config.key);
39915
+ }
39916
+ }
39917
+ }, [isPlotAreaInvalid, isHeightInvalid, config === null || config === void 0 ? void 0 : config.key, setError, clearErrors]);
39421
39918
  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";
39422
39919
  const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
39423
39920
  const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
@@ -39460,7 +39957,10 @@ const PropertyWaterConnection = _ref => {
39460
39957
  var _ptServicesMastersDat2;
39461
39958
  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) || [];
39462
39959
  const uniqueCats = [...new Set(list.map(item => item.propertyCategory).filter(Boolean))];
39463
- return uniqueCats.map(cat => ({
39960
+ return uniqueCats.sort((a, b) => a.localeCompare(b, undefined, {
39961
+ numeric: true,
39962
+ sensitivity: "base"
39963
+ })).map(cat => ({
39464
39964
  code: cat,
39465
39965
  name: cat,
39466
39966
  i18nKey: cat
@@ -39474,6 +39974,9 @@ const PropertyWaterConnection = _ref => {
39474
39974
  code: item.code,
39475
39975
  name: item.name || item.code,
39476
39976
  i18nKey: item.i18nKey || item.code
39977
+ })).sort((a, b) => (a.name || "").localeCompare(b.name || "", undefined, {
39978
+ numeric: true,
39979
+ sensitivity: "base"
39477
39980
  }));
39478
39981
  }, [propertyType2List, ptServicesMastersData]);
39479
39982
  const usageTypeOptions = React.useMemo(() => {
@@ -39481,7 +39984,10 @@ const PropertyWaterConnection = _ref => {
39481
39984
  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) || [];
39482
39985
  const uniqueTypes = [...new Set(list.map(item => item.waterConnectionUsageType).filter(Boolean))];
39483
39986
  const typesToMap = uniqueTypes.length > 0 ? uniqueTypes : ["Normal", "Bulk"];
39484
- return typesToMap.map(type => ({
39987
+ return typesToMap.sort((a, b) => a.localeCompare(b, undefined, {
39988
+ numeric: true,
39989
+ sensitivity: "base"
39990
+ })).map(type => ({
39485
39991
  code: type,
39486
39992
  name: type,
39487
39993
  value: type
@@ -39753,7 +40259,7 @@ const PropertyWaterConnection = _ref => {
39753
40259
  fontSize: "12px",
39754
40260
  marginTop: "-21px"
39755
40261
  };
39756
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
40262
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
39757
40263
  title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
39758
40264
  defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
39759
40265
  style: props.style
@@ -39930,9 +40436,18 @@ const PropertyWaterConnection = _ref => {
39930
40436
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
39931
40437
  t: t,
39932
40438
  inputRef: register({
40439
+ required: t("REQUIRED_FIELD"),
39933
40440
  pattern: {
39934
40441
  value: DECIMAL_PATTERN$1,
39935
40442
  message: t("ERR_INVALID_DECIMAL")
40443
+ },
40444
+ validate: value => {
40445
+ const built = parseFloat(watchBuiltUpArea);
40446
+ const plot = parseFloat(value);
40447
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
40448
+ return getPlotAreaError();
40449
+ }
40450
+ return true;
39936
40451
  }
39937
40452
  }),
39938
40453
  rules: {
@@ -39940,10 +40455,15 @@ const PropertyWaterConnection = _ref => {
39940
40455
  },
39941
40456
  name: "useDetails.plotArea",
39942
40457
  disabled: isPropertyFound,
39943
- placeholder: t("WS_PLOT_AREA")
39944
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.plotArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
39945
- style: errorStyle
39946
- }, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React__default.createElement("span", {
40458
+ placeholder: t("WS_PLOT_AREA"),
40459
+ onBlur: handleAreaBlur
40460
+ }), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.plotArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
40461
+ style: {
40462
+ fontSize: "12px",
40463
+ color: "#d4351c",
40464
+ marginTop: "4px"
40465
+ }
40466
+ }, errors.useDetails.plotArea.message))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React__default.createElement("span", {
39947
40467
  className: "check-page-link-button"
39948
40468
  }, "*")), /*#__PURE__*/React__default.createElement("div", {
39949
40469
  className: "form-field"
@@ -39954,6 +40474,14 @@ const PropertyWaterConnection = _ref => {
39954
40474
  pattern: {
39955
40475
  value: DECIMAL_PATTERN$1,
39956
40476
  message: t("ERR_INVALID_DECIMAL")
40477
+ },
40478
+ validate: value => {
40479
+ const plot = parseFloat(watchPlotArea);
40480
+ const built = parseFloat(value);
40481
+ if (!isNaN(plot) && !isNaN(built) && plot <= built) {
40482
+ return getPlotAreaError();
40483
+ }
40484
+ return true;
39957
40485
  }
39958
40486
  }),
39959
40487
  name: "useDetails.builtUpArea",
@@ -39961,10 +40489,21 @@ const PropertyWaterConnection = _ref => {
39961
40489
  required: t("REQUIRED_FIELD")
39962
40490
  },
39963
40491
  disabled: isPropertyFound,
39964
- placeholder: t("WS_BUILT_UP_AREA")
39965
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
39966
- style: errorStyle
39967
- }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_HEIGHT_OF_THE_BUILDING(meters)")}`, /*#__PURE__*/React__default.createElement("span", {
40492
+ placeholder: t("WS_BUILT_UP_AREA"),
40493
+ onBlur: handleAreaBlur
40494
+ }), errors !== null && errors !== void 0 && (_errors$useDetails9 = errors.useDetails) !== null && _errors$useDetails9 !== void 0 && _errors$useDetails9.builtUpArea ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
40495
+ style: {
40496
+ fontSize: "12px",
40497
+ color: "#d4351c",
40498
+ marginTop: "4px"
40499
+ }
40500
+ }, errors.useDetails.builtUpArea.message) : isPlotAreaInvalid ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
40501
+ style: {
40502
+ fontSize: "12px",
40503
+ color: "#d4351c",
40504
+ marginTop: "4px"
40505
+ }
40506
+ }, getPlotAreaError()) : null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_HEIGHT_OF_THE_BUILDING(meters)")}`, /*#__PURE__*/React__default.createElement("span", {
39968
40507
  className: "check-page-link-button"
39969
40508
  }, " *")), /*#__PURE__*/React__default.createElement("div", {
39970
40509
  className: "form-field"
@@ -39975,6 +40514,15 @@ const PropertyWaterConnection = _ref => {
39975
40514
  pattern: {
39976
40515
  value: DECIMAL_PATTERN$1,
39977
40516
  message: t("ERR_INVALID_DECIMAL")
40517
+ },
40518
+ validate: value => {
40519
+ 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;
40520
+ const isNormal = normalizeCode(usageCode) === "NORMAL";
40521
+ const height = parseFloat(value);
40522
+ if (isNormal && !isNaN(height) && height > 17.5) {
40523
+ return getHeightErrorMessage();
40524
+ }
40525
+ return true;
39978
40526
  }
39979
40527
  }),
39980
40528
  name: "useDetails.heightOfTheBuilding",
@@ -39982,10 +40530,21 @@ const PropertyWaterConnection = _ref => {
39982
40530
  required: t("REQUIRED_FIELD")
39983
40531
  },
39984
40532
  disabled: isPropertyFound,
39985
- placeholder: t("WS_HEIGHT_OF_THE_BUILDING")
39986
- })), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.heightOfTheBuilding) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
39987
- style: errorStyle
39988
- }, errors.useDetails.heightOfTheBuilding.message)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`), /*#__PURE__*/React__default.createElement("div", {
40533
+ placeholder: t("WS_HEIGHT_OF_THE_BUILDING"),
40534
+ onBlur: handleHeightBlur
40535
+ }), errors !== null && errors !== void 0 && (_errors$useDetails0 = errors.useDetails) !== null && _errors$useDetails0 !== void 0 && _errors$useDetails0.heightOfTheBuilding ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
40536
+ style: {
40537
+ fontSize: "12px",
40538
+ color: "#d4351c",
40539
+ marginTop: "4px"
40540
+ }
40541
+ }, errors.useDetails.heightOfTheBuilding.message) : isHeightInvalid ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
40542
+ style: {
40543
+ fontSize: "12px",
40544
+ color: "#d4351c",
40545
+ marginTop: "4px"
40546
+ }
40547
+ }, getHeightErrorMessage()) : null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`), /*#__PURE__*/React__default.createElement("div", {
39989
40548
  className: "form-field"
39990
40549
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
39991
40550
  control: control,
@@ -40023,7 +40582,14 @@ const PropertyWaterConnection = _ref => {
40023
40582
  placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
40024
40583
  }))) : 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__default.createElement(digitUiReactComponents.CardLabelError, {
40025
40584
  style: errorStyle
40026
- }, errors.useDetails.NumberofDwellingUnits.message)));
40585
+ }, errors.useDetails.NumberofDwellingUnits.message))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
40586
+ error: showToast.key,
40587
+ label: showToast.label,
40588
+ isDleteBtn: true,
40589
+ onClose: () => {
40590
+ setShowToast(null);
40591
+ }
40592
+ }));
40027
40593
  };
40028
40594
 
40029
40595
  const WSPropertyWaterConnection = props => {
@@ -44106,6 +44672,20 @@ const newConfig = [{
44106
44672
  cardText: "",
44107
44673
  submitBarLabel: "CS_COMMON_NEXT"
44108
44674
  }
44675
+ }, {
44676
+ route: "bank-details",
44677
+ component: "WSBankDetails",
44678
+ isMandatory: true,
44679
+ key: "bankDetails",
44680
+ nextStep: "disability-details",
44681
+ WATER: "disability-details",
44682
+ hideInEmployee: true,
44683
+ texts: {
44684
+ headerCaption: "WS_COMMON_CONNECTION_DETAIL",
44685
+ header: "WS_BANK_DETAILS",
44686
+ cardText: "",
44687
+ submitBarLabel: "CS_COMMON_NEXT"
44688
+ }
44109
44689
  }, {
44110
44690
  route: "disability-details",
44111
44691
  component: "WSDivyangjan",
@@ -47391,7 +47971,7 @@ const checkForNA$2 = value => {
47391
47971
  return value ? value : "CS_NA";
47392
47972
  };
47393
47973
  const WSApplicationDetails = () => {
47394
- 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;
47974
+ 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;
47395
47975
  const getDisconnectionNoticeSearch = function () {
47396
47976
  try {
47397
47977
  var _data$WaterConnection227, _data$WaterConnection228, _data$SewerageConnect219, _data$SewerageConnect220;
@@ -47580,6 +48160,7 @@ const WSApplicationDetails = () => {
47580
48160
  const useDetails = additionalDetails;
47581
48161
  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) || {};
47582
48162
  const djbEmployee = additionalDetails;
48163
+ const bankDetails = (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.bankDetails) || additionalDetails || {};
47583
48164
  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;
47584
48165
  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) || "";
47585
48166
  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) || "";
@@ -47597,6 +48178,20 @@ const WSApplicationDetails = () => {
47597
48178
  if (translated && translated !== key) return translated;
47598
48179
  return str;
47599
48180
  };
48181
+ 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) || "";
48182
+ 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) || "";
48183
+ 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) || "";
48184
+ const getValidActualValue = (actualVal, baseVal) => {
48185
+ if (!actualVal) return null;
48186
+ 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();
48187
+ 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();
48188
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
48189
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
48190
+ return str;
48191
+ };
48192
+ const validActualAssembly = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly), baseAssembly);
48193
+ const validActualWard = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard), baseWard);
48194
+ const validActualZone = getValidActualValue((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone), baseZone);
47600
48195
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
47601
48196
  privacy: {
47602
48197
  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,
@@ -48056,6 +48651,9 @@ const WSApplicationDetails = () => {
48056
48651
  marginBottom: "30px"
48057
48652
  }
48058
48653
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48654
+ label: t("COMMON_ADDRESS_TYPE"),
48655
+ 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)))}`
48656
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48059
48657
  label: t("CORE_COMMON_PROFILE_CITY"),
48060
48658
  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)))}`
48061
48659
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
@@ -48096,23 +48694,23 @@ const WSApplicationDetails = () => {
48096
48694
  text: `${t(checkForNA$2(rawLongitude))}`
48097
48695
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48098
48696
  label: t("COMMON_ASSEMBLY"),
48099
- 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)))}`
48697
+ 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)))}`
48100
48698
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48101
48699
  label: t("COMMON_WARD"),
48102
- 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)))}`
48700
+ 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)))}`
48103
48701
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48104
48702
  label: t("COMMON_ZONE"),
48105
- 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)))}`
48106
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48703
+ 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)))}`
48704
+ }), validActualAssembly ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48107
48705
  label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
48108
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
48109
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48706
+ text: `${t(validActualAssembly)}`
48707
+ }) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48110
48708
  label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
48111
- text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
48112
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48709
+ text: `${t(validActualWard)}`
48710
+ }) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48113
48711
  label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
48114
- 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)))}`
48115
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48712
+ text: `${t(validActualZone)}`
48713
+ }) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48116
48714
  label: t("LANDMARK"),
48117
48715
  text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
48118
48716
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
@@ -48296,7 +48894,28 @@ const WSApplicationDetails = () => {
48296
48894
  color: "green",
48297
48895
  fontWeight: "bold"
48298
48896
  }
48299
- }, t("BILL_ALREADY_PAID"))))))))), !isDisconnectionExecuted && !isDisconnectionPaymentPending && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
48897
+ }, t("BILL_ALREADY_PAID"))))))))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
48898
+ styles: {
48899
+ fontSize: "28px"
48900
+ }
48901
+ }, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
48902
+ style: {
48903
+ marginTop: "10px",
48904
+ marginBottom: "30px"
48905
+ }
48906
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48907
+ label: t("WS_NAME_OF_BANK"),
48908
+ text: `${t(checkForNA$2(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
48909
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48910
+ label: t("WS_NAME_OF_BRANCH"),
48911
+ text: `${t(checkForNA$2((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
48912
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48913
+ label: t("WS_IFSC_CODE"),
48914
+ text: `${t(checkForNA$2(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
48915
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48916
+ label: t("WS_BANK_ACCOUNT_NO"),
48917
+ text: `${t(checkForNA$2((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
48918
+ }))), !isDisconnectionExecuted && !isDisconnectionPaymentPending && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
48300
48919
  styles: {
48301
48920
  fontSize: "28px"
48302
48921
  }
@@ -50739,7 +51358,7 @@ const mapPropertyToFormFields = property => {
50739
51358
  };
50740
51359
  const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
50741
51360
  if (waterResult) {
50742
- 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;
51361
+ 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;
50743
51362
  const propToUse = latestProperty || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.property);
50744
51363
  const propMapped = mapPropertyToFormFields(propToUse);
50745
51364
  waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
@@ -50874,23 +51493,24 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
50874
51493
  }];
50875
51494
  waterResult.addressType = addressTypeObj;
50876
51495
  waterResult.completeAddress = completeAddressStr;
51496
+ 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) || {};
50877
51497
  waterResult.bankDetails = {
50878
- bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.bankName) || "",
50879
- 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) || "",
50880
- ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.ifscCode) || "",
50881
- 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) || "",
50882
- 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) || "",
50883
- 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) || ""
51498
+ bankName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankName) || "",
51499
+ bankBranchName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankBranchName) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.branchName) || "",
51500
+ ifscCode: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.ifscCode) || "",
51501
+ accountNumber: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.bankAccountNumber) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.accountNumber) || "",
51502
+ 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) || "",
51503
+ accountHolderName: (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.accountHolderName) || (bankSrc === null || bankSrc === void 0 ? void 0 : bankSrc.ownerName) || ""
50884
51504
  };
50885
51505
  waterResult.djbEmployee = {
50886
- isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.isDjbEmployee) === "true",
50887
- employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.employeeId) || "",
50888
- designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.designation) || "",
50889
- 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) || "",
50890
- document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition26 = waterResult.additionalDetails) === null || _waterResult$addition26 === void 0 ? void 0 : _waterResult$addition26.document) || ""
51506
+ isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.isDjbEmployee) === "true",
51507
+ employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.employeeId) || "",
51508
+ designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.designation) || "",
51509
+ 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) || "",
51510
+ document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.document) || ""
50891
51511
  };
50892
51512
  } else if (sewerageresult) {
50893
- 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;
51513
+ 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;
50894
51514
  sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
50895
51515
  ...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
50896
51516
  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,
@@ -51020,20 +51640,21 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
51020
51640
  }];
51021
51641
  sewerageresult.addressType = addressTypeObjSewerage;
51022
51642
  sewerageresult.completeAddress = completeAddressStrSewerage;
51643
+ 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) || {};
51023
51644
  sewerageresult.bankDetails = {
51024
- bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.bankName) || "",
51025
- 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) || "",
51026
- ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.ifscCode) || "",
51027
- 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) || "",
51028
- 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) || "",
51029
- 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) || ""
51645
+ bankName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankName) || "",
51646
+ bankBranchName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankBranchName) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.branchName) || "",
51647
+ ifscCode: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.ifscCode) || "",
51648
+ accountNumber: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.bankAccountNumber) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.accountNumber) || "",
51649
+ 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) || "",
51650
+ accountHolderName: (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.accountHolderName) || (bankSrcSewerage === null || bankSrcSewerage === void 0 ? void 0 : bankSrcSewerage.ownerName) || ""
51030
51651
  };
51031
51652
  sewerageresult.djbEmployee = {
51032
- isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.isDjbEmployee) === "true",
51033
- employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.employeeId) || "",
51034
- designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.designation) || "",
51035
- 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) || "",
51036
- document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit26 = sewerageresult.additionalDetails) === null || _sewerageresult$addit26 === void 0 ? void 0 : _sewerageresult$addit26.document) || ""
51653
+ isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.isDjbEmployee) === "true",
51654
+ employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.employeeId) || "",
51655
+ designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.designation) || "",
51656
+ 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) || "",
51657
+ document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.document) || ""
51037
51658
  };
51038
51659
  }
51039
51660
  if (waterResult) return {
@@ -51377,6 +51998,31 @@ const EditApplication = _ref1 => {
51377
51998
  params.SewerageConnectionResult.SewerageConnections[0].propertyId = propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId;
51378
51999
  }
51379
52000
  }
52001
+ const normalizedBank = getNormalizedBankDetails(params);
52002
+ if (normalizedBank) {
52003
+ var _params$WaterConnecti6, _params$WaterConnecti7, _params$SewerageConne6, _params$SewerageConne7;
52004
+ params.additionalDetails = {
52005
+ ...params.additionalDetails,
52006
+ ...normalizedBank,
52007
+ bankDetails: normalizedBank
52008
+ };
52009
+ 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]) {
52010
+ var _params$WaterConnecti8;
52011
+ params.WaterConnectionResult.WaterConnection[0].additionalDetails = {
52012
+ ...((_params$WaterConnecti8 = params.WaterConnectionResult.WaterConnection[0]) === null || _params$WaterConnecti8 === void 0 ? void 0 : _params$WaterConnecti8.additionalDetails),
52013
+ ...normalizedBank,
52014
+ bankDetails: normalizedBank
52015
+ };
52016
+ }
52017
+ 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]) {
52018
+ var _params$SewerageConne8;
52019
+ params.SewerageConnectionResult.SewerageConnections[0].additionalDetails = {
52020
+ ...((_params$SewerageConne8 = params.SewerageConnectionResult.SewerageConnections[0]) === null || _params$SewerageConne8 === void 0 ? void 0 : _params$SewerageConne8.additionalDetails),
52021
+ ...normalizedBank,
52022
+ bankDetails: normalizedBank
52023
+ };
52024
+ }
52025
+ }
51380
52026
  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";
51381
52027
  const appProp = (Waterresult === null || Waterresult === void 0 ? void 0 : Waterresult.property) || (Sewarageresult === null || Sewarageresult === void 0 ? void 0 : Sewarageresult.property);
51382
52028
  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));
@@ -51424,6 +52070,31 @@ const EditApplication = _ref1 => {
51424
52070
  }
51425
52071
  };
51426
52072
  });
52073
+ } else if (key === "bankDetails") {
52074
+ setParams(prev => {
52075
+ var _prev$additionalDetai, _prev$additionalDetai2, _prev$additionalDetai3, _prev$additionalDetai4, _prev$additionalDetai5, _prev$additionalDetai6, _prev$additionalDetai7, _prev$additionalDetai8;
52076
+ const updatedBank = {
52077
+ ...(prev === null || prev === void 0 ? void 0 : prev.bankDetails),
52078
+ ...data
52079
+ };
52080
+ return {
52081
+ ...prev,
52082
+ bankDetails: updatedBank,
52083
+ additionalDetails: {
52084
+ ...(prev === null || prev === void 0 ? void 0 : prev.additionalDetails),
52085
+ ...data,
52086
+ 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),
52087
+ 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),
52088
+ 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),
52089
+ 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),
52090
+ 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),
52091
+ 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),
52092
+ 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),
52093
+ 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),
52094
+ bankDetails: updatedBank
52095
+ }
52096
+ };
52097
+ });
51427
52098
  } else {
51428
52099
  setParams(prev => ({
51429
52100
  ...prev,
@@ -51446,7 +52117,7 @@ const EditApplication = _ref1 => {
51446
52117
  config = config.slice(startIndex);
51447
52118
  }
51448
52119
  config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
51449
- const desiredOrder = ["connection-details", "connection-holder", "djb-employee-details", "disability-details", "property-location-details", "property-water-details", "due-verification-details", "document-details"];
52120
+ 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"];
51450
52121
  let sortedConfig = [];
51451
52122
  desiredOrder.forEach(route => {
51452
52123
  const found = config.find(c => c.route === route);
@@ -51644,7 +52315,7 @@ const ReSubmitDisconnectionApplication = () => {
51644
52315
  };
51645
52316
 
51646
52317
  const CheckPage = _ref => {
51647
- 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, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _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;
52318
+ 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;
51648
52319
  let {
51649
52320
  onSubmit,
51650
52321
  value
@@ -51675,7 +52346,22 @@ const CheckPage = _ref => {
51675
52346
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
51676
52347
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
51677
52348
  const rainWaterHarvesting = (value === null || value === void 0 ? void 0 : value.rainWaterHarvesting) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
52349
+ 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) || {};
51678
52350
  const additionalDetails = {};
52351
+ 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) || "";
52352
+ 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) || "";
52353
+ 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) || "";
52354
+ const getValidActualValue = (actualVal, baseVal) => {
52355
+ if (!actualVal) return null;
52356
+ 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();
52357
+ 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();
52358
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
52359
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
52360
+ return str;
52361
+ };
52362
+ const validActualAssembly = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly, baseAssembly);
52363
+ const validActualWard = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard, baseWard);
52364
+ const validActualZone = getValidActualValue(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone, baseZone);
51679
52365
  const checkForNA = val => val ? val : "CS_NA";
51680
52366
  const onEdit = () => {};
51681
52367
  const ActionButton = () => null;
@@ -51691,33 +52377,33 @@ const CheckPage = _ref => {
51691
52377
  };
51692
52378
  let propAddArr = [];
51693
52379
  if (cpt && cpt !== null && cpt !== void 0 && cpt.details && Object.keys(cpt === null || cpt === void 0 ? void 0 : cpt.details).length > 0) {
51694
- 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;
51695
- 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) {
51696
- var _cpt$details2, _cpt$details2$address;
51697
- 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);
52380
+ 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;
52381
+ 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) {
52382
+ var _cpt$details6, _cpt$details6$address;
52383
+ 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);
51698
52384
  }
51699
- 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) {
51700
- var _cpt$details4, _cpt$details4$address;
51701
- 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);
52385
+ 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) {
52386
+ var _cpt$details8, _cpt$details8$address;
52387
+ 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);
51702
52388
  }
51703
- 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) {
51704
- var _cpt$details6, _cpt$details6$address;
51705
- 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);
52389
+ 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) {
52390
+ var _cpt$details0, _cpt$details0$address;
52391
+ 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);
51706
52392
  }
51707
- 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) {
51708
- var _cpt$details8, _cpt$details8$address, _cpt$details8$address2, _cpt$details9;
51709
- 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)));
52393
+ 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) {
52394
+ var _cpt$details10, _cpt$details10$addres, _cpt$details10$addres2, _cpt$details11;
52395
+ 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)));
51710
52396
  }
51711
- if (cpt !== null && cpt !== void 0 && (_cpt$details0 = cpt.details) !== null && _cpt$details0 !== void 0 && _cpt$details0.tenantId) {
51712
- var _cpt$details1;
51713
- 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)));
52397
+ if (cpt !== null && cpt !== void 0 && (_cpt$details12 = cpt.details) !== null && _cpt$details12 !== void 0 && _cpt$details12.tenantId) {
52398
+ var _cpt$details13;
52399
+ 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)));
51714
52400
  }
51715
- 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) {
51716
- var _cpt$details11, _cpt$details11$addres;
51717
- 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);
52401
+ 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) {
52402
+ var _cpt$details15, _cpt$details15$addres;
52403
+ 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);
51718
52404
  }
51719
52405
  }
51720
- 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() : [];
52406
+ 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() : [];
51721
52407
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Timeline, {
51722
52408
  currentStep: 4
51723
52409
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
@@ -51743,13 +52429,13 @@ const CheckPage = _ref => {
51743
52429
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51744
52430
  className: "border-none",
51745
52431
  label: t("WS_CONNECTION_DETAILS_STATUS_LABEL"),
51746
- text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$details14 = cpt.details) === null || _cpt$details14 === void 0 ? void 0 : _cpt$details14.status)
52432
+ text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$details18 = cpt.details) === null || _cpt$details18 === void 0 ? void 0 : _cpt$details18.status)
51747
52433
  })), /*#__PURE__*/React__default.createElement("div", {
51748
52434
  style: {
51749
52435
  textAlign: "left"
51750
52436
  }
51751
52437
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
51752
- 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}`
52438
+ 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}`
51753
52439
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
51754
52440
  style: {
51755
52441
  textAlign: "left"
@@ -51858,20 +52544,82 @@ const CheckPage = _ref => {
51858
52544
  className: "border-none",
51859
52545
  label: t("WS_EMAIL_ID"),
51860
52546
  text: (ConnectionHolderDetails === null || ConnectionHolderDetails === void 0 ? void 0 : (_ConnectionHolderDeta0 = ConnectionHolderDetails[0]) === null || _ConnectionHolderDeta0 === void 0 ? void 0 : _ConnectionHolderDeta0.emailId) || t("CS_NA")
51861
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52547
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52548
+ style: {
52549
+ marginTop: "10px",
52550
+ marginBottom: "30px"
52551
+ }
52552
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52553
+ label: t("WS_DIVYANGJAN"),
52554
+ text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52555
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52556
+ style: {
52557
+ marginTop: "10px",
52558
+ marginBottom: "30px"
52559
+ }
52560
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52561
+ label: t("WS_DJB_EMPLOYEE"),
52562
+ text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
52563
+ actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
52564
+ onClick: onEdit
52565
+ })
52566
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52567
+ label: t("WS_EMPLOYEE_ID"),
52568
+ text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
52569
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52570
+ label: t("WS_EMPLOYEE_DESIGNATION"),
52571
+ text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
52572
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52573
+ label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
52574
+ text: /*#__PURE__*/React__default.createElement("span", {
52575
+ style: {
52576
+ display: "flex",
52577
+ alignItems: "center",
52578
+ gap: "8px",
52579
+ cursor: "pointer",
52580
+ color: "#f47738"
52581
+ },
52582
+ onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
52583
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
52584
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
51862
52585
  style: {
51863
52586
  marginTop: "10px",
51864
52587
  marginBottom: "30px"
51865
52588
  }
51866
52589
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51867
- label: t("WS_ZRO_LOCATION"),
51868
- 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)))}`,
52590
+ label: t("WS_NAME_OF_BANK"),
52591
+ text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
51869
52592
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
51870
52593
  onClick: onEdit
51871
52594
  })
51872
52595
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52596
+ label: t("WS_NAME_OF_BRANCH"),
52597
+ text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
52598
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52599
+ label: t("WS_IFSC_CODE"),
52600
+ text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
52601
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52602
+ label: t("WS_BANK_ACCOUNT_NO"),
52603
+ text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
52604
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52605
+ style: {
52606
+ marginTop: "10px",
52607
+ marginBottom: "30px"
52608
+ }
52609
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52610
+ label: t("Rain Water Harvesting Certificate"),
52611
+ text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52612
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52613
+ style: {
52614
+ marginTop: "10px",
52615
+ marginBottom: "30px"
52616
+ }
52617
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51873
52618
  label: t("COMMON_ADDRESS_TYPE"),
51874
- 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)))}`
52619
+ 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)))}`,
52620
+ actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
52621
+ onClick: onEdit
52622
+ })
51875
52623
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51876
52624
  label: t("CORE_COMMON_PROFILE_CITY"),
51877
52625
  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)))}`
@@ -51904,23 +52652,23 @@ const CheckPage = _ref => {
51904
52652
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
51905
52653
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51906
52654
  label: t("COMMON_ASSEMBLY"),
51907
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
52655
+ 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)))}`
51908
52656
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51909
52657
  label: t("COMMON_WARD"),
51910
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
52658
+ 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)))}`
51911
52659
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51912
52660
  label: t("COMMON_ZONE"),
51913
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
51914
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51915
- label: t("COMMON_CURRENT_ASSEMBLY"),
51916
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
51917
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51918
- label: t("COMMON_CURRENT_WARD"),
51919
- text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
51920
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51921
- label: t("COMMON_CURRENT_ZONE"),
51922
- 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) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
51923
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52661
+ 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)))}`
52662
+ }), validActualAssembly ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52663
+ label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
52664
+ text: `${t(validActualAssembly)}`
52665
+ }) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52666
+ label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
52667
+ text: `${t(validActualWard)}`
52668
+ }) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52669
+ label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
52670
+ text: `${t(validActualZone)}`
52671
+ }) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51924
52672
  label: t("LANDMARK"),
51925
52673
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
51926
52674
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
@@ -51975,51 +52723,6 @@ const CheckPage = _ref => {
51975
52723
  label: displayLabel,
51976
52724
  text: `${t(checkForNA(aText))}`
51977
52725
  });
51978
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
51979
- style: {
51980
- marginTop: "10px",
51981
- marginBottom: "30px"
51982
- }
51983
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51984
- label: t("WS_DJB_EMPLOYEE"),
51985
- text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
51986
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
51987
- onClick: onEdit
51988
- })
51989
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51990
- label: t("WS_EMPLOYEE_ID"),
51991
- text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
51992
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51993
- label: t("WS_EMPLOYEE_DESIGNATION"),
51994
- text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
51995
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
51996
- label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
51997
- text: /*#__PURE__*/React__default.createElement("span", {
51998
- style: {
51999
- display: "flex",
52000
- alignItems: "center",
52001
- gap: "8px",
52002
- cursor: "pointer",
52003
- color: "#f47738"
52004
- },
52005
- onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
52006
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
52007
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52008
- style: {
52009
- marginTop: "10px",
52010
- marginBottom: "30px"
52011
- }
52012
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52013
- label: t("WS_DIVYANGJAN"),
52014
- text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52015
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
52016
- style: {
52017
- marginTop: "10px",
52018
- marginBottom: "30px"
52019
- }
52020
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
52021
- label: t("Rain Water Harvesting Certificate"),
52022
- text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
52023
52726
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
52024
52727
  style: {
52025
52728
  paddingRight: "16px"
@@ -55217,6 +55920,8 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
55217
55920
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
55218
55921
  const NUMBER_PATTERN$2 = /^\d+$/;
55219
55922
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
55923
+ const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
55924
+ const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
55220
55925
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
55221
55926
  const createOption = (code, name) => ({
55222
55927
  code,
@@ -55666,7 +56371,12 @@ const FieldBlock = _ref3 => {
55666
56371
  fontWeight: "600",
55667
56372
  marginBottom: "0px"
55668
56373
  }
55669
- }, required ? `${label} *` : label), children, hint ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
56374
+ }, label, required ? /*#__PURE__*/React__default.createElement("span", {
56375
+ className: "astericColor",
56376
+ style: {
56377
+ color: "#d4351c"
56378
+ }
56379
+ }, " *") : null), children, hint ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
55670
56380
  style: {
55671
56381
  color: "#505A5F",
55672
56382
  fontSize: "14px",
@@ -55897,7 +56607,7 @@ const FileUploadField = _ref6 => {
55897
56607
  })))));
55898
56608
  };
55899
56609
  const NewApplication = () => {
55900
- 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;
56610
+ 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;
55901
56611
  const {
55902
56612
  t
55903
56613
  } = reactI18next.useTranslation();
@@ -56127,6 +56837,10 @@ const NewApplication = () => {
56127
56837
  sectionId: "useDetails",
56128
56838
  route: "use-details",
56129
56839
  actions: "Property & Connection Use Details"
56840
+ }, {
56841
+ sectionId: "bankDetails",
56842
+ route: "bank-details",
56843
+ actions: "Bank Details"
56130
56844
  }, {
56131
56845
  sectionId: "documents",
56132
56846
  route: "documents",
@@ -56406,7 +57120,7 @@ const NewApplication = () => {
56406
57120
  };
56407
57121
  const onSubmit = function (data) {
56408
57122
  try {
56409
- var _propertyDetails$Prop;
57123
+ var _data$useDetails, _data$useDetails2, _data$useDetails3, _data$useDetails4, _propertyDetails$Prop;
56410
57124
  if (hasPendingUpload) {
56411
57125
  setShowToast({
56412
57126
  warning: true,
@@ -56414,6 +57128,28 @@ const NewApplication = () => {
56414
57128
  });
56415
57129
  return Promise.resolve();
56416
57130
  }
57131
+ const plotAreaNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.plotArea);
57132
+ const builtUpAreaNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails2 = data.useDetails) === null || _data$useDetails2 === void 0 ? void 0 : _data$useDetails2.builtUpArea);
57133
+ if (!isNaN(plotAreaNum) && !isNaN(builtUpAreaNum) && plotAreaNum <= builtUpAreaNum) {
57134
+ const plotTrans = t("WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA");
57135
+ setShowToast({
57136
+ key: "error",
57137
+ message: plotTrans && plotTrans !== "WS_PLOT_AREA_MORE_THAN_BUILT_UP_AREA" ? plotTrans : "Plot area should always be more than built up area."
57138
+ });
57139
+ return Promise.resolve();
57140
+ }
57141
+ const usageTypeObj = data === null || data === void 0 ? void 0 : (_data$useDetails3 = data.useDetails) === null || _data$useDetails3 === void 0 ? void 0 : _data$useDetails3.WaterConnectionUsageType;
57142
+ 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;
57143
+ const isNormalUsage = String(usageTypeCode || "").toUpperCase() === "NORMAL";
57144
+ const heightNum = parseFloat(data === null || data === void 0 ? void 0 : (_data$useDetails4 = data.useDetails) === null || _data$useDetails4 === void 0 ? void 0 : _data$useDetails4.heightOfTheBuilding);
57145
+ if (isNormalUsage && !isNaN(heightNum) && heightNum > 17.5) {
57146
+ const heightTrans = t("WS_HEIGHT_OF_BUILDING_NORMAL_ERROR");
57147
+ setShowToast({
57148
+ key: "error",
57149
+ message: heightTrans && heightTrans !== "WS_HEIGHT_OF_BUILDING_NORMAL_ERROR" ? heightTrans : "Height of the building must be 17.5 meters or less for Normal connection."
57150
+ });
57151
+ return Promise.resolve();
57152
+ }
56417
57153
  if (!(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
56418
57154
  setShowToast({
56419
57155
  key: "error",
@@ -56704,7 +57440,6 @@ const NewApplication = () => {
56704
57440
  }), /*#__PURE__*/React__default.createElement("div", {
56705
57441
  style: {
56706
57442
  flex: "1",
56707
- overflowY: "auto",
56708
57443
  minWidth: 0
56709
57444
  }
56710
57445
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -57224,10 +57959,19 @@ const NewApplication = () => {
57224
57959
  required: isDjbEmployee
57225
57960
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
57226
57961
  errorStyle: !!getFieldError("djbEmployee.employeeId"),
57962
+ maxlength: 8,
57963
+ maxLength: 8,
57227
57964
  inputRef: register({
57228
- required: isDjbEmployee ? "Employee ID is required." : false
57965
+ required: isDjbEmployee ? "Employee ID is required." : false,
57966
+ pattern: {
57967
+ value: /^\d{8}$/,
57968
+ message: "Employee ID must be exactly 8 digits (numbers only)"
57969
+ }
57229
57970
  }),
57230
- name: "djbEmployee.employeeId"
57971
+ name: "djbEmployee.employeeId",
57972
+ onChange: e => {
57973
+ e.target.value = e.target.value.replace(/\D/g, "").slice(0, 8);
57974
+ }
57231
57975
  })), /*#__PURE__*/React__default.createElement(FieldBlock, {
57232
57976
  error: getFieldError("djbEmployee.officeNameAndAddress"),
57233
57977
  isFullWidth: true,
@@ -57620,6 +58364,84 @@ const NewApplication = () => {
57620
58364
  }),
57621
58365
  name: "useDetails.hospitalBeds"
57622
58366
  })) : null), /*#__PURE__*/React__default.createElement(SectionCard, {
58367
+ description: "Refund or payment-linked bank account details.",
58368
+ isOpen: collapsedSections.bank,
58369
+ onToggle: toggleSection,
58370
+ sectionKey: "bank",
58371
+ title: "Bank Details",
58372
+ sectionRef: sectionRefs.bankDetails
58373
+ }, /*#__PURE__*/React__default.createElement(FieldBlock, {
58374
+ error: getFieldError("bankDetails.bankName"),
58375
+ label: "Name of the Bank",
58376
+ required: true
58377
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
58378
+ errorStyle: !!getFieldError("bankDetails.bankName"),
58379
+ inputRef: register({
58380
+ required: "Bank Name is required."
58381
+ }),
58382
+ name: "bankDetails.bankName"
58383
+ })), /*#__PURE__*/React__default.createElement(FieldBlock, {
58384
+ error: getFieldError("bankDetails.branchName"),
58385
+ label: "Name of the Branch",
58386
+ required: true
58387
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
58388
+ errorStyle: !!getFieldError("bankDetails.branchName"),
58389
+ inputRef: register({
58390
+ required: "Branch Name is required."
58391
+ }),
58392
+ name: "bankDetails.branchName"
58393
+ })), /*#__PURE__*/React__default.createElement(FieldBlock, {
58394
+ error: getFieldError("bankDetails.ifscCode"),
58395
+ label: "IFSC Code",
58396
+ required: true
58397
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
58398
+ errorStyle: !!getFieldError("bankDetails.ifscCode"),
58399
+ inputRef: register({
58400
+ pattern: {
58401
+ value: IFSC_PATTERN,
58402
+ message: "Enter a valid IFSC code."
58403
+ },
58404
+ required: "IFSC Code is required."
58405
+ }),
58406
+ name: "bankDetails.ifscCode",
58407
+ maxLength: 11,
58408
+ onChange: event => {
58409
+ const code = event.target.value.toUpperCase();
58410
+ event.target.value = code;
58411
+ if (code.length === 11) {
58412
+ fetch(`https://ifsc.razorpay.com/${code}`).then(res => res.ok ? res.json() : null).then(d => {
58413
+ if (d) {
58414
+ if (d.BANK) setValue("bankDetails.bankName", d.BANK, {
58415
+ shouldValidate: true,
58416
+ shouldDirty: true
58417
+ });
58418
+ if (d.BRANCH) setValue("bankDetails.branchName", d.BRANCH, {
58419
+ shouldValidate: true,
58420
+ shouldDirty: true
58421
+ });
58422
+ }
58423
+ }).catch(() => {});
58424
+ }
58425
+ }
58426
+ })), /*#__PURE__*/React__default.createElement(FieldBlock, {
58427
+ error: getFieldError("bankDetails.bankAccountNumber"),
58428
+ label: "Bank Account No.",
58429
+ required: true
58430
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
58431
+ errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
58432
+ inputRef: register({
58433
+ pattern: {
58434
+ value: ACCOUNT_PATTERN,
58435
+ message: "Enter a valid bank account number."
58436
+ },
58437
+ required: "Bank Account Number is required."
58438
+ }),
58439
+ name: "bankDetails.bankAccountNumber",
58440
+ maxLength: 18,
58441
+ onChange: e => {
58442
+ e.target.value = e.target.value.replace(/\D/g, "").slice(0, 18);
58443
+ }
58444
+ }))), /*#__PURE__*/React__default.createElement(SectionCard, {
57623
58445
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
57624
58446
  isOpen: collapsedSections.documents,
57625
58447
  onToggle: toggleSection,
@@ -57696,10 +58518,13 @@ const NewApplication = () => {
57696
58518
  })
57697
58519
  })), /*#__PURE__*/React__default.createElement(FieldBlock, {
57698
58520
  error: getFieldError("documents.identityProofNumber"),
57699
- label: "Proof of Identity Document"
58521
+ label: "Proof of Identity Document *",
58522
+ required: true
57700
58523
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
57701
58524
  name: "documents.identityProofNumber",
57702
- inputRef: register(),
58525
+ inputRef: register({
58526
+ required: "Proof of Identity Document Number is required."
58527
+ }),
57703
58528
  placeholder: "Identity No."
57704
58529
  })), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
57705
58530
  control: control,
@@ -57746,10 +58571,13 @@ const NewApplication = () => {
57746
58571
  })
57747
58572
  })), /*#__PURE__*/React__default.createElement(FieldBlock, {
57748
58573
  error: getFieldError("documents.ownershipDocumentNumber"),
57749
- label: "Proof of Ownership Document"
58574
+ label: "Proof of Ownership Document *",
58575
+ required: true
57750
58576
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
57751
58577
  name: "documents.ownershipDocumentNumber",
57752
- inputRef: register(),
58578
+ inputRef: register({
58579
+ required: "Proof of Ownership Document Number is required."
58580
+ }),
57753
58581
  placeholder: "Ownership No."
57754
58582
  })), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
57755
58583
  control: control,
@@ -57873,9 +58701,6 @@ const NewApplication = () => {
57873
58701
  title: "Application Selection",
57874
58702
  onEditClick: () => handleSectionEdit("application")
57875
58703
  }, /*#__PURE__*/React__default.createElement(PreviewItem, {
57876
- label: "ZRO Location",
57877
- value: formValues === null || formValues === void 0 ? void 0 : formValues.zro
57878
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
57879
58704
  label: "Service Type",
57880
58705
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicati = formValues.applicationSelection) === null || _formValues$applicati === void 0 ? void 0 : _formValues$applicati.serviceType
57881
58706
  }), /*#__PURE__*/React__default.createElement(PreviewItem, {
@@ -58111,6 +58936,25 @@ const NewApplication = () => {
58111
58936
  }), /*#__PURE__*/React__default.createElement(PreviewItem, {
58112
58937
  label: "Water Connection Usage Type",
58113
58938
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail16 = formValues.useDetails) === null || _formValues$useDetail16 === void 0 ? void 0 : _formValues$useDetail16.WaterConnectionUsageType
58939
+ })), /*#__PURE__*/React__default.createElement(SectionCard, {
58940
+ description: "Banking information as entered in the form.",
58941
+ isOpen: collapsedSections.bank,
58942
+ onToggle: toggleSection,
58943
+ sectionKey: "bank",
58944
+ title: "Bank Details",
58945
+ onEditClick: () => handleSectionEdit("bankDetails")
58946
+ }, /*#__PURE__*/React__default.createElement(PreviewItem, {
58947
+ label: "Name of the Bank",
58948
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
58949
+ }), /*#__PURE__*/React__default.createElement(PreviewItem, {
58950
+ label: "Name of the Branch",
58951
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
58952
+ }), /*#__PURE__*/React__default.createElement(PreviewItem, {
58953
+ label: "IFSC Code",
58954
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
58955
+ }), /*#__PURE__*/React__default.createElement(PreviewItem, {
58956
+ label: "Bank Account No.",
58957
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
58114
58958
  })), /*#__PURE__*/React__default.createElement(SectionCard, {
58115
58959
  description: "Uploaded supporting documents.",
58116
58960
  isOpen: collapsedSections.documents,
@@ -59079,7 +59923,7 @@ const GetConnectionDetails = () => {
59079
59923
  position: "relative",
59080
59924
  width: "100%",
59081
59925
  height: "100%",
59082
- overflowY: "scroll"
59926
+ overflowY: "visible"
59083
59927
  }
59084
59928
  }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
59085
59929
  style: {
@@ -64549,7 +65393,6 @@ const MutationApplication = () => {
64549
65393
  }), /*#__PURE__*/React__default.createElement("div", {
64550
65394
  style: {
64551
65395
  flex: "1",
64552
- overflowY: "auto",
64553
65396
  minWidth: 0
64554
65397
  }
64555
65398
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
@@ -66595,7 +67438,7 @@ const openFilePDF = fileId => {
66595
67438
  }).catch(error => console.error("Error fetching file:", error));
66596
67439
  };
66597
67440
  const CheckPage$4 = _ref2 => {
66598
- 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, _propertyAddress34, _propertyAddress34$bl, _propertyAddress35, _propertyAddress35$bl, _propertyAddress36, _propertyAddress37, _propertyAddress37$wa, _propertyAddress38, _propertyAddress38$wa, _propertyAddress39, _propertyAddress40, _propertyAddress40$zo, _propertyAddress41, _propertyAddress41$zo, _propertyAddress42, _propertyAddress43, _propertyAddress44, _propertyAddress45, _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;
67441
+ 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;
66599
67442
  let {
66600
67443
  data,
66601
67444
  onSubmit,
@@ -66616,8 +67459,22 @@ const CheckPage$4 = _ref2 => {
66616
67459
  propertyAddress = (cpt === null || cpt === void 0 ? void 0 : cpt.address) || {};
66617
67460
  }
66618
67461
  const additionalDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.additionalDetails) || {};
66619
- 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);
66620
- 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);
67462
+ 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) || "";
67463
+ 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) || "";
67464
+ 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) || "";
67465
+ const getValidActualValue = (actualVal, baseVal) => {
67466
+ if (!actualVal) return null;
67467
+ 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();
67468
+ 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();
67469
+ if (!str || str === "NA" || str === "null" || str === "undefined") return null;
67470
+ if (baseStr && str.toUpperCase() === baseStr.toUpperCase()) return null;
67471
+ return str;
67472
+ };
67473
+ const validActualAssembly = getValidActualValue((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : _propertyAddress11.actualAssembly, baseAssembly);
67474
+ const validActualWard = getValidActualValue((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : _propertyAddress12.actualWard, baseWard);
67475
+ const validActualZone = getValidActualValue((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.actualZone, baseZone);
67476
+ 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);
67477
+ 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);
66621
67478
  const getFloorDisplay = floor => {
66622
67479
  if (floor === undefined || floor === null || floor === "") return t("CS_NA");
66623
67480
  if (typeof floor === "object") {
@@ -66653,12 +67510,17 @@ const CheckPage$4 = _ref2 => {
66653
67510
  holderDetails = holderDetails[0] || {};
66654
67511
  }
66655
67512
  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) || {};
67513
+ 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) || {};
66656
67514
  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) || [];
66657
67515
  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) || {};
66658
67516
  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) || {};
66659
67517
  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) || {};
66660
67518
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
66661
- className: "overflow-y-scroll"
67519
+ style: {
67520
+ paddingRight: "16px",
67521
+ height: "auto",
67522
+ overflow: "visible"
67523
+ }
66662
67524
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66663
67525
  style: {
66664
67526
  marginTop: "10px",
@@ -66678,25 +67540,25 @@ const CheckPage$4 = _ref2 => {
66678
67540
  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 || "");
66679
67541
  const isAuthRep = String(val).toLowerCase().includes("authorized") || String(val).toLowerCase().includes("representative");
66680
67542
  if (isAuthRep) {
66681
- var _connectionDetails8, _data$additionalDetai, _connectionDetails9, _data$additionalDetai2, _connectionDetails0, _data$additionalDetai3;
67543
+ var _connectionDetails8, _data$additionalDetai2, _connectionDetails9, _data$additionalDetai3, _connectionDetails0, _data$additionalDetai4;
66682
67544
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66683
67545
  label: t("Authorized Representative Name"),
66684
- 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))}`
67546
+ 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))}`
66685
67547
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66686
67548
  label: t("Authorized Representative Designation"),
66687
- 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))}`
67549
+ 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))}`
66688
67550
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66689
67551
  label: t("CORE_COMMON_MOBILE_NUMBER"),
66690
- 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))}`
67552
+ 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))}`
66691
67553
  }));
66692
67554
  }
66693
67555
  return null;
66694
67556
  })(), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66695
67557
  label: t("WS_Billing_Address_Type"),
66696
- 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)))}`
66697
- }), ((_connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _data$additionalDetai5, _connectionDetails16, _data$additionalDetai6) => {
66698
- 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) || "";
66699
- 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) || "";
67558
+ 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)))}`
67559
+ }), ((_connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _data$additionalDetai6, _connectionDetails16, _data$additionalDetai7) => {
67560
+ 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) || "";
67561
+ 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) || "";
66700
67562
  if (compAddrStr && compAddrStr !== addrTypeStr && ["PERMANENT", "CORRESPONDENCE", "Permanent", "Correspondence"].includes(addrTypeStr)) {
66701
67563
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66702
67564
  label: t("Complete Address"),
@@ -66733,38 +67595,100 @@ const CheckPage$4 = _ref2 => {
66733
67595
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66734
67596
  label: t("WS_EMAIL_ID"),
66735
67597
  text: `${t(checkForNA$1((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
66736
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67598
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66737
67599
  style: {
66738
67600
  marginTop: "10px",
66739
67601
  marginBottom: "30px"
66740
67602
  }
66741
67603
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66742
- label: t("WS_ZRO_LOCATION"),
66743
- 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)))}`,
67604
+ label: "Divyangjan/Person with Disability?",
67605
+ text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
67606
+ })), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67607
+ style: {
67608
+ marginTop: "10px",
67609
+ marginBottom: "30px"
67610
+ }
67611
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67612
+ label: t("WS_DJB_EMPLOYEE"),
67613
+ text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
67614
+ actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
67615
+ onClick: onEdit
67616
+ })
67617
+ }), ((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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67618
+ label: t("WS_EMPLOYEE_ID"),
67619
+ text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
67620
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67621
+ label: t("WS_EMPLOYEE_DESIGNATION"),
67622
+ text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
67623
+ }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67624
+ label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
67625
+ text: /*#__PURE__*/React__default.createElement("span", {
67626
+ style: {
67627
+ display: "flex",
67628
+ alignItems: "center",
67629
+ gap: "8px",
67630
+ cursor: "pointer",
67631
+ color: "#f47738"
67632
+ },
67633
+ onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
67634
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
67635
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67636
+ style: {
67637
+ marginTop: "10px",
67638
+ marginBottom: "30px"
67639
+ }
67640
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67641
+ label: t("WS_NAME_OF_BANK"),
67642
+ text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
66744
67643
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
66745
67644
  onClick: onEdit
66746
67645
  })
66747
67646
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67647
+ label: t("WS_NAME_OF_BRANCH"),
67648
+ text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
67649
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67650
+ label: t("WS_IFSC_CODE"),
67651
+ text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
67652
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67653
+ label: t("WS_BANK_ACCOUNT_NO"),
67654
+ text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
67655
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67656
+ style: {
67657
+ marginTop: "10px",
67658
+ marginBottom: "30px"
67659
+ }
67660
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67661
+ label: t("Rain Water Harvesting Certificate"),
67662
+ text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
67663
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67664
+ style: {
67665
+ marginTop: "10px",
67666
+ marginBottom: "30px"
67667
+ }
67668
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66748
67669
  label: t("COMMON_ADDRESS_TYPE"),
66749
- 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)))}`
67670
+ 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)))}`,
67671
+ actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
67672
+ onClick: onEdit
67673
+ })
66750
67674
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66751
67675
  label: t("CORE_COMMON_PROFILE_CITY"),
66752
- 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)))}`
67676
+ 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)))}`
66753
67677
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66754
67678
  label: t("PINCODE"),
66755
- text: `${t(checkForNA$1(((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.pincode) || ((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : _propertyAddress14.pinCode)))}`
67679
+ text: `${t(checkForNA$1(((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.pincode) || ((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.pinCode)))}`
66756
67680
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66757
67681
  label: t("LOCALITY"),
66758
- 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)))}`
67682
+ 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)))}`
66759
67683
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66760
67684
  label: t("SubLocality"),
66761
- 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)))}`
67685
+ 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)))}`
66762
67686
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66763
67687
  label: t("STREET_NAME"),
66764
- text: `${t(checkForNA$1(((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : _propertyAddress21.streetName) || ((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.street)))}`
67688
+ text: `${t(checkForNA$1(((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : _propertyAddress32.streetName) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : _propertyAddress33.street)))}`
66765
67689
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66766
67690
  label: t("HOUSE_NO"),
66767
- text: `${t(checkForNA$1(((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.houseNo) || ((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.doorNo)))}`
67691
+ text: `${t(checkForNA$1(((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.houseNo) || ((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : _propertyAddress35.doorNo)))}`
66768
67692
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66769
67693
  label: t("WS_NUMBER_OF_FLOORS"),
66770
67694
  text: `${getFloorDisplay(rawNumberOfFloors)}`
@@ -66773,38 +67697,38 @@ const CheckPage$4 = _ref2 => {
66773
67697
  text: `${getTotalFloorsDisplay(rawTotalNoOfFloors)}`
66774
67698
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66775
67699
  label: t("ADDRESS_LINE1"),
66776
- text: `${t(checkForNA$1(((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.addressLine1) || ((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : _propertyAddress26.street)))}`
67700
+ text: `${t(checkForNA$1(((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : _propertyAddress36.addressLine1) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.street)))}`
66777
67701
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66778
67702
  label: t("ADDRESS_LINE2"),
66779
- text: `${t(checkForNA$1((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : _propertyAddress27.addressLine2))}`
67703
+ text: `${t(checkForNA$1((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.addressLine2))}`
66780
67704
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66781
67705
  label: t("LANDMARK"),
66782
- text: `${t(checkForNA$1((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.landmark))}`
67706
+ text: `${t(checkForNA$1((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.landmark))}`
66783
67707
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66784
67708
  label: t("LATITUDE_GEOTAG"),
66785
- text: `${t(checkForNA$1((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : _propertyAddress29.latitude))}`
67709
+ text: `${t(checkForNA$1((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.latitude))}`
66786
67710
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66787
67711
  label: t("LONGITUDE_GEOTAG"),
66788
- text: `${t(checkForNA$1((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : _propertyAddress30.longitude))}`
67712
+ text: `${t(checkForNA$1((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.longitude))}`
66789
67713
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66790
67714
  label: t("COMMON_ASSEMBLY"),
66791
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
67715
+ 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)))}`
66792
67716
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66793
67717
  label: t("COMMON_WARD"),
66794
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
67718
+ 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)))}`
66795
67719
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66796
67720
  label: t("COMMON_ZONE"),
66797
- 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) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
66798
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66799
- label: t("COMMON_CURRENT_ASSEMBLY"),
66800
- text: `${t(checkForNA$1(((_propertyAddress43 = propertyAddress) === null || _propertyAddress43 === void 0 ? void 0 : _propertyAddress43.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
66801
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66802
- label: t("COMMON_CURRENT_WARD"),
66803
- text: `${t(checkForNA$1(((_propertyAddress44 = propertyAddress) === null || _propertyAddress44 === void 0 ? void 0 : _propertyAddress44.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
66804
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66805
- label: t("COMMON_CURRENT_ZONE"),
66806
- text: `${t(checkForNA$1(((_propertyAddress45 = propertyAddress) === null || _propertyAddress45 === void 0 ? void 0 : _propertyAddress45.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
66807
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
67721
+ 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)))}`
67722
+ }), validActualAssembly ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67723
+ label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
67724
+ text: `${t(validActualAssembly)}`
67725
+ }) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67726
+ label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
67727
+ text: `${t(validActualWard)}`
67728
+ }) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
67729
+ label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
67730
+ text: `${t(validActualZone)}`
67731
+ }) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66808
67732
  style: {
66809
67733
  marginTop: "10px",
66810
67734
  marginBottom: "30px"
@@ -66850,51 +67774,6 @@ const CheckPage$4 = _ref2 => {
66850
67774
  label: displayLabel,
66851
67775
  text: `${t(checkForNA$1(aText))}`
66852
67776
  });
66853
- })), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66854
- style: {
66855
- marginTop: "10px",
66856
- marginBottom: "30px"
66857
- }
66858
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66859
- label: t("WS_DJB_EMPLOYEE"),
66860
- text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
66861
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
66862
- onClick: onEdit
66863
- })
66864
- }), ((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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66865
- label: t("WS_EMPLOYEE_ID"),
66866
- text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
66867
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66868
- label: t("WS_EMPLOYEE_DESIGNATION"),
66869
- text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
66870
- }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66871
- label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
66872
- text: /*#__PURE__*/React__default.createElement("span", {
66873
- style: {
66874
- display: "flex",
66875
- alignItems: "center",
66876
- gap: "8px",
66877
- cursor: "pointer",
66878
- color: "#f47738"
66879
- },
66880
- onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
66881
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
66882
- })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66883
- style: {
66884
- marginTop: "10px",
66885
- marginBottom: "30px"
66886
- }
66887
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66888
- label: "Divyangjan/Person with Disability?",
66889
- text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
66890
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66891
- style: {
66892
- marginTop: "10px",
66893
- marginBottom: "30px"
66894
- }
66895
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
66896
- label: t("Rain Water Harvesting Certificate"),
66897
- text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
66898
67777
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
66899
67778
  style: {
66900
67779
  marginTop: "10px",
@@ -66931,17 +67810,24 @@ const CheckPage$4 = _ref2 => {
66931
67810
  declarationData: declarationData
66932
67811
  },
66933
67812
  userType: "employee"
66934
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
66935
- label: t("CS_COMMON_SUBMIT"),
66936
- onSubmit: () => onSubmit({
66937
- ...data,
66938
- declarationData
66939
- }),
66940
- style: {
66941
- width: "150px"
66942
- },
66943
- disabled: !(declarationData !== null && declarationData !== void 0 && declarationData.agree)
66944
- }), " ")), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
67813
+ })), ((_declarationData$sign, _data$declarationData, _data$declaration, _data$additionalDetai8) => {
67814
+ 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));
67815
+ const isSubmitDisabled = !(declarationData !== null && declarationData !== void 0 && declarationData.agree) || !hasSignature;
67816
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
67817
+ label: t("CS_COMMON_SUBMIT"),
67818
+ onSubmit: () => {
67819
+ if (isSubmitDisabled) return;
67820
+ onSubmit({
67821
+ ...data,
67822
+ declarationData
67823
+ });
67824
+ },
67825
+ style: {
67826
+ width: "150px"
67827
+ },
67828
+ disabled: isSubmitDisabled
67829
+ }));
67830
+ })()), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
66945
67831
  open: showDocModal,
66946
67832
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
66947
67833
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -67025,6 +67911,8 @@ const OLDApplication = () => {
67025
67911
  label: "Are you a Divyangjan/Person with Disability?"
67026
67912
  }, {
67027
67913
  label: "WS_DJB_EMPLOYEE"
67914
+ }, {
67915
+ label: "WS_BANK_DETAILS"
67028
67916
  }, {
67029
67917
  label: "Rain Water Harvesting Certificate"
67030
67918
  }, {
@@ -67061,8 +67949,12 @@ const OLDApplication = () => {
67061
67949
  const formDataRef = React.useRef(sessionFormData || {});
67062
67950
  const sessionSaveTimeoutRef = React.useRef(null);
67063
67951
  const defaultValues = React.useMemo(() => {
67064
- return sessionFormData && Object.keys(sessionFormData).length > 0 ? sessionFormData : Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM") || {};
67065
- }, []);
67952
+ const fromStorage = Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM");
67953
+ if (fromStorage && Object.keys(fromStorage).length > 0) return fromStorage;
67954
+ if (sessionFormData && Object.keys(sessionFormData).length > 0) return sessionFormData;
67955
+ if (formDataRef.current && Object.keys(formDataRef.current).length > 0) return formDataRef.current;
67956
+ return {};
67957
+ }, [sessionFormData, showCheckPage]);
67066
67958
  const {
67067
67959
  data: propertyDetails
67068
67960
  } = Digit.Hooks.pt.usePropertySearch({
@@ -67096,7 +67988,7 @@ const OLDApplication = () => {
67096
67988
  };
67097
67989
  const configCopy = cloneDeep_1(foundConfig);
67098
67990
  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)) || [];
67099
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSRainWaterHarvesting", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
67991
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSBankDetails", "WSRainWaterHarvesting", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
67100
67992
  const reorderedBody = [];
67101
67993
  desiredComponentOrder.forEach(compName => {
67102
67994
  const section = allCreateSections.find(s => {
@@ -67178,6 +68070,19 @@ const OLDApplication = () => {
67178
68070
  }
67179
68071
  }]
67180
68072
  });
68073
+ } else if (compName === "WSBankDetails") {
68074
+ reorderedBody.push({
68075
+ isCreateConnection: true,
68076
+ body: [{
68077
+ type: "component",
68078
+ key: "bankDetails",
68079
+ component: "WSBankDetails",
68080
+ withoutLabel: true,
68081
+ texts: {
68082
+ header: "Bank Details"
68083
+ }
68084
+ }]
68085
+ });
67181
68086
  }
67182
68087
  });
67183
68088
  allCreateSections.forEach(section => {
@@ -67204,35 +68109,7 @@ const OLDApplication = () => {
67204
68109
  var _formDataRef$current, _formDataRef$current$, _formDataRef$current$2, _propertyDetails$Prop, _propertyDetails$Prop2;
67205
68110
  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);
67206
68111
  if (hasProp && !canSubmit) {
67207
- var _formDataRef$current2, _formDataRef$current3, _formDataRef$current4, _formDataRef$current5, _formDataRef$current6, _formDataRef$current7, _formDataRef$current8, _djbData$document, _formDataRef$current9, _formDataRef$current0;
67208
- 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);
67209
- const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
67210
- 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) || [];
67211
- const foundDjb = Array.isArray(docs) && docs.find(d => {
67212
- var _d$documentType;
67213
- 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));
67214
- });
67215
- 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);
67216
- 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);
67217
- 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);
67218
- 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";
67219
- 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)));
67220
- const isRwhInv = isRwhReq && !isRwhUploaded;
67221
- const storedErrors = sessionStorage.getItem("FORMSTATE_ERRORS");
67222
- let parsedErrors = {};
67223
- try {
67224
- parsedErrors = storedErrors ? JSON.parse(storedErrors) : {};
67225
- } catch (e) {}
67226
- const hasStoredErrors = Object.keys(parsedErrors).some(k => {
67227
- const err = parsedErrors[k];
67228
- if (!err) return false;
67229
- if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
67230
- if (typeof err === "object" && Object.keys(err).length === 0) return false;
67231
- return true;
67232
- });
67233
- if (!hasStoredErrors && !isDjbEmpInv && !isRwhInv) {
67234
- setSubmitValve(true);
67235
- }
68112
+ setSubmitValve(true);
67236
68113
  }
67237
68114
  }, [propertyId, propertyDetails]);
67238
68115
  const {
@@ -67252,7 +68129,7 @@ const OLDApplication = () => {
67252
68129
  mutate: sewerageUpdateMutation
67253
68130
  } = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
67254
68131
  const onFormValueChange = (setValue, formData, formState) => {
67255
- 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;
68132
+ 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;
67256
68133
  formDataRef.current = {
67257
68134
  ...formDataRef.current,
67258
68135
  ...formData
@@ -67262,6 +68139,7 @@ const OLDApplication = () => {
67262
68139
  }
67263
68140
  sessionSaveTimeoutRef.current = setTimeout(() => {
67264
68141
  Digit.SessionStorage.set("PT_CREATE_EMP_WS_NEW_FORM", formDataRef.current);
68142
+ setSessionFormData(formDataRef.current);
67265
68143
  }, 300);
67266
68144
  sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify((formState === null || formState === void 0 ? void 0 : formState.errors) || {}));
67267
68145
  const cptPropId = formData === null || formData === void 0 ? void 0 : (_formData$cpt = formData.cpt) === null || _formData$cpt === void 0 ? void 0 : (_formData$cpt$details = _formData$cpt.details) === null || _formData$cpt$details === void 0 ? void 0 : _formData$cpt$details.propertyId;
@@ -67271,45 +68149,34 @@ const OLDApplication = () => {
67271
68149
  const findDjbDoc = docs => {
67272
68150
  if (!Array.isArray(docs)) return null;
67273
68151
  const found = docs.find(d => {
67274
- var _d$documentType2;
67275
- 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));
68152
+ var _d$documentType;
68153
+ 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));
67276
68154
  });
67277
68155
  return found ? found.fileStoreId || found.file || found.filestoreId : null;
67278
68156
  };
67279
- 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);
68157
+ 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);
67280
68158
  const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
67281
- 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);
68159
+ 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);
67282
68160
  if (djbDoc) {
67283
68161
  if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
67284
68162
  formDataRef.current.djbEmployee.document = djbDoc;
67285
68163
  }
67286
68164
  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);
67287
- 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);
67288
- 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";
67289
- 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) || [];
68165
+ 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) || [];
67290
68166
  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)));
67291
- const isRwhInvalid = isRwhRequired && !isRwhDocUploaded;
67292
- const actualFormErrors = Object.keys((formState === null || formState === void 0 ? void 0 : formState.errors) || {}).filter(key => {
67293
- var _formState$errors;
67294
- const err = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : _formState$errors[key];
67295
- if (!err) return false;
67296
- if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
67297
- if (typeof err === "object" && Object.keys(err).length === 0) return false;
67298
- return true;
67299
- });
67300
- const hasErrors = actualFormErrors.length > 0 || isDjbEmpInvalid || isRwhInvalid;
67301
- 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);
67302
- const canSubmitNow = !hasErrors && !!hasProperty;
68167
+ 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);
68168
+ const canSubmitNow = !!hasProperty;
67303
68169
  setSubmitValve(prev => prev !== canSubmitNow ? canSubmitNow : prev);
67304
68170
  };
67305
68171
  const onFormSubmit = data => {
67306
- 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;
68172
+ 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;
67307
68173
  const combinedData = {
67308
68174
  ...formDataRef.current,
67309
68175
  ...data
67310
68176
  };
67311
68177
  formDataRef.current = combinedData;
67312
68178
  Digit.SessionStorage.set("PT_CREATE_EMP_WS_NEW_FORM", combinedData);
68179
+ setSessionFormData(combinedData);
67313
68180
  const hasProperty = (combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$cpt = combinedData.cpt) === null || _combinedData$cpt === void 0 ? void 0 : (_combinedData$cpt$det = _combinedData$cpt.details) === null || _combinedData$cpt$det === void 0 ? void 0 : _combinedData$cpt$det.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop5 = propertyDetails.Properties) === null || _propertyDetails$Prop5 === void 0 ? void 0 : (_propertyDetails$Prop6 = _propertyDetails$Prop5[0]) === null || _propertyDetails$Prop6 === void 0 ? void 0 : _propertyDetails$Prop6.propertyId);
67314
68181
  if (!hasProperty) {
67315
68182
  console.warn("[WS] onSubmit EXIT: invalid property", {
@@ -67336,17 +68203,26 @@ const OLDApplication = () => {
67336
68203
  return;
67337
68204
  }
67338
68205
  }
67339
- const djbData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.djbEmployee) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
67340
- const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
68206
+ const docsFromStorage = (() => {
68207
+ try {
68208
+ const stored = sessionStorage.getItem("DISCONNECTION_EDIT_DOCS");
68209
+ return stored ? JSON.parse(stored) : [];
68210
+ } catch (e) {
68211
+ return [];
68212
+ }
68213
+ })();
68214
+ 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];
67341
68215
  const findDjbDocInSubmit = docs => {
67342
68216
  if (!Array.isArray(docs)) return null;
67343
68217
  const found = docs.find(d => {
67344
- var _d$documentType3;
67345
- 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));
68218
+ var _d$documentType2;
68219
+ 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));
67346
68220
  });
67347
68221
  return found ? found.fileStoreId || found.file || found.filestoreId : null;
67348
68222
  };
67349
- 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);
68223
+ const djbData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.djbEmployee) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
68224
+ const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
68225
+ 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);
67350
68226
  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);
67351
68227
  if (isDjbEmpInvalid) {
67352
68228
  setShowToast({
@@ -67357,7 +68233,6 @@ const OLDApplication = () => {
67357
68233
  }
67358
68234
  const rwhSubmitData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.rainWaterHarvesting) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
67359
68235
  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";
67360
- 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) || [];
67361
68236
  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)));
67362
68237
  if (isRwhSubmitRequired && !isRwhSubmitDocUploaded) {
67363
68238
  setShowToast({
@@ -67372,6 +68247,67 @@ const OLDApplication = () => {
67372
68247
  if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
67373
68248
  formDataRef.current.djbEmployee.document = djbDoc;
67374
68249
  }
68250
+ const hasBankDetailsStep = config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.some(s => {
68251
+ var _s$body2, _s$body2$;
68252
+ 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";
68253
+ });
68254
+ if (hasBankDetailsStep) {
68255
+ var _combinedData$bankDet, _formDataRef$current22, _formDataRef$current23, _formDataRef$current24;
68256
+ 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);
68257
+ 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());
68258
+ if (isBankInvalid) {
68259
+ setShowToast({
68260
+ key: "error",
68261
+ message: t("ERR_BANK_DETAILS_MANDATORY") || "All Bank Details fields are mandatory"
68262
+ });
68263
+ return;
68264
+ }
68265
+ }
68266
+ const hasPhoto = allSubmitDocs.some(d => {
68267
+ var _d$documentType3;
68268
+ 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));
68269
+ });
68270
+ if (!hasPhoto) {
68271
+ setShowToast({
68272
+ key: "error",
68273
+ message: t("WS_PHOTO_MANDATORY") || "Applicant Photo is mandatory"
68274
+ });
68275
+ return;
68276
+ }
68277
+ const hasIdentity = allSubmitDocs.some(d => {
68278
+ var _d$documentType4, _d$documentType5;
68279
+ 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));
68280
+ });
68281
+ if (!hasIdentity) {
68282
+ setShowToast({
68283
+ key: "error",
68284
+ message: t("WS_IDENTITY_PROOF_MANDATORY") || "Identity Proof Document is mandatory"
68285
+ });
68286
+ return;
68287
+ }
68288
+ const hasOwnership = allSubmitDocs.some(d => {
68289
+ var _d$documentType6, _d$documentType7;
68290
+ 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));
68291
+ });
68292
+ if (!hasOwnership) {
68293
+ setShowToast({
68294
+ key: "error",
68295
+ message: t("WS_OWNERSHIP_PROOF_MANDATORY") || "Ownership Proof Document is mandatory"
68296
+ });
68297
+ return;
68298
+ }
68299
+ if (combinedData !== null && combinedData !== void 0 && combinedData.bankDetails) {
68300
+ combinedData.bankDetails = {
68301
+ ...combinedData.bankDetails,
68302
+ branchName: combinedData.bankDetails.branchName || combinedData.bankDetails.bankBranchName,
68303
+ bankBranchName: combinedData.bankDetails.bankBranchName || combinedData.bankDetails.branchName,
68304
+ bankAccountNumber: combinedData.bankDetails.bankAccountNumber || combinedData.bankDetails.accountNumber,
68305
+ accountNumber: combinedData.bankDetails.accountNumber || combinedData.bankDetails.bankAccountNumber
68306
+ };
68307
+ if (formDataRef.current) {
68308
+ formDataRef.current.bankDetails = combinedData.bankDetails;
68309
+ }
68310
+ }
67375
68311
  setShowCheckPage(true);
67376
68312
  };
67377
68313
  const processSubmission = function (data) {
@@ -67419,16 +68355,16 @@ const OLDApplication = () => {
67419
68355
  if (data !== null && data !== void 0 && (_data$DocumentsRequir = data.DocumentsRequired) !== null && _data$DocumentsRequir !== void 0 && _data$DocumentsRequir.documents) {
67420
68356
  const docs = data.DocumentsRequired.documents;
67421
68357
  const identityDoc = docs.find(d => {
67422
- var _d$documentType4;
67423
- return d === null || d === void 0 ? void 0 : (_d$documentType4 = d.documentType) === null || _d$documentType4 === void 0 ? void 0 : _d$documentType4.includes("IDENTITYPROOF");
68358
+ var _d$documentType8;
68359
+ return d === null || d === void 0 ? void 0 : (_d$documentType8 = d.documentType) === null || _d$documentType8 === void 0 ? void 0 : _d$documentType8.includes("IDENTITYPROOF");
67424
68360
  });
67425
68361
  const ownershipDoc = docs.find(d => {
67426
- var _d$documentType5, _d$documentType6;
67427
- 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"));
68362
+ var _d$documentType9, _d$documentType0;
68363
+ 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"));
67428
68364
  });
67429
68365
  const otherDoc = docs.find(d => {
67430
- var _d$documentType7;
67431
- return d === null || d === void 0 ? void 0 : (_d$documentType7 = d.documentType) === null || _d$documentType7 === void 0 ? void 0 : _d$documentType7.includes("OTHERDOCUMENTS");
68366
+ var _d$documentType1;
68367
+ return d === null || d === void 0 ? void 0 : (_d$documentType1 = d.documentType) === null || _d$documentType1 === void 0 ? void 0 : _d$documentType1.includes("OTHERDOCUMENTS");
67432
68368
  });
67433
68369
  data.documents = {
67434
68370
  documents: docs,
@@ -67438,11 +68374,11 @@ const OLDApplication = () => {
67438
68374
  };
67439
68375
  }
67440
68376
  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 => {
67441
- var _d$documentType8;
67442
- 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"));
68377
+ var _d$documentType10;
68378
+ 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"));
67443
68379
  })) === 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 => {
67444
- var _d$documentType9;
67445
- 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"));
68380
+ var _d$documentType11;
68381
+ 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"));
67446
68382
  })) === null || _data$documents$docum2 === void 0 ? void 0 : _data$documents$docum2.fileStoreId);
67447
68383
  if (djbDoc) {
67448
68384
  if (!data.djbEmployee) data.djbEmployee = {};
@@ -67475,6 +68411,13 @@ const OLDApplication = () => {
67475
68411
  var _data$declarationData, _data$declarationData2, _data$declarationData3, _data$declarationData4, _data$declarationData5, _data$declarationData6, _data$declarationData7, _data$declarationData8, _data$declarationData9, _data$declarationData0, _data$declarationData1, _data$declarationData10, _data$declarationData11, _data$declarationData12, _data$declarationData13, _data$declarationData14, _data$declarationData15;
67476
68412
  const declarations = (_data$declarationData = data.declarationData) !== null && _data$declarationData !== void 0 && _data$declarationData.agree ? true : false;
67477
68413
  const sigFsId = ((_data$declarationData2 = data.declarationData) === null || _data$declarationData2 === void 0 ? void 0 : _data$declarationData2.signatureFileStoreId) || ((_data$declarationData3 = data.declarationData) === null || _data$declarationData3 === void 0 ? void 0 : (_data$declarationData4 = _data$declarationData3.signatureFile) === null || _data$declarationData4 === void 0 ? void 0 : _data$declarationData4.fileStoreId) || (typeof ((_data$declarationData5 = data.declarationData) === null || _data$declarationData5 === void 0 ? void 0 : _data$declarationData5.signatureFile) === "string" ? (_data$declarationData6 = data.declarationData) === null || _data$declarationData6 === void 0 ? void 0 : _data$declarationData6.signatureFile : null) || ((_data$declarationData7 = data.declarationData) === null || _data$declarationData7 === void 0 ? void 0 : _data$declarationData7.signature) || null;
68414
+ if (!sigFsId) {
68415
+ setShowToast({
68416
+ key: "error",
68417
+ message: t("ERR_SIGNATURE_MANDATORY") || "Signature is mandatory to submit application"
68418
+ });
68419
+ return Promise.resolve();
68420
+ }
67478
68421
  const sigFileName = ((_data$declarationData8 = data.declarationData) === null || _data$declarationData8 === void 0 ? void 0 : _data$declarationData8.signatureFileName) || ((_data$declarationData9 = data.declarationData) === null || _data$declarationData9 === void 0 ? void 0 : (_data$declarationData0 = _data$declarationData9.signatureFile) === null || _data$declarationData0 === void 0 ? void 0 : _data$declarationData0.name) || ((_data$declarationData1 = data.declarationData) === null || _data$declarationData1 === void 0 ? void 0 : (_data$declarationData10 = _data$declarationData1.signatureFile) === null || _data$declarationData10 === void 0 ? void 0 : _data$declarationData10.fileName) || "signature.png";
67479
68422
  data.declaration = {
67480
68423
  ...data.declarationData,
@@ -67511,6 +68454,16 @@ const OLDApplication = () => {
67511
68454
  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)
67512
68455
  };
67513
68456
  }
68457
+ if (data !== null && data !== void 0 && data.bankDetails) {
68458
+ const normalizedBank = getNormalizedBankDetails(data);
68459
+ if (normalizedBank) {
68460
+ data.additionalDetails = {
68461
+ ...data.additionalDetails,
68462
+ ...normalizedBank,
68463
+ bankDetails: normalizedBank
68464
+ };
68465
+ }
68466
+ }
67514
68467
  if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.details)) {
67515
68468
  var _propertyDetails$Prop8;
67516
68469
  data.cpt = {
@@ -67687,6 +68640,13 @@ const OLDApplication = () => {
67687
68640
  if (isEnableLoader || isLoading) {
67688
68641
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
67689
68642
  }
68643
+ const handleEdit = () => {
68644
+ setShowCheckPage(false);
68645
+ window.scrollTo({
68646
+ top: 0,
68647
+ behavior: "smooth"
68648
+ });
68649
+ };
67690
68650
  if (showCheckPage) {
67691
68651
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
67692
68652
  className: "employee-form-section-wrapper"
@@ -67697,7 +68657,7 @@ const OLDApplication = () => {
67697
68657
  }), /*#__PURE__*/React__default.createElement(CheckPage$4, {
67698
68658
  data: formDataRef.current || sessionFormData,
67699
68659
  onSubmit: finalData => processSubmission(finalData || formDataRef.current || sessionFormData),
67700
- onEdit: () => setShowCheckPage(false)
68660
+ onEdit: handleEdit
67701
68661
  })));
67702
68662
  }
67703
68663
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {