@djb25/digit-ui-module-ws 1.0.118 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1300 -447
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1300 -447
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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
|
|
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$
|
|
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$
|
|
879
|
-
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$
|
|
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
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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$
|
|
1110
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1111
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1112
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1117
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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$
|
|
1279
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1280
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1281
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1286
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
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
|
|
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$
|
|
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$
|
|
22372
|
-
if (formValue !== null && formValue !== void 0 && (_formValue$
|
|
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$
|
|
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
|
-
|
|
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
|
|
26583
|
-
if (!address) return "";
|
|
26584
|
-
if (typeof address === "string"
|
|
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
|
-
|
|
26587
|
-
if (
|
|
26588
|
-
|
|
26589
|
-
|
|
26590
|
-
const
|
|
26591
|
-
|
|
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
|
-
|
|
26599
|
-
|
|
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 = (
|
|
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 || "";
|
|
26609
26731
|
}
|
|
26610
|
-
if (cityText)
|
|
26611
|
-
|
|
26612
|
-
parts.push(address.pincode);
|
|
26732
|
+
if (cityText && String(cityText).trim() && String(cityText).trim() !== "NA") {
|
|
26733
|
+
parts.push(String(cityText).trim());
|
|
26613
26734
|
}
|
|
26614
|
-
|
|
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());
|
|
26738
|
+
}
|
|
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$
|
|
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$
|
|
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) ||
|
|
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$
|
|
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$
|
|
26931
|
-
const currentPropertyId = formData === null || formData === void 0 ? void 0 : (_formData$
|
|
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
|
|
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$
|
|
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 => {
|
|
@@ -31515,8 +31646,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31515
31646
|
const removeEmployeeDocError = () => {
|
|
31516
31647
|
var _formState$errors2, _formState$errors2$co;
|
|
31517
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;
|
|
31518
|
-
if (
|
|
31519
|
-
if (type.includes("OWNER.DJB_EMPLOYEE_ID")) {
|
|
31649
|
+
if (Array.isArray(type)) {
|
|
31520
31650
|
type = type.filter(e => e != "OWNER.DJB_EMPLOYEE_ID");
|
|
31521
31651
|
if (!type.length) {
|
|
31522
31652
|
clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
|
|
@@ -31525,8 +31655,18 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31525
31655
|
type
|
|
31526
31656
|
});
|
|
31527
31657
|
}
|
|
31658
|
+
} else {
|
|
31659
|
+
clearFormErrors && clearFormErrors(config === null || config === void 0 ? void 0 : config.key);
|
|
31528
31660
|
}
|
|
31529
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]);
|
|
31530
31670
|
React.useEffect(() => {
|
|
31531
31671
|
if (isDjbEmployee) {
|
|
31532
31672
|
if (!hasDjbEmployeeDoc) {
|
|
@@ -31603,7 +31743,17 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31603
31743
|
const isDocRequired = isOtherDocument(doc === null || doc === void 0 ? void 0 : doc.code) ? false : doc.required;
|
|
31604
31744
|
let isRequired = false;
|
|
31605
31745
|
documents.map(data => {
|
|
31606
|
-
if (isDocRequired && data !== null && data !== void 0 && data.documentType.includes(doc.code))
|
|
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
|
+
}
|
|
31607
31757
|
});
|
|
31608
31758
|
if (!isRequired && isDocRequired) count = count + 1;
|
|
31609
31759
|
});
|
|
@@ -32043,7 +32193,7 @@ function EmployeeIdDocumentUpload(_ref2) {
|
|
|
32043
32193
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null)))));
|
|
32044
32194
|
}
|
|
32045
32195
|
function SelectDocument$2(_ref3) {
|
|
32046
|
-
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;
|
|
32047
32197
|
let {
|
|
32048
32198
|
t,
|
|
32049
32199
|
document: doc,
|
|
@@ -32075,6 +32225,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32075
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);
|
|
32076
32226
|
})[0];
|
|
32077
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;
|
|
32078
32231
|
const [selectedDocument, setSelectedDocument] = React.useState(() => {
|
|
32079
32232
|
var _filteredDocument$doc, _doc$dropdownData3, _doc$dropdownData4;
|
|
32080
32233
|
if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
@@ -32132,9 +32285,13 @@ function SelectDocument$2(_ref3) {
|
|
|
32132
32285
|
const [docNumberError, setDocNumberError] = React.useState(null);
|
|
32133
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"))));
|
|
32134
32287
|
const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
|
|
32135
|
-
|
|
32136
|
-
if (
|
|
32137
|
-
|
|
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
|
+
}
|
|
32138
32295
|
const upperCode = (docTypeCode || "").toUpperCase();
|
|
32139
32296
|
if (isOtherDocumentsRemark || upperCode.includes("OTHER_DOCUMENTS") || upperCode.includes("OTHERDOCUMENTS") || upperCode.includes("OTHER_DOCUMENT")) {
|
|
32140
32297
|
return null;
|
|
@@ -32403,15 +32560,17 @@ function SelectDocument$2(_ref3) {
|
|
|
32403
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);
|
|
32404
32561
|
}));
|
|
32405
32562
|
const isCompletelyEmpty = isApplicantPhoto ? !uploadedFile : !uploadedFile && (!documentUid || !documentUid.trim()) && !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
|
|
32406
|
-
const
|
|
32407
|
-
const
|
|
32408
|
-
const
|
|
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);
|
|
32409
32568
|
if (!isHidden) {
|
|
32410
32569
|
if (err) {
|
|
32411
32570
|
addError();
|
|
32412
|
-
} else if (
|
|
32571
|
+
} else if (isDocNumberMissing) {
|
|
32413
32572
|
addError();
|
|
32414
|
-
} else if (
|
|
32573
|
+
} else if (isDocMissing) {
|
|
32415
32574
|
addError();
|
|
32416
32575
|
} else if (rwhMissing) {
|
|
32417
32576
|
addError();
|
|
@@ -32542,7 +32701,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32542
32701
|
style: {
|
|
32543
32702
|
margin: 0
|
|
32544
32703
|
}
|
|
32545
|
-
}, 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`)
|
|
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", {
|
|
32546
32707
|
className: "field"
|
|
32547
32708
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
32548
32709
|
type: "text",
|
|
@@ -32557,11 +32718,15 @@ function SelectDocument$2(_ref3) {
|
|
|
32557
32718
|
val = val.substring(0, maxLen);
|
|
32558
32719
|
}
|
|
32559
32720
|
setDocumentUid(val);
|
|
32560
|
-
|
|
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
|
+
}
|
|
32561
32726
|
}
|
|
32562
32727
|
},
|
|
32563
32728
|
onBlur: () => {
|
|
32564
|
-
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));
|
|
32565
32730
|
},
|
|
32566
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"),
|
|
32567
32732
|
disabled: isDocumentUidLocked,
|
|
@@ -38312,7 +38477,7 @@ const PlumberDetails$1 = _props => {
|
|
|
38312
38477
|
};
|
|
38313
38478
|
|
|
38314
38479
|
const WSBankDetails = _ref => {
|
|
38315
|
-
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;
|
|
38316
38481
|
let {
|
|
38317
38482
|
config,
|
|
38318
38483
|
onSelect,
|
|
@@ -38325,60 +38490,143 @@ const WSBankDetails = _ref => {
|
|
|
38325
38490
|
const {
|
|
38326
38491
|
t
|
|
38327
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);
|
|
38328
38510
|
const {
|
|
38329
38511
|
control,
|
|
38330
38512
|
formState: localFormState,
|
|
38331
38513
|
watch,
|
|
38332
38514
|
trigger,
|
|
38333
38515
|
getValues,
|
|
38334
|
-
setValue
|
|
38516
|
+
setValue,
|
|
38517
|
+
reset
|
|
38335
38518
|
} = reactHookForm.useForm({
|
|
38336
|
-
defaultValues:
|
|
38337
|
-
|
|
38338
|
-
bankBranchName: "",
|
|
38339
|
-
ifscCode: "",
|
|
38340
|
-
accountNumber: "",
|
|
38341
|
-
confirmAccountNumber: "",
|
|
38342
|
-
accountHolderName: ""
|
|
38343
|
-
}
|
|
38519
|
+
defaultValues: initialVals,
|
|
38520
|
+
mode: "all"
|
|
38344
38521
|
});
|
|
38345
38522
|
const formValue = watch();
|
|
38346
38523
|
const {
|
|
38347
38524
|
errors
|
|
38348
38525
|
} = localFormState;
|
|
38526
|
+
const onSelectRef = React__default.useRef(onSelect);
|
|
38349
38527
|
React.useEffect(() => {
|
|
38350
|
-
|
|
38351
|
-
|
|
38352
|
-
|
|
38353
|
-
|
|
38354
|
-
|
|
38355
|
-
|
|
38356
|
-
|
|
38357
|
-
|
|
38358
|
-
|
|
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;
|
|
38359
38577
|
}
|
|
38360
38578
|
}
|
|
38361
|
-
}, [
|
|
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]);
|
|
38362
38580
|
React.useEffect(() => {
|
|
38363
|
-
var
|
|
38364
|
-
|
|
38365
|
-
|
|
38366
|
-
|
|
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"
|
|
38367
38607
|
});
|
|
38368
|
-
} else
|
|
38369
|
-
if (clearErrors) clearErrors(
|
|
38608
|
+
} else {
|
|
38609
|
+
if (clearErrors) clearErrors(configKey);
|
|
38370
38610
|
}
|
|
38371
|
-
}, [
|
|
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) || "");
|
|
38372
38613
|
React.useEffect(() => {
|
|
38373
38614
|
const ifsc = formValue === null || formValue === void 0 ? void 0 : formValue.ifscCode;
|
|
38374
|
-
if (ifsc && ifsc.length === 11) {
|
|
38615
|
+
if (ifsc && ifsc.length === 11 && ifsc !== lastFetchedIfscRef.current) {
|
|
38616
|
+
lastFetchedIfscRef.current = ifsc;
|
|
38375
38617
|
fetch(`https://ifsc.razorpay.com/${ifsc}`).then(response => {
|
|
38376
38618
|
if (response.ok) return response.json();
|
|
38377
38619
|
throw new Error("Invalid IFSC");
|
|
38378
38620
|
}).then(data => {
|
|
38379
38621
|
if (data) {
|
|
38380
|
-
setValue("bankName", data.BANK
|
|
38381
|
-
|
|
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
|
+
});
|
|
38382
38630
|
}
|
|
38383
38631
|
}).catch(err => {
|
|
38384
38632
|
console.error("IFSC lookup failed", err);
|
|
@@ -38391,16 +38639,48 @@ const WSBankDetails = _ref => {
|
|
|
38391
38639
|
fontSize: "12px",
|
|
38392
38640
|
marginTop: "-21px"
|
|
38393
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
|
+
};
|
|
38394
38658
|
const goNext = () => {
|
|
38395
|
-
|
|
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);
|
|
38396
38672
|
};
|
|
38397
|
-
const onSkip = () => onSelect();
|
|
38398
38673
|
const FormContent = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
38399
38674
|
title: t("WS_BANK_DETAILS"),
|
|
38400
38675
|
defaultOpen: true
|
|
38401
38676
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
38402
38677
|
className: "formcomposer-section-grid"
|
|
38403
|
-
}, /*#__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")
|
|
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", {
|
|
38404
38684
|
className: "field"
|
|
38405
38685
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
38406
38686
|
control: control,
|
|
@@ -38411,12 +38691,24 @@ const WSBankDetails = _ref => {
|
|
|
38411
38691
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
38412
38692
|
value: props.value,
|
|
38413
38693
|
placeholder: t("WS_NAME_OF_BANK_PLACEHOLDER"),
|
|
38414
|
-
onChange: e =>
|
|
38415
|
-
|
|
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
|
+
}
|
|
38416
38703
|
})
|
|
38417
|
-
}))), (_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, {
|
|
38418
38705
|
style: errorStyle
|
|
38419
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
38420
38712
|
className: "field"
|
|
38421
38713
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
38422
38714
|
control: control,
|
|
@@ -38427,12 +38719,24 @@ const WSBankDetails = _ref => {
|
|
|
38427
38719
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
38428
38720
|
value: props.value,
|
|
38429
38721
|
placeholder: t("WS_NAME_OF_BRANCH_PLACEHOLDER"),
|
|
38430
|
-
onChange: e =>
|
|
38431
|
-
|
|
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
|
+
}
|
|
38432
38731
|
})
|
|
38433
|
-
}))), (_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, {
|
|
38434
38733
|
style: errorStyle
|
|
38435
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
38436
38740
|
className: "field"
|
|
38437
38741
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
38438
38742
|
control: control,
|
|
@@ -38447,12 +38751,27 @@ const WSBankDetails = _ref => {
|
|
|
38447
38751
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
38448
38752
|
value: props.value,
|
|
38449
38753
|
placeholder: t("WS_IFSC_CODE_PLACEHOLDER"),
|
|
38450
|
-
onChange: e =>
|
|
38451
|
-
|
|
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
|
|
38452
38766
|
})
|
|
38453
|
-
}))), (_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, {
|
|
38454
38768
|
style: errorStyle
|
|
38455
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
38456
38775
|
className: "field"
|
|
38457
38776
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
38458
38777
|
control: control,
|
|
@@ -38473,13 +38792,19 @@ const WSBankDetails = _ref => {
|
|
|
38473
38792
|
value = value.slice(0, 18);
|
|
38474
38793
|
}
|
|
38475
38794
|
props.onChange(value);
|
|
38795
|
+
setValue("confirmAccountNumber", value);
|
|
38796
|
+
trigger("accountNumber");
|
|
38797
|
+
},
|
|
38798
|
+
onBlur: e => {
|
|
38799
|
+
props.onBlur(e);
|
|
38800
|
+
trigger("accountNumber");
|
|
38801
|
+
triggerParentSync();
|
|
38476
38802
|
},
|
|
38477
|
-
onBlur: props.onBlur,
|
|
38478
38803
|
maxLength: 18
|
|
38479
38804
|
})
|
|
38480
|
-
}))), (_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, {
|
|
38481
38806
|
style: errorStyle
|
|
38482
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
38483
38808
|
style: {
|
|
38484
38809
|
display: "none"
|
|
38485
38810
|
}
|
|
@@ -38503,8 +38828,7 @@ const WSBankDetails = _ref => {
|
|
|
38503
38828
|
t: t,
|
|
38504
38829
|
config: config,
|
|
38505
38830
|
onSelect: goNext,
|
|
38506
|
-
|
|
38507
|
-
isDisabled: Object.keys(errors).length > 0
|
|
38831
|
+
isDisabled: hasBankErrors || Object.keys(errors).length > 0
|
|
38508
38832
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
38509
38833
|
style: {
|
|
38510
38834
|
marginTop: "-30px",
|
|
@@ -38876,7 +39200,7 @@ const WSDeclaration = _ref => {
|
|
|
38876
39200
|
};
|
|
38877
39201
|
|
|
38878
39202
|
const WSDjbEmployee = _ref => {
|
|
38879
|
-
var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch,
|
|
39203
|
+
var _formData$additionalD, _formData$djbEmployee3, _localFormState$touch, _localFormState$error, _localFormState$error2, _localFormState$error3, _localFormState$error4, _localFormState$touch2, _formValue$designatio, _formValue$designatio2, _formData$dueVerifica;
|
|
38880
39204
|
let {
|
|
38881
39205
|
config,
|
|
38882
39206
|
onSelect,
|
|
@@ -38926,8 +39250,11 @@ const WSDjbEmployee = _ref => {
|
|
|
38926
39250
|
const errs = {};
|
|
38927
39251
|
const isEmp = (values === null || values === void 0 ? void 0 : values.isDjbEmployee) === true || String(values === null || values === void 0 ? void 0 : values.isDjbEmployee) === "true";
|
|
38928
39252
|
if (isEmp) {
|
|
38929
|
-
|
|
39253
|
+
const empId = String((values === null || values === void 0 ? void 0 : values.employeeId) || "").trim();
|
|
39254
|
+
if (!empId) {
|
|
38930
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)";
|
|
38931
39258
|
}
|
|
38932
39259
|
if (!(values !== null && values !== void 0 && values.designation) || !String(values === null || values === void 0 ? void 0 : values.designation).trim()) {
|
|
38933
39260
|
errs.designation = t("CORE_COMMON_REQUIRED_ERRMSG");
|
|
@@ -39003,12 +39330,9 @@ const WSDjbEmployee = _ref => {
|
|
|
39003
39330
|
message: "CORE_COMMON_REQUIRED_ERRMSG"
|
|
39004
39331
|
});
|
|
39005
39332
|
} else {
|
|
39006
|
-
|
|
39007
|
-
if (formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && _formState$errors[configKey] && clearErrors) {
|
|
39008
|
-
clearErrors(configKey);
|
|
39009
|
-
}
|
|
39333
|
+
if (clearErrors) clearErrors(configKey);
|
|
39010
39334
|
}
|
|
39011
|
-
}, [hasDjbErrors,
|
|
39335
|
+
}, [hasDjbErrors, config === null || config === void 0 ? void 0 : config.key]);
|
|
39012
39336
|
const goNext = () => {
|
|
39013
39337
|
onSelect(config.key, formValue);
|
|
39014
39338
|
};
|
|
@@ -39068,12 +39392,25 @@ const WSDjbEmployee = _ref => {
|
|
|
39068
39392
|
control: control,
|
|
39069
39393
|
name: "employeeId",
|
|
39070
39394
|
rules: {
|
|
39071
|
-
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
|
+
}
|
|
39072
39405
|
},
|
|
39073
39406
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
39407
|
+
type: "text",
|
|
39074
39408
|
value: props.value,
|
|
39409
|
+
maxlength: 8,
|
|
39410
|
+
maxLength: 8,
|
|
39075
39411
|
onChange: e => {
|
|
39076
|
-
|
|
39412
|
+
const cleanVal = e.target.value.replace(/\D/g, "").slice(0, 8);
|
|
39413
|
+
props.onChange(cleanVal);
|
|
39077
39414
|
trigger("employeeId");
|
|
39078
39415
|
},
|
|
39079
39416
|
onBlur: e => {
|
|
@@ -39082,9 +39419,9 @@ const WSDjbEmployee = _ref => {
|
|
|
39082
39419
|
},
|
|
39083
39420
|
placeholder: t("Employee ID")
|
|
39084
39421
|
})
|
|
39085
|
-
}), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch = localFormState.touched) === null || _localFormState$touch === void 0 ? void 0 : _localFormState$touch.employeeId) &&
|
|
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, {
|
|
39086
39423
|
style: errorStyle
|
|
39087
|
-
},
|
|
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", {
|
|
39088
39425
|
className: "check-page-link-button"
|
|
39089
39426
|
}, " *")), /*#__PURE__*/React__default.createElement("div", {
|
|
39090
39427
|
className: "field"
|
|
@@ -39498,6 +39835,86 @@ const PropertyWaterConnection = _ref => {
|
|
|
39498
39835
|
const watchPropertyType = watch("useDetails.propertyType");
|
|
39499
39836
|
const watchPropertyCategory = watch("useDetails.propertyCategory");
|
|
39500
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]);
|
|
39501
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";
|
|
39502
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";
|
|
39503
39920
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
@@ -39540,7 +39957,10 @@ const PropertyWaterConnection = _ref => {
|
|
|
39540
39957
|
var _ptServicesMastersDat2;
|
|
39541
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) || [];
|
|
39542
39959
|
const uniqueCats = [...new Set(list.map(item => item.propertyCategory).filter(Boolean))];
|
|
39543
|
-
return uniqueCats.
|
|
39960
|
+
return uniqueCats.sort((a, b) => a.localeCompare(b, undefined, {
|
|
39961
|
+
numeric: true,
|
|
39962
|
+
sensitivity: "base"
|
|
39963
|
+
})).map(cat => ({
|
|
39544
39964
|
code: cat,
|
|
39545
39965
|
name: cat,
|
|
39546
39966
|
i18nKey: cat
|
|
@@ -39554,6 +39974,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
39554
39974
|
code: item.code,
|
|
39555
39975
|
name: item.name || item.code,
|
|
39556
39976
|
i18nKey: item.i18nKey || item.code
|
|
39977
|
+
})).sort((a, b) => (a.name || "").localeCompare(b.name || "", undefined, {
|
|
39978
|
+
numeric: true,
|
|
39979
|
+
sensitivity: "base"
|
|
39557
39980
|
}));
|
|
39558
39981
|
}, [propertyType2List, ptServicesMastersData]);
|
|
39559
39982
|
const usageTypeOptions = React.useMemo(() => {
|
|
@@ -39561,7 +39984,10 @@ const PropertyWaterConnection = _ref => {
|
|
|
39561
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) || [];
|
|
39562
39985
|
const uniqueTypes = [...new Set(list.map(item => item.waterConnectionUsageType).filter(Boolean))];
|
|
39563
39986
|
const typesToMap = uniqueTypes.length > 0 ? uniqueTypes : ["Normal", "Bulk"];
|
|
39564
|
-
return typesToMap.
|
|
39987
|
+
return typesToMap.sort((a, b) => a.localeCompare(b, undefined, {
|
|
39988
|
+
numeric: true,
|
|
39989
|
+
sensitivity: "base"
|
|
39990
|
+
})).map(type => ({
|
|
39565
39991
|
code: type,
|
|
39566
39992
|
name: type,
|
|
39567
39993
|
value: type
|
|
@@ -39833,7 +40259,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
39833
40259
|
fontSize: "12px",
|
|
39834
40260
|
marginTop: "-21px"
|
|
39835
40261
|
};
|
|
39836
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
40262
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
39837
40263
|
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
39838
40264
|
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
39839
40265
|
style: props.style
|
|
@@ -40010,9 +40436,18 @@ const PropertyWaterConnection = _ref => {
|
|
|
40010
40436
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
40011
40437
|
t: t,
|
|
40012
40438
|
inputRef: register({
|
|
40439
|
+
required: t("REQUIRED_FIELD"),
|
|
40013
40440
|
pattern: {
|
|
40014
40441
|
value: DECIMAL_PATTERN$1,
|
|
40015
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;
|
|
40016
40451
|
}
|
|
40017
40452
|
}),
|
|
40018
40453
|
rules: {
|
|
@@ -40020,10 +40455,15 @@ const PropertyWaterConnection = _ref => {
|
|
|
40020
40455
|
},
|
|
40021
40456
|
name: "useDetails.plotArea",
|
|
40022
40457
|
disabled: isPropertyFound,
|
|
40023
|
-
placeholder: t("WS_PLOT_AREA")
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
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", {
|
|
40027
40467
|
className: "check-page-link-button"
|
|
40028
40468
|
}, "*")), /*#__PURE__*/React__default.createElement("div", {
|
|
40029
40469
|
className: "form-field"
|
|
@@ -40034,6 +40474,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
40034
40474
|
pattern: {
|
|
40035
40475
|
value: DECIMAL_PATTERN$1,
|
|
40036
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;
|
|
40037
40485
|
}
|
|
40038
40486
|
}),
|
|
40039
40487
|
name: "useDetails.builtUpArea",
|
|
@@ -40041,10 +40489,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
40041
40489
|
required: t("REQUIRED_FIELD")
|
|
40042
40490
|
},
|
|
40043
40491
|
disabled: isPropertyFound,
|
|
40044
|
-
placeholder: t("WS_BUILT_UP_AREA")
|
|
40045
|
-
|
|
40046
|
-
|
|
40047
|
-
|
|
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", {
|
|
40048
40507
|
className: "check-page-link-button"
|
|
40049
40508
|
}, " *")), /*#__PURE__*/React__default.createElement("div", {
|
|
40050
40509
|
className: "form-field"
|
|
@@ -40055,6 +40514,15 @@ const PropertyWaterConnection = _ref => {
|
|
|
40055
40514
|
pattern: {
|
|
40056
40515
|
value: DECIMAL_PATTERN$1,
|
|
40057
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;
|
|
40058
40526
|
}
|
|
40059
40527
|
}),
|
|
40060
40528
|
name: "useDetails.heightOfTheBuilding",
|
|
@@ -40062,10 +40530,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
40062
40530
|
required: t("REQUIRED_FIELD")
|
|
40063
40531
|
},
|
|
40064
40532
|
disabled: isPropertyFound,
|
|
40065
|
-
placeholder: t("WS_HEIGHT_OF_THE_BUILDING")
|
|
40066
|
-
|
|
40067
|
-
|
|
40068
|
-
|
|
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", {
|
|
40069
40548
|
className: "form-field"
|
|
40070
40549
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
40071
40550
|
control: control,
|
|
@@ -40103,7 +40582,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
40103
40582
|
placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
|
|
40104
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, {
|
|
40105
40584
|
style: errorStyle
|
|
40106
|
-
}, 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
|
+
}));
|
|
40107
40593
|
};
|
|
40108
40594
|
|
|
40109
40595
|
const WSPropertyWaterConnection = props => {
|
|
@@ -44186,6 +44672,20 @@ const newConfig = [{
|
|
|
44186
44672
|
cardText: "",
|
|
44187
44673
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
44188
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
|
+
}
|
|
44189
44689
|
}, {
|
|
44190
44690
|
route: "disability-details",
|
|
44191
44691
|
component: "WSDivyangjan",
|
|
@@ -47471,7 +47971,7 @@ const checkForNA$2 = value => {
|
|
|
47471
47971
|
return value ? value : "CS_NA";
|
|
47472
47972
|
};
|
|
47473
47973
|
const WSApplicationDetails = () => {
|
|
47474
|
-
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;
|
|
47475
47975
|
const getDisconnectionNoticeSearch = function () {
|
|
47476
47976
|
try {
|
|
47477
47977
|
var _data$WaterConnection227, _data$WaterConnection228, _data$SewerageConnect219, _data$SewerageConnect220;
|
|
@@ -47660,6 +48160,7 @@ const WSApplicationDetails = () => {
|
|
|
47660
48160
|
const useDetails = additionalDetails;
|
|
47661
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) || {};
|
|
47662
48162
|
const djbEmployee = additionalDetails;
|
|
48163
|
+
const bankDetails = (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.bankDetails) || additionalDetails || {};
|
|
47663
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;
|
|
47664
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) || "";
|
|
47665
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) || "";
|
|
@@ -47677,6 +48178,20 @@ const WSApplicationDetails = () => {
|
|
|
47677
48178
|
if (translated && translated !== key) return translated;
|
|
47678
48179
|
return str;
|
|
47679
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);
|
|
47680
48195
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
47681
48196
|
privacy: {
|
|
47682
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,
|
|
@@ -48136,6 +48651,9 @@ const WSApplicationDetails = () => {
|
|
|
48136
48651
|
marginBottom: "30px"
|
|
48137
48652
|
}
|
|
48138
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, {
|
|
48139
48657
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
48140
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)))}`
|
|
48141
48659
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48176,23 +48694,23 @@ const WSApplicationDetails = () => {
|
|
|
48176
48694
|
text: `${t(checkForNA$2(rawLongitude))}`
|
|
48177
48695
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48178
48696
|
label: t("COMMON_ASSEMBLY"),
|
|
48179
|
-
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
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)))}`
|
|
48180
48698
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48181
48699
|
label: t("COMMON_WARD"),
|
|
48182
|
-
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
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)))}`
|
|
48183
48701
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48184
48702
|
label: t("COMMON_ZONE"),
|
|
48185
|
-
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
48186
|
-
}), /*#__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, {
|
|
48187
48705
|
label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
|
|
48188
|
-
text: `${t(
|
|
48189
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48706
|
+
text: `${t(validActualAssembly)}`
|
|
48707
|
+
}) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48190
48708
|
label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
|
|
48191
|
-
text: `${t(
|
|
48192
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48709
|
+
text: `${t(validActualWard)}`
|
|
48710
|
+
}) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48193
48711
|
label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
|
|
48194
|
-
text: `${t(
|
|
48195
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48712
|
+
text: `${t(validActualZone)}`
|
|
48713
|
+
}) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48196
48714
|
label: t("LANDMARK"),
|
|
48197
48715
|
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
|
|
48198
48716
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
@@ -48376,7 +48894,28 @@ const WSApplicationDetails = () => {
|
|
|
48376
48894
|
color: "green",
|
|
48377
48895
|
fontWeight: "bold"
|
|
48378
48896
|
}
|
|
48379
|
-
}, t("BILL_ALREADY_PAID"))))))))), !
|
|
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, {
|
|
48380
48919
|
styles: {
|
|
48381
48920
|
fontSize: "28px"
|
|
48382
48921
|
}
|
|
@@ -50819,7 +51358,7 @@ const mapPropertyToFormFields = property => {
|
|
|
50819
51358
|
};
|
|
50820
51359
|
const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
|
|
50821
51360
|
if (waterResult) {
|
|
50822
|
-
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
|
|
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;
|
|
50823
51362
|
const propToUse = latestProperty || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.property);
|
|
50824
51363
|
const propMapped = mapPropertyToFormFields(propToUse);
|
|
50825
51364
|
waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
|
|
@@ -50954,23 +51493,24 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
|
|
|
50954
51493
|
}];
|
|
50955
51494
|
waterResult.addressType = addressTypeObj;
|
|
50956
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) || {};
|
|
50957
51497
|
waterResult.bankDetails = {
|
|
50958
|
-
bankName: (
|
|
50959
|
-
bankBranchName: (
|
|
50960
|
-
ifscCode: (
|
|
50961
|
-
accountNumber: (
|
|
50962
|
-
confirmAccountNumber: (
|
|
50963
|
-
accountHolderName: (
|
|
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) || ""
|
|
50964
51504
|
};
|
|
50965
51505
|
waterResult.djbEmployee = {
|
|
50966
|
-
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
50967
|
-
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
50968
|
-
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
50969
|
-
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
50970
|
-
document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
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) || ""
|
|
50971
51511
|
};
|
|
50972
51512
|
} else if (sewerageresult) {
|
|
50973
|
-
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
|
|
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;
|
|
50974
51514
|
sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
|
|
50975
51515
|
...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
|
|
50976
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,
|
|
@@ -51100,20 +51640,21 @@ const getEditDetails = (waterResult, sewerageresult, t, latestProperty) => {
|
|
|
51100
51640
|
}];
|
|
51101
51641
|
sewerageresult.addressType = addressTypeObjSewerage;
|
|
51102
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) || {};
|
|
51103
51644
|
sewerageresult.bankDetails = {
|
|
51104
|
-
bankName: (
|
|
51105
|
-
bankBranchName: (
|
|
51106
|
-
ifscCode: (
|
|
51107
|
-
accountNumber: (
|
|
51108
|
-
confirmAccountNumber: (
|
|
51109
|
-
accountHolderName: (
|
|
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) || ""
|
|
51110
51651
|
};
|
|
51111
51652
|
sewerageresult.djbEmployee = {
|
|
51112
|
-
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
51113
|
-
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
51114
|
-
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
51115
|
-
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
51116
|
-
document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
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) || ""
|
|
51117
51658
|
};
|
|
51118
51659
|
}
|
|
51119
51660
|
if (waterResult) return {
|
|
@@ -51457,6 +51998,31 @@ const EditApplication = _ref1 => {
|
|
|
51457
51998
|
params.SewerageConnectionResult.SewerageConnections[0].propertyId = propToSubmit === null || propToSubmit === void 0 ? void 0 : propToSubmit.propertyId;
|
|
51458
51999
|
}
|
|
51459
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
|
+
}
|
|
51460
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";
|
|
51461
52027
|
const appProp = (Waterresult === null || Waterresult === void 0 ? void 0 : Waterresult.property) || (Sewarageresult === null || Sewarageresult === void 0 ? void 0 : Sewarageresult.property);
|
|
51462
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));
|
|
@@ -51504,6 +52070,31 @@ const EditApplication = _ref1 => {
|
|
|
51504
52070
|
}
|
|
51505
52071
|
};
|
|
51506
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
|
+
});
|
|
51507
52098
|
} else {
|
|
51508
52099
|
setParams(prev => ({
|
|
51509
52100
|
...prev,
|
|
@@ -51526,7 +52117,7 @@ const EditApplication = _ref1 => {
|
|
|
51526
52117
|
config = config.slice(startIndex);
|
|
51527
52118
|
}
|
|
51528
52119
|
config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
|
|
51529
|
-
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"];
|
|
51530
52121
|
let sortedConfig = [];
|
|
51531
52122
|
desiredOrder.forEach(route => {
|
|
51532
52123
|
const found = config.find(c => c.route === route);
|
|
@@ -51724,7 +52315,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
51724
52315
|
};
|
|
51725
52316
|
|
|
51726
52317
|
const CheckPage = _ref => {
|
|
51727
|
-
var _value$ConnectionDeta, _value$waterConnectio, _cpt$
|
|
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;
|
|
51728
52319
|
let {
|
|
51729
52320
|
onSubmit,
|
|
51730
52321
|
value
|
|
@@ -51755,7 +52346,22 @@ const CheckPage = _ref => {
|
|
|
51755
52346
|
const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
|
|
51756
52347
|
const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
|
|
51757
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) || {};
|
|
51758
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);
|
|
51759
52365
|
const checkForNA = val => val ? val : "CS_NA";
|
|
51760
52366
|
const onEdit = () => {};
|
|
51761
52367
|
const ActionButton = () => null;
|
|
@@ -51771,33 +52377,33 @@ const CheckPage = _ref => {
|
|
|
51771
52377
|
};
|
|
51772
52378
|
let propAddArr = [];
|
|
51773
52379
|
if (cpt && cpt !== null && cpt !== void 0 && cpt.details && Object.keys(cpt === null || cpt === void 0 ? void 0 : cpt.details).length > 0) {
|
|
51774
|
-
var _cpt$
|
|
51775
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51776
|
-
var _cpt$
|
|
51777
|
-
propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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);
|
|
51778
52384
|
}
|
|
51779
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51780
|
-
var _cpt$
|
|
51781
|
-
propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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);
|
|
51782
52388
|
}
|
|
51783
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51784
|
-
var _cpt$
|
|
51785
|
-
propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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);
|
|
51786
52392
|
}
|
|
51787
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51788
|
-
var _cpt$
|
|
51789
|
-
propAddArr.push(t(Digit.Utils.pt.getMohallaLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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)));
|
|
51790
52396
|
}
|
|
51791
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51792
|
-
var _cpt$
|
|
51793
|
-
propAddArr.push(t(Digit.Utils.pt.getCityLocale(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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)));
|
|
51794
52400
|
}
|
|
51795
|
-
if (cpt !== null && cpt !== void 0 && (_cpt$
|
|
51796
|
-
var _cpt$
|
|
51797
|
-
propAddArr.push(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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);
|
|
51798
52404
|
}
|
|
51799
52405
|
}
|
|
51800
|
-
const reversedOwners = Array.isArray(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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() : [];
|
|
51801
52407
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Timeline, {
|
|
51802
52408
|
currentStep: 4
|
|
51803
52409
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
|
|
@@ -51823,13 +52429,13 @@ const CheckPage = _ref => {
|
|
|
51823
52429
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51824
52430
|
className: "border-none",
|
|
51825
52431
|
label: t("WS_CONNECTION_DETAILS_STATUS_LABEL"),
|
|
51826
|
-
text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
52432
|
+
text: t(cpt === null || cpt === void 0 ? void 0 : (_cpt$details18 = cpt.details) === null || _cpt$details18 === void 0 ? void 0 : _cpt$details18.status)
|
|
51827
52433
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
51828
52434
|
style: {
|
|
51829
52435
|
textAlign: "left"
|
|
51830
52436
|
}
|
|
51831
52437
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
51832
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
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}`
|
|
51833
52439
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
51834
52440
|
style: {
|
|
51835
52441
|
textAlign: "left"
|
|
@@ -51938,20 +52544,82 @@ const CheckPage = _ref => {
|
|
|
51938
52544
|
className: "border-none",
|
|
51939
52545
|
label: t("WS_EMAIL_ID"),
|
|
51940
52546
|
text: (ConnectionHolderDetails === null || ConnectionHolderDetails === void 0 ? void 0 : (_ConnectionHolderDeta0 = ConnectionHolderDetails[0]) === null || _ConnectionHolderDeta0 === void 0 ? void 0 : _ConnectionHolderDeta0.emailId) || t("CS_NA")
|
|
51941
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("
|
|
52547
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
51942
52548
|
style: {
|
|
51943
52549
|
marginTop: "10px",
|
|
51944
52550
|
marginBottom: "30px"
|
|
51945
52551
|
}
|
|
51946
52552
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51947
|
-
label: t("
|
|
51948
|
-
text: `${
|
|
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")}`,
|
|
51949
52563
|
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
51950
52564
|
onClick: onEdit
|
|
51951
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))}`
|
|
51952
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, {
|
|
52585
|
+
style: {
|
|
52586
|
+
marginTop: "10px",
|
|
52587
|
+
marginBottom: "30px"
|
|
52588
|
+
}
|
|
52589
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52590
|
+
label: t("WS_NAME_OF_BANK"),
|
|
52591
|
+
text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
|
|
52592
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
52593
|
+
onClick: onEdit
|
|
52594
|
+
})
|
|
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, {
|
|
51953
52618
|
label: t("COMMON_ADDRESS_TYPE"),
|
|
51954
|
-
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
|
+
})
|
|
51955
52623
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51956
52624
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
51957
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)))}`
|
|
@@ -51984,23 +52652,23 @@ const CheckPage = _ref => {
|
|
|
51984
52652
|
text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
|
|
51985
52653
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51986
52654
|
label: t("COMMON_ASSEMBLY"),
|
|
51987
|
-
text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
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)))}`
|
|
51988
52656
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51989
52657
|
label: t("COMMON_WARD"),
|
|
51990
|
-
text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
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)))}`
|
|
51991
52659
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51992
52660
|
label: t("COMMON_ZONE"),
|
|
51993
|
-
text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$
|
|
51994
|
-
}), /*#__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, {
|
|
51995
52663
|
label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
|
|
51996
|
-
text: `${t(
|
|
51997
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52664
|
+
text: `${t(validActualAssembly)}`
|
|
52665
|
+
}) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51998
52666
|
label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
|
|
51999
|
-
text: `${t(
|
|
52000
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52667
|
+
text: `${t(validActualWard)}`
|
|
52668
|
+
}) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52001
52669
|
label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
|
|
52002
|
-
text: `${t(
|
|
52003
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52670
|
+
text: `${t(validActualZone)}`
|
|
52671
|
+
}) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52004
52672
|
label: t("LANDMARK"),
|
|
52005
52673
|
text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
|
|
52006
52674
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
@@ -52055,51 +52723,6 @@ const CheckPage = _ref => {
|
|
|
52055
52723
|
label: displayLabel,
|
|
52056
52724
|
text: `${t(checkForNA(aText))}`
|
|
52057
52725
|
});
|
|
52058
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
52059
|
-
style: {
|
|
52060
|
-
marginTop: "10px",
|
|
52061
|
-
marginBottom: "30px"
|
|
52062
|
-
}
|
|
52063
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52064
|
-
label: t("WS_DJB_EMPLOYEE"),
|
|
52065
|
-
text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
|
|
52066
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
52067
|
-
onClick: onEdit
|
|
52068
|
-
})
|
|
52069
|
-
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52070
|
-
label: t("WS_EMPLOYEE_ID"),
|
|
52071
|
-
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
52072
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52073
|
-
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
52074
|
-
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
52075
|
-
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52076
|
-
label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
52077
|
-
text: /*#__PURE__*/React__default.createElement("span", {
|
|
52078
|
-
style: {
|
|
52079
|
-
display: "flex",
|
|
52080
|
-
alignItems: "center",
|
|
52081
|
-
gap: "8px",
|
|
52082
|
-
cursor: "pointer",
|
|
52083
|
-
color: "#f47738"
|
|
52084
|
-
},
|
|
52085
|
-
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
52086
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
52087
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DIVYANGJAN")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
52088
|
-
style: {
|
|
52089
|
-
marginTop: "10px",
|
|
52090
|
-
marginBottom: "30px"
|
|
52091
|
-
}
|
|
52092
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52093
|
-
label: t("WS_DIVYANGJAN"),
|
|
52094
|
-
text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
52095
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
52096
|
-
style: {
|
|
52097
|
-
marginTop: "10px",
|
|
52098
|
-
marginBottom: "30px"
|
|
52099
|
-
}
|
|
52100
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
52101
|
-
label: t("Rain Water Harvesting Certificate"),
|
|
52102
|
-
text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
52103
52726
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
52104
52727
|
style: {
|
|
52105
52728
|
paddingRight: "16px"
|
|
@@ -55297,6 +55920,8 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
|
|
|
55297
55920
|
const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
|
|
55298
55921
|
const NUMBER_PATTERN$2 = /^\d+$/;
|
|
55299
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}$/;
|
|
55300
55925
|
const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
|
|
55301
55926
|
const createOption = (code, name) => ({
|
|
55302
55927
|
code,
|
|
@@ -55746,7 +56371,12 @@ const FieldBlock = _ref3 => {
|
|
|
55746
56371
|
fontWeight: "600",
|
|
55747
56372
|
marginBottom: "0px"
|
|
55748
56373
|
}
|
|
55749
|
-
},
|
|
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, {
|
|
55750
56380
|
style: {
|
|
55751
56381
|
color: "#505A5F",
|
|
55752
56382
|
fontSize: "14px",
|
|
@@ -55977,7 +56607,7 @@ const FileUploadField = _ref6 => {
|
|
|
55977
56607
|
})))));
|
|
55978
56608
|
};
|
|
55979
56609
|
const NewApplication = () => {
|
|
55980
|
-
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;
|
|
55981
56611
|
const {
|
|
55982
56612
|
t
|
|
55983
56613
|
} = reactI18next.useTranslation();
|
|
@@ -56207,6 +56837,10 @@ const NewApplication = () => {
|
|
|
56207
56837
|
sectionId: "useDetails",
|
|
56208
56838
|
route: "use-details",
|
|
56209
56839
|
actions: "Property & Connection Use Details"
|
|
56840
|
+
}, {
|
|
56841
|
+
sectionId: "bankDetails",
|
|
56842
|
+
route: "bank-details",
|
|
56843
|
+
actions: "Bank Details"
|
|
56210
56844
|
}, {
|
|
56211
56845
|
sectionId: "documents",
|
|
56212
56846
|
route: "documents",
|
|
@@ -56486,7 +57120,7 @@ const NewApplication = () => {
|
|
|
56486
57120
|
};
|
|
56487
57121
|
const onSubmit = function (data) {
|
|
56488
57122
|
try {
|
|
56489
|
-
var _propertyDetails$Prop;
|
|
57123
|
+
var _data$useDetails, _data$useDetails2, _data$useDetails3, _data$useDetails4, _propertyDetails$Prop;
|
|
56490
57124
|
if (hasPendingUpload) {
|
|
56491
57125
|
setShowToast({
|
|
56492
57126
|
warning: true,
|
|
@@ -56494,6 +57128,28 @@ const NewApplication = () => {
|
|
|
56494
57128
|
});
|
|
56495
57129
|
return Promise.resolve();
|
|
56496
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
|
+
}
|
|
56497
57153
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
|
|
56498
57154
|
setShowToast({
|
|
56499
57155
|
key: "error",
|
|
@@ -56784,7 +57440,6 @@ const NewApplication = () => {
|
|
|
56784
57440
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
56785
57441
|
style: {
|
|
56786
57442
|
flex: "1",
|
|
56787
|
-
overflowY: "auto",
|
|
56788
57443
|
minWidth: 0
|
|
56789
57444
|
}
|
|
56790
57445
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -57304,10 +57959,19 @@ const NewApplication = () => {
|
|
|
57304
57959
|
required: isDjbEmployee
|
|
57305
57960
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
57306
57961
|
errorStyle: !!getFieldError("djbEmployee.employeeId"),
|
|
57962
|
+
maxlength: 8,
|
|
57963
|
+
maxLength: 8,
|
|
57307
57964
|
inputRef: register({
|
|
57308
|
-
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
|
+
}
|
|
57309
57970
|
}),
|
|
57310
|
-
name: "djbEmployee.employeeId"
|
|
57971
|
+
name: "djbEmployee.employeeId",
|
|
57972
|
+
onChange: e => {
|
|
57973
|
+
e.target.value = e.target.value.replace(/\D/g, "").slice(0, 8);
|
|
57974
|
+
}
|
|
57311
57975
|
})), /*#__PURE__*/React__default.createElement(FieldBlock, {
|
|
57312
57976
|
error: getFieldError("djbEmployee.officeNameAndAddress"),
|
|
57313
57977
|
isFullWidth: true,
|
|
@@ -57700,6 +58364,84 @@ const NewApplication = () => {
|
|
|
57700
58364
|
}),
|
|
57701
58365
|
name: "useDetails.hospitalBeds"
|
|
57702
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, {
|
|
57703
58445
|
description: "Documents to be attached. Maximum allowed file size is 5 MB.",
|
|
57704
58446
|
isOpen: collapsedSections.documents,
|
|
57705
58447
|
onToggle: toggleSection,
|
|
@@ -57776,10 +58518,13 @@ const NewApplication = () => {
|
|
|
57776
58518
|
})
|
|
57777
58519
|
})), /*#__PURE__*/React__default.createElement(FieldBlock, {
|
|
57778
58520
|
error: getFieldError("documents.identityProofNumber"),
|
|
57779
|
-
label: "Proof of Identity Document"
|
|
58521
|
+
label: "Proof of Identity Document *",
|
|
58522
|
+
required: true
|
|
57780
58523
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
57781
58524
|
name: "documents.identityProofNumber",
|
|
57782
|
-
inputRef: register(
|
|
58525
|
+
inputRef: register({
|
|
58526
|
+
required: "Proof of Identity Document Number is required."
|
|
58527
|
+
}),
|
|
57783
58528
|
placeholder: "Identity No."
|
|
57784
58529
|
})), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
57785
58530
|
control: control,
|
|
@@ -57826,10 +58571,13 @@ const NewApplication = () => {
|
|
|
57826
58571
|
})
|
|
57827
58572
|
})), /*#__PURE__*/React__default.createElement(FieldBlock, {
|
|
57828
58573
|
error: getFieldError("documents.ownershipDocumentNumber"),
|
|
57829
|
-
label: "Proof of Ownership Document"
|
|
58574
|
+
label: "Proof of Ownership Document *",
|
|
58575
|
+
required: true
|
|
57830
58576
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
57831
58577
|
name: "documents.ownershipDocumentNumber",
|
|
57832
|
-
inputRef: register(
|
|
58578
|
+
inputRef: register({
|
|
58579
|
+
required: "Proof of Ownership Document Number is required."
|
|
58580
|
+
}),
|
|
57833
58581
|
placeholder: "Ownership No."
|
|
57834
58582
|
})), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
57835
58583
|
control: control,
|
|
@@ -57953,9 +58701,6 @@ const NewApplication = () => {
|
|
|
57953
58701
|
title: "Application Selection",
|
|
57954
58702
|
onEditClick: () => handleSectionEdit("application")
|
|
57955
58703
|
}, /*#__PURE__*/React__default.createElement(PreviewItem, {
|
|
57956
|
-
label: "ZRO Location",
|
|
57957
|
-
value: formValues === null || formValues === void 0 ? void 0 : formValues.zro
|
|
57958
|
-
}), /*#__PURE__*/React__default.createElement(PreviewItem, {
|
|
57959
58704
|
label: "Service Type",
|
|
57960
58705
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicati = formValues.applicationSelection) === null || _formValues$applicati === void 0 ? void 0 : _formValues$applicati.serviceType
|
|
57961
58706
|
}), /*#__PURE__*/React__default.createElement(PreviewItem, {
|
|
@@ -58191,6 +58936,25 @@ const NewApplication = () => {
|
|
|
58191
58936
|
}), /*#__PURE__*/React__default.createElement(PreviewItem, {
|
|
58192
58937
|
label: "Water Connection Usage Type",
|
|
58193
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
|
|
58194
58958
|
})), /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
58195
58959
|
description: "Uploaded supporting documents.",
|
|
58196
58960
|
isOpen: collapsedSections.documents,
|
|
@@ -59159,7 +59923,7 @@ const GetConnectionDetails = () => {
|
|
|
59159
59923
|
position: "relative",
|
|
59160
59924
|
width: "100%",
|
|
59161
59925
|
height: "100%",
|
|
59162
|
-
overflowY: "
|
|
59926
|
+
overflowY: "visible"
|
|
59163
59927
|
}
|
|
59164
59928
|
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
59165
59929
|
style: {
|
|
@@ -64629,7 +65393,6 @@ const MutationApplication = () => {
|
|
|
64629
65393
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
64630
65394
|
style: {
|
|
64631
65395
|
flex: "1",
|
|
64632
|
-
overflowY: "auto",
|
|
64633
65396
|
minWidth: 0
|
|
64634
65397
|
}
|
|
64635
65398
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
@@ -66675,7 +67438,7 @@ const openFilePDF = fileId => {
|
|
|
66675
67438
|
}).catch(error => console.error("Error fetching file:", error));
|
|
66676
67439
|
};
|
|
66677
67440
|
const CheckPage$4 = _ref2 => {
|
|
66678
|
-
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,
|
|
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;
|
|
66679
67442
|
let {
|
|
66680
67443
|
data,
|
|
66681
67444
|
onSubmit,
|
|
@@ -66696,8 +67459,22 @@ const CheckPage$4 = _ref2 => {
|
|
|
66696
67459
|
propertyAddress = (cpt === null || cpt === void 0 ? void 0 : cpt.address) || {};
|
|
66697
67460
|
}
|
|
66698
67461
|
const additionalDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.additionalDetails) || {};
|
|
66699
|
-
const
|
|
66700
|
-
const
|
|
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);
|
|
66701
67478
|
const getFloorDisplay = floor => {
|
|
66702
67479
|
if (floor === undefined || floor === null || floor === "") return t("CS_NA");
|
|
66703
67480
|
if (typeof floor === "object") {
|
|
@@ -66733,12 +67510,17 @@ const CheckPage$4 = _ref2 => {
|
|
|
66733
67510
|
holderDetails = holderDetails[0] || {};
|
|
66734
67511
|
}
|
|
66735
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) || {};
|
|
66736
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) || [];
|
|
66737
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) || {};
|
|
66738
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) || {};
|
|
66739
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) || {};
|
|
66740
67518
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
66741
|
-
|
|
67519
|
+
style: {
|
|
67520
|
+
paddingRight: "16px",
|
|
67521
|
+
height: "auto",
|
|
67522
|
+
overflow: "visible"
|
|
67523
|
+
}
|
|
66742
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, {
|
|
66743
67525
|
style: {
|
|
66744
67526
|
marginTop: "10px",
|
|
@@ -66758,25 +67540,25 @@ const CheckPage$4 = _ref2 => {
|
|
|
66758
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 || "");
|
|
66759
67541
|
const isAuthRep = String(val).toLowerCase().includes("authorized") || String(val).toLowerCase().includes("representative");
|
|
66760
67542
|
if (isAuthRep) {
|
|
66761
|
-
var _connectionDetails8, _data$
|
|
67543
|
+
var _connectionDetails8, _data$additionalDetai2, _connectionDetails9, _data$additionalDetai3, _connectionDetails0, _data$additionalDetai4;
|
|
66762
67544
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66763
67545
|
label: t("Authorized Representative Name"),
|
|
66764
|
-
text: `${checkForNA$1(((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : _connectionDetails8.authorizedRepresentativeName) || (data === null || data === void 0 ? void 0 : (_data$
|
|
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))}`
|
|
66765
67547
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66766
67548
|
label: t("Authorized Representative Designation"),
|
|
66767
|
-
text: `${checkForNA$1(((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : _connectionDetails9.authorizedRepresentativeDesignation) || (data === null || data === void 0 ? void 0 : (_data$
|
|
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))}`
|
|
66768
67550
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66769
67551
|
label: t("CORE_COMMON_MOBILE_NUMBER"),
|
|
66770
|
-
text: `${checkForNA$1(((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : _connectionDetails0.authorizedRepresentativeMobileNumber) || (data === null || data === void 0 ? void 0 : (_data$
|
|
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))}`
|
|
66771
67553
|
}));
|
|
66772
67554
|
}
|
|
66773
67555
|
return null;
|
|
66774
67556
|
})(), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66775
67557
|
label: t("WS_Billing_Address_Type"),
|
|
66776
|
-
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$
|
|
66777
|
-
}), ((_connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _data$
|
|
66778
|
-
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$
|
|
66779
|
-
const compAddrStr = ((_connectionDetails16 = connectionDetails) === null || _connectionDetails16 === void 0 ? void 0 : _connectionDetails16.completeAddress) || (data === null || data === void 0 ? void 0 : (_data$
|
|
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) || "";
|
|
66780
67562
|
if (compAddrStr && compAddrStr !== addrTypeStr && ["PERMANENT", "CORRESPONDENCE", "Permanent", "Correspondence"].includes(addrTypeStr)) {
|
|
66781
67563
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66782
67564
|
label: t("Complete Address"),
|
|
@@ -66813,38 +67595,100 @@ const CheckPage$4 = _ref2 => {
|
|
|
66813
67595
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66814
67596
|
label: t("WS_EMAIL_ID"),
|
|
66815
67597
|
text: `${t(checkForNA$1((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
|
|
66816
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null,
|
|
67598
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
66817
67599
|
style: {
|
|
66818
67600
|
marginTop: "10px",
|
|
66819
67601
|
marginBottom: "30px"
|
|
66820
67602
|
}
|
|
66821
67603
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66822
|
-
label:
|
|
66823
|
-
text:
|
|
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")}`,
|
|
66824
67614
|
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
66825
67615
|
onClick: onEdit
|
|
66826
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))}`
|
|
66827
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))}`,
|
|
67643
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
67644
|
+
onClick: onEdit
|
|
67645
|
+
})
|
|
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, {
|
|
66828
67669
|
label: t("COMMON_ADDRESS_TYPE"),
|
|
66829
|
-
text: `${t(checkForNA$1(((
|
|
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
|
+
})
|
|
66830
67674
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66831
67675
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
66832
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66833
67677
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66834
67678
|
label: t("PINCODE"),
|
|
66835
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66836
67680
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66837
67681
|
label: t("LOCALITY"),
|
|
66838
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66839
67683
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66840
67684
|
label: t("SubLocality"),
|
|
66841
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66842
67686
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66843
67687
|
label: t("STREET_NAME"),
|
|
66844
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66845
67689
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66846
67690
|
label: t("HOUSE_NO"),
|
|
66847
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66848
67692
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66849
67693
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
66850
67694
|
text: `${getFloorDisplay(rawNumberOfFloors)}`
|
|
@@ -66853,38 +67697,38 @@ const CheckPage$4 = _ref2 => {
|
|
|
66853
67697
|
text: `${getTotalFloorsDisplay(rawTotalNoOfFloors)}`
|
|
66854
67698
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66855
67699
|
label: t("ADDRESS_LINE1"),
|
|
66856
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66857
67701
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66858
67702
|
label: t("ADDRESS_LINE2"),
|
|
66859
|
-
text: `${t(checkForNA$1((
|
|
67703
|
+
text: `${t(checkForNA$1((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.addressLine2))}`
|
|
66860
67704
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66861
67705
|
label: t("LANDMARK"),
|
|
66862
|
-
text: `${t(checkForNA$1((
|
|
67706
|
+
text: `${t(checkForNA$1((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.landmark))}`
|
|
66863
67707
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66864
67708
|
label: t("LATITUDE_GEOTAG"),
|
|
66865
|
-
text: `${t(checkForNA$1((
|
|
67709
|
+
text: `${t(checkForNA$1((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.latitude))}`
|
|
66866
67710
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66867
67711
|
label: t("LONGITUDE_GEOTAG"),
|
|
66868
|
-
text: `${t(checkForNA$1((
|
|
67712
|
+
text: `${t(checkForNA$1((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.longitude))}`
|
|
66869
67713
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66870
67714
|
label: t("COMMON_ASSEMBLY"),
|
|
66871
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66872
67716
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66873
67717
|
label: t("COMMON_WARD"),
|
|
66874
|
-
text: `${t(checkForNA$1(((
|
|
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)))}`
|
|
66875
67719
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66876
67720
|
label: t("COMMON_ZONE"),
|
|
66877
|
-
text: `${t(checkForNA$1(((
|
|
66878
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
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, {
|
|
66879
67723
|
label: t("COMMON_CURRENT_ASSEMBLY") && t("COMMON_CURRENT_ASSEMBLY") !== "Assembly" && t("COMMON_CURRENT_ASSEMBLY") !== "COMMON_CURRENT_ASSEMBLY" ? t("COMMON_CURRENT_ASSEMBLY") : "Actual Assembly",
|
|
66880
|
-
text: `${t(
|
|
66881
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
67724
|
+
text: `${t(validActualAssembly)}`
|
|
67725
|
+
}) : null, validActualWard ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66882
67726
|
label: t("COMMON_CURRENT_WARD") && t("COMMON_CURRENT_WARD") !== "Ward" && t("COMMON_CURRENT_WARD") !== "COMMON_CURRENT_WARD" ? t("COMMON_CURRENT_WARD") : "Actual Ward",
|
|
66883
|
-
text: `${t(
|
|
66884
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
67727
|
+
text: `${t(validActualWard)}`
|
|
67728
|
+
}) : null, validActualZone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66885
67729
|
label: t("COMMON_CURRENT_ZONE") && t("COMMON_CURRENT_ZONE") !== "Zone" && t("COMMON_CURRENT_ZONE") !== "COMMON_CURRENT_ZONE" ? t("COMMON_CURRENT_ZONE") : "Actual Zone",
|
|
66886
|
-
text: `${t(
|
|
66887
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
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, {
|
|
66888
67732
|
style: {
|
|
66889
67733
|
marginTop: "10px",
|
|
66890
67734
|
marginBottom: "30px"
|
|
@@ -66916,10 +67760,10 @@ const CheckPage$4 = _ref2 => {
|
|
|
66916
67760
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66917
67761
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
66918
67762
|
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
66919
|
-
}), String((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC3 = useDetails.propertyCategory) === null || _useDetails$propertyC3 === void 0 ? void 0 : _useDetails$propertyC3.code) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC4 = useDetails.propertyCategory) === null || _useDetails$propertyC4 === void 0 ? void 0 : _useDetails$propertyC4.name) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
67763
|
+
}), String((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC3 = useDetails.propertyCategory) === null || _useDetails$propertyC3 === void 0 ? void 0 : _useDetails$propertyC3.code) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC4 = useDetails.propertyCategory) === null || _useDetails$propertyC4 === void 0 ? void 0 : _useDetails$propertyC4.name) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail5 = cpt.additionalDetails) === null || _cpt$additionalDetail5 === void 0 ? void 0 : (_cpt$additionalDetail6 = _cpt$additionalDetail5.propertyCategory) === null || _cpt$additionalDetail6 === void 0 ? void 0 : _cpt$additionalDetail6.code) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail7 = cpt.additionalDetails) === null || _cpt$additionalDetail7 === void 0 ? void 0 : _cpt$additionalDetail7.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$propertyType = cpt.propertyType) === null || _cpt$propertyType === void 0 ? void 0 : _cpt$propertyType.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : cpt.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66920
67764
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
66921
67765
|
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
66922
|
-
}) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$
|
|
67766
|
+
}) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail8 = cpt.additionalDetails) === null || _cpt$additionalDetail8 === void 0 ? void 0 : _cpt$additionalDetail8.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail9 = cpt.additionalDetails) === null || _cpt$additionalDetail9 === void 0 ? void 0 : _cpt$additionalDetail9.questions) : []).map((q, idx) => {
|
|
66923
67767
|
var _q$answer, _q$answer2, _q$answer3;
|
|
66924
67768
|
const qText = typeof q === "object" ? (q === null || q === void 0 ? void 0 : q.question) || (q === null || q === void 0 ? void 0 : q.questionText) || (q === null || q === void 0 ? void 0 : q.title) || `Question ${idx + 1}` : `Question ${idx + 1}`;
|
|
66925
67769
|
const aText = typeof q === "object" ? typeof (q === null || q === void 0 ? void 0 : q.answer) === "object" ? (q === null || q === void 0 ? void 0 : (_q$answer = q.answer) === null || _q$answer === void 0 ? void 0 : _q$answer.name) || (q === null || q === void 0 ? void 0 : (_q$answer2 = q.answer) === null || _q$answer2 === void 0 ? void 0 : _q$answer2.value) || (q === null || q === void 0 ? void 0 : (_q$answer3 = q.answer) === null || _q$answer3 === void 0 ? void 0 : _q$answer3.code) : q === null || q === void 0 ? void 0 : q.answer : q;
|
|
@@ -66930,51 +67774,6 @@ const CheckPage$4 = _ref2 => {
|
|
|
66930
67774
|
label: displayLabel,
|
|
66931
67775
|
text: `${t(checkForNA$1(aText))}`
|
|
66932
67776
|
});
|
|
66933
|
-
})), /*#__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, {
|
|
66934
|
-
style: {
|
|
66935
|
-
marginTop: "10px",
|
|
66936
|
-
marginBottom: "30px"
|
|
66937
|
-
}
|
|
66938
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66939
|
-
label: t("WS_DJB_EMPLOYEE"),
|
|
66940
|
-
text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
|
|
66941
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
66942
|
-
onClick: onEdit
|
|
66943
|
-
})
|
|
66944
|
-
}), ((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, {
|
|
66945
|
-
label: t("WS_EMPLOYEE_ID"),
|
|
66946
|
-
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
66947
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66948
|
-
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
66949
|
-
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
66950
|
-
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66951
|
-
label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
66952
|
-
text: /*#__PURE__*/React__default.createElement("span", {
|
|
66953
|
-
style: {
|
|
66954
|
-
display: "flex",
|
|
66955
|
-
alignItems: "center",
|
|
66956
|
-
gap: "8px",
|
|
66957
|
-
cursor: "pointer",
|
|
66958
|
-
color: "#f47738"
|
|
66959
|
-
},
|
|
66960
|
-
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
66961
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
66962
|
-
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
66963
|
-
style: {
|
|
66964
|
-
marginTop: "10px",
|
|
66965
|
-
marginBottom: "30px"
|
|
66966
|
-
}
|
|
66967
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66968
|
-
label: "Divyangjan/Person with Disability?",
|
|
66969
|
-
text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
|
|
66970
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
66971
|
-
style: {
|
|
66972
|
-
marginTop: "10px",
|
|
66973
|
-
marginBottom: "30px"
|
|
66974
|
-
}
|
|
66975
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
66976
|
-
label: t("Rain Water Harvesting Certificate"),
|
|
66977
|
-
text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
|
|
66978
67777
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
66979
67778
|
style: {
|
|
66980
67779
|
marginTop: "10px",
|
|
@@ -67011,8 +67810,8 @@ const CheckPage$4 = _ref2 => {
|
|
|
67011
67810
|
declarationData: declarationData
|
|
67012
67811
|
},
|
|
67013
67812
|
userType: "employee"
|
|
67014
|
-
})), ((_declarationData$sign, _data$declarationData, _data$declaration, _data$
|
|
67015
|
-
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$
|
|
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));
|
|
67016
67815
|
const isSubmitDisabled = !(declarationData !== null && declarationData !== void 0 && declarationData.agree) || !hasSignature;
|
|
67017
67816
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
67018
67817
|
label: t("CS_COMMON_SUBMIT"),
|
|
@@ -67112,6 +67911,8 @@ const OLDApplication = () => {
|
|
|
67112
67911
|
label: "Are you a Divyangjan/Person with Disability?"
|
|
67113
67912
|
}, {
|
|
67114
67913
|
label: "WS_DJB_EMPLOYEE"
|
|
67914
|
+
}, {
|
|
67915
|
+
label: "WS_BANK_DETAILS"
|
|
67115
67916
|
}, {
|
|
67116
67917
|
label: "Rain Water Harvesting Certificate"
|
|
67117
67918
|
}, {
|
|
@@ -67187,7 +67988,7 @@ const OLDApplication = () => {
|
|
|
67187
67988
|
};
|
|
67188
67989
|
const configCopy = cloneDeep_1(foundConfig);
|
|
67189
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)) || [];
|
|
67190
|
-
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"];
|
|
67191
67992
|
const reorderedBody = [];
|
|
67192
67993
|
desiredComponentOrder.forEach(compName => {
|
|
67193
67994
|
const section = allCreateSections.find(s => {
|
|
@@ -67269,6 +68070,19 @@ const OLDApplication = () => {
|
|
|
67269
68070
|
}
|
|
67270
68071
|
}]
|
|
67271
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
|
+
});
|
|
67272
68086
|
}
|
|
67273
68087
|
});
|
|
67274
68088
|
allCreateSections.forEach(section => {
|
|
@@ -67295,35 +68109,7 @@ const OLDApplication = () => {
|
|
|
67295
68109
|
var _formDataRef$current, _formDataRef$current$, _formDataRef$current$2, _propertyDetails$Prop, _propertyDetails$Prop2;
|
|
67296
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);
|
|
67297
68111
|
if (hasProp && !canSubmit) {
|
|
67298
|
-
|
|
67299
|
-
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);
|
|
67300
|
-
const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
67301
|
-
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) || [];
|
|
67302
|
-
const foundDjb = Array.isArray(docs) && docs.find(d => {
|
|
67303
|
-
var _d$documentType;
|
|
67304
|
-
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));
|
|
67305
|
-
});
|
|
67306
|
-
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);
|
|
67307
|
-
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);
|
|
67308
|
-
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);
|
|
67309
|
-
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";
|
|
67310
|
-
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)));
|
|
67311
|
-
const isRwhInv = isRwhReq && !isRwhUploaded;
|
|
67312
|
-
const storedErrors = sessionStorage.getItem("FORMSTATE_ERRORS");
|
|
67313
|
-
let parsedErrors = {};
|
|
67314
|
-
try {
|
|
67315
|
-
parsedErrors = storedErrors ? JSON.parse(storedErrors) : {};
|
|
67316
|
-
} catch (e) {}
|
|
67317
|
-
const hasStoredErrors = Object.keys(parsedErrors).some(k => {
|
|
67318
|
-
const err = parsedErrors[k];
|
|
67319
|
-
if (!err) return false;
|
|
67320
|
-
if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
|
|
67321
|
-
if (typeof err === "object" && Object.keys(err).length === 0) return false;
|
|
67322
|
-
return true;
|
|
67323
|
-
});
|
|
67324
|
-
if (!hasStoredErrors && !isDjbEmpInv && !isRwhInv) {
|
|
67325
|
-
setSubmitValve(true);
|
|
67326
|
-
}
|
|
68112
|
+
setSubmitValve(true);
|
|
67327
68113
|
}
|
|
67328
68114
|
}, [propertyId, propertyDetails]);
|
|
67329
68115
|
const {
|
|
@@ -67343,7 +68129,7 @@ const OLDApplication = () => {
|
|
|
67343
68129
|
mutate: sewerageUpdateMutation
|
|
67344
68130
|
} = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
|
|
67345
68131
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
67346
|
-
var _formData$cpt, _formData$cpt$details, _formDataRef$
|
|
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;
|
|
67347
68133
|
formDataRef.current = {
|
|
67348
68134
|
...formDataRef.current,
|
|
67349
68135
|
...formData
|
|
@@ -67363,39 +68149,27 @@ const OLDApplication = () => {
|
|
|
67363
68149
|
const findDjbDoc = docs => {
|
|
67364
68150
|
if (!Array.isArray(docs)) return null;
|
|
67365
68151
|
const found = docs.find(d => {
|
|
67366
|
-
var _d$
|
|
67367
|
-
return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$
|
|
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));
|
|
67368
68154
|
});
|
|
67369
68155
|
return found ? found.fileStoreId || found.file || found.filestoreId : null;
|
|
67370
68156
|
};
|
|
67371
|
-
const djbData = ((_formDataRef$
|
|
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);
|
|
67372
68158
|
const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
67373
|
-
const djbDoc = (djbData === null || djbData === void 0 ? void 0 : (_djbData$
|
|
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);
|
|
67374
68160
|
if (djbDoc) {
|
|
67375
68161
|
if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
|
|
67376
68162
|
formDataRef.current.djbEmployee.document = djbDoc;
|
|
67377
68163
|
}
|
|
67378
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);
|
|
67379
|
-
const
|
|
67380
|
-
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";
|
|
67381
|
-
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) || [];
|
|
67382
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)));
|
|
67383
|
-
const
|
|
67384
|
-
const
|
|
67385
|
-
var _formState$errors;
|
|
67386
|
-
const err = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : _formState$errors[key];
|
|
67387
|
-
if (!err) return false;
|
|
67388
|
-
if (Array.isArray(err === null || err === void 0 ? void 0 : err.type) && err.type.length === 0) return false;
|
|
67389
|
-
if (typeof err === "object" && Object.keys(err).length === 0) return false;
|
|
67390
|
-
return true;
|
|
67391
|
-
});
|
|
67392
|
-
const hasErrors = actualFormErrors.length > 0 || isDjbEmpInvalid || isRwhInvalid;
|
|
67393
|
-
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);
|
|
67394
|
-
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;
|
|
67395
68169
|
setSubmitValve(prev => prev !== canSubmitNow ? canSubmitNow : prev);
|
|
67396
68170
|
};
|
|
67397
68171
|
const onFormSubmit = data => {
|
|
67398
|
-
var _combinedData$cpt, _combinedData$cpt$det, _propertyDetails$Prop5, _propertyDetails$Prop6, _combinedData$cpt2, _propertyDetails$Prop7,
|
|
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;
|
|
67399
68173
|
const combinedData = {
|
|
67400
68174
|
...formDataRef.current,
|
|
67401
68175
|
...data
|
|
@@ -67429,17 +68203,26 @@ const OLDApplication = () => {
|
|
|
67429
68203
|
return;
|
|
67430
68204
|
}
|
|
67431
68205
|
}
|
|
67432
|
-
const
|
|
67433
|
-
|
|
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];
|
|
67434
68215
|
const findDjbDocInSubmit = docs => {
|
|
67435
68216
|
if (!Array.isArray(docs)) return null;
|
|
67436
68217
|
const found = docs.find(d => {
|
|
67437
|
-
var _d$
|
|
67438
|
-
return ((d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$
|
|
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));
|
|
67439
68220
|
});
|
|
67440
68221
|
return found ? found.fileStoreId || found.file || found.filestoreId : null;
|
|
67441
68222
|
};
|
|
67442
|
-
const
|
|
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);
|
|
67443
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);
|
|
67444
68227
|
if (isDjbEmpInvalid) {
|
|
67445
68228
|
setShowToast({
|
|
@@ -67450,7 +68233,6 @@ const OLDApplication = () => {
|
|
|
67450
68233
|
}
|
|
67451
68234
|
const rwhSubmitData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.rainWaterHarvesting) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
|
|
67452
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";
|
|
67453
|
-
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) || [];
|
|
67454
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)));
|
|
67455
68237
|
if (isRwhSubmitRequired && !isRwhSubmitDocUploaded) {
|
|
67456
68238
|
setShowToast({
|
|
@@ -67465,6 +68247,67 @@ const OLDApplication = () => {
|
|
|
67465
68247
|
if (!formDataRef.current.djbEmployee) formDataRef.current.djbEmployee = {};
|
|
67466
68248
|
formDataRef.current.djbEmployee.document = djbDoc;
|
|
67467
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
|
+
}
|
|
67468
68311
|
setShowCheckPage(true);
|
|
67469
68312
|
};
|
|
67470
68313
|
const processSubmission = function (data) {
|
|
@@ -67512,16 +68355,16 @@ const OLDApplication = () => {
|
|
|
67512
68355
|
if (data !== null && data !== void 0 && (_data$DocumentsRequir = data.DocumentsRequired) !== null && _data$DocumentsRequir !== void 0 && _data$DocumentsRequir.documents) {
|
|
67513
68356
|
const docs = data.DocumentsRequired.documents;
|
|
67514
68357
|
const identityDoc = docs.find(d => {
|
|
67515
|
-
var _d$
|
|
67516
|
-
return d === null || d === void 0 ? void 0 : (_d$
|
|
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");
|
|
67517
68360
|
});
|
|
67518
68361
|
const ownershipDoc = docs.find(d => {
|
|
67519
|
-
var _d$
|
|
67520
|
-
return (d === null || d === void 0 ? void 0 : (_d$
|
|
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"));
|
|
67521
68364
|
});
|
|
67522
68365
|
const otherDoc = docs.find(d => {
|
|
67523
|
-
var _d$
|
|
67524
|
-
return d === null || d === void 0 ? void 0 : (_d$
|
|
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");
|
|
67525
68368
|
});
|
|
67526
68369
|
data.documents = {
|
|
67527
68370
|
documents: docs,
|
|
@@ -67531,11 +68374,11 @@ const OLDApplication = () => {
|
|
|
67531
68374
|
};
|
|
67532
68375
|
}
|
|
67533
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 => {
|
|
67534
|
-
var _d$
|
|
67535
|
-
return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$
|
|
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"));
|
|
67536
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 => {
|
|
67537
|
-
var _d$
|
|
67538
|
-
return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$
|
|
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"));
|
|
67539
68382
|
})) === null || _data$documents$docum2 === void 0 ? void 0 : _data$documents$docum2.fileStoreId);
|
|
67540
68383
|
if (djbDoc) {
|
|
67541
68384
|
if (!data.djbEmployee) data.djbEmployee = {};
|
|
@@ -67611,6 +68454,16 @@ const OLDApplication = () => {
|
|
|
67611
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)
|
|
67612
68455
|
};
|
|
67613
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
|
+
}
|
|
67614
68467
|
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.details)) {
|
|
67615
68468
|
var _propertyDetails$Prop8;
|
|
67616
68469
|
data.cpt = {
|