@djb25/digit-ui-module-ws 1.0.104 → 1.0.105
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 +1085 -508
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1085 -508
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -504,31 +504,42 @@ const getPattern = type => {
|
|
|
504
504
|
};
|
|
505
505
|
const getFiles = function (filesArray, tenant) {
|
|
506
506
|
try {
|
|
507
|
-
|
|
507
|
+
return Promise.resolve(_catch(function () {
|
|
508
|
+
if (!filesArray || filesArray.length === 0) return;
|
|
509
|
+
const targetFile = filesArray[0];
|
|
510
|
+
if (targetFile && typeof targetFile === "object") {
|
|
511
|
+
if (targetFile instanceof File || targetFile !== null && targetFile !== void 0 && targetFile.type) {
|
|
512
|
+
window.open(URL.createObjectURL(targetFile), "_blank");
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
if (targetFile !== null && targetFile !== void 0 && targetFile.fileStoreId) {
|
|
516
|
+
filesArray = [targetFile.fileStoreId];
|
|
517
|
+
}
|
|
518
|
+
}
|
|
508
519
|
return Promise.resolve(Digit.UploadServices.Filefetch(filesArray, tenant)).then(function (response) {
|
|
509
|
-
var _response$data, _response$data$fileSt, _response$data$fileSt2, _response$data2;
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
if (fileURL) {
|
|
524
|
-
window.open(fileURL);
|
|
520
|
+
var _response$data, _response$data$fileSt, _response$data$fileSt2, _filesArray, _response$data2;
|
|
521
|
+
let rawUrl = (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$fileSt = _response$data.fileStoreIds) === null || _response$data$fileSt === void 0 ? void 0 : (_response$data$fileSt2 = _response$data$fileSt[0]) === null || _response$data$fileSt2 === void 0 ? void 0 : _response$data$fileSt2.url) || ((_filesArray = filesArray) !== null && _filesArray !== void 0 && _filesArray[0] ? response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2[filesArray[0]] : "") || "";
|
|
522
|
+
let fileURL = "";
|
|
523
|
+
if (rawUrl && typeof rawUrl === "string") {
|
|
524
|
+
const linkList = rawUrl.split(",");
|
|
525
|
+
linkList.forEach(link => {
|
|
526
|
+
const trimmed = link ? link.trim() : "";
|
|
527
|
+
if (trimmed && !trimmed.includes("large") && !trimmed.includes("medium") && !trimmed.includes("small")) {
|
|
528
|
+
fileURL = trimmed;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
if (!fileURL && linkList[0]) {
|
|
532
|
+
fileURL = linkList[0].trim();
|
|
525
533
|
}
|
|
526
534
|
}
|
|
535
|
+
if (fileURL) {
|
|
536
|
+
window.open(fileURL, "_blank");
|
|
537
|
+
return fileURL;
|
|
538
|
+
}
|
|
527
539
|
});
|
|
528
540
|
}, function (error) {
|
|
529
541
|
console.error("Error fetching file URL", error);
|
|
530
|
-
});
|
|
531
|
-
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
542
|
+
}));
|
|
532
543
|
} catch (e) {
|
|
533
544
|
return Promise.reject(e);
|
|
534
545
|
}
|
|
@@ -832,7 +843,7 @@ const convertToWSUpdate = data => {
|
|
|
832
843
|
return formdata;
|
|
833
844
|
};
|
|
834
845
|
const convertToEditWSUpdate = data => {
|
|
835
|
-
var _data$WaterConnection3, _data$WaterConnection4, _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, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
846
|
+
var _data$WaterConnection3, _data$WaterConnection4, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai3, _waterResult$addition, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai4, _waterResult$addition2, _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, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
836
847
|
let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnectionResult) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3.WaterConnection) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4[0];
|
|
837
848
|
let formdata = {
|
|
838
849
|
WaterConnection: {
|
|
@@ -852,10 +863,10 @@ const convertToEditWSUpdate = data => {
|
|
|
852
863
|
connectionExecutionDate: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionExecutionDate : waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionExecutionDate) || null,
|
|
853
864
|
connectionCategory: null,
|
|
854
865
|
connectionType: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionType : waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType) || null,
|
|
855
|
-
additionalDetails:
|
|
856
|
-
...(data === null || data === void 0 ? void 0 : data.additionalDetails)
|
|
857
|
-
|
|
858
|
-
|
|
866
|
+
additionalDetails: {
|
|
867
|
+
...(data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.additionalDetails : waterResult === null || waterResult === void 0 ? void 0 : waterResult.additionalDetails),
|
|
868
|
+
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$additionalDetai3 = data.additionalDetails) === null || _data$additionalDetai3 === void 0 ? void 0 : _data$additionalDetai3.addressType : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition = waterResult.additionalDetails) === null || _waterResult$addition === void 0 ? void 0 : _waterResult$addition.addressType) || "",
|
|
869
|
+
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$additionalDetai4 = data.additionalDetails) === null || _data$additionalDetai4 === void 0 ? void 0 : _data$additionalDetai4.completeAddress : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.completeAddress) || ""
|
|
859
870
|
},
|
|
860
871
|
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,
|
|
861
872
|
processInstance: data !== null && data !== void 0 && data.isEditApplication ? {
|
|
@@ -915,7 +926,7 @@ const convertToEditWSUpdate = data => {
|
|
|
915
926
|
return formdata;
|
|
916
927
|
};
|
|
917
928
|
const convertToEditSWUpdate = data => {
|
|
918
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _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, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
929
|
+
var _data$SewerageConnect, _data$SewerageConnect2, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai5, _SewerageResult$addit, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai6, _SewerageResult$addit2, _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, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
919
930
|
let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
|
|
920
931
|
let formdata = {
|
|
921
932
|
SewerageConnection: {
|
|
@@ -935,10 +946,10 @@ const convertToEditSWUpdate = data => {
|
|
|
935
946
|
connectionExecutionDate: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionExecutionDate : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.connectionExecutionDate) || null,
|
|
936
947
|
connectionCategory: null,
|
|
937
948
|
connectionType: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionType : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.connectionType) || null,
|
|
938
|
-
additionalDetails:
|
|
939
|
-
...(data === null || data === void 0 ? void 0 : data.additionalDetails)
|
|
940
|
-
|
|
941
|
-
|
|
949
|
+
additionalDetails: {
|
|
950
|
+
...(data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.additionalDetails : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.additionalDetails),
|
|
951
|
+
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$additionalDetai5 = data.additionalDetails) === null || _data$additionalDetai5 === void 0 ? void 0 : _data$additionalDetai5.addressType : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit = SewerageResult.additionalDetails) === null || _SewerageResult$addit === void 0 ? void 0 : _SewerageResult$addit.addressType) || "",
|
|
952
|
+
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$additionalDetai6 = data.additionalDetails) === null || _data$additionalDetai6 === void 0 ? void 0 : _data$additionalDetai6.completeAddress : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit2 = SewerageResult.additionalDetails) === null || _SewerageResult$addit2 === void 0 ? void 0 : _SewerageResult$addit2.completeAddress) || ""
|
|
942
953
|
},
|
|
943
954
|
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,
|
|
944
955
|
processInstance: data !== null && data !== void 0 && data.isEditApplication ? {
|
|
@@ -1815,7 +1826,7 @@ const mapExistingDocIdsToPayload = function (uploadingDocs, existingDocs) {
|
|
|
1815
1826
|
};
|
|
1816
1827
|
const convertEditApplicationDetails = function (data, appData, actionData) {
|
|
1817
1828
|
try {
|
|
1818
|
-
var _data$cpt30, _data$cpt30$details, _data$cpt30$details$o, _appData$applicationD, _data$DocumentsRequir, _data$cpt31, _data$cpt31$details, _data$
|
|
1829
|
+
var _data$cpt30, _data$cpt30$details, _data$cpt30$details$o, _appData$applicationD, _data$DocumentsRequir, _data$cpt31, _data$cpt31$details, _data$ConnectionDetai15, _data$ConnectionDetai16, _data$ConnectionDetai17, _data$ConnectionDetai18, _data$ConnectionDetai19, _data$ConnectionDetai20, _data$ConnectionDetai21, _data$ConnectionDetai22, _data$ConnectionDetai23, _data$ConnectionDetai24, _data$ConnectionDetai25, _data$ConnectionDetai26, _data$ConnectionDetai27, _data$ConnectionDetai28, _data$ConnectionDetai29, _data$ConnectionDetai30, _data$ConnectionDetai31, _data$ConnectionDetai32, _data$ConnectionHolde58, _data$ConnectionHolde59, _appData$applicationD2, _appData$applicationD3, _data$ConnectionHolde60, _data$ConnectionHolde61, _data$ConnectionHolde62, _data$ConnectionHolde63, _data$ConnectionHolde64, _data$ConnectionHolde65, _data$ConnectionHolde66, _data$ConnectionHolde67, _data$ConnectionHolde68, _data$ConnectionHolde69, _data$ConnectionHolde70, _data$ConnectionHolde71, _data$ConnectionHolde72, _data$ConnectionHolde73, _data$ConnectionHolde74, _data$ConnectionHolde75, _data$ConnectionHolde76, _data$ConnectionHolde77, _data$ConnectionHolde78, _data$ConnectionHolde79, _data$ConnectionHolde80, _data$ConnectionHolde81, _data$ConnectionHolde82, _data$ConnectionHolde83, _data$ConnectionHolde84, _data$ConnectionHolde85, _data$ConnectionHolde86, _data$cpt32;
|
|
1819
1830
|
data === null || data === void 0 ? void 0 : (_data$cpt30 = data.cpt) === null || _data$cpt30 === void 0 ? void 0 : (_data$cpt30$details = _data$cpt30.details) === null || _data$cpt30$details === void 0 ? void 0 : (_data$cpt30$details$o = _data$cpt30$details.owners) === null || _data$cpt30$details$o === void 0 ? void 0 : _data$cpt30$details$o.forEach(owner => {
|
|
1820
1831
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
1821
1832
|
});
|
|
@@ -1827,10 +1838,10 @@ const convertEditApplicationDetails = function (data, appData, actionData) {
|
|
|
1827
1838
|
let payload = {
|
|
1828
1839
|
...appData.applicationData,
|
|
1829
1840
|
propertyId: 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.propertyId,
|
|
1830
|
-
proposedTaps: (data === null || data === void 0 ? void 0 : (_data$
|
|
1831
|
-
proposedPipeSize: (data === null || data === void 0 ? void 0 : (_data$
|
|
1832
|
-
proposedWaterClosets: (data === null || data === void 0 ? void 0 : (_data$
|
|
1833
|
-
proposedToilets: (data === null || data === void 0 ? void 0 : (_data$
|
|
1841
|
+
proposedTaps: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai15 = data.ConnectionDetails) === null || _data$ConnectionDetai15 === void 0 ? void 0 : (_data$ConnectionDetai16 = _data$ConnectionDetai15[0]) === null || _data$ConnectionDetai16 === void 0 ? void 0 : _data$ConnectionDetai16.proposedTaps) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai17 = data.ConnectionDetails) === null || _data$ConnectionDetai17 === void 0 ? void 0 : (_data$ConnectionDetai18 = _data$ConnectionDetai17[0]) === null || _data$ConnectionDetai18 === void 0 ? void 0 : _data$ConnectionDetai18.proposedTaps),
|
|
1842
|
+
proposedPipeSize: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai19 = data.ConnectionDetails) === null || _data$ConnectionDetai19 === void 0 ? void 0 : (_data$ConnectionDetai20 = _data$ConnectionDetai19[0]) === null || _data$ConnectionDetai20 === void 0 ? void 0 : (_data$ConnectionDetai21 = _data$ConnectionDetai20.proposedPipeSize) === null || _data$ConnectionDetai21 === void 0 ? void 0 : _data$ConnectionDetai21.size) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai22 = data.ConnectionDetails) === null || _data$ConnectionDetai22 === void 0 ? void 0 : (_data$ConnectionDetai23 = _data$ConnectionDetai22[0]) === null || _data$ConnectionDetai23 === void 0 ? void 0 : (_data$ConnectionDetai24 = _data$ConnectionDetai23.proposedPipeSize) === null || _data$ConnectionDetai24 === void 0 ? void 0 : _data$ConnectionDetai24.size),
|
|
1843
|
+
proposedWaterClosets: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai25 = data.ConnectionDetails) === null || _data$ConnectionDetai25 === void 0 ? void 0 : (_data$ConnectionDetai26 = _data$ConnectionDetai25[0]) === null || _data$ConnectionDetai26 === void 0 ? void 0 : _data$ConnectionDetai26.proposedWaterClosets) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai27 = data.ConnectionDetails) === null || _data$ConnectionDetai27 === void 0 ? void 0 : (_data$ConnectionDetai28 = _data$ConnectionDetai27[0]) === null || _data$ConnectionDetai28 === void 0 ? void 0 : _data$ConnectionDetai28.proposedWaterClosets),
|
|
1844
|
+
proposedToilets: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai29 = data.ConnectionDetails) === null || _data$ConnectionDetai29 === void 0 ? void 0 : (_data$ConnectionDetai30 = _data$ConnectionDetai29[0]) === null || _data$ConnectionDetai30 === void 0 ? void 0 : _data$ConnectionDetai30.proposedToilets) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai31 = data.ConnectionDetails) === null || _data$ConnectionDetai31 === void 0 ? void 0 : (_data$ConnectionDetai32 = _data$ConnectionDetai31[0]) === null || _data$ConnectionDetai32 === void 0 ? void 0 : _data$ConnectionDetai32.proposedToilets),
|
|
1834
1845
|
connectionHolders: !(data !== null && data !== void 0 && (_data$ConnectionHolde58 = data.ConnectionHolderDetails) !== null && _data$ConnectionHolde58 !== void 0 && (_data$ConnectionHolde59 = _data$ConnectionHolde58[0]) !== null && _data$ConnectionHolde59 !== void 0 && _data$ConnectionHolde59.sameAsOwnerDetails) ? [{
|
|
1835
1846
|
...(appData === null || appData === void 0 ? void 0 : (_appData$applicationD2 = appData.applicationData) === null || _appData$applicationD2 === void 0 ? void 0 : (_appData$applicationD3 = _appData$applicationD2.connectionHolders) === null || _appData$applicationD3 === void 0 ? void 0 : _appData$applicationD3[0]),
|
|
1836
1847
|
correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde60 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde60 === void 0 ? void 0 : (_data$ConnectionHolde61 = _data$ConnectionHolde60[0]) === null || _data$ConnectionHolde61 === void 0 ? void 0 : _data$ConnectionHolde61.address) || "",
|
|
@@ -1940,16 +1951,16 @@ const convertDisonnectEditApplicationDetails = function (data, appData, actionDa
|
|
|
1940
1951
|
name: data === null || data === void 0 ? void 0 : (_data$plumberDetails1 = data.plumberDetails) === null || _data$plumberDetails1 === void 0 ? void 0 : (_data$plumberDetails10 = _data$plumberDetails1[0]) === null || _data$plumberDetails10 === void 0 ? void 0 : _data$plumberDetails10.plumberName,
|
|
1941
1952
|
id: appData === null || appData === void 0 ? void 0 : (_appData$applicationD6 = appData.applicationData) === null || _appData$applicationD6 === void 0 ? void 0 : (_appData$applicationD7 = _appData$applicationD6.plumberInfo) === null || _appData$applicationD7 === void 0 ? void 0 : (_appData$applicationD8 = _appData$applicationD7[0]) === null || _appData$applicationD8 === void 0 ? void 0 : _appData$applicationD8.id
|
|
1942
1953
|
}];
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1945
|
-
|
|
1954
|
+
const _temp5 = (data === null || data === void 0 ? void 0 : (_data$disConnectionDe = data.disConnectionDetails) === null || _data$disConnectionDe === void 0 ? void 0 : (_data$disConnectionDe2 = _data$disConnectionDe[0]) === null || _data$disConnectionDe2 === void 0 ? void 0 : _data$disConnectionDe2.disConnectionReason) || "",
|
|
1955
|
+
_temp4 = (data === null || data === void 0 ? void 0 : (_data$disConnectionDe3 = data.disConnectionDetails) === null || _data$disConnectionDe3 === void 0 ? void 0 : (_data$disConnectionDe4 = _data$disConnectionDe3[0]) === null || _data$disConnectionDe4 === void 0 ? void 0 : _data$disConnectionDe4.disConnectionType) == "TEMPORARY" ? true : false,
|
|
1956
|
+
_temp3 = (documentsData === null || documentsData === void 0 ? void 0 : documentsData.length) > 0 ? documentsData : data === null || data === void 0 ? void 0 : (_data$DocumentsRequir2 = data.DocumentsRequired) === null || _data$DocumentsRequir2 === void 0 ? void 0 : _data$DocumentsRequir2.documents;
|
|
1946
1957
|
return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$disConnectionDe5 = data.disConnectionDetails) === null || _data$disConnectionDe5 === void 0 ? void 0 : (_data$disConnectionDe6 = _data$disConnectionDe5[0]) === null || _data$disConnectionDe6 === void 0 ? void 0 : _data$disConnectionDe6.disConnectionProposeDate)).then(function (_getConvertedDate) {
|
|
1947
1958
|
var _data$plumberDetails11, _data$plumberDetails12, _data$plumberDetails13;
|
|
1948
1959
|
let payload = {
|
|
1949
1960
|
...appData.applicationData,
|
|
1950
|
-
documents:
|
|
1951
|
-
isDisconnectionTemporary:
|
|
1952
|
-
disconnectionReason:
|
|
1961
|
+
documents: _temp3,
|
|
1962
|
+
isDisconnectionTemporary: _temp4,
|
|
1963
|
+
disconnectionReason: _temp5,
|
|
1953
1964
|
dateEffectiveFrom: _getConvertedDate,
|
|
1954
1965
|
processInstance: {
|
|
1955
1966
|
action: actionData ? actionData : "RESUBMIT_APPLICATION"
|
|
@@ -1992,10 +2003,10 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
1992
2003
|
}
|
|
1993
2004
|
try {
|
|
1994
2005
|
var _data$cpt34, _data$cpt34$details, _data$cpt34$details$o, _data$cpt35, _data$cpt35$details, _data$cpt36, _data$cpt36$details, _data$connectionDetai, _data$connectionDetai2, _data$connectionDetai3, _data$connectionDetai4, _data$connectionDetai5, _data$connectionDetai6, _data$connectionDetai7, _data$connectionDetai8, _data$connectionDetai9, _data$connectionDetai0, _data$connectionDetai1, _data$connectionDetai10, _data$connectionDetai11, _data$connectionDetai12, _data$connectionDetai13, _data$connectionDetai14, _data$connectionDetai15, _data$connectionDetai16, _data$connectionDetai17, _data$connectionDetai18, _data$connectionDetai19, _data$connectionDetai20, _data$connectionDetai21, _data$connectionDetai22, _data$connectionDetai23, _data$connectionDetai24, _data$connectionDetai25, _data$connectionDetai26, _data$connectionDetai27, _data$connectionDetai28, _data$activationDetai11, _data$activationDetai12, _data$activationDetai13, _data$activationDetai14;
|
|
1995
|
-
function
|
|
2006
|
+
function _temp1() {
|
|
1996
2007
|
var _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8;
|
|
1997
|
-
function
|
|
1998
|
-
function
|
|
2008
|
+
function _temp9() {
|
|
2009
|
+
function _temp7() {
|
|
1999
2010
|
var _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _appData$applicationD9, _data$ConnectionHolde87, _data$ConnectionHolde88, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir6, _data$cpt33;
|
|
2000
2011
|
if (data !== null && data !== void 0 && (_data$DocumentsRequir3 = data.DocumentsRequired) !== null && _data$DocumentsRequir3 !== void 0 && (_data$DocumentsRequir4 = _data$DocumentsRequir3.documents) !== null && _data$DocumentsRequir4 !== void 0 && _data$DocumentsRequir4.length) formData.documents = data === null || data === void 0 ? void 0 : (_data$DocumentsRequir5 = data.DocumentsRequired) === null || _data$DocumentsRequir5 === void 0 ? void 0 : _data$DocumentsRequir5.documents;else formData.documents = null;
|
|
2001
2012
|
const existingDocs = (appData === null || appData === void 0 ? void 0 : (_appData$applicationD9 = appData.applicationData) === null || _appData$applicationD9 === void 0 ? void 0 : _appData$applicationD9.documents) || (appData === null || appData === void 0 ? void 0 : appData.documents) || [];
|
|
@@ -2029,20 +2040,20 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2029
2040
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify(data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : _data$cpt33.details));
|
|
2030
2041
|
return formData;
|
|
2031
2042
|
}
|
|
2032
|
-
const
|
|
2043
|
+
const _temp6 = function (_data$activationDetai, _data$activationDetai2, _data$activationDetai3, _data$activationDetai4) {
|
|
2033
2044
|
if (data !== null && data !== void 0 && (_data$activationDetai = data.activationDetails) !== null && _data$activationDetai !== void 0 && (_data$activationDetai2 = _data$activationDetai[0]) !== null && _data$activationDetai2 !== void 0 && _data$activationDetai2.dateEffectiveFrom) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai3 = data.activationDetails) === null || _data$activationDetai3 === void 0 ? void 0 : (_data$activationDetai4 = _data$activationDetai3[0]) === null || _data$activationDetai4 === void 0 ? void 0 : _data$activationDetai4.dateEffectiveFrom)).then(function (_getConvertedDate4) {
|
|
2034
2045
|
formData.dateEffectiveFrom = _getConvertedDate4;
|
|
2035
2046
|
});
|
|
2036
2047
|
}();
|
|
2037
|
-
return
|
|
2048
|
+
return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
|
|
2038
2049
|
}
|
|
2039
2050
|
if (data !== null && data !== void 0 && (_data$activationDetai5 = data.activationDetails) !== null && _data$activationDetai5 !== void 0 && (_data$activationDetai6 = _data$activationDetai5[0]) !== null && _data$activationDetai6 !== void 0 && _data$activationDetai6.meterInitialReading) formData.additionalDetails.initialMeterReading = data === null || data === void 0 ? void 0 : (_data$activationDetai7 = data.activationDetails) === null || _data$activationDetai7 === void 0 ? void 0 : (_data$activationDetai8 = _data$activationDetai7[0]) === null || _data$activationDetai8 === void 0 ? void 0 : _data$activationDetai8.meterInitialReading;
|
|
2040
|
-
const
|
|
2051
|
+
const _temp8 = function (_data$activationDetai9, _data$activationDetai0, _data$activationDetai1, _data$activationDetai10) {
|
|
2041
2052
|
if (data !== null && data !== void 0 && (_data$activationDetai9 = data.activationDetails) !== null && _data$activationDetai9 !== void 0 && (_data$activationDetai0 = _data$activationDetai9[0]) !== null && _data$activationDetai0 !== void 0 && _data$activationDetai0.connectionExecutionDate) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai1 = data.activationDetails) === null || _data$activationDetai1 === void 0 ? void 0 : (_data$activationDetai10 = _data$activationDetai1[0]) === null || _data$activationDetai10 === void 0 ? void 0 : _data$activationDetai10.connectionExecutionDate)).then(function (_getConvertedDate3) {
|
|
2042
2053
|
formData.connectionExecutionDate = _getConvertedDate3;
|
|
2043
2054
|
});
|
|
2044
2055
|
}();
|
|
2045
|
-
return
|
|
2056
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
|
|
2046
2057
|
}
|
|
2047
2058
|
data === null || data === void 0 ? void 0 : (_data$cpt34 = data.cpt) === null || _data$cpt34 === void 0 ? void 0 : (_data$cpt34$details = _data$cpt34.details) === null || _data$cpt34$details === void 0 ? void 0 : (_data$cpt34$details$o = _data$cpt34$details.owners) === null || _data$cpt34$details$o === void 0 ? void 0 : _data$cpt34$details$o.forEach(owner => {
|
|
2048
2059
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
@@ -2058,12 +2069,12 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2058
2069
|
if (data !== null && data !== void 0 && (_data$connectionDetai21 = data.connectionDetails) !== null && _data$connectionDetai21 !== void 0 && (_data$connectionDetai22 = _data$connectionDetai21[0]) !== null && _data$connectionDetai22 !== void 0 && _data$connectionDetai22.noOfWaterClosets) formData.noOfWaterClosets = data === null || data === void 0 ? void 0 : (_data$connectionDetai23 = data.connectionDetails) === null || _data$connectionDetai23 === void 0 ? void 0 : (_data$connectionDetai24 = _data$connectionDetai23[0]) === null || _data$connectionDetai24 === void 0 ? void 0 : _data$connectionDetai24.noOfWaterClosets;
|
|
2059
2070
|
if (data !== null && data !== void 0 && (_data$connectionDetai25 = data.connectionDetails) !== null && _data$connectionDetai25 !== void 0 && (_data$connectionDetai26 = _data$connectionDetai25[0]) !== null && _data$connectionDetai26 !== void 0 && _data$connectionDetai26.noOfToilets) formData.noOfToilets = data === null || data === void 0 ? void 0 : (_data$connectionDetai27 = data.connectionDetails) === null || _data$connectionDetai27 === void 0 ? void 0 : (_data$connectionDetai28 = _data$connectionDetai27[0]) === null || _data$connectionDetai28 === void 0 ? void 0 : _data$connectionDetai28.noOfToilets;
|
|
2060
2071
|
if (data !== null && data !== void 0 && (_data$activationDetai11 = data.activationDetails) !== null && _data$activationDetai11 !== void 0 && (_data$activationDetai12 = _data$activationDetai11[0]) !== null && _data$activationDetai12 !== void 0 && _data$activationDetai12.meterId) formData.meterId = data === null || data === void 0 ? void 0 : (_data$activationDetai13 = data.activationDetails) === null || _data$activationDetai13 === void 0 ? void 0 : (_data$activationDetai14 = _data$activationDetai13[0]) === null || _data$activationDetai14 === void 0 ? void 0 : _data$activationDetai14.meterId;
|
|
2061
|
-
const
|
|
2072
|
+
const _temp0 = function (_data$activationDetai15, _data$activationDetai16, _data$activationDetai17, _data$activationDetai18) {
|
|
2062
2073
|
if (data !== null && data !== void 0 && (_data$activationDetai15 = data.activationDetails) !== null && _data$activationDetai15 !== void 0 && (_data$activationDetai16 = _data$activationDetai15[0]) !== null && _data$activationDetai16 !== void 0 && _data$activationDetai16.meterInstallationDate) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai17 = data.activationDetails) === null || _data$activationDetai17 === void 0 ? void 0 : (_data$activationDetai18 = _data$activationDetai17[0]) === null || _data$activationDetai18 === void 0 ? void 0 : _data$activationDetai18.meterInstallationDate)).then(function (_getConvertedDate2) {
|
|
2063
2074
|
formData.meterInstallationDate = _getConvertedDate2;
|
|
2064
2075
|
});
|
|
2065
2076
|
}();
|
|
2066
|
-
return Promise.resolve(
|
|
2077
|
+
return Promise.resolve(_temp0 && _temp0.then ? _temp0.then(_temp1) : _temp1(_temp0));
|
|
2067
2078
|
} catch (e) {
|
|
2068
2079
|
return Promise.reject(e);
|
|
2069
2080
|
}
|
|
@@ -2112,7 +2123,7 @@ const ifUserRoleExists = role => {
|
|
|
2112
2123
|
return true;
|
|
2113
2124
|
} else return false;
|
|
2114
2125
|
};
|
|
2115
|
-
const checkForNA = function (value) {
|
|
2126
|
+
const checkForNA$1 = function (value) {
|
|
2116
2127
|
if (value === void 0) {
|
|
2117
2128
|
value = "";
|
|
2118
2129
|
}
|
|
@@ -9608,7 +9619,7 @@ const Response = () => {
|
|
|
9608
9619
|
const {
|
|
9609
9620
|
t
|
|
9610
9621
|
} = useTranslation();
|
|
9611
|
-
const connNumber = state === null || state === void 0 ? void 0 : (_state$Amendment = state.Amendment) === null || _state$Amendment === void 0 ? void 0 : _state$Amendment.consumerCode;
|
|
9622
|
+
const connNumber = String((state === null || state === void 0 ? void 0 : (_state$Amendment = state.Amendment) === null || _state$Amendment === void 0 ? void 0 : _state$Amendment.consumerCode) || "");
|
|
9612
9623
|
let serviceType = "WATER";
|
|
9613
9624
|
if (connNumber.includes("SW")) serviceType = "SEWERAGE";
|
|
9614
9625
|
const {
|
|
@@ -13051,7 +13062,9 @@ const createConnectionDetails = () => ({
|
|
|
13051
13062
|
},
|
|
13052
13063
|
institutionName: "",
|
|
13053
13064
|
natureOfWork: "",
|
|
13054
|
-
orgDeptDocument: ""
|
|
13065
|
+
orgDeptDocument: "",
|
|
13066
|
+
addressType: "",
|
|
13067
|
+
completeAddress: ""
|
|
13055
13068
|
});
|
|
13056
13069
|
const WSConnectionDetails = _ref => {
|
|
13057
13070
|
var _formData$ConnectionD, _formData$ConnectionD2;
|
|
@@ -13071,6 +13084,16 @@ const WSConnectionDetails = _ref => {
|
|
|
13071
13084
|
pathname
|
|
13072
13085
|
} = useLocation();
|
|
13073
13086
|
const [connectionDetails, setConnectionDetails] = useState((formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : _formData$ConnectionD.length) > 0 ? [formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD2 = formData.ConnectionDetails) === null || _formData$ConnectionD2 === void 0 ? void 0 : _formData$ConnectionD2[0]] : [createConnectionDetails()]);
|
|
13087
|
+
useEffect(() => {
|
|
13088
|
+
var _formData$ConnectionD3;
|
|
13089
|
+
if ((formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD3 = formData.ConnectionDetails) === null || _formData$ConnectionD3 === void 0 ? void 0 : _formData$ConnectionD3.length) > 0) {
|
|
13090
|
+
const incoming = formData.ConnectionDetails[0];
|
|
13091
|
+
const current = connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails[0];
|
|
13092
|
+
if (!(current !== null && current !== void 0 && current.addressType) && incoming !== null && incoming !== void 0 && incoming.addressType || !(current !== null && current !== void 0 && current.completeAddress) && incoming !== null && incoming !== void 0 && incoming.completeAddress || !lodash.isEqual(current, incoming)) {
|
|
13093
|
+
setConnectionDetails([incoming]);
|
|
13094
|
+
}
|
|
13095
|
+
}
|
|
13096
|
+
}, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
|
|
13074
13097
|
const [focusIndex, setFocusIndex] = useState({
|
|
13075
13098
|
index: -1,
|
|
13076
13099
|
type: ""
|
|
@@ -13211,7 +13234,7 @@ const WSConnectionDetails = _ref => {
|
|
|
13211
13234
|
}, commonProps))));
|
|
13212
13235
|
};
|
|
13213
13236
|
const ConnectionDetails = _props => {
|
|
13214
|
-
var _formData$DocumentsRe;
|
|
13237
|
+
var _formData$ConnectionD4, _formData$ConnectionD5, _formData$additionalD, _formData$additionalD2, _formData$additionalD3, _formData$additionalD4, _formData$ConnectionD6, _formData$ConnectionD7, _formData$additionalD5, _formData$additionalD6, _formData$additionalD7, _formData$additionalD8, _addresses, _addresses3, _formData$DocumentsRe;
|
|
13215
13238
|
const {
|
|
13216
13239
|
connectionDetail,
|
|
13217
13240
|
focusIndex,
|
|
@@ -13236,6 +13259,64 @@ const ConnectionDetails = _props => {
|
|
|
13236
13259
|
formData,
|
|
13237
13260
|
userType
|
|
13238
13261
|
} = _props;
|
|
13262
|
+
const userInfo = JSON.parse(window.localStorage.getItem("Citizen.user-info") || window.localStorage.getItem("user-info") || "{}");
|
|
13263
|
+
let addresses = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.addresses) || [];
|
|
13264
|
+
if (!addresses || addresses.length === 0) {
|
|
13265
|
+
var _formData$cpt, _formData$cpt$details, _formData$cpt$details2, _formData$cpt2, _formData$cpt2$detail, _cptAddress$locality, _cptAddress$locality2;
|
|
13266
|
+
const owner = formData === null || formData === void 0 ? void 0 : (_formData$cpt = formData.cpt) === null || _formData$cpt === void 0 ? void 0 : (_formData$cpt$details = _formData$cpt.details) === null || _formData$cpt$details === void 0 ? void 0 : (_formData$cpt$details2 = _formData$cpt$details.owners) === null || _formData$cpt$details2 === void 0 ? void 0 : _formData$cpt$details2[0];
|
|
13267
|
+
const cptAddress = 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$detail.address;
|
|
13268
|
+
const formattedPropertyAddress = cptAddress ? [cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.doorNo, cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.buildingName, cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.street, cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.landmark, (cptAddress === null || cptAddress === void 0 ? void 0 : (_cptAddress$locality = cptAddress.locality) === null || _cptAddress$locality === void 0 ? void 0 : _cptAddress$locality.name) || (cptAddress === null || cptAddress === void 0 ? void 0 : (_cptAddress$locality2 = cptAddress.locality) === null || _cptAddress$locality2 === void 0 ? void 0 : _cptAddress$locality2.code), cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.city, cptAddress === null || cptAddress === void 0 ? void 0 : cptAddress.pincode].filter(Boolean).join(", ") : "";
|
|
13269
|
+
const ownerPermAddress = owner !== null && owner !== void 0 && owner.permanentAddress && (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) !== "NA" ? owner.permanentAddress : formattedPropertyAddress;
|
|
13270
|
+
const ownerCorrAddress = owner !== null && owner !== void 0 && owner.correspondenceAddress && (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) !== "NA" ? owner.correspondenceAddress : ownerPermAddress || formattedPropertyAddress;
|
|
13271
|
+
if (ownerPermAddress || ownerCorrAddress) {
|
|
13272
|
+
addresses = [{
|
|
13273
|
+
type: "PERMANENT",
|
|
13274
|
+
address: ownerPermAddress
|
|
13275
|
+
}, {
|
|
13276
|
+
type: "CORRESPONDENCE",
|
|
13277
|
+
address: ownerCorrAddress
|
|
13278
|
+
}];
|
|
13279
|
+
}
|
|
13280
|
+
}
|
|
13281
|
+
const getAddressTypeObj = val => {
|
|
13282
|
+
if (!val) return null;
|
|
13283
|
+
if (typeof val === "object") {
|
|
13284
|
+
const code = (val.code || val.i18nKey || "").toUpperCase();
|
|
13285
|
+
if (code === "CORRESPONDENCE") {
|
|
13286
|
+
return {
|
|
13287
|
+
i18nKey: "Correspondence",
|
|
13288
|
+
code: "CORRESPONDENCE"
|
|
13289
|
+
};
|
|
13290
|
+
}
|
|
13291
|
+
return {
|
|
13292
|
+
i18nKey: "Permanent",
|
|
13293
|
+
code: "PERMANENT"
|
|
13294
|
+
};
|
|
13295
|
+
}
|
|
13296
|
+
const str = String(val).toUpperCase();
|
|
13297
|
+
if (str === "CORRESPONDENCE") {
|
|
13298
|
+
return {
|
|
13299
|
+
i18nKey: "Correspondence",
|
|
13300
|
+
code: "CORRESPONDENCE"
|
|
13301
|
+
};
|
|
13302
|
+
}
|
|
13303
|
+
if (str === "PERMANENT") {
|
|
13304
|
+
return {
|
|
13305
|
+
i18nKey: "Permanent",
|
|
13306
|
+
code: "PERMANENT"
|
|
13307
|
+
};
|
|
13308
|
+
}
|
|
13309
|
+
return {
|
|
13310
|
+
i18nKey: val,
|
|
13311
|
+
code: val
|
|
13312
|
+
};
|
|
13313
|
+
};
|
|
13314
|
+
const initialAddressType = getAddressTypeObj((connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD4 = formData.ConnectionDetails) === null || _formData$ConnectionD4 === void 0 ? void 0 : (_formData$ConnectionD5 = _formData$ConnectionD4[0]) === null || _formData$ConnectionD5 === void 0 ? void 0 : _formData$ConnectionD5.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)) || "";
|
|
13315
|
+
let initialCompleteAddress = (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD6 = formData.ConnectionDetails) === null || _formData$ConnectionD6 === void 0 ? void 0 : (_formData$ConnectionD7 = _formData$ConnectionD6[0]) === null || _formData$ConnectionD7 === void 0 ? void 0 : _formData$ConnectionD7.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) || "";
|
|
13316
|
+
if (!initialCompleteAddress && initialAddressType !== null && initialAddressType !== void 0 && initialAddressType.code && ((_addresses = addresses) === null || _addresses === void 0 ? void 0 : _addresses.length) > 0) {
|
|
13317
|
+
const matchedAddr = addresses.find(a => a.type === initialAddressType.code) || {};
|
|
13318
|
+
initialCompleteAddress = matchedAddr.houseNumber || matchedAddr.city || matchedAddr.pinCode ? [matchedAddr.houseNumber, matchedAddr.address, matchedAddr.city, matchedAddr.pinCode].filter(Boolean).join(", ") : matchedAddr.address || "";
|
|
13319
|
+
}
|
|
13239
13320
|
const {
|
|
13240
13321
|
control,
|
|
13241
13322
|
formState: localFormState,
|
|
@@ -13284,16 +13365,36 @@ const ConnectionDetails = _props => {
|
|
|
13284
13365
|
natureOfWork: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
|
|
13285
13366
|
orgDeptDocument: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
|
|
13286
13367
|
orgDeptDocumentName: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "",
|
|
13287
|
-
addressType:
|
|
13288
|
-
completeAddress:
|
|
13368
|
+
addressType: initialAddressType || "",
|
|
13369
|
+
completeAddress: initialCompleteAddress || ""
|
|
13289
13370
|
}
|
|
13290
13371
|
});
|
|
13291
13372
|
const formValue = watch();
|
|
13292
13373
|
const {
|
|
13293
13374
|
errors
|
|
13294
13375
|
} = localFormState;
|
|
13295
|
-
|
|
13296
|
-
|
|
13376
|
+
useEffect(() => {
|
|
13377
|
+
var _formData$ConnectionD8, _formData$ConnectionD9, _formData$additionalD9, _formData$additionalD0, _formData$additionalD1, _formData$additionalD10, _formData$ConnectionD0, _formData$ConnectionD1, _formData$additionalD11, _formData$additionalD12, _formData$additionalD13, _formData$additionalD14, _addresses2;
|
|
13378
|
+
const rawAddrType = (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD8 = formData.ConnectionDetails) === null || _formData$ConnectionD8 === void 0 ? void 0 : (_formData$ConnectionD9 = _formData$ConnectionD8[0]) === null || _formData$ConnectionD9 === void 0 ? void 0 : _formData$ConnectionD9.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD9 = formData.additionalDetails) === null || _formData$additionalD9 === void 0 ? void 0 : _formData$additionalD9.addressType) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD0 = formData.additionalDetails) === null || _formData$additionalD0 === void 0 ? void 0 : (_formData$additionalD1 = _formData$additionalD0.ConnectionDetails) === null || _formData$additionalD1 === void 0 ? void 0 : (_formData$additionalD10 = _formData$additionalD1[0]) === null || _formData$additionalD10 === void 0 ? void 0 : _formData$additionalD10.addressType) || (formData === null || formData === void 0 ? void 0 : formData.addressType);
|
|
13379
|
+
const formattedAddrType = getAddressTypeObj(rawAddrType);
|
|
13380
|
+
if (formattedAddrType) {
|
|
13381
|
+
const currentVal = getValues("addressType");
|
|
13382
|
+
if (!currentVal || typeof currentVal === "object" && (currentVal === null || currentVal === void 0 ? void 0 : currentVal.code) !== formattedAddrType.code || typeof currentVal === "string" && currentVal !== formattedAddrType.code) {
|
|
13383
|
+
setValue("addressType", formattedAddrType);
|
|
13384
|
+
}
|
|
13385
|
+
}
|
|
13386
|
+
const savedAddr = (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD0 = formData.ConnectionDetails) === null || _formData$ConnectionD0 === void 0 ? void 0 : (_formData$ConnectionD1 = _formData$ConnectionD0[0]) === null || _formData$ConnectionD1 === void 0 ? void 0 : _formData$ConnectionD1.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD11 = formData.additionalDetails) === null || _formData$additionalD11 === void 0 ? void 0 : _formData$additionalD11.completeAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD12 = formData.additionalDetails) === null || _formData$additionalD12 === void 0 ? void 0 : (_formData$additionalD13 = _formData$additionalD12.ConnectionDetails) === null || _formData$additionalD13 === void 0 ? void 0 : (_formData$additionalD14 = _formData$additionalD13[0]) === null || _formData$additionalD14 === void 0 ? void 0 : _formData$additionalD14.completeAddress) || (formData === null || formData === void 0 ? void 0 : formData.completeAddress);
|
|
13387
|
+
const currentAddr = getValues("completeAddress");
|
|
13388
|
+
if (savedAddr && (!currentAddr || currentAddr !== savedAddr)) {
|
|
13389
|
+
setValue("completeAddress", savedAddr);
|
|
13390
|
+
} else if (!currentAddr && formattedAddrType && ((_addresses2 = addresses) === null || _addresses2 === void 0 ? void 0 : _addresses2.length) > 0) {
|
|
13391
|
+
const matched = addresses.find(a => a.type === formattedAddrType.code) || {};
|
|
13392
|
+
const fallback = matched.houseNumber || matched.city || matched.pinCode ? [matched.houseNumber, matched.address, matched.city, matched.pinCode].filter(Boolean).join(", ") : matched.address || "";
|
|
13393
|
+
if (fallback) {
|
|
13394
|
+
setValue("completeAddress", fallback);
|
|
13395
|
+
}
|
|
13396
|
+
}
|
|
13397
|
+
}, [connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.addressType, connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.completeAddress, formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails, formData === null || formData === void 0 ? void 0 : formData.additionalDetails, (_addresses3 = addresses) === null || _addresses3 === void 0 ? void 0 : _addresses3.length]);
|
|
13297
13398
|
const [uploadedFile, setUploadedFile] = useState((connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || null);
|
|
13298
13399
|
const [file, setFile] = useState(null);
|
|
13299
13400
|
const [fileUploadError, setFileUploadError] = useState(null);
|
|
@@ -13341,6 +13442,10 @@ const ConnectionDetails = _props => {
|
|
|
13341
13442
|
if (!lodash.isEqual(formValue, part)) {
|
|
13342
13443
|
let isErrorsFound = true;
|
|
13343
13444
|
Object.keys(formValue).map(data => {
|
|
13445
|
+
var _formValue$domesticTy;
|
|
13446
|
+
if ((formValue === null || formValue === void 0 ? void 0 : (_formValue$domesticTy = formValue.domesticType) === null || _formValue$domesticTy === void 0 ? void 0 : _formValue$domesticTy.code) === "INDIVIDUAL" && ["institutionName", "natureOfWork", "orgDeptDocument", "orgDeptDocumentName", "departmentType"].includes(data)) {
|
|
13447
|
+
return;
|
|
13448
|
+
}
|
|
13344
13449
|
if (!formValue[data] && isErrorsFound) {
|
|
13345
13450
|
isErrorsFound = false;
|
|
13346
13451
|
setIsErrors(true);
|
|
@@ -13452,12 +13557,12 @@ const ConnectionDetails = _props => {
|
|
|
13452
13557
|
placeholder: t("Select Applicant Type")
|
|
13453
13558
|
});
|
|
13454
13559
|
}
|
|
13455
|
-
})),
|
|
13560
|
+
})), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_Billing_Address_Type"), /*#__PURE__*/React.createElement("span", {
|
|
13456
13561
|
className: "check-page-link-button"
|
|
13457
13562
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
13458
13563
|
control: control,
|
|
13459
13564
|
name: "addressType",
|
|
13460
|
-
defaultValue:
|
|
13565
|
+
defaultValue: initialAddressType || "",
|
|
13461
13566
|
rules: {
|
|
13462
13567
|
required: t("REQUIRED_FIELD")
|
|
13463
13568
|
},
|
|
@@ -13466,7 +13571,7 @@ const ConnectionDetails = _props => {
|
|
|
13466
13571
|
var _errors$addressType;
|
|
13467
13572
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13468
13573
|
className: "form-field",
|
|
13469
|
-
selected: getValues("addressType"),
|
|
13574
|
+
selected: props.value || getValues("addressType") || initialAddressType,
|
|
13470
13575
|
disable: false,
|
|
13471
13576
|
option: [{
|
|
13472
13577
|
i18nKey: "Permanent",
|
|
@@ -13479,7 +13584,7 @@ const ConnectionDetails = _props => {
|
|
|
13479
13584
|
select: e => {
|
|
13480
13585
|
props.onChange(e);
|
|
13481
13586
|
const selectedAddress = addresses.find(a => a.type === e.code) || {};
|
|
13482
|
-
const formattedAddress = [selectedAddress.houseNumber, selectedAddress.address, selectedAddress.city, selectedAddress.pinCode].filter(Boolean).join(", ");
|
|
13587
|
+
const formattedAddress = selectedAddress.houseNumber || selectedAddress.city || selectedAddress.pinCode ? [selectedAddress.houseNumber, selectedAddress.address, selectedAddress.city, selectedAddress.pinCode].filter(Boolean).join(", ") : selectedAddress.address || "";
|
|
13483
13588
|
setValue("completeAddress", formattedAddress);
|
|
13484
13589
|
},
|
|
13485
13590
|
optionKey: "i18nKey",
|
|
@@ -13491,18 +13596,21 @@ const ConnectionDetails = _props => {
|
|
|
13491
13596
|
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Complete Address")), /*#__PURE__*/React.createElement(Controller, {
|
|
13492
13597
|
control: control,
|
|
13493
13598
|
name: "completeAddress",
|
|
13494
|
-
defaultValue:
|
|
13599
|
+
defaultValue: initialCompleteAddress || "",
|
|
13495
13600
|
render: props => /*#__PURE__*/React.createElement("div", {
|
|
13496
13601
|
className: "field"
|
|
13497
13602
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
13498
13603
|
className: "form-field",
|
|
13499
|
-
value: getValues("completeAddress"),
|
|
13500
|
-
disable:
|
|
13501
|
-
disabled:
|
|
13502
|
-
onChange:
|
|
13503
|
-
|
|
13604
|
+
value: props.value ?? getValues("completeAddress") ?? initialCompleteAddress ?? "",
|
|
13605
|
+
disable: addresses.length > 0,
|
|
13606
|
+
disabled: addresses.length > 0,
|
|
13607
|
+
onChange: e => {
|
|
13608
|
+
props.onChange(e.target.value);
|
|
13609
|
+
setValue("completeAddress", e.target.value);
|
|
13610
|
+
},
|
|
13611
|
+
style: addresses.length > 0 ? {
|
|
13504
13612
|
backgroundColor: "#eee"
|
|
13505
|
-
}
|
|
13613
|
+
} : {}
|
|
13506
13614
|
}))
|
|
13507
13615
|
})))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
13508
13616
|
open: showDocModal,
|
|
@@ -16914,39 +17022,53 @@ const WSActivationCommentsDetails = _ref => {
|
|
|
16914
17022
|
};
|
|
16915
17023
|
|
|
16916
17024
|
const WSActivationSupportingDocuments = _ref => {
|
|
16917
|
-
var _formData$supportingD, _formData$supportingD2;
|
|
17025
|
+
var _formData$supportingD, _formData$supportingD2, _formData$supportingD3, _formData$supportingD4, _formState$errors, _formState$errors2, _formState$errors2$co, _formErrors$config$ke, _formState$errors3, _formState$errors3$co, _formErrors$config$ke2;
|
|
16918
17026
|
let {
|
|
16919
17027
|
t,
|
|
16920
17028
|
config,
|
|
16921
17029
|
userType,
|
|
16922
17030
|
formData,
|
|
16923
|
-
onSelect
|
|
17031
|
+
onSelect,
|
|
17032
|
+
setError: setFormError,
|
|
17033
|
+
clearErrors: clearFormErrors,
|
|
17034
|
+
formState,
|
|
17035
|
+
errors: formErrors
|
|
16924
17036
|
} = _ref;
|
|
16925
|
-
const stateId = Digit.ULBService.getStateId();
|
|
16926
17037
|
const tenantIdCode = Digit.ULBService.getCurrentTenantId();
|
|
16927
|
-
const
|
|
17038
|
+
const initialDoc = (formData === null || formData === void 0 ? void 0 : (_formData$supportingD = formData.supportingDocuments) === null || _formData$supportingD === void 0 ? void 0 : _formData$supportingD[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$supportingD2 = formData.supportingDocuments) === null || _formData$supportingD2 === void 0 ? void 0 : (_formData$supportingD3 = _formData$supportingD2.documents) === null || _formData$supportingD3 === void 0 ? void 0 : _formData$supportingD3[0]) || (formData !== null && formData !== void 0 && (_formData$supportingD4 = formData.supportingDocuments) !== null && _formData$supportingD4 !== void 0 && _formData$supportingD4.fileStoreId ? formData === null || formData === void 0 ? void 0 : formData.supportingDocuments : null);
|
|
17039
|
+
const [documents, setDocuments] = useState(initialDoc !== null && initialDoc !== void 0 && initialDoc.fileStoreId ? [initialDoc] : []);
|
|
16928
17040
|
const [error, setError] = useState(null);
|
|
16929
|
-
const [uploadedFile, setUploadedFile] = useState(null);
|
|
17041
|
+
const [uploadedFile, setUploadedFile] = useState((initialDoc === null || initialDoc === void 0 ? void 0 : initialDoc.fileStoreId) || null);
|
|
16930
17042
|
const [file, setFile] = useState(null);
|
|
16931
|
-
const goNext = () => {
|
|
16932
|
-
onSelect(config.key, {
|
|
16933
|
-
documents
|
|
16934
|
-
});
|
|
16935
|
-
};
|
|
16936
17043
|
function selectfile(e) {
|
|
16937
|
-
|
|
17044
|
+
var _e$target$files;
|
|
17045
|
+
const selectedFile = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
17046
|
+
if (selectedFile) {
|
|
17047
|
+
setFile(selectedFile);
|
|
17048
|
+
}
|
|
16938
17049
|
}
|
|
16939
17050
|
useEffect(() => {
|
|
16940
|
-
|
|
16941
|
-
|
|
17051
|
+
var _formData$supportingD5, _formData$supportingD6, _formData$supportingD7, _formData$supportingD8;
|
|
17052
|
+
const doc = (formData === null || formData === void 0 ? void 0 : (_formData$supportingD5 = formData.supportingDocuments) === null || _formData$supportingD5 === void 0 ? void 0 : _formData$supportingD5[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$supportingD6 = formData.supportingDocuments) === null || _formData$supportingD6 === void 0 ? void 0 : (_formData$supportingD7 = _formData$supportingD6.documents) === null || _formData$supportingD7 === void 0 ? void 0 : _formData$supportingD7[0]) || (formData !== null && formData !== void 0 && (_formData$supportingD8 = formData.supportingDocuments) !== null && _formData$supportingD8 !== void 0 && _formData$supportingD8.fileStoreId ? formData === null || formData === void 0 ? void 0 : formData.supportingDocuments : null);
|
|
17053
|
+
if (doc !== null && doc !== void 0 && doc.fileStoreId && !uploadedFile) {
|
|
17054
|
+
setUploadedFile(doc.fileStoreId);
|
|
17055
|
+
setDocuments([doc]);
|
|
17056
|
+
}
|
|
17057
|
+
}, [formData === null || formData === void 0 ? void 0 : formData.supportingDocuments]);
|
|
16942
17058
|
useEffect(() => {
|
|
16943
|
-
if (
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
17059
|
+
if (uploadedFile) {
|
|
17060
|
+
if (clearFormErrors && config !== null && config !== void 0 && config.key) {
|
|
17061
|
+
clearFormErrors(config.key);
|
|
17062
|
+
}
|
|
17063
|
+
} else {
|
|
17064
|
+
if (setFormError && config !== null && config !== void 0 && config.key) {
|
|
17065
|
+
setFormError(config.key, {
|
|
17066
|
+
type: "required",
|
|
17067
|
+
message: t("CORE_COMMON_REQUIRED_ERRMSG") || t("REQUIRED_FIELD") || "Required"
|
|
17068
|
+
});
|
|
17069
|
+
}
|
|
16948
17070
|
}
|
|
16949
|
-
}, [
|
|
17071
|
+
}, [uploadedFile, setFormError, clearFormErrors, config === null || config === void 0 ? void 0 : config.key]);
|
|
16950
17072
|
useEffect(() => {
|
|
16951
17073
|
(function () {
|
|
16952
17074
|
try {
|
|
@@ -16967,7 +17089,21 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16967
17089
|
var _response$data, _response$data$files;
|
|
16968
17090
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
16969
17091
|
var _response$data2, _response$data2$files;
|
|
16970
|
-
|
|
17092
|
+
const fsId = response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId;
|
|
17093
|
+
setUploadedFile(fsId);
|
|
17094
|
+
setDocuments([{
|
|
17095
|
+
fileStoreId: fsId,
|
|
17096
|
+
documentUid: fsId
|
|
17097
|
+
}]);
|
|
17098
|
+
if (onSelect && config !== null && config !== void 0 && config.key) {
|
|
17099
|
+
onSelect(config.key, [{
|
|
17100
|
+
fileStoreId: fsId,
|
|
17101
|
+
documentUid: fsId
|
|
17102
|
+
}]);
|
|
17103
|
+
}
|
|
17104
|
+
if (clearFormErrors && config !== null && config !== void 0 && config.key) {
|
|
17105
|
+
clearFormErrors(config.key);
|
|
17106
|
+
}
|
|
16971
17107
|
} else {
|
|
16972
17108
|
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
16973
17109
|
}
|
|
@@ -16990,27 +17126,38 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16990
17126
|
}
|
|
16991
17127
|
})();
|
|
16992
17128
|
}, [file]);
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17129
|
+
const handleDelete = () => {
|
|
17130
|
+
setUploadedFile(null);
|
|
17131
|
+
setDocuments([]);
|
|
17132
|
+
setFile(null);
|
|
17133
|
+
setError(null);
|
|
17134
|
+
if (onSelect && config !== null && config !== void 0 && config.key) {
|
|
17135
|
+
onSelect(config.key, null);
|
|
17136
|
+
}
|
|
17137
|
+
if (setFormError && config !== null && config !== void 0 && config.key) {
|
|
17138
|
+
setFormError(config.key, {
|
|
17139
|
+
type: "required",
|
|
17140
|
+
message: t("CORE_COMMON_REQUIRED_ERRMSG") || t("REQUIRED_FIELD") || "Required"
|
|
17000
17141
|
});
|
|
17001
17142
|
}
|
|
17002
|
-
}
|
|
17143
|
+
};
|
|
17144
|
+
const hasValidationError = !uploadedFile && ((formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : _formState$errors[config === null || config === void 0 ? void 0 : config.key]) || (formErrors === null || formErrors === void 0 ? void 0 : formErrors[config === null || config === void 0 ? void 0 : config.key]));
|
|
17145
|
+
const errorStyle = {
|
|
17146
|
+
width: "100%",
|
|
17147
|
+
marginLeft: "0px",
|
|
17148
|
+
fontSize: "12px",
|
|
17149
|
+
marginTop: "4px"
|
|
17150
|
+
};
|
|
17003
17151
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t(`WF_APPROVAL_UPLOAD_HEAD`), /*#__PURE__*/React.createElement("span", {
|
|
17004
17152
|
className: "check-page-link-button"
|
|
17005
17153
|
}, " *"), ":"), /*#__PURE__*/React.createElement("div", {
|
|
17006
17154
|
className: "field"
|
|
17007
17155
|
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
17156
|
+
id: "activation-supporting-documents",
|
|
17008
17157
|
onUpload: e => {
|
|
17009
17158
|
selectfile(e);
|
|
17010
17159
|
},
|
|
17011
|
-
onDelete:
|
|
17012
|
-
setUploadedFile(null);
|
|
17013
|
-
},
|
|
17160
|
+
onDelete: handleDelete,
|
|
17014
17161
|
message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
|
|
17015
17162
|
textStyles: {
|
|
17016
17163
|
width: "100%"
|
|
@@ -17020,9 +17167,13 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
17020
17167
|
},
|
|
17021
17168
|
buttonType: "button",
|
|
17022
17169
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
17023
|
-
iserror: error,
|
|
17170
|
+
iserror: error || (hasValidationError && (formState !== null && formState !== void 0 && formState.isSubmitted || (formState === null || formState === void 0 ? void 0 : formState.submitCount) > 0) ? (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.message) || (formErrors === null || formErrors === void 0 ? void 0 : (_formErrors$config$ke = formErrors[config === null || config === void 0 ? void 0 : config.key]) === null || _formErrors$config$ke === void 0 ? void 0 : _formErrors$config$ke.message) || t("CORE_COMMON_REQUIRED_ERRMSG") : null),
|
|
17024
17171
|
isMandatory: true
|
|
17025
|
-
})
|
|
17172
|
+
}), error ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17173
|
+
style: errorStyle
|
|
17174
|
+
}, error) : null, !error && hasValidationError && (formState !== null && formState !== void 0 && formState.isSubmitted || (formState === null || formState === void 0 ? void 0 : formState.submitCount) > 0) ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17175
|
+
style: errorStyle
|
|
17176
|
+
}, (formState === null || formState === void 0 ? void 0 : (_formState$errors3 = formState.errors) === null || _formState$errors3 === void 0 ? void 0 : (_formState$errors3$co = _formState$errors3[config === null || config === void 0 ? void 0 : config.key]) === null || _formState$errors3$co === void 0 ? void 0 : _formState$errors3$co.message) || (formErrors === null || formErrors === void 0 ? void 0 : (_formErrors$config$ke2 = formErrors[config === null || config === void 0 ? void 0 : config.key]) === null || _formErrors$config$ke2 === void 0 ? void 0 : _formErrors$config$ke2.message) || t("CORE_COMMON_REQUIRED_ERRMSG")) : null)));
|
|
17026
17177
|
};
|
|
17027
17178
|
|
|
17028
17179
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
@@ -23036,7 +23187,6 @@ const WSRestorationForm = _ref => {
|
|
|
23036
23187
|
var _data$code;
|
|
23037
23188
|
return data.i18nKey = `WS_DISCONNECTIONTYPE_${stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$code = data.code) === null || _data$code === void 0 ? void 0 : _data$code.toUpperCase(), " ", "_")}`;
|
|
23038
23189
|
});
|
|
23039
|
-
console.log("disconnectionTypes", disconnectionTypes);
|
|
23040
23190
|
setDisconnectionTypeList(disconnectionTypes);
|
|
23041
23191
|
}, [mdmsData]);
|
|
23042
23192
|
useEffect(() => {
|
|
@@ -23850,7 +24000,6 @@ const WSRestorationForm = _ref => {
|
|
|
23850
24000
|
onClose: () => setError(null)
|
|
23851
24001
|
}));
|
|
23852
24002
|
}
|
|
23853
|
-
console.log("applicationData", applicationData);
|
|
23854
24003
|
return /*#__PURE__*/React.createElement("div", {
|
|
23855
24004
|
style: {
|
|
23856
24005
|
margin: "16px"
|
|
@@ -25637,6 +25786,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
25637
25786
|
} = useForm({
|
|
25638
25787
|
defaultValues: (formData === null || formData === void 0 ? void 0 : formData[config.key]) || {
|
|
25639
25788
|
useDetails: {
|
|
25789
|
+
categoryType: null,
|
|
25640
25790
|
propertyCategory: null,
|
|
25641
25791
|
propertyType: null,
|
|
25642
25792
|
WaterConnectionUsageType: null,
|
|
@@ -25659,13 +25809,6 @@ const PropertyWaterConnection = _ref => {
|
|
|
25659
25809
|
const {
|
|
25660
25810
|
data: ptServicesMastersData
|
|
25661
25811
|
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", ["PropertyCategory", "PropertyType", "NoOfFloors", "PropertyNewUsageType", "PropertyToUsageMapping", "PropertyType2"]);
|
|
25662
|
-
useEffect(() => {
|
|
25663
|
-
var _ptServicesMastersDat, _ptServicesMastersDat2;
|
|
25664
|
-
console.log("[PropertyWaterConnection] tenantId used for MDMS:", tenantId);
|
|
25665
|
-
console.log("[PropertyWaterConnection] MDMS raw response (ptServicesMastersData):", ptServicesMastersData);
|
|
25666
|
-
console.log("[PropertyWaterConnection] MDMS PropertyTax.PropertyType2:", ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat === void 0 ? void 0 : _ptServicesMastersDat.PropertyType2);
|
|
25667
|
-
console.log("[PropertyWaterConnection] MDMS PropertyTax.PropertyType:", ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat2 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat2 === void 0 ? void 0 : _ptServicesMastersDat2.PropertyType);
|
|
25668
|
-
}, [tenantId, ptServicesMastersData]);
|
|
25669
25812
|
const {
|
|
25670
25813
|
data: wsServicesMastersData
|
|
25671
25814
|
} = Digit.Hooks.ws.useMDMS(tenantId, "ws-services-masters", ["WsCategoryType"]);
|
|
@@ -25705,8 +25848,16 @@ const PropertyWaterConnection = _ref => {
|
|
|
25705
25848
|
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";
|
|
25706
25849
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
25707
25850
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
25708
|
-
const
|
|
25709
|
-
const isDwellingUnit =
|
|
25851
|
+
const isResidential = normalizeCode((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) || (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.name) || watchPropertyCategory) === "RESIDENTIAL" || normalizeCode(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.propertyCategory) === "RESIDENTIAL";
|
|
25852
|
+
const isDwellingUnit = isResidential;
|
|
25853
|
+
useEffect(() => {
|
|
25854
|
+
if (!isDwellingUnit) {
|
|
25855
|
+
setValue("useDetails.NumberofDwellingUnits", "");
|
|
25856
|
+
if (clearErrors) {
|
|
25857
|
+
clearErrors("useDetails.NumberofDwellingUnits");
|
|
25858
|
+
}
|
|
25859
|
+
}
|
|
25860
|
+
}, [isDwellingUnit]);
|
|
25710
25861
|
const yearOptions = useMemo(() => {
|
|
25711
25862
|
const currentYear = new Date().getFullYear();
|
|
25712
25863
|
const years = [];
|
|
@@ -25718,25 +25869,27 @@ const PropertyWaterConnection = _ref => {
|
|
|
25718
25869
|
}
|
|
25719
25870
|
return years;
|
|
25720
25871
|
}, []);
|
|
25721
|
-
const categoryOptions = useMemo(() => {
|
|
25722
|
-
var _ptServicesMastersDat3, _ptServicesMastersDat4;
|
|
25723
|
-
let options = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat3 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat3 === void 0 ? void 0 : (_ptServicesMastersDat4 = _ptServicesMastersDat3.PropertyCategory) === null || _ptServicesMastersDat4 === void 0 ? void 0 : _ptServicesMastersDat4.filter(item => item.active)) || [];
|
|
25724
|
-
return options.map(item => ({
|
|
25725
|
-
code: item.code,
|
|
25726
|
-
name: item.name
|
|
25727
|
-
}));
|
|
25728
|
-
}, [ptServicesMastersData]);
|
|
25729
25872
|
const propertyType2List = useMemo(() => {
|
|
25730
|
-
var
|
|
25731
|
-
const fromMdms = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25873
|
+
var _ptServicesMastersDat;
|
|
25874
|
+
const fromMdms = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat === void 0 ? void 0 : _ptServicesMastersDat.PropertyType2;
|
|
25732
25875
|
if (Array.isArray(fromMdms) && fromMdms.length > 0) {
|
|
25733
25876
|
return fromMdms;
|
|
25734
25877
|
}
|
|
25735
25878
|
return [];
|
|
25736
25879
|
}, [ptServicesMastersData]);
|
|
25880
|
+
const categoryOptions = useMemo(() => {
|
|
25881
|
+
var _ptServicesMastersDat2;
|
|
25882
|
+
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) || [];
|
|
25883
|
+
const uniqueCats = [...new Set(list.map(item => item.propertyCategory).filter(Boolean))];
|
|
25884
|
+
return uniqueCats.map(cat => ({
|
|
25885
|
+
code: cat,
|
|
25886
|
+
name: cat,
|
|
25887
|
+
i18nKey: cat
|
|
25888
|
+
}));
|
|
25889
|
+
}, [propertyType2List, ptServicesMastersData]);
|
|
25737
25890
|
const propertyTypeOptions = useMemo(() => {
|
|
25738
|
-
var
|
|
25739
|
-
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25891
|
+
var _ptServicesMastersDat3;
|
|
25892
|
+
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat3 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat3 === void 0 ? void 0 : _ptServicesMastersDat3.PropertyType) || [];
|
|
25740
25893
|
return list.filter(item => item.active !== false).map(item => ({
|
|
25741
25894
|
...item,
|
|
25742
25895
|
code: item.code,
|
|
@@ -25745,8 +25898,8 @@ const PropertyWaterConnection = _ref => {
|
|
|
25745
25898
|
}));
|
|
25746
25899
|
}, [propertyType2List, ptServicesMastersData]);
|
|
25747
25900
|
const usageTypeOptions = useMemo(() => {
|
|
25748
|
-
var
|
|
25749
|
-
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25901
|
+
var _ptServicesMastersDat4;
|
|
25902
|
+
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) || [];
|
|
25750
25903
|
const uniqueTypes = [...new Set(list.map(item => item.waterConnectionUsageType).filter(Boolean))];
|
|
25751
25904
|
const typesToMap = uniqueTypes.length > 0 ? uniqueTypes : ["Normal", "Bulk"];
|
|
25752
25905
|
return typesToMap.map(type => ({
|
|
@@ -25755,42 +25908,118 @@ const PropertyWaterConnection = _ref => {
|
|
|
25755
25908
|
value: type
|
|
25756
25909
|
}));
|
|
25757
25910
|
}, [propertyType2List, ptServicesMastersData]);
|
|
25911
|
+
const availableCategoryOptions = useMemo(() => {
|
|
25912
|
+
var _ptServicesMastersDat5;
|
|
25913
|
+
const propType = watchPropertyType !== null && watchPropertyType !== void 0 && watchPropertyType.code ? watchPropertyType : null;
|
|
25914
|
+
if (!propType) {
|
|
25915
|
+
return categoryTypeList;
|
|
25916
|
+
}
|
|
25917
|
+
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : _ptServicesMastersDat5.PropertyType) || [];
|
|
25918
|
+
const matched = list.find(item => normalizeCode(item.code) === normalizeCode(propType.code)) || propType;
|
|
25919
|
+
let rawCats = matched === null || matched === void 0 ? void 0 : matched.categoryType;
|
|
25920
|
+
if (!rawCats) return categoryTypeList;
|
|
25921
|
+
if (!Array.isArray(rawCats)) rawCats = [rawCats];
|
|
25922
|
+
rawCats = rawCats.map(c => typeof c === "object" ? (c === null || c === void 0 ? void 0 : c.name) || (c === null || c === void 0 ? void 0 : c.code) || (c === null || c === void 0 ? void 0 : c.value) || "" : String(c || "")).map(c => c.trim()).filter(Boolean);
|
|
25923
|
+
if (rawCats.length === 0) return categoryTypeList;
|
|
25924
|
+
const normalizedAllowed = rawCats.map(c => normalizeCode(c));
|
|
25925
|
+
const matchedOptions = categoryTypeList.filter(item => normalizedAllowed.includes(normalizeCode(item.code)) || normalizedAllowed.includes(normalizeCode(item.name)));
|
|
25926
|
+
if (matchedOptions.length > 0) {
|
|
25927
|
+
return matchedOptions;
|
|
25928
|
+
}
|
|
25929
|
+
return rawCats.map(catStr => {
|
|
25930
|
+
const isDomestic = normalizeCode(catStr) === "DOMESTIC";
|
|
25931
|
+
const isNonDomestic = normalizeCode(catStr) === "NONDOMESTIC";
|
|
25932
|
+
const code = isDomestic ? "DOMESTIC" : isNonDomestic ? "NON_DOMESTIC" : String(catStr).toUpperCase();
|
|
25933
|
+
const name = isDomestic ? "Domestic" : isNonDomestic ? "Non-Domestic" : String(catStr);
|
|
25934
|
+
return {
|
|
25935
|
+
code,
|
|
25936
|
+
name,
|
|
25937
|
+
i18nKey: t && t(`WS_CATEGORY_${code}`) !== `WS_CATEGORY_${code}` ? `WS_CATEGORY_${code}` : name
|
|
25938
|
+
};
|
|
25939
|
+
});
|
|
25940
|
+
}, [watchPropertyType, propertyType2List, ptServicesMastersData, categoryTypeList, t]);
|
|
25941
|
+
const autoFillFromPropertyType = React.useCallback(propTypeItem => {
|
|
25942
|
+
var _ptServicesMastersDat6;
|
|
25943
|
+
if (!(propTypeItem !== null && propTypeItem !== void 0 && propTypeItem.code)) return;
|
|
25944
|
+
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat6 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.PropertyType) || [];
|
|
25945
|
+
const matched = list.find(item => normalizeCode(item.code) === normalizeCode(propTypeItem.code)) || propTypeItem;
|
|
25946
|
+
console.log("[PropertyWaterConnection] Property Type selected:", matched === null || matched === void 0 ? void 0 : matched.code);
|
|
25947
|
+
console.log("[PropertyWaterConnection] Matched item from MDMS:", matched);
|
|
25948
|
+
if (matched !== null && matched !== void 0 && matched.categoryType) {
|
|
25949
|
+
let rawCats = matched.categoryType;
|
|
25950
|
+
if (!Array.isArray(rawCats)) rawCats = [rawCats];
|
|
25951
|
+
rawCats = rawCats.map(c => typeof c === "object" ? (c === null || c === void 0 ? void 0 : c.name) || (c === null || c === void 0 ? void 0 : c.code) || (c === null || c === void 0 ? void 0 : c.value) || "" : String(c || "")).map(c => c.trim()).filter(Boolean);
|
|
25952
|
+
const hasDomestic = rawCats.some(c => normalizeCode(c) === "DOMESTIC");
|
|
25953
|
+
const hasNonDomestic = rawCats.some(c => normalizeCode(c) === "NONDOMESTIC");
|
|
25954
|
+
let targetCat = null;
|
|
25955
|
+
if (hasDomestic) {
|
|
25956
|
+
targetCat = categoryTypeList.find(c => normalizeCode(c.code) === "DOMESTIC" || normalizeCode(c.name) === "DOMESTIC") || {
|
|
25957
|
+
code: "DOMESTIC",
|
|
25958
|
+
name: "Domestic",
|
|
25959
|
+
i18nKey: t && t("WS_CATEGORY_DOMESTIC") !== "WS_CATEGORY_DOMESTIC" ? "WS_CATEGORY_DOMESTIC" : "Domestic"
|
|
25960
|
+
};
|
|
25961
|
+
} else if (hasNonDomestic) {
|
|
25962
|
+
targetCat = categoryTypeList.find(c => normalizeCode(c.code) === "NONDOMESTIC" || normalizeCode(c.name) === "NONDOMESTIC") || {
|
|
25963
|
+
code: "NON_DOMESTIC",
|
|
25964
|
+
name: "Non-Domestic",
|
|
25965
|
+
i18nKey: t && t("WS_CATEGORY_NON_DOMESTIC") !== "WS_CATEGORY_NON_DOMESTIC" ? "WS_CATEGORY_NON_DOMESTIC" : "Non-Domestic"
|
|
25966
|
+
};
|
|
25967
|
+
} else if (rawCats.length > 0) {
|
|
25968
|
+
const firstNorm = normalizeCode(rawCats[0]);
|
|
25969
|
+
targetCat = categoryTypeList.find(c => normalizeCode(c.code) === firstNorm || normalizeCode(c.name) === firstNorm) || {
|
|
25970
|
+
code: rawCats[0].toUpperCase(),
|
|
25971
|
+
name: rawCats[0],
|
|
25972
|
+
i18nKey: t && t(`WS_CATEGORY_${rawCats[0]}`) !== `WS_CATEGORY_${rawCats[0]}` ? `WS_CATEGORY_${rawCats[0]}` : rawCats[0]
|
|
25973
|
+
};
|
|
25974
|
+
}
|
|
25975
|
+
if (targetCat) {
|
|
25976
|
+
setValue("useDetails.categoryType", targetCat, {
|
|
25977
|
+
shouldValidate: true,
|
|
25978
|
+
shouldDirty: true
|
|
25979
|
+
});
|
|
25980
|
+
if (clearErrors) clearErrors("useDetails.categoryType");
|
|
25981
|
+
}
|
|
25982
|
+
}
|
|
25983
|
+
if (matched !== null && matched !== void 0 && matched.propertyCategory) {
|
|
25984
|
+
const foundPropCat = categoryOptions.find(c => normalizeCode(c.code) === normalizeCode(matched.propertyCategory) || normalizeCode(c.name) === normalizeCode(matched.propertyCategory)) || {
|
|
25985
|
+
code: matched.propertyCategory,
|
|
25986
|
+
name: matched.propertyCategory,
|
|
25987
|
+
i18nKey: matched.propertyCategory
|
|
25988
|
+
};
|
|
25989
|
+
setValue("useDetails.propertyCategory", foundPropCat, {
|
|
25990
|
+
shouldValidate: true,
|
|
25991
|
+
shouldDirty: true
|
|
25992
|
+
});
|
|
25993
|
+
if (clearErrors) clearErrors("useDetails.propertyCategory");
|
|
25994
|
+
}
|
|
25995
|
+
if (matched !== null && matched !== void 0 && matched.waterConnectionUsageType) {
|
|
25996
|
+
const foundUsage = usageTypeOptions.find(u => normalizeCode(u.code) === normalizeCode(matched.waterConnectionUsageType) || normalizeCode(u.name) === normalizeCode(matched.waterConnectionUsageType)) || {
|
|
25997
|
+
code: matched.waterConnectionUsageType,
|
|
25998
|
+
name: matched.waterConnectionUsageType,
|
|
25999
|
+
value: matched.waterConnectionUsageType
|
|
26000
|
+
};
|
|
26001
|
+
setValue("useDetails.WaterConnectionUsageType", foundUsage, {
|
|
26002
|
+
shouldValidate: true,
|
|
26003
|
+
shouldDirty: true
|
|
26004
|
+
});
|
|
26005
|
+
if (clearErrors) clearErrors("useDetails.WaterConnectionUsageType");
|
|
26006
|
+
}
|
|
26007
|
+
}, [propertyType2List, ptServicesMastersData, categoryTypeList, categoryOptions, usageTypeOptions, setValue, clearErrors, t]);
|
|
25758
26008
|
const prevPropertyTypeCode = React.useRef(null);
|
|
25759
26009
|
useEffect(() => {
|
|
25760
|
-
var _ptServicesMastersDat8;
|
|
25761
26010
|
if (!(watchPropertyType !== null && watchPropertyType !== void 0 && watchPropertyType.code)) {
|
|
25762
26011
|
prevPropertyTypeCode.current = null;
|
|
25763
26012
|
return;
|
|
25764
26013
|
}
|
|
25765
26014
|
const isNewType = prevPropertyTypeCode.current !== watchPropertyType.code;
|
|
25766
|
-
|
|
25767
|
-
|
|
25768
|
-
|
|
25769
|
-
if (matched && isNewType) {
|
|
25770
|
-
if (matched.categoryType && categoryTypeList.length > 0) {
|
|
25771
|
-
const catTarget = Array.isArray(matched.categoryType) ? matched.categoryType[0] : matched.categoryType;
|
|
25772
|
-
const foundCat = categoryTypeList.find(c => normalizeCode(c.code) === normalizeCode(catTarget) || normalizeCode(c.name) === normalizeCode(catTarget));
|
|
25773
|
-
if (foundCat) {
|
|
25774
|
-
setValue("useDetails.categoryType", foundCat);
|
|
25775
|
-
}
|
|
25776
|
-
}
|
|
25777
|
-
if (matched.propertyCategory && categoryOptions.length > 0) {
|
|
25778
|
-
const foundPropCat = categoryOptions.find(c => normalizeCode(c.code) === normalizeCode(matched.propertyCategory) || normalizeCode(c.name) === normalizeCode(matched.propertyCategory));
|
|
25779
|
-
if (foundPropCat) {
|
|
25780
|
-
setValue("useDetails.propertyCategory", foundPropCat);
|
|
25781
|
-
}
|
|
25782
|
-
}
|
|
25783
|
-
if (matched.waterConnectionUsageType && usageTypeOptions.length > 0) {
|
|
25784
|
-
const foundUsage = usageTypeOptions.find(u => normalizeCode(u.code) === normalizeCode(matched.waterConnectionUsageType) || normalizeCode(u.name) === normalizeCode(matched.waterConnectionUsageType));
|
|
25785
|
-
if (foundUsage) {
|
|
25786
|
-
setValue("useDetails.WaterConnectionUsageType", foundUsage);
|
|
25787
|
-
}
|
|
25788
|
-
}
|
|
26015
|
+
if (isNewType) {
|
|
26016
|
+
prevPropertyTypeCode.current = watchPropertyType.code;
|
|
26017
|
+
autoFillFromPropertyType(watchPropertyType);
|
|
25789
26018
|
}
|
|
25790
|
-
}, [watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code,
|
|
26019
|
+
}, [watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code, autoFillFromPropertyType]);
|
|
25791
26020
|
const floorOptions = useMemo(() => {
|
|
25792
|
-
var
|
|
25793
|
-
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
26021
|
+
var _ptServicesMastersDat7, _ptServicesMastersDat8;
|
|
26022
|
+
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat7 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat7 === void 0 ? void 0 : (_ptServicesMastersDat8 = _ptServicesMastersDat7.NoOfFloors) === null || _ptServicesMastersDat8 === void 0 ? void 0 : _ptServicesMastersDat8.filter(item => item.active).map(item => ({
|
|
25794
26023
|
code: item.code,
|
|
25795
26024
|
name: item.name
|
|
25796
26025
|
}));
|
|
@@ -25799,25 +26028,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25799
26028
|
if (!(watchPropertyType !== null && watchPropertyType !== void 0 && watchPropertyType.code)) return [];
|
|
25800
26029
|
let qList = watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.questions;
|
|
25801
26030
|
if (!qList || !Array.isArray(qList)) {
|
|
25802
|
-
var
|
|
25803
|
-
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
26031
|
+
var _ptServicesMastersDat9;
|
|
26032
|
+
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat9 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat9 === void 0 ? void 0 : _ptServicesMastersDat9.PropertyType) || [];
|
|
25804
26033
|
const matched = list.find(item => normalizeCode(item.code) === normalizeCode(watchPropertyType.code));
|
|
25805
26034
|
qList = matched === null || matched === void 0 ? void 0 : matched.questions;
|
|
25806
26035
|
}
|
|
25807
26036
|
if (!qList || !Array.isArray(qList)) return [];
|
|
25808
26037
|
return qList.map(q => typeof q === "object" ? (q === null || q === void 0 ? void 0 : q.question) || (q === null || q === void 0 ? void 0 : q.title) || (q === null || q === void 0 ? void 0 : q.name) || "" : String(q || "")).map(q => q.trim()).filter(q => q.length > 0);
|
|
25809
26038
|
}, [watchPropertyType, propertyType2List, ptServicesMastersData]);
|
|
25810
|
-
useEffect(() => {
|
|
25811
|
-
if (watchPropertyType !== null && watchPropertyType !== void 0 && watchPropertyType.code) {
|
|
25812
|
-
var _ptServicesMastersDat10;
|
|
25813
|
-
const list = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat10 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat10 === void 0 ? void 0 : _ptServicesMastersDat10.PropertyType) || [];
|
|
25814
|
-
const matched = list.find(item => normalizeCode(item.code) === normalizeCode(watchPropertyType.code));
|
|
25815
|
-
console.log("[PropertyWaterConnection] Selected propertyType:", watchPropertyType);
|
|
25816
|
-
console.log("[PropertyWaterConnection] Matched item in MDMS list:", matched);
|
|
25817
|
-
console.log("[PropertyWaterConnection] Matched questions in MDMS:", matched === null || matched === void 0 ? void 0 : matched.questions);
|
|
25818
|
-
console.log("[PropertyWaterConnection] Active questions to display:", activeQuestions);
|
|
25819
|
-
}
|
|
25820
|
-
}, [watchPropertyType, propertyType2List, ptServicesMastersData, activeQuestions]);
|
|
25821
26039
|
const [questionAnswers, setQuestionAnswers] = useState(() => {
|
|
25822
26040
|
var _formData$config$key, _formData$config$key$, _formData$config$key2, _formData$config$key3, _formData$config$key4;
|
|
25823
26041
|
const existing = (formData === null || formData === void 0 ? void 0 : (_formData$config$key = formData[config === null || config === void 0 ? void 0 : config.key]) === null || _formData$config$key === void 0 ? void 0 : (_formData$config$key$ = _formData$config$key.useDetails) === null || _formData$config$key$ === void 0 ? void 0 : _formData$config$key$.questionAnswers) || (formData === null || formData === void 0 ? void 0 : (_formData$config$key2 = formData[config === null || config === void 0 ? void 0 : config.key]) === null || _formData$config$key2 === void 0 ? void 0 : (_formData$config$key3 = _formData$config$key2.useDetails) === null || _formData$config$key3 === void 0 ? void 0 : _formData$config$key3.questions) || (formData === null || formData === void 0 ? void 0 : (_formData$config$key4 = formData[config === null || config === void 0 ? void 0 : config.key]) === null || _formData$config$key4 === void 0 ? void 0 : _formData$config$key4.questionAnswers) || [];
|
|
@@ -25853,9 +26071,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
25853
26071
|
return updated;
|
|
25854
26072
|
});
|
|
25855
26073
|
};
|
|
26074
|
+
const prevQuestionsRef = React.useRef(null);
|
|
25856
26075
|
useEffect(() => {
|
|
25857
|
-
|
|
25858
|
-
|
|
26076
|
+
if (!lodash.isEqual(prevQuestionsRef.current, questionAnswers)) {
|
|
26077
|
+
prevQuestionsRef.current = lodash.cloneDeep(questionAnswers);
|
|
26078
|
+
setValue("useDetails.questions", questionAnswers);
|
|
26079
|
+
}
|
|
25859
26080
|
}, [questionAnswers, setValue]);
|
|
25860
26081
|
const lastSentValue = React.useRef(null);
|
|
25861
26082
|
useEffect(() => {
|
|
@@ -25877,23 +26098,27 @@ const PropertyWaterConnection = _ref => {
|
|
|
25877
26098
|
if (propertyDetailsInitialized.current || !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && _formData$cpt.details)) return;
|
|
25878
26099
|
if (!categoryTypeList.length || !ptServicesMastersData) return;
|
|
25879
26100
|
if (formData !== null && formData !== void 0 && (_formData$cpt2 = formData.cpt) !== null && _formData$cpt2 !== void 0 && _formData$cpt2.details) {
|
|
25880
|
-
var
|
|
26101
|
+
var _ptServicesMastersDat0, _ptServicesMastersDat1, _ptServicesMastersDat10, _details$landArea, _details$superBuiltUp, _details$heightOfTheB, _details$farArea, _details$servantQuart, _details$numberOfBeds, _details$numberOfStud;
|
|
25881
26102
|
const details = formData.cpt.details;
|
|
25882
26103
|
const additionalDetails = (details === null || details === void 0 ? void 0 : details.additionalDetails) || {};
|
|
25883
26104
|
const usageCategory = getCode(additionalDetails.propertyCategory || additionalDetails.usageCategory || details.usageCategory);
|
|
25884
26105
|
const catType = getCode(additionalDetails.categoryType) || (String(usageCategory).includes("RESIDENTIAL") ? "DOMESTIC" : "NON_DOMESTIC");
|
|
25885
26106
|
setValue("useDetails.categoryType", (categoryTypeList === null || categoryTypeList === void 0 ? void 0 : categoryTypeList.find(o => normalizeCode(o.code) === normalizeCode(catType))) || null);
|
|
25886
|
-
const propCategoryMatch = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
26107
|
+
const propCategoryMatch = (categoryOptions === null || categoryOptions === void 0 ? void 0 : categoryOptions.find(o => normalizeCode(o.code) === normalizeCode(usageCategory) || normalizeCode(o.name) === normalizeCode(usageCategory))) || (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat0 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat0 === void 0 ? void 0 : (_ptServicesMastersDat1 = _ptServicesMastersDat0.PropertyCategory) === null || _ptServicesMastersDat1 === void 0 ? void 0 : _ptServicesMastersDat1.find(o => normalizeCode(o.code) === normalizeCode(usageCategory)));
|
|
25887
26108
|
setValue("useDetails.propertyCategory", propCategoryMatch ? {
|
|
25888
26109
|
code: propCategoryMatch.code,
|
|
25889
26110
|
name: propCategoryMatch.name
|
|
26111
|
+
} : usageCategory ? {
|
|
26112
|
+
code: usageCategory,
|
|
26113
|
+
name: usageCategory
|
|
25890
26114
|
} : null);
|
|
25891
|
-
const propTypeList = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
26115
|
+
const propTypeList = (propertyType2List === null || propertyType2List === void 0 ? void 0 : propertyType2List.length) > 0 ? propertyType2List : (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat10 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat10 === void 0 ? void 0 : _ptServicesMastersDat10.PropertyType) || [];
|
|
25892
26116
|
const propTypeMatch = propTypeList.find(o => normalizeCode(o.code) === normalizeCode(getCode(additionalDetails.propertyType || details.propertyType)));
|
|
25893
26117
|
setValue("useDetails.propertyType", propTypeMatch ? {
|
|
25894
26118
|
code: propTypeMatch.code,
|
|
25895
26119
|
name: propTypeMatch.name
|
|
25896
26120
|
} : null);
|
|
26121
|
+
prevPropertyTypeCode.current = (propTypeMatch === null || propTypeMatch === void 0 ? void 0 : propTypeMatch.code) || null;
|
|
25897
26122
|
const usageVal = getCode(additionalDetails.waterConnectionUsageType || additionalDetails.WaterConnectionUsageType);
|
|
25898
26123
|
const usageTypeMatch = usageTypeOptions.find(o => normalizeCode(o.code) === normalizeCode(usageVal) || normalizeCode(o.name) === normalizeCode(usageVal));
|
|
25899
26124
|
setValue("useDetails.WaterConnectionUsageType", usageTypeMatch || null);
|
|
@@ -25981,7 +26206,11 @@ const PropertyWaterConnection = _ref => {
|
|
|
25981
26206
|
option: propertyTypeOptions,
|
|
25982
26207
|
optionKey: "name",
|
|
25983
26208
|
selected: props.value,
|
|
25984
|
-
select:
|
|
26209
|
+
select: selected => {
|
|
26210
|
+
props.onChange(selected);
|
|
26211
|
+
prevPropertyTypeCode.current = selected === null || selected === void 0 ? void 0 : selected.code;
|
|
26212
|
+
autoFillFromPropertyType(selected);
|
|
26213
|
+
},
|
|
25985
26214
|
t: t,
|
|
25986
26215
|
onBlur: props.onBlur,
|
|
25987
26216
|
disable: isPropertyFound,
|
|
@@ -26000,7 +26229,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
26000
26229
|
required: t("REQUIRED_FIELD")
|
|
26001
26230
|
},
|
|
26002
26231
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26003
|
-
option:
|
|
26232
|
+
option: availableCategoryOptions,
|
|
26004
26233
|
optionKey: "i18nKey",
|
|
26005
26234
|
selected: props.value,
|
|
26006
26235
|
select: props.onChange,
|
|
@@ -26187,7 +26416,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
26187
26416
|
value: NUMBER_PATTERN$1,
|
|
26188
26417
|
message: t("ERR_INVALID_NUMBER")
|
|
26189
26418
|
},
|
|
26190
|
-
required: t("REQUIRED_FIELD")
|
|
26419
|
+
required: isDwellingUnit ? t("REQUIRED_FIELD") : false
|
|
26191
26420
|
}),
|
|
26192
26421
|
name: "useDetails.NumberofDwellingUnits",
|
|
26193
26422
|
disabled: isPropertyFound,
|
|
@@ -29144,7 +29373,11 @@ const WSCard = () => {
|
|
|
29144
29373
|
count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
|
|
29145
29374
|
label: t("WATER_INBOX"),
|
|
29146
29375
|
link: `/digit-ui/employee/ws/water/inbox`,
|
|
29147
|
-
roles: ["WS_CEMP", "WS_APPROVER", "
|
|
29376
|
+
roles: ["WS_CEMP", "WS_APPROVER", "EE", "WS_DEALING_CLERK", "WS_CLERK"]
|
|
29377
|
+
}, {
|
|
29378
|
+
label: t("WS_BILL_AMENDMENT_INBOX", "Bill Amendment Inbox"),
|
|
29379
|
+
link: `/digit-ui/employee/ws/water/bill-amendment/inbox`,
|
|
29380
|
+
roles: ["WS_CEMP", "WS_APPROVER", "EE", "WS_DEALING_CLERK", "WS_CLERK", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER"]
|
|
29148
29381
|
}, ...links, {
|
|
29149
29382
|
label: t("WS_WATER_CONNECTION_SEARCH_LABEL"),
|
|
29150
29383
|
link: `/digit-ui/employee/ws/water/search-connection`,
|
|
@@ -33214,7 +33447,7 @@ const Rebate_menu = [{
|
|
|
33214
33447
|
value: "Others"
|
|
33215
33448
|
}];
|
|
33216
33449
|
const WSFeeEstimation = _ref => {
|
|
33217
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$2, _wsAdditionalDetails$3, _wsAdditionalDetails$4, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _wsAdditionalDetails$5, _wsAdditionalDetails$6, _wsAdditionalDetails$7, _wsAdditionalDetails$8, _wsAdditionalDetails$9, _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13,
|
|
33450
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$2, _wsAdditionalDetails$3, _wsAdditionalDetails$4, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _wsAdditionalDetails$5, _wsAdditionalDetails$6, _wsAdditionalDetails$7, _workflowDetails$data0, _wsAdditionalDetails$8, _wsAdditionalDetails$9, _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$Proc, _workflowDetails$Proc2, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _billDetails$billDeta, _billDetails$billDeta2, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
33218
33451
|
let {
|
|
33219
33452
|
wsAdditionalDetails,
|
|
33220
33453
|
workflowDetails,
|
|
@@ -33227,27 +33460,30 @@ const WSFeeEstimation = _ref => {
|
|
|
33227
33460
|
const [sessionFormData, setSessionFormData, clearSessionFormData] = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {});
|
|
33228
33461
|
const [sessionBillFormData, setSessionBillFormData, clearBillSessionFormData] = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {});
|
|
33229
33462
|
const appStatus = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : (_wsAdditionalDetails$2 = _wsAdditionalDetails$.appDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : _wsAdditionalDetails$2.applicationStatus) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$3 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.data) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4.applicationStatus) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.state) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.applicationStatus) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state);
|
|
33230
|
-
const timeline = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.processInstances) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.ProcessInstances);
|
|
33463
|
+
const timeline = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.processInstances) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.ProcessInstances) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$5 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : (_wsAdditionalDetails$6 = _wsAdditionalDetails$5.appDetails) === null || _wsAdditionalDetails$6 === void 0 ? void 0 : _wsAdditionalDetails$6.processInstancesDetails) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$7 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$7 === void 0 ? void 0 : _wsAdditionalDetails$7.processInstancesDetails) || [];
|
|
33464
|
+
const allTimelineSteps = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.timeline) || [];
|
|
33465
|
+
const isSendBackToCitizen = Array.isArray(timeline) && timeline.some(step => (step === null || step === void 0 ? void 0 : step.action) === "SEND_BACK_TO_CITIZEN" || (step === null || step === void 0 ? void 0 : step.action) === "SEND_BACK_TO_CITIZEN_DIRECT") || Array.isArray(allTimelineSteps) && allTimelineSteps.some(step => (step === null || step === void 0 ? void 0 : step.performedAction) === "SEND_BACK_TO_CITIZEN" || (step === null || step === void 0 ? void 0 : step.performedAction) === "SEND_BACK_TO_CITIZEN_DIRECT");
|
|
33231
33466
|
const hasPaymentInTimeline = Array.isArray(timeline) && timeline.some(step => {
|
|
33232
|
-
var _step$state, _step$state2;
|
|
33233
|
-
return (step === null || step === void 0 ? void 0 : step.action) === "PAY" || (step === null || step === void 0 ? void 0 : (_step$state = step.state) === null || _step$state === void 0 ? void 0 : _step$state.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state2 = step.state) === null || _step$state2 === void 0 ? void 0 : _step$state2.applicationStatus) === "PENDING_FOR_PAYMENT";
|
|
33234
|
-
});
|
|
33235
|
-
const
|
|
33236
|
-
const
|
|
33237
|
-
const
|
|
33467
|
+
var _step$state, _step$state2, _step$state3, _step$state4, _step$state5, _step$state6;
|
|
33468
|
+
return (step === null || step === void 0 ? void 0 : step.action) === "PAY" || (step === null || step === void 0 ? void 0 : (_step$state = step.state) === null || _step$state === void 0 ? void 0 : _step$state.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state2 = step.state) === null || _step$state2 === void 0 ? void 0 : _step$state2.applicationStatus) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state3 = step.state) === null || _step$state3 === void 0 ? void 0 : _step$state3.state) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state4 = step.state) === null || _step$state4 === void 0 ? void 0 : _step$state4.state) === "PENDING_FOR_EE_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state5 = step.state) === null || _step$state5 === void 0 ? void 0 : _step$state5.applicationStatus) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state6 = step.state) === null || _step$state6 === void 0 ? void 0 : _step$state6.applicationStatus) === "PENDING_FOR_EE_APPROVAL";
|
|
33469
|
+
}) || Array.isArray(allTimelineSteps) && allTimelineSteps.some(step => (step === null || step === void 0 ? void 0 : step.performedAction) === "PAY" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_EE_APPROVAL" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_EE_APPROVAL");
|
|
33470
|
+
const isCitizenActionPostPayment = (appStatus === "PENDING_FOR_CITIZEN_ACTION" || appStatus === "PENDING FOR CITIZEN ACTION") && (isSendBackToCitizen || hasPaymentInTimeline);
|
|
33471
|
+
const isPostPaymentState = (hasPaymentInTimeline || isSendBackToCitizen) && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && (appStatus !== "PENDING_FOR_CITIZEN_ACTION" || isCitizenActionPostPayment) && appStatus !== "PENDING_FOR_FIELD_INSPECTION";
|
|
33472
|
+
const isWorkflowPaid = appStatus && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && (appStatus !== "PENDING_FOR_CITIZEN_ACTION" || isCitizenActionPostPayment) && appStatus !== "PENDING_FOR_FIELD_INSPECTION" && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "PENDING_FOR_FINAL_PAYMENT" && appStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && appStatus !== "PENDING_APPROVAL_FOR_MUTATION";
|
|
33473
|
+
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$8 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$8 !== void 0 && _wsAdditionalDetails$8.isPaid || isWorkflowPaid || isPostPaymentState || isCitizenActionPostPayment ? true : false;
|
|
33238
33474
|
const [popup, showPopUp] = useState(false);
|
|
33239
33475
|
const [fields, setFields] = useState(sessionFormData ? sessionFormData : {});
|
|
33240
33476
|
const [showToast, setShowToast] = useState(null);
|
|
33241
33477
|
const [billDetails, setBillDetails] = useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {});
|
|
33242
33478
|
const [values, setValues] = useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []);
|
|
33243
|
-
const isDisconnectionExecuted = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33244
|
-
const appType = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33245
|
-
const appNo = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33246
|
-
const wfBusinessService = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
33479
|
+
const isDisconnectionExecuted = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$9 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$9 === void 0 ? void 0 : (_wsAdditionalDetails$0 = _wsAdditionalDetails$9.appDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : _wsAdditionalDetails$0.applicationStatus) === "DISCONNECTION_EXECUTED";
|
|
33480
|
+
const appType = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$1 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : (_wsAdditionalDetails$10 = _wsAdditionalDetails$1.appDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : _wsAdditionalDetails$10.applicationType) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$11 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : (_wsAdditionalDetails$12 = _wsAdditionalDetails$11.data) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : _wsAdditionalDetails$12.applicationType) || "";
|
|
33481
|
+
const appNo = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$13 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : (_wsAdditionalDetails$14 = _wsAdditionalDetails$13.appDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : _wsAdditionalDetails$14.applicationNo) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$15 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : (_wsAdditionalDetails$16 = _wsAdditionalDetails$15.data) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : _wsAdditionalDetails$16.applicationNo) || "";
|
|
33482
|
+
const wfBusinessService = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data1 = workflowDetails.data) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.processInstances) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10[0]) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.businessService) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$Proc = workflowDetails.ProcessInstances) === null || _workflowDetails$Proc === void 0 ? void 0 : (_workflowDetails$Proc2 = _workflowDetails$Proc[0]) === null || _workflowDetails$Proc2 === void 0 ? void 0 : _workflowDetails$Proc2.businessService) || "";
|
|
33247
33483
|
const isDisconnection = (appType === null || appType === void 0 ? void 0 : appType.includes("DISCONNECT")) || (wfBusinessService === null || wfBusinessService === void 0 ? void 0 : wfBusinessService.includes("Disconnect")) || (appNo === null || appNo === void 0 ? void 0 : appNo.includes("DC"));
|
|
33248
|
-
const isDisconnectionFeeOnly = onlyDisconnectionFee || isDisconnectionExecuted || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33484
|
+
const isDisconnectionFeeOnly = onlyDisconnectionFee || isDisconnectionExecuted || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$17 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.onlyDisconnectionFee) || isDisconnection && ["PENDING_FOR_PAYMENT", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_ADDITIONAL_PAYMENT", "PENDING_APPROVAL_FOR_DISCONNECTION", "PENDING_FOR_DISCONNECTION_EXECUTION", "DISCONNECTION_EXECUTED"].includes(appStatus);
|
|
33249
33485
|
const isReconnection = (appType === null || appType === void 0 ? void 0 : appType.includes("RECONNECT")) || (wfBusinessService === null || wfBusinessService === void 0 ? void 0 : wfBusinessService.includes("Reconnection")) || (appNo === null || appNo === void 0 ? void 0 : appNo.includes("RC"));
|
|
33250
|
-
const isReconnectionFeeOnly = onlyReconnectionFee || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33486
|
+
const isReconnectionFeeOnly = onlyReconnectionFee || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$18 === void 0 ? void 0 : _wsAdditionalDetails$18.onlyReconnectionFee) || isReconnection && ["PENDING_FOR_PAYMENT", "PENDING_APPROVAL_FOR_RECONNECTION", "PENDING_FOR_RECONNECTION_EXECUTION", "CONNECTION_ACTIVATED"].includes(appStatus);
|
|
33251
33487
|
const billRows = (billDetails === null || billDetails === void 0 ? void 0 : (_billDetails$billDeta = billDetails.billDetails) === null || _billDetails$billDeta === void 0 ? void 0 : (_billDetails$billDeta2 = _billDetails$billDeta[0]) === null || _billDetails$billDeta2 === void 0 ? void 0 : _billDetails$billDeta2.billAccountDetails) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.taxHeadEstimates) || [];
|
|
33252
33488
|
const disconnectionFee = billRows.find(row => (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "WS_DISCONNECTION_FEE" || (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "SW_DISCONNECTION_FEE");
|
|
33253
33489
|
const reopeningFee = billRows.find(row => (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "WS_REOPENING_FEE" || (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "SW_REOPENING_FEE");
|
|
@@ -33260,9 +33496,9 @@ const WSFeeEstimation = _ref => {
|
|
|
33260
33496
|
data: mdmsRes
|
|
33261
33497
|
} = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
33262
33498
|
useEffect(() => {
|
|
33263
|
-
var _wsAdditionalDetails$
|
|
33499
|
+
var _wsAdditionalDetails$19, _wsAdditionalDetails$20, _sessionFormData$bill;
|
|
33264
33500
|
const data = {
|
|
33265
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33501
|
+
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$19 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$19 === void 0 ? void 0 : (_wsAdditionalDetails$20 = _wsAdditionalDetails$19.appDetails) === null || _wsAdditionalDetails$20 === void 0 ? void 0 : _wsAdditionalDetails$20.additionalDetails)
|
|
33266
33502
|
};
|
|
33267
33503
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
33268
33504
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
@@ -33316,8 +33552,8 @@ const WSFeeEstimation = _ref => {
|
|
|
33316
33552
|
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
33317
33553
|
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
33318
33554
|
if (adhocAmount || rebateAmount) {
|
|
33319
|
-
var _wsAdditionalDetails$
|
|
33320
|
-
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33555
|
+
var _wsAdditionalDetails$21, _wsAdditionalDetails$22;
|
|
33556
|
+
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$21 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$21 === void 0 ? void 0 : (_wsAdditionalDetails$22 = _wsAdditionalDetails$21.data) === null || _wsAdditionalDetails$22 === void 0 ? void 0 : _wsAdditionalDetails$22.totalAmount;
|
|
33321
33557
|
if (rebateAmount > totalAmount) {
|
|
33322
33558
|
setShowToast({
|
|
33323
33559
|
isError: false,
|
|
@@ -33326,16 +33562,16 @@ const WSFeeEstimation = _ref => {
|
|
|
33326
33562
|
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
33327
33563
|
});
|
|
33328
33564
|
} else {
|
|
33329
|
-
var _wsAdditionalDetails$
|
|
33330
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33331
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33565
|
+
var _wsAdditionalDetails$27, _wsAdditionalDetails$28, _wsAdditionalDetails$29, _wsAdditionalDetails$30, _wsAdditionalDetails$31, _wsAdditionalDetails$32, _wsAdditionalDetails$33, _wsAdditionalDetails$34, _wsAdditionalDetails$35, _wsAdditionalDetails$36;
|
|
33566
|
+
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$27 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$27 === void 0 ? void 0 : (_wsAdditionalDetails$28 = _wsAdditionalDetails$27.appDetails) === null || _wsAdditionalDetails$28 === void 0 ? void 0 : _wsAdditionalDetails$28.applicationNo;
|
|
33567
|
+
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$29 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$29 === void 0 ? void 0 : (_wsAdditionalDetails$30 = _wsAdditionalDetails$29.appDetails) === null || _wsAdditionalDetails$30 === void 0 ? void 0 : _wsAdditionalDetails$30.tenantId;
|
|
33332
33568
|
const appAdditionalDetails = {
|
|
33333
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33569
|
+
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$31 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$31 === void 0 ? void 0 : (_wsAdditionalDetails$32 = _wsAdditionalDetails$31.appDetails) === null || _wsAdditionalDetails$32 === void 0 ? void 0 : _wsAdditionalDetails$32.additionalDetails),
|
|
33334
33570
|
...fields
|
|
33335
33571
|
};
|
|
33336
33572
|
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
33337
33573
|
const data = {
|
|
33338
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33574
|
+
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$33 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$33 === void 0 ? void 0 : (_wsAdditionalDetails$34 = _wsAdditionalDetails$33.appDetails) === null || _wsAdditionalDetails$34 === void 0 ? void 0 : _wsAdditionalDetails$34.service) == "WATER" ? [{
|
|
33339
33575
|
applicationNo: applicationNo,
|
|
33340
33576
|
tenantId: tenantId,
|
|
33341
33577
|
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
@@ -33346,7 +33582,7 @@ const WSFeeEstimation = _ref => {
|
|
|
33346
33582
|
}],
|
|
33347
33583
|
isconnectionCalculation: false
|
|
33348
33584
|
};
|
|
33349
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33585
|
+
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$35 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$35 === void 0 ? void 0 : (_wsAdditionalDetails$36 = _wsAdditionalDetails$35.appDetails) === null || _wsAdditionalDetails$36 === void 0 ? void 0 : _wsAdditionalDetails$36.service) == "WATER" ? "WS" : "SW";
|
|
33350
33586
|
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
33351
33587
|
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
|
|
33352
33588
|
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
@@ -34052,11 +34288,11 @@ const ViewBreakup = _ref => {
|
|
|
34052
34288
|
}))))));
|
|
34053
34289
|
};
|
|
34054
34290
|
|
|
34055
|
-
const checkForNA$
|
|
34291
|
+
const checkForNA$2 = value => {
|
|
34056
34292
|
return value ? value : "CS_NA";
|
|
34057
34293
|
};
|
|
34058
34294
|
const WSApplicationDetails = () => {
|
|
34059
|
-
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$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyT3, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
|
|
34295
|
+
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$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _applicationData$addi2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi3, _applicationData$addi4, _applicationData$addi5, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi6, _applicationData$addi7, _applicationData$prop4, _applicationData$prop5, _applicationData$addi8, _applicationData$addi9, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
|
|
34060
34296
|
const getDisconnectionNoticeSearch = function () {
|
|
34061
34297
|
try {
|
|
34062
34298
|
var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
@@ -34102,6 +34338,75 @@ const WSApplicationDetails = () => {
|
|
|
34102
34338
|
const tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || (user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.permanentCity) || Digit.ULBService.getCurrentTenantId();
|
|
34103
34339
|
const [showOptions, setShowOptions] = useState(false);
|
|
34104
34340
|
const [viewTimeline, setViewTimeline] = useState(false);
|
|
34341
|
+
const [showDocModal, setShowDocModal] = useState(false);
|
|
34342
|
+
const [docFileUrl, setDocFileUrl] = useState(null);
|
|
34343
|
+
const [docFileType, setDocFileType] = useState("image");
|
|
34344
|
+
const handleViewEmployeeDoc = function (fileStoreId) {
|
|
34345
|
+
try {
|
|
34346
|
+
let _exit = false;
|
|
34347
|
+
function _temp3(_result) {
|
|
34348
|
+
if (_exit) return _result;
|
|
34349
|
+
const _temp = _catch(function () {
|
|
34350
|
+
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
34351
|
+
if (res !== null && res !== void 0 && res.data) {
|
|
34352
|
+
var _res$headers, _res$headers2, _res$headers3, _res$headers4;
|
|
34353
|
+
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
34354
|
+
type: ((_res$headers = res.headers) === null || _res$headers === void 0 ? void 0 : _res$headers["content-type"]) || ((_res$headers2 = res.headers) === null || _res$headers2 === void 0 ? void 0 : _res$headers2["Content-Type"]) || "image/jpeg"
|
|
34355
|
+
});
|
|
34356
|
+
const fileURL = URL.createObjectURL(blob);
|
|
34357
|
+
setDocFileUrl(fileURL);
|
|
34358
|
+
const contentType = ((_res$headers3 = res.headers) === null || _res$headers3 === void 0 ? void 0 : _res$headers3["content-type"]) || ((_res$headers4 = res.headers) === null || _res$headers4 === void 0 ? void 0 : _res$headers4["Content-Type"]) || "";
|
|
34359
|
+
if (contentType.toLowerCase().includes("pdf")) {
|
|
34360
|
+
setDocFileType("pdf");
|
|
34361
|
+
} else {
|
|
34362
|
+
setDocFileType("image");
|
|
34363
|
+
}
|
|
34364
|
+
setShowDocModal(true);
|
|
34365
|
+
}
|
|
34366
|
+
});
|
|
34367
|
+
}, function (err) {
|
|
34368
|
+
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
34369
|
+
});
|
|
34370
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
34371
|
+
}
|
|
34372
|
+
if (!fileStoreId) return Promise.resolve();
|
|
34373
|
+
const _temp2 = _catch(function () {
|
|
34374
|
+
return Promise.resolve(Digit.UploadServices.Filefetch([fileStoreId], (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]) || Digit.ULBService.getStateId())).then(function (response) {
|
|
34375
|
+
var _response$data, _response$data$fileSt, _response$data$fileSt2, _response$data2;
|
|
34376
|
+
let rawUrl = (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$fileSt = _response$data.fileStoreIds) === null || _response$data$fileSt === void 0 ? void 0 : (_response$data$fileSt2 = _response$data$fileSt[0]) === null || _response$data$fileSt2 === void 0 ? void 0 : _response$data$fileSt2.url) || (response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2[fileStoreId]) || "";
|
|
34377
|
+
let fileURL = "";
|
|
34378
|
+
if (rawUrl && typeof rawUrl === "string") {
|
|
34379
|
+
const linkList = rawUrl.split(",");
|
|
34380
|
+
linkList.forEach(link => {
|
|
34381
|
+
const trimmed = link ? link.trim() : "";
|
|
34382
|
+
if (trimmed && !trimmed.includes("large") && !trimmed.includes("medium") && !trimmed.includes("small")) {
|
|
34383
|
+
fileURL = trimmed;
|
|
34384
|
+
}
|
|
34385
|
+
});
|
|
34386
|
+
if (!fileURL && linkList[0]) {
|
|
34387
|
+
fileURL = linkList[0].trim();
|
|
34388
|
+
}
|
|
34389
|
+
}
|
|
34390
|
+
if (fileURL) {
|
|
34391
|
+
setDocFileUrl(fileURL);
|
|
34392
|
+
const lowerUrl = fileURL.toLowerCase();
|
|
34393
|
+
if (lowerUrl.includes(".pdf")) {
|
|
34394
|
+
setDocFileType("pdf");
|
|
34395
|
+
} else {
|
|
34396
|
+
setDocFileType("image");
|
|
34397
|
+
}
|
|
34398
|
+
setShowDocModal(true);
|
|
34399
|
+
_exit = true;
|
|
34400
|
+
}
|
|
34401
|
+
});
|
|
34402
|
+
}, function (e) {
|
|
34403
|
+
console.warn("Filefetch failed, falling back to FileFetchbyid", e);
|
|
34404
|
+
});
|
|
34405
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2));
|
|
34406
|
+
} catch (e) {
|
|
34407
|
+
return Promise.reject(e);
|
|
34408
|
+
}
|
|
34409
|
+
};
|
|
34105
34410
|
const applicationNobyData = window.location.href.includes("SW_") ? window.location.href.substring(window.location.href.indexOf("SW_")) : window.location.href.substring(window.location.href.indexOf("WS_"));
|
|
34106
34411
|
let filter1 = {
|
|
34107
34412
|
tenantId: tenantId,
|
|
@@ -34242,7 +34547,7 @@ const WSApplicationDetails = () => {
|
|
|
34242
34547
|
consumerCodes: data !== null && data !== void 0 && (_data$WaterConnection27 = data.WaterConnection) !== null && _data$WaterConnection27 !== void 0 && _data$WaterConnection27[0] ? data === null || data === void 0 ? void 0 : (_data$WaterConnection28 = data.WaterConnection) === null || _data$WaterConnection28 === void 0 ? void 0 : (_data$WaterConnection29 = _data$WaterConnection28[0]) === null || _data$WaterConnection29 === void 0 ? void 0 : _data$WaterConnection29.applicationNo : data === null || data === void 0 ? void 0 : (_data$SewerageConnect26 = data.SewerageConnections) === null || _data$SewerageConnect26 === void 0 ? void 0 : (_data$SewerageConnect27 = _data$SewerageConnect26[0]) === null || _data$SewerageConnect27 === void 0 ? void 0 : _data$SewerageConnect27.applicationNo
|
|
34243
34548
|
})).then(function (payments) {
|
|
34244
34549
|
var _payments$Payments$;
|
|
34245
|
-
function
|
|
34550
|
+
function _temp5() {
|
|
34246
34551
|
return Promise.resolve(Digit.PaymentService.printReciept(state, {
|
|
34247
34552
|
fileStoreIds: response.filestoreIds[0]
|
|
34248
34553
|
})).then(function (fileStore) {
|
|
@@ -34252,7 +34557,7 @@ const WSApplicationDetails = () => {
|
|
|
34252
34557
|
let response = {
|
|
34253
34558
|
filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
|
|
34254
34559
|
};
|
|
34255
|
-
const
|
|
34560
|
+
const _temp4 = function (_payments$Payments$2) {
|
|
34256
34561
|
if (!((_payments$Payments$2 = payments.Payments[0]) !== null && _payments$Payments$2 !== void 0 && _payments$Payments$2.fileStoreId)) {
|
|
34257
34562
|
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
34258
34563
|
Payments: payments.Payments
|
|
@@ -34261,7 +34566,7 @@ const WSApplicationDetails = () => {
|
|
|
34261
34566
|
});
|
|
34262
34567
|
}
|
|
34263
34568
|
}();
|
|
34264
|
-
return
|
|
34569
|
+
return _temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4);
|
|
34265
34570
|
});
|
|
34266
34571
|
} catch (e) {
|
|
34267
34572
|
return Promise.reject(e);
|
|
@@ -34474,22 +34779,28 @@ const WSApplicationDetails = () => {
|
|
|
34474
34779
|
}
|
|
34475
34780
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
34476
34781
|
label: t("WS_SERVICE_TYPE"),
|
|
34477
|
-
text: `${t(checkForNA$
|
|
34782
|
+
text: `${t(checkForNA$2(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$se = connectionDetails.serviceType) !== null && _connectionDetails$se !== void 0 && _connectionDetails$se.code ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$se2 = connectionDetails.serviceType) === null || _connectionDetails$se2 === void 0 ? void 0 : _connectionDetails$se2.code}` : connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.serviceType ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.serviceType}` : applicationData !== null && applicationData !== void 0 && applicationData.applicationType ? `WS_APPLICATION_TYPE_${applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationType}` : "NA"))}`
|
|
34478
34783
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34479
34784
|
label: t("WS_APPLICANT_TYPE"),
|
|
34480
|
-
text: `${t(checkForNA$
|
|
34785
|
+
text: `${t(checkForNA$2((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap = connectionDetails.applicantType) === null || _connectionDetails$ap === void 0 ? void 0 : _connectionDetails$ap.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap2 = connectionDetails.applicantType) === null || _connectionDetails$ap2 === void 0 ? void 0 : _connectionDetails$ap2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.applicantType)))}`
|
|
34786
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
34787
|
+
label: t("WS_Billing_Address_Type"),
|
|
34788
|
+
text: `${t(checkForNA$2((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad = connectionDetails.addressType) === null || _connectionDetails$ad === void 0 ? void 0 : _connectionDetails$ad.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad2 = connectionDetails.addressType) === null || _connectionDetails$ad2 === void 0 ? void 0 : _connectionDetails$ad2.name) || (typeof (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad3 = connectionDetails.addressType) === null || _connectionDetails$ad3 === void 0 ? void 0 : _connectionDetails$ad3.code) === "string" ? connectionDetails.addressType.code === "PERMANENT" ? "Permanent" : connectionDetails.addressType.code === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType.code : null) || (typeof (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.addressType) === "string" ? connectionDetails.addressType === "PERMANENT" ? "Permanent" : connectionDetails.addressType === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType : null) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.addressType)))}`
|
|
34789
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
34790
|
+
label: t("Complete Address"),
|
|
34791
|
+
text: `${checkForNA$2((connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.completeAddress) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi2 = applicationData.additionalDetails) === null || _applicationData$addi2 === void 0 ? void 0 : _applicationData$addi2.completeAddress))}`
|
|
34481
34792
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34482
34793
|
label: t("WS_DIVYANGJAN"),
|
|
34483
34794
|
text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
34484
34795
|
}), (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.code) === "ORGANIZATION" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
34485
34796
|
label: t("WS_DEPARTMENT_TYPE"),
|
|
34486
|
-
text: `${t(checkForNA$
|
|
34797
|
+
text: `${t(checkForNA$2((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de = connectionDetails.departmentType) === null || _connectionDetails$de === void 0 ? void 0 : _connectionDetails$de.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de2 = connectionDetails.departmentType) === null || _connectionDetails$de2 === void 0 ? void 0 : _connectionDetails$de2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.departmentType)))}`
|
|
34487
34798
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34488
34799
|
label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
|
|
34489
|
-
text: `${t(checkForNA$
|
|
34800
|
+
text: `${t(checkForNA$2(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.institutionName))}`
|
|
34490
34801
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34491
34802
|
label: t("WS_NATURE_OF_WORK"),
|
|
34492
|
-
text: `${t(checkForNA$
|
|
34803
|
+
text: `${t(checkForNA$2(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))}`
|
|
34493
34804
|
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection79 = data.WaterConnection) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80.connectionHolders) === null || _data$WaterConnection81 === void 0 ? void 0 : _data$WaterConnection81.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect74 = data.SewerageConnections) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74[0]) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75.connectionHolders) === null || _data$SewerageConnect76 === void 0 ? void 0 : _data$SewerageConnect76.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
34494
34805
|
styles: {
|
|
34495
34806
|
fontSize: "28px"
|
|
@@ -34642,58 +34953,58 @@ const WSApplicationDetails = () => {
|
|
|
34642
34953
|
}
|
|
34643
34954
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
34644
34955
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
34645
|
-
text: `${t(checkForNA$
|
|
34956
|
+
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)))}`
|
|
34646
34957
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34647
34958
|
label: t("PINCODE"),
|
|
34648
|
-
text: `${t(checkForNA$
|
|
34959
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pincode) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pinCode)))}`
|
|
34649
34960
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34650
34961
|
label: t("LOCALITY"),
|
|
34651
|
-
text: `${t(checkForNA$
|
|
34962
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca2 = propertyAddress.locality) === null || _propertyAddress$loca2 === void 0 ? void 0 : _propertyAddress$loca2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.locality)))}`
|
|
34652
34963
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34653
34964
|
label: t("SubLocality"),
|
|
34654
|
-
text: `${t(checkForNA$
|
|
34965
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$subL = propertyAddress.subLocality) === null || _propertyAddress$subL === void 0 ? void 0 : _propertyAddress$subL.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$subL2 = propertyAddress.subLocality) === null || _propertyAddress$subL2 === void 0 ? void 0 : _propertyAddress$subL2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.subLocality)))}`
|
|
34655
34966
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34656
34967
|
label: t("COMMON_COLONY_MCD_CATEGORY"),
|
|
34657
|
-
text: `${t(checkForNA$
|
|
34968
|
+
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.colonyMcdCategory))}`
|
|
34658
34969
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34659
34970
|
label: t("STREET_NAME"),
|
|
34660
|
-
text: `${t(checkForNA$
|
|
34971
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.streetName) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street)))}`
|
|
34661
34972
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34662
34973
|
label: t("ADDRESS_LINE1"),
|
|
34663
|
-
text: `${t(checkForNA$
|
|
34974
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressLine1) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street)))}`
|
|
34664
34975
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34665
34976
|
label: t("ADDRESS_LINE2"),
|
|
34666
|
-
text: `${t(checkForNA$
|
|
34977
|
+
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressLine2))}`
|
|
34667
34978
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34668
34979
|
label: t("HOUSE_NO"),
|
|
34669
|
-
text: `${t(checkForNA$
|
|
34980
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo)))}`
|
|
34670
34981
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34671
34982
|
label: t("LATITUDE_GEOTAG"),
|
|
34672
|
-
text: `${t(checkForNA$
|
|
34983
|
+
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.latitude))}`
|
|
34673
34984
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34674
34985
|
label: t("LONGITUDE_GEOTAG"),
|
|
34675
|
-
text: `${t(checkForNA$
|
|
34986
|
+
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
|
|
34676
34987
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34677
34988
|
label: t("COMMON_ASSEMBLY"),
|
|
34678
|
-
text: `${t(checkForNA$
|
|
34989
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
|
|
34679
34990
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34680
34991
|
label: t("COMMON_WARD"),
|
|
34681
|
-
text: `${t(checkForNA$
|
|
34992
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
|
|
34682
34993
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34683
34994
|
label: t("COMMON_ZONE"),
|
|
34684
|
-
text: `${t(checkForNA$
|
|
34995
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
|
|
34685
34996
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34686
34997
|
label: t("COMMON_CURRENT_ASSEMBLY"),
|
|
34687
|
-
text: `${t(checkForNA$
|
|
34998
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
|
|
34688
34999
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34689
35000
|
label: t("COMMON_CURRENT_WARD"),
|
|
34690
|
-
text: `${t(checkForNA$
|
|
35001
|
+
text: `${t(checkForNA$2((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
|
|
34691
35002
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34692
35003
|
label: t("COMMON_CURRENT_ZONE"),
|
|
34693
|
-
text: `${t(checkForNA$
|
|
35004
|
+
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) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
|
|
34694
35005
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34695
35006
|
label: t("LANDMARK"),
|
|
34696
|
-
text: `${t(checkForNA$
|
|
35007
|
+
text: `${t(checkForNA$2(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))}`
|
|
34697
35008
|
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
34698
35009
|
styles: {
|
|
34699
35010
|
fontSize: "28px"
|
|
@@ -34705,35 +35016,46 @@ const WSApplicationDetails = () => {
|
|
|
34705
35016
|
}
|
|
34706
35017
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
34707
35018
|
label: t("WS_CATEGORY_TYPE"),
|
|
34708
|
-
text: `${t(checkForNA$
|
|
35019
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`
|
|
34709
35020
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34710
35021
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
34711
|
-
text: `${t(checkForNA$
|
|
35022
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))}`
|
|
34712
35023
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34713
35024
|
label: t("WS_PROPERTY_TYPE"),
|
|
34714
|
-
text: `${t(checkForNA$
|
|
35025
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))}`
|
|
34715
35026
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34716
35027
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
34717
|
-
text: `${t(checkForNA$
|
|
35028
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))}`
|
|
34718
35029
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34719
35030
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
34720
|
-
text: `${t(checkForNA$
|
|
35031
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))}`
|
|
34721
35032
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34722
35033
|
label: t("WS_PLOT_AREA"),
|
|
34723
|
-
text: `${t(checkForNA$
|
|
35034
|
+
text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
|
|
34724
35035
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34725
35036
|
label: t("WS_BUILT_UP_AREA"),
|
|
34726
|
-
text: `${t(checkForNA$
|
|
35037
|
+
text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
|
|
34727
35038
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34728
35039
|
label: t("WS_HEIGHT_OF_THE_BUILDING"),
|
|
34729
|
-
text: `${t(checkForNA$
|
|
35040
|
+
text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
|
|
34730
35041
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34731
35042
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
34732
|
-
text: `${t(checkForNA$
|
|
34733
|
-
}),
|
|
35043
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
35044
|
+
}), String((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC3 = useDetails.propertyCategory) === null || _useDetails$propertyC3 === void 0 ? void 0 : _useDetails$propertyC3.code) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC4 = useDetails.propertyCategory) === null || _useDetails$propertyC4 === void 0 ? void 0 : _useDetails$propertyC4.name) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi3 = applicationData.additionalDetails) === null || _applicationData$addi3 === void 0 ? void 0 : (_applicationData$addi4 = _applicationData$addi3.propertyCategory) === null || _applicationData$addi4 === void 0 ? void 0 : _applicationData$addi4.code) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi5 = applicationData.additionalDetails) === null || _applicationData$addi5 === void 0 ? void 0 : _applicationData$addi5.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : (_applicationData$prop2 = _applicationData$prop.propertyType) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.propertyCategory) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop3 = applicationData.property) === null || _applicationData$prop3 === void 0 ? void 0 : _applicationData$prop3.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(Row, {
|
|
34734
35045
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
34735
|
-
text: `${t(checkForNA$
|
|
34736
|
-
}) : null
|
|
35046
|
+
text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
35047
|
+
}) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi6 = applicationData.additionalDetails) === null || _applicationData$addi6 === void 0 ? void 0 : _applicationData$addi6.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi7 = applicationData.additionalDetails) === null || _applicationData$addi7 === void 0 ? void 0 : _applicationData$addi7.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop4 = applicationData.property) === null || _applicationData$prop4 === void 0 ? void 0 : (_applicationData$prop5 = _applicationData$prop4.additionalDetails) === null || _applicationData$prop5 === void 0 ? void 0 : _applicationData$prop5.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi8 = applicationData.additionalDetails) === null || _applicationData$addi8 === void 0 ? void 0 : _applicationData$addi8.questions) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi9 = applicationData.additionalDetails) === null || _applicationData$addi9 === void 0 ? void 0 : _applicationData$addi9.questionAnswers) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop6 = applicationData.property) === null || _applicationData$prop6 === void 0 ? void 0 : (_applicationData$prop7 = _applicationData$prop6.additionalDetails) === null || _applicationData$prop7 === void 0 ? void 0 : _applicationData$prop7.questions) : []).map((q, idx) => {
|
|
35048
|
+
var _q$answer, _q$answer2, _q$answer3;
|
|
35049
|
+
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}`;
|
|
35050
|
+
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;
|
|
35051
|
+
const trimmedQ = String(qText || "").trim();
|
|
35052
|
+
const displayLabel = trimmedQ.toLowerCase().startsWith("question") ? trimmedQ : `${trimmedQ}`;
|
|
35053
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
35054
|
+
key: `question_${idx}`,
|
|
35055
|
+
label: displayLabel,
|
|
35056
|
+
text: `${t(checkForNA$2(aText))}`
|
|
35057
|
+
});
|
|
35058
|
+
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
34737
35059
|
styles: {
|
|
34738
35060
|
fontSize: "28px"
|
|
34739
35061
|
}
|
|
@@ -34747,10 +35069,10 @@ const WSApplicationDetails = () => {
|
|
|
34747
35069
|
text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
34748
35070
|
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
34749
35071
|
label: t("WS_EMPLOYEE_ID"),
|
|
34750
|
-
text: `${t(checkForNA$
|
|
35072
|
+
text: `${t(checkForNA$2(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
34751
35073
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34752
35074
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
34753
|
-
text: `${t(checkForNA$
|
|
35075
|
+
text: `${t(checkForNA$2(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
34754
35076
|
}), !isDisconnectionExecuted && (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
|
|
34755
35077
|
label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
34756
35078
|
text: /*#__PURE__*/React.createElement("span", {
|
|
@@ -34761,7 +35083,7 @@ const WSApplicationDetails = () => {
|
|
|
34761
35083
|
cursor: "pointer",
|
|
34762
35084
|
color: "#f47738"
|
|
34763
35085
|
},
|
|
34764
|
-
onClick: () =>
|
|
35086
|
+
onClick: () => handleViewEmployeeDoc(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
34765
35087
|
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
34766
35088
|
}))), (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$dueV = applicationData.dueVerification) === null || _applicationData$dueV === void 0 ? void 0 : _applicationData$dueV.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
34767
35089
|
styles: {
|
|
@@ -34829,27 +35151,27 @@ const WSApplicationDetails = () => {
|
|
|
34829
35151
|
style: {
|
|
34830
35152
|
padding: "12px 8px"
|
|
34831
35153
|
}
|
|
34832
|
-
}, checkForNA$
|
|
35154
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.kno)), /*#__PURE__*/React.createElement("td", {
|
|
34833
35155
|
style: {
|
|
34834
35156
|
padding: "12px 8px"
|
|
34835
35157
|
}
|
|
34836
|
-
}, checkForNA$
|
|
35158
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullName)), /*#__PURE__*/React.createElement("td", {
|
|
34837
35159
|
style: {
|
|
34838
35160
|
padding: "12px 8px"
|
|
34839
35161
|
}
|
|
34840
|
-
}, checkForNA$
|
|
35162
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullAddress)), /*#__PURE__*/React.createElement("td", {
|
|
34841
35163
|
style: {
|
|
34842
35164
|
padding: "12px 8px"
|
|
34843
35165
|
}
|
|
34844
|
-
}, checkForNA$
|
|
35166
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.dueAmount)), /*#__PURE__*/React.createElement("td", {
|
|
34845
35167
|
style: {
|
|
34846
35168
|
padding: "12px 8px"
|
|
34847
35169
|
}
|
|
34848
|
-
}, checkForNA$
|
|
35170
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.totalAmount)), /*#__PURE__*/React.createElement("td", {
|
|
34849
35171
|
style: {
|
|
34850
35172
|
padding: "12px 8px"
|
|
34851
35173
|
}
|
|
34852
|
-
}, checkForNA$
|
|
35174
|
+
}, checkForNA$2(dueItem === null || dueItem === void 0 ? void 0 : dueItem.remarks)), /*#__PURE__*/React.createElement("td", {
|
|
34853
35175
|
style: {
|
|
34854
35176
|
padding: "12px 8px"
|
|
34855
35177
|
}
|
|
@@ -35025,7 +35347,59 @@ const WSApplicationDetails = () => {
|
|
|
35025
35347
|
}
|
|
35026
35348
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35027
35349
|
label: t("WS_ACTIVATE_CONNECTION")
|
|
35028
|
-
})) : null))))
|
|
35350
|
+
})) : null)))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
35351
|
+
open: showDocModal,
|
|
35352
|
+
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
35353
|
+
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
35354
|
+
onClick: () => setShowDocModal(false),
|
|
35355
|
+
style: {
|
|
35356
|
+
cursor: "pointer",
|
|
35357
|
+
padding: "5px"
|
|
35358
|
+
}
|
|
35359
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
35360
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35361
|
+
viewBox: "0 0 24 24",
|
|
35362
|
+
fill: "#505A5F",
|
|
35363
|
+
width: "24",
|
|
35364
|
+
height: "24"
|
|
35365
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
35366
|
+
d: "M0 0h24v24H0V0z",
|
|
35367
|
+
fill: "none"
|
|
35368
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
35369
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
35370
|
+
}))),
|
|
35371
|
+
actionCancelOnSubmit: () => setShowDocModal(false),
|
|
35372
|
+
actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
|
|
35373
|
+
actionSaveOnSubmit: () => window.open(docFileUrl, "_blank"),
|
|
35374
|
+
actionSaveLabel: t("CS_COMMON_OPEN_IN_NEW_TAB") || "Open Full",
|
|
35375
|
+
hideSubmit: !docFileUrl,
|
|
35376
|
+
width: "800px"
|
|
35377
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
35378
|
+
style: {
|
|
35379
|
+
display: "flex",
|
|
35380
|
+
justifyContent: "center",
|
|
35381
|
+
alignItems: "center",
|
|
35382
|
+
padding: "20px",
|
|
35383
|
+
minHeight: "300px"
|
|
35384
|
+
}
|
|
35385
|
+
}, docFileType === "pdf" ? /*#__PURE__*/React.createElement("iframe", {
|
|
35386
|
+
src: docFileUrl,
|
|
35387
|
+
title: "Document Preview",
|
|
35388
|
+
width: "100%",
|
|
35389
|
+
height: "500px",
|
|
35390
|
+
style: {
|
|
35391
|
+
border: "none"
|
|
35392
|
+
}
|
|
35393
|
+
}) : /*#__PURE__*/React.createElement("img", {
|
|
35394
|
+
src: docFileUrl,
|
|
35395
|
+
alt: "Document Preview",
|
|
35396
|
+
style: {
|
|
35397
|
+
maxWidth: "100%",
|
|
35398
|
+
maxHeight: "500px",
|
|
35399
|
+
objectFit: "contain",
|
|
35400
|
+
borderRadius: "4px"
|
|
35401
|
+
}
|
|
35402
|
+
}))));
|
|
35029
35403
|
};
|
|
35030
35404
|
|
|
35031
35405
|
const WSAdditionalDetails = () => {
|
|
@@ -35388,7 +35762,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
|
|
|
35388
35762
|
};
|
|
35389
35763
|
|
|
35390
35764
|
const ConnectionDetails$5 = () => {
|
|
35391
|
-
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo,
|
|
35765
|
+
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state39$additionalDe2, _state40, _state40$additionalDe, _state40$additionalDe2, _state41, _state41$additionalDe, _state42, _state42$additionalDe, _state43, _state43$additionalDe, _state44, _state44$additionalDe, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state49, _state50, _state51, _state51$connectionHo, _state51$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect48, _data$SewerageConnect49, _data$SewerageConnect50, _data$SewerageConnect51, _state52, _state53, _state56, _state56$status, _state57, _state57$applicationS, _state58, _paymentDetails$data17, _paymentDetails$data18;
|
|
35392
35766
|
const {
|
|
35393
35767
|
t
|
|
35394
35768
|
} = useTranslation();
|
|
@@ -35606,8 +35980,6 @@ const ConnectionDetails$5 = () => {
|
|
|
35606
35980
|
}
|
|
35607
35981
|
};
|
|
35608
35982
|
const getRestorationButton = () => {
|
|
35609
|
-
console.log("getRestorationButton", data, !(data !== null && data !== void 0 && data.checkWorkFlow));
|
|
35610
|
-
console.log("Payment", paymentDetails);
|
|
35611
35983
|
if (!(data !== null && data !== void 0 && data.checkWorkFlow)) {
|
|
35612
35984
|
setshowActionToast({
|
|
35613
35985
|
key: "error",
|
|
@@ -35619,7 +35991,6 @@ const ConnectionDetails$5 = () => {
|
|
|
35619
35991
|
} else {
|
|
35620
35992
|
var _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16;
|
|
35621
35993
|
if ((paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data8 = paymentDetails.data) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8.Bill) === null || _paymentDetails$data9 === void 0 ? void 0 : _paymentDetails$data9.length) === 0) {
|
|
35622
|
-
console.log("Payment", paymentDetails);
|
|
35623
35994
|
let pathname = `/digit-ui/citizen/ws/restore-application/k-number`;
|
|
35624
35995
|
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
35625
35996
|
...state,
|
|
@@ -35913,16 +36284,28 @@ const ConnectionDetails$5 = () => {
|
|
|
35913
36284
|
className: "border-none",
|
|
35914
36285
|
label: t("WS_NO_OF_FLOORS"),
|
|
35915
36286
|
text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.noOfFloors) || "NA"
|
|
35916
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
36287
|
+
}), String(((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : (_state39$additionalDe2 = _state39$additionalDe.propertyCategory) === null || _state39$additionalDe2 === void 0 ? void 0 : _state39$additionalDe2.code) || ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : (_state40$additionalDe2 = _state40$additionalDe.propertyCategory) === null || _state40$additionalDe2 === void 0 ? void 0 : _state40$additionalDe2.name) || ((_state41 = state) === null || _state41 === void 0 ? void 0 : (_state41$additionalDe = _state41.additionalDetails) === null || _state41$additionalDe === void 0 ? void 0 : _state41$additionalDe.propertyCategory) || "").toUpperCase().includes("RESIDENTIAL") && /*#__PURE__*/React.createElement(Row, {
|
|
35917
36288
|
className: "border-none",
|
|
35918
36289
|
label: t("WS_NO_OF_DWELLING_UNITS"),
|
|
35919
|
-
text: ((
|
|
36290
|
+
text: ((_state42 = state) === null || _state42 === void 0 ? void 0 : (_state42$additionalDe = _state42.additionalDetails) === null || _state42$additionalDe === void 0 ? void 0 : _state42$additionalDe.NumberofDwellingUnits) || "NA"
|
|
35920
36291
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
35921
36292
|
className: "border-none",
|
|
35922
36293
|
label: t("WS_LOCALITY"),
|
|
35923
|
-
text: ((
|
|
36294
|
+
text: ((_state43 = state) === null || _state43 === void 0 ? void 0 : (_state43$additionalDe = _state43.additionalDetails) === null || _state43$additionalDe === void 0 ? void 0 : _state43$additionalDe.locality) || "NA"
|
|
36295
|
+
}), (Array.isArray(((_state44 = state) === null || _state44 === void 0 ? void 0 : (_state44$additionalDe = _state44.additionalDetails) === null || _state44$additionalDe === void 0 ? void 0 : _state44$additionalDe.questions) || ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.questionAnswers)) ? ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.questions) || ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.questionAnswers) : []).map((q, idx) => {
|
|
36296
|
+
var _q$answer, _q$answer2, _q$answer3;
|
|
36297
|
+
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}`;
|
|
36298
|
+
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;
|
|
36299
|
+
const trimmedQ = String(qText || "").trim();
|
|
36300
|
+
const displayLabel = trimmedQ.toLowerCase().startsWith("question") ? trimmedQ : `${trimmedQ}`;
|
|
36301
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
36302
|
+
key: `question_${idx}`,
|
|
36303
|
+
className: "border-none",
|
|
36304
|
+
label: displayLabel,
|
|
36305
|
+
text: `${t(checkForNA(aText))}`
|
|
36306
|
+
});
|
|
35924
36307
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
35925
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(
|
|
36308
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(_state48 = state) === null || _state48 === void 0 ? void 0 : _state48.propertyId}&tenantId=${(_state49 = state) === null || _state49 === void 0 ? void 0 : _state49.tenantId}`
|
|
35926
36309
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
35927
36310
|
style: {
|
|
35928
36311
|
textAlign: "left",
|
|
@@ -35934,10 +36317,10 @@ const ConnectionDetails$5 = () => {
|
|
|
35934
36317
|
styles: {
|
|
35935
36318
|
fontSize: "28px"
|
|
35936
36319
|
}
|
|
35937
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
36320
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state50 = state) !== null && _state50 !== void 0 && _state50.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
35938
36321
|
className: "border-none",
|
|
35939
36322
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
35940
|
-
text: (
|
|
36323
|
+
text: (_state51 = state) === null || _state51 === void 0 ? void 0 : (_state51$connectionHo = _state51.connectionHolders) === null || _state51$connectionHo === void 0 ? void 0 : (_state51$connectionHo2 = _state51$connectionHo[0]) === null || _state51$connectionHo2 === void 0 ? void 0 : _state51$connectionHo2.name,
|
|
35941
36324
|
textStyle: {
|
|
35942
36325
|
whiteSpace: "pre"
|
|
35943
36326
|
}
|
|
@@ -36056,15 +36439,15 @@ const ConnectionDetails$5 = () => {
|
|
|
36056
36439
|
isArray: false
|
|
36057
36440
|
}
|
|
36058
36441
|
}
|
|
36059
|
-
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((
|
|
36060
|
-
var _doc$documentType,
|
|
36442
|
+
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents) && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.map((doc, index) => {
|
|
36443
|
+
var _doc$documentType, _state54, _state55;
|
|
36061
36444
|
return /*#__PURE__*/React.createElement("div", {
|
|
36062
36445
|
key: `doc-${index}`
|
|
36063
36446
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
36064
|
-
value: (
|
|
36447
|
+
value: (_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.documents,
|
|
36065
36448
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
36066
36449
|
index: index
|
|
36067
|
-
}), ((
|
|
36450
|
+
}), ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
36068
36451
|
style: {
|
|
36069
36452
|
color: "#cccccc",
|
|
36070
36453
|
backgroundColor: "#cccccc",
|
|
@@ -36073,7 +36456,7 @@ const ConnectionDetails$5 = () => {
|
|
|
36073
36456
|
marginBottom: "20px"
|
|
36074
36457
|
}
|
|
36075
36458
|
}) : null)));
|
|
36076
|
-
})), ((
|
|
36459
|
+
})), ((_state56 = state) === null || _state56 === void 0 ? void 0 : (_state56$status = _state56.status) === null || _state56$status === void 0 ? void 0 : _state56$status.toLowerCase()) === "inactive" || ((_state57 = state) === null || _state57 === void 0 ? void 0 : (_state57$applicationS = _state57.applicationStatus) === null || _state57$applicationS === void 0 ? void 0 : _state57$applicationS.toLowerCase()) === "inactive" || ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.applicationStatus) === "DISCONNECTION_EXECUTED" || isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
|
|
36077
36460
|
style: {
|
|
36078
36461
|
display: "flex",
|
|
36079
36462
|
justifyContent: "flex-end",
|
|
@@ -36106,8 +36489,8 @@ const ConnectionDetails$5 = () => {
|
|
|
36106
36489
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
36107
36490
|
hideSubmit: true,
|
|
36108
36491
|
actionSingleSubmit: () => {
|
|
36109
|
-
var
|
|
36110
|
-
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((
|
|
36492
|
+
var _state59, _state60;
|
|
36493
|
+
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.connectionNo)}/${tenantId}?consumerCode=${(_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
|
|
36111
36494
|
setshowModal(false);
|
|
36112
36495
|
},
|
|
36113
36496
|
popupStyles: mobileView ? {
|
|
@@ -36988,7 +37371,7 @@ const getPath$3 = (path, params) => {
|
|
|
36988
37371
|
};
|
|
36989
37372
|
const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
36990
37373
|
if (waterResult) {
|
|
36991
|
-
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, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24;
|
|
37374
|
+
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, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$Connecti, _waterResult$Connecti2, _waterResult$addition2, _waterResult$Connecti3, _waterResult$Connecti4, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24, _waterResult$addition25, _waterResult$addition26;
|
|
36992
37375
|
waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
|
|
36993
37376
|
...(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0]),
|
|
36994
37377
|
address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti2 = waterResult.connectionHolders) === null || _waterResult$connecti2 === void 0 ? void 0 : (_waterResult$connecti3 = _waterResult$connecti2[0]) === null || _waterResult$connecti3 === void 0 ? void 0 : _waterResult$connecti3.correspondenceAddress,
|
|
@@ -37071,6 +37454,18 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
37071
37454
|
},
|
|
37072
37455
|
proposedTaps: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedTaps
|
|
37073
37456
|
};
|
|
37457
|
+
const rawAddressType = (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition = waterResult.additionalDetails) === null || _waterResult$addition === void 0 ? void 0 : _waterResult$addition.addressType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$Connecti = waterResult.ConnectionDetails) === null || _waterResult$Connecti === void 0 ? void 0 : (_waterResult$Connecti2 = _waterResult$Connecti[0]) === null || _waterResult$Connecti2 === void 0 ? void 0 : _waterResult$Connecti2.addressType) || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.addressType);
|
|
37458
|
+
const addressTypeObj = typeof rawAddressType === "object" && rawAddressType !== null && rawAddressType !== void 0 && rawAddressType.code ? rawAddressType : String(rawAddressType).toUpperCase() === "PERMANENT" ? {
|
|
37459
|
+
i18nKey: "Permanent",
|
|
37460
|
+
code: "PERMANENT"
|
|
37461
|
+
} : String(rawAddressType).toUpperCase() === "CORRESPONDENCE" ? {
|
|
37462
|
+
i18nKey: "Correspondence",
|
|
37463
|
+
code: "CORRESPONDENCE"
|
|
37464
|
+
} : rawAddressType ? {
|
|
37465
|
+
i18nKey: rawAddressType,
|
|
37466
|
+
code: rawAddressType
|
|
37467
|
+
} : null;
|
|
37468
|
+
const completeAddressStr = (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.completeAddress) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$Connecti3 = waterResult.ConnectionDetails) === null || _waterResult$Connecti3 === void 0 ? void 0 : (_waterResult$Connecti4 = _waterResult$Connecti3[0]) === null || _waterResult$Connecti4 === void 0 ? void 0 : _waterResult$Connecti4.completeAddress) || (waterResult === null || waterResult === void 0 ? void 0 : waterResult.completeAddress) || "";
|
|
37074
37469
|
waterResult.ConnectionDetails = [{
|
|
37075
37470
|
water: true,
|
|
37076
37471
|
sewerage: false,
|
|
@@ -37082,18 +37477,20 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
37082
37477
|
code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType,
|
|
37083
37478
|
i18nKey: `WS_CONNECTION_${waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType}`
|
|
37084
37479
|
} : null,
|
|
37085
|
-
waterDemandType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
37086
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37087
|
-
i18nKey: `WS_WATER_DEMAND_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37480
|
+
waterDemandType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition3 = waterResult.additionalDetails) !== null && _waterResult$addition3 !== void 0 && _waterResult$addition3.waterDemandType ? {
|
|
37481
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition4 = waterResult.additionalDetails) === null || _waterResult$addition4 === void 0 ? void 0 : _waterResult$addition4.waterDemandType,
|
|
37482
|
+
i18nKey: `WS_WATER_DEMAND_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.waterDemandType}`
|
|
37088
37483
|
} : null,
|
|
37089
|
-
applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
37090
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37091
|
-
i18nKey: `WS_APPLICANT_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37484
|
+
applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition6 = waterResult.additionalDetails) !== null && _waterResult$addition6 !== void 0 && _waterResult$addition6.applicantType ? {
|
|
37485
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.applicantType,
|
|
37486
|
+
i18nKey: `WS_APPLICANT_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.applicantType}`
|
|
37092
37487
|
} : null,
|
|
37093
|
-
categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
37094
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37095
|
-
i18nKey: `WS_CATEGORY_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37488
|
+
categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition9 = waterResult.additionalDetails) !== null && _waterResult$addition9 !== void 0 && _waterResult$addition9.categoryType ? {
|
|
37489
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.categoryType,
|
|
37490
|
+
i18nKey: `WS_CATEGORY_${waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.categoryType}`
|
|
37096
37491
|
} : null,
|
|
37492
|
+
addressType: addressTypeObj,
|
|
37493
|
+
completeAddress: completeAddressStr,
|
|
37097
37494
|
proposedPipeSize: waterResult !== null && waterResult !== void 0 && waterResult.proposedPipeSize ? {
|
|
37098
37495
|
code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedPipeSize,
|
|
37099
37496
|
i18nKey: `${waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedPipeSize} ${t("WS_INCHES_LABEL")}`,
|
|
@@ -37101,23 +37498,25 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
37101
37498
|
} : null,
|
|
37102
37499
|
proposedTaps: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedTaps
|
|
37103
37500
|
}];
|
|
37501
|
+
waterResult.addressType = addressTypeObj;
|
|
37502
|
+
waterResult.completeAddress = completeAddressStr;
|
|
37104
37503
|
waterResult.bankDetails = {
|
|
37105
|
-
bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37106
|
-
bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37107
|
-
ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37108
|
-
accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37109
|
-
confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37110
|
-
accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37504
|
+
bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.bankName) || "",
|
|
37505
|
+
bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.bankBranchName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.branchName) || "",
|
|
37506
|
+
ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.ifscCode) || "",
|
|
37507
|
+
accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.accountNumber) || "",
|
|
37508
|
+
confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.confirmAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition17 = waterResult.additionalDetails) === null || _waterResult$addition17 === void 0 ? void 0 : _waterResult$addition17.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition18 = waterResult.additionalDetails) === null || _waterResult$addition18 === void 0 ? void 0 : _waterResult$addition18.accountNumber) || "",
|
|
37509
|
+
accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.accountHolderName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.ownerName) || ""
|
|
37111
37510
|
};
|
|
37112
37511
|
waterResult.djbEmployee = {
|
|
37113
|
-
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37114
|
-
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37115
|
-
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37116
|
-
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37117
|
-
document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
37512
|
+
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.isDjbEmployee) === "true",
|
|
37513
|
+
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.employeeId) || "",
|
|
37514
|
+
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.designation) || "",
|
|
37515
|
+
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition24 = waterResult.additionalDetails) === null || _waterResult$addition24 === void 0 ? void 0 : _waterResult$addition24.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition25 = waterResult.additionalDetails) === null || _waterResult$addition25 === void 0 ? void 0 : _waterResult$addition25.dorDate) || "",
|
|
37516
|
+
document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition26 = waterResult.additionalDetails) === null || _waterResult$addition26 === void 0 ? void 0 : _waterResult$addition26.document) || ""
|
|
37118
37517
|
};
|
|
37119
37518
|
} else if (sewerageresult) {
|
|
37120
|
-
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, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24;
|
|
37519
|
+
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, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$Conne, _sewerageresult$Conne2, _sewerageresult$addit2, _sewerageresult$Conne3, _sewerageresult$Conne4, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24, _sewerageresult$addit25, _sewerageresult$addit26;
|
|
37121
37520
|
sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
|
|
37122
37521
|
...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
|
|
37123
37522
|
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,
|
|
@@ -37196,6 +37595,18 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
37196
37595
|
proposedToilets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedToilets,
|
|
37197
37596
|
proposedWaterClosets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedWaterClosets
|
|
37198
37597
|
};
|
|
37598
|
+
const rawAddressTypeSewerage = (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit = sewerageresult.additionalDetails) === null || _sewerageresult$addit === void 0 ? void 0 : _sewerageresult$addit.addressType) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$Conne = sewerageresult.ConnectionDetails) === null || _sewerageresult$Conne === void 0 ? void 0 : (_sewerageresult$Conne2 = _sewerageresult$Conne[0]) === null || _sewerageresult$Conne2 === void 0 ? void 0 : _sewerageresult$Conne2.addressType) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.addressType);
|
|
37599
|
+
const addressTypeObjSewerage = typeof rawAddressTypeSewerage === "object" && rawAddressTypeSewerage !== null && rawAddressTypeSewerage !== void 0 && rawAddressTypeSewerage.code ? rawAddressTypeSewerage : String(rawAddressTypeSewerage).toUpperCase() === "PERMANENT" ? {
|
|
37600
|
+
i18nKey: "Permanent",
|
|
37601
|
+
code: "PERMANENT"
|
|
37602
|
+
} : String(rawAddressTypeSewerage).toUpperCase() === "CORRESPONDENCE" ? {
|
|
37603
|
+
i18nKey: "Correspondence",
|
|
37604
|
+
code: "CORRESPONDENCE"
|
|
37605
|
+
} : rawAddressTypeSewerage ? {
|
|
37606
|
+
i18nKey: rawAddressTypeSewerage,
|
|
37607
|
+
code: rawAddressTypeSewerage
|
|
37608
|
+
} : null;
|
|
37609
|
+
const completeAddressStrSewerage = (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit2 = sewerageresult.additionalDetails) === null || _sewerageresult$addit2 === void 0 ? void 0 : _sewerageresult$addit2.completeAddress) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$Conne3 = sewerageresult.ConnectionDetails) === null || _sewerageresult$Conne3 === void 0 ? void 0 : (_sewerageresult$Conne4 = _sewerageresult$Conne3[0]) === null || _sewerageresult$Conne4 === void 0 ? void 0 : _sewerageresult$Conne4.completeAddress) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.completeAddress) || "";
|
|
37199
37610
|
sewerageresult.ConnectionDetails = [{
|
|
37200
37611
|
water: false,
|
|
37201
37612
|
sewerage: true,
|
|
@@ -37210,35 +37621,39 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
37210
37621
|
code: "Non Metered",
|
|
37211
37622
|
i18nKey: "WS_CONNECTION_Non Metered"
|
|
37212
37623
|
},
|
|
37213
|
-
waterDemandType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
37214
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37215
|
-
i18nKey: `WS_WATER_DEMAND_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37624
|
+
waterDemandType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit3 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit3 !== void 0 && _sewerageresult$addit3.waterDemandType ? {
|
|
37625
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit4 = sewerageresult.additionalDetails) === null || _sewerageresult$addit4 === void 0 ? void 0 : _sewerageresult$addit4.waterDemandType,
|
|
37626
|
+
i18nKey: `WS_WATER_DEMAND_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit5 = sewerageresult.additionalDetails) === null || _sewerageresult$addit5 === void 0 ? void 0 : _sewerageresult$addit5.waterDemandType}`
|
|
37216
37627
|
} : null,
|
|
37217
|
-
applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
37218
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37219
|
-
i18nKey: `WS_APPLICANT_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37628
|
+
applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit6 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit6 !== void 0 && _sewerageresult$addit6.applicantType ? {
|
|
37629
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit7 = sewerageresult.additionalDetails) === null || _sewerageresult$addit7 === void 0 ? void 0 : _sewerageresult$addit7.applicantType,
|
|
37630
|
+
i18nKey: `WS_APPLICANT_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit8 = sewerageresult.additionalDetails) === null || _sewerageresult$addit8 === void 0 ? void 0 : _sewerageresult$addit8.applicantType}`
|
|
37220
37631
|
} : null,
|
|
37221
|
-
categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
37222
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37223
|
-
i18nKey: `WS_CATEGORY_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37632
|
+
categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit9 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit9 !== void 0 && _sewerageresult$addit9.categoryType ? {
|
|
37633
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit0 = sewerageresult.additionalDetails) === null || _sewerageresult$addit0 === void 0 ? void 0 : _sewerageresult$addit0.categoryType,
|
|
37634
|
+
i18nKey: `WS_CATEGORY_${sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit1 = sewerageresult.additionalDetails) === null || _sewerageresult$addit1 === void 0 ? void 0 : _sewerageresult$addit1.categoryType}`
|
|
37224
37635
|
} : null,
|
|
37636
|
+
addressType: addressTypeObjSewerage,
|
|
37637
|
+
completeAddress: completeAddressStrSewerage,
|
|
37225
37638
|
proposedToilets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedToilets,
|
|
37226
37639
|
proposedWaterClosets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedWaterClosets
|
|
37227
37640
|
}];
|
|
37641
|
+
sewerageresult.addressType = addressTypeObjSewerage;
|
|
37642
|
+
sewerageresult.completeAddress = completeAddressStrSewerage;
|
|
37228
37643
|
sewerageresult.bankDetails = {
|
|
37229
|
-
bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37230
|
-
bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37231
|
-
ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37232
|
-
accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37233
|
-
confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37234
|
-
accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37644
|
+
bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.bankName) || "",
|
|
37645
|
+
bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.bankBranchName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.branchName) || "",
|
|
37646
|
+
ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.ifscCode) || "",
|
|
37647
|
+
accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.accountNumber) || "",
|
|
37648
|
+
confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.confirmAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit17 = sewerageresult.additionalDetails) === null || _sewerageresult$addit17 === void 0 ? void 0 : _sewerageresult$addit17.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit18 = sewerageresult.additionalDetails) === null || _sewerageresult$addit18 === void 0 ? void 0 : _sewerageresult$addit18.accountNumber) || "",
|
|
37649
|
+
accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.accountHolderName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.ownerName) || ""
|
|
37235
37650
|
};
|
|
37236
37651
|
sewerageresult.djbEmployee = {
|
|
37237
|
-
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37238
|
-
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37239
|
-
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37240
|
-
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37241
|
-
document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
37652
|
+
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.isDjbEmployee) === "true",
|
|
37653
|
+
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.employeeId) || "",
|
|
37654
|
+
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.designation) || "",
|
|
37655
|
+
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit24 = sewerageresult.additionalDetails) === null || _sewerageresult$addit24 === void 0 ? void 0 : _sewerageresult$addit24.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit25 = sewerageresult.additionalDetails) === null || _sewerageresult$addit25 === void 0 ? void 0 : _sewerageresult$addit25.dorDate) || "",
|
|
37656
|
+
document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit26 = sewerageresult.additionalDetails) === null || _sewerageresult$addit26 === void 0 ? void 0 : _sewerageresult$addit26.document) || ""
|
|
37242
37657
|
};
|
|
37243
37658
|
}
|
|
37244
37659
|
if (waterResult) return {
|
|
@@ -37312,10 +37727,10 @@ const EditApplication = _ref => {
|
|
|
37312
37727
|
});
|
|
37313
37728
|
let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
|
|
37314
37729
|
useEffect(() => {
|
|
37315
|
-
var _waterapplication, _sewerageapplication;
|
|
37730
|
+
var _waterapplication, _params$ConnectionDet, _params$ConnectionDet2, _sewerageapplication, _params$ConnectionDet3, _params$ConnectionDet4;
|
|
37316
37731
|
waterapplication = Waterresult;
|
|
37317
37732
|
sewerageapplication = Sewarageresult;
|
|
37318
|
-
if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)) || sewerageapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)))) {
|
|
37733
|
+
if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired) || !(params !== null && params !== void 0 && (_params$ConnectionDet = params.ConnectionDetails) !== null && _params$ConnectionDet !== void 0 && (_params$ConnectionDet2 = _params$ConnectionDet[0]) !== null && _params$ConnectionDet2 !== void 0 && _params$ConnectionDet2.addressType)) || sewerageapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired) || !(params !== null && params !== void 0 && (_params$ConnectionDet3 = params.ConnectionDetails) !== null && _params$ConnectionDet3 !== void 0 && (_params$ConnectionDet4 = _params$ConnectionDet3[0]) !== null && _params$ConnectionDet4 !== void 0 && _params$ConnectionDet4.addressType)))) {
|
|
37319
37734
|
waterapplication = Waterresult;
|
|
37320
37735
|
sewerageapplication = Sewarageresult;
|
|
37321
37736
|
if (window.location.href.includes("edit-application")) {
|
|
@@ -37349,12 +37764,44 @@ const EditApplication = _ref => {
|
|
|
37349
37764
|
...EditDetails
|
|
37350
37765
|
});
|
|
37351
37766
|
} else if (Object.keys(params).length > 0 && (Waterresult || Sewarageresult)) {
|
|
37767
|
+
var _currentApp$additiona, _currentApp$Connectio, _currentApp$Connectio2, _currentApp$additiona2, _currentApp$Connectio3, _currentApp$Connectio4, _params$ConnectionDet5, _params$ConnectionDet6, _params$ConnectionDet7, _params$ConnectionDet8;
|
|
37352
37768
|
let currentApp = Waterresult || Sewarageresult;
|
|
37353
|
-
|
|
37354
|
-
|
|
37355
|
-
|
|
37356
|
-
|
|
37357
|
-
|
|
37769
|
+
const addrType = (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$additiona = currentApp.additionalDetails) === null || _currentApp$additiona === void 0 ? void 0 : _currentApp$additiona.addressType) || (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$Connectio = currentApp.ConnectionDetails) === null || _currentApp$Connectio === void 0 ? void 0 : (_currentApp$Connectio2 = _currentApp$Connectio[0]) === null || _currentApp$Connectio2 === void 0 ? void 0 : _currentApp$Connectio2.addressType) || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.addressType);
|
|
37770
|
+
const compAddr = (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$additiona2 = currentApp.additionalDetails) === null || _currentApp$additiona2 === void 0 ? void 0 : _currentApp$additiona2.completeAddress) || (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$Connectio3 = currentApp.ConnectionDetails) === null || _currentApp$Connectio3 === void 0 ? void 0 : (_currentApp$Connectio4 = _currentApp$Connectio3[0]) === null || _currentApp$Connectio4 === void 0 ? void 0 : _currentApp$Connectio4.completeAddress) || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.completeAddress);
|
|
37771
|
+
const needsAddressSync = !(params !== null && params !== void 0 && (_params$ConnectionDet5 = params.ConnectionDetails) !== null && _params$ConnectionDet5 !== void 0 && (_params$ConnectionDet6 = _params$ConnectionDet5[0]) !== null && _params$ConnectionDet6 !== void 0 && _params$ConnectionDet6.addressType) && addrType || !(params !== null && params !== void 0 && (_params$ConnectionDet7 = params.ConnectionDetails) !== null && _params$ConnectionDet7 !== void 0 && (_params$ConnectionDet8 = _params$ConnectionDet7[0]) !== null && _params$ConnectionDet8 !== void 0 && _params$ConnectionDet8.completeAddress) && compAddr;
|
|
37772
|
+
const needsDueSync = currentApp && currentApp.dueVerification && JSON.stringify(currentApp.dueVerification) !== JSON.stringify(params.dueVerification);
|
|
37773
|
+
if (needsAddressSync || needsDueSync) {
|
|
37774
|
+
let updatedParams = {
|
|
37775
|
+
...params
|
|
37776
|
+
};
|
|
37777
|
+
if (needsAddressSync) {
|
|
37778
|
+
var _params$ConnectionDet9, _params$ConnectionDet0;
|
|
37779
|
+
const addrTypeObj = typeof addrType === "object" && addrType !== null && addrType !== void 0 && addrType.code ? addrType : String(addrType).toUpperCase() === "PERMANENT" ? {
|
|
37780
|
+
i18nKey: "Permanent",
|
|
37781
|
+
code: "PERMANENT"
|
|
37782
|
+
} : String(addrType).toUpperCase() === "CORRESPONDENCE" ? {
|
|
37783
|
+
i18nKey: "Correspondence",
|
|
37784
|
+
code: "CORRESPONDENCE"
|
|
37785
|
+
} : addrType ? {
|
|
37786
|
+
i18nKey: addrType,
|
|
37787
|
+
code: addrType
|
|
37788
|
+
} : null;
|
|
37789
|
+
const updatedConnDetails = params !== null && params !== void 0 && params.ConnectionDetails ? [{
|
|
37790
|
+
...params.ConnectionDetails[0],
|
|
37791
|
+
addressType: ((_params$ConnectionDet9 = params.ConnectionDetails[0]) === null || _params$ConnectionDet9 === void 0 ? void 0 : _params$ConnectionDet9.addressType) || addrTypeObj,
|
|
37792
|
+
completeAddress: ((_params$ConnectionDet0 = params.ConnectionDetails[0]) === null || _params$ConnectionDet0 === void 0 ? void 0 : _params$ConnectionDet0.completeAddress) || compAddr || ""
|
|
37793
|
+
}] : [{
|
|
37794
|
+
addressType: addrTypeObj,
|
|
37795
|
+
completeAddress: compAddr || ""
|
|
37796
|
+
}];
|
|
37797
|
+
updatedParams.ConnectionDetails = updatedConnDetails;
|
|
37798
|
+
updatedParams.addressType = updatedParams.addressType || addrTypeObj;
|
|
37799
|
+
updatedParams.completeAddress = updatedParams.completeAddress || compAddr || "";
|
|
37800
|
+
}
|
|
37801
|
+
if (needsDueSync) {
|
|
37802
|
+
updatedParams.dueVerification = currentApp.dueVerification;
|
|
37803
|
+
}
|
|
37804
|
+
setParams(updatedParams);
|
|
37358
37805
|
}
|
|
37359
37806
|
}
|
|
37360
37807
|
}, [Waterresult, Sewarageresult]);
|
|
@@ -37378,6 +37825,9 @@ const EditApplication = _ref => {
|
|
|
37378
37825
|
const handleSelect = (key, data, skipStep, isFromCreateApi) => {
|
|
37379
37826
|
if (isFromCreateApi) setParams(data);else if (key === "") setParams({
|
|
37380
37827
|
...data
|
|
37828
|
+
});else if (Array.isArray(data)) setParams({
|
|
37829
|
+
...params,
|
|
37830
|
+
[key]: data
|
|
37381
37831
|
});else setParams({
|
|
37382
37832
|
...params,
|
|
37383
37833
|
...{
|
|
@@ -37597,7 +38047,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
37597
38047
|
};
|
|
37598
38048
|
|
|
37599
38049
|
const CheckPage = _ref => {
|
|
37600
|
-
var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$
|
|
38050
|
+
var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _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, _data2, _data2$additionalDeta, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _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;
|
|
37601
38051
|
let {
|
|
37602
38052
|
onSubmit,
|
|
37603
38053
|
value
|
|
@@ -37739,6 +38189,12 @@ const CheckPage = _ref => {
|
|
|
37739
38189
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
37740
38190
|
label: t("WS_APPLICANT_TYPE"),
|
|
37741
38191
|
text: `${t(checkForNA((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap = connectionDetails.applicantType) === null || _connectionDetails$ap === void 0 ? void 0 : _connectionDetails$ap.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap2 = connectionDetails.applicantType) === null || _connectionDetails$ap2 === void 0 ? void 0 : _connectionDetails$ap2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.applicantType)))}`
|
|
38192
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
38193
|
+
label: t("WS_Billing_Address_Type"),
|
|
38194
|
+
text: `${t(checkForNA((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad = connectionDetails.addressType) === null || _connectionDetails$ad === void 0 ? void 0 : _connectionDetails$ad.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad2 = connectionDetails.addressType) === null || _connectionDetails$ad2 === void 0 ? void 0 : _connectionDetails$ad2.name) || (typeof (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad3 = connectionDetails.addressType) === null || _connectionDetails$ad3 === void 0 ? void 0 : _connectionDetails$ad3.code) === "string" ? connectionDetails.addressType.code === "PERMANENT" ? "Permanent" : connectionDetails.addressType.code === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType.code : null) || (typeof (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.addressType) === "string" ? connectionDetails.addressType === "PERMANENT" ? "Permanent" : connectionDetails.addressType === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType : null) || ((_data = data) === null || _data === void 0 ? void 0 : (_data$additionalDetai = _data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.addressType)))}`
|
|
38195
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
38196
|
+
label: t("Complete Address"),
|
|
38197
|
+
text: `${checkForNA((connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.completeAddress) || ((_data2 = data) === null || _data2 === void 0 ? void 0 : (_data2$additionalDeta = _data2.additionalDetails) === null || _data2$additionalDeta === void 0 ? void 0 : _data2$additionalDeta.completeAddress))}`
|
|
37742
38198
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
37743
38199
|
label: t("WS_SERVICE_TYPE"),
|
|
37744
38200
|
text: `${t(checkForNA((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do2 = connectionDetails.domesticType) === null || _connectionDetails$do2 === void 0 ? void 0 : _connectionDetails$do2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.domesticType)))}`
|
|
@@ -37901,10 +38357,21 @@ const CheckPage = _ref => {
|
|
|
37901
38357
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
37902
38358
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
37903
38359
|
text: `${t(checkForNA((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)))}`
|
|
37904
|
-
}),
|
|
38360
|
+
}), 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$additionalDetail = cpt.additionalDetails) === null || _cpt$additionalDetail === void 0 ? void 0 : (_cpt$additionalDetail2 = _cpt$additionalDetail.propertyCategory) === null || _cpt$additionalDetail2 === void 0 ? void 0 : _cpt$additionalDetail2.code) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail3 = cpt.additionalDetails) === null || _cpt$additionalDetail3 === void 0 ? void 0 : _cpt$additionalDetail3.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$propertyType = cpt.propertyType) === null || _cpt$propertyType === void 0 ? void 0 : _cpt$propertyType.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : cpt.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(Row, {
|
|
37905
38361
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
37906
38362
|
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
37907
|
-
}) : null
|
|
38363
|
+
}) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail4 = cpt.additionalDetails) === null || _cpt$additionalDetail4 === void 0 ? void 0 : _cpt$additionalDetail4.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail5 = cpt.additionalDetails) === null || _cpt$additionalDetail5 === void 0 ? void 0 : _cpt$additionalDetail5.questions) : []).map((q, idx) => {
|
|
38364
|
+
var _q$answer, _q$answer2, _q$answer3;
|
|
38365
|
+
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}`;
|
|
38366
|
+
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;
|
|
38367
|
+
const trimmedQ = String(qText || "").trim();
|
|
38368
|
+
const displayLabel = trimmedQ.toLowerCase().startsWith("question") ? trimmedQ : `${trimmedQ}`;
|
|
38369
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
38370
|
+
key: `question_${idx}`,
|
|
38371
|
+
label: displayLabel,
|
|
38372
|
+
text: `${t(checkForNA(aText))}`
|
|
38373
|
+
});
|
|
38374
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
37908
38375
|
style: {
|
|
37909
38376
|
marginTop: "10px",
|
|
37910
38377
|
marginBottom: "30px"
|
|
@@ -40973,7 +41440,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
40973
41440
|
};
|
|
40974
41441
|
|
|
40975
41442
|
const ApplicationBillAmendment = () => {
|
|
40976
|
-
var _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3,
|
|
41443
|
+
var _state, _state$data, _state$data$applicati, _state$data$applicati2, _state$data$applicati3, _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state2, _state2$data, _state2$data$applicat, _state2$data$applicat2, _state2$data$applicat3, _billSearchData, _billSearchData$filte, _billSearchData2, _state8, _state8$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state9, _state9$data;
|
|
40977
41444
|
const [showToast, setShowToast] = useState(null);
|
|
40978
41445
|
const {
|
|
40979
41446
|
t
|
|
@@ -41001,7 +41468,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41001
41468
|
} = Digit.Hooks.ws.WSSearchMdmsTypes.useWSMDMSBillAmendment({
|
|
41002
41469
|
tenantId: stateId
|
|
41003
41470
|
});
|
|
41004
|
-
const servicev1 =
|
|
41471
|
+
const servicev1 = "WS";
|
|
41005
41472
|
const billSearchFilters = {
|
|
41006
41473
|
tenantId,
|
|
41007
41474
|
consumerCode: connectionNumber,
|
|
@@ -41011,6 +41478,15 @@ const ApplicationBillAmendment = () => {
|
|
|
41011
41478
|
data: preBillSearchData,
|
|
41012
41479
|
isLoading: isBillSearchLoading
|
|
41013
41480
|
} = Digit.Hooks.usePaymentSearch(tenantId, billSearchFilters);
|
|
41481
|
+
const editFormData = (_state = state) === null || _state === void 0 ? void 0 : (_state$data = _state.data) === null || _state$data === void 0 ? void 0 : (_state$data$applicati = _state$data.applicationDetails) === null || _state$data$applicati === void 0 ? void 0 : (_state$data$applicati2 = _state$data$applicati.amendment) === null || _state$data$applicati2 === void 0 ? void 0 : (_state$data$applicati3 = _state$data$applicati2.additionalDetails) === null || _state$data$applicati3 === void 0 ? void 0 : _state$data$applicati3.editForm;
|
|
41482
|
+
useEffect(() => {
|
|
41483
|
+
var _editFormData, _editFormData2;
|
|
41484
|
+
if (editFormData !== null && editFormData !== void 0 && (_editFormData = editFormData[`${servicev1}_REDUCED_AMOUNT`]) !== null && _editFormData !== void 0 && _editFormData.VALUE) {
|
|
41485
|
+
setischeckedReduce(true);
|
|
41486
|
+
} else if (editFormData !== null && editFormData !== void 0 && (_editFormData2 = editFormData[`${servicev1}_ADDITIONAL_AMOUNT`]) !== null && _editFormData2 !== void 0 && _editFormData2.VALUE) {
|
|
41487
|
+
setischeckedAddition(true);
|
|
41488
|
+
}
|
|
41489
|
+
}, [editFormData, servicev1]);
|
|
41014
41490
|
const {
|
|
41015
41491
|
data,
|
|
41016
41492
|
isFetched
|
|
@@ -41023,6 +41499,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41023
41499
|
control,
|
|
41024
41500
|
watch,
|
|
41025
41501
|
setValue,
|
|
41502
|
+
clearErrors,
|
|
41026
41503
|
unregister,
|
|
41027
41504
|
handleSubmit,
|
|
41028
41505
|
formState: {
|
|
@@ -41033,8 +41510,15 @@ const ApplicationBillAmendment = () => {
|
|
|
41033
41510
|
reset,
|
|
41034
41511
|
...methods
|
|
41035
41512
|
} = useForm({
|
|
41513
|
+
mode: "onChange",
|
|
41036
41514
|
defaultValues: {
|
|
41037
|
-
|
|
41515
|
+
WS_REDUCED_AMOUNT: {
|
|
41516
|
+
VALUE: false
|
|
41517
|
+
},
|
|
41518
|
+
WS_ADDITIONAL_AMOUNT: {
|
|
41519
|
+
VALUE: false
|
|
41520
|
+
},
|
|
41521
|
+
...((_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$data = _state2.data) === null || _state2$data === void 0 ? void 0 : (_state2$data$applicat = _state2$data.applicationDetails) === null || _state2$data$applicat === void 0 ? void 0 : (_state2$data$applicat2 = _state2$data$applicat.amendment) === null || _state2$data$applicat2 === void 0 ? void 0 : (_state2$data$applicat3 = _state2$data$applicat2.additionalDetails) === null || _state2$data$applicat3 === void 0 ? void 0 : _state2$data$applicat3.editForm)
|
|
41038
41522
|
}
|
|
41039
41523
|
});
|
|
41040
41524
|
const {
|
|
@@ -41050,8 +41534,6 @@ const ApplicationBillAmendment = () => {
|
|
|
41050
41534
|
const amendmentReason = watch("amendmentReason");
|
|
41051
41535
|
const WS_REDUCED_AMOUNT = watch("WS_REDUCED_AMOUNT");
|
|
41052
41536
|
const WS_ADDITIONAL_AMOUNT = watch("WS_ADDITIONAL_AMOUNT");
|
|
41053
|
-
const SW_REDUCED_AMOUNT = watch("SW_REDUCED_AMOUNT");
|
|
41054
|
-
const SW_ADDITIONAL_AMOUNT = watch("SW_ADDITIONAL_AMOUNT");
|
|
41055
41537
|
const history = useHistory();
|
|
41056
41538
|
const uploadFile = function (data, fname, props) {
|
|
41057
41539
|
try {
|
|
@@ -41175,11 +41657,10 @@ const ApplicationBillAmendment = () => {
|
|
|
41175
41657
|
});
|
|
41176
41658
|
};
|
|
41177
41659
|
const getDemandDetailsComparingUpdates = d => {
|
|
41178
|
-
var _d, _d2, _d3, _d4, _d$WS_REDUCED_AMOUNT,
|
|
41179
|
-
let actionPerformed;
|
|
41660
|
+
var _d, _d2, _d3, _d4, _d$WS_REDUCED_AMOUNT, _actionPerformedInArr;
|
|
41180
41661
|
const action = (d === null || d === void 0 ? void 0 : (_d = d[`${servicev1}_REDUCED_AMOUNT`]) === null || _d === void 0 ? void 0 : _d.VALUE) !== undefined && d !== null && d !== void 0 && (_d2 = d[`${servicev1}_REDUCED_AMOUNT`]) !== null && _d2 !== void 0 && _d2.VALUE || (d === null || d === void 0 ? void 0 : (_d3 = d[`${servicev1}_ADDITIONAL_AMOUNT`]) === null || _d3 === void 0 ? void 0 : _d3.VALUE) !== undefined && !(d !== null && d !== void 0 && (_d4 = d[`${servicev1}_ADDITIONAL_AMOUNT`]) !== null && _d4 !== void 0 && _d4.VALUE) ? "rebate" : "penalty";
|
|
41181
|
-
|
|
41182
|
-
|
|
41662
|
+
let actionPerformed = JSON.parse(JSON.stringify(d !== null && d !== void 0 && (_d$WS_REDUCED_AMOUNT = d.WS_REDUCED_AMOUNT) !== null && _d$WS_REDUCED_AMOUNT !== void 0 && _d$WS_REDUCED_AMOUNT.VALUE ? d === null || d === void 0 ? void 0 : d.WS_REDUCED_AMOUNT : d === null || d === void 0 ? void 0 : d.WS_ADDITIONAL_AMOUNT));
|
|
41663
|
+
actionPerformed === null || actionPerformed === void 0 ? true : delete actionPerformed.VALUE;
|
|
41183
41664
|
const actionPerformedInArray = Object.entries(actionPerformed);
|
|
41184
41665
|
if (d !== null && d !== void 0 && d[`${servicev1}_REBATE`]) {
|
|
41185
41666
|
actionPerformedInArray.push([`${servicev1}_TIME_ADHOC_REBATE`, d === null || d === void 0 ? void 0 : d[`${servicev1}_REBATE`]]);
|
|
@@ -41196,15 +41677,14 @@ const ApplicationBillAmendment = () => {
|
|
|
41196
41677
|
});
|
|
41197
41678
|
};
|
|
41198
41679
|
const getTotalDetailsOfUpdatedData = d => {
|
|
41199
|
-
var _d5, _d$WS_REDUCED_AMOUNT2
|
|
41680
|
+
var _d5, _d$WS_REDUCED_AMOUNT2;
|
|
41200
41681
|
const action = d !== null && d !== void 0 && (_d5 = d[`${servicev1}_REDUCED_AMOUNT`]) !== null && _d5 !== void 0 && _d5.VALUE ? "REBATE" : "PENALTY";
|
|
41201
41682
|
const originalDemand = {};
|
|
41202
41683
|
billSearchData.map(el => {
|
|
41203
41684
|
originalDemand[el.taxHeadCode] = el.amount;
|
|
41204
41685
|
});
|
|
41205
|
-
let actionPerformed;
|
|
41206
|
-
|
|
41207
|
-
(_actionPerformed2 = actionPerformed) === null || _actionPerformed2 === void 0 ? true : delete _actionPerformed2.VALUE;
|
|
41686
|
+
let actionPerformed = JSON.parse(JSON.stringify(d !== null && d !== void 0 && (_d$WS_REDUCED_AMOUNT2 = d.WS_REDUCED_AMOUNT) !== null && _d$WS_REDUCED_AMOUNT2 !== void 0 && _d$WS_REDUCED_AMOUNT2.VALUE ? d === null || d === void 0 ? void 0 : d.WS_REDUCED_AMOUNT : d === null || d === void 0 ? void 0 : d.WS_ADDITIONAL_AMOUNT));
|
|
41687
|
+
actionPerformed === null || actionPerformed === void 0 ? true : delete actionPerformed.VALUE;
|
|
41208
41688
|
actionPerformed[`${servicev1}_${action}`] = d !== null && d !== void 0 && d[`${servicev1}_${action}`] ? d === null || d === void 0 ? void 0 : d[`${servicev1}_${action}`] : 0;
|
|
41209
41689
|
return {
|
|
41210
41690
|
...actionPerformed,
|
|
@@ -41219,13 +41699,13 @@ const ApplicationBillAmendment = () => {
|
|
|
41219
41699
|
};
|
|
41220
41700
|
useEffect(() => {
|
|
41221
41701
|
const timer = setTimeout(() => {
|
|
41222
|
-
var
|
|
41223
|
-
if (goToAppDetailsPage) window.location.href = `${window.location.origin}/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${(
|
|
41702
|
+
var _state4;
|
|
41703
|
+
if (goToAppDetailsPage) window.location.href = `${window.location.origin}/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${(_state4 = state) === null || _state4 === void 0 ? void 0 : _state4.data.applicationDetails.amendment.amendmentId}`;
|
|
41224
41704
|
}, 5000);
|
|
41225
41705
|
return () => clearTimeout(timer);
|
|
41226
41706
|
}, [goToAppDetailsPage]);
|
|
41227
41707
|
const onFormSubmit = d => {
|
|
41228
|
-
var
|
|
41708
|
+
var _state5, _state5$data;
|
|
41229
41709
|
const data = {
|
|
41230
41710
|
Amendment: {
|
|
41231
41711
|
consumerCode: connectionNumber,
|
|
@@ -41252,17 +41732,17 @@ const ApplicationBillAmendment = () => {
|
|
|
41252
41732
|
}
|
|
41253
41733
|
}
|
|
41254
41734
|
};
|
|
41255
|
-
if (((
|
|
41256
|
-
var
|
|
41735
|
+
if (((_state5 = state) === null || _state5 === void 0 ? void 0 : (_state5$data = _state5.data) === null || _state5$data === void 0 ? void 0 : _state5$data.action) === "RE-SUBMIT-APPLICATION") {
|
|
41736
|
+
var _state6, _state6$data, _state6$data$applicat, _state6$data$applicat2, _state7, _state7$data, _state7$data$applicat, _state7$data$applicat2;
|
|
41257
41737
|
const workflow = {
|
|
41258
|
-
businessId: (
|
|
41738
|
+
businessId: (_state6 = state) === null || _state6 === void 0 ? void 0 : (_state6$data = _state6.data) === null || _state6$data === void 0 ? void 0 : (_state6$data$applicat = _state6$data.applicationDetails) === null || _state6$data$applicat === void 0 ? void 0 : (_state6$data$applicat2 = _state6$data$applicat.amendment) === null || _state6$data$applicat2 === void 0 ? void 0 : _state6$data$applicat2.amendmentId,
|
|
41259
41739
|
action: "RE-SUBMIT",
|
|
41260
41740
|
tenantId: tenantId,
|
|
41261
|
-
businessService:
|
|
41262
|
-
moduleName:
|
|
41741
|
+
businessService: "WS.AMENDMENT",
|
|
41742
|
+
moduleName: "WS"
|
|
41263
41743
|
};
|
|
41264
41744
|
const AmendmentUpdate = {
|
|
41265
|
-
...((
|
|
41745
|
+
...((_state7 = state) === null || _state7 === void 0 ? void 0 : (_state7$data = _state7.data) === null || _state7$data === void 0 ? void 0 : (_state7$data$applicat = _state7$data.applicationDetails) === null || _state7$data$applicat === void 0 ? void 0 : (_state7$data$applicat2 = _state7$data$applicat.applicationData) === null || _state7$data$applicat2 === void 0 ? void 0 : _state7$data$applicat2.billAmendmentDetails),
|
|
41266
41746
|
workflow,
|
|
41267
41747
|
...(data === null || data === void 0 ? void 0 : data.Amendment)
|
|
41268
41748
|
};
|
|
@@ -41284,7 +41764,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41284
41764
|
if (variables !== null && variables !== void 0 && (_variables$AmendmentU = variables.AmendmentUpdate) !== null && _variables$AmendmentU !== void 0 && (_variables$AmendmentU2 = _variables$AmendmentU.workflow) !== null && _variables$AmendmentU2 !== void 0 && _variables$AmendmentU2.action.includes("RE-SUBMIT")) {
|
|
41285
41765
|
setShowToast({
|
|
41286
41766
|
key: "success",
|
|
41287
|
-
label: t("
|
|
41767
|
+
label: t("ES_MODIFYWSCONNECTION_RE_SUBMIT_UPDATE_SUCCESS")
|
|
41288
41768
|
});
|
|
41289
41769
|
}
|
|
41290
41770
|
setGoToAppDetailsPage(true);
|
|
@@ -41315,13 +41795,16 @@ const ApplicationBillAmendment = () => {
|
|
|
41315
41795
|
var _ob$taxHeadCode2;
|
|
41316
41796
|
return !(ob !== null && ob !== void 0 && (_ob$taxHeadCode2 = ob.taxHeadCode) !== null && _ob$taxHeadCode2 !== void 0 && _ob$taxHeadCode2.includes("ADHOC"));
|
|
41317
41797
|
});
|
|
41798
|
+
const onFormError = formErrors => {
|
|
41799
|
+
console.warn("Bill Amendment form errors:", formErrors);
|
|
41800
|
+
};
|
|
41318
41801
|
return /*#__PURE__*/React.createElement("form", {
|
|
41319
|
-
onSubmit: handleSubmit(onFormSubmit)
|
|
41802
|
+
onSubmit: handleSubmit(onFormSubmit, onFormError)
|
|
41320
41803
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41321
41804
|
style: {
|
|
41322
41805
|
marginLeft: "20px"
|
|
41323
41806
|
}
|
|
41324
|
-
}, /*#__PURE__*/React.createElement(Header, null, (
|
|
41807
|
+
}, /*#__PURE__*/React.createElement(Header, null, (_state8 = state) !== null && _state8 !== void 0 && (_state8$data = _state8.data) !== null && _state8$data !== void 0 && _state8$data.action ? t("WS_APP_FOR_WATER_AND_SEWERAGE_EDIT_LABEL") : t("WS_BILL_AMENDMENT_BUTTON"))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
41325
41808
|
style: {
|
|
41326
41809
|
marginBottom: "20px"
|
|
41327
41810
|
}
|
|
@@ -41365,74 +41848,108 @@ const ApplicationBillAmendment = () => {
|
|
|
41365
41848
|
name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
41366
41849
|
key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
41367
41850
|
control: control,
|
|
41851
|
+
defaultValue: false,
|
|
41368
41852
|
rules: {
|
|
41369
41853
|
validate: value => {
|
|
41370
|
-
return !!value ||
|
|
41854
|
+
return !!value || ischeckedAddition || !!getValues(`${servicev1}_ADDITIONAL_AMOUNT.VALUE`);
|
|
41371
41855
|
}
|
|
41372
41856
|
},
|
|
41373
|
-
render:
|
|
41374
|
-
|
|
41857
|
+
render: _ref2 => {
|
|
41858
|
+
let {
|
|
41859
|
+
value,
|
|
41860
|
+
onChange
|
|
41861
|
+
} = _ref2;
|
|
41375
41862
|
return /*#__PURE__*/React.createElement("div", {
|
|
41376
41863
|
style: {
|
|
41377
|
-
paddingTop: "20px"
|
|
41864
|
+
paddingTop: "20px",
|
|
41865
|
+
marginLeft: "35px",
|
|
41866
|
+
cursor: "pointer"
|
|
41867
|
+
},
|
|
41868
|
+
onClick: e => {
|
|
41869
|
+
if (e.target.tagName !== "INPUT") {
|
|
41870
|
+
const nextVal = !value;
|
|
41871
|
+
onChange(nextVal);
|
|
41872
|
+
setischeckedReduce(nextVal);
|
|
41873
|
+
if (nextVal) {
|
|
41874
|
+
setischeckedAddition(false);
|
|
41875
|
+
setValue(`${servicev1}_ADDITIONAL_AMOUNT.VALUE`, false);
|
|
41876
|
+
setOtherTextFieldsAndActionToNull(`${servicev1}_ADDITIONAL_AMOUNT`);
|
|
41877
|
+
}
|
|
41878
|
+
}
|
|
41378
41879
|
}
|
|
41379
41880
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
41380
|
-
style: {
|
|
41381
|
-
"marginLeft": "35px"
|
|
41382
|
-
},
|
|
41383
41881
|
label: t(`${servicev1}_REDUCED_AMOUNT`),
|
|
41882
|
+
checked: !!value,
|
|
41384
41883
|
onChange: e => {
|
|
41385
|
-
|
|
41386
|
-
|
|
41387
|
-
|
|
41884
|
+
const isChecked = e.target.checked;
|
|
41885
|
+
onChange(isChecked);
|
|
41886
|
+
setischeckedReduce(isChecked);
|
|
41887
|
+
if (isChecked) {
|
|
41388
41888
|
setischeckedAddition(false);
|
|
41889
|
+
setValue(`${servicev1}_ADDITIONAL_AMOUNT.VALUE`, false);
|
|
41389
41890
|
setOtherTextFieldsAndActionToNull(`${servicev1}_ADDITIONAL_AMOUNT`);
|
|
41390
|
-
} else {
|
|
41391
|
-
setischeckedReduce(false);
|
|
41392
|
-
props.onChange(false);
|
|
41393
41891
|
}
|
|
41394
|
-
}
|
|
41395
|
-
disable: isEdit && (((_state0 = state) === null || _state0 === void 0 ? void 0 : (_state0$data = _state0.data) === null || _state0$data === void 0 ? void 0 : (_state0$data$applicat = _state0$data.applicationDetails) === null || _state0$data$applicat === void 0 ? void 0 : (_state0$data$applicat2 = _state0$data$applicat.amendment) === null || _state0$data$applicat2 === void 0 ? void 0 : (_state0$data$applicat3 = _state0$data$applicat2.additionalDetails) === null || _state0$data$applicat3 === void 0 ? void 0 : (_state0$data$applicat4 = _state0$data$applicat3.editForm) === null || _state0$data$applicat4 === void 0 ? void 0 : (_state0$data$applicat5 = _state0$data$applicat4["WS_REDUCED_AMOUNT"]) === null || _state0$data$applicat5 === void 0 ? void 0 : _state0$data$applicat5["VALUE"]) == false || ((_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : (_state1$data$applicat = _state1$data.applicationDetails) === null || _state1$data$applicat === void 0 ? void 0 : (_state1$data$applicat2 = _state1$data$applicat.amendment) === null || _state1$data$applicat2 === void 0 ? void 0 : (_state1$data$applicat3 = _state1$data$applicat2.additionalDetails) === null || _state1$data$applicat3 === void 0 ? void 0 : (_state1$data$applicat4 = _state1$data$applicat3.editForm) === null || _state1$data$applicat4 === void 0 ? void 0 : (_state1$data$applicat5 = _state1$data$applicat4["SW_REDUCED_AMOUNT"]) === null || _state1$data$applicat5 === void 0 ? void 0 : _state1$data$applicat5["VALUE"]) == false) ? true : false,
|
|
41396
|
-
checked: props === null || props === void 0 ? void 0 : props.value
|
|
41892
|
+
}
|
|
41397
41893
|
}));
|
|
41398
41894
|
}
|
|
41399
|
-
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE &&
|
|
41895
|
+
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && !ischeckedAddition && !ischeckedReduce ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
41896
|
+
style: {
|
|
41897
|
+
marginLeft: "35px"
|
|
41898
|
+
}
|
|
41899
|
+
}, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
|
|
41400
41900
|
name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
41401
41901
|
key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
41402
41902
|
control: control,
|
|
41903
|
+
defaultValue: false,
|
|
41403
41904
|
rules: {
|
|
41404
41905
|
validate: value => {
|
|
41405
|
-
return !!value ||
|
|
41906
|
+
return !!value || ischeckedReduce || !!getValues(`${servicev1}_REDUCED_AMOUNT.VALUE`);
|
|
41406
41907
|
}
|
|
41407
41908
|
},
|
|
41408
|
-
render:
|
|
41409
|
-
|
|
41909
|
+
render: _ref3 => {
|
|
41910
|
+
let {
|
|
41911
|
+
value,
|
|
41912
|
+
onChange
|
|
41913
|
+
} = _ref3;
|
|
41410
41914
|
return /*#__PURE__*/React.createElement("div", {
|
|
41411
41915
|
style: {
|
|
41412
|
-
paddingTop: "17px"
|
|
41916
|
+
paddingTop: "17px",
|
|
41917
|
+
marginLeft: "35px",
|
|
41918
|
+
cursor: "pointer"
|
|
41919
|
+
},
|
|
41920
|
+
onClick: e => {
|
|
41921
|
+
if (e.target.tagName !== "INPUT") {
|
|
41922
|
+
const nextVal = !value;
|
|
41923
|
+
onChange(nextVal);
|
|
41924
|
+
setischeckedAddition(nextVal);
|
|
41925
|
+
if (nextVal) {
|
|
41926
|
+
setischeckedReduce(false);
|
|
41927
|
+
setValue(`${servicev1}_REDUCED_AMOUNT.VALUE`, false);
|
|
41928
|
+
setOtherTextFieldsAndActionToNull(`${servicev1}_REDUCED_AMOUNT`);
|
|
41929
|
+
}
|
|
41930
|
+
}
|
|
41413
41931
|
}
|
|
41414
41932
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
41415
|
-
style: {
|
|
41416
|
-
"marginLeft": "35px"
|
|
41417
|
-
},
|
|
41418
41933
|
label: t(`${servicev1}_ADDITIONAL_AMOUNT`),
|
|
41934
|
+
checked: !!value,
|
|
41419
41935
|
onChange: e => {
|
|
41420
|
-
|
|
41421
|
-
|
|
41422
|
-
|
|
41936
|
+
const isChecked = e.target.checked;
|
|
41937
|
+
onChange(isChecked);
|
|
41938
|
+
setischeckedAddition(isChecked);
|
|
41939
|
+
if (isChecked) {
|
|
41423
41940
|
setischeckedReduce(false);
|
|
41941
|
+
setValue(`${servicev1}_REDUCED_AMOUNT.VALUE`, false);
|
|
41424
41942
|
setOtherTextFieldsAndActionToNull(`${servicev1}_REDUCED_AMOUNT`);
|
|
41425
|
-
} else {
|
|
41426
|
-
setischeckedAddition(false);
|
|
41427
|
-
props.onChange(false);
|
|
41428
41943
|
}
|
|
41429
|
-
}
|
|
41430
|
-
disable: isEdit && (((_state10 = state) === null || _state10 === void 0 ? void 0 : (_state10$data = _state10.data) === null || _state10$data === void 0 ? void 0 : (_state10$data$applica = _state10$data.applicationDetails) === null || _state10$data$applica === void 0 ? void 0 : (_state10$data$applica2 = _state10$data$applica.amendment) === null || _state10$data$applica2 === void 0 ? void 0 : (_state10$data$applica3 = _state10$data$applica2.additionalDetails) === null || _state10$data$applica3 === void 0 ? void 0 : (_state10$data$applica4 = _state10$data$applica3.editForm) === null || _state10$data$applica4 === void 0 ? void 0 : (_state10$data$applica5 = _state10$data$applica4["WS_ADDITIONAL_AMOUNT"]) === null || _state10$data$applica5 === void 0 ? void 0 : _state10$data$applica5["VALUE"]) == false || ((_state11 = state) === null || _state11 === void 0 ? void 0 : (_state11$data = _state11.data) === null || _state11$data === void 0 ? void 0 : (_state11$data$applica = _state11$data.applicationDetails) === null || _state11$data$applica === void 0 ? void 0 : (_state11$data$applica2 = _state11$data$applica.amendment) === null || _state11$data$applica2 === void 0 ? void 0 : (_state11$data$applica3 = _state11$data$applica2.additionalDetails) === null || _state11$data$applica3 === void 0 ? void 0 : (_state11$data$applica4 = _state11$data$applica3.editForm) === null || _state11$data$applica4 === void 0 ? void 0 : (_state11$data$applica5 = _state11$data$applica4["WS_ADDITIONAL_AMOUNT"]) === null || _state11$data$applica5 === void 0 ? void 0 : _state11$data$applica5["VALUE"]) == false) ? true : false,
|
|
41431
|
-
checked: props === null || props === void 0 ? void 0 : props.value
|
|
41944
|
+
}
|
|
41432
41945
|
}));
|
|
41433
41946
|
}
|
|
41434
|
-
}), errors !== null && errors !== void 0 && (_errors$WS_ADDITIONAL = errors.WS_ADDITIONAL_AMOUNT) !== null && _errors$WS_ADDITIONAL !== void 0 && _errors$WS_ADDITIONAL.VALUE &&
|
|
41435
|
-
|
|
41947
|
+
}), errors !== null && errors !== void 0 && (_errors$WS_ADDITIONAL = errors.WS_ADDITIONAL_AMOUNT) !== null && _errors$WS_ADDITIONAL !== void 0 && _errors$WS_ADDITIONAL.VALUE && !ischeckedReduce && !ischeckedAddition ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
41948
|
+
style: {
|
|
41949
|
+
marginLeft: "35px"
|
|
41950
|
+
}
|
|
41951
|
+
}, t("WS_REQUIRED_FIELD")) : null))), (_billSearchData3 = billSearchData) === null || _billSearchData3 === void 0 ? void 0 : _billSearchData3.map(node => {
|
|
41952
|
+
var _errors$WS_REDUCED_AM2, _errors$WS_REDUCED_AM3, _errors$WS_REDUCED_AM4, _errors$WS_ADDITIONAL2, _errors$WS_ADDITIONAL3, _errors$WS_ADDITIONAL4;
|
|
41436
41953
|
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
41437
41954
|
style: {
|
|
41438
41955
|
paddingRight: "60px",
|
|
@@ -41448,7 +41965,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41448
41965
|
paddingLeft: "150px"
|
|
41449
41966
|
}
|
|
41450
41967
|
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
41451
|
-
disabled:
|
|
41968
|
+
disabled: !ischeckedReduce,
|
|
41452
41969
|
type: "number",
|
|
41453
41970
|
name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
|
|
41454
41971
|
inputRef: register({
|
|
@@ -41461,24 +41978,18 @@ const ApplicationBillAmendment = () => {
|
|
|
41461
41978
|
message: t("CS_INVALID_INPUT")
|
|
41462
41979
|
}
|
|
41463
41980
|
})
|
|
41464
|
-
}))),
|
|
41465
|
-
style: {
|
|
41466
|
-
marginBottom: "-20px",
|
|
41467
|
-
marginTop: "-30px",
|
|
41468
|
-
marginLeft: "150px"
|
|
41469
|
-
}
|
|
41470
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$WS_REDUCED_AM3 = errors.WS_REDUCED_AMOUNT) === null || _errors$WS_REDUCED_AM3 === void 0 ? void 0 : (_errors$WS_REDUCED_AM4 = _errors$WS_REDUCED_AM3[node.taxHeadCode]) === null || _errors$WS_REDUCED_AM4 === void 0 ? void 0 : _errors$WS_REDUCED_AM4.message) : (errors === null || errors === void 0 ? void 0 : (_errors$SW_REDUCED_AM = errors.SW_REDUCED_AMOUNT) === null || _errors$SW_REDUCED_AM === void 0 ? void 0 : _errors$SW_REDUCED_AM[node.taxHeadCode]) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
41981
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$WS_REDUCED_AM2 = errors.WS_REDUCED_AMOUNT) === null || _errors$WS_REDUCED_AM2 === void 0 ? void 0 : _errors$WS_REDUCED_AM2[node.taxHeadCode]) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
41471
41982
|
style: {
|
|
41472
41983
|
marginBottom: "-20px",
|
|
41473
41984
|
marginTop: "-30px",
|
|
41474
41985
|
marginLeft: "150px"
|
|
41475
41986
|
}
|
|
41476
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$
|
|
41987
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$WS_REDUCED_AM3 = errors.WS_REDUCED_AMOUNT) === null || _errors$WS_REDUCED_AM3 === void 0 ? void 0 : (_errors$WS_REDUCED_AM4 = _errors$WS_REDUCED_AM3[node.taxHeadCode]) === null || _errors$WS_REDUCED_AM4 === void 0 ? void 0 : _errors$WS_REDUCED_AM4.message)), /*#__PURE__*/React.createElement("td", {
|
|
41477
41988
|
style: {
|
|
41478
41989
|
paddingRight: "60px"
|
|
41479
41990
|
}
|
|
41480
41991
|
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
41481
|
-
disabled:
|
|
41992
|
+
disabled: !ischeckedAddition,
|
|
41482
41993
|
type: "number",
|
|
41483
41994
|
name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
|
|
41484
41995
|
inputRef: register({
|
|
@@ -41487,15 +41998,11 @@ const ApplicationBillAmendment = () => {
|
|
|
41487
41998
|
message: t("CS_INVALID_INPUT")
|
|
41488
41999
|
}
|
|
41489
42000
|
})
|
|
41490
|
-
})),
|
|
41491
|
-
style: {
|
|
41492
|
-
marginTop: "-19px"
|
|
41493
|
-
}
|
|
41494
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$WS_ADDITIONAL3 = errors.WS_ADDITIONAL_AMOUNT) === null || _errors$WS_ADDITIONAL3 === void 0 ? void 0 : (_errors$WS_ADDITIONAL4 = _errors$WS_ADDITIONAL3[node.taxHeadCode]) === null || _errors$WS_ADDITIONAL4 === void 0 ? void 0 : _errors$WS_ADDITIONAL4.message) : (errors === null || errors === void 0 ? void 0 : (_errors$SW_ADDITIONAL = errors.SW_ADDITIONAL_AMOUNT) === null || _errors$SW_ADDITIONAL === void 0 ? void 0 : _errors$SW_ADDITIONAL[node.taxHeadCode]) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
42001
|
+
})), (errors === null || errors === void 0 ? void 0 : (_errors$WS_ADDITIONAL2 = errors.WS_ADDITIONAL_AMOUNT) === null || _errors$WS_ADDITIONAL2 === void 0 ? void 0 : _errors$WS_ADDITIONAL2[node.taxHeadCode]) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
41495
42002
|
style: {
|
|
41496
42003
|
marginTop: "-19px"
|
|
41497
42004
|
}
|
|
41498
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$
|
|
42005
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$WS_ADDITIONAL3 = errors.WS_ADDITIONAL_AMOUNT) === null || _errors$WS_ADDITIONAL3 === void 0 ? void 0 : (_errors$WS_ADDITIONAL4 = _errors$WS_ADDITIONAL3[node.taxHeadCode]) === null || _errors$WS_ADDITIONAL4 === void 0 ? void 0 : _errors$WS_ADDITIONAL4.message)));
|
|
41499
42006
|
}), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
41500
42007
|
style: {
|
|
41501
42008
|
paddingRight: "60px",
|
|
@@ -41526,7 +42033,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41526
42033
|
paddingLeft: "150px"
|
|
41527
42034
|
}
|
|
41528
42035
|
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
41529
|
-
disabled:
|
|
42036
|
+
disabled: !ischeckedReduce,
|
|
41530
42037
|
name: `${servicev1}_REBATE`,
|
|
41531
42038
|
inputRef: register()
|
|
41532
42039
|
}))), /*#__PURE__*/React.createElement("td", {
|
|
@@ -41534,7 +42041,7 @@ const ApplicationBillAmendment = () => {
|
|
|
41534
42041
|
paddingRight: "60px"
|
|
41535
42042
|
}
|
|
41536
42043
|
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
41537
|
-
disabled:
|
|
42044
|
+
disabled: !ischeckedAddition,
|
|
41538
42045
|
name: `${servicev1}_PENALTY`,
|
|
41539
42046
|
inputRef: register()
|
|
41540
42047
|
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
@@ -41713,8 +42220,8 @@ const ApplicationBillAmendment = () => {
|
|
|
41713
42220
|
onClose: closeToast
|
|
41714
42221
|
}) : null, /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
41715
42222
|
submit: true,
|
|
41716
|
-
label: (
|
|
41717
|
-
|
|
42223
|
+
label: (_state9 = state) !== null && _state9 !== void 0 && (_state9$data = _state9.data) !== null && _state9$data !== void 0 && _state9$data.action ? t("WF_CITIZEN_NEWWS1_RESUBMIT_APPLICATION") : t("WS_COMMON_BUTTON_SUBMIT"),
|
|
42224
|
+
onSubmit: handleSubmit(onFormSubmit, onFormError)
|
|
41718
42225
|
})));
|
|
41719
42226
|
};
|
|
41720
42227
|
|
|
@@ -41923,7 +42430,7 @@ const createOption = (code, name) => ({
|
|
|
41923
42430
|
code,
|
|
41924
42431
|
name
|
|
41925
42432
|
});
|
|
41926
|
-
const PROPERTY_CATEGORY_OPTIONS = [createOption("COMMERCIAL", "Commercial"), createOption("INDUSTRIAL", "Industrial"), createOption("INSTITUTIONAL", "Institutional"), createOption("MIXED", "Mixed")];
|
|
42433
|
+
const PROPERTY_CATEGORY_OPTIONS = [createOption("RESIDENTIAL", "Residential"), createOption("COMMERCIAL", "Commercial"), createOption("INDUSTRIAL", "Industrial"), createOption("INSTITUTIONAL", "Institutional"), createOption("MIXED", "Mixed")];
|
|
41927
42434
|
const PROPERTY_TYPE_OPTIONS = [createOption("APARTMENT", "Apartment"), createOption("BANQUET_HALL", "Banquet Hall"), createOption("BUNGALOWS", "Bungalows"), createOption("DDA_FLATS", "DDA flats"), createOption("DHARAMSHALAS_HOSTELS", "Dharamshalas or Hostels"), createOption("GOVT_FLATS", "Govt. Flats"), createOption("GROUP_HOUSING_SOCIETY", "Group Housing Society"), createOption("HOTEL_GUEST_HOUSES", "Hotel or Guest Houses"), createOption("INDIVIDUAL_HOUSE", "Individual House"), createOption("MALL_CINEPLEX", "Mall or Cineplex"), createOption("OFFICE_COMPLEX", "Office complex"), createOption("SCHOOL", "School"), createOption("HOSPITAL_NURSING_HOME", "Hospital/Nursing Home")];
|
|
41928
42435
|
const USAGE_TYPE_OPTIONS = [createOption("BSES_RAJDHANI", "B.S.E.S. RAJDHANI"), createOption("BSES_YAMUNA", "B.S.E.S. YAMUNA"), createOption("BANQUET_HALL_PARTY_HALL", "Banquet hall/ Party hall"), createOption("BEAUTY_PARLORS", "Beauty Parlors"), createOption("BLIND_SCHOOLS", "Blind Schools"), createOption("BOTTLING_PLANT", "Bottling Plant"), createOption("CPWD", "C.P.W.D."), createOption("CENTRAL_GOVT_OFFICES", "Central Govt. Offices"), createOption("CINEPLEX", "Cineplex"), createOption("CLINIC_PATHLAB", "Clinic/Pathlab"), createOption("COOP_GROUP_HOUSING", "Co-operative Group Housing Society"), createOption("COLD_STORAGE", "Cold Storage"), createOption("COLOUR_DYE_SHOP", "Colour Dye shop/factory"), createOption("COOLING_PLANT", "Cooling Plant"), createOption("COURTS", "Courts"), createOption("DSIIDC", "D.S.I.I.D.C"), createOption("DDA", "Delhi Development Authority"), createOption("DELHI_FIRE_SERVICE", "Delhi Fire Service (Fire Station)"), createOption("DELHI_GOVT_OFFICE", "Delhi Govt. Office")];
|
|
41929
42436
|
const NO_OF_FLOORS_OPTIONS = [createOption("BASEMENT", "Basement"), createOption("GROUND_FLOOR", "Ground Floor"), createOption("1_FLOOR", "1 Floor"), createOption("2_FLOOR", "2 Floor"), createOption("3_FLOOR", "3 Floor"), createOption("4_FLOOR", "4 Floor"), createOption("5_FLOOR", "5 Floor"), createOption("6_FLOOR", "6 Floor")];
|
|
@@ -42598,7 +43105,7 @@ const FileUploadField = _ref6 => {
|
|
|
42598
43105
|
})))));
|
|
42599
43106
|
};
|
|
42600
43107
|
const NewApplication = () => {
|
|
42601
|
-
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$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$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;
|
|
43108
|
+
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$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;
|
|
42602
43109
|
const {
|
|
42603
43110
|
t
|
|
42604
43111
|
} = useTranslation();
|
|
@@ -42757,8 +43264,15 @@ const NewApplication = () => {
|
|
|
42757
43264
|
const isDjbEmployee = watch("djbEmployee.isDjbEmployee");
|
|
42758
43265
|
const isGovernmentEmployee = watch("governmentEmployee.isGovernmentEmployee");
|
|
42759
43266
|
const selectedPropertyType = watch("useDetails.propertyType");
|
|
42760
|
-
const
|
|
42761
|
-
const
|
|
43267
|
+
const selectedPropertyCategory = watch("useDetails.propertyCategory");
|
|
43268
|
+
const isResidential = String((selectedPropertyCategory === null || selectedPropertyCategory === void 0 ? void 0 : selectedPropertyCategory.code) || (selectedPropertyCategory === null || selectedPropertyCategory === void 0 ? void 0 : selectedPropertyCategory.name) || selectedPropertyCategory || "").toUpperCase().includes("RESIDENTIAL");
|
|
43269
|
+
const isDwellingUnit = isResidential;
|
|
43270
|
+
useEffect(() => {
|
|
43271
|
+
if (!isDwellingUnit) {
|
|
43272
|
+
setValue("useDetails.NumberofDwellingUnits", "");
|
|
43273
|
+
clearErrors("useDetails.NumberofDwellingUnits");
|
|
43274
|
+
}
|
|
43275
|
+
}, [isDwellingUnit]);
|
|
42762
43276
|
const selectedLocality = watch("propertyAddress.locality");
|
|
42763
43277
|
const selectedSubLocality = watch("propertyAddress.subLocality");
|
|
42764
43278
|
const pCode = watch("propertyAddress.pinCode");
|
|
@@ -44874,18 +45388,18 @@ const NewApplication = () => {
|
|
|
44874
45388
|
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44875
45389
|
label: "Number of Floors",
|
|
44876
45390
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail5 = formValues.useDetails) === null || _formValues$useDetail5 === void 0 ? void 0 : _formValues$useDetail5.noOfFloors
|
|
44877
|
-
}),
|
|
45391
|
+
}), String((formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail6 = formValues.useDetails) === null || _formValues$useDetail6 === void 0 ? void 0 : (_formValues$useDetail7 = _formValues$useDetail6.propertyCategory) === null || _formValues$useDetail7 === void 0 ? void 0 : _formValues$useDetail7.code) || (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail8 = formValues.useDetails) === null || _formValues$useDetail8 === void 0 ? void 0 : (_formValues$useDetail9 = _formValues$useDetail8.propertyCategory) === null || _formValues$useDetail9 === void 0 ? void 0 : _formValues$useDetail9.name) || (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail0 = formValues.useDetails) === null || _formValues$useDetail0 === void 0 ? void 0 : _formValues$useDetail0.propertyCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44878
45392
|
label: "Number of Dwelling Units",
|
|
44879
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44880
|
-
}) : null, (formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
45393
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail1 = formValues.useDetails) === null || _formValues$useDetail1 === void 0 ? void 0 : _formValues$useDetail1.NumberofDwellingUnits
|
|
45394
|
+
}) : null, (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail10 = formValues.useDetails) === null || _formValues$useDetail10 === void 0 ? void 0 : (_formValues$useDetail11 = _formValues$useDetail10.propertyType) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.code) === "HOSPITAL" || (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail12 = formValues.useDetails) === null || _formValues$useDetail12 === void 0 ? void 0 : (_formValues$useDetail13 = _formValues$useDetail12.propertyType) === null || _formValues$useDetail13 === void 0 ? void 0 : _formValues$useDetail13.code) === "HOSPITAL_NURSING_HOME" ? /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44881
45395
|
label: "No. of Beds",
|
|
44882
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
45396
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail14 = formValues.useDetails) === null || _formValues$useDetail14 === void 0 ? void 0 : _formValues$useDetail14.hospitalBeds
|
|
44883
45397
|
}) : null, /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44884
45398
|
label: "Year of Construction",
|
|
44885
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
45399
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail15 = formValues.useDetails) === null || _formValues$useDetail15 === void 0 ? void 0 : _formValues$useDetail15.SelectYearofConstruction
|
|
44886
45400
|
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44887
45401
|
label: "Water Connection Usage Type",
|
|
44888
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
45402
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail16 = formValues.useDetails) === null || _formValues$useDetail16 === void 0 ? void 0 : _formValues$useDetail16.WaterConnectionUsageType
|
|
44889
45403
|
})), /*#__PURE__*/React.createElement(SectionCard, {
|
|
44890
45404
|
description: "Uploaded supporting documents.",
|
|
44891
45405
|
isOpen: collapsedSections.documents,
|
|
@@ -52120,10 +52634,10 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
52120
52634
|
if (completelySatisfied !== undefined) {
|
|
52121
52635
|
if (completelySatisfied === true) {
|
|
52122
52636
|
var _actions;
|
|
52123
|
-
actions = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.filter(e => e.action !== "
|
|
52637
|
+
actions = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.filter(e => e.action !== "SEND_BACK_TO_CITIZEN");
|
|
52124
52638
|
} else if (completelySatisfied === false) {
|
|
52125
52639
|
var _actions2;
|
|
52126
|
-
actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "
|
|
52640
|
+
actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "SEND_BACK_TO_CITIZEN_DIRECT");
|
|
52127
52641
|
}
|
|
52128
52642
|
}
|
|
52129
52643
|
const closeMenu = () => {
|
|
@@ -52654,7 +53168,7 @@ const ApplicationDetails = props => {
|
|
|
52654
53168
|
};
|
|
52655
53169
|
|
|
52656
53170
|
const ApplicationDetails$1 = () => {
|
|
52657
|
-
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _reciept_data$Payment, _applicationDetails$a0, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$
|
|
53171
|
+
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _workflowDetails$data, _workflowDetails$data2, _reciept_data$Payment, _applicationDetails$a0, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a23, _applicationDetails$a24, _reciept_data$Payment3, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19, _applicationDetails$p20, _applicationDetails$p21, _applicationDetails$p22;
|
|
52658
53172
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
52659
53173
|
try {
|
|
52660
53174
|
let response = null;
|
|
@@ -52815,15 +53329,23 @@ const ApplicationDetails$1 = () => {
|
|
|
52815
53329
|
};
|
|
52816
53330
|
let dowloadOptions = [],
|
|
52817
53331
|
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
|
|
52818
|
-
const
|
|
53332
|
+
const timeline = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.ProcessInstances) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.processInstancesDetails) || [];
|
|
53333
|
+
const allTimelineSteps = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.timeline) || [];
|
|
53334
|
+
const isSendBackToCitizen = Array.isArray(timeline) && timeline.some(step => (step === null || step === void 0 ? void 0 : step.action) === "SEND_BACK_TO_CITIZEN" || (step === null || step === void 0 ? void 0 : step.action) === "SEND_BACK_TO_CITIZEN_DIRECT") || Array.isArray(allTimelineSteps) && allTimelineSteps.some(step => (step === null || step === void 0 ? void 0 : step.performedAction) === "SEND_BACK_TO_CITIZEN" || (step === null || step === void 0 ? void 0 : step.performedAction) === "SEND_BACK_TO_CITIZEN_DIRECT");
|
|
53335
|
+
const hasPaymentInTimeline = Array.isArray(timeline) && timeline.some(step => {
|
|
53336
|
+
var _step$state, _step$state2, _step$state3, _step$state4, _step$state5, _step$state6;
|
|
53337
|
+
return (step === null || step === void 0 ? void 0 : step.action) === "PAY" || (step === null || step === void 0 ? void 0 : (_step$state = step.state) === null || _step$state === void 0 ? void 0 : _step$state.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state2 = step.state) === null || _step$state2 === void 0 ? void 0 : _step$state2.applicationStatus) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state3 = step.state) === null || _step$state3 === void 0 ? void 0 : _step$state3.state) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state4 = step.state) === null || _step$state4 === void 0 ? void 0 : _step$state4.state) === "PENDING_FOR_EE_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state5 = step.state) === null || _step$state5 === void 0 ? void 0 : _step$state5.applicationStatus) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : (_step$state6 = step.state) === null || _step$state6 === void 0 ? void 0 : _step$state6.applicationStatus) === "PENDING_FOR_EE_APPROVAL";
|
|
53338
|
+
}) || Array.isArray(allTimelineSteps) && allTimelineSteps.some(step => (step === null || step === void 0 ? void 0 : step.performedAction) === "PAY" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : step.state) === "PENDING_FOR_EE_APPROVAL" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_ZRO_APPROVAL" || (step === null || step === void 0 ? void 0 : step.status) === "PENDING_FOR_EE_APPROVAL");
|
|
53339
|
+
const isCitizenActionPostPayment = (appStatus === "PENDING_FOR_CITIZEN_ACTION" || appStatus === "PENDING FOR CITIZEN ACTION") && (isSendBackToCitizen || hasPaymentInTimeline);
|
|
53340
|
+
const isFeePaid = (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.length) > 0 || isCitizenActionPostPayment || appStatus && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && (appStatus !== "PENDING_FOR_CITIZEN_ACTION" || isCitizenActionPostPayment) && appStatus !== "PENDING_FOR_FIELD_INSPECTION" && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "PENDING_FOR_FINAL_PAYMENT" && appStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && appStatus !== "PENDING_APPROVAL_FOR_MUTATION";
|
|
52819
53341
|
const feeEstimationSection = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationDetails) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.find(section => (section === null || section === void 0 ? void 0 : section.title) === "WS_TASK_DETAILS_FEE_ESTIMATE");
|
|
52820
53342
|
if (feeEstimationSection !== null && feeEstimationSection !== void 0 && feeEstimationSection.additionalDetails && isFeePaid) {
|
|
52821
53343
|
feeEstimationSection.additionalDetails.isPaid = true;
|
|
52822
53344
|
}
|
|
52823
53345
|
if (workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.data && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.businessService) === "NewWS1" && appStatus === "PENDING_FOR_BILLING_CLERK_REVIEW") {
|
|
52824
|
-
var _applicationDetails$p0, _applicationDetails$p1, _workflowDetails$
|
|
53346
|
+
var _applicationDetails$p0, _applicationDetails$p1, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
52825
53347
|
const plotArea = Number((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : (_applicationDetails$p1 = _applicationDetails$p0.additionalDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.plotArea) ?? 0);
|
|
52826
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
53348
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data3 = workflowDetails.data) !== null && _workflowDetails$data3 !== void 0 && (_workflowDetails$data4 = _workflowDetails$data3.actionState) !== null && _workflowDetails$data4 !== void 0 && _workflowDetails$data4.nextActions) {
|
|
52827
53349
|
workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
|
|
52828
53350
|
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
52829
53351
|
return plotArea > 200;
|
|
@@ -52834,7 +53356,7 @@ const ApplicationDetails$1 = () => {
|
|
|
52834
53356
|
return true;
|
|
52835
53357
|
});
|
|
52836
53358
|
}
|
|
52837
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
53359
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data5 = workflowDetails.data) !== null && _workflowDetails$data5 !== void 0 && _workflowDetails$data5.nextActions) {
|
|
52838
53360
|
workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
|
|
52839
53361
|
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
52840
53362
|
return plotArea > 200;
|
|
@@ -52846,7 +53368,7 @@ const ApplicationDetails$1 = () => {
|
|
|
52846
53368
|
});
|
|
52847
53369
|
}
|
|
52848
53370
|
}
|
|
52849
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53371
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.forEach(action => {
|
|
52850
53372
|
if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
|
|
52851
53373
|
action.redirectionUrll = {
|
|
52852
53374
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -52888,7 +53410,7 @@ const ApplicationDetails$1 = () => {
|
|
|
52888
53410
|
};
|
|
52889
53411
|
}
|
|
52890
53412
|
});
|
|
52891
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53413
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.actionState) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.nextActions) === null || _workflowDetails$data1 === void 0 ? void 0 : _workflowDetails$data1.forEach(action => {
|
|
52892
53414
|
if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
|
|
52893
53415
|
var _applicationDetails$a11, _applicationDetails$a12, _applicationDetails$p14, _applicationDetails$p15, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
|
|
52894
53416
|
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationData) === null || _applicationDetails$a11 === void 0 ? void 0 : (_applicationDetails$a12 = _applicationDetails$a11.applicationType) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.includes("MUTATION");
|
|
@@ -52915,27 +53437,27 @@ const ApplicationDetails$1 = () => {
|
|
|
52915
53437
|
};
|
|
52916
53438
|
}
|
|
52917
53439
|
});
|
|
52918
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53440
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.nextActions) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.forEach(action => {
|
|
52919
53441
|
if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
|
|
52920
53442
|
action.isToast = true;
|
|
52921
53443
|
action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
|
|
52922
53444
|
}
|
|
52923
53445
|
});
|
|
52924
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53446
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : (_workflowDetails$data13 = _workflowDetails$data12.actionState) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.nextActions) === null || _workflowDetails$data14 === void 0 ? void 0 : _workflowDetails$data14.forEach(action => {
|
|
52925
53447
|
if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
|
|
52926
53448
|
action.isToast = true;
|
|
52927
53449
|
action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
|
|
52928
53450
|
}
|
|
52929
53451
|
});
|
|
52930
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53452
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.nextActions) === null || _workflowDetails$data16 === void 0 ? void 0 : _workflowDetails$data16.forEach(action => {
|
|
52931
53453
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
52932
|
-
var _workflowDetails$
|
|
52933
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53454
|
+
var _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22;
|
|
53455
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data17 = workflowDetails.data) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17.processInstances) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18[0]) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.businessService) === "WSReconnection") {
|
|
52934
53456
|
action.redirectionUrll = {
|
|
52935
53457
|
pathname: `WSReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
52936
53458
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
52937
53459
|
};
|
|
52938
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53460
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20.processInstances) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21[0]) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.businessService) === "SWReconnection") {
|
|
52939
53461
|
action.redirectionUrll = {
|
|
52940
53462
|
pathname: `SWReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
52941
53463
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -52948,15 +53470,15 @@ const ApplicationDetails$1 = () => {
|
|
|
52948
53470
|
}
|
|
52949
53471
|
}
|
|
52950
53472
|
});
|
|
52951
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53473
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data23 = workflowDetails.data) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.actionState) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.nextActions) === null || _workflowDetails$data25 === void 0 ? void 0 : _workflowDetails$data25.forEach(action => {
|
|
52952
53474
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
52953
|
-
var _workflowDetails$
|
|
52954
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53475
|
+
var _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31;
|
|
53476
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data26 = workflowDetails.data) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26.processInstances) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27[0]) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.businessService) === "WSReconnection") {
|
|
52955
53477
|
action.redirectionUrll = {
|
|
52956
53478
|
pathname: `WSReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
52957
53479
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
52958
53480
|
};
|
|
52959
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
53481
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.processInstances) === null || _workflowDetails$data30 === void 0 ? void 0 : (_workflowDetails$data31 = _workflowDetails$data30[0]) === null || _workflowDetails$data31 === void 0 ? void 0 : _workflowDetails$data31.businessService) === "SWReconnection") {
|
|
52960
53482
|
action.redirectionUrll = {
|
|
52961
53483
|
pathname: `SWReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
52962
53484
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -53158,16 +53680,16 @@ const ApplicationDetails$1 = () => {
|
|
|
53158
53680
|
};
|
|
53159
53681
|
|
|
53160
53682
|
const GetConnectionDetails = () => {
|
|
53161
|
-
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$
|
|
53683
|
+
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a20, _applicationDetails$a21, _applicationDetails$a22, _applicationDetails$a23, _applicationDetails$a24, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$f6, _applicationDetails$f7;
|
|
53162
53684
|
const getBillSearch = function () {
|
|
53163
53685
|
try {
|
|
53164
53686
|
const _temp = function (_applicationDetails$f8) {
|
|
53165
53687
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : _applicationDetails$f8.length) > 0) {
|
|
53166
|
-
var _applicationDetails$
|
|
53688
|
+
var _applicationDetails$a25;
|
|
53167
53689
|
const service = serviceType === "WATER" ? "WS" : "SW";
|
|
53168
53690
|
let wsSearchFilters = {
|
|
53169
53691
|
isConnectionSearch: true,
|
|
53170
|
-
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53692
|
+
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a25 = applicationDetails.applicationData) === null || _applicationDetails$a25 === void 0 ? void 0 : _applicationDetails$a25.connectionNo
|
|
53171
53693
|
};
|
|
53172
53694
|
return Promise.resolve(Digit.WSService.search({
|
|
53173
53695
|
tenantId,
|
|
@@ -53180,8 +53702,8 @@ const GetConnectionDetails = () => {
|
|
|
53180
53702
|
bussinessService: service
|
|
53181
53703
|
};
|
|
53182
53704
|
if ((wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$5 = wsConnectionDetails.WaterConnection) === null || _wsConnectionDetails$5 === void 0 ? void 0 : _wsConnectionDetails$5.length) > 0 || (wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$6 = wsConnectionDetails.SewerageConnections) === null || _wsConnectionDetails$6 === void 0 ? void 0 : _wsConnectionDetails$6.length) > 0) {
|
|
53183
|
-
var _applicationDetails$
|
|
53184
|
-
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53705
|
+
var _applicationDetails$a26;
|
|
53706
|
+
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a26 = applicationDetails.applicationData) === null || _applicationDetails$a26 === void 0 ? void 0 : _applicationDetails$a26.connectionNo, filters);
|
|
53185
53707
|
}
|
|
53186
53708
|
});
|
|
53187
53709
|
}
|
|
@@ -53205,7 +53727,7 @@ const GetConnectionDetails = () => {
|
|
|
53205
53727
|
const getTenantId = filters === null || filters === void 0 ? void 0 : filters.tenantId;
|
|
53206
53728
|
const [showOptions, setShowOptions] = useState(false);
|
|
53207
53729
|
const stateCode = Digit.ULBService.getStateId();
|
|
53208
|
-
const actionConfig = ["DISCONNECTION_BUTTON"];
|
|
53730
|
+
const actionConfig = ["BILL_AMENDMENT_BUTTON", "DISCONNECTION_BUTTON"];
|
|
53209
53731
|
const {
|
|
53210
53732
|
isLoading,
|
|
53211
53733
|
isError,
|
|
@@ -53222,11 +53744,11 @@ const GetConnectionDetails = () => {
|
|
|
53222
53744
|
isLoading: isLoadingDemand,
|
|
53223
53745
|
data: demandData
|
|
53224
53746
|
} = Digit.Hooks.useDemandSearch({
|
|
53225
|
-
consumerCode: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.connectionNo,
|
|
53747
|
+
consumerCode: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.connectionNo) || applicationNumber,
|
|
53226
53748
|
businessService: serviceType === "WATER" ? "WS" : "SW",
|
|
53227
53749
|
tenantId
|
|
53228
53750
|
}, {
|
|
53229
|
-
enabled: !!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a2 = applicationDetails.applicationData) !== null && _applicationDetails$a2 !== void 0 && _applicationDetails$a2.
|
|
53751
|
+
enabled: !!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a2 = applicationDetails.applicationData) !== null && _applicationDetails$a2 !== void 0 && _applicationDetails$a2.connectionNo || applicationNumber)
|
|
53230
53752
|
});
|
|
53231
53753
|
const [showModal, setshowModal] = useState(false);
|
|
53232
53754
|
const [billData, setBilldata] = useState([]);
|
|
@@ -53292,6 +53814,35 @@ const GetConnectionDetails = () => {
|
|
|
53292
53814
|
}, 10000);
|
|
53293
53815
|
const checkApplicationStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a14 = applicationDetails.applicationData) === null || _applicationDetails$a14 === void 0 ? void 0 : _applicationDetails$a14.status) === "Active" ? true : false;
|
|
53294
53816
|
const checkWorkflow = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.isApplicationApproved;
|
|
53817
|
+
const getBillAmendmentButton = () => {
|
|
53818
|
+
var _demandData$Demands, _applicationDetails$a16, _applicationDetails$a17;
|
|
53819
|
+
let isBillAmendNotApplicable = false;
|
|
53820
|
+
billData === null || billData === void 0 ? void 0 : billData.map(bill => {
|
|
53821
|
+
if ((bill === null || bill === void 0 ? void 0 : bill.status) === "INWORKFLOW") {
|
|
53822
|
+
isBillAmendNotApplicable = true;
|
|
53823
|
+
return;
|
|
53824
|
+
}
|
|
53825
|
+
});
|
|
53826
|
+
if ((demandData === null || demandData === void 0 ? void 0 : (_demandData$Demands = demandData.Demands) === null || _demandData$Demands === void 0 ? void 0 : _demandData$Demands.length) === 0) {
|
|
53827
|
+
setshowActionToast({
|
|
53828
|
+
key: "error",
|
|
53829
|
+
label: "No_Bills_Found"
|
|
53830
|
+
});
|
|
53831
|
+
return;
|
|
53832
|
+
} else if (isBillAmendNotApplicable) {
|
|
53833
|
+
setshowActionToast({
|
|
53834
|
+
key: "error",
|
|
53835
|
+
label: "WORKFLOW_IN_PROGRESS"
|
|
53836
|
+
});
|
|
53837
|
+
return;
|
|
53838
|
+
}
|
|
53839
|
+
const finalTenantId = getTenantId || tenantId || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a16 = applicationDetails.applicationData) === null || _applicationDetails$a16 === void 0 ? void 0 : _applicationDetails$a16.tenantId);
|
|
53840
|
+
const connNo = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.connectionNo) || applicationNumber;
|
|
53841
|
+
const finalServiceType = serviceType || (connNo !== null && connNo !== void 0 && connNo.includes("SW") ? "SEWERAGE" : "WATER");
|
|
53842
|
+
history.push(`/digit-ui/employee/ws/required-documents?connectionNumber=${connNo}&tenantId=${finalTenantId}&service=${finalServiceType}`, JSON.stringify({
|
|
53843
|
+
data: applicationDetails
|
|
53844
|
+
}));
|
|
53845
|
+
};
|
|
53295
53846
|
const closeMenu = () => {
|
|
53296
53847
|
setShowOptions(false);
|
|
53297
53848
|
};
|
|
@@ -53309,11 +53860,10 @@ const GetConnectionDetails = () => {
|
|
|
53309
53860
|
});
|
|
53310
53861
|
} else {
|
|
53311
53862
|
var _billData$, _applicationDetails$f3;
|
|
53312
|
-
console.log("due", due, applicationDetails);
|
|
53313
53863
|
if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : _applicationDetails$f3.length) <= 0 || due == "0" || due < 0) {
|
|
53314
|
-
var _applicationDetails$
|
|
53864
|
+
var _applicationDetails$a18;
|
|
53315
53865
|
Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
|
|
53316
|
-
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53866
|
+
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.connectionNo) || applicationNumber;
|
|
53317
53867
|
history.push(`${pathname}?from=connection-details&connectionNumber=${encodeURIComponent(connectionNumber)}`);
|
|
53318
53868
|
} else {
|
|
53319
53869
|
setshowModal(true);
|
|
@@ -53330,12 +53880,12 @@ const GetConnectionDetails = () => {
|
|
|
53330
53880
|
} else {
|
|
53331
53881
|
var _billData$2, _applicationDetails$f4;
|
|
53332
53882
|
if (((_billData$2 = billData[0]) === null || _billData$2 === void 0 ? void 0 : _billData$2.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f4 = applicationDetails.fetchBillsData) === null || _applicationDetails$f4 === void 0 ? void 0 : _applicationDetails$f4.length) <= 0 || due === "0" || due == "0" || due < 0) {
|
|
53333
|
-
var _applicationDetails$
|
|
53883
|
+
var _applicationDetails$a19;
|
|
53334
53884
|
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
53335
53885
|
...applicationDetails,
|
|
53336
53886
|
serviceType
|
|
53337
53887
|
});
|
|
53338
|
-
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53888
|
+
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a19 = applicationDetails.applicationData) === null || _applicationDetails$a19 === void 0 ? void 0 : _applicationDetails$a19.connectionNo) || applicationNumber;
|
|
53339
53889
|
history.push(`${pathname}?from=connection-details&connectionNumber=${encodeURIComponent(connectionNumber)}`);
|
|
53340
53890
|
} else {
|
|
53341
53891
|
setshowModal(true);
|
|
@@ -53343,14 +53893,16 @@ const GetConnectionDetails = () => {
|
|
|
53343
53893
|
}
|
|
53344
53894
|
};
|
|
53345
53895
|
function onActionSelect(action) {
|
|
53346
|
-
if (action === "
|
|
53896
|
+
if (action === "BILL_AMENDMENT_BUTTON") {
|
|
53897
|
+
getBillAmendmentButton();
|
|
53898
|
+
} else if (action === "DISCONNECTION_BUTTON") {
|
|
53347
53899
|
getDisconnectionButton();
|
|
53348
53900
|
} else if (action === "RESTORATION_BUTTON" || action === "RECONNECTION_BUTTON") {
|
|
53349
53901
|
getRestorationButton();
|
|
53350
53902
|
}
|
|
53351
53903
|
}
|
|
53352
|
-
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53353
|
-
const isDisconnectedOrInactive = !checkApplicationStatus || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
53904
|
+
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.status) === "Active" ? true : false;
|
|
53905
|
+
const isDisconnectedOrInactive = !checkApplicationStatus || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : (_applicationDetails$a22 = _applicationDetails$a21.status) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.toLowerCase()) === "inactive" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a23 = applicationDetails.applicationData) === null || _applicationDetails$a23 === void 0 ? void 0 : _applicationDetails$a23.applicationStatus) === "DISCONNECTION_EXECUTED" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.isDisconnectionDone) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a24 = applicationDetails.applicationData) === null || _applicationDetails$a24 === void 0 ? void 0 : _applicationDetails$a24.isDisconnectionTemporary);
|
|
53354
53906
|
const showAction = checkApplicationStatusForDisconnection ? actionConfig : actionConfig.filter(item => item !== "DISCONNECTION_BUTTON");
|
|
53355
53907
|
const showActionRestoration = ["RESTORATION_BUTTON"];
|
|
53356
53908
|
let dowloadOptions = [];
|
|
@@ -53532,7 +54084,11 @@ const newConfig$2 = [{
|
|
|
53532
54084
|
type: "component",
|
|
53533
54085
|
key: "supportingDocuments",
|
|
53534
54086
|
component: "WSActivationSupportingDocuments",
|
|
53535
|
-
withoutLabel: true
|
|
54087
|
+
withoutLabel: true,
|
|
54088
|
+
isMandatory: true,
|
|
54089
|
+
validation: {
|
|
54090
|
+
required: true
|
|
54091
|
+
}
|
|
53536
54092
|
}]
|
|
53537
54093
|
}]
|
|
53538
54094
|
}];
|
|
@@ -53663,6 +54219,15 @@ const ActivateConnection = () => {
|
|
|
53663
54219
|
component: "WSActivationDetails"
|
|
53664
54220
|
};
|
|
53665
54221
|
}
|
|
54222
|
+
if (item.key === "supportingDocuments") {
|
|
54223
|
+
return {
|
|
54224
|
+
...item,
|
|
54225
|
+
isMandatory: true,
|
|
54226
|
+
validation: {
|
|
54227
|
+
required: true
|
|
54228
|
+
}
|
|
54229
|
+
};
|
|
54230
|
+
}
|
|
53666
54231
|
return item;
|
|
53667
54232
|
});
|
|
53668
54233
|
flattenedBody = [...flattenedBody, ...mappedSectionBody];
|
|
@@ -53690,7 +54255,9 @@ const ActivateConnection = () => {
|
|
|
53690
54255
|
return () => clearTimeout(timer);
|
|
53691
54256
|
}, [isAppDetailsPage]);
|
|
53692
54257
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
53693
|
-
|
|
54258
|
+
var _formData$supportingD, _formData$supportingD2, _formData$supportingD3, _formData$supportingD4, _formData$supportingD5;
|
|
54259
|
+
const hasDoc = !!(formData !== null && formData !== void 0 && (_formData$supportingD = formData.supportingDocuments) !== null && _formData$supportingD !== void 0 && (_formData$supportingD2 = _formData$supportingD[0]) !== null && _formData$supportingD2 !== void 0 && _formData$supportingD2.fileStoreId || formData !== null && formData !== void 0 && (_formData$supportingD3 = formData.supportingDocuments) !== null && _formData$supportingD3 !== void 0 && _formData$supportingD3.fileStoreId || Array.isArray(formData === null || formData === void 0 ? void 0 : formData.supportingDocuments) && formData !== null && formData !== void 0 && (_formData$supportingD4 = formData.supportingDocuments) !== null && _formData$supportingD4 !== void 0 && (_formData$supportingD5 = _formData$supportingD4[0]) !== null && _formData$supportingD5 !== void 0 && _formData$supportingD5.fileStoreId);
|
|
54260
|
+
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length == 0 && Object.getPrototypeOf(formState.errors) === Object.prototype) setSubmitValve(hasDoc);else setSubmitValve(!Object.keys(formState.errors).length && hasDoc);
|
|
53694
54261
|
};
|
|
53695
54262
|
const getConvertedDate = function (dateOfTime) {
|
|
53696
54263
|
try {
|
|
@@ -53714,8 +54281,10 @@ const ActivateConnection = () => {
|
|
|
53714
54281
|
};
|
|
53715
54282
|
const onSubmit = function (data) {
|
|
53716
54283
|
try {
|
|
53717
|
-
|
|
53718
|
-
|
|
54284
|
+
var _data$supportingDocum, _data$supportingDocum2, _data$supportingDocum3, _data$supportingDocum4, _data$supportingDocum5;
|
|
54285
|
+
const docFileStoreId = (data === null || data === void 0 ? void 0 : (_data$supportingDocum = data.supportingDocuments) === null || _data$supportingDocum === void 0 ? void 0 : (_data$supportingDocum2 = _data$supportingDocum[0]) === null || _data$supportingDocum2 === void 0 ? void 0 : _data$supportingDocum2.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$supportingDocum3 = data.supportingDocuments) === null || _data$supportingDocum3 === void 0 ? void 0 : _data$supportingDocum3.fileStoreId) || Array.isArray(data === null || data === void 0 ? void 0 : data.supportingDocuments) && (data === null || data === void 0 ? void 0 : (_data$supportingDocum4 = data.supportingDocuments) === null || _data$supportingDocum4 === void 0 ? void 0 : (_data$supportingDocum5 = _data$supportingDocum4[0]) === null || _data$supportingDocum5 === void 0 ? void 0 : _data$supportingDocum5.fileStoreId);
|
|
54286
|
+
return Promise.resolve(function () {
|
|
54287
|
+
if (!canSubmit || !docFileStoreId) {
|
|
53719
54288
|
setShowToast({
|
|
53720
54289
|
warning: true,
|
|
53721
54290
|
message: "PLEASE_FILL_MANDATORY_DETAILS"
|
|
@@ -53727,19 +54296,19 @@ const ActivateConnection = () => {
|
|
|
53727
54296
|
var _details4, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$activati;
|
|
53728
54297
|
function _temp4() {
|
|
53729
54298
|
function _temp2() {
|
|
53730
|
-
var _formDetails$comments,
|
|
54299
|
+
var _formDetails$comments, _formDetails$comments2, _formData$application, _formData$application2;
|
|
53731
54300
|
formData.comment = (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$comments = formDetails.comments) === null || _formDetails$comments === void 0 ? void 0 : _formDetails$comments.comments) || "";
|
|
53732
54301
|
formData.action = filters === null || filters === void 0 ? void 0 : filters.action;
|
|
53733
|
-
formData.wfDocuments =
|
|
54302
|
+
formData.wfDocuments = docFileStoreId ? [{
|
|
53734
54303
|
documentType: "Document - 1",
|
|
53735
|
-
fileStoreId:
|
|
54304
|
+
fileStoreId: docFileStoreId
|
|
53736
54305
|
}] : [];
|
|
53737
54306
|
formData.processInstance = {
|
|
53738
54307
|
action: filters === null || filters === void 0 ? void 0 : filters.action,
|
|
53739
54308
|
comment: (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$comments2 = formDetails.comments) === null || _formDetails$comments2 === void 0 ? void 0 : _formDetails$comments2.comments) || "",
|
|
53740
|
-
documents:
|
|
54309
|
+
documents: docFileStoreId ? [{
|
|
53741
54310
|
documentType: "Document - 1",
|
|
53742
|
-
fileStoreId:
|
|
54311
|
+
fileStoreId: docFileStoreId
|
|
53743
54312
|
}] : []
|
|
53744
54313
|
};
|
|
53745
54314
|
const isWater = filters !== null && filters !== void 0 && filters.service ? filters.service.toUpperCase() === "WATER" : (formData === null || formData === void 0 ? void 0 : formData.serviceType) === "WATER" || !(formData !== null && formData !== void 0 && formData.serviceType);
|
|
@@ -53840,8 +54409,7 @@ const ActivateConnection = () => {
|
|
|
53840
54409
|
}();
|
|
53841
54410
|
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
53842
54411
|
}
|
|
53843
|
-
}();
|
|
53844
|
-
return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
|
|
54412
|
+
}());
|
|
53845
54413
|
} catch (e) {
|
|
53846
54414
|
return Promise.reject(e);
|
|
53847
54415
|
}
|
|
@@ -56519,8 +57087,6 @@ const Step2_NewConsumerDetails = _ref => {
|
|
|
56519
57087
|
name: "reasonForNameChange"
|
|
56520
57088
|
});
|
|
56521
57089
|
const isDevolutionOrInheritance = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "DEVOLUTION_INHERITANCE" || selectedReason === "DEVOLUTION_INHERITANCE" || String((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) || "").toUpperCase().includes("DEVOLUTION") || String(selectedReason || "").toUpperCase().includes("DEVOLUTION");
|
|
56522
|
-
console.log("selectedReason in Step2:", selectedReason);
|
|
56523
|
-
console.log("isDevolutionOrInheritance:", isDevolutionOrInheritance);
|
|
56524
57090
|
const genderOptions = [{
|
|
56525
57091
|
code: "MALE",
|
|
56526
57092
|
i18nKey: "Male"
|
|
@@ -58237,7 +58803,6 @@ const MutationApplication = () => {
|
|
|
58237
58803
|
}
|
|
58238
58804
|
}, [location.pathname, path]);
|
|
58239
58805
|
const editApplicationNumber = (details === null || details === void 0 ? void 0 : details.applicationNo) || applicationNumber;
|
|
58240
|
-
console.log(editApplicationNumber, "editApplicationNumber");
|
|
58241
58806
|
const {
|
|
58242
58807
|
isLoading: isWorkflowLoading,
|
|
58243
58808
|
data: workflowData
|
|
@@ -58253,7 +58818,6 @@ const MutationApplication = () => {
|
|
|
58253
58818
|
}, {
|
|
58254
58819
|
enabled: !!editApplicationNumber
|
|
58255
58820
|
});
|
|
58256
|
-
console.log(workflowData, "workflowData");
|
|
58257
58821
|
const isEmployee = window.location.href.includes("/employee/");
|
|
58258
58822
|
const isEditFlow = !!editApplicationNumber && (!!urlAppNo || (workflowData === null || workflowData === void 0 ? void 0 : workflowData.businessService) === "mutationWSConnection" || (workflowData === null || workflowData === void 0 ? void 0 : workflowData.action) === "SEND_BACK_TO_CITIZEN");
|
|
58259
58823
|
const querySearchParam = isEditFlow ? editApplicationNumber : authKNumber;
|
|
@@ -60351,7 +60915,6 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
60351
60915
|
businessService,
|
|
60352
60916
|
isLoading
|
|
60353
60917
|
} = _ref;
|
|
60354
|
-
console.log("dafff", data);
|
|
60355
60918
|
const convertEpochToDate = dateEpoch => {
|
|
60356
60919
|
if (dateEpoch == null || dateEpoch == undefined || dateEpoch == "") {
|
|
60357
60920
|
return "NA";
|
|
@@ -60410,7 +60973,6 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
60410
60973
|
}
|
|
60411
60974
|
const downloadIntegratedBill = function () {
|
|
60412
60975
|
try {
|
|
60413
|
-
console.log("integrated", data);
|
|
60414
60976
|
const _temp2 = function () {
|
|
60415
60977
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
60416
60978
|
const _temp = _catch(function () {
|
|
@@ -60423,9 +60985,7 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
60423
60985
|
type: "application/pdf"
|
|
60424
60986
|
}), `IntegratedBill.pdf`);
|
|
60425
60987
|
});
|
|
60426
|
-
}, function (
|
|
60427
|
-
console.log("errorrrrrr", e);
|
|
60428
|
-
});
|
|
60988
|
+
}, function () {});
|
|
60429
60989
|
if (_temp && _temp.then) return _temp.then(function () {});
|
|
60430
60990
|
} else {
|
|
60431
60991
|
alert("NO Pdf");
|
|
@@ -60813,7 +61373,7 @@ const openFilePDF = fileId => {
|
|
|
60813
61373
|
}).catch(error => console.error("Error fetching file:", error));
|
|
60814
61374
|
};
|
|
60815
61375
|
const CheckPage$4 = _ref2 => {
|
|
60816
|
-
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$
|
|
61376
|
+
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _connectionDetails7, _connectionDetails7$a, _connectionDetails8, _connectionDetails8$a, _connectionDetails9, _connectionDetails9$a, _connectionDetails0, _data$additionalDetai, _connectionDetails1, _data$additionalDetai2, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _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;
|
|
60817
61377
|
let {
|
|
60818
61378
|
data,
|
|
60819
61379
|
onSubmit,
|
|
@@ -60855,7 +61415,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
60855
61415
|
}
|
|
60856
61416
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
60857
61417
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
60858
|
-
text: `${t(checkForNA(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId))}`,
|
|
61418
|
+
text: `${t(checkForNA$1(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId))}`,
|
|
60859
61419
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
60860
61420
|
onClick: onEdit
|
|
60861
61421
|
})
|
|
@@ -60866,13 +61426,19 @@ const CheckPage$4 = _ref2 => {
|
|
|
60866
61426
|
}
|
|
60867
61427
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
60868
61428
|
label: t("WS_SERVICE_TYPE"),
|
|
60869
|
-
text: `${t(checkForNA(((_connectionDetails = connectionDetails) === null || _connectionDetails === void 0 ? void 0 : (_connectionDetails$se = _connectionDetails.serviceType) === null || _connectionDetails$se === void 0 ? void 0 : _connectionDetails$se.i18nKey) || ((_connectionDetails2 = connectionDetails) === null || _connectionDetails2 === void 0 ? void 0 : (_connectionDetails2$s = _connectionDetails2.serviceType) === null || _connectionDetails2$s === void 0 ? void 0 : _connectionDetails2$s.code) || ((_connectionDetails3 = connectionDetails) === null || _connectionDetails3 === void 0 ? void 0 : _connectionDetails3.serviceType)))}`,
|
|
61429
|
+
text: `${t(checkForNA$1(((_connectionDetails = connectionDetails) === null || _connectionDetails === void 0 ? void 0 : (_connectionDetails$se = _connectionDetails.serviceType) === null || _connectionDetails$se === void 0 ? void 0 : _connectionDetails$se.i18nKey) || ((_connectionDetails2 = connectionDetails) === null || _connectionDetails2 === void 0 ? void 0 : (_connectionDetails2$s = _connectionDetails2.serviceType) === null || _connectionDetails2$s === void 0 ? void 0 : _connectionDetails2$s.code) || ((_connectionDetails3 = connectionDetails) === null || _connectionDetails3 === void 0 ? void 0 : _connectionDetails3.serviceType)))}`,
|
|
60870
61430
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
60871
61431
|
onClick: onEdit
|
|
60872
61432
|
})
|
|
60873
61433
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60874
61434
|
label: t("WS_APPLICANT_TYPE"),
|
|
60875
|
-
text: `${t(checkForNA(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$a = _connectionDetails4.applicantType) === null || _connectionDetails4$a === void 0 ? void 0 : _connectionDetails4$a.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$a = _connectionDetails5.applicantType) === null || _connectionDetails5$a === void 0 ? void 0 : _connectionDetails5$a.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.applicantType)))}`
|
|
61435
|
+
text: `${t(checkForNA$1(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$a = _connectionDetails4.applicantType) === null || _connectionDetails4$a === void 0 ? void 0 : _connectionDetails4$a.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$a = _connectionDetails5.applicantType) === null || _connectionDetails5$a === void 0 ? void 0 : _connectionDetails5$a.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.applicantType)))}`
|
|
61436
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
61437
|
+
label: t("WS_Billing_Address_Type"),
|
|
61438
|
+
text: `${t(checkForNA$1(((_connectionDetails7 = connectionDetails) === null || _connectionDetails7 === void 0 ? void 0 : (_connectionDetails7$a = _connectionDetails7.addressType) === null || _connectionDetails7$a === void 0 ? void 0 : _connectionDetails7$a.i18nKey) || ((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : (_connectionDetails8$a = _connectionDetails8.addressType) === null || _connectionDetails8$a === void 0 ? void 0 : _connectionDetails8$a.name) || (typeof ((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : (_connectionDetails9$a = _connectionDetails9.addressType) === null || _connectionDetails9$a === void 0 ? void 0 : _connectionDetails9$a.code) === "string" ? connectionDetails.addressType.code === "PERMANENT" ? "Permanent" : connectionDetails.addressType.code === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType.code : null) || (typeof ((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : _connectionDetails0.addressType) === "string" ? connectionDetails.addressType === "PERMANENT" ? "Permanent" : connectionDetails.addressType === "CORRESPONDENCE" ? "Correspondence" : connectionDetails.addressType : null) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.addressType)))}`
|
|
61439
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
61440
|
+
label: t("Complete Address"),
|
|
61441
|
+
text: `${checkForNA$1(((_connectionDetails1 = connectionDetails) === null || _connectionDetails1 === void 0 ? void 0 : _connectionDetails1.completeAddress) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.completeAddress))}`
|
|
60876
61442
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
60877
61443
|
style: {
|
|
60878
61444
|
marginTop: "10px",
|
|
@@ -60880,28 +61446,28 @@ const CheckPage$4 = _ref2 => {
|
|
|
60880
61446
|
}
|
|
60881
61447
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
60882
61448
|
label: t("WS_OWN_DETAIL_NAME"),
|
|
60883
|
-
text: `${t(checkForNA((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name))}`,
|
|
61449
|
+
text: `${t(checkForNA$1((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name))}`,
|
|
60884
61450
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
60885
61451
|
onClick: onEdit
|
|
60886
61452
|
})
|
|
60887
61453
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60888
61454
|
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
60889
|
-
text: `${t(checkForNA((_holderDetails2 = holderDetails) === null || _holderDetails2 === void 0 ? void 0 : _holderDetails2.middleName))}`
|
|
61455
|
+
text: `${t(checkForNA$1((_holderDetails2 = holderDetails) === null || _holderDetails2 === void 0 ? void 0 : _holderDetails2.middleName))}`
|
|
60890
61456
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60891
61457
|
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
60892
|
-
text: `${t(checkForNA((_holderDetails3 = holderDetails) === null || _holderDetails3 === void 0 ? void 0 : _holderDetails3.lastName))}`
|
|
61458
|
+
text: `${t(checkForNA$1((_holderDetails3 = holderDetails) === null || _holderDetails3 === void 0 ? void 0 : _holderDetails3.lastName))}`
|
|
60893
61459
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60894
61460
|
label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
|
|
60895
|
-
text: `${t(checkForNA(((_holderDetails4 = holderDetails) === null || _holderDetails4 === void 0 ? void 0 : (_holderDetails4$gende = _holderDetails4.gender) === null || _holderDetails4$gende === void 0 ? void 0 : _holderDetails4$gende.i18nKey) || ((_holderDetails5 = holderDetails) === null || _holderDetails5 === void 0 ? void 0 : (_holderDetails5$gende = _holderDetails5.gender) === null || _holderDetails5$gende === void 0 ? void 0 : _holderDetails5$gende.code) || ((_holderDetails6 = holderDetails) === null || _holderDetails6 === void 0 ? void 0 : _holderDetails6.gender)))}`
|
|
61461
|
+
text: `${t(checkForNA$1(((_holderDetails4 = holderDetails) === null || _holderDetails4 === void 0 ? void 0 : (_holderDetails4$gende = _holderDetails4.gender) === null || _holderDetails4$gende === void 0 ? void 0 : _holderDetails4$gende.i18nKey) || ((_holderDetails5 = holderDetails) === null || _holderDetails5 === void 0 ? void 0 : (_holderDetails5$gende = _holderDetails5.gender) === null || _holderDetails5$gende === void 0 ? void 0 : _holderDetails5$gende.code) || ((_holderDetails6 = holderDetails) === null || _holderDetails6 === void 0 ? void 0 : _holderDetails6.gender)))}`
|
|
60896
61462
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60897
61463
|
label: t("CORE_COMMON_MOBILE_NUMBER"),
|
|
60898
|
-
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.mobileNumber))}`
|
|
61464
|
+
text: `${t(checkForNA$1((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.mobileNumber))}`
|
|
60899
61465
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60900
61466
|
label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
60901
|
-
text: `${t(checkForNA((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : _holderDetails8.watsAppMobileNumber))}`
|
|
61467
|
+
text: `${t(checkForNA$1((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : _holderDetails8.watsAppMobileNumber))}`
|
|
60902
61468
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60903
61469
|
label: t("WS_EMAIL_ID"),
|
|
60904
|
-
text: `${t(checkForNA((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
|
|
61470
|
+
text: `${t(checkForNA$1((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
|
|
60905
61471
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
60906
61472
|
style: {
|
|
60907
61473
|
marginTop: "10px",
|
|
@@ -60909,64 +61475,64 @@ const CheckPage$4 = _ref2 => {
|
|
|
60909
61475
|
}
|
|
60910
61476
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
60911
61477
|
label: t("WS_ZRO_LOCATION"),
|
|
60912
|
-
text: `${t(checkForNA(((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = _propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.zro) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$add = _propertyAddress4.additionalDetails) === null || _propertyAddress4$add === void 0 ? void 0 : _propertyAddress4$add.zroLocation)))}`,
|
|
61478
|
+
text: `${t(checkForNA$1(((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = _propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.zro) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$add = _propertyAddress4.additionalDetails) === null || _propertyAddress4$add === void 0 ? void 0 : _propertyAddress4$add.zroLocation)))}`,
|
|
60913
61479
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
60914
61480
|
onClick: onEdit
|
|
60915
61481
|
})
|
|
60916
61482
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60917
61483
|
label: t("COMMON_ADDRESS_TYPE"),
|
|
60918
|
-
text: `${t(checkForNA(((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$add = _propertyAddress5.addressType) === null || _propertyAddress5$add === void 0 ? void 0 : _propertyAddress5$add.i18nKey) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : (_propertyAddress6$add = _propertyAddress6.addressType) === null || _propertyAddress6$add === void 0 ? void 0 : _propertyAddress6$add.code) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : _propertyAddress7.addressType)))}`
|
|
61484
|
+
text: `${t(checkForNA$1(((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$add = _propertyAddress5.addressType) === null || _propertyAddress5$add === void 0 ? void 0 : _propertyAddress5$add.i18nKey) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : (_propertyAddress6$add = _propertyAddress6.addressType) === null || _propertyAddress6$add === void 0 ? void 0 : _propertyAddress6$add.code) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : _propertyAddress7.addressType)))}`
|
|
60919
61485
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60920
61486
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
60921
|
-
text: `${t(checkForNA(((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$cit = _propertyAddress8.city) === null || _propertyAddress8$cit === void 0 ? void 0 : _propertyAddress8$cit.name) || ((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : (_propertyAddress9$cit = _propertyAddress9.city) === null || _propertyAddress9$cit === void 0 ? void 0 : _propertyAddress9$cit.code) || ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : _propertyAddress0.city)))}`
|
|
61487
|
+
text: `${t(checkForNA$1(((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$cit = _propertyAddress8.city) === null || _propertyAddress8$cit === void 0 ? void 0 : _propertyAddress8$cit.name) || ((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : (_propertyAddress9$cit = _propertyAddress9.city) === null || _propertyAddress9$cit === void 0 ? void 0 : _propertyAddress9$cit.code) || ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : _propertyAddress0.city)))}`
|
|
60922
61488
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60923
61489
|
label: t("PINCODE"),
|
|
60924
|
-
text: `${t(checkForNA(((_propertyAddress1 = propertyAddress) === null || _propertyAddress1 === void 0 ? void 0 : _propertyAddress1.pincode) || ((_propertyAddress10 = propertyAddress) === null || _propertyAddress10 === void 0 ? void 0 : _propertyAddress10.pinCode)))}`
|
|
61490
|
+
text: `${t(checkForNA$1(((_propertyAddress1 = propertyAddress) === null || _propertyAddress1 === void 0 ? void 0 : _propertyAddress1.pincode) || ((_propertyAddress10 = propertyAddress) === null || _propertyAddress10 === void 0 ? void 0 : _propertyAddress10.pinCode)))}`
|
|
60925
61491
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60926
61492
|
label: t("LOCALITY"),
|
|
60927
|
-
text: `${t(checkForNA(((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : (_propertyAddress11$lo = _propertyAddress11.locality) === null || _propertyAddress11$lo === void 0 ? void 0 : _propertyAddress11$lo.name) || ((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : (_propertyAddress12$lo = _propertyAddress12.locality) === null || _propertyAddress12$lo === void 0 ? void 0 : _propertyAddress12$lo.code) || ((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.locality)))}`
|
|
61493
|
+
text: `${t(checkForNA$1(((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : (_propertyAddress11$lo = _propertyAddress11.locality) === null || _propertyAddress11$lo === void 0 ? void 0 : _propertyAddress11$lo.name) || ((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : (_propertyAddress12$lo = _propertyAddress12.locality) === null || _propertyAddress12$lo === void 0 ? void 0 : _propertyAddress12$lo.code) || ((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.locality)))}`
|
|
60928
61494
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60929
61495
|
label: t("SubLocality"),
|
|
60930
|
-
text: `${t(checkForNA(((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : (_propertyAddress14$su = _propertyAddress14.subLocality) === null || _propertyAddress14$su === void 0 ? void 0 : _propertyAddress14$su.name) || ((_propertyAddress15 = propertyAddress) === null || _propertyAddress15 === void 0 ? void 0 : (_propertyAddress15$su = _propertyAddress15.subLocality) === null || _propertyAddress15$su === void 0 ? void 0 : _propertyAddress15$su.code) || ((_propertyAddress16 = propertyAddress) === null || _propertyAddress16 === void 0 ? void 0 : _propertyAddress16.subLocality)))}`
|
|
61496
|
+
text: `${t(checkForNA$1(((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : (_propertyAddress14$su = _propertyAddress14.subLocality) === null || _propertyAddress14$su === void 0 ? void 0 : _propertyAddress14$su.name) || ((_propertyAddress15 = propertyAddress) === null || _propertyAddress15 === void 0 ? void 0 : (_propertyAddress15$su = _propertyAddress15.subLocality) === null || _propertyAddress15$su === void 0 ? void 0 : _propertyAddress15$su.code) || ((_propertyAddress16 = propertyAddress) === null || _propertyAddress16 === void 0 ? void 0 : _propertyAddress16.subLocality)))}`
|
|
60931
61497
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60932
61498
|
label: t("STREET_NAME"),
|
|
60933
|
-
text: `${t(checkForNA(((_propertyAddress17 = propertyAddress) === null || _propertyAddress17 === void 0 ? void 0 : _propertyAddress17.streetName) || ((_propertyAddress18 = propertyAddress) === null || _propertyAddress18 === void 0 ? void 0 : _propertyAddress18.street)))}`
|
|
61499
|
+
text: `${t(checkForNA$1(((_propertyAddress17 = propertyAddress) === null || _propertyAddress17 === void 0 ? void 0 : _propertyAddress17.streetName) || ((_propertyAddress18 = propertyAddress) === null || _propertyAddress18 === void 0 ? void 0 : _propertyAddress18.street)))}`
|
|
60934
61500
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60935
61501
|
label: t("ADDRESS_LINE1"),
|
|
60936
|
-
text: `${t(checkForNA(((_propertyAddress19 = propertyAddress) === null || _propertyAddress19 === void 0 ? void 0 : _propertyAddress19.addressLine1) || ((_propertyAddress20 = propertyAddress) === null || _propertyAddress20 === void 0 ? void 0 : _propertyAddress20.street)))}`
|
|
61502
|
+
text: `${t(checkForNA$1(((_propertyAddress19 = propertyAddress) === null || _propertyAddress19 === void 0 ? void 0 : _propertyAddress19.addressLine1) || ((_propertyAddress20 = propertyAddress) === null || _propertyAddress20 === void 0 ? void 0 : _propertyAddress20.street)))}`
|
|
60937
61503
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60938
61504
|
label: t("ADDRESS_LINE2"),
|
|
60939
|
-
text: `${t(checkForNA((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : _propertyAddress21.addressLine2))}`
|
|
61505
|
+
text: `${t(checkForNA$1((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : _propertyAddress21.addressLine2))}`
|
|
60940
61506
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60941
61507
|
label: t("HOUSE_NO"),
|
|
60942
|
-
text: `${t(checkForNA(((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.houseNo) || ((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.doorNo)))}`
|
|
61508
|
+
text: `${t(checkForNA$1(((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.houseNo) || ((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.doorNo)))}`
|
|
60943
61509
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60944
61510
|
label: t("LATITUDE_GEOTAG"),
|
|
60945
|
-
text: `${t(checkForNA((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.latitude))}`
|
|
61511
|
+
text: `${t(checkForNA$1((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.latitude))}`
|
|
60946
61512
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60947
61513
|
label: t("LONGITUDE_GEOTAG"),
|
|
60948
|
-
text: `${t(checkForNA((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.longitude))}`
|
|
61514
|
+
text: `${t(checkForNA$1((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.longitude))}`
|
|
60949
61515
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60950
61516
|
label: t("COMMON_ASSEMBLY"),
|
|
60951
|
-
text: `${t(checkForNA(((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : (_propertyAddress26$as = _propertyAddress26.assembly) === null || _propertyAddress26$as === void 0 ? void 0 : _propertyAddress26$as.name) || ((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : (_propertyAddress27$as = _propertyAddress27.assembly) === null || _propertyAddress27$as === void 0 ? void 0 : _propertyAddress27$as.code) || ((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
|
|
61517
|
+
text: `${t(checkForNA$1(((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : (_propertyAddress26$as = _propertyAddress26.assembly) === null || _propertyAddress26$as === void 0 ? void 0 : _propertyAddress26$as.name) || ((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : (_propertyAddress27$as = _propertyAddress27.assembly) === null || _propertyAddress27$as === void 0 ? void 0 : _propertyAddress27$as.code) || ((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
|
|
60952
61518
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60953
61519
|
label: t("COMMON_WARD"),
|
|
60954
|
-
text: `${t(checkForNA(((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : (_propertyAddress29$bl = _propertyAddress29.block) === null || _propertyAddress29$bl === void 0 ? void 0 : _propertyAddress29$bl.name) || ((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : (_propertyAddress30$bl = _propertyAddress30.block) === null || _propertyAddress30$bl === void 0 ? void 0 : _propertyAddress30$bl.code) || ((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : _propertyAddress31.block) || ((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : (_propertyAddress32$wa = _propertyAddress32.ward) === null || _propertyAddress32$wa === void 0 ? void 0 : _propertyAddress32$wa.name) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : (_propertyAddress33$wa = _propertyAddress33.ward) === null || _propertyAddress33$wa === void 0 ? void 0 : _propertyAddress33$wa.code) || ((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
|
|
61520
|
+
text: `${t(checkForNA$1(((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : (_propertyAddress29$bl = _propertyAddress29.block) === null || _propertyAddress29$bl === void 0 ? void 0 : _propertyAddress29$bl.name) || ((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : (_propertyAddress30$bl = _propertyAddress30.block) === null || _propertyAddress30$bl === void 0 ? void 0 : _propertyAddress30$bl.code) || ((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : _propertyAddress31.block) || ((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : (_propertyAddress32$wa = _propertyAddress32.ward) === null || _propertyAddress32$wa === void 0 ? void 0 : _propertyAddress32$wa.name) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : (_propertyAddress33$wa = _propertyAddress33.ward) === null || _propertyAddress33$wa === void 0 ? void 0 : _propertyAddress33$wa.code) || ((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
|
|
60955
61521
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60956
61522
|
label: t("COMMON_ZONE"),
|
|
60957
|
-
text: `${t(checkForNA(((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : (_propertyAddress35$zo = _propertyAddress35.zone) === null || _propertyAddress35$zo === void 0 ? void 0 : _propertyAddress35$zo.name) || ((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : (_propertyAddress36$zo = _propertyAddress36.zone) === null || _propertyAddress36$zo === void 0 ? void 0 : _propertyAddress36$zo.code) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
|
|
61523
|
+
text: `${t(checkForNA$1(((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : (_propertyAddress35$zo = _propertyAddress35.zone) === null || _propertyAddress35$zo === void 0 ? void 0 : _propertyAddress35$zo.name) || ((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : (_propertyAddress36$zo = _propertyAddress36.zone) === null || _propertyAddress36$zo === void 0 ? void 0 : _propertyAddress36$zo.code) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
|
|
60958
61524
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60959
61525
|
label: t("COMMON_CURRENT_ASSEMBLY"),
|
|
60960
|
-
text: `${t(checkForNA(((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
|
|
61526
|
+
text: `${t(checkForNA$1(((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
|
|
60961
61527
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60962
61528
|
label: t("COMMON_CURRENT_WARD"),
|
|
60963
|
-
text: `${t(checkForNA(((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
|
|
61529
|
+
text: `${t(checkForNA$1(((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
|
|
60964
61530
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60965
61531
|
label: t("COMMON_CURRENT_ZONE"),
|
|
60966
|
-
text: `${t(checkForNA(((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
|
|
61532
|
+
text: `${t(checkForNA$1(((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
|
|
60967
61533
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60968
61534
|
label: t("LANDMARK"),
|
|
60969
|
-
text: `${t(checkForNA((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.landmark))}`
|
|
61535
|
+
text: `${t(checkForNA$1((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.landmark))}`
|
|
60970
61536
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
60971
61537
|
style: {
|
|
60972
61538
|
marginTop: "10px",
|
|
@@ -60974,38 +61540,49 @@ const CheckPage$4 = _ref2 => {
|
|
|
60974
61540
|
}
|
|
60975
61541
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
60976
61542
|
label: t("WS_CATEGORY_TYPE"),
|
|
60977
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`,
|
|
61543
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`,
|
|
60978
61544
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
60979
61545
|
onClick: onEdit
|
|
60980
61546
|
})
|
|
60981
61547
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60982
61548
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
60983
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory)))}`
|
|
61549
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory)))}`
|
|
60984
61550
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60985
61551
|
label: t("WS_PROPERTY_TYPE"),
|
|
60986
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))}`
|
|
61552
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))}`
|
|
60987
61553
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60988
61554
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
60989
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType)))}`
|
|
61555
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType)))}`
|
|
60990
61556
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60991
61557
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
60992
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors)))}`
|
|
61558
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors)))}`
|
|
60993
61559
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60994
61560
|
label: t("WS_PLOT_AREA"),
|
|
60995
|
-
text: `${t(checkForNA(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
|
|
61561
|
+
text: `${t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
|
|
60996
61562
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60997
61563
|
label: t("WS_BUILT_UP_AREA"),
|
|
60998
|
-
text: `${t(checkForNA(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
|
|
61564
|
+
text: `${t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
|
|
60999
61565
|
}), (useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding) && /*#__PURE__*/React.createElement(Row, {
|
|
61000
61566
|
label: t("WS_HEIGHT_OF_THE_BUILDING(meters)"),
|
|
61001
|
-
text: `${t(checkForNA(useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
|
|
61567
|
+
text: `${t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
|
|
61002
61568
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
61003
61569
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
61004
|
-
text: `${t(checkForNA((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)))}`
|
|
61005
|
-
}),
|
|
61570
|
+
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)))}`
|
|
61571
|
+
}), 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$additionalDetail = cpt.additionalDetails) === null || _cpt$additionalDetail === void 0 ? void 0 : (_cpt$additionalDetail2 = _cpt$additionalDetail.propertyCategory) === null || _cpt$additionalDetail2 === void 0 ? void 0 : _cpt$additionalDetail2.code) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail3 = cpt.additionalDetails) === null || _cpt$additionalDetail3 === void 0 ? void 0 : _cpt$additionalDetail3.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$propertyType = cpt.propertyType) === null || _cpt$propertyType === void 0 ? void 0 : _cpt$propertyType.propertyCategory) || (cpt === null || cpt === void 0 ? void 0 : cpt.usageCategory) || "").toUpperCase().includes("RESIDENTIAL") ? /*#__PURE__*/React.createElement(Row, {
|
|
61006
61572
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
61007
|
-
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
61008
|
-
}) : null
|
|
61573
|
+
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
61574
|
+
}) : null, (Array.isArray((useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail4 = cpt.additionalDetails) === null || _cpt$additionalDetail4 === void 0 ? void 0 : _cpt$additionalDetail4.questions)) ? (useDetails === null || useDetails === void 0 ? void 0 : useDetails.questions) || (cpt === null || cpt === void 0 ? void 0 : (_cpt$additionalDetail5 = cpt.additionalDetails) === null || _cpt$additionalDetail5 === void 0 ? void 0 : _cpt$additionalDetail5.questions) : []).map((q, idx) => {
|
|
61575
|
+
var _q$answer, _q$answer2, _q$answer3;
|
|
61576
|
+
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}`;
|
|
61577
|
+
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;
|
|
61578
|
+
const trimmedQ = String(qText || "").trim();
|
|
61579
|
+
const displayLabel = trimmedQ.toLowerCase().startsWith("question") ? trimmedQ : `${trimmedQ}`;
|
|
61580
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
61581
|
+
key: `question_${idx}`,
|
|
61582
|
+
label: displayLabel,
|
|
61583
|
+
text: `${t(checkForNA$1(aText))}`
|
|
61584
|
+
});
|
|
61585
|
+
})), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
61009
61586
|
style: {
|
|
61010
61587
|
marginTop: "10px",
|
|
61011
61588
|
marginBottom: "30px"
|
|
@@ -61018,10 +61595,10 @@ const CheckPage$4 = _ref2 => {
|
|
|
61018
61595
|
})
|
|
61019
61596
|
}), ((djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation) || (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
61020
61597
|
label: t("WS_EMPLOYEE_ID"),
|
|
61021
|
-
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
61598
|
+
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
61022
61599
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
61023
61600
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
61024
|
-
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
61601
|
+
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
61025
61602
|
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document) && /*#__PURE__*/React.createElement(Row, {
|
|
61026
61603
|
label: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
61027
61604
|
text: /*#__PURE__*/React.createElement("span", {
|
|
@@ -61053,7 +61630,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
61053
61630
|
key: index
|
|
61054
61631
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
61055
61632
|
label: t(`${doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll(".", "_")}`),
|
|
61056
|
-
text: checkForNA(doc === null || doc === void 0 ? void 0 : doc.documentUid),
|
|
61633
|
+
text: checkForNA$1(doc === null || doc === void 0 ? void 0 : doc.documentUid),
|
|
61057
61634
|
actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
61058
61635
|
onClick: onEdit
|
|
61059
61636
|
}) : null
|