@djb25/digit-ui-module-ws 1.0.120 → 1.0.122
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 +1117 -498
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1117 -498
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -276,6 +276,16 @@ const TestAcknowledgment = () => {
|
|
|
276
276
|
}, "Print"));
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
+
const isRwhDocType = doc => {
|
|
280
|
+
if (!doc) return false;
|
|
281
|
+
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
282
|
+
return str.includes("RAIN") || str.includes("HARVEST");
|
|
283
|
+
};
|
|
284
|
+
const isStpDocType = doc => {
|
|
285
|
+
if (!doc) return false;
|
|
286
|
+
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
287
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
288
|
+
};
|
|
279
289
|
const stringReplaceAll = function (str, searcher, replaceWith) {
|
|
280
290
|
if (str === void 0) {
|
|
281
291
|
str = "";
|
|
@@ -679,7 +689,7 @@ const getNormalizedBankDetails = data => {
|
|
|
679
689
|
};
|
|
680
690
|
const createPayloadOfWS = function (data) {
|
|
681
691
|
try {
|
|
682
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents2, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$
|
|
692
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents2, _data$DocumentsRequir, _data$djbEmployee, _data$governmentEmplo, _rwhDoc$additionalDet, _data$rainWaterHarves, _data$rainWaterHarves2, _data$rainWaterHarves3, _data$additionalDetai7, _data$additionalDetai8, _stpDoc$additionalDet, _data$sewerTreatmentP, _data$sewerTreatmentP2, _data$sewerTreatmentP3, _data$additionalDetai9, _data$additionalDetai0, _docWithValidity$addi, _data$documents3, _data$documents4, _data$documents5, _data$additionalDetai1, _data$additionalDetai10, _data$additionalDetai11, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$rainWaterHarves4, _data$rainWaterHarves5, _data$rainWaterHarves6, _data$rainWaterHarves7, _data$sewerTreatmentP4, _data$sewerTreatmentP5, _data$sewerTreatmentP6, _data$sewerTreatmentP7, _data$sewerTreatmentP8, _data$sewerTreatmentP9, _data$sewerTreatmentP0, _data$sewerTreatmentP1, _data$sewerTreatmentP10, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$djbEmployee6, _allDocuments$find, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _connectionDetailsObj2, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj3, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$propertyAddress16, _data$propertyAddress17, _data$propertyAddress18, _data$propertyAddress19, _data$cpt18, _data$cpt18$details, _data$cpt18$details$a, _data$cpt19, _data$cpt19$details, _data$cpt19$details$a, _data$cpt20, _data$cpt20$details, _data$propertyAddress20, _data$propertyAddress21, _data$propertyAddress22, _data$propertyAddress23, _useDetailsObject$noO2, _data$cpt21, _data$cpt21$details, _data$cpt21$details$a, _data$cpt22, _data$cpt22$details, _data$propertyAddress24, _data$propertyAddress25, _data$cpt23, _data$cpt23$details, _data$cpt23$details$a, _data$cpt24, _data$cpt24$details, _data$cpt24$details$a, _data$cpt25, _data$cpt25$details, _data$propertyAddress26, _data$propertyAddress27, _data$cpt26, _data$cpt26$details, _data$cpt26$details$a, _data$cpt27, _data$cpt27$details, _data$cpt27$details$a, _data$cpt28, _data$cpt28$details, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents6, _data$documents7, _data$documents8, _data$documents9, _allDocuments$find2, _allDocuments$find3, _data$cpt29, _Digit6, _Digit6$Customization, _Digit6$Customization2, _Digit7, _Digit7$Customization, _Digit7$Customization2;
|
|
683
693
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
684
694
|
const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
|
|
685
695
|
data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : (_data$cpt$details$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
|
|
@@ -694,7 +704,7 @@ const createPayloadOfWS = function (data) {
|
|
|
694
704
|
const connectionDetailsObject = connectionDetail;
|
|
695
705
|
const useDetailsObject = (data === null || data === void 0 ? void 0 : (_data$waterConnection = data.waterConnection) === null || _data$waterConnection === void 0 ? void 0 : _data$waterConnection.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || connectionDetailsObject || {};
|
|
696
706
|
const connectionHolder = (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : _data$ConnectionHolde[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionHolderDetails);
|
|
697
|
-
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.documents) ? [...data.documents.documents] : Array.isArray(data === null || data === void 0 ? void 0 : data.documents) ? [...data.documents] : [];
|
|
707
|
+
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.documents) ? [...data.documents.documents] : Array.isArray(data === null || data === void 0 ? void 0 : data.documents) ? [...data.documents] : Array.isArray(data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) ? [...data.DocumentsRequired.documents] : [];
|
|
698
708
|
const {
|
|
699
709
|
signatureFileStoreId,
|
|
700
710
|
signatureFileName
|
|
@@ -759,6 +769,47 @@ const createPayloadOfWS = function (data) {
|
|
|
759
769
|
status: "ACTIVE"
|
|
760
770
|
});
|
|
761
771
|
}
|
|
772
|
+
allDocuments = allDocuments.map(doc => {
|
|
773
|
+
var _doc$additionalDetail, _doc$additionalDetail2, _doc$additionalDetail3;
|
|
774
|
+
const vDate = (doc === null || doc === void 0 ? void 0 : doc.validityDate) || (doc === null || doc === void 0 ? void 0 : doc.validityUpTo) || (doc === null || doc === void 0 ? void 0 : doc.date) || (doc === null || doc === void 0 ? void 0 : (_doc$additionalDetail = doc.additionalDetails) === null || _doc$additionalDetail === void 0 ? void 0 : _doc$additionalDetail.validityDate) || (doc === null || doc === void 0 ? void 0 : (_doc$additionalDetail2 = doc.additionalDetails) === null || _doc$additionalDetail2 === void 0 ? void 0 : _doc$additionalDetail2.validityUpTo) || (doc === null || doc === void 0 ? void 0 : (_doc$additionalDetail3 = doc.additionalDetails) === null || _doc$additionalDetail3 === void 0 ? void 0 : _doc$additionalDetail3.date);
|
|
775
|
+
const vEpoch = vDate ? convertDateToEpoch(vDate) : undefined;
|
|
776
|
+
return {
|
|
777
|
+
...doc,
|
|
778
|
+
...(vDate ? {
|
|
779
|
+
validityDate: vDate,
|
|
780
|
+
validityUpTo: vDate,
|
|
781
|
+
date: vDate
|
|
782
|
+
} : {}),
|
|
783
|
+
...(typeof vEpoch === "number" ? {
|
|
784
|
+
validityDateEpoch: vEpoch,
|
|
785
|
+
validityUpToEpoch: vEpoch
|
|
786
|
+
} : {}),
|
|
787
|
+
additionalDetails: {
|
|
788
|
+
...((doc === null || doc === void 0 ? void 0 : doc.additionalDetails) || {}),
|
|
789
|
+
...(vDate ? {
|
|
790
|
+
validityDate: vDate,
|
|
791
|
+
validityUpTo: vDate,
|
|
792
|
+
date: vDate
|
|
793
|
+
} : {}),
|
|
794
|
+
...(typeof vEpoch === "number" ? {
|
|
795
|
+
validityDateEpoch: vEpoch,
|
|
796
|
+
validityUpToEpoch: vEpoch
|
|
797
|
+
} : {})
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
});
|
|
801
|
+
const rwhDoc = allDocuments.find(d => isRwhDocType(d));
|
|
802
|
+
const stpDoc = allDocuments.find(d => isStpDocType(d));
|
|
803
|
+
const docWithValidity = allDocuments.find(d => {
|
|
804
|
+
var _d$additionalDetails, _d$additionalDetails2;
|
|
805
|
+
return (d === null || d === void 0 ? void 0 : d.validityDate) || (d === null || d === void 0 ? void 0 : d.validityUpTo) || (d === null || d === void 0 ? void 0 : d.date) || (d === null || d === void 0 ? void 0 : (_d$additionalDetails = d.additionalDetails) === null || _d$additionalDetails === void 0 ? void 0 : _d$additionalDetails.validityDate) || (d === null || d === void 0 ? void 0 : (_d$additionalDetails2 = d.additionalDetails) === null || _d$additionalDetails2 === void 0 ? void 0 : _d$additionalDetails2.validityUpTo);
|
|
806
|
+
});
|
|
807
|
+
const rwhValidityDate = (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.validityDate) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.validityUpTo) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.date) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : (_rwhDoc$additionalDet = rwhDoc.additionalDetails) === null || _rwhDoc$additionalDet === void 0 ? void 0 : _rwhDoc$additionalDet.validityDate) || (data === null || data === void 0 ? void 0 : (_data$rainWaterHarves = data.rainWaterHarvesting) === null || _data$rainWaterHarves === void 0 ? void 0 : _data$rainWaterHarves.validityDate) || (data === null || data === void 0 ? void 0 : (_data$rainWaterHarves2 = data.rainWaterHarvesting) === null || _data$rainWaterHarves2 === void 0 ? void 0 : _data$rainWaterHarves2.validityUpTo) || (data === null || data === void 0 ? void 0 : (_data$rainWaterHarves3 = data.rainWaterHarvesting) === null || _data$rainWaterHarves3 === void 0 ? void 0 : _data$rainWaterHarves3.date) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai7 = data.additionalDetails) === null || _data$additionalDetai7 === void 0 ? void 0 : _data$additionalDetai7.rainWaterHarvestingValidityDate) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai8 = data.additionalDetails) === null || _data$additionalDetai8 === void 0 ? void 0 : _data$additionalDetai8.rwhValidityDate) || "";
|
|
808
|
+
const stpValidityDate = (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.validityDate) || (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.validityUpTo) || (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.date) || (stpDoc === null || stpDoc === void 0 ? void 0 : (_stpDoc$additionalDet = stpDoc.additionalDetails) === null || _stpDoc$additionalDet === void 0 ? void 0 : _stpDoc$additionalDet.validityDate) || (data === null || data === void 0 ? void 0 : (_data$sewerTreatmentP = data.sewerTreatmentPlant) === null || _data$sewerTreatmentP === void 0 ? void 0 : _data$sewerTreatmentP.validityDate) || (data === null || data === void 0 ? void 0 : (_data$sewerTreatmentP2 = data.sewerTreatmentPlant) === null || _data$sewerTreatmentP2 === void 0 ? void 0 : _data$sewerTreatmentP2.validityUpTo) || (data === null || data === void 0 ? void 0 : (_data$sewerTreatmentP3 = data.sewerTreatmentPlant) === null || _data$sewerTreatmentP3 === void 0 ? void 0 : _data$sewerTreatmentP3.date) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai9 = data.additionalDetails) === null || _data$additionalDetai9 === void 0 ? void 0 : _data$additionalDetai9.sewerTreatmentPlantValidityDate) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai0 = data.additionalDetails) === null || _data$additionalDetai0 === void 0 ? void 0 : _data$additionalDetai0.stpValidityDate) || "";
|
|
809
|
+
const overallValidityDate = (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.validityDate) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.validityUpTo) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.date) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : (_docWithValidity$addi = docWithValidity.additionalDetails) === null || _docWithValidity$addi === void 0 ? void 0 : _docWithValidity$addi.validityDate) || rwhValidityDate || stpValidityDate || (data === null || data === void 0 ? void 0 : (_data$documents3 = data.documents) === null || _data$documents3 === void 0 ? void 0 : _data$documents3.validityDate) || (data === null || data === void 0 ? void 0 : (_data$documents4 = data.documents) === null || _data$documents4 === void 0 ? void 0 : _data$documents4.validityUpTo) || (data === null || data === void 0 ? void 0 : (_data$documents5 = data.documents) === null || _data$documents5 === void 0 ? void 0 : _data$documents5.date) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai1 = data.additionalDetails) === null || _data$additionalDetai1 === void 0 ? void 0 : _data$additionalDetai1.validityDate) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai10 = data.additionalDetails) === null || _data$additionalDetai10 === void 0 ? void 0 : _data$additionalDetai10.validityUpTo) || (data === null || data === void 0 ? void 0 : (_data$additionalDetai11 = data.additionalDetails) === null || _data$additionalDetai11 === void 0 ? void 0 : _data$additionalDetai11.date) || "";
|
|
810
|
+
const overallValidityEpoch = overallValidityDate ? convertDateToEpoch(overallValidityDate) : undefined;
|
|
811
|
+
const rwhValidityEpoch = rwhValidityDate ? convertDateToEpoch(rwhValidityDate) : undefined;
|
|
812
|
+
const stpValidityEpoch = stpValidityDate ? convertDateToEpoch(stpValidityDate) : undefined;
|
|
762
813
|
let payload = {
|
|
763
814
|
water: !!isWater,
|
|
764
815
|
sewerage: !!isSewerage,
|
|
@@ -844,9 +895,13 @@ const createPayloadOfWS = function (data) {
|
|
|
844
895
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
845
896
|
...(data === null || data === void 0 ? void 0 : data.disability),
|
|
846
897
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
898
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
847
899
|
isDivyangjan: !!(data !== null && data !== void 0 && (_data$disability = data.disability) !== null && _data$disability !== void 0 && _data$disability.isDivyangjan),
|
|
848
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
849
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
900
|
+
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves4 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves4 !== void 0 && _data$rainWaterHarves4.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves5 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves5 !== void 0 && _data$rainWaterHarves5.isRainwaterHarvesting),
|
|
901
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves6 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves6 !== void 0 && _data$rainWaterHarves6.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves7 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves7 !== void 0 && _data$rainWaterHarves7.isRainwaterHarvesting),
|
|
902
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP4 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP4 !== void 0 && _data$sewerTreatmentP4.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP5 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP5 !== void 0 && _data$sewerTreatmentP5.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP6 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP6 !== void 0 && _data$sewerTreatmentP6.isSewerTreatmentPlant),
|
|
903
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP7 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP7 !== void 0 && _data$sewerTreatmentP7.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP8 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP8 !== void 0 && _data$sewerTreatmentP8.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP9 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP9 !== void 0 && _data$sewerTreatmentP9.isSewerTreatmentPlant),
|
|
904
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP0 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP0 !== void 0 && _data$sewerTreatmentP0.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP1 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP1 !== void 0 && _data$sewerTreatmentP1.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP10 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP10 !== void 0 && _data$sewerTreatmentP10.isSewerTreatmentPlant),
|
|
850
905
|
document: (data === null || data === void 0 ? void 0 : (_data$djbEmployee4 = data.djbEmployee) === null || _data$djbEmployee4 === void 0 ? void 0 : (_data$djbEmployee4$do = _data$djbEmployee4.document) === null || _data$djbEmployee4$do === void 0 ? void 0 : _data$djbEmployee4$do.fileStoreId) || (typeof (data === null || data === void 0 ? void 0 : (_data$djbEmployee5 = data.djbEmployee) === null || _data$djbEmployee5 === void 0 ? void 0 : _data$djbEmployee5.document) === "string" ? data === null || data === void 0 ? void 0 : (_data$djbEmployee6 = data.djbEmployee) === null || _data$djbEmployee6 === void 0 ? void 0 : _data$djbEmployee6.document : null) || ((_allDocuments$find = allDocuments.find(d => {
|
|
851
906
|
var _d$documentType5;
|
|
852
907
|
return (d === null || d === void 0 ? void 0 : d.documentType) === "OWNER.DJB_EMPLOYEE_ID" || (d === null || d === void 0 ? void 0 : (_d$documentType5 = d.documentType) === null || _d$documentType5 === void 0 ? void 0 : _d$documentType5.includes("DJB_EMPLOYEE_ID"));
|
|
@@ -897,16 +952,43 @@ const createPayloadOfWS = function (data) {
|
|
|
897
952
|
departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele24 = data.applicationSelection) === null || _data$applicationSele24 === void 0 ? void 0 : (_data$applicationSele25 = _data$applicationSele24.departmentType) === null || _data$applicationSele25 === void 0 ? void 0 : _data$applicationSele25.code,
|
|
898
953
|
governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
|
|
899
954
|
whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
|
|
900
|
-
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
901
|
-
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
902
|
-
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
903
|
-
otherDocumentRemark: (data === null || data === void 0 ? void 0 : (_data$
|
|
955
|
+
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents6 = data.documents) === null || _data$documents6 === void 0 ? void 0 : _data$documents6.identityProofNumber,
|
|
956
|
+
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents7 = data.documents) === null || _data$documents7 === void 0 ? void 0 : _data$documents7.ownershipDocumentNumber,
|
|
957
|
+
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents8 = data.documents) === null || _data$documents8 === void 0 ? void 0 : _data$documents8.otherDocumentNumber,
|
|
958
|
+
otherDocumentRemark: (data === null || data === void 0 ? void 0 : (_data$documents9 = data.documents) === null || _data$documents9 === void 0 ? void 0 : _data$documents9.otherDocumentRemark) || ((_allDocuments$find2 = allDocuments.find(d => {
|
|
904
959
|
var _d$documentType6, _d$documentType7;
|
|
905
960
|
return (d === null || d === void 0 ? void 0 : (_d$documentType6 = d.documentType) === null || _d$documentType6 === void 0 ? void 0 : _d$documentType6.includes("OTHER_DOCUMENTS")) || (d === null || d === void 0 ? void 0 : (_d$documentType7 = d.documentType) === null || _d$documentType7 === void 0 ? void 0 : _d$documentType7.includes("OTHERDOCUMENTS"));
|
|
906
961
|
})) === null || _allDocuments$find2 === void 0 ? void 0 : _allDocuments$find2.documentUid) || ((_allDocuments$find3 = allDocuments.find(d => {
|
|
907
962
|
var _d$documentType8, _d$documentType9;
|
|
908
963
|
return (d === null || d === void 0 ? void 0 : (_d$documentType8 = d.documentType) === null || _d$documentType8 === void 0 ? void 0 : _d$documentType8.includes("OTHER_DOCUMENTS")) || (d === null || d === void 0 ? void 0 : (_d$documentType9 = d.documentType) === null || _d$documentType9 === void 0 ? void 0 : _d$documentType9.includes("OTHERDOCUMENTS"));
|
|
909
964
|
})) === null || _allDocuments$find3 === void 0 ? void 0 : _allDocuments$find3.remarks),
|
|
965
|
+
validityDate: overallValidityDate || undefined,
|
|
966
|
+
validityUpTo: overallValidityDate || undefined,
|
|
967
|
+
date: overallValidityDate || undefined,
|
|
968
|
+
...(typeof overallValidityEpoch === "number" ? {
|
|
969
|
+
validityDateEpoch: overallValidityEpoch,
|
|
970
|
+
validityUpToEpoch: overallValidityEpoch
|
|
971
|
+
} : {}),
|
|
972
|
+
...(rwhValidityDate ? {
|
|
973
|
+
rwhValidityDate: rwhValidityDate,
|
|
974
|
+
rwhValidityUpTo: rwhValidityDate,
|
|
975
|
+
rainWaterHarvestingValidityDate: rwhValidityDate,
|
|
976
|
+
rainWaterHarvestingValidityUpTo: rwhValidityDate,
|
|
977
|
+
...(typeof rwhValidityEpoch === "number" ? {
|
|
978
|
+
rwhValidityDateEpoch: rwhValidityEpoch,
|
|
979
|
+
rwhValidityUpToEpoch: rwhValidityEpoch
|
|
980
|
+
} : {})
|
|
981
|
+
} : {}),
|
|
982
|
+
...(stpValidityDate ? {
|
|
983
|
+
stpValidityDate: stpValidityDate,
|
|
984
|
+
stpValidityUpTo: stpValidityDate,
|
|
985
|
+
sewerTreatmentPlantValidityDate: stpValidityDate,
|
|
986
|
+
sewerTreatmentPlantValidityUpTo: stpValidityDate,
|
|
987
|
+
...(typeof stpValidityEpoch === "number" ? {
|
|
988
|
+
stpValidityDateEpoch: stpValidityEpoch,
|
|
989
|
+
stpValidityUpToEpoch: stpValidityEpoch
|
|
990
|
+
} : {})
|
|
991
|
+
} : {}),
|
|
910
992
|
...(getNormalizedBankDetails(data) ? {
|
|
911
993
|
...getNormalizedBankDetails(data),
|
|
912
994
|
bankDetails: getNormalizedBankDetails(data)
|
|
@@ -935,7 +1017,7 @@ const createPayloadOfWS = function (data) {
|
|
|
935
1017
|
};
|
|
936
1018
|
const updatePayloadOfWS = function (data, type) {
|
|
937
1019
|
try {
|
|
938
|
-
var _data$
|
|
1020
|
+
var _data$additionalDetai12, _data$additionalDetai13, _Digit8, _Digit8$Customization, _Digit8$Customization2, _Digit9, _Digit9$Customization, _Digit9$Customization2;
|
|
939
1021
|
const {
|
|
940
1022
|
signatureFileStoreId,
|
|
941
1023
|
signatureFileName
|
|
@@ -977,8 +1059,8 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
977
1059
|
fileName: signatureFileName
|
|
978
1060
|
}
|
|
979
1061
|
} : {}),
|
|
980
|
-
connectionType: (data === null || data === void 0 ? void 0 : (_data$
|
|
981
|
-
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$
|
|
1062
|
+
connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai12 = data.additionalDetails) === null || _data$additionalDetai12 === void 0 ? void 0 : _data$additionalDetai12.connectionType) || "Permanent",
|
|
1063
|
+
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai13 = data.additionalDetails) === null || _data$additionalDetai13 === void 0 ? void 0 : _data$additionalDetai13.waterDemandType) || {
|
|
982
1064
|
code: "NON_BULK",
|
|
983
1065
|
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
984
1066
|
}
|
|
@@ -991,8 +1073,8 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
991
1073
|
}
|
|
992
1074
|
};
|
|
993
1075
|
const getAllDocumentsForUpdate = data => {
|
|
994
|
-
var _data$
|
|
995
|
-
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$
|
|
1076
|
+
var _data$documents0, _data$governmentEmplo5;
|
|
1077
|
+
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$documents0 = data.documents) === null || _data$documents0 === void 0 ? void 0 : _data$documents0.documents) ? [...data.documents.documents] : Array.isArray(data === null || data === void 0 ? void 0 : data.documents) ? [...data.documents] : [];
|
|
996
1078
|
const {
|
|
997
1079
|
signatureFileStoreId,
|
|
998
1080
|
signatureFileName
|
|
@@ -1094,7 +1176,7 @@ const getAllDocumentsForUpdate = data => {
|
|
|
1094
1176
|
return allDocuments;
|
|
1095
1177
|
};
|
|
1096
1178
|
const convertToWSUpdate = data => {
|
|
1097
|
-
var _data$WaterConnection, _data$WaterConnection2, _data$cpt30, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee25, _data$djbEmployee25$d, _data$djbEmployee26, _data$disability2, _data$
|
|
1179
|
+
var _data$WaterConnection, _data$WaterConnection2, _data$cpt30, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee25, _data$djbEmployee25$d, _data$djbEmployee26, _data$disability2, _data$rainWaterHarves8, _data$rainWaterHarves9, _data$rainWaterHarves0, _data$rainWaterHarves1, _data$sewerTreatmentP11, _data$sewerTreatmentP12, _data$sewerTreatmentP13, _data$sewerTreatmentP14, _data$sewerTreatmentP15, _data$sewerTreatmentP16, _data$sewerTreatmentP17, _data$sewerTreatmentP18, _data$sewerTreatmentP19, _Digit0, _Digit0$Customization, _Digit0$Customization2, _Digit1, _Digit1$Customization, _Digit1$Customization2;
|
|
1098
1180
|
const {
|
|
1099
1181
|
signatureFileStoreId,
|
|
1100
1182
|
signatureFileName
|
|
@@ -1134,8 +1216,14 @@ const convertToWSUpdate = data => {
|
|
|
1134
1216
|
} : {}),
|
|
1135
1217
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1136
1218
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1137
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1138
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1219
|
+
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves8 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves8 !== void 0 && _data$rainWaterHarves8.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves9 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves9 !== void 0 && _data$rainWaterHarves9.isRainwaterHarvesting),
|
|
1220
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves0 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves0 !== void 0 && _data$rainWaterHarves0.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves1 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves1 !== void 0 && _data$rainWaterHarves1.isRainwaterHarvesting)
|
|
1221
|
+
} : {}),
|
|
1222
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1223
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1224
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP11 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP11 !== void 0 && _data$sewerTreatmentP11.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP12 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP12 !== void 0 && _data$sewerTreatmentP12.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP13 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP13 !== void 0 && _data$sewerTreatmentP13.isSewerTreatmentPlant),
|
|
1225
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP14 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP14 !== void 0 && _data$sewerTreatmentP14.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP15 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP15 !== void 0 && _data$sewerTreatmentP15.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP16 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP16 !== void 0 && _data$sewerTreatmentP16.isSewerTreatmentPlant),
|
|
1226
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP17 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP17 !== void 0 && _data$sewerTreatmentP17.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP18 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP18 !== void 0 && _data$sewerTreatmentP18.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP19 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP19 !== void 0 && _data$sewerTreatmentP19.isSewerTreatmentPlant)
|
|
1139
1227
|
} : {}),
|
|
1140
1228
|
...(getNormalizedBankDetails(data) ? {
|
|
1141
1229
|
...getNormalizedBankDetails(data),
|
|
@@ -1151,7 +1239,7 @@ const convertToWSUpdate = data => {
|
|
|
1151
1239
|
return formdata;
|
|
1152
1240
|
};
|
|
1153
1241
|
const convertToEditWSUpdate = data => {
|
|
1154
|
-
var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$
|
|
1242
|
+
var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$additionalDetai14, _data$additionalDetai15, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai16, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai17, _waterResult$addition3, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee40, _data$djbEmployee40$d, _data$djbEmployee41, _data$disability3, _data$rainWaterHarves10, _data$rainWaterHarves11, _data$rainWaterHarves12, _data$rainWaterHarves13, _data$sewerTreatmentP20, _data$sewerTreatmentP21, _data$sewerTreatmentP22, _data$sewerTreatmentP23, _data$sewerTreatmentP24, _data$sewerTreatmentP25, _data$sewerTreatmentP26, _data$sewerTreatmentP27, _data$sewerTreatmentP28, _data$waterConnection2, _data$additionalDetai18, _waterResult$addition4, _data$additionalDetai19, _waterResult$addition5, _data$additionalDetai20, _waterResult$addition6, _data$additionalDetai21, _waterResult$addition7, _data$waterConnection3, _data$additionalDetai22, _waterResult$addition8, _data$waterConnection4, _data$additionalDetai23, _waterResult$addition9, _data$waterConnection5, _data$additionalDetai24, _waterResult$addition0, _data$waterConnection6, _data$additionalDetai25, _waterResult$addition1, _data$additionalDetai26, _data$property3, _data$property3$addit, _data$cpt31, _data$cpt31$details, _data$cpt31$details$a, _waterResult$addition10, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$applicationType3, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2;
|
|
1155
1243
|
const {
|
|
1156
1244
|
signatureFileStoreId,
|
|
1157
1245
|
signatureFileName
|
|
@@ -1189,9 +1277,9 @@ const convertToEditWSUpdate = data => {
|
|
|
1189
1277
|
fileName: signatureFileName
|
|
1190
1278
|
}
|
|
1191
1279
|
} : {}),
|
|
1192
|
-
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$
|
|
1193
|
-
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$
|
|
1194
|
-
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$
|
|
1280
|
+
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai14 = data.additionalDetails) === null || _data$additionalDetai14 === void 0 ? void 0 : _data$additionalDetai14.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai15 = data.additionalDetails) === null || _data$additionalDetai15 === void 0 ? void 0 : _data$additionalDetai15.CompletelySatisfied : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition = waterResult.additionalDetails) === null || _waterResult$addition === void 0 ? void 0 : _waterResult$addition.CompletelySatisfied,
|
|
1281
|
+
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$additionalDetai16 = data.additionalDetails) === null || _data$additionalDetai16 === void 0 ? void 0 : _data$additionalDetai16.addressType : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.addressType) || "",
|
|
1282
|
+
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$additionalDetai17 = data.additionalDetails) === null || _data$additionalDetai17 === void 0 ? void 0 : _data$additionalDetai17.completeAddress : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.completeAddress) || "",
|
|
1195
1283
|
...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
|
|
1196
1284
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
1197
1285
|
isDjbEmployee: String(data === null || data === void 0 ? void 0 : (_data$djbEmployee27 = data.djbEmployee) === null || _data$djbEmployee27 === void 0 ? void 0 : _data$djbEmployee27.isDjbEmployee) === "true" || (data === null || data === void 0 ? void 0 : (_data$djbEmployee28 = data.djbEmployee) === null || _data$djbEmployee28 === void 0 ? void 0 : _data$djbEmployee28.isDjbEmployee) === true,
|
|
@@ -1206,23 +1294,29 @@ const convertToEditWSUpdate = data => {
|
|
|
1206
1294
|
} : {}),
|
|
1207
1295
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1208
1296
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1209
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1210
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1297
|
+
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves10 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves10 !== void 0 && _data$rainWaterHarves10.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves11 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves11 !== void 0 && _data$rainWaterHarves11.isRainwaterHarvesting),
|
|
1298
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves12 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves12 !== void 0 && _data$rainWaterHarves12.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves13 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves13 !== void 0 && _data$rainWaterHarves13.isRainwaterHarvesting)
|
|
1299
|
+
} : {}),
|
|
1300
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1301
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1302
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP20 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP20 !== void 0 && _data$sewerTreatmentP20.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP21 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP21 !== void 0 && _data$sewerTreatmentP21.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP22 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP22 !== void 0 && _data$sewerTreatmentP22.isSewerTreatmentPlant),
|
|
1303
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP23 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP23 !== void 0 && _data$sewerTreatmentP23.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP24 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP24 !== void 0 && _data$sewerTreatmentP24.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP25 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP25 !== void 0 && _data$sewerTreatmentP25.isSewerTreatmentPlant),
|
|
1304
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP26 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP26 !== void 0 && _data$sewerTreatmentP26.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP27 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP27 !== void 0 && _data$sewerTreatmentP27.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP28 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP28 !== void 0 && _data$sewerTreatmentP28.isSewerTreatmentPlant)
|
|
1211
1305
|
} : {}),
|
|
1212
1306
|
...(getNormalizedBankDetails(data) ? {
|
|
1213
1307
|
...getNormalizedBankDetails(data),
|
|
1214
1308
|
bankDetails: getNormalizedBankDetails(data)
|
|
1215
1309
|
} : {}),
|
|
1216
1310
|
...(data !== null && data !== void 0 && (_data$waterConnection2 = data.waterConnection) !== null && _data$waterConnection2 !== void 0 && _data$waterConnection2.useDetails ? {
|
|
1217
|
-
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1218
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1219
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1220
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
1221
|
-
categoryType: ((_data$waterConnection3 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1222
|
-
propertyCategory: ((_data$waterConnection4 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection4 === void 0 ? void 0 : _data$waterConnection4.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$
|
|
1223
|
-
propertyType: ((_data$waterConnection5 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection5 === void 0 ? void 0 : _data$waterConnection5.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1224
|
-
waterConnectionUsageType: ((_data$waterConnection6 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1225
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
1311
|
+
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai18 = data.additionalDetails) === null || _data$additionalDetai18 === void 0 ? void 0 : _data$additionalDetai18.plotArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition4 = waterResult.additionalDetails) === null || _waterResult$addition4 === void 0 ? void 0 : _waterResult$addition4.plotArea),
|
|
1312
|
+
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai19 = data.additionalDetails) === null || _data$additionalDetai19 === void 0 ? void 0 : _data$additionalDetai19.plotSize) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.plotSize),
|
|
1313
|
+
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai20 = data.additionalDetails) === null || _data$additionalDetai20 === void 0 ? void 0 : _data$additionalDetai20.builtUpArea) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.builtUpArea),
|
|
1314
|
+
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai21 = data.additionalDetails) === null || _data$additionalDetai21 === void 0 ? void 0 : _data$additionalDetai21.heightOfTheBuilding) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.heightOfTheBuilding),
|
|
1315
|
+
categoryType: ((_data$waterConnection3 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai22 = data.additionalDetails) === null || _data$additionalDetai22 === void 0 ? void 0 : _data$additionalDetai22.categoryType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType),
|
|
1316
|
+
propertyCategory: ((_data$waterConnection4 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection4 === void 0 ? void 0 : _data$waterConnection4.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai23 = data.additionalDetails) === null || _data$additionalDetai23 === void 0 ? void 0 : _data$additionalDetai23.propertyCategory) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.propertyCategory),
|
|
1317
|
+
propertyType: ((_data$waterConnection5 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection5 === void 0 ? void 0 : _data$waterConnection5.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai24 = data.additionalDetails) === null || _data$additionalDetai24 === void 0 ? void 0 : _data$additionalDetai24.propertyType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.propertyType),
|
|
1318
|
+
waterConnectionUsageType: ((_data$waterConnection6 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai25 = data.additionalDetails) === null || _data$additionalDetai25 === void 0 ? void 0 : _data$additionalDetai25.waterConnectionUsageType) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.waterConnectionUsageType),
|
|
1319
|
+
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai26 = data.additionalDetails) === null || _data$additionalDetai26 === void 0 ? void 0 : _data$additionalDetai26.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property3 = data.property) === null || _data$property3 === void 0 ? void 0 : (_data$property3$addit = _data$property3.additionalDetails) === null || _data$property3$addit === void 0 ? void 0 : _data$property3$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt31 = data.cpt) === null || _data$cpt31 === void 0 ? void 0 : (_data$cpt31$details = _data$cpt31.details) === null || _data$cpt31$details === void 0 ? void 0 : (_data$cpt31$details$a = _data$cpt31$details.additionalDetails) === null || _data$cpt31$details$a === void 0 ? void 0 : _data$cpt31$details$a.numberOfDwellingUnits) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.numberOfDwellingUnits) || ""
|
|
1226
1320
|
} : {})
|
|
1227
1321
|
},
|
|
1228
1322
|
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,
|
|
@@ -1308,7 +1402,7 @@ const convertToEditWSUpdate = data => {
|
|
|
1308
1402
|
})(),
|
|
1309
1403
|
dueVerification: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.dueVerification : waterResult === null || waterResult === void 0 ? void 0 : waterResult.dueVerification,
|
|
1310
1404
|
water: data !== null && data !== void 0 && (_data$applicationType = data.applicationType) !== null && _data$applicationType !== void 0 && _data$applicationType.includes("WATER") ? true : false,
|
|
1311
|
-
sewerage: data !== null && data !== void 0 && (_data$applicationType2 = data.applicationType) !== null && _data$applicationType2 !== void 0 && _data$applicationType2.includes("
|
|
1405
|
+
sewerage: data !== null && data !== void 0 && (_data$applicationType2 = data.applicationType) !== null && _data$applicationType2 !== void 0 && _data$applicationType2.includes("SEWERAGE") || data !== null && data !== void 0 && (_data$applicationType3 = data.applicationType) !== null && _data$applicationType3 !== void 0 && _data$applicationType3.includes("SW") ? true : false,
|
|
1312
1406
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName = data.serviceName) === null || _data$serviceName === void 0 ? void 0 : _data$serviceName.code : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$serviceN = waterResult.serviceName) === null || _waterResult$serviceN === void 0 ? void 0 : _waterResult$serviceN.code,
|
|
1313
1407
|
reviewDocData: [...getAllDocumentsForUpdate(data)],
|
|
1314
1408
|
proposedWaterClosets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect = data.sewerageConnectionDetails) === null || _data$sewerageConnect === void 0 ? void 0 : _data$sewerageConnect.proposedWaterClosets,
|
|
@@ -1324,7 +1418,7 @@ const convertToEditWSUpdate = data => {
|
|
|
1324
1418
|
return formdata;
|
|
1325
1419
|
};
|
|
1326
1420
|
const convertToEditSWUpdate = data => {
|
|
1327
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _data$
|
|
1421
|
+
var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai27, _data$additionalDetai28, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai29, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai30, _SewerageResult$addit3, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee55, _data$djbEmployee55$d, _data$djbEmployee56, _data$disability4, _data$rainWaterHarves14, _data$rainWaterHarves15, _data$rainWaterHarves16, _data$rainWaterHarves17, _data$sewerTreatmentP29, _data$sewerTreatmentP30, _data$sewerTreatmentP31, _data$sewerTreatmentP32, _data$sewerTreatmentP33, _data$sewerTreatmentP34, _data$sewerTreatmentP35, _data$sewerTreatmentP36, _data$sewerTreatmentP37, _data$waterConnection8, _data$additionalDetai31, _SewerageResult$addit4, _data$additionalDetai32, _SewerageResult$addit5, _data$additionalDetai33, _SewerageResult$addit6, _data$additionalDetai34, _SewerageResult$addit7, _data$waterConnection9, _data$additionalDetai35, _SewerageResult$addit8, _data$waterConnection0, _data$additionalDetai36, _SewerageResult$addit9, _data$waterConnection1, _data$additionalDetai37, _SewerageResult$addit0, _data$waterConnection10, _data$additionalDetai38, _SewerageResult$addit1, _data$additionalDetai39, _data$property4, _data$property4$addit, _data$cpt33, _data$cpt33$details, _data$cpt33$details$a, _SewerageResult$addit10, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType4, _data$applicationType5, _data$applicationType6, _data$applicationType7, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2;
|
|
1328
1422
|
const {
|
|
1329
1423
|
signatureFileStoreId,
|
|
1330
1424
|
signatureFileName
|
|
@@ -1361,9 +1455,9 @@ const convertToEditSWUpdate = data => {
|
|
|
1361
1455
|
fileName: signatureFileName
|
|
1362
1456
|
}
|
|
1363
1457
|
} : {}),
|
|
1364
|
-
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$
|
|
1365
|
-
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$
|
|
1366
|
-
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$
|
|
1458
|
+
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$additionalDetai27 = data.additionalDetails) === null || _data$additionalDetai27 === void 0 ? void 0 : _data$additionalDetai27.CompletelySatisfied) !== undefined ? data === null || data === void 0 ? void 0 : (_data$additionalDetai28 = data.additionalDetails) === null || _data$additionalDetai28 === void 0 ? void 0 : _data$additionalDetai28.CompletelySatisfied : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit = SewerageResult.additionalDetails) === null || _SewerageResult$addit === void 0 ? void 0 : _SewerageResult$addit.CompletelySatisfied,
|
|
1459
|
+
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$additionalDetai29 = data.additionalDetails) === null || _data$additionalDetai29 === void 0 ? void 0 : _data$additionalDetai29.addressType : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit2 = SewerageResult.additionalDetails) === null || _SewerageResult$addit2 === void 0 ? void 0 : _SewerageResult$addit2.addressType) || "",
|
|
1460
|
+
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$additionalDetai30 = data.additionalDetails) === null || _data$additionalDetai30 === void 0 ? void 0 : _data$additionalDetai30.completeAddress : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit3 = SewerageResult.additionalDetails) === null || _SewerageResult$addit3 === void 0 ? void 0 : _SewerageResult$addit3.completeAddress) || "",
|
|
1367
1461
|
...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
|
|
1368
1462
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
1369
1463
|
isDjbEmployee: String(data === null || data === void 0 ? void 0 : (_data$djbEmployee42 = data.djbEmployee) === null || _data$djbEmployee42 === void 0 ? void 0 : _data$djbEmployee42.isDjbEmployee) === "true" || (data === null || data === void 0 ? void 0 : (_data$djbEmployee43 = data.djbEmployee) === null || _data$djbEmployee43 === void 0 ? void 0 : _data$djbEmployee43.isDjbEmployee) === true,
|
|
@@ -1378,23 +1472,29 @@ const convertToEditSWUpdate = data => {
|
|
|
1378
1472
|
} : {}),
|
|
1379
1473
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1380
1474
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1381
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1382
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1475
|
+
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves14 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves14 !== void 0 && _data$rainWaterHarves14.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves15 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves15 !== void 0 && _data$rainWaterHarves15.isRainwaterHarvesting),
|
|
1476
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves16 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves16 !== void 0 && _data$rainWaterHarves16.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves17 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves17 !== void 0 && _data$rainWaterHarves17.isRainwaterHarvesting)
|
|
1477
|
+
} : {}),
|
|
1478
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1479
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1480
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP29 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP29 !== void 0 && _data$sewerTreatmentP29.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP30 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP30 !== void 0 && _data$sewerTreatmentP30.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP31 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP31 !== void 0 && _data$sewerTreatmentP31.isSewerTreatmentPlant),
|
|
1481
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP32 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP32 !== void 0 && _data$sewerTreatmentP32.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP33 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP33 !== void 0 && _data$sewerTreatmentP33.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP34 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP34 !== void 0 && _data$sewerTreatmentP34.isSewerTreatmentPlant),
|
|
1482
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP35 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP35 !== void 0 && _data$sewerTreatmentP35.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP36 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP36 !== void 0 && _data$sewerTreatmentP36.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP37 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP37 !== void 0 && _data$sewerTreatmentP37.isSewerTreatmentPlant)
|
|
1383
1483
|
} : {}),
|
|
1384
1484
|
...(getNormalizedBankDetails(data) ? {
|
|
1385
1485
|
...getNormalizedBankDetails(data),
|
|
1386
1486
|
bankDetails: getNormalizedBankDetails(data)
|
|
1387
1487
|
} : {}),
|
|
1388
1488
|
...(data !== null && data !== void 0 && (_data$waterConnection8 = data.waterConnection) !== null && _data$waterConnection8 !== void 0 && _data$waterConnection8.useDetails ? {
|
|
1389
|
-
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1390
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1391
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1392
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
1393
|
-
categoryType: ((_data$waterConnection9 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection9 === void 0 ? void 0 : _data$waterConnection9.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1394
|
-
propertyCategory: ((_data$waterConnection0 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$
|
|
1395
|
-
propertyType: ((_data$waterConnection1 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection1 === void 0 ? void 0 : _data$waterConnection1.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1396
|
-
waterConnectionUsageType: ((_data$waterConnection10 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection10 === void 0 ? void 0 : _data$waterConnection10.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$
|
|
1397
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
1489
|
+
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai31 = data.additionalDetails) === null || _data$additionalDetai31 === void 0 ? void 0 : _data$additionalDetai31.plotArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit4 = SewerageResult.additionalDetails) === null || _SewerageResult$addit4 === void 0 ? void 0 : _SewerageResult$addit4.plotArea),
|
|
1490
|
+
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai32 = data.additionalDetails) === null || _data$additionalDetai32 === void 0 ? void 0 : _data$additionalDetai32.plotSize) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit5 = SewerageResult.additionalDetails) === null || _SewerageResult$addit5 === void 0 ? void 0 : _SewerageResult$addit5.plotSize),
|
|
1491
|
+
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$additionalDetai33 = data.additionalDetails) === null || _data$additionalDetai33 === void 0 ? void 0 : _data$additionalDetai33.builtUpArea) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit6 = SewerageResult.additionalDetails) === null || _SewerageResult$addit6 === void 0 ? void 0 : _SewerageResult$addit6.builtUpArea),
|
|
1492
|
+
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$additionalDetai34 = data.additionalDetails) === null || _data$additionalDetai34 === void 0 ? void 0 : _data$additionalDetai34.heightOfTheBuilding) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit7 = SewerageResult.additionalDetails) === null || _SewerageResult$addit7 === void 0 ? void 0 : _SewerageResult$addit7.heightOfTheBuilding),
|
|
1493
|
+
categoryType: ((_data$waterConnection9 = data.waterConnection.useDetails.categoryType) === null || _data$waterConnection9 === void 0 ? void 0 : _data$waterConnection9.code) || data.waterConnection.useDetails.categoryType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai35 = data.additionalDetails) === null || _data$additionalDetai35 === void 0 ? void 0 : _data$additionalDetai35.categoryType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit8 = SewerageResult.additionalDetails) === null || _SewerageResult$addit8 === void 0 ? void 0 : _SewerageResult$addit8.categoryType),
|
|
1494
|
+
propertyCategory: ((_data$waterConnection0 = data.waterConnection.useDetails.propertyCategory) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.code) || data.waterConnection.useDetails.propertyCategory || (data === null || data === void 0 ? void 0 : (_data$additionalDetai36 = data.additionalDetails) === null || _data$additionalDetai36 === void 0 ? void 0 : _data$additionalDetai36.propertyCategory) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit9 = SewerageResult.additionalDetails) === null || _SewerageResult$addit9 === void 0 ? void 0 : _SewerageResult$addit9.propertyCategory),
|
|
1495
|
+
propertyType: ((_data$waterConnection1 = data.waterConnection.useDetails.propertyType) === null || _data$waterConnection1 === void 0 ? void 0 : _data$waterConnection1.code) || data.waterConnection.useDetails.propertyType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai37 = data.additionalDetails) === null || _data$additionalDetai37 === void 0 ? void 0 : _data$additionalDetai37.propertyType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit0 = SewerageResult.additionalDetails) === null || _SewerageResult$addit0 === void 0 ? void 0 : _SewerageResult$addit0.propertyType),
|
|
1496
|
+
waterConnectionUsageType: ((_data$waterConnection10 = data.waterConnection.useDetails.WaterConnectionUsageType) === null || _data$waterConnection10 === void 0 ? void 0 : _data$waterConnection10.code) || data.waterConnection.useDetails.WaterConnectionUsageType || (data === null || data === void 0 ? void 0 : (_data$additionalDetai38 = data.additionalDetails) === null || _data$additionalDetai38 === void 0 ? void 0 : _data$additionalDetai38.waterConnectionUsageType) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit1 = SewerageResult.additionalDetails) === null || _SewerageResult$addit1 === void 0 ? void 0 : _SewerageResult$addit1.waterConnectionUsageType),
|
|
1497
|
+
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$additionalDetai39 = data.additionalDetails) === null || _data$additionalDetai39 === void 0 ? void 0 : _data$additionalDetai39.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$property4 = data.property) === null || _data$property4 === void 0 ? void 0 : (_data$property4$addit = _data$property4.additionalDetails) === null || _data$property4$addit === void 0 ? void 0 : _data$property4$addit.numberOfDwellingUnits) || (data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : (_data$cpt33$details = _data$cpt33.details) === null || _data$cpt33$details === void 0 ? void 0 : (_data$cpt33$details$a = _data$cpt33$details.additionalDetails) === null || _data$cpt33$details$a === void 0 ? void 0 : _data$cpt33$details$a.numberOfDwellingUnits) || (SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$addit10 = SewerageResult.additionalDetails) === null || _SewerageResult$addit10 === void 0 ? void 0 : _SewerageResult$addit10.numberOfDwellingUnits) || ""
|
|
1398
1498
|
} : {})
|
|
1399
1499
|
},
|
|
1400
1500
|
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,
|
|
@@ -1479,8 +1579,8 @@ const convertToEditSWUpdate = data => {
|
|
|
1479
1579
|
};
|
|
1480
1580
|
})(),
|
|
1481
1581
|
dueVerification: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.dueVerification : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.dueVerification,
|
|
1482
|
-
water: data !== null && data !== void 0 && (_data$
|
|
1483
|
-
sewerage: data !== null && data !== void 0 && (_data$
|
|
1582
|
+
water: data !== null && data !== void 0 && (_data$applicationType4 = data.applicationType) !== null && _data$applicationType4 !== void 0 && _data$applicationType4.includes("WATER") || data !== null && data !== void 0 && (_data$applicationType5 = data.applicationType) !== null && _data$applicationType5 !== void 0 && _data$applicationType5.includes("WS") ? true : false,
|
|
1583
|
+
sewerage: data !== null && data !== void 0 && (_data$applicationType6 = data.applicationType) !== null && _data$applicationType6 !== void 0 && _data$applicationType6.includes("SEWERAGE") || data !== null && data !== void 0 && (_data$applicationType7 = data.applicationType) !== null && _data$applicationType7 !== void 0 && _data$applicationType7.includes("SW") ? true : false,
|
|
1484
1584
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName2 = data.serviceName) === null || _data$serviceName2 === void 0 ? void 0 : _data$serviceName2.code : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$servi = SewerageResult.serviceName) === null || _SewerageResult$servi === void 0 ? void 0 : _SewerageResult$servi.code,
|
|
1485
1585
|
reviewDocData: [...getAllDocumentsForUpdate(data)],
|
|
1486
1586
|
proposedWaterClosets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect3 = data.sewerageConnectionDetails) === null || _data$sewerageConnect3 === void 0 ? void 0 : _data$sewerageConnect3.proposedWaterClosets,
|
|
@@ -1496,7 +1596,7 @@ const convertToEditSWUpdate = data => {
|
|
|
1496
1596
|
return formdata;
|
|
1497
1597
|
};
|
|
1498
1598
|
const convertToSWUpdate = data => {
|
|
1499
|
-
var _data$SewerageConnect3, _data$SewerageConnect4, _data$cpt35, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee70, _data$djbEmployee70$d, _data$djbEmployee71, _data$disability5, _data$
|
|
1599
|
+
var _data$SewerageConnect3, _data$SewerageConnect4, _data$cpt35, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee70, _data$djbEmployee70$d, _data$djbEmployee71, _data$disability5, _data$rainWaterHarves18, _data$rainWaterHarves19, _data$rainWaterHarves20, _data$rainWaterHarves21, _data$sewerTreatmentP38, _data$sewerTreatmentP39, _data$sewerTreatmentP40, _data$sewerTreatmentP41, _data$sewerTreatmentP42, _data$sewerTreatmentP43, _data$sewerTreatmentP44, _data$sewerTreatmentP45, _data$sewerTreatmentP46, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2;
|
|
1500
1600
|
const {
|
|
1501
1601
|
signatureFileStoreId,
|
|
1502
1602
|
signatureFileName
|
|
@@ -1537,8 +1637,14 @@ const convertToSWUpdate = data => {
|
|
|
1537
1637
|
} : {}),
|
|
1538
1638
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1539
1639
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1540
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1541
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1640
|
+
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves18 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves18 !== void 0 && _data$rainWaterHarves18.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves19 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves19 !== void 0 && _data$rainWaterHarves19.isRainwaterHarvesting),
|
|
1641
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves20 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves20 !== void 0 && _data$rainWaterHarves20.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves21 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves21 !== void 0 && _data$rainWaterHarves21.isRainwaterHarvesting)
|
|
1642
|
+
} : {}),
|
|
1643
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1644
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1645
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP38 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP38 !== void 0 && _data$sewerTreatmentP38.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP39 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP39 !== void 0 && _data$sewerTreatmentP39.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP40 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP40 !== void 0 && _data$sewerTreatmentP40.isSewerTreatmentPlant),
|
|
1646
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP41 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP41 !== void 0 && _data$sewerTreatmentP41.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP42 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP42 !== void 0 && _data$sewerTreatmentP42.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP43 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP43 !== void 0 && _data$sewerTreatmentP43.isSewerTreatmentPlant),
|
|
1647
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP44 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP44 !== void 0 && _data$sewerTreatmentP44.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP45 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP45 !== void 0 && _data$sewerTreatmentP45.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP46 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP46 !== void 0 && _data$sewerTreatmentP46.isSewerTreatmentPlant)
|
|
1542
1648
|
} : {}),
|
|
1543
1649
|
...(getNormalizedBankDetails(data) ? {
|
|
1544
1650
|
...getNormalizedBankDetails(data),
|
|
@@ -1555,7 +1661,7 @@ const convertToSWUpdate = data => {
|
|
|
1555
1661
|
};
|
|
1556
1662
|
const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
1557
1663
|
try {
|
|
1558
|
-
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2;
|
|
1664
|
+
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _storeData$applicatio76, _storeData$applicatio77, _storeData$applicatio78, _storeData$applicatio79, _storeData$applicatio80, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2;
|
|
1559
1665
|
const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
|
|
1560
1666
|
let plumberInfo = [];
|
|
1561
1667
|
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
|
|
@@ -1655,7 +1761,8 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1655
1761
|
},
|
|
1656
1762
|
disconnectRequest: true
|
|
1657
1763
|
};
|
|
1658
|
-
|
|
1764
|
+
const isSewerageService = ((service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SEWERAGE" || (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SW") && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio76 = storeData.applicationData) !== null && _storeData$applicatio76 !== void 0 && _storeData$applicatio76.water) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio77 = storeData.applicationData) !== null && _storeData$applicatio77 !== void 0 && (_storeData$applicatio78 = _storeData$applicatio77.connectionNo) !== null && _storeData$applicatio78 !== void 0 && _storeData$applicatio78.includes("WS")) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio79 = storeData.applicationData) !== null && _storeData$applicatio79 !== void 0 && (_storeData$applicatio80 = _storeData$applicatio79.applicationNo) !== null && _storeData$applicatio80 !== void 0 && _storeData$applicatio80.includes("WS"));
|
|
1765
|
+
let returnObject = isSewerageService ? swPayload : wsPayload;
|
|
1659
1766
|
returnObject = (_Digit16 = Digit) !== null && _Digit16 !== void 0 && (_Digit16$Customizatio = _Digit16.Customizations) !== null && _Digit16$Customizatio !== void 0 && (_Digit16$Customizatio2 = _Digit16$Customizatio.WS) !== null && _Digit16$Customizatio2 !== void 0 && _Digit16$Customizatio2.customiseCreatePayloadOfWSDisconnection ? (_Digit17 = Digit) === null || _Digit17 === void 0 ? void 0 : (_Digit17$Customizatio = _Digit17.Customizations) === null || _Digit17$Customizatio === void 0 ? void 0 : (_Digit17$Customizatio2 = _Digit17$Customizatio.WS) === null || _Digit17$Customizatio2 === void 0 ? void 0 : _Digit17$Customizatio2.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
|
|
1660
1767
|
return Promise.resolve(returnObject);
|
|
1661
1768
|
} catch (e) {
|
|
@@ -1664,26 +1771,26 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1664
1771
|
};
|
|
1665
1772
|
const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
1666
1773
|
try {
|
|
1667
|
-
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$
|
|
1774
|
+
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio81, _storeData$applicatio82, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _data$reason7, _data$reason7$value, _data$reason8, _data$reason9, _data$reason0, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _plumberInfo3, _storeData$applicatio121, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _storeData$applicatio128, _storeData$applicatio129, _storeData$applicatio134, _storeData$applicatio135, _storeData$applicatio136, _storeData$applicatio137, _storeData$applicatio138, _storeData$applicatio139, _data$reason1, _data$reason1$value, _data$reason10, _data$reason11, _data$reason12, _storeData$applicatio140, _storeData$applicatio141, _storeData$applicatio142, _storeData$applicatio143, _storeData$applicatio144, _storeData$applicatio145, _plumberInfo4, _storeData$applicatio146, _storeData$applicatio147, _storeData$applicatio148, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _storeData$applicatio153, _storeData$applicatio154, _storeData$applicatio155, _storeData$applicatio156, _storeData$applicatio157, _storeData$applicatio158;
|
|
1668
1775
|
const user = (_Digit$UserService$ge0 = Digit.UserService.getUser()) === null || _Digit$UserService$ge0 === void 0 ? void 0 : (_Digit$UserService$ge1 = _Digit$UserService$ge0.info) === null || _Digit$UserService$ge1 === void 0 ? void 0 : _Digit$UserService$ge1.type;
|
|
1669
1776
|
let plumberInfo = [];
|
|
1670
|
-
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1671
|
-
var _storeData$
|
|
1777
|
+
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio81 = storeData.applicationData) === null || _storeData$applicatio81 === void 0 ? void 0 : (_storeData$applicatio82 = _storeData$applicatio81.plumberInfo) === null || _storeData$applicatio82 === void 0 ? void 0 : _storeData$applicatio82.length) > 0) {
|
|
1778
|
+
var _storeData$applicatio83, _storeData$applicatio84, _storeData$applicatio85, _storeData$applicatio86, _storeData$applicatio87, _storeData$applicatio88, _storeData$applicatio89, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _storeData$applicatio102, _storeData$applicatio103, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106;
|
|
1672
1779
|
let plumberInfoData = {};
|
|
1673
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1674
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1675
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1676
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1780
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio83 = storeData.applicationData) !== null && _storeData$applicatio83 !== void 0 && (_storeData$applicatio84 = _storeData$applicatio83.plumberInfo) !== null && _storeData$applicatio84 !== void 0 && (_storeData$applicatio85 = _storeData$applicatio84[0]) !== null && _storeData$applicatio85 !== void 0 && _storeData$applicatio85.licenseNo) plumberInfoData.licenseNo = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio86 = storeData.applicationData) === null || _storeData$applicatio86 === void 0 ? void 0 : (_storeData$applicatio87 = _storeData$applicatio86.plumberInfo) === null || _storeData$applicatio87 === void 0 ? void 0 : (_storeData$applicatio88 = _storeData$applicatio87[0]) === null || _storeData$applicatio88 === void 0 ? void 0 : _storeData$applicatio88.licenseNo;
|
|
1781
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio89 = storeData.applicationData) !== null && _storeData$applicatio89 !== void 0 && (_storeData$applicatio90 = _storeData$applicatio89.plumberInfo) !== null && _storeData$applicatio90 !== void 0 && (_storeData$applicatio91 = _storeData$applicatio90[0]) !== null && _storeData$applicatio91 !== void 0 && _storeData$applicatio91.mobileNumber) plumberInfoData.mobileNumber = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio92 = storeData.applicationData) === null || _storeData$applicatio92 === void 0 ? void 0 : (_storeData$applicatio93 = _storeData$applicatio92.plumberInfo) === null || _storeData$applicatio93 === void 0 ? void 0 : (_storeData$applicatio94 = _storeData$applicatio93[0]) === null || _storeData$applicatio94 === void 0 ? void 0 : _storeData$applicatio94.mobileNumber;
|
|
1782
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio95 = storeData.applicationData) !== null && _storeData$applicatio95 !== void 0 && (_storeData$applicatio96 = _storeData$applicatio95.plumberInfo) !== null && _storeData$applicatio96 !== void 0 && (_storeData$applicatio97 = _storeData$applicatio96[0]) !== null && _storeData$applicatio97 !== void 0 && _storeData$applicatio97.id) plumberInfoData.id = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio98 = storeData.applicationData) === null || _storeData$applicatio98 === void 0 ? void 0 : (_storeData$applicatio99 = _storeData$applicatio98.plumberInfo) === null || _storeData$applicatio99 === void 0 ? void 0 : (_storeData$applicatio100 = _storeData$applicatio99[0]) === null || _storeData$applicatio100 === void 0 ? void 0 : _storeData$applicatio100.id;
|
|
1783
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio101 = storeData.applicationData) !== null && _storeData$applicatio101 !== void 0 && (_storeData$applicatio102 = _storeData$applicatio101.plumberInfo) !== null && _storeData$applicatio102 !== void 0 && (_storeData$applicatio103 = _storeData$applicatio102[0]) !== null && _storeData$applicatio103 !== void 0 && _storeData$applicatio103.name) plumberInfoData.name = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio104 = storeData.applicationData) === null || _storeData$applicatio104 === void 0 ? void 0 : (_storeData$applicatio105 = _storeData$applicatio104.plumberInfo) === null || _storeData$applicatio105 === void 0 ? void 0 : (_storeData$applicatio106 = _storeData$applicatio105[0]) === null || _storeData$applicatio106 === void 0 ? void 0 : _storeData$applicatio106.name;
|
|
1677
1784
|
plumberInfo = [plumberInfoData];
|
|
1678
1785
|
}
|
|
1679
1786
|
let wsPayload = {
|
|
1680
1787
|
WaterConnection: {
|
|
1681
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1682
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1683
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1684
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1685
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1686
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1788
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio107 = storeData.applicationData) === null || _storeData$applicatio107 === void 0 ? void 0 : _storeData$applicatio107.id,
|
|
1789
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio108 = storeData.applicationData) === null || _storeData$applicatio108 === void 0 ? void 0 : _storeData$applicatio108.applicationNo,
|
|
1790
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio109 = storeData.applicationData) === null || _storeData$applicatio109 === void 0 ? void 0 : _storeData$applicatio109.applicationStatus,
|
|
1791
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio110 = storeData.applicationData) === null || _storeData$applicatio110 === void 0 ? void 0 : _storeData$applicatio110.status,
|
|
1792
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio111 = storeData.applicationData) === null || _storeData$applicatio111 === void 0 ? void 0 : _storeData$applicatio111.connectionNo,
|
|
1793
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio112 = storeData.applicationData) === null || _storeData$applicatio112 === void 0 ? void 0 : _storeData$applicatio112.connectionHolders,
|
|
1687
1794
|
applicationType: "WATER_RECONNECTION",
|
|
1688
1795
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1689
1796
|
isdisconnection: false,
|
|
@@ -1693,24 +1800,24 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1693
1800
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1694
1801
|
water: true,
|
|
1695
1802
|
sewerage: false,
|
|
1696
|
-
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1697
|
-
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1803
|
+
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio113 = storeData.applicationData) === null || _storeData$applicatio113 === void 0 ? void 0 : _storeData$applicatio113.proposedTaps) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio114 = storeData.applicationData) === null || _storeData$applicatio114 === void 0 ? void 0 : _storeData$applicatio114.proposedTaps),
|
|
1804
|
+
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio115 = storeData.applicationData) === null || _storeData$applicatio115 === void 0 ? void 0 : (_storeData$applicatio116 = _storeData$applicatio115.proposedPipeSize) === null || _storeData$applicatio116 === void 0 ? void 0 : _storeData$applicatio116.size) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio117 = storeData.applicationData) === null || _storeData$applicatio117 === void 0 ? void 0 : (_storeData$applicatio118 = _storeData$applicatio117.proposedPipeSize) === null || _storeData$applicatio118 === void 0 ? void 0 : _storeData$applicatio118.size),
|
|
1698
1805
|
service: "Water",
|
|
1699
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1700
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1806
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio119 = storeData.applicationData) === null || _storeData$applicatio119 === void 0 ? void 0 : _storeData$applicatio119.property,
|
|
1807
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio120 = storeData.applicationData) === null || _storeData$applicatio120 === void 0 ? void 0 : _storeData$applicatio120.propertyId,
|
|
1701
1808
|
oldConnectionNo: null,
|
|
1702
1809
|
plumberInfo: ((_plumberInfo3 = plumberInfo) === null || _plumberInfo3 === void 0 ? void 0 : _plumberInfo3.length) > 0 ? plumberInfo : null,
|
|
1703
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1810
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio121 = storeData.applicationData) === null || _storeData$applicatio121 === void 0 ? void 0 : _storeData$applicatio121.roadCuttingInfo,
|
|
1704
1811
|
roadCuttingArea: null,
|
|
1705
1812
|
roadType: null,
|
|
1706
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1707
|
-
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1708
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1709
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1710
|
-
connectionType: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1711
|
-
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1813
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio122 = storeData.applicationData) === null || _storeData$applicatio122 === void 0 ? void 0 : _storeData$applicatio122.connectionExecutionDate,
|
|
1814
|
+
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio123 = storeData.applicationData) === null || _storeData$applicatio123 === void 0 ? void 0 : _storeData$applicatio123.noOfTaps,
|
|
1815
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio124 = storeData.applicationData) === null || _storeData$applicatio124 === void 0 ? void 0 : _storeData$applicatio124.additionalDetails,
|
|
1816
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio125 = storeData.applicationData) === null || _storeData$applicatio125 === void 0 ? void 0 : _storeData$applicatio125.tenantId,
|
|
1817
|
+
connectionType: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio126 = storeData.applicationData) === null || _storeData$applicatio126 === void 0 ? void 0 : _storeData$applicatio126.connectionType) || null,
|
|
1818
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio127 = storeData.applicationData) === null || _storeData$applicatio127 === void 0 ? void 0 : _storeData$applicatio127.waterSource) || null,
|
|
1712
1819
|
processInstance: {
|
|
1713
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1820
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio128 = storeData.applicationData) === null || _storeData$applicatio128 === void 0 ? void 0 : _storeData$applicatio128.processInstance),
|
|
1714
1821
|
action: "INITIATE",
|
|
1715
1822
|
businessService: "WSReconnection"
|
|
1716
1823
|
},
|
|
@@ -1718,19 +1825,19 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1718
1825
|
},
|
|
1719
1826
|
disconnectRequest: false
|
|
1720
1827
|
};
|
|
1721
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1722
|
-
var _storeData$
|
|
1723
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1724
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1828
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio129 = storeData.applicationData) !== null && _storeData$applicatio129 !== void 0 && _storeData$applicatio129.connectionType) {
|
|
1829
|
+
var _storeData$applicatio130, _storeData$applicatio131, _storeData$applicatio132, _storeData$applicatio133;
|
|
1830
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio130 = storeData.applicationData) !== null && _storeData$applicatio130 !== void 0 && _storeData$applicatio130.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio131 = storeData.applicationData) === null || _storeData$applicatio131 === void 0 ? void 0 : _storeData$applicatio131.meterInstallationDate;
|
|
1831
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio132 = storeData.applicationData) !== null && _storeData$applicatio132 !== void 0 && _storeData$applicatio132.meterId) wsPayload.WaterConnection.meterId = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio133 = storeData.applicationData) === null || _storeData$applicatio133 === void 0 ? void 0 : _storeData$applicatio133.meterId;
|
|
1725
1832
|
}
|
|
1726
1833
|
let swPayload = {
|
|
1727
1834
|
SewerageConnection: {
|
|
1728
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1729
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1730
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1731
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1732
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1733
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1835
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio134 = storeData.applicationData) === null || _storeData$applicatio134 === void 0 ? void 0 : _storeData$applicatio134.id,
|
|
1836
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio135 = storeData.applicationData) === null || _storeData$applicatio135 === void 0 ? void 0 : _storeData$applicatio135.applicationNo,
|
|
1837
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio136 = storeData.applicationData) === null || _storeData$applicatio136 === void 0 ? void 0 : _storeData$applicatio136.applicationStatus,
|
|
1838
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio137 = storeData.applicationData) === null || _storeData$applicatio137 === void 0 ? void 0 : _storeData$applicatio137.status,
|
|
1839
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio138 = storeData.applicationData) === null || _storeData$applicatio138 === void 0 ? void 0 : _storeData$applicatio138.connectionNo,
|
|
1840
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio139 = storeData.applicationData) === null || _storeData$applicatio139 === void 0 ? void 0 : _storeData$applicatio139.connectionHolders,
|
|
1734
1841
|
applicationType: "WATER_RECONNECTION",
|
|
1735
1842
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1736
1843
|
isdisconnection: false,
|
|
@@ -1740,25 +1847,25 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1740
1847
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1741
1848
|
water: false,
|
|
1742
1849
|
sewerage: true,
|
|
1743
|
-
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1744
|
-
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1850
|
+
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio140 = storeData.applicationData) === null || _storeData$applicatio140 === void 0 ? void 0 : _storeData$applicatio140.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio141 = storeData.applicationData) === null || _storeData$applicatio141 === void 0 ? void 0 : _storeData$applicatio141.proposedWaterClosets),
|
|
1851
|
+
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio142 = storeData.applicationData) === null || _storeData$applicatio142 === void 0 ? void 0 : _storeData$applicatio142.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio143 = storeData.applicationData) === null || _storeData$applicatio143 === void 0 ? void 0 : _storeData$applicatio143.proposedToilets),
|
|
1745
1852
|
service: "Sewerage",
|
|
1746
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1747
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1853
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio144 = storeData.applicationData) === null || _storeData$applicatio144 === void 0 ? void 0 : _storeData$applicatio144.property,
|
|
1854
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio145 = storeData.applicationData) === null || _storeData$applicatio145 === void 0 ? void 0 : _storeData$applicatio145.propertyId,
|
|
1748
1855
|
oldConnectionNo: null,
|
|
1749
1856
|
plumberInfo: ((_plumberInfo4 = plumberInfo) === null || _plumberInfo4 === void 0 ? void 0 : _plumberInfo4.length) > 0 ? plumberInfo : null,
|
|
1750
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1857
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio146 = storeData.applicationData) === null || _storeData$applicatio146 === void 0 ? void 0 : _storeData$applicatio146.roadCuttingInfo,
|
|
1751
1858
|
roadCuttingArea: null,
|
|
1752
1859
|
roadType: null,
|
|
1753
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1754
|
-
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1755
|
-
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1756
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1757
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1860
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio147 = storeData.applicationData) === null || _storeData$applicatio147 === void 0 ? void 0 : _storeData$applicatio147.connectionExecutionDate,
|
|
1861
|
+
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio148 = storeData.applicationData) === null || _storeData$applicatio148 === void 0 ? void 0 : _storeData$applicatio148.noOfWaterClosets,
|
|
1862
|
+
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio149 = storeData.applicationData) === null || _storeData$applicatio149 === void 0 ? void 0 : _storeData$applicatio149.noOfToilets,
|
|
1863
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio150 = storeData.applicationData) === null || _storeData$applicatio150 === void 0 ? void 0 : _storeData$applicatio150.additionalDetails,
|
|
1864
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio151 = storeData.applicationData) === null || _storeData$applicatio151 === void 0 ? void 0 : _storeData$applicatio151.tenantId,
|
|
1758
1865
|
connectionType: "Non Metered",
|
|
1759
|
-
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1866
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio152 = storeData.applicationData) === null || _storeData$applicatio152 === void 0 ? void 0 : _storeData$applicatio152.waterSource) || null,
|
|
1760
1867
|
processInstance: {
|
|
1761
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1868
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio153 = storeData.applicationData) === null || _storeData$applicatio153 === void 0 ? void 0 : _storeData$applicatio153.processInstance),
|
|
1762
1869
|
action: "INITIATE",
|
|
1763
1870
|
businessService: "SWReconnection"
|
|
1764
1871
|
},
|
|
@@ -1766,7 +1873,8 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1766
1873
|
},
|
|
1767
1874
|
disconnectRequest: false
|
|
1768
1875
|
};
|
|
1769
|
-
|
|
1876
|
+
const isSewerageService = ((service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SEWERAGE" || (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SW") && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio154 = storeData.applicationData) !== null && _storeData$applicatio154 !== void 0 && _storeData$applicatio154.water) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio155 = storeData.applicationData) !== null && _storeData$applicatio155 !== void 0 && (_storeData$applicatio156 = _storeData$applicatio155.connectionNo) !== null && _storeData$applicatio156 !== void 0 && _storeData$applicatio156.includes("WS")) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio157 = storeData.applicationData) !== null && _storeData$applicatio157 !== void 0 && (_storeData$applicatio158 = _storeData$applicatio157.applicationNo) !== null && _storeData$applicatio158 !== void 0 && _storeData$applicatio158.includes("WS"));
|
|
1877
|
+
let returnObject = isSewerageService ? swPayload : wsPayload;
|
|
1770
1878
|
return Promise.resolve(returnObject);
|
|
1771
1879
|
} catch (e) {
|
|
1772
1880
|
return Promise.reject(e);
|
|
@@ -1774,7 +1882,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1774
1882
|
};
|
|
1775
1883
|
const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
|
|
1776
1884
|
try {
|
|
1777
|
-
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$
|
|
1885
|
+
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio159, _storeData$applicatio160, _storeData$applicatio161, _storeData$applicatio162, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio167, _storeData$applicatio168, _storeData$applicatio169, _storeData$applicatio170, _storeData$applicatio171, _storeData$applicatio172, _storeData$applicatio173, _storeData$applicatio174, _Digit18, _Digit18$Customizatio, _Digit18$Customizatio2, _Digit19, _Digit19$Customizatio, _Digit19$Customizatio2;
|
|
1778
1886
|
const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
|
|
1779
1887
|
let wsPayload = {
|
|
1780
1888
|
WaterConnection: {
|
|
@@ -1784,13 +1892,13 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1784
1892
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1785
1893
|
isdisconnection: true,
|
|
1786
1894
|
isDisconnectionTemporary: (data === null || data === void 0 ? void 0 : (_data$type4 = data.type) === null || _data$type4 === void 0 ? void 0 : (_data$type4$value = _data$type4.value) === null || _data$type4$value === void 0 ? void 0 : _data$type4$value.code) === "Temporary" ? true : false,
|
|
1787
|
-
disconnectionReason: (data === null || data === void 0 ? void 0 : (_data$reason13 = data.reason) === null || _data$reason13 === void 0 ? void 0 : (_data$reason13$value = _data$reason13.value) === null || _data$reason13$value === void 0 ? void 0 : _data$reason13$value.code) || (data === null || data === void 0 ? void 0 : (_data$reason14 = data.reason) === null || _data$reason14 === void 0 ? void 0 : _data$reason14.value) || (data === null || data === void 0 ? void 0 : (_data$reason15 = data.reason) === null || _data$reason15 === void 0 ? void 0 : _data$reason15.code) || (data === null || data === void 0 ? void 0 : data.reason) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1788
|
-
documents: (data === null || data === void 0 ? void 0 : data.documents) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1895
|
+
disconnectionReason: (data === null || data === void 0 ? void 0 : (_data$reason13 = data.reason) === null || _data$reason13 === void 0 ? void 0 : (_data$reason13$value = _data$reason13.value) === null || _data$reason13$value === void 0 ? void 0 : _data$reason13$value.code) || (data === null || data === void 0 ? void 0 : (_data$reason14 = data.reason) === null || _data$reason14 === void 0 ? void 0 : _data$reason14.value) || (data === null || data === void 0 ? void 0 : (_data$reason15 = data.reason) === null || _data$reason15 === void 0 ? void 0 : _data$reason15.code) || (data === null || data === void 0 ? void 0 : data.reason) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio159 = storeData.applicationData) === null || _storeData$applicatio159 === void 0 ? void 0 : _storeData$applicatio159.disconnectionReason),
|
|
1896
|
+
documents: (data === null || data === void 0 ? void 0 : data.documents) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio160 = storeData.applicationData) === null || _storeData$applicatio160 === void 0 ? void 0 : _storeData$applicatio160.documents),
|
|
1789
1897
|
water: true,
|
|
1790
1898
|
sewerage: false,
|
|
1791
1899
|
service: "Water",
|
|
1792
1900
|
processInstance: {
|
|
1793
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1901
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio161 = storeData.applicationData) === null || _storeData$applicatio161 === void 0 ? void 0 : _storeData$applicatio161.processInstance),
|
|
1794
1902
|
businessService: "DisconnectWSConnection",
|
|
1795
1903
|
action: "RESUBMIT_APPLICATION"
|
|
1796
1904
|
},
|
|
@@ -1798,10 +1906,10 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1798
1906
|
},
|
|
1799
1907
|
disconnectRequest: true
|
|
1800
1908
|
};
|
|
1801
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1802
|
-
var _storeData$
|
|
1803
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1804
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1909
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio162 = storeData.applicationData) !== null && _storeData$applicatio162 !== void 0 && _storeData$applicatio162.connectionType) {
|
|
1910
|
+
var _storeData$applicatio163, _storeData$applicatio164, _storeData$applicatio165, _storeData$applicatio166;
|
|
1911
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio163 = storeData.applicationData) !== null && _storeData$applicatio163 !== void 0 && _storeData$applicatio163.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio164 = storeData.applicationData) === null || _storeData$applicatio164 === void 0 ? void 0 : _storeData$applicatio164.meterInstallationDate;
|
|
1912
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio165 = storeData.applicationData) !== null && _storeData$applicatio165 !== void 0 && _storeData$applicatio165.meterId) wsPayload.WaterConnection.meterId = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio166 = storeData.applicationData) === null || _storeData$applicatio166 === void 0 ? void 0 : _storeData$applicatio166.meterId;
|
|
1805
1913
|
}
|
|
1806
1914
|
let swPayload = {
|
|
1807
1915
|
SewerageConnection: {
|
|
@@ -1811,13 +1919,13 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1811
1919
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1812
1920
|
isdisconnection: true,
|
|
1813
1921
|
isDisconnectionTemporary: (data === null || data === void 0 ? void 0 : (_data$type5 = data.type) === null || _data$type5 === void 0 ? void 0 : (_data$type5$value = _data$type5.value) === null || _data$type5$value === void 0 ? void 0 : _data$type5$value.code) === "Temporary" ? true : false,
|
|
1814
|
-
disconnectionReason: (data === null || data === void 0 ? void 0 : (_data$reason16 = data.reason) === null || _data$reason16 === void 0 ? void 0 : (_data$reason16$value = _data$reason16.value) === null || _data$reason16$value === void 0 ? void 0 : _data$reason16$value.code) || (data === null || data === void 0 ? void 0 : (_data$reason17 = data.reason) === null || _data$reason17 === void 0 ? void 0 : _data$reason17.value) || (data === null || data === void 0 ? void 0 : (_data$reason18 = data.reason) === null || _data$reason18 === void 0 ? void 0 : _data$reason18.code) || (data === null || data === void 0 ? void 0 : data.reason) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1815
|
-
documents: (data === null || data === void 0 ? void 0 : data.documents) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1922
|
+
disconnectionReason: (data === null || data === void 0 ? void 0 : (_data$reason16 = data.reason) === null || _data$reason16 === void 0 ? void 0 : (_data$reason16$value = _data$reason16.value) === null || _data$reason16$value === void 0 ? void 0 : _data$reason16$value.code) || (data === null || data === void 0 ? void 0 : (_data$reason17 = data.reason) === null || _data$reason17 === void 0 ? void 0 : _data$reason17.value) || (data === null || data === void 0 ? void 0 : (_data$reason18 = data.reason) === null || _data$reason18 === void 0 ? void 0 : _data$reason18.code) || (data === null || data === void 0 ? void 0 : data.reason) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio167 = storeData.applicationData) === null || _storeData$applicatio167 === void 0 ? void 0 : _storeData$applicatio167.disconnectionReason),
|
|
1923
|
+
documents: (data === null || data === void 0 ? void 0 : data.documents) || (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio168 = storeData.applicationData) === null || _storeData$applicatio168 === void 0 ? void 0 : _storeData$applicatio168.documents),
|
|
1816
1924
|
water: false,
|
|
1817
1925
|
sewerage: true,
|
|
1818
1926
|
service: "Sewerage",
|
|
1819
1927
|
processInstance: {
|
|
1820
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1928
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio169 = storeData.applicationData) === null || _storeData$applicatio169 === void 0 ? void 0 : _storeData$applicatio169.processInstance),
|
|
1821
1929
|
businessService: "DisconnectSWConnection",
|
|
1822
1930
|
action: "RESUBMIT_APPLICATION"
|
|
1823
1931
|
},
|
|
@@ -1825,7 +1933,8 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1825
1933
|
},
|
|
1826
1934
|
disconnectRequest: true
|
|
1827
1935
|
};
|
|
1828
|
-
|
|
1936
|
+
const isSewerageService = ((service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SEWERAGE" || (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "SW") && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio170 = storeData.applicationData) !== null && _storeData$applicatio170 !== void 0 && _storeData$applicatio170.water) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio171 = storeData.applicationData) !== null && _storeData$applicatio171 !== void 0 && (_storeData$applicatio172 = _storeData$applicatio171.connectionNo) !== null && _storeData$applicatio172 !== void 0 && _storeData$applicatio172.includes("WS")) && !(storeData !== null && storeData !== void 0 && (_storeData$applicatio173 = storeData.applicationData) !== null && _storeData$applicatio173 !== void 0 && (_storeData$applicatio174 = _storeData$applicatio173.applicationNo) !== null && _storeData$applicatio174 !== void 0 && _storeData$applicatio174.includes("WS"));
|
|
1937
|
+
let returnObject = isSewerageService ? swPayload : wsPayload;
|
|
1829
1938
|
returnObject = (_Digit18 = Digit) !== null && _Digit18 !== void 0 && (_Digit18$Customizatio = _Digit18.Customizations) !== null && _Digit18$Customizatio !== void 0 && (_Digit18$Customizatio2 = _Digit18$Customizatio.WS) !== null && _Digit18$Customizatio2 !== void 0 && _Digit18$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection ? (_Digit19 = Digit) === null || _Digit19 === void 0 ? void 0 : (_Digit19$Customizatio = _Digit19.Customizations) === null || _Digit19$Customizatio === void 0 ? void 0 : (_Digit19$Customizatio2 = _Digit19$Customizatio.WS) === null || _Digit19$Customizatio2 === void 0 ? void 0 : _Digit19$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
|
|
1830
1939
|
return Promise.resolve(returnObject);
|
|
1831
1940
|
} catch (e) {
|
|
@@ -2356,12 +2465,12 @@ const mapExistingDocIdsToPayload = function (uploadingDocs, existingDocs) {
|
|
|
2356
2465
|
};
|
|
2357
2466
|
const convertEditApplicationDetails = function (data, appData, actionData) {
|
|
2358
2467
|
try {
|
|
2359
|
-
var _data$cpt47, _data$cpt47$details, _data$cpt47$details$o, _appData$applicationD, _data$
|
|
2468
|
+
var _data$cpt47, _data$cpt47$details, _data$cpt47$details$o, _appData$applicationD, _data$DocumentsRequir2, _data$cpt48, _data$cpt48$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$cpt49;
|
|
2360
2469
|
data === null || data === void 0 ? void 0 : (_data$cpt47 = data.cpt) === null || _data$cpt47 === void 0 ? void 0 : (_data$cpt47$details = _data$cpt47.details) === null || _data$cpt47$details === void 0 ? void 0 : (_data$cpt47$details$o = _data$cpt47$details.owners) === null || _data$cpt47$details$o === void 0 ? void 0 : _data$cpt47$details$o.forEach(owner => {
|
|
2361
2470
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
2362
2471
|
});
|
|
2363
2472
|
const existingDocs = (appData === null || appData === void 0 ? void 0 : (_appData$applicationD = appData.applicationData) === null || _appData$applicationD === void 0 ? void 0 : _appData$applicationD.documents) || (appData === null || appData === void 0 ? void 0 : appData.documents) || [];
|
|
2364
|
-
let docs = (data === null || data === void 0 ? void 0 : (_data$
|
|
2473
|
+
let docs = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir2 = data.DocumentsRequired) === null || _data$DocumentsRequir2 === void 0 ? void 0 : _data$DocumentsRequir2.documents) || [];
|
|
2365
2474
|
if (docs && docs.length > 0 && existingDocs && existingDocs.length > 0) {
|
|
2366
2475
|
docs = mapExistingDocIdsToPayload(docs, existingDocs);
|
|
2367
2476
|
}
|
|
@@ -2455,7 +2564,7 @@ const convertDisonnectApplicationData = function (data, serviceType, editByConfi
|
|
|
2455
2564
|
};
|
|
2456
2565
|
const convertDisonnectEditApplicationDetails = function (data, appData, actionData) {
|
|
2457
2566
|
try {
|
|
2458
|
-
var _data$plumberDetails7, _data$plumberDetails8, _data$plumberDetails9, _data$plumberDetails0, _data$plumberDetails1, _data$plumberDetails10, _appData$applicationD6, _appData$applicationD7, _appData$applicationD8, _data$disConnectionDe, _data$disConnectionDe2, _data$disConnectionDe3, _data$disConnectionDe4, _data$
|
|
2567
|
+
var _data$plumberDetails7, _data$plumberDetails8, _data$plumberDetails9, _data$plumberDetails0, _data$plumberDetails1, _data$plumberDetails10, _appData$applicationD6, _appData$applicationD7, _appData$applicationD8, _data$disConnectionDe, _data$disConnectionDe2, _data$disConnectionDe3, _data$disConnectionDe4, _data$DocumentsRequir3, _data$disConnectionDe5, _data$disConnectionDe6;
|
|
2459
2568
|
const docs = sessionStorage.getItem("DISCONNECTION_EDIT_DOCS");
|
|
2460
2569
|
const docsData = docs ? JSON.parse(docs) : "";
|
|
2461
2570
|
const documentsData = [];
|
|
@@ -2483,7 +2592,7 @@ const convertDisonnectEditApplicationDetails = function (data, appData, actionDa
|
|
|
2483
2592
|
}];
|
|
2484
2593
|
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) || "",
|
|
2485
2594
|
_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,
|
|
2486
|
-
_temp3 = (documentsData === null || documentsData === void 0 ? void 0 : documentsData.length) > 0 ? documentsData : data === null || data === void 0 ? void 0 : (_data$
|
|
2595
|
+
_temp3 = (documentsData === null || documentsData === void 0 ? void 0 : documentsData.length) > 0 ? documentsData : data === null || data === void 0 ? void 0 : (_data$DocumentsRequir3 = data.DocumentsRequired) === null || _data$DocumentsRequir3 === void 0 ? void 0 : _data$DocumentsRequir3.documents;
|
|
2487
2596
|
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) {
|
|
2488
2597
|
var _data$plumberDetails11, _data$plumberDetails12, _data$plumberDetails13;
|
|
2489
2598
|
let payload = {
|
|
@@ -2537,8 +2646,8 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2537
2646
|
var _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8;
|
|
2538
2647
|
function _temp9() {
|
|
2539
2648
|
function _temp7() {
|
|
2540
|
-
var _data$
|
|
2541
|
-
if (data !== null && data !== void 0 && (_data$
|
|
2649
|
+
var _data$DocumentsRequir4, _data$DocumentsRequir5, _data$DocumentsRequir6, _appData$applicationD9, _data$ConnectionHolde87, _data$ConnectionHolde88, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir7, _data$cpt50;
|
|
2650
|
+
if (data !== null && data !== void 0 && (_data$DocumentsRequir4 = data.DocumentsRequired) !== null && _data$DocumentsRequir4 !== void 0 && (_data$DocumentsRequir5 = _data$DocumentsRequir4.documents) !== null && _data$DocumentsRequir5 !== void 0 && _data$DocumentsRequir5.length) formData.documents = data === null || data === void 0 ? void 0 : (_data$DocumentsRequir6 = data.DocumentsRequired) === null || _data$DocumentsRequir6 === void 0 ? void 0 : _data$DocumentsRequir6.documents;else formData.documents = null;
|
|
2542
2651
|
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) || [];
|
|
2543
2652
|
if (formData.documents && formData.documents.length > 0 && existingDocs && existingDocs.length > 0) {
|
|
2544
2653
|
formData.documents = mapExistingDocIdsToPayload(formData.documents, existingDocs);
|
|
@@ -2566,7 +2675,7 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2566
2675
|
};
|
|
2567
2676
|
formData.action = actionData;
|
|
2568
2677
|
formData.channel = ((_Digit$UserService$ge12 = Digit.UserService.getUser()) === null || _Digit$UserService$ge12 === void 0 ? void 0 : (_Digit$UserService$ge13 = _Digit$UserService$ge12.info) === null || _Digit$UserService$ge13 === void 0 ? void 0 : (_Digit$UserService$ge14 = _Digit$UserService$ge13.type) === null || _Digit$UserService$ge14 === void 0 ? void 0 : _Digit$UserService$ge14.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER";
|
|
2569
|
-
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$
|
|
2678
|
+
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$DocumentsRequir7 = data.DocumentsRequired) === null || _data$DocumentsRequir7 === void 0 ? void 0 : _data$DocumentsRequir7.documents) || []));
|
|
2570
2679
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify(data === null || data === void 0 ? void 0 : (_data$cpt50 = data.cpt) === null || _data$cpt50 === void 0 ? void 0 : _data$cpt50.details));
|
|
2571
2680
|
return formData;
|
|
2572
2681
|
}
|
|
@@ -11375,7 +11484,7 @@ const configNOCApproverApplication = _ref => {
|
|
|
11375
11484
|
};
|
|
11376
11485
|
|
|
11377
11486
|
const configWSApproverApplication = _ref => {
|
|
11378
|
-
var _action$action;
|
|
11487
|
+
var _action$action, _businessService$toUp;
|
|
11379
11488
|
let {
|
|
11380
11489
|
t,
|
|
11381
11490
|
action,
|
|
@@ -11441,12 +11550,16 @@ const configWSApproverApplication = _ref => {
|
|
|
11441
11550
|
}
|
|
11442
11551
|
}];
|
|
11443
11552
|
const isActivate = (action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION";
|
|
11553
|
+
const isAmendment = businessService === null || businessService === void 0 ? void 0 : (_businessService$toUp = businessService.toUpperCase()) === null || _businessService$toUp === void 0 ? void 0 : _businessService$toUp.includes("AMENDMENT");
|
|
11444
11554
|
const getHeadingLabel = () => {
|
|
11445
11555
|
if (isActivate) {
|
|
11446
11556
|
const translated = t("WF_APPROVE_APPLICATION");
|
|
11447
11557
|
if (translated && translated !== "WF_APPROVE_APPLICATION") return translated;
|
|
11448
11558
|
return "Approve Application";
|
|
11449
11559
|
}
|
|
11560
|
+
if (isAmendment) {
|
|
11561
|
+
return `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_${action === null || action === void 0 ? void 0 : action.action}`;
|
|
11562
|
+
}
|
|
11450
11563
|
return `WF_${action === null || action === void 0 ? void 0 : action.action}_APPLICATION`;
|
|
11451
11564
|
};
|
|
11452
11565
|
const getSubmitLabel = () => {
|
|
@@ -11459,6 +11572,9 @@ const configWSApproverApplication = _ref => {
|
|
|
11459
11572
|
}
|
|
11460
11573
|
return "Approve Connection";
|
|
11461
11574
|
}
|
|
11575
|
+
if (isAmendment) {
|
|
11576
|
+
return `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_${action === null || action === void 0 ? void 0 : action.action}`;
|
|
11577
|
+
}
|
|
11462
11578
|
return `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_${action === null || action === void 0 ? void 0 : action.action}`;
|
|
11463
11579
|
};
|
|
11464
11580
|
return {
|
|
@@ -16602,7 +16718,7 @@ function PropertyDocuments(_ref) {
|
|
|
16602
16718
|
return t("NA");
|
|
16603
16719
|
};
|
|
16604
16720
|
const renderDocumentRow = (value, index) => {
|
|
16605
|
-
var _pdfFiles$value$fileS;
|
|
16721
|
+
var _pdfFiles$value$fileS, _value$documentType, _value$documentType2, _value$documentType5, _value$documentType6;
|
|
16606
16722
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
16607
16723
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
16608
16724
|
const docUid = getDocNumber(value);
|
|
@@ -16618,10 +16734,14 @@ function PropertyDocuments(_ref) {
|
|
|
16618
16734
|
typeLabel = "Ownership Proof*";
|
|
16619
16735
|
numLabel = "Ownership Proof Document Number";
|
|
16620
16736
|
uploadLabel = "Upload Ownership Proof*";
|
|
16737
|
+
} else if (value.title === "WS_DJB_EMPLOYEE_ID" || value !== null && value !== void 0 && (_value$documentType = value.documentType) !== null && _value$documentType !== void 0 && _value$documentType.includes("DJB_EMPLOYEE") || value !== null && value !== void 0 && (_value$documentType2 = value.documentType) !== null && _value$documentType2 !== void 0 && _value$documentType2.includes("EMPLOYEE_ID")) {
|
|
16738
|
+
typeLabel = "";
|
|
16739
|
+
numLabel = "";
|
|
16740
|
+
uploadLabel = "Upload Employee ID Document*";
|
|
16621
16741
|
} else if (value.title === "WS_OTHER_DOCUMENTS") {
|
|
16622
|
-
var _value$
|
|
16742
|
+
var _value$documentType3, _value$documentType4;
|
|
16623
16743
|
typeLabel = "Other Documents*";
|
|
16624
|
-
const isOtherDocRemark = (value === null || value === void 0 ? void 0 : (_value$
|
|
16744
|
+
const isOtherDocRemark = (value === null || value === void 0 ? void 0 : (_value$documentType3 = value.documentType) === null || _value$documentType3 === void 0 ? void 0 : _value$documentType3.includes("OTHER_DOCUMENTS")) || (value === null || value === void 0 ? void 0 : (_value$documentType4 = value.documentType) === null || _value$documentType4 === void 0 ? void 0 : _value$documentType4.includes("OTHERDOCUMENTS")) || String(docSubType).toUpperCase().includes("OTHER_DOCUMENTS") || String(docSubType).toUpperCase().includes("OTHER DOCUMENT");
|
|
16625
16745
|
numLabel = isOtherDocRemark ? "Other Document Remark" : value.numberLabel || "Other Document Number";
|
|
16626
16746
|
uploadLabel = "Upload Other Documents*";
|
|
16627
16747
|
} else if (value.title === "WS_APPLICANT_PHOTO") {
|
|
@@ -16638,13 +16758,13 @@ function PropertyDocuments(_ref) {
|
|
|
16638
16758
|
style: {
|
|
16639
16759
|
marginBottom: "24px"
|
|
16640
16760
|
}
|
|
16641
|
-
}, /*#__PURE__*/React.createElement(StatusTable, null, !isPhoto && value.title !== "WS_APPLICANT_SIGNATURE" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16761
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, !isPhoto && value.title !== "WS_APPLICANT_SIGNATURE" && value.title !== "WS_DJB_EMPLOYEE_ID" && !(value !== null && value !== void 0 && (_value$documentType5 = value.documentType) !== null && _value$documentType5 !== void 0 && _value$documentType5.includes("DJB_EMPLOYEE")) && !(value !== null && value !== void 0 && (_value$documentType6 = value.documentType) !== null && _value$documentType6 !== void 0 && _value$documentType6.includes("EMPLOYEE_ID")) && /*#__PURE__*/React.createElement(React.Fragment, null, typeLabel ? /*#__PURE__*/React.createElement(Row, {
|
|
16642
16762
|
label: typeLabel,
|
|
16643
16763
|
text: docSubType || t("NA")
|
|
16644
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
16764
|
+
}) : null, numLabel ? /*#__PURE__*/React.createElement(Row, {
|
|
16645
16765
|
label: numLabel,
|
|
16646
16766
|
text: docUid || t("NA")
|
|
16647
|
-
})), /*#__PURE__*/React.createElement(Row, {
|
|
16767
|
+
}) : null), /*#__PURE__*/React.createElement(Row, {
|
|
16648
16768
|
label: uploadLabel,
|
|
16649
16769
|
text: /*#__PURE__*/React.createElement("div", {
|
|
16650
16770
|
style: {
|
|
@@ -16781,7 +16901,7 @@ function PropertyDocuments(_ref) {
|
|
|
16781
16901
|
justifyContent: "flex-start"
|
|
16782
16902
|
}
|
|
16783
16903
|
}, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$values2 = document.values) === null || _document$values2 === void 0 ? void 0 : _document$values2.map((value, index) => {
|
|
16784
|
-
var _pdfFiles$value$fileS2, _value$
|
|
16904
|
+
var _pdfFiles$value$fileS2, _value$documentType7;
|
|
16785
16905
|
return /*#__PURE__*/React.createElement("a", {
|
|
16786
16906
|
target: "_",
|
|
16787
16907
|
href: (_pdfFiles$value$fileS2 = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS2 === void 0 ? void 0 : _pdfFiles$value$fileS2.split(",")[0],
|
|
@@ -16809,7 +16929,7 @@ function PropertyDocuments(_ref) {
|
|
|
16809
16929
|
marginTop: "8px",
|
|
16810
16930
|
fontWeight: "bold"
|
|
16811
16931
|
}
|
|
16812
|
-
}, t(value === null || value === void 0 ? void 0 : value.title)), isSendBackFlow ? value !== null && value !== void 0 && (_value$
|
|
16932
|
+
}, t(value === null || value === void 0 ? void 0 : value.title)), isSendBackFlow ? value !== null && value !== void 0 && (_value$documentType7 = value.documentType) !== null && _value$documentType7 !== void 0 && _value$documentType7.includes("NOC") ? /*#__PURE__*/React.createElement("p", {
|
|
16813
16933
|
style: {
|
|
16814
16934
|
textAlign: "center"
|
|
16815
16935
|
}
|
|
@@ -20861,6 +20981,118 @@ const ApplicationDetails = props => {
|
|
|
20861
20981
|
})) : /*#__PURE__*/React.createElement(Loader, null));
|
|
20862
20982
|
};
|
|
20863
20983
|
|
|
20984
|
+
const CheckIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
20985
|
+
width: "14",
|
|
20986
|
+
height: "14",
|
|
20987
|
+
viewBox: "0 0 24 24",
|
|
20988
|
+
fill: "none",
|
|
20989
|
+
stroke: "currentColor",
|
|
20990
|
+
strokeWidth: "3",
|
|
20991
|
+
strokeLinecap: "round",
|
|
20992
|
+
strokeLinejoin: "round"
|
|
20993
|
+
}, /*#__PURE__*/React.createElement("polyline", {
|
|
20994
|
+
points: "20 6 9 17 4 12"
|
|
20995
|
+
}));
|
|
20996
|
+
const ClockIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
20997
|
+
width: "14",
|
|
20998
|
+
height: "14",
|
|
20999
|
+
viewBox: "0 0 24 24",
|
|
21000
|
+
fill: "none",
|
|
21001
|
+
stroke: "currentColor",
|
|
21002
|
+
strokeWidth: "2",
|
|
21003
|
+
strokeLinecap: "round",
|
|
21004
|
+
strokeLinejoin: "round"
|
|
21005
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
21006
|
+
cx: "12",
|
|
21007
|
+
cy: "12",
|
|
21008
|
+
r: "10"
|
|
21009
|
+
}), /*#__PURE__*/React.createElement("polyline", {
|
|
21010
|
+
className: "clock-hands2",
|
|
21011
|
+
points: "12 6 12 12 16 14"
|
|
21012
|
+
}));
|
|
21013
|
+
const WorkflowTimeline = _ref => {
|
|
21014
|
+
var _workflowDetails$data;
|
|
21015
|
+
let {
|
|
21016
|
+
workflowDetails,
|
|
21017
|
+
hideTimeline,
|
|
21018
|
+
setHideTimeline
|
|
21019
|
+
} = _ref;
|
|
21020
|
+
const {
|
|
21021
|
+
t
|
|
21022
|
+
} = useTranslation();
|
|
21023
|
+
const timeline = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances;
|
|
21024
|
+
if (!timeline || timeline.length === 0) {
|
|
21025
|
+
return null;
|
|
21026
|
+
}
|
|
21027
|
+
const getStatusClass = (index, checkpoint) => {
|
|
21028
|
+
var _checkpoint$state, _checkpoint$state2, _checkpoint$state3, _checkpoint$state4;
|
|
21029
|
+
const isTerminal = (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state = checkpoint.state) === null || _checkpoint$state === void 0 ? void 0 : _checkpoint$state.state) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state2 = checkpoint.state) === null || _checkpoint$state2 === void 0 ? void 0 : _checkpoint$state2.applicationStatus) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state3 = checkpoint.state) === null || _checkpoint$state3 === void 0 ? void 0 : _checkpoint$state3.status) === "ACTIVE" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state4 = checkpoint.state) === null || _checkpoint$state4 === void 0 ? void 0 : _checkpoint$state4.isTerminateState);
|
|
21030
|
+
if (index === 0 && !isTerminal) return "current2";
|
|
21031
|
+
return "completed2";
|
|
21032
|
+
};
|
|
21033
|
+
const convertEpochToDateTime = epoch => {
|
|
21034
|
+
if (!epoch) return "N/A";
|
|
21035
|
+
const date = new Date(epoch);
|
|
21036
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
21037
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
21038
|
+
const year = date.getFullYear().toString().slice(-2);
|
|
21039
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
|
21040
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
21041
|
+
return `${day}/${month}/${year} ${hours}:${minutes}`;
|
|
21042
|
+
};
|
|
21043
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
21044
|
+
className: "workflow-timeline-card2 digit-form-composer",
|
|
21045
|
+
style: {
|
|
21046
|
+
background: "#fff",
|
|
21047
|
+
padding: "16px",
|
|
21048
|
+
height: hideTimeline ? "100%" : ""
|
|
21049
|
+
}
|
|
21050
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21051
|
+
className: `timeline-header-wrapper ${hideTimeline ? "collapsed" : ""}`
|
|
21052
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
21053
|
+
style: {
|
|
21054
|
+
marginBottom: "0",
|
|
21055
|
+
fontSize: "16px",
|
|
21056
|
+
fontWeight: "700",
|
|
21057
|
+
color: "#374151"
|
|
21058
|
+
},
|
|
21059
|
+
className: hideTimeline ? "hidden-content" : ""
|
|
21060
|
+
}, t("WORKFLOW_TIMELINE"))), /*#__PURE__*/React.createElement("div", {
|
|
21061
|
+
className: hideTimeline ? "hidden-content" : "timeline-container2"
|
|
21062
|
+
}, timeline.map((checkpoint, index) => {
|
|
21063
|
+
var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$state5, _checkpoint$state6, _checkpoint$state7, _checkpoint$assigner, _checkpoint$assigner2;
|
|
21064
|
+
const statusClass = getStatusClass(index, checkpoint);
|
|
21065
|
+
const showLine = index !== timeline.length - 1 && timeline.length > 1;
|
|
21066
|
+
const epochTime = (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModifiedTime) || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.createdTime);
|
|
21067
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21068
|
+
key: index,
|
|
21069
|
+
className: `timeline-item2 ${statusClass}`
|
|
21070
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21071
|
+
className: "timeline-marker2"
|
|
21072
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21073
|
+
className: "timeline-circle2"
|
|
21074
|
+
}, statusClass === "completed2" ? /*#__PURE__*/React.createElement(CheckIcon, null) : /*#__PURE__*/React.createElement(ClockIcon, null)), showLine && /*#__PURE__*/React.createElement("div", {
|
|
21075
|
+
className: "timeline-line2"
|
|
21076
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
21077
|
+
className: "timeline-content2"
|
|
21078
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21079
|
+
className: "timeline-header2"
|
|
21080
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21081
|
+
className: "timeline-title2"
|
|
21082
|
+
}, t(`WF_${checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state5 = checkpoint.state) === null || _checkpoint$state5 === void 0 ? void 0 : _checkpoint$state5.state}`)), /*#__PURE__*/React.createElement("span", {
|
|
21083
|
+
className: "timeline-date2"
|
|
21084
|
+
}, convertEpochToDateTime(epochTime))), /*#__PURE__*/React.createElement("div", {
|
|
21085
|
+
className: "timeline-body2"
|
|
21086
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21087
|
+
className: `timeline-status-tag2 status-${statusClass}`
|
|
21088
|
+
}, t((checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state6 = checkpoint.state) === null || _checkpoint$state6 === void 0 ? void 0 : _checkpoint$state6.applicationStatus) || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state7 = checkpoint.state) === null || _checkpoint$state7 === void 0 ? void 0 : _checkpoint$state7.state))), (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment) && /*#__PURE__*/React.createElement("div", {
|
|
21089
|
+
className: "timeline-comment2"
|
|
21090
|
+
}, checkpoint.comment)), (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name) && /*#__PURE__*/React.createElement("div", {
|
|
21091
|
+
className: "timeline-footer2"
|
|
21092
|
+
}, /*#__PURE__*/React.createElement("span", null, t("ES_COMMON_ASSIGNED_TO"), ": ", /*#__PURE__*/React.createElement("strong", null, checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.name)))));
|
|
21093
|
+
})));
|
|
21094
|
+
};
|
|
21095
|
+
|
|
20864
21096
|
const ApplicationDetailsBillAmendment = () => {
|
|
20865
21097
|
var _applicationDetails$p, _applicationDetails$p2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$a3;
|
|
20866
21098
|
const queryParams = Digit.Hooks.useQueryParams();
|
|
@@ -20873,6 +21105,8 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20873
21105
|
let serviceType = "WATER";
|
|
20874
21106
|
if (applicationNumber !== null && applicationNumber !== void 0 && applicationNumber.includes("SW")) serviceType = "SEWERAGE";
|
|
20875
21107
|
const [showToast, setShowToast] = useState(false);
|
|
21108
|
+
const [hideTimeline, setHideTimeline] = React.useState(typeof window !== "undefined" ? window.innerWidth < 768 : false);
|
|
21109
|
+
const menuRef = useRef();
|
|
20876
21110
|
const {
|
|
20877
21111
|
isLoading,
|
|
20878
21112
|
isError,
|
|
@@ -20919,6 +21153,10 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20919
21153
|
}
|
|
20920
21154
|
}, [showToast]);
|
|
20921
21155
|
const [showOptions, setShowOptions] = useState(false);
|
|
21156
|
+
const closeMenu = () => {
|
|
21157
|
+
setShowOptions(false);
|
|
21158
|
+
};
|
|
21159
|
+
Digit.Hooks.useClickOutside(menuRef, closeMenu, showOptions);
|
|
20922
21160
|
const getAckPdf = function (amendment, tenantId, t, tableData, app) {
|
|
20923
21161
|
try {
|
|
20924
21162
|
const PDFdata = getWSAcknowledgementData$2(amendment, tenantId, t, tableData, app);
|
|
@@ -20938,25 +21176,42 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20938
21176
|
onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
|
|
20939
21177
|
}];
|
|
20940
21178
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
20941
|
-
className: "employee-main-application-details"
|
|
20942
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
20943
|
-
className: "employee-application-details",
|
|
21179
|
+
className: "employee-main-application-details",
|
|
20944
21180
|
style: {
|
|
20945
|
-
|
|
21181
|
+
display: "flex",
|
|
21182
|
+
gap: "20px"
|
|
20946
21183
|
}
|
|
20947
|
-
}, /*#__PURE__*/React.createElement(
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
21184
|
+
}, isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
21185
|
+
className: `workflow-timeline-wrapper no-scrollbar ${hideTimeline ? "hide-workflow" : ""}`,
|
|
21186
|
+
style: {
|
|
21187
|
+
flex: "1 1 300px",
|
|
21188
|
+
maxWidth: hideTimeline ? "fit-content" : "400px",
|
|
21189
|
+
transition: "max-width 0.3s"
|
|
20952
21190
|
}
|
|
20953
|
-
},
|
|
20954
|
-
|
|
21191
|
+
}, /*#__PURE__*/React.createElement(WorkflowTimeline, {
|
|
21192
|
+
workflowDetails: workflowDetails,
|
|
21193
|
+
hideTimeline: hideTimeline,
|
|
21194
|
+
setHideTimeline: setHideTimeline
|
|
21195
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
21196
|
+
style: {
|
|
21197
|
+
flex: "2 1 500px",
|
|
21198
|
+
minWidth: "300px",
|
|
21199
|
+
position: "relative"
|
|
21200
|
+
}
|
|
21201
|
+
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
21202
|
+
style: {
|
|
21203
|
+
position: "absolute",
|
|
21204
|
+
right: "24px",
|
|
21205
|
+
zIndex: 11
|
|
21206
|
+
}
|
|
21207
|
+
}, /*#__PURE__*/React.createElement(MultiLink, {
|
|
21208
|
+
className: "multilinkWrapper employee-mulitlink-main-divNew",
|
|
20955
21209
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
20956
21210
|
displayOptions: showOptions,
|
|
20957
21211
|
options: dowloadOptions,
|
|
20958
21212
|
downloadBtnClassName: "employee-download-btn-className",
|
|
20959
|
-
optionsClassName: "employee-options-btn-className"
|
|
21213
|
+
optionsClassName: "employee-options-btn-className",
|
|
21214
|
+
ref: menuRef
|
|
20960
21215
|
})), /*#__PURE__*/React.createElement(ApplicationDetails, {
|
|
20961
21216
|
applicationDetails: applicationDetails,
|
|
20962
21217
|
isLoading: isLoading,
|
|
@@ -20969,8 +21224,9 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20969
21224
|
showToast: showToast,
|
|
20970
21225
|
setShowToast: setShowToast,
|
|
20971
21226
|
closeToast: () => setShowToast(null),
|
|
20972
|
-
timelineStatusPrefix: `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_
|
|
20973
|
-
|
|
21227
|
+
timelineStatusPrefix: `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_`,
|
|
21228
|
+
showTimeLine: !isEmployee
|
|
21229
|
+
}))), showToast ? /*#__PURE__*/React.createElement(Toast, {
|
|
20974
21230
|
isDleteBtn: true,
|
|
20975
21231
|
error: updateApplicationError ? "WS_APPLICATION_UPDATE_ERROR" : null,
|
|
20976
21232
|
label: isSuccess ? showToast === null || showToast === void 0 ? void 0 : showToast.label : updateError === null || updateError === void 0 ? void 0 : updateError.Error
|
|
@@ -25467,8 +25723,9 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
25467
25723
|
isclickable: false
|
|
25468
25724
|
}, {
|
|
25469
25725
|
path: "/digit-ui/employee/ws/generate-note-bill-amendment",
|
|
25470
|
-
label: t("
|
|
25471
|
-
show: location.pathname.includes("/generate-note-bill-amendment") ? true : false
|
|
25726
|
+
label: fromScreen ? `${t(fromScreen)} / ${t("WS_APPLICATION_DETAILS_HEADER")}` : t("WS_APPLICATION_DETAILS_HEADER"),
|
|
25727
|
+
show: location.pathname.includes("/generate-note-bill-amendment") ? true : false,
|
|
25728
|
+
isBack: fromScreen && true
|
|
25472
25729
|
}, {
|
|
25473
25730
|
path: "/digit-ui/employee/ws/water/bulk-bil",
|
|
25474
25731
|
label: t("CS_TITLE_BULK_BILL"),
|
|
@@ -25697,9 +25954,11 @@ const App$1 = _ref2 => {
|
|
|
25697
25954
|
})
|
|
25698
25955
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
25699
25956
|
path: `${path}/generate-note-bill-amendment`,
|
|
25700
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
25957
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
25958
|
+
layoutClass: "action"
|
|
25959
|
+
}, /*#__PURE__*/React.createElement(WSApplicationDetailsBillAmendment, {
|
|
25701
25960
|
path
|
|
25702
|
-
})
|
|
25961
|
+
}))
|
|
25703
25962
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
25704
25963
|
path: `${path}/response`,
|
|
25705
25964
|
component: () => /*#__PURE__*/React.createElement(Response, {
|
|
@@ -31625,11 +31884,16 @@ const isOtherDocument = function (code) {
|
|
|
31625
31884
|
}
|
|
31626
31885
|
return code.toUpperCase().includes("OTHER");
|
|
31627
31886
|
};
|
|
31628
|
-
const isRwhDocType = doc => {
|
|
31887
|
+
const isRwhDocType$1 = doc => {
|
|
31629
31888
|
if (!doc) return false;
|
|
31630
31889
|
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
31631
31890
|
return str.includes("RAIN") || str.includes("HARVEST");
|
|
31632
31891
|
};
|
|
31892
|
+
const isStpDocType$1 = doc => {
|
|
31893
|
+
if (!doc) return false;
|
|
31894
|
+
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
31895
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
31896
|
+
};
|
|
31633
31897
|
const removeDuplicateOtherDocuments = function (documentList) {
|
|
31634
31898
|
if (documentList === void 0) {
|
|
31635
31899
|
documentList = [];
|
|
@@ -31706,6 +31970,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31706
31970
|
};
|
|
31707
31971
|
const isTenant = checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : (_formData$ConnectionD2 = _formData$ConnectionD[0]) === null || _formData$ConnectionD2 === void 0 ? void 0 : _formData$ConnectionD2.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD3 = formData.ConnectionDetails) === null || _formData$ConnectionD3 === void 0 ? void 0 : _formData$ConnectionD3.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application = formData.applicationSelection) === null || _formData$application === void 0 ? void 0 : _formData$application.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application2 = formData.applicationSelection) === null || _formData$application2 === void 0 ? void 0 : (_formData$application3 = _formData$application2[0]) === null || _formData$application3 === void 0 ? void 0 : _formData$application3.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$connectionH = formData.connectionHolders) === null || _formData$connectionH === void 0 ? void 0 : (_formData$connectionH2 = _formData$connectionH[0]) === null || _formData$connectionH2 === void 0 ? void 0 : _formData$connectionH2.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH = formData.ConnectionHolderDetails) === null || _formData$ConnectionH === void 0 ? void 0 : (_formData$ConnectionH2 = _formData$ConnectionH[0]) === null || _formData$ConnectionH2 === void 0 ? void 0 : _formData$ConnectionH2.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.applicantType);
|
|
31708
31972
|
const isRwhMandatory = !!((formData === null || formData === void 0 ? void 0 : (_formData$rainWaterHa = formData.rainWaterHarvesting) === null || _formData$rainWaterHa === void 0 ? void 0 : _formData$rainWaterHa.hasCertificate) === true || String(formData === null || formData === void 0 ? void 0 : (_formData$rainWaterHa2 = formData.rainWaterHarvesting) === null || _formData$rainWaterHa2 === void 0 ? void 0 : _formData$rainWaterHa2.hasCertificate) === "true" || (formData === null || formData === void 0 ? void 0 : (_formData$rainWaterHa3 = formData.rainWaterHarvesting) === null || _formData$rainWaterHa3 === void 0 ? void 0 : _formData$rainWaterHa3.isRainwaterHarvesting) === true || String(formData === null || formData === void 0 ? void 0 : (_formData$rainWaterHa4 = formData.rainWaterHarvesting) === null || _formData$rainWaterHa4 === void 0 ? void 0 : _formData$rainWaterHa4.isRainwaterHarvesting) === "true" || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD2 = formData.additionalDetails) === null || _formData$additionalD2 === void 0 ? void 0 : _formData$additionalD2.hasRainWaterHarvestingCertificate) === true || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD3 = formData.additionalDetails) === null || _formData$additionalD3 === void 0 ? void 0 : _formData$additionalD3.isRainwaterHarvesting) === true);
|
|
31973
|
+
const isStpMandatory = false;
|
|
31709
31974
|
const sessionDjb = (_Digit$SessionStorage = Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.djbEmployee;
|
|
31710
31975
|
const djbData = (formData === null || formData === void 0 ? void 0 : formData.djbEmployee) || sessionDjb || (formData === null || formData === void 0 ? void 0 : formData.additionalDetails);
|
|
31711
31976
|
const isDjbEmployee = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
@@ -31732,7 +31997,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31732
31997
|
});
|
|
31733
31998
|
const [enableSubmit, setEnableSubmit] = useState(true);
|
|
31734
31999
|
const [error, setError] = useState(null);
|
|
31735
|
-
const hasRwhUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isRwhDocType(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
32000
|
+
const hasRwhUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isRwhDocType$1(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
32001
|
+
const hasStpUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isStpDocType$1(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
31736
32002
|
const wsDocsData = window.location.href.includes("modify") ? "ModifyConnectionDocuments" : window.location.href.includes("disconnection") ? "DisconnectionDocuments" : "NewWSDocuments";
|
|
31737
32003
|
let action = "create";
|
|
31738
32004
|
const {
|
|
@@ -31959,6 +32225,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31959
32225
|
isOtherDocument: isOther,
|
|
31960
32226
|
isRwhMandatory: isRwhMandatory,
|
|
31961
32227
|
hasRwhUploaded: hasRwhUploaded,
|
|
32228
|
+
isStpMandatory: isStpMandatory,
|
|
32229
|
+
hasStpUploaded: hasStpUploaded,
|
|
31962
32230
|
isTenant: isTenant
|
|
31963
32231
|
});
|
|
31964
32232
|
}), isDjbEmployee && /*#__PURE__*/React.createElement(EmployeeIdDocumentUpload, {
|
|
@@ -31987,6 +32255,24 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31987
32255
|
fontWeight: "600"
|
|
31988
32256
|
}
|
|
31989
32257
|
}, "\u26A0\uFE0F", " ", t("WS_RWH_CERTIFICATE_MANDATORY_INSTRUCTION") || "Rain Water Harvesting Certificate is mandatory to upload. Please upload it under Other Documents.")) : null;
|
|
32258
|
+
const stpAlertBanner = !isTenant && isStpMandatory && !hasStpUploaded ? /*#__PURE__*/React.createElement("div", {
|
|
32259
|
+
style: {
|
|
32260
|
+
display: "flex",
|
|
32261
|
+
alignItems: "center",
|
|
32262
|
+
gap: "10px",
|
|
32263
|
+
marginBottom: "16px",
|
|
32264
|
+
padding: "10px 14px",
|
|
32265
|
+
backgroundColor: "#fff2f0",
|
|
32266
|
+
borderLeft: "4px solid #ff4d4f",
|
|
32267
|
+
borderRadius: "4px"
|
|
32268
|
+
}
|
|
32269
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
32270
|
+
style: {
|
|
32271
|
+
fontSize: "14px",
|
|
32272
|
+
color: "#d32f2f",
|
|
32273
|
+
fontWeight: "600"
|
|
32274
|
+
}
|
|
32275
|
+
}, "\u26A0\uFE0F", " ", t("WS_STP_CERTIFICATE_MANDATORY_INSTRUCTION") || "Sewer Treatment Plant (STP) Certificate is mandatory to upload. Please upload it under Other Documents.")) : null;
|
|
31990
32276
|
const nocDownloadSection = isTenant ? /*#__PURE__*/React.createElement("div", {
|
|
31991
32277
|
style: {
|
|
31992
32278
|
marginBottom: "20px",
|
|
@@ -32029,7 +32315,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
32029
32315
|
onSelect: goNext,
|
|
32030
32316
|
onSkip: () => onSelect(),
|
|
32031
32317
|
isDisabled: enableSubmit
|
|
32032
|
-
}, rwhAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
|
|
32318
|
+
}, rwhAlertBanner, stpAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
|
|
32033
32319
|
label: error,
|
|
32034
32320
|
onClose: () => setError(null),
|
|
32035
32321
|
error: true,
|
|
@@ -32040,7 +32326,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
32040
32326
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
32041
32327
|
title: t("WS_DOCUMENTS"),
|
|
32042
32328
|
defaultOpen: true
|
|
32043
|
-
}, rwhAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
|
|
32329
|
+
}, rwhAlertBanner, stpAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
|
|
32044
32330
|
label: error,
|
|
32045
32331
|
onClose: () => setError(null),
|
|
32046
32332
|
error: true,
|
|
@@ -32344,6 +32630,8 @@ function SelectDocument$2(_ref3) {
|
|
|
32344
32630
|
isOtherDocument: isOther = false,
|
|
32345
32631
|
isRwhMandatory = false,
|
|
32346
32632
|
hasRwhUploaded = false,
|
|
32633
|
+
isStpMandatory = false,
|
|
32634
|
+
hasStpUploaded = false,
|
|
32347
32635
|
isTenant: isTenantProp
|
|
32348
32636
|
} = _ref3;
|
|
32349
32637
|
const fileRef = useRef();
|
|
@@ -32363,7 +32651,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32363
32651
|
const isOwnershipProof = (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.ADDRESSPROOF" || (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.OWNERSHIPPROOF" || (doc === null || doc === void 0 ? void 0 : (_doc$code6 = doc.code) === null || _doc$code6 === void 0 ? void 0 : _doc$code6.includes("ADDRESSPROOF")) || (doc === null || doc === void 0 ? void 0 : (_doc$code7 = doc.code) === null || _doc$code7 === void 0 ? void 0 : _doc$code7.includes("OWNERSHIP"));
|
|
32364
32652
|
const isDocNumberMandatory = isIdentityProof || isOwnershipProof;
|
|
32365
32653
|
const [selectedDocument, setSelectedDocument] = useState(() => {
|
|
32366
|
-
var _filteredDocument$doc, _doc$
|
|
32654
|
+
var _filteredDocument$doc, _doc$dropdownData4, _doc$dropdownData5;
|
|
32367
32655
|
if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32368
32656
|
var _doc$dropdownData;
|
|
32369
32657
|
const match = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData = doc.dropdownData) === null || _doc$dropdownData === void 0 ? void 0 : _doc$dropdownData.find(d => d.code === filteredDocument.documentType);
|
|
@@ -32374,12 +32662,20 @@ function SelectDocument$2(_ref3) {
|
|
|
32374
32662
|
}
|
|
32375
32663
|
if (isOther && isRwhMandatory && !hasRwhUploaded && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32376
32664
|
var _doc$dropdownData2, _rwhMatch$code;
|
|
32377
|
-
const rwhMatch = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData2 = doc.dropdownData) === null || _doc$dropdownData2 === void 0 ? void 0 : _doc$dropdownData2.find(d => isRwhDocType(d));
|
|
32665
|
+
const rwhMatch = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData2 = doc.dropdownData) === null || _doc$dropdownData2 === void 0 ? void 0 : _doc$dropdownData2.find(d => isRwhDocType$1(d));
|
|
32378
32666
|
if (rwhMatch) return {
|
|
32379
32667
|
...rwhMatch,
|
|
32380
32668
|
i18nKey: (_rwhMatch$code = rwhMatch.code) === null || _rwhMatch$code === void 0 ? void 0 : _rwhMatch$code.replaceAll(".", "_")
|
|
32381
32669
|
};
|
|
32382
32670
|
}
|
|
32671
|
+
if (isOther && isStpMandatory && !hasStpUploaded && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32672
|
+
var _doc$dropdownData3, _stpMatch$code;
|
|
32673
|
+
const stpMatch = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData3 = doc.dropdownData) === null || _doc$dropdownData3 === void 0 ? void 0 : _doc$dropdownData3.find(d => isStpDocType$1(d));
|
|
32674
|
+
if (stpMatch) return {
|
|
32675
|
+
...stpMatch,
|
|
32676
|
+
i18nKey: (_stpMatch$code = stpMatch.code) === null || _stpMatch$code === void 0 ? void 0 : _stpMatch$code.replaceAll(".", "_")
|
|
32677
|
+
};
|
|
32678
|
+
}
|
|
32383
32679
|
if (isApplicantPhoto) {
|
|
32384
32680
|
return filteredDocument ? {
|
|
32385
32681
|
...filteredDocument,
|
|
@@ -32395,10 +32691,14 @@ function SelectDocument$2(_ref3) {
|
|
|
32395
32691
|
...filteredDocument,
|
|
32396
32692
|
code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType,
|
|
32397
32693
|
i18nKey: filteredDocument === null || filteredDocument === void 0 ? void 0 : (_filteredDocument$doc = filteredDocument.documentType) === null || _filteredDocument$doc === void 0 ? void 0 : _filteredDocument$doc.replaceAll(".", "_")
|
|
32398
|
-
} : doc !== null && doc !== void 0 && doc.hasDropdown && Array.isArray(doc === null || doc === void 0 ? void 0 : doc.dropdownData) && (doc === null || doc === void 0 ? void 0 : (_doc$
|
|
32694
|
+
} : doc !== null && doc !== void 0 && doc.hasDropdown && Array.isArray(doc === null || doc === void 0 ? void 0 : doc.dropdownData) && (doc === null || doc === void 0 ? void 0 : (_doc$dropdownData4 = doc.dropdownData) === null || _doc$dropdownData4 === void 0 ? void 0 : _doc$dropdownData4.length) > 0 ? (doc === null || doc === void 0 ? void 0 : (_doc$dropdownData5 = doc.dropdownData) === null || _doc$dropdownData5 === void 0 ? void 0 : _doc$dropdownData5.length) === 1 ? doc === null || doc === void 0 ? void 0 : doc.dropdownData[0] : {} : doc;
|
|
32399
32695
|
});
|
|
32400
32696
|
const [file, setFile] = useState(null);
|
|
32401
32697
|
const [uploadedFile, setUploadedFile] = useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null);
|
|
32698
|
+
const [validityDate, setValidityDate] = useState(() => {
|
|
32699
|
+
var _filteredDocument$add;
|
|
32700
|
+
return (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.validityDate) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.validityUpTo) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : (_filteredDocument$add = filteredDocument.additionalDetails) === null || _filteredDocument$add === void 0 ? void 0 : _filteredDocument$add.validityDate) || "";
|
|
32701
|
+
});
|
|
32402
32702
|
const [documentUid, setDocumentUid] = useState(() => {
|
|
32403
32703
|
if (isOther) return "";
|
|
32404
32704
|
const num = (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || "";
|
|
@@ -32417,6 +32717,8 @@ function SelectDocument$2(_ref3) {
|
|
|
32417
32717
|
const [docFileType, setDocFileType] = useState("");
|
|
32418
32718
|
const [digiLockerUpload, setDigilockerUpload] = useState(false);
|
|
32419
32719
|
const [docNumberError, setDocNumberError] = useState(null);
|
|
32720
|
+
const isSelectedRwh = isRwhDocType$1(selectedDocument);
|
|
32721
|
+
const isSelectedStp = isStpDocType$1(selectedDocument);
|
|
32420
32722
|
const isOtherDocumentsRemark = Boolean(isOther && selectedDocument && ((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) === "OWNER.OTHERDOCUMENTS.OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) === "OWNER_OTHERDOCUMENTS_OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) === "OWNER_OTHERDOCUMENTS_OTHER_DOCUMENTS" || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod = selectedDocument.code) === null || _selectedDocument$cod === void 0 ? void 0 : _selectedDocument$cod.endsWith(".OTHER_DOCUMENTS")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod2 = selectedDocument.code) === null || _selectedDocument$cod2 === void 0 ? void 0 : _selectedDocument$cod2.includes("OTHER_DOCUMENTS")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$nam = selectedDocument.name) === null || _selectedDocument$nam === void 0 ? void 0 : (_selectedDocument$nam2 = _selectedDocument$nam.toUpperCase()) === null || _selectedDocument$nam2 === void 0 ? void 0 : _selectedDocument$nam2.includes("OTHER DOCUMENT")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$i = selectedDocument.i18nKey) === null || _selectedDocument$i === void 0 ? void 0 : _selectedDocument$i.includes("OTHER_DOCUMENTS"))));
|
|
32421
32723
|
const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
|
|
32422
32724
|
const trimmed = (value || "").trim();
|
|
@@ -32470,6 +32772,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32470
32772
|
setUploadedFile(null);
|
|
32471
32773
|
setFile(null);
|
|
32472
32774
|
setDocumentUid("");
|
|
32775
|
+
setValidityDate("");
|
|
32473
32776
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
32474
32777
|
setSelectedDocument({});
|
|
32475
32778
|
}
|
|
@@ -32511,11 +32814,11 @@ function SelectDocument$2(_ref3) {
|
|
|
32511
32814
|
};
|
|
32512
32815
|
useEffect(() => {
|
|
32513
32816
|
if (filteredDocument) {
|
|
32514
|
-
var _filteredDocument$doc2, _doc$
|
|
32817
|
+
var _filteredDocument$doc2, _doc$dropdownData7, _doc$dropdownData8;
|
|
32515
32818
|
let match = null;
|
|
32516
32819
|
if (doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32517
|
-
var _doc$
|
|
32518
|
-
match = doc === null || doc === void 0 ? void 0 : (_doc$
|
|
32820
|
+
var _doc$dropdownData6;
|
|
32821
|
+
match = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData6 = doc.dropdownData) === null || _doc$dropdownData6 === void 0 ? void 0 : _doc$dropdownData6.find(d => d.code === filteredDocument.documentType);
|
|
32519
32822
|
}
|
|
32520
32823
|
setSelectedDocument(match ? {
|
|
32521
32824
|
...filteredDocument,
|
|
@@ -32528,7 +32831,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32528
32831
|
...doc,
|
|
32529
32832
|
code: (doc === null || doc === void 0 ? void 0 : doc.code) || "OWNER.APPLICANTPHOTO",
|
|
32530
32833
|
i18nKey: "OWNER_APPLICANTPHOTO"
|
|
32531
|
-
} : doc !== null && doc !== void 0 && doc.hasDropdown && Array.isArray(doc === null || doc === void 0 ? void 0 : doc.dropdownData) && (doc === null || doc === void 0 ? void 0 : (_doc$
|
|
32834
|
+
} : doc !== null && doc !== void 0 && doc.hasDropdown && Array.isArray(doc === null || doc === void 0 ? void 0 : doc.dropdownData) && (doc === null || doc === void 0 ? void 0 : (_doc$dropdownData7 = doc.dropdownData) === null || _doc$dropdownData7 === void 0 ? void 0 : _doc$dropdownData7.length) > 0 ? (doc === null || doc === void 0 ? void 0 : (_doc$dropdownData8 = doc.dropdownData) === null || _doc$dropdownData8 === void 0 ? void 0 : _doc$dropdownData8.length) === 1 ? doc === null || doc === void 0 ? void 0 : doc.dropdownData[0] : {} : doc);
|
|
32532
32835
|
}
|
|
32533
32836
|
}, []);
|
|
32534
32837
|
function selectfile(e, newFile) {
|
|
@@ -32590,7 +32893,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32590
32893
|
const name = d.name || "";
|
|
32591
32894
|
return !(code.includes("NOC_FROM_OWNER") || code === "NOC from Owner" || name.includes("NOC from Owner"));
|
|
32592
32895
|
});
|
|
32593
|
-
if (dropDownData && !dropDownData.some(d => isRwhDocType(d))) {
|
|
32896
|
+
if (dropDownData && !dropDownData.some(d => isRwhDocType$1(d))) {
|
|
32594
32897
|
dropDownData = [...dropDownData, {
|
|
32595
32898
|
code: "OWNER.OTHERDOCUMENTS.RAINWATER_HARVESTING",
|
|
32596
32899
|
i18nKey: "OWNER_OTHERDOCUMENTS_RAINWATER_HARVESTING",
|
|
@@ -32623,9 +32926,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32623
32926
|
setFile(null);
|
|
32624
32927
|
} else if (isRwhMandatory && !hasRwhUploaded) {
|
|
32625
32928
|
var _dropDownData4;
|
|
32626
|
-
const isCurrentRwh = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isRwhDocType(selectedDocument);
|
|
32929
|
+
const isCurrentRwh = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isRwhDocType$1(selectedDocument);
|
|
32627
32930
|
if (!isCurrentRwh && ((_dropDownData4 = dropDownData) === null || _dropDownData4 === void 0 ? void 0 : _dropDownData4.length) > 0) {
|
|
32628
|
-
const rwhMatch = dropDownData.find(d => isRwhDocType(d));
|
|
32931
|
+
const rwhMatch = dropDownData.find(d => isRwhDocType$1(d));
|
|
32629
32932
|
if (rwhMatch && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code))) {
|
|
32630
32933
|
var _rwhMatch$code2;
|
|
32631
32934
|
setSelectedDocument({
|
|
@@ -32634,10 +32937,23 @@ function SelectDocument$2(_ref3) {
|
|
|
32634
32937
|
});
|
|
32635
32938
|
}
|
|
32636
32939
|
}
|
|
32940
|
+
} else if (isStpMandatory && !hasStpUploaded) {
|
|
32941
|
+
var _dropDownData5;
|
|
32942
|
+
const isCurrentStp = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isStpDocType$1(selectedDocument);
|
|
32943
|
+
if (!isCurrentStp && ((_dropDownData5 = dropDownData) === null || _dropDownData5 === void 0 ? void 0 : _dropDownData5.length) > 0) {
|
|
32944
|
+
const stpMatch = dropDownData.find(d => isStpDocType$1(d));
|
|
32945
|
+
if (stpMatch && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code))) {
|
|
32946
|
+
var _stpMatch$code2;
|
|
32947
|
+
setSelectedDocument({
|
|
32948
|
+
...stpMatch,
|
|
32949
|
+
i18nKey: (_stpMatch$code2 = stpMatch.code) === null || _stpMatch$code2 === void 0 ? void 0 : _stpMatch$code2.replaceAll(".", "_")
|
|
32950
|
+
});
|
|
32951
|
+
}
|
|
32952
|
+
}
|
|
32637
32953
|
}
|
|
32638
32954
|
}
|
|
32639
32955
|
}
|
|
32640
|
-
}, [isTenant, isOther, isRwhMandatory, hasRwhUploaded, dropDownData]);
|
|
32956
|
+
}, [isTenant, isOther, isRwhMandatory, hasRwhUploaded, isStpMandatory, hasStpUploaded, dropDownData]);
|
|
32641
32957
|
const [isHidden, setHidden] = useState(false);
|
|
32642
32958
|
const documentDisplayName = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.name) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || (doc === null || doc === void 0 ? void 0 : doc.i18nKey) || (doc === null || doc === void 0 ? void 0 : doc.name) || (doc === null || doc === void 0 ? void 0 : doc.code);
|
|
32643
32959
|
const addError = () => {
|
|
@@ -32695,10 +33011,20 @@ function SelectDocument$2(_ref3) {
|
|
|
32695
33011
|
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
32696
33012
|
documentUid: documentUid,
|
|
32697
33013
|
documentNumber: documentUid,
|
|
33014
|
+
validityDate: validityDate || undefined,
|
|
33015
|
+
validityUpTo: validityDate || undefined,
|
|
33016
|
+
date: validityDate || undefined,
|
|
32698
33017
|
remarks: isOtherDocumentsRemark ? documentUid : undefined,
|
|
32699
|
-
additionalDetails:
|
|
32700
|
-
|
|
32701
|
-
|
|
33018
|
+
additionalDetails: {
|
|
33019
|
+
...(isOtherDocumentsRemark ? {
|
|
33020
|
+
remark: documentUid
|
|
33021
|
+
} : {}),
|
|
33022
|
+
...(validityDate ? {
|
|
33023
|
+
validityDate,
|
|
33024
|
+
validityUpTo: validityDate,
|
|
33025
|
+
date: validityDate
|
|
33026
|
+
} : {})
|
|
33027
|
+
},
|
|
32702
33028
|
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
32703
33029
|
id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
|
|
32704
33030
|
status: "ACTIVE",
|
|
@@ -32709,8 +33035,11 @@ function SelectDocument$2(_ref3) {
|
|
|
32709
33035
|
});
|
|
32710
33036
|
}
|
|
32711
33037
|
const isRwhRequired = isOther && isRwhMandatory;
|
|
32712
|
-
const isRwhSatisfied = hasRwhUploaded || uploadedFile && isRwhDocType(selectedDocument);
|
|
33038
|
+
const isRwhSatisfied = hasRwhUploaded || uploadedFile && isRwhDocType$1(selectedDocument);
|
|
32713
33039
|
const rwhMissing = isRwhRequired && !isRwhSatisfied;
|
|
33040
|
+
const isStpRequired = isOther && isStpMandatory;
|
|
33041
|
+
const isStpSatisfied = hasStpUploaded || uploadedFile && isStpDocType$1(selectedDocument);
|
|
33042
|
+
const stpMissing = isStpRequired && !isStpSatisfied;
|
|
32714
33043
|
const hasOtherUploaded = isOther && (documents === null || documents === void 0 ? void 0 : documents.some(item => {
|
|
32715
33044
|
var _item$documentType4;
|
|
32716
33045
|
return item === null || item === void 0 ? void 0 : (_item$documentType4 = item.documentType) === null || _item$documentType4 === void 0 ? void 0 : _item$documentType4.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
@@ -32719,7 +33048,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32719
33048
|
const isDocNumberMissing = isDocNumberMandatory && (!documentUid || !documentUid.trim());
|
|
32720
33049
|
const isDocMissing = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code));
|
|
32721
33050
|
const isPartiallyFilled = isApplicantPhoto ? false : isDocNumberMandatory ? !uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || isDocNumberMissing : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
|
|
32722
|
-
const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isDocNumberMandatory;
|
|
33051
|
+
const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isOther && isStpMandatory && !hasStpUploaded || isDocNumberMandatory;
|
|
32723
33052
|
const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || effectiveRequired, !!uploadedFile);
|
|
32724
33053
|
if (!isHidden) {
|
|
32725
33054
|
if (err) {
|
|
@@ -32730,13 +33059,15 @@ function SelectDocument$2(_ref3) {
|
|
|
32730
33059
|
addError();
|
|
32731
33060
|
} else if (rwhMissing) {
|
|
32732
33061
|
addError();
|
|
33062
|
+
} else if (stpMissing) {
|
|
33063
|
+
addError();
|
|
32733
33064
|
} else {
|
|
32734
33065
|
removeError();
|
|
32735
33066
|
}
|
|
32736
33067
|
} else if (isHidden) {
|
|
32737
33068
|
removeError();
|
|
32738
33069
|
}
|
|
32739
|
-
}, [uploadedFile, selectedDocument, documentUid, isHidden, effectiveRequired, isPartiallyFilled, hasOtherUploaded, formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD7 = formData.ConnectionDetails) === null || _formData$ConnectionD7 === void 0 ? void 0 : _formData$ConnectionD7[0], isRwhMandatory, hasRwhUploaded]);
|
|
33070
|
+
}, [uploadedFile, selectedDocument, documentUid, validityDate, isHidden, effectiveRequired, isPartiallyFilled, hasOtherUploaded, formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD7 = formData.ConnectionDetails) === null || _formData$ConnectionD7 === void 0 ? void 0 : _formData$ConnectionD7[0], isRwhMandatory, hasRwhUploaded, isStpMandatory, hasStpUploaded]);
|
|
32740
33071
|
useEffect(() => {
|
|
32741
33072
|
(function () {
|
|
32742
33073
|
try {
|
|
@@ -32827,15 +33158,21 @@ function SelectDocument$2(_ref3) {
|
|
|
32827
33158
|
style: {
|
|
32828
33159
|
margin: 0
|
|
32829
33160
|
}
|
|
32830
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), ((doc === null || doc === void 0 ? void 0 : doc.required) || !isTenant && isOther && isRwhMandatory) && /*#__PURE__*/React.createElement("span", {
|
|
33161
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), ((doc === null || doc === void 0 ? void 0 : doc.required) || !isTenant && isOther && (isRwhMandatory || isStpMandatory)) && /*#__PURE__*/React.createElement("span", {
|
|
32831
33162
|
className: "check-page-link-button"
|
|
32832
|
-
}, "*")), " ", !isTenant && isOther && isRwhMandatory && !hasRwhUploaded && !(uploadedFile && isRwhDocType(selectedDocument)) && /*#__PURE__*/React.createElement("div", {
|
|
33163
|
+
}, "*")), " ", !isTenant && isOther && isRwhMandatory && !hasRwhUploaded && !(uploadedFile && isRwhDocType$1(selectedDocument)) && /*#__PURE__*/React.createElement("div", {
|
|
32833
33164
|
style: {
|
|
32834
33165
|
fontSize: "12px",
|
|
32835
33166
|
color: "#d32f2f",
|
|
32836
33167
|
marginTop: "-4px"
|
|
32837
33168
|
}
|
|
32838
|
-
}, "* ", t("WS_RWH_CERTIFICATE_MANDATORY_MSG") || "Rain Water Harvesting Certificate is mandatory to upload."), /*#__PURE__*/React.createElement(
|
|
33169
|
+
}, "* ", t("WS_RWH_CERTIFICATE_MANDATORY_MSG") || "Rain Water Harvesting Certificate is mandatory to upload."), !isTenant && isOther && isStpMandatory && !hasStpUploaded && !(uploadedFile && isStpDocType$1(selectedDocument)) && /*#__PURE__*/React.createElement("div", {
|
|
33170
|
+
style: {
|
|
33171
|
+
fontSize: "12px",
|
|
33172
|
+
color: "#d32f2f",
|
|
33173
|
+
marginTop: "-4px"
|
|
33174
|
+
}
|
|
33175
|
+
}, "* ", t("WS_STP_CERTIFICATE_MANDATORY_MSG") || "Sewer Treatment Plant (STP) Certificate is mandatory to upload."), /*#__PURE__*/React.createElement(Dropdown, {
|
|
32839
33176
|
id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
32840
33177
|
key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
32841
33178
|
className: "form-field",
|
|
@@ -32981,6 +33318,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32981
33318
|
setIsCameraFile(false);
|
|
32982
33319
|
setIsDocumentUidLocked(false);
|
|
32983
33320
|
setDocumentUid("");
|
|
33321
|
+
setValidityDate("");
|
|
32984
33322
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
32985
33323
|
setSelectedDocument({});
|
|
32986
33324
|
}
|
|
@@ -33013,6 +33351,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33013
33351
|
setIsCameraFile(false);
|
|
33014
33352
|
setIsDocumentUidLocked(false);
|
|
33015
33353
|
setDocumentUid("");
|
|
33354
|
+
setValidityDate("");
|
|
33016
33355
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33017
33356
|
setSelectedDocument({});
|
|
33018
33357
|
}
|
|
@@ -33032,6 +33371,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33032
33371
|
setIsCameraFile(false);
|
|
33033
33372
|
setIsDocumentUidLocked(false);
|
|
33034
33373
|
setDocumentUid("");
|
|
33374
|
+
setValidityDate("");
|
|
33035
33375
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33036
33376
|
setSelectedDocument({});
|
|
33037
33377
|
}
|
|
@@ -33057,6 +33397,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33057
33397
|
setIsCameraFile(false);
|
|
33058
33398
|
setIsDocumentUidLocked(false);
|
|
33059
33399
|
setDocumentUid("");
|
|
33400
|
+
setValidityDate("");
|
|
33060
33401
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33061
33402
|
setSelectedDocument({});
|
|
33062
33403
|
}
|
|
@@ -33083,6 +33424,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33083
33424
|
setFileError(null);
|
|
33084
33425
|
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
33085
33426
|
setDocumentUid("");
|
|
33427
|
+
setValidityDate("");
|
|
33086
33428
|
setDocNumberError(null);
|
|
33087
33429
|
setIsDocumentUidLocked(false);
|
|
33088
33430
|
},
|
|
@@ -33105,7 +33447,8 @@ function SelectDocument$2(_ref3) {
|
|
|
33105
33447
|
}, fileError), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
33106
33448
|
fileStoreId: uploadedFile,
|
|
33107
33449
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
33108
|
-
documentNumber: documentUid
|
|
33450
|
+
documentNumber: documentUid,
|
|
33451
|
+
validityDate: validityDate
|
|
33109
33452
|
}] : []).map((uploadedDocument, index) => /*#__PURE__*/React.createElement("div", {
|
|
33110
33453
|
key: uploadedDocument.fileStoreId || index,
|
|
33111
33454
|
style: {
|
|
@@ -33939,7 +34282,9 @@ const WSDisconnectionKNumber = _ref => {
|
|
|
33939
34282
|
setIsLoading(true);
|
|
33940
34283
|
return Promise.resolve(_finallyRethrows(function () {
|
|
33941
34284
|
return _catch(function () {
|
|
33942
|
-
|
|
34285
|
+
var _Digit$SessionStorage;
|
|
34286
|
+
const currentTenant = Digit.ULBService.getCurrentTenantId();
|
|
34287
|
+
const tenantId = currentTenant && currentTenant !== "dl" ? currentTenant : ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || "dl.djb";
|
|
33943
34288
|
const params = {
|
|
33944
34289
|
connectionNumber: trimmed,
|
|
33945
34290
|
searchType: "CONNECTION",
|
|
@@ -33957,85 +34302,107 @@ const WSDisconnectionKNumber = _ref => {
|
|
|
33957
34302
|
filters: params,
|
|
33958
34303
|
businessService: "WS"
|
|
33959
34304
|
}).catch(() => null)).then(function (wsResponse) {
|
|
33960
|
-
var _waterResponse$WaterC,
|
|
33961
|
-
function
|
|
33962
|
-
|
|
33963
|
-
|
|
33964
|
-
|
|
33965
|
-
|
|
33966
|
-
|
|
33967
|
-
|
|
33968
|
-
|
|
33969
|
-
|
|
33970
|
-
|
|
33971
|
-
|
|
34305
|
+
var _wsResponse, _waterResponse, _waterResponse$WaterC, _waterResponse2, _waterResponse2$Water;
|
|
34306
|
+
function _temp5() {
|
|
34307
|
+
function _temp3() {
|
|
34308
|
+
var _connection9, _connection0;
|
|
34309
|
+
function _temp(propertyResponse) {
|
|
34310
|
+
var _propertyResponse$Pro, _connection, _connection$connectio, _connection$connectio2, _connection2;
|
|
34311
|
+
const property = propertyResponse === null || propertyResponse === void 0 ? void 0 : (_propertyResponse$Pro = propertyResponse.Properties) === null || _propertyResponse$Pro === void 0 ? void 0 : _propertyResponse$Pro[0];
|
|
34312
|
+
if (property) connection = {
|
|
34313
|
+
...connection,
|
|
34314
|
+
property
|
|
34315
|
+
};
|
|
34316
|
+
const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
|
|
34317
|
+
if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
|
|
34318
|
+
setIsLoading(false);
|
|
34319
|
+
setShowToast({
|
|
34320
|
+
key: "error",
|
|
34321
|
+
message: "No valid registered mobile number found for this connection"
|
|
34322
|
+
});
|
|
34323
|
+
return;
|
|
34324
|
+
}
|
|
34325
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
34326
|
+
const payload = {
|
|
34327
|
+
otp: {
|
|
34328
|
+
mobileNumber: fetchedMobileNumber,
|
|
34329
|
+
tenantId: "dl",
|
|
34330
|
+
type: "register",
|
|
34331
|
+
userType: Digit.UserService.getType().toUpperCase()
|
|
34332
|
+
}
|
|
34333
|
+
};
|
|
34334
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
34335
|
+
var _connection3, _connection4, _connection4$service, _connection5, _connection5$connecti, _connection6, _connection6$applicat, _connection7, _connection7$connecti, _connection8;
|
|
34336
|
+
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
34337
|
+
const isWaterConn = detectedServiceType === "WATER" || ((_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.water) === true || ((_connection4 = connection) === null || _connection4 === void 0 ? void 0 : (_connection4$service = _connection4.service) === null || _connection4$service === void 0 ? void 0 : _connection4$service.toLowerCase()) === "water" || ((_connection5 = connection) === null || _connection5 === void 0 ? void 0 : (_connection5$connecti = _connection5.connectionNo) === null || _connection5$connecti === void 0 ? void 0 : _connection5$connecti.includes("WS")) || ((_connection6 = connection) === null || _connection6 === void 0 ? void 0 : (_connection6$applicat = _connection6.applicationNo) === null || _connection6$applicat === void 0 ? void 0 : _connection6$applicat.includes("WS")) || !((_connection7 = connection) !== null && _connection7 !== void 0 && (_connection7$connecti = _connection7.connectionNo) !== null && _connection7$connecti !== void 0 && _connection7$connecti.includes("SW"));
|
|
34338
|
+
const finalServiceType = isWaterConn ? "WATER" : "SEWERAGE";
|
|
34339
|
+
connection.serviceType = finalServiceType;
|
|
34340
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
34341
|
+
...existingData,
|
|
34342
|
+
kNumber: trimmed,
|
|
34343
|
+
serviceType: finalServiceType,
|
|
34344
|
+
applicationData: connection,
|
|
34345
|
+
connectionNo: (_connection8 = connection) === null || _connection8 === void 0 ? void 0 : _connection8.connectionNo
|
|
34346
|
+
});
|
|
34347
|
+
setIsLoading(false);
|
|
34348
|
+
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
34349
|
+
connection
|
|
34350
|
+
});
|
|
34351
|
+
});
|
|
34352
|
+
}
|
|
34353
|
+
if (!connection) {
|
|
33972
34354
|
setIsLoading(false);
|
|
33973
34355
|
setShowToast({
|
|
33974
34356
|
key: "error",
|
|
33975
|
-
message: "
|
|
34357
|
+
message: isReconnection ? "Disconnected connection not found for the given K Number" : "Active connection not found for the given K Number"
|
|
33976
34358
|
});
|
|
33977
34359
|
return;
|
|
33978
34360
|
}
|
|
33979
|
-
const
|
|
33980
|
-
|
|
33981
|
-
|
|
33982
|
-
|
|
33983
|
-
|
|
33984
|
-
|
|
33985
|
-
|
|
33986
|
-
|
|
33987
|
-
};
|
|
33988
|
-
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
33989
|
-
var _connection3;
|
|
33990
|
-
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
33991
|
-
connection.serviceType = detectedServiceType;
|
|
33992
|
-
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
33993
|
-
...existingData,
|
|
33994
|
-
kNumber: trimmed,
|
|
33995
|
-
serviceType: detectedServiceType,
|
|
33996
|
-
applicationData: connection,
|
|
33997
|
-
connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
|
|
33998
|
-
});
|
|
33999
|
-
setIsLoading(false);
|
|
34000
|
-
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
34001
|
-
connection
|
|
34002
|
-
});
|
|
34003
|
-
});
|
|
34004
|
-
}
|
|
34005
|
-
if (!connection) {
|
|
34006
|
-
setIsLoading(false);
|
|
34007
|
-
setShowToast({
|
|
34008
|
-
key: "error",
|
|
34009
|
-
message: isReconnection ? "Disconnected connection not found for the given K Number" : "Active connection not found for the given K Number"
|
|
34010
|
-
});
|
|
34011
|
-
return;
|
|
34361
|
+
const _connection$propertyI = (_connection9 = connection) === null || _connection9 === void 0 ? void 0 : _connection9.propertyId;
|
|
34362
|
+
return _connection$propertyI ? Promise.resolve(Digit.PTService.search({
|
|
34363
|
+
tenantId: ((_connection0 = connection) === null || _connection0 === void 0 ? void 0 : _connection0.tenantId) || tenantId,
|
|
34364
|
+
filters: {
|
|
34365
|
+
propertyIds: connection.propertyId
|
|
34366
|
+
},
|
|
34367
|
+
auth: true
|
|
34368
|
+
}).catch(() => null)).then(_temp) : _temp(null);
|
|
34012
34369
|
}
|
|
34013
|
-
const
|
|
34014
|
-
|
|
34015
|
-
|
|
34016
|
-
|
|
34017
|
-
|
|
34018
|
-
|
|
34019
|
-
|
|
34020
|
-
|
|
34370
|
+
const _temp2 = function () {
|
|
34371
|
+
if (!connection) {
|
|
34372
|
+
return Promise.resolve(Digit.WSService.search({
|
|
34373
|
+
tenantId,
|
|
34374
|
+
filters: params,
|
|
34375
|
+
businessService: "SW"
|
|
34376
|
+
}).catch(() => null)).then(function (swResponse) {
|
|
34377
|
+
var _sewerageResponse$Sew, _sewerageResponse$Sew2;
|
|
34378
|
+
const sewerageResponse = (swResponse === null || swResponse === void 0 ? void 0 : swResponse.data) || swResponse;
|
|
34379
|
+
connection = (sewerageResponse === null || sewerageResponse === void 0 ? void 0 : (_sewerageResponse$Sew = sewerageResponse.SewerageConnections) === null || _sewerageResponse$Sew === void 0 ? void 0 : _sewerageResponse$Sew.find(isEligibleConnection)) || (!isReconnection ? sewerageResponse === null || sewerageResponse === void 0 ? void 0 : (_sewerageResponse$Sew2 = sewerageResponse.SewerageConnections) === null || _sewerageResponse$Sew2 === void 0 ? void 0 : _sewerageResponse$Sew2[0] : null);
|
|
34380
|
+
if (connection) {
|
|
34381
|
+
var _connection1, _connection1$connecti, _connection10;
|
|
34382
|
+
detectedServiceType = (_connection1 = connection) !== null && _connection1 !== void 0 && (_connection1$connecti = _connection1.connectionNo) !== null && _connection1$connecti !== void 0 && _connection1$connecti.includes("WS") || ((_connection10 = connection) === null || _connection10 === void 0 ? void 0 : _connection10.water) === true ? "WATER" : "SEWERAGE";
|
|
34383
|
+
}
|
|
34384
|
+
});
|
|
34385
|
+
}
|
|
34386
|
+
}();
|
|
34387
|
+
return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2);
|
|
34021
34388
|
}
|
|
34022
|
-
|
|
34023
|
-
let connection = (waterResponse === null ||
|
|
34024
|
-
const
|
|
34025
|
-
if (!connection) {
|
|
34389
|
+
let waterResponse = ((_wsResponse = wsResponse) === null || _wsResponse === void 0 ? void 0 : _wsResponse.data) || wsResponse;
|
|
34390
|
+
let connection = ((_waterResponse = waterResponse) === null || _waterResponse === void 0 ? void 0 : (_waterResponse$WaterC = _waterResponse.WaterConnection) === null || _waterResponse$WaterC === void 0 ? void 0 : _waterResponse$WaterC.find(isEligibleConnection)) || (!isReconnection ? (_waterResponse2 = waterResponse) === null || _waterResponse2 === void 0 ? void 0 : (_waterResponse2$Water = _waterResponse2.WaterConnection) === null || _waterResponse2$Water === void 0 ? void 0 : _waterResponse2$Water[0] : null);
|
|
34391
|
+
const _temp4 = function () {
|
|
34392
|
+
if (!connection && tenantId !== "dl") {
|
|
34026
34393
|
return Promise.resolve(Digit.WSService.search({
|
|
34027
|
-
tenantId,
|
|
34394
|
+
tenantId: "dl",
|
|
34028
34395
|
filters: params,
|
|
34029
|
-
businessService: "
|
|
34030
|
-
}).catch(() => null)).then(function (
|
|
34031
|
-
var
|
|
34032
|
-
|
|
34033
|
-
|
|
34034
|
-
|
|
34396
|
+
businessService: "WS"
|
|
34397
|
+
}).catch(() => null)).then(function (_Digit$WSService$sear) {
|
|
34398
|
+
var _wsResponse2, _waterResponse3, _waterResponse3$Water, _waterResponse4, _waterResponse4$Water;
|
|
34399
|
+
wsResponse = _Digit$WSService$sear;
|
|
34400
|
+
waterResponse = ((_wsResponse2 = wsResponse) === null || _wsResponse2 === void 0 ? void 0 : _wsResponse2.data) || wsResponse;
|
|
34401
|
+
connection = ((_waterResponse3 = waterResponse) === null || _waterResponse3 === void 0 ? void 0 : (_waterResponse3$Water = _waterResponse3.WaterConnection) === null || _waterResponse3$Water === void 0 ? void 0 : _waterResponse3$Water.find(isEligibleConnection)) || (!isReconnection ? (_waterResponse4 = waterResponse) === null || _waterResponse4 === void 0 ? void 0 : (_waterResponse4$Water = _waterResponse4.WaterConnection) === null || _waterResponse4$Water === void 0 ? void 0 : _waterResponse4$Water[0] : null);
|
|
34035
34402
|
});
|
|
34036
34403
|
}
|
|
34037
34404
|
}();
|
|
34038
|
-
return
|
|
34405
|
+
return _temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4);
|
|
34039
34406
|
});
|
|
34040
34407
|
}, function (err) {
|
|
34041
34408
|
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
@@ -34237,12 +34604,14 @@ const WSDisconnectionConsumerDetails = _ref => {
|
|
|
34237
34604
|
}
|
|
34238
34605
|
};
|
|
34239
34606
|
return Promise.resolve(Digit.UserService.validateOtp(payload)).then(function () {
|
|
34240
|
-
var _connection$additiona2, _connection$additiona3;
|
|
34607
|
+
var _connection$service, _connection$connectio2, _connection$applicati, _connection$connectio3, _connection$additiona2, _connection$additiona3;
|
|
34608
|
+
const isWaterConn = (connection === null || connection === void 0 ? void 0 : connection.water) === true || (connection === null || connection === void 0 ? void 0 : (_connection$service = connection.service) === null || _connection$service === void 0 ? void 0 : _connection$service.toLowerCase()) === "water" || (connection === null || connection === void 0 ? void 0 : (_connection$connectio2 = connection.connectionNo) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.includes("WS")) || (connection === null || connection === void 0 ? void 0 : (_connection$applicati = connection.applicationNo) === null || _connection$applicati === void 0 ? void 0 : _connection$applicati.includes("WS")) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) === "WATER" || !(connection !== null && connection !== void 0 && (_connection$connectio3 = connection.connectionNo) !== null && _connection$connectio3 !== void 0 && _connection$connectio3.includes("SW"));
|
|
34609
|
+
const finalServiceType = isWaterConn ? "WATER" : (connection === null || connection === void 0 ? void 0 : (_connection$additiona2 = connection.additionalDetails) === null || _connection$additiona2 === void 0 ? void 0 : (_connection$additiona3 = _connection$additiona2.serviceType) === null || _connection$additiona3 === void 0 ? void 0 : _connection$additiona3.code) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) || "WATER";
|
|
34241
34610
|
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
34242
34611
|
...applicationData,
|
|
34243
34612
|
applicationData: connection,
|
|
34244
34613
|
connectionNo: connection === null || connection === void 0 ? void 0 : connection.connectionNo,
|
|
34245
|
-
serviceType:
|
|
34614
|
+
serviceType: finalServiceType
|
|
34246
34615
|
});
|
|
34247
34616
|
setIsLoading(false);
|
|
34248
34617
|
history.push(match.path.replace("consumer-details", isReconnection ? "new-restoration" : "application-form"), {
|
|
@@ -36075,7 +36444,7 @@ const DISCONNECTION_REASONS = {
|
|
|
36075
36444
|
}]
|
|
36076
36445
|
};
|
|
36077
36446
|
const WSDisconnectionForm = _ref => {
|
|
36078
|
-
var _location$state, _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$appl5, _applicationData$appl6, _disconnectionData$ty10, _disconnectionData$ty11, _disconnectionData$ty12, _disconnectionData$ty13, _disconnectionData$ty14, _disconnectionData$ty15, _disconnectionData$ty16, _disconnectionData$ty17, _disconnectionData$ty18, _disconnectionData$re4, _disconnectionData$re5, _disconnectionData$re6;
|
|
36447
|
+
var _location$state, _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$appl5, _applicationData$appl6, _applicationData$appl7, _applicationData$appl8, _applicationData$appl9, _applicationData$appl0, _disconnectionData$ty10, _disconnectionData$ty11, _disconnectionData$ty12, _disconnectionData$ty13, _disconnectionData$ty14, _disconnectionData$ty15, _disconnectionData$ty16, _disconnectionData$ty17, _disconnectionData$ty18, _disconnectionData$re4, _disconnectionData$re5, _disconnectionData$re6;
|
|
36079
36448
|
let {
|
|
36080
36449
|
t,
|
|
36081
36450
|
config,
|
|
@@ -36091,7 +36460,8 @@ const WSDisconnectionForm = _ref => {
|
|
|
36091
36460
|
...storedApplicationData,
|
|
36092
36461
|
applicationData: ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || storedApplicationData.applicationData || {}
|
|
36093
36462
|
};
|
|
36094
|
-
const
|
|
36463
|
+
const isWaterConn = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) === "WATER" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) === "WS" || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.water) === true || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationData) === null || _applicationData$appl2 === void 0 ? void 0 : (_applicationData$appl3 = _applicationData$appl2.service) === null || _applicationData$appl3 === void 0 ? void 0 : _applicationData$appl3.toLowerCase()) === "water" || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl4 = applicationData.applicationData) === null || _applicationData$appl4 === void 0 ? void 0 : (_applicationData$appl5 = _applicationData$appl4.connectionNo) === null || _applicationData$appl5 === void 0 ? void 0 : _applicationData$appl5.includes("WS")) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl6 = applicationData.applicationData) === null || _applicationData$appl6 === void 0 ? void 0 : (_applicationData$appl7 = _applicationData$appl6.applicationNo) === null || _applicationData$appl7 === void 0 ? void 0 : _applicationData$appl7.includes("WS")) || !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl8 = applicationData.applicationData) !== null && _applicationData$appl8 !== void 0 && (_applicationData$appl9 = _applicationData$appl8.connectionNo) !== null && _applicationData$appl9 !== void 0 && _applicationData$appl9.includes("SW"));
|
|
36464
|
+
const serviceType = isWaterConn ? "WATER" : "SEWERAGE";
|
|
36095
36465
|
const history = useHistory();
|
|
36096
36466
|
const match = useRouteMatch();
|
|
36097
36467
|
const [disconnectionData, setDisconnectionData] = useState(() => {
|
|
@@ -36575,7 +36945,7 @@ const WSDisconnectionForm = _ref => {
|
|
|
36575
36945
|
}, t("CS_TITLE_APPLICATION_DETAILS"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
36576
36946
|
key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
36577
36947
|
label: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
36578
|
-
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$
|
|
36948
|
+
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl0 = applicationData.applicationData) === null || _applicationData$appl0 === void 0 ? void 0 : _applicationData$appl0.connectionNo,
|
|
36579
36949
|
className: "border-none"
|
|
36580
36950
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
36581
36951
|
style: sectionStyle
|
|
@@ -39905,7 +40275,7 @@ const WSDivyangjan = _ref => {
|
|
|
39905
40275
|
};
|
|
39906
40276
|
|
|
39907
40277
|
const WSRainWaterHarvesting = _ref => {
|
|
39908
|
-
var _formData$
|
|
40278
|
+
var _formData$additionalD, _formData$configKey2;
|
|
39909
40279
|
let {
|
|
39910
40280
|
config,
|
|
39911
40281
|
onSelect,
|
|
@@ -39915,17 +40285,36 @@ const WSRainWaterHarvesting = _ref => {
|
|
|
39915
40285
|
const {
|
|
39916
40286
|
t
|
|
39917
40287
|
} = useTranslation();
|
|
40288
|
+
const getInitialValue = () => {
|
|
40289
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting";
|
|
40290
|
+
const rwh = formData === null || formData === void 0 ? void 0 : formData[configKey];
|
|
40291
|
+
const add = formData === null || formData === void 0 ? void 0 : formData.additionalDetails;
|
|
40292
|
+
if ((rwh === null || rwh === void 0 ? void 0 : rwh.hasCertificate) !== undefined) {
|
|
40293
|
+
return String(rwh.hasCertificate) === "true" || rwh.hasCertificate === true;
|
|
40294
|
+
}
|
|
40295
|
+
if ((rwh === null || rwh === void 0 ? void 0 : rwh.isRainwaterHarvesting) !== undefined) {
|
|
40296
|
+
return String(rwh.isRainwaterHarvesting) === "true" || rwh.isRainwaterHarvesting === true;
|
|
40297
|
+
}
|
|
40298
|
+
if ((add === null || add === void 0 ? void 0 : add.hasRainWaterHarvestingCertificate) !== undefined) {
|
|
40299
|
+
return String(add.hasRainWaterHarvestingCertificate) === "true" || add.hasRainWaterHarvestingCertificate === true;
|
|
40300
|
+
}
|
|
40301
|
+
if ((add === null || add === void 0 ? void 0 : add.isRainwaterHarvesting) !== undefined) {
|
|
40302
|
+
return String(add.isRainwaterHarvesting) === "true" || add.isRainwaterHarvesting === true;
|
|
40303
|
+
}
|
|
40304
|
+
return false;
|
|
40305
|
+
};
|
|
39918
40306
|
const {
|
|
39919
40307
|
control,
|
|
39920
|
-
watch
|
|
40308
|
+
watch,
|
|
40309
|
+
setValue
|
|
39921
40310
|
} = useForm({
|
|
39922
40311
|
defaultValues: {
|
|
39923
|
-
hasCertificate:
|
|
40312
|
+
hasCertificate: getInitialValue()
|
|
39924
40313
|
}
|
|
39925
40314
|
});
|
|
39926
40315
|
const formValue = watch();
|
|
39927
40316
|
const onSelectRef = useRef(onSelect);
|
|
39928
|
-
const goNext = () => onSelect(config.key, {
|
|
40317
|
+
const goNext = () => onSelect((config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting", {
|
|
39929
40318
|
hasCertificate: !!formValue.hasCertificate,
|
|
39930
40319
|
isRainwaterHarvesting: !!formValue.hasCertificate
|
|
39931
40320
|
});
|
|
@@ -39933,33 +40322,193 @@ const WSRainWaterHarvesting = _ref => {
|
|
|
39933
40322
|
useEffect(() => {
|
|
39934
40323
|
onSelectRef.current = onSelect;
|
|
39935
40324
|
}, [onSelect]);
|
|
40325
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting";
|
|
40326
|
+
const hasData = !!((formData === null || formData === void 0 ? void 0 : formData[configKey]) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.hasRainWaterHarvestingCertificate) !== undefined);
|
|
40327
|
+
const isInitializedRef = useRef(hasData);
|
|
39936
40328
|
useEffect(() => {
|
|
39937
|
-
|
|
39938
|
-
|
|
39939
|
-
|
|
40329
|
+
var _formData$additionalD2;
|
|
40330
|
+
if (!isInitializedRef.current && ((formData === null || formData === void 0 ? void 0 : formData[configKey]) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD2 = formData.additionalDetails) === null || _formData$additionalD2 === void 0 ? void 0 : _formData$additionalD2.hasRainWaterHarvestingCertificate) !== undefined)) {
|
|
40331
|
+
setValue("hasCertificate", getInitialValue());
|
|
40332
|
+
isInitializedRef.current = true;
|
|
40333
|
+
}
|
|
40334
|
+
}, [formData === null || formData === void 0 ? void 0 : formData[configKey], formData === null || formData === void 0 ? void 0 : formData.additionalDetails]);
|
|
40335
|
+
useEffect(() => {
|
|
40336
|
+
const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
|
|
40337
|
+
if (isEmployeeMode) {
|
|
40338
|
+
var _formData$configKey;
|
|
40339
|
+
const currentVal = formData === null || formData === void 0 ? void 0 : (_formData$configKey = formData[configKey]) === null || _formData$configKey === void 0 ? void 0 : _formData$configKey.hasCertificate;
|
|
39940
40340
|
const newVal = !!formValue.hasCertificate;
|
|
39941
40341
|
if (currentVal !== newVal) {
|
|
39942
|
-
onSelectRef.current(
|
|
40342
|
+
onSelectRef.current(configKey, {
|
|
39943
40343
|
hasCertificate: newVal,
|
|
39944
40344
|
isRainwaterHarvesting: newVal
|
|
39945
40345
|
});
|
|
39946
40346
|
}
|
|
39947
40347
|
}
|
|
39948
|
-
}, [
|
|
40348
|
+
}, [configKey, formValue.hasCertificate, userType, formData === null || formData === void 0 ? void 0 : (_formData$configKey2 = formData[configKey]) === null || _formData$configKey2 === void 0 ? void 0 : _formData$configKey2.hasCertificate]);
|
|
39949
40349
|
const content = /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
39950
40350
|
title: t("Rain Water Harvesting Certificate"),
|
|
39951
40351
|
defaultOpen: true
|
|
39952
40352
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39953
40353
|
className: "formcomposer-section-grid"
|
|
39954
|
-
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
|
|
40354
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement("div", {
|
|
39955
40355
|
className: "field"
|
|
39956
40356
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
39957
40357
|
control: control,
|
|
39958
40358
|
name: "hasCertificate",
|
|
39959
|
-
render: props => /*#__PURE__*/React.createElement(
|
|
39960
|
-
|
|
39961
|
-
|
|
39962
|
-
|
|
40359
|
+
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
40360
|
+
className: "form-field",
|
|
40361
|
+
style: {
|
|
40362
|
+
display: "flex",
|
|
40363
|
+
gap: "2rem",
|
|
40364
|
+
alignItems: "center"
|
|
40365
|
+
},
|
|
40366
|
+
name: "hasRainWaterHarvestingCertificateRadio",
|
|
40367
|
+
options: [{
|
|
40368
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40369
|
+
code: true
|
|
40370
|
+
}, {
|
|
40371
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40372
|
+
code: false
|
|
40373
|
+
}],
|
|
40374
|
+
optionsKey: "i18nKey",
|
|
40375
|
+
selectedOption: props.value ? {
|
|
40376
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40377
|
+
code: true
|
|
40378
|
+
} : {
|
|
40379
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40380
|
+
code: false
|
|
40381
|
+
},
|
|
40382
|
+
onSelect: e => props.onChange(e.code),
|
|
40383
|
+
t: t
|
|
40384
|
+
})
|
|
40385
|
+
})))));
|
|
40386
|
+
return userType === "citizen" ? /*#__PURE__*/React.createElement(FormStep, {
|
|
40387
|
+
t: t,
|
|
40388
|
+
config: config,
|
|
40389
|
+
onSelect: goNext,
|
|
40390
|
+
onSkip: onSkip
|
|
40391
|
+
}, content) : content;
|
|
40392
|
+
};
|
|
40393
|
+
|
|
40394
|
+
const WSSewerTreatmentPlant = _ref => {
|
|
40395
|
+
var _formData$additionalD, _formData$additionalD2, _formData$configKey3, _formData$configKey4;
|
|
40396
|
+
let {
|
|
40397
|
+
config,
|
|
40398
|
+
onSelect,
|
|
40399
|
+
userType,
|
|
40400
|
+
formData
|
|
40401
|
+
} = _ref;
|
|
40402
|
+
const {
|
|
40403
|
+
t
|
|
40404
|
+
} = useTranslation();
|
|
40405
|
+
const getInitialValue = () => {
|
|
40406
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant";
|
|
40407
|
+
const stp = (formData === null || formData === void 0 ? void 0 : formData[configKey]) || (formData === null || formData === void 0 ? void 0 : formData.sewageTreatmentPlant);
|
|
40408
|
+
const add = formData === null || formData === void 0 ? void 0 : formData.additionalDetails;
|
|
40409
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.hasCertificate) !== undefined) {
|
|
40410
|
+
return String(stp.hasCertificate) === "true" || stp.hasCertificate === true;
|
|
40411
|
+
}
|
|
40412
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.hasStp) !== undefined) {
|
|
40413
|
+
return String(stp.hasStp) === "true" || stp.hasStp === true;
|
|
40414
|
+
}
|
|
40415
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.isSewerTreatmentPlant) !== undefined) {
|
|
40416
|
+
return String(stp.isSewerTreatmentPlant) === "true" || stp.isSewerTreatmentPlant === true;
|
|
40417
|
+
}
|
|
40418
|
+
if ((add === null || add === void 0 ? void 0 : add.hasSewerTreatmentPlant) !== undefined) {
|
|
40419
|
+
return String(add.hasSewerTreatmentPlant) === "true" || add.hasSewerTreatmentPlant === true;
|
|
40420
|
+
}
|
|
40421
|
+
if ((add === null || add === void 0 ? void 0 : add.hasSewageTreatmentPlant) !== undefined) {
|
|
40422
|
+
return String(add.hasSewageTreatmentPlant) === "true" || add.hasSewageTreatmentPlant === true;
|
|
40423
|
+
}
|
|
40424
|
+
if ((add === null || add === void 0 ? void 0 : add.hasStp) !== undefined) {
|
|
40425
|
+
return String(add.hasStp) === "true" || add.hasStp === true;
|
|
40426
|
+
}
|
|
40427
|
+
if ((add === null || add === void 0 ? void 0 : add.isSewerTreatmentPlant) !== undefined) {
|
|
40428
|
+
return String(add.isSewerTreatmentPlant) === "true" || add.isSewerTreatmentPlant === true;
|
|
40429
|
+
}
|
|
40430
|
+
return false;
|
|
40431
|
+
};
|
|
40432
|
+
const {
|
|
40433
|
+
control,
|
|
40434
|
+
watch,
|
|
40435
|
+
setValue
|
|
40436
|
+
} = useForm({
|
|
40437
|
+
defaultValues: {
|
|
40438
|
+
hasCertificate: getInitialValue()
|
|
40439
|
+
}
|
|
40440
|
+
});
|
|
40441
|
+
const formValue = watch();
|
|
40442
|
+
const onSelectRef = useRef(onSelect);
|
|
40443
|
+
const goNext = () => onSelect((config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant", {
|
|
40444
|
+
hasCertificate: !!formValue.hasCertificate,
|
|
40445
|
+
hasStp: !!formValue.hasCertificate,
|
|
40446
|
+
isSewerTreatmentPlant: !!formValue.hasCertificate
|
|
40447
|
+
});
|
|
40448
|
+
const onSkip = () => onSelect();
|
|
40449
|
+
useEffect(() => {
|
|
40450
|
+
onSelectRef.current = onSelect;
|
|
40451
|
+
}, [onSelect]);
|
|
40452
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant";
|
|
40453
|
+
const hasData = !!((formData === null || formData === void 0 ? void 0 : formData[configKey]) !== undefined || (formData === null || formData === void 0 ? void 0 : formData.sewageTreatmentPlant) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD = formData.additionalDetails) === null || _formData$additionalD === void 0 ? void 0 : _formData$additionalD.hasSewerTreatmentPlant) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD2 = formData.additionalDetails) === null || _formData$additionalD2 === void 0 ? void 0 : _formData$additionalD2.hasStp) !== undefined);
|
|
40454
|
+
const isInitializedRef = useRef(hasData);
|
|
40455
|
+
useEffect(() => {
|
|
40456
|
+
var _formData$additionalD3, _formData$additionalD4;
|
|
40457
|
+
if (!isInitializedRef.current && ((formData === null || formData === void 0 ? void 0 : formData[configKey]) !== undefined || (formData === null || formData === void 0 ? void 0 : formData.sewageTreatmentPlant) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD3 = formData.additionalDetails) === null || _formData$additionalD3 === void 0 ? void 0 : _formData$additionalD3.hasSewerTreatmentPlant) !== undefined || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD4 = formData.additionalDetails) === null || _formData$additionalD4 === void 0 ? void 0 : _formData$additionalD4.hasStp) !== undefined)) {
|
|
40458
|
+
setValue("hasCertificate", getInitialValue());
|
|
40459
|
+
isInitializedRef.current = true;
|
|
40460
|
+
}
|
|
40461
|
+
}, [formData === null || formData === void 0 ? void 0 : formData[configKey], formData === null || formData === void 0 ? void 0 : formData.sewageTreatmentPlant, formData === null || formData === void 0 ? void 0 : formData.additionalDetails]);
|
|
40462
|
+
useEffect(() => {
|
|
40463
|
+
const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
|
|
40464
|
+
if (isEmployeeMode) {
|
|
40465
|
+
var _formData$configKey, _formData$configKey2;
|
|
40466
|
+
const currentVal = (formData === null || formData === void 0 ? void 0 : (_formData$configKey = formData[configKey]) === null || _formData$configKey === void 0 ? void 0 : _formData$configKey.hasCertificate) ?? (formData === null || formData === void 0 ? void 0 : (_formData$configKey2 = formData[configKey]) === null || _formData$configKey2 === void 0 ? void 0 : _formData$configKey2.hasStp);
|
|
40467
|
+
const newVal = !!formValue.hasCertificate;
|
|
40468
|
+
if (currentVal !== newVal) {
|
|
40469
|
+
onSelectRef.current(configKey, {
|
|
40470
|
+
hasCertificate: newVal,
|
|
40471
|
+
hasStp: newVal,
|
|
40472
|
+
isSewerTreatmentPlant: newVal
|
|
40473
|
+
});
|
|
40474
|
+
}
|
|
40475
|
+
}
|
|
40476
|
+
}, [configKey, formValue.hasCertificate, userType, formData === null || formData === void 0 ? void 0 : (_formData$configKey3 = formData[configKey]) === null || _formData$configKey3 === void 0 ? void 0 : _formData$configKey3.hasCertificate, formData === null || formData === void 0 ? void 0 : (_formData$configKey4 = formData[configKey]) === null || _formData$configKey4 === void 0 ? void 0 : _formData$configKey4.hasStp]);
|
|
40477
|
+
const content = /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
40478
|
+
title: t("Sewer Treatment Plant (STP)"),
|
|
40479
|
+
defaultOpen: true
|
|
40480
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40481
|
+
className: "formcomposer-section-grid"
|
|
40482
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Sewer Treatment Plant (STP)")), /*#__PURE__*/React.createElement("div", {
|
|
40483
|
+
className: "field"
|
|
40484
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
40485
|
+
control: control,
|
|
40486
|
+
name: "hasCertificate",
|
|
40487
|
+
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
40488
|
+
className: "form-field",
|
|
40489
|
+
style: {
|
|
40490
|
+
display: "flex",
|
|
40491
|
+
gap: "2rem",
|
|
40492
|
+
alignItems: "center"
|
|
40493
|
+
},
|
|
40494
|
+
name: "hasSewerTreatmentPlantRadio",
|
|
40495
|
+
options: [{
|
|
40496
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40497
|
+
code: true
|
|
40498
|
+
}, {
|
|
40499
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40500
|
+
code: false
|
|
40501
|
+
}],
|
|
40502
|
+
optionsKey: "i18nKey",
|
|
40503
|
+
selectedOption: props.value ? {
|
|
40504
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40505
|
+
code: true
|
|
40506
|
+
} : {
|
|
40507
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40508
|
+
code: false
|
|
40509
|
+
},
|
|
40510
|
+
onSelect: e => props.onChange(e.code),
|
|
40511
|
+
t: t
|
|
39963
40512
|
})
|
|
39964
40513
|
})))));
|
|
39965
40514
|
return userType === "citizen" ? /*#__PURE__*/React.createElement(FormStep, {
|
|
@@ -44082,22 +44631,26 @@ const useInboxTableConfig$1 = _ref => {
|
|
|
44082
44631
|
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
44083
44632
|
disableSortBy: true,
|
|
44084
44633
|
Cell: _ref3 => {
|
|
44085
|
-
var _row$original2;
|
|
44634
|
+
var _row$original2, _row$original2$servic, _row$original3, _row$original4;
|
|
44086
44635
|
let {
|
|
44087
44636
|
row
|
|
44088
44637
|
} = _ref3;
|
|
44638
|
+
const service = row !== null && row !== void 0 && (_row$original2 = row.original) !== null && _row$original2 !== void 0 && (_row$original2$servic = _row$original2.service) !== null && _row$original2$servic !== void 0 && _row$original2$servic.includes("SW") ? "SEWERAGE" : "WATER";
|
|
44639
|
+
const fromScreen = service === "WATER" ? "ES_COMMON_BILL_AMEND_WATER_INBOX_LABEL" : "ES_COMMON_BILL_AMEND_SEWERAGE_INBOX_LABEL";
|
|
44640
|
+
const applicationNo = row === null || row === void 0 ? void 0 : (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3["applicationNo"];
|
|
44641
|
+
const linkUrl = `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${applicationNo}&tenantId=${tenantId}&service=${service}&from=${fromScreen}`;
|
|
44089
44642
|
return /*#__PURE__*/React.createElement("div", {
|
|
44090
44643
|
style: {
|
|
44091
44644
|
display: "flex",
|
|
44092
44645
|
flexDirection: "column"
|
|
44093
44646
|
}
|
|
44094
44647
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
44095
|
-
to:
|
|
44648
|
+
to: linkUrl
|
|
44096
44649
|
}, /*#__PURE__*/React.createElement("span", {
|
|
44097
44650
|
className: "link"
|
|
44098
|
-
},
|
|
44651
|
+
}, applicationNo)), GetCell(t(`BILLAMENDMENT_${row === null || row === void 0 ? void 0 : (_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.amendmentReason}_HEADING`)));
|
|
44099
44652
|
}
|
|
44100
|
-
}
|
|
44653
|
+
}, {
|
|
44101
44654
|
Header: t("CORE_COMMON_NAME"),
|
|
44102
44655
|
disableSortBy: true,
|
|
44103
44656
|
accessor: "owner"
|
|
@@ -44193,14 +44746,17 @@ const useInboxMobileCardsData$1 = _ref => {
|
|
|
44193
44746
|
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
44194
44747
|
className: "cell-text styled-cell"
|
|
44195
44748
|
}, value);
|
|
44196
|
-
const getApplicationNumberCell = (value, amendmentReason) => {
|
|
44749
|
+
const getApplicationNumberCell = (value, amendmentReason, tenantId, service) => {
|
|
44750
|
+
const serviceType = service !== null && service !== void 0 && service.includes("SW") ? "SEWERAGE" : "WATER";
|
|
44751
|
+
const fromScreen = serviceType === "WATER" ? "ES_COMMON_BILL_AMEND_WATER_INBOX_LABEL" : "ES_COMMON_BILL_AMEND_SEWERAGE_INBOX_LABEL";
|
|
44752
|
+
const linkUrl = `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${value}&tenantId=${tenantId}&service=${serviceType}&from=${fromScreen}`;
|
|
44197
44753
|
return /*#__PURE__*/React.createElement("div", {
|
|
44198
44754
|
style: {
|
|
44199
44755
|
display: "flex",
|
|
44200
44756
|
flexDirection: "column"
|
|
44201
44757
|
}
|
|
44202
44758
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
44203
|
-
to:
|
|
44759
|
+
to: linkUrl
|
|
44204
44760
|
}, /*#__PURE__*/React.createElement("span", {
|
|
44205
44761
|
className: "link"
|
|
44206
44762
|
}, value)), GetCell(t(`BILLAMENDMENT_${amendmentReason}_HEADING`)));
|
|
@@ -44218,7 +44774,7 @@ const useInboxMobileCardsData$1 = _ref => {
|
|
|
44218
44774
|
} = _ref2;
|
|
44219
44775
|
return {
|
|
44220
44776
|
[t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`ACTION_TEST_${service}`),
|
|
44221
|
-
[t("WS_MYCONNECTIONS_APPLICATION_NO")]: getApplicationNumberCell(applicationNo, amendmentReason),
|
|
44777
|
+
[t("WS_MYCONNECTIONS_APPLICATION_NO")]: getApplicationNumberCell(applicationNo, amendmentReason, tenantId, service),
|
|
44222
44778
|
[t("CORE_COMMON_NAME")]: owner,
|
|
44223
44779
|
[t("WS_COMMON_TABLE_COL_ADDRESS")]: t(Digit.Utils.locale.getRevenueLocalityCode(address, tenantId)),
|
|
44224
44780
|
[t("WS_COMMON_TABLE_COL_APPLICATION_STATUS")]: t(status),
|
|
@@ -44636,13 +45192,15 @@ const SearchBillAmendment = () => {
|
|
|
44636
45192
|
Header: t("WS_ACK_COMMON_APP_NO_LABEL", "Application No"),
|
|
44637
45193
|
accessor: "amendmentId",
|
|
44638
45194
|
Cell: _ref => {
|
|
45195
|
+
var _row$original, _row$original$busines;
|
|
44639
45196
|
let {
|
|
44640
45197
|
row
|
|
44641
45198
|
} = _ref;
|
|
45199
|
+
const service = (_row$original = row.original) !== null && _row$original !== void 0 && (_row$original$busines = _row$original.businessService) !== null && _row$original$busines !== void 0 && _row$original$busines.includes("SW") ? "SEWERAGE" : "WATER";
|
|
44642
45200
|
return /*#__PURE__*/React.createElement("span", {
|
|
44643
45201
|
className: "link"
|
|
44644
45202
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
44645
|
-
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}`
|
|
45203
|
+
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}&tenantId=${tenantId}&service=${service}&from=WS_BILL_AMENDMENT_SEARCH_APPLICATION`
|
|
44646
45204
|
}, row.original.amendmentId));
|
|
44647
45205
|
}
|
|
44648
45206
|
}, {
|
|
@@ -44673,13 +45231,15 @@ const SearchBillAmendment = () => {
|
|
|
44673
45231
|
}, {
|
|
44674
45232
|
Header: t("WS_COMMON_TABLE_COL_ACTION", "Action"),
|
|
44675
45233
|
Cell: _ref3 => {
|
|
45234
|
+
var _row$original2, _row$original2$busine;
|
|
44676
45235
|
let {
|
|
44677
45236
|
row
|
|
44678
45237
|
} = _ref3;
|
|
45238
|
+
const service = (_row$original2 = row.original) !== null && _row$original2 !== void 0 && (_row$original2$busine = _row$original2.businessService) !== null && _row$original2$busine !== void 0 && _row$original2$busine.includes("SW") ? "SEWERAGE" : "WATER";
|
|
44679
45239
|
return /*#__PURE__*/React.createElement("span", {
|
|
44680
45240
|
className: "link"
|
|
44681
45241
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
44682
|
-
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}`
|
|
45242
|
+
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}&tenantId=${tenantId}&service=${service}&from=WS_BILL_AMENDMENT_SEARCH_APPLICATION`
|
|
44683
45243
|
}, t("ES_COMMON_VIEW", "View")));
|
|
44684
45244
|
}
|
|
44685
45245
|
}], [t, tenantId]);
|
|
@@ -48715,10 +49275,10 @@ const WSApplicationDetails = () => {
|
|
|
48715
49275
|
}
|
|
48716
49276
|
return null;
|
|
48717
49277
|
})(), /*#__PURE__*/React.createElement(Row, {
|
|
48718
|
-
label: t("WS_DIVYANGJAN"),
|
|
49278
|
+
label: t("WS_DIVYANGJAN") && t("WS_DIVYANGJAN") !== "WS_DIVYANGJAN" ? t("WS_DIVYANGJAN") : "Divyangjan/Person with Disability?",
|
|
48719
49279
|
text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
48720
49280
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
48721
|
-
label: t("WS_RAIN_WATER_HARVESTING_CERTIFICATE")
|
|
49281
|
+
label: t("WS_RAIN_WATER_HARVESTING_CERTIFICATE") && t("WS_RAIN_WATER_HARVESTING_CERTIFICATE") !== "WS_RAIN_WATER_HARVESTING_CERTIFICATE" ? t("WS_RAIN_WATER_HARVESTING_CERTIFICATE") : "Rain Water Harvesting Certificate",
|
|
48722
49282
|
text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.hasRainWaterHarvestingCertificate || connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
48723
49283
|
}), (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, {
|
|
48724
49284
|
label: t("WS_DEPARTMENT_TYPE"),
|
|
@@ -49797,7 +50357,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
|
|
|
49797
50357
|
};
|
|
49798
50358
|
|
|
49799
50359
|
const ConnectionDetails$5 = () => {
|
|
49800
|
-
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, _state5, _state6, _state6$
|
|
50360
|
+
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, _state2$connectionNo, _state3, _state3$applicationNo, _state4, _state4$connectionNo, _state5, _state5$applicationTy, _state6, _state6$applicationNo, _state7, _state7$connectionNo, _state8, _state9, _state10, _state13, _state14, _state15, _state16, _state17, _state17$applicationT, _state18, _state19, _state20, _state21, _state21$applicationT, _state22, _state23, _state24, _state25, _state26, _state26$applicationT, _state27, _state27$waterSource, _state27$waterSource$, _state28, _state29, _state29$waterSource, _state29$waterSource$, _state30, _state31, _state32, _state33, _state33$additionalDe, _state34, _state34$applicationT, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state36$additionalDe2, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state39$additionalDe2, _state40, _state40$additionalDe, _state41, _state42, _state43, _state43$property, _state43$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, _state44, _state44$additionalDe, _state44$additionalDe2, _state45, _state45$additionalDe, _state45$additionalDe2, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state49$additionalDe2, _state50, _state50$additionalDe, _state50$additionalDe2, _state51, _state51$additionalDe, _state52, _state52$additionalDe, _state53, _state53$additionalDe, _state54, _state54$additionalDe, _state55, _state55$additionalDe, _state56, _state56$additionalDe, _state57, _state57$additionalDe, _state58, _state59, _state60, _state61, _state61$connectionHo, _state61$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, _state62, _state63, _state66, _state66$status, _state67, _state67$applicationS, _state68, _paymentDetails$data17, _paymentDetails$data18;
|
|
49801
50361
|
const {
|
|
49802
50362
|
t
|
|
49803
50363
|
} = useTranslation();
|
|
@@ -49812,6 +50372,7 @@ const ConnectionDetails$5 = () => {
|
|
|
49812
50372
|
} = useLocation();
|
|
49813
50373
|
const [showModal, setshowModal] = useState(false);
|
|
49814
50374
|
const [showActionToast, setshowActionToast] = useState(null);
|
|
50375
|
+
const [activeAmendment, setActiveAmendment] = useState(null);
|
|
49815
50376
|
const mobileView = Digit.Utils.browser.isMobile();
|
|
49816
50377
|
const getAddress = address => {
|
|
49817
50378
|
var _address$locality, _address$locality2, _address$city;
|
|
@@ -49973,9 +50534,11 @@ const ConnectionDetails$5 = () => {
|
|
|
49973
50534
|
downloadOptions.sort(function (a, b) {
|
|
49974
50535
|
return a.order - b.order;
|
|
49975
50536
|
});
|
|
49976
|
-
const isSW = (_state = state) === null || _state === void 0 ? void 0 : (_state$applicationNo = _state.applicationNo) === null || _state$applicationNo === void 0 ? void 0 : _state$applicationNo.includes("SW");
|
|
50537
|
+
const isSW = (((_state = state) === null || _state === void 0 ? void 0 : (_state$applicationNo = _state.applicationNo) === null || _state$applicationNo === void 0 ? void 0 : _state$applicationNo.includes("SW")) || (applicationNobyData === null || applicationNobyData === void 0 ? void 0 : applicationNobyData.includes("SW")) || ((_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$connectionNo = _state2.connectionNo) === null || _state2$connectionNo === void 0 ? void 0 : _state2$connectionNo.includes("SW"))) && !((_state3 = state) !== null && _state3 !== void 0 && (_state3$applicationNo = _state3.applicationNo) !== null && _state3$applicationNo !== void 0 && _state3$applicationNo.includes("WS")) && !((_state4 = state) !== null && _state4 !== void 0 && (_state4$connectionNo = _state4.connectionNo) !== null && _state4$connectionNo !== void 0 && _state4$connectionNo.includes("WS"));
|
|
50538
|
+
const isWS = ((_state5 = state) === null || _state5 === void 0 ? void 0 : (_state5$applicationTy = _state5.applicationType) === null || _state5$applicationTy === void 0 ? void 0 : _state5$applicationTy.includes("WATER")) || ((_state6 = state) === null || _state6 === void 0 ? void 0 : (_state6$applicationNo = _state6.applicationNo) === null || _state6$applicationNo === void 0 ? void 0 : _state6$applicationNo.includes("WS")) || (applicationNobyData === null || applicationNobyData === void 0 ? void 0 : applicationNobyData.includes("WS")) || ((_state7 = state) === null || _state7 === void 0 ? void 0 : (_state7$connectionNo = _state7.connectionNo) === null || _state7$connectionNo === void 0 ? void 0 : _state7$connectionNo.includes("WS")) || ((_state8 = state) === null || _state8 === void 0 ? void 0 : _state8.water) === true;
|
|
50539
|
+
const serviceType = isWS || !isSW ? "WATER" : "SEWERAGE";
|
|
49977
50540
|
const fetchBillParams = {
|
|
49978
|
-
consumerCode: (
|
|
50541
|
+
consumerCode: (_state9 = state) === null || _state9 === void 0 ? void 0 : _state9.connectionNo
|
|
49979
50542
|
};
|
|
49980
50543
|
const paymentDetails = Digit.Hooks.useFetchBillsForBuissnessService({
|
|
49981
50544
|
businessService: isSW ? "SW" : "WS",
|
|
@@ -50051,11 +50614,45 @@ const ConnectionDetails$5 = () => {
|
|
|
50051
50614
|
}
|
|
50052
50615
|
}
|
|
50053
50616
|
};
|
|
50617
|
+
useEffect(() => {
|
|
50618
|
+
let isMounted = true;
|
|
50619
|
+
const checkActiveAmendment = function () {
|
|
50620
|
+
try {
|
|
50621
|
+
var _state0, _state1;
|
|
50622
|
+
const connNo = (_state0 = state) === null || _state0 === void 0 ? void 0 : _state0.connectionNo;
|
|
50623
|
+
if (!connNo) return Promise.resolve();
|
|
50624
|
+
const finalTenantId = tenantId || ((_state1 = state) === null || _state1 === void 0 ? void 0 : _state1.tenantId) || "dl.djb";
|
|
50625
|
+
const finalServiceType = serviceType || (connNo !== null && connNo !== void 0 && connNo.includes("SW") ? "SEWERAGE" : "WATER");
|
|
50626
|
+
const businessService = finalServiceType === "WATER" ? "WS" : "SW";
|
|
50627
|
+
const _temp3 = _catch(function () {
|
|
50628
|
+
return Promise.resolve(Digit.PaymentService.searchAmendment(finalTenantId, {
|
|
50629
|
+
consumerCode: connNo,
|
|
50630
|
+
businessService
|
|
50631
|
+
})).then(function (res) {
|
|
50632
|
+
var _res$Amendments;
|
|
50633
|
+
const inWorkflow = res === null || res === void 0 ? void 0 : (_res$Amendments = res.Amendments) === null || _res$Amendments === void 0 ? void 0 : _res$Amendments.find(item => (item === null || item === void 0 ? void 0 : item.status) === "INWORKFLOW");
|
|
50634
|
+
if (isMounted && inWorkflow) {
|
|
50635
|
+
setActiveAmendment(inWorkflow);
|
|
50636
|
+
}
|
|
50637
|
+
});
|
|
50638
|
+
}, function (e) {
|
|
50639
|
+
console.warn("Could not check active amendment in connection details", e);
|
|
50640
|
+
});
|
|
50641
|
+
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
50642
|
+
} catch (e) {
|
|
50643
|
+
return Promise.reject(e);
|
|
50644
|
+
}
|
|
50645
|
+
};
|
|
50646
|
+
checkActiveAmendment();
|
|
50647
|
+
return () => {
|
|
50648
|
+
isMounted = false;
|
|
50649
|
+
};
|
|
50650
|
+
}, [(_state10 = state) === null || _state10 === void 0 ? void 0 : _state10.connectionNo, applicationNobyData, serviceType, tenantId]);
|
|
50054
50651
|
const getBillAmendmentButton = function () {
|
|
50055
50652
|
try {
|
|
50056
|
-
var
|
|
50653
|
+
var _state11, _state12;
|
|
50057
50654
|
let _exit = false;
|
|
50058
|
-
function
|
|
50655
|
+
function _temp5(_result) {
|
|
50059
50656
|
if (_exit) return _result;
|
|
50060
50657
|
history.push(`/digit-ui/citizen/ws/bill-amendment?connectionNumber=${connNo}&tenantId=${finalTenantId}&service=${finalServiceType}`, JSON.stringify({
|
|
50061
50658
|
data: {
|
|
@@ -50064,32 +50661,26 @@ const ConnectionDetails$5 = () => {
|
|
|
50064
50661
|
}
|
|
50065
50662
|
}));
|
|
50066
50663
|
}
|
|
50067
|
-
const connNo = ((
|
|
50068
|
-
const finalTenantId = tenantId || ((
|
|
50664
|
+
const connNo = ((_state11 = state) === null || _state11 === void 0 ? void 0 : _state11.connectionNo) || applicationNobyData;
|
|
50665
|
+
const finalTenantId = tenantId || ((_state12 = state) === null || _state12 === void 0 ? void 0 : _state12.tenantId) || "dl.djb";
|
|
50069
50666
|
const finalServiceType = serviceType || (connNo !== null && connNo !== void 0 && connNo.includes("SW") ? "SEWERAGE" : "WATER");
|
|
50070
50667
|
const businessService = finalServiceType === "WATER" ? "WS" : "SW";
|
|
50071
|
-
const
|
|
50668
|
+
const _temp4 = _catch(function () {
|
|
50072
50669
|
return Promise.resolve(Digit.PaymentService.searchAmendment(finalTenantId, {
|
|
50073
50670
|
consumerCode: connNo,
|
|
50074
50671
|
businessService
|
|
50075
50672
|
})).then(function (res) {
|
|
50076
|
-
var _res$
|
|
50077
|
-
const inWorkflow = res === null || res === void 0 ? void 0 : (_res$
|
|
50673
|
+
var _res$Amendments2;
|
|
50674
|
+
const inWorkflow = res === null || res === void 0 ? void 0 : (_res$Amendments2 = res.Amendments) === null || _res$Amendments2 === void 0 ? void 0 : _res$Amendments2.find(item => (item === null || item === void 0 ? void 0 : item.status) === "INWORKFLOW");
|
|
50078
50675
|
if (inWorkflow) {
|
|
50079
|
-
|
|
50080
|
-
key: "error",
|
|
50081
|
-
label: "WORKFLOW_IN_PROGRESS"
|
|
50082
|
-
});
|
|
50083
|
-
setTimeout(() => {
|
|
50084
|
-
closeBillToast();
|
|
50085
|
-
}, 5000);
|
|
50676
|
+
history.push(`/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${inWorkflow.amendmentId}`);
|
|
50086
50677
|
_exit = true;
|
|
50087
50678
|
}
|
|
50088
50679
|
});
|
|
50089
50680
|
}, function (e) {
|
|
50090
50681
|
console.error("Error searching amendment", e);
|
|
50091
50682
|
});
|
|
50092
|
-
return Promise.resolve(
|
|
50683
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4));
|
|
50093
50684
|
} catch (e) {
|
|
50094
50685
|
return Promise.reject(e);
|
|
50095
50686
|
}
|
|
@@ -50127,8 +50718,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50127
50718
|
if (isLoading || isPTLoading) {
|
|
50128
50719
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
50129
50720
|
}
|
|
50130
|
-
sessionStorage.setItem("ApplicationNoState", (
|
|
50131
|
-
let serviceType = (_state6 = state) !== null && _state6 !== void 0 && (_state6$applicationTy = _state6.applicationType) !== null && _state6$applicationTy !== void 0 && _state6$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
50721
|
+
sessionStorage.setItem("ApplicationNoState", (_state13 = state) === null || _state13 === void 0 ? void 0 : _state13.applicationNo);
|
|
50132
50722
|
return /*#__PURE__*/React.createElement(React.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
50133
50723
|
t: t
|
|
50134
50724
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -50149,21 +50739,64 @@ const ConnectionDetails$5 = () => {
|
|
|
50149
50739
|
options: downloadOptions,
|
|
50150
50740
|
downloadBtnClassName: "employee-download-btn-className",
|
|
50151
50741
|
optionsClassName: "employee-options-btn-className"
|
|
50152
|
-
}))),
|
|
50742
|
+
}))), activeAmendment && /*#__PURE__*/React.createElement("div", {
|
|
50743
|
+
style: {
|
|
50744
|
+
padding: "14px 16px",
|
|
50745
|
+
backgroundColor: "#EFF6FF",
|
|
50746
|
+
border: "1px solid #BFDBFE",
|
|
50747
|
+
borderRadius: "8px",
|
|
50748
|
+
marginBottom: "20px"
|
|
50749
|
+
}
|
|
50750
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50751
|
+
style: {
|
|
50752
|
+
display: "flex",
|
|
50753
|
+
justifyContent: "space-between",
|
|
50754
|
+
alignItems: "center",
|
|
50755
|
+
flexWrap: "wrap",
|
|
50756
|
+
gap: "10px"
|
|
50757
|
+
}
|
|
50758
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
50759
|
+
style: {
|
|
50760
|
+
fontWeight: "700",
|
|
50761
|
+
color: "#1E40AF",
|
|
50762
|
+
fontSize: "16px"
|
|
50763
|
+
}
|
|
50764
|
+
}, t("WS_ACTIVE_BILL_AMENDMENT_LABEL", "Active Bill Correction / Amendment Request")), /*#__PURE__*/React.createElement("div", {
|
|
50765
|
+
style: {
|
|
50766
|
+
color: "#1E3A8A",
|
|
50767
|
+
fontSize: "14px",
|
|
50768
|
+
marginTop: "4px"
|
|
50769
|
+
}
|
|
50770
|
+
}, t("WS_APPLICATION_NO_LABEL", "Application No:"), " ", /*#__PURE__*/React.createElement("strong", null, activeAmendment.amendmentId), " | ", t("WS_STATUS_LABEL", "Status:"), " ", /*#__PURE__*/React.createElement("span", {
|
|
50771
|
+
style: {
|
|
50772
|
+
fontWeight: "600",
|
|
50773
|
+
color: "#B45309"
|
|
50774
|
+
}
|
|
50775
|
+
}, t(`CS_${activeAmendment.status}`, activeAmendment.status)))), /*#__PURE__*/React.createElement(Link, {
|
|
50776
|
+
to: `/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${activeAmendment.amendmentId}`
|
|
50777
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
50778
|
+
className: "selector-button-border",
|
|
50779
|
+
style: {
|
|
50780
|
+
height: "36px",
|
|
50781
|
+
padding: "0 16px",
|
|
50782
|
+
margin: 0,
|
|
50783
|
+
cursor: "pointer"
|
|
50784
|
+
}
|
|
50785
|
+
}, t("WS_TRACK_OR_RESUBMIT_LABEL", "View Details & Track / Re-Submit"))))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
50153
50786
|
className: "border-none",
|
|
50154
50787
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
50155
|
-
text: (
|
|
50788
|
+
text: (_state14 = state) === null || _state14 === void 0 ? void 0 : _state14.connectionNo
|
|
50156
50789
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50157
50790
|
className: "border-none",
|
|
50158
50791
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
50159
|
-
text: t(`WS_APPLICATION_TYPE_${(
|
|
50792
|
+
text: t(`WS_APPLICATION_TYPE_${(_state15 = state) === null || _state15 === void 0 ? void 0 : _state15.applicationType}`),
|
|
50160
50793
|
textStyle: {
|
|
50161
50794
|
wordBreak: "break-word"
|
|
50162
50795
|
}
|
|
50163
50796
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50164
50797
|
className: "border-none",
|
|
50165
50798
|
label: t("WS_STATUS"),
|
|
50166
|
-
text: ((
|
|
50799
|
+
text: ((_state16 = state) === null || _state16 === void 0 ? void 0 : _state16.status) || "NA",
|
|
50167
50800
|
textStyle: {
|
|
50168
50801
|
whiteSpace: "pre"
|
|
50169
50802
|
}
|
|
@@ -50171,127 +50804,127 @@ const ConnectionDetails$5 = () => {
|
|
|
50171
50804
|
styles: {
|
|
50172
50805
|
fontSize: "28px"
|
|
50173
50806
|
}
|
|
50174
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, null, ((
|
|
50807
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, null, ((_state17 = state) === null || _state17 === void 0 ? void 0 : (_state17$applicationT = _state17.applicationType) === null || _state17$applicationT === void 0 ? void 0 : _state17$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
50175
50808
|
className: "border-none",
|
|
50176
50809
|
label: t("WS_COMMON_TABLE_COL_CONNECTIONTYPE_LABEL"),
|
|
50177
|
-
text: ((
|
|
50810
|
+
text: ((_state18 = state) === null || _state18 === void 0 ? void 0 : _state18.connectionType) || t("NA"),
|
|
50178
50811
|
textStyle: {
|
|
50179
50812
|
whiteSpace: "pre"
|
|
50180
50813
|
}
|
|
50181
50814
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50182
50815
|
className: "border-none",
|
|
50183
50816
|
label: t("WS_SERV_DETAIL_NO_OF_TAPS"),
|
|
50184
|
-
text: (
|
|
50817
|
+
text: (_state19 = state) === null || _state19 === void 0 ? void 0 : _state19.noOfTaps,
|
|
50185
50818
|
textStyle: {
|
|
50186
50819
|
whiteSpace: "pre"
|
|
50187
50820
|
}
|
|
50188
50821
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50189
50822
|
className: "border-none",
|
|
50190
50823
|
label: t("WS_PIPE_SIZE_IN_INCHES_LABEL"),
|
|
50191
|
-
text: ((
|
|
50824
|
+
text: ((_state20 = state) === null || _state20 === void 0 ? void 0 : _state20.pipeSize) || "NA",
|
|
50192
50825
|
textStyle: {
|
|
50193
50826
|
whiteSpace: "pre"
|
|
50194
50827
|
}
|
|
50195
|
-
})), ((
|
|
50828
|
+
})), ((_state21 = state) === null || _state21 === void 0 ? void 0 : (_state21$applicationT = _state21.applicationType) === null || _state21$applicationT === void 0 ? void 0 : _state21$applicationT.includes("SEWERAGE")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
50196
50829
|
className: "border-none",
|
|
50197
50830
|
label: t("WS_CONN_DETAIL_WATER_CLOSETS"),
|
|
50198
|
-
text: (
|
|
50831
|
+
text: (_state22 = state) === null || _state22 === void 0 ? void 0 : _state22.proposedWaterClosets,
|
|
50199
50832
|
textStyle: {
|
|
50200
50833
|
whiteSpace: "pre"
|
|
50201
50834
|
}
|
|
50202
50835
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50203
50836
|
className: "border-none",
|
|
50204
50837
|
label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
|
|
50205
|
-
text: ((
|
|
50838
|
+
text: ((_state23 = state) === null || _state23 === void 0 ? void 0 : _state23.proposedToilets) || t("CS_NA"),
|
|
50206
50839
|
textStyle: {
|
|
50207
50840
|
whiteSpace: "pre"
|
|
50208
50841
|
}
|
|
50209
50842
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50210
50843
|
className: "border-none",
|
|
50211
50844
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
50212
|
-
text: (
|
|
50845
|
+
text: (_state24 = state) !== null && _state24 !== void 0 && _state24.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate((_state25 = state) === null || _state25 === void 0 ? void 0 : _state25.connectionExecutionDate) : t("CS_NA"),
|
|
50213
50846
|
textStyle: {
|
|
50214
50847
|
whiteSpace: "pre"
|
|
50215
50848
|
}
|
|
50216
|
-
})), ((
|
|
50849
|
+
})), ((_state26 = state) === null || _state26 === void 0 ? void 0 : (_state26$applicationT = _state26.applicationType) === null || _state26$applicationT === void 0 ? void 0 : _state26$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
50217
50850
|
className: "border-none",
|
|
50218
50851
|
label: t("WS_SERV_DETAIL_WATER_SOURCE"),
|
|
50219
|
-
text: t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((
|
|
50852
|
+
text: t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$waterSource = _state27.waterSource) === null || _state27$waterSource === void 0 ? void 0 : (_state27$waterSource$ = _state27$waterSource.split(".")) === null || _state27$waterSource$ === void 0 ? void 0 : _state27$waterSource$[0], ".", "_")}`) || t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((_state28 = state) === null || _state28 === void 0 ? void 0 : _state28.waterSource, ".", "_")}`) || t("CS_NA"),
|
|
50220
50853
|
textStyle: {
|
|
50221
50854
|
whiteSpace: "pre"
|
|
50222
50855
|
}
|
|
50223
50856
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50224
50857
|
className: "border-none",
|
|
50225
50858
|
label: t("WS_SERV_DETAIL_WATER_SUB_SOURCE"),
|
|
50226
|
-
text: t((
|
|
50859
|
+
text: t((_state29 = state) === null || _state29 === void 0 ? void 0 : (_state29$waterSource = _state29.waterSource) === null || _state29$waterSource === void 0 ? void 0 : (_state29$waterSource$ = _state29$waterSource.split(".")) === null || _state29$waterSource$ === void 0 ? void 0 : _state29$waterSource$[1]) || t("CS_NA"),
|
|
50227
50860
|
textStyle: {
|
|
50228
50861
|
whiteSpace: "pre"
|
|
50229
50862
|
}
|
|
50230
50863
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50231
50864
|
className: "border-none",
|
|
50232
50865
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
50233
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
50866
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state30 = state) === null || _state30 === void 0 ? void 0 : _state30.connectionExecutionDate) || t("NA"),
|
|
50234
50867
|
textStyle: {
|
|
50235
50868
|
whiteSpace: "pre"
|
|
50236
50869
|
}
|
|
50237
50870
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50238
50871
|
className: "border-none",
|
|
50239
50872
|
label: t("WS_SERV_DETAIL_METER_ID"),
|
|
50240
|
-
text: (
|
|
50873
|
+
text: (_state31 = state) === null || _state31 === void 0 ? void 0 : _state31.meterId,
|
|
50241
50874
|
textStyle: {
|
|
50242
50875
|
whiteSpace: "pre"
|
|
50243
50876
|
}
|
|
50244
50877
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50245
50878
|
className: "border-none",
|
|
50246
50879
|
label: t("WS_ADDN_DETAIL_METER_INSTALL_DATE"),
|
|
50247
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
50880
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state32 = state) === null || _state32 === void 0 ? void 0 : _state32.meterInstallationDate) || "NA",
|
|
50248
50881
|
textStyle: {
|
|
50249
50882
|
whiteSpace: "pre"
|
|
50250
50883
|
}
|
|
50251
50884
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50252
50885
|
className: "border-none",
|
|
50253
50886
|
label: t("WS_ADDN_DETAILS_INITIAL_METER_READING"),
|
|
50254
|
-
text: ((
|
|
50887
|
+
text: ((_state33 = state) === null || _state33 === void 0 ? void 0 : (_state33$additionalDe = _state33.additionalDetails) === null || _state33$additionalDe === void 0 ? void 0 : _state33$additionalDe.initialMeterReading) || "NA",
|
|
50255
50888
|
textStyle: {
|
|
50256
50889
|
whiteSpace: "pre"
|
|
50257
50890
|
}
|
|
50258
|
-
})), ((
|
|
50891
|
+
})), ((_state34 = state) === null || _state34 === void 0 ? void 0 : (_state34$applicationT = _state34.applicationType) === null || _state34$applicationT === void 0 ? void 0 : _state34$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
50259
50892
|
className: "border-none",
|
|
50260
50893
|
label: t("WS_WATER_DEMAND_TYPE"),
|
|
50261
|
-
text: (
|
|
50894
|
+
text: (_state35 = state) !== null && _state35 !== void 0 && (_state35$additionalDe = _state35.additionalDetails) !== null && _state35$additionalDe !== void 0 && (_state35$additionalDe2 = _state35$additionalDe.waterDemandType) !== null && _state35$additionalDe2 !== void 0 && _state35$additionalDe2.i18nKey ? t((_state36 = state) === null || _state36 === void 0 ? void 0 : (_state36$additionalDe = _state36.additionalDetails) === null || _state36$additionalDe === void 0 ? void 0 : (_state36$additionalDe2 = _state36$additionalDe.waterDemandType) === null || _state36$additionalDe2 === void 0 ? void 0 : _state36$additionalDe2.i18nKey) : "NA",
|
|
50262
50895
|
textStyle: {
|
|
50263
50896
|
whiteSpace: "pre"
|
|
50264
50897
|
}
|
|
50265
50898
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50266
50899
|
className: "border-none",
|
|
50267
50900
|
label: t("WS_CATEGORY_TYPE"),
|
|
50268
|
-
text: ((
|
|
50901
|
+
text: ((_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$additionalDe = _state37.additionalDetails) === null || _state37$additionalDe === void 0 ? void 0 : _state37$additionalDe.categoryType) || "NA",
|
|
50269
50902
|
textStyle: {
|
|
50270
50903
|
whiteSpace: "pre"
|
|
50271
50904
|
}
|
|
50272
50905
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50273
50906
|
className: "border-none",
|
|
50274
50907
|
label: t("WS_ZRO_NAME"),
|
|
50275
|
-
text: ((
|
|
50908
|
+
text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.zro) || "NA",
|
|
50276
50909
|
textStyle: {
|
|
50277
50910
|
whiteSpace: "pre"
|
|
50278
50911
|
}
|
|
50279
50912
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50280
50913
|
className: "border-none",
|
|
50281
50914
|
label: t("WS_CONNECTION_USAGE_TYPE"),
|
|
50282
|
-
text: ((
|
|
50915
|
+
text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : (_state39$additionalDe2 = _state39$additionalDe.WaterConnectionUsageType) === null || _state39$additionalDe2 === void 0 ? void 0 : _state39$additionalDe2.name) || "NA",
|
|
50283
50916
|
textStyle: {
|
|
50284
50917
|
whiteSpace: "pre"
|
|
50285
50918
|
}
|
|
50286
50919
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50287
50920
|
className: "border-none",
|
|
50288
50921
|
label: t("WS_TEMPORARY_CONNECTION"),
|
|
50289
|
-
text: ((
|
|
50922
|
+
text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.temporaryConnection) || "NA",
|
|
50290
50923
|
textStyle: {
|
|
50291
50924
|
whiteSpace: "pre"
|
|
50292
50925
|
}
|
|
50293
|
-
})), ((
|
|
50294
|
-
to: `/digit-ui/citizen/ws/consumption/details?applicationNo=${(
|
|
50926
|
+
})), ((_state41 = state) === null || _state41 === void 0 ? void 0 : _state41.connectionType) === "Metered" && /*#__PURE__*/React.createElement(Link, {
|
|
50927
|
+
to: `/digit-ui/citizen/ws/consumption/details?applicationNo=${(_state42 = state) === null || _state42 === void 0 ? void 0 : _state42.connectionNo}`
|
|
50295
50928
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
50296
50929
|
style: {
|
|
50297
50930
|
textAlign: "left",
|
|
@@ -50306,7 +50939,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50306
50939
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
50307
50940
|
className: "border-none",
|
|
50308
50941
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
50309
|
-
text: (
|
|
50942
|
+
text: (_state43 = state) === null || _state43 === void 0 ? void 0 : (_state43$property = _state43.property) === null || _state43$property === void 0 ? void 0 : (_state43$property$own = _state43$property.owners) === null || _state43$property$own === void 0 ? void 0 : _state43$property$own.map(owner => owner.name).join(","),
|
|
50310
50943
|
textStyle: {
|
|
50311
50944
|
whiteSpace: "pre"
|
|
50312
50945
|
}
|
|
@@ -50341,32 +50974,32 @@ const ConnectionDetails$5 = () => {
|
|
|
50341
50974
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50342
50975
|
className: "border-none",
|
|
50343
50976
|
label: t("WS_PROPERTY_TYPE"),
|
|
50344
|
-
text: ((
|
|
50977
|
+
text: ((_state44 = state) === null || _state44 === void 0 ? void 0 : (_state44$additionalDe = _state44.additionalDetails) === null || _state44$additionalDe === void 0 ? void 0 : (_state44$additionalDe2 = _state44$additionalDe.propertyType) === null || _state44$additionalDe2 === void 0 ? void 0 : _state44$additionalDe2.name) || "NA"
|
|
50345
50978
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50346
50979
|
className: "border-none",
|
|
50347
50980
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
50348
|
-
text: ((
|
|
50981
|
+
text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : (_state45$additionalDe2 = _state45$additionalDe.propertyCategory) === null || _state45$additionalDe2 === void 0 ? void 0 : _state45$additionalDe2.name) || "NA"
|
|
50349
50982
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50350
50983
|
className: "border-none",
|
|
50351
50984
|
label: t("WS_PLOT_AREA"),
|
|
50352
|
-
text: ((
|
|
50985
|
+
text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.plotArea) || "NA"
|
|
50353
50986
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50354
50987
|
className: "border-none",
|
|
50355
50988
|
label: t("WS_BUILT_UP_AREA"),
|
|
50356
|
-
text: ((
|
|
50989
|
+
text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.builtUpArea) || "NA"
|
|
50357
50990
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50358
50991
|
className: "border-none",
|
|
50359
50992
|
label: t("WS_NO_OF_FLOORS"),
|
|
50360
|
-
text: ((
|
|
50361
|
-
}), String(((
|
|
50993
|
+
text: ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.noOfFloors) || "NA"
|
|
50994
|
+
}), String(((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : (_state49$additionalDe2 = _state49$additionalDe.propertyCategory) === null || _state49$additionalDe2 === void 0 ? void 0 : _state49$additionalDe2.code) || ((_state50 = state) === null || _state50 === void 0 ? void 0 : (_state50$additionalDe = _state50.additionalDetails) === null || _state50$additionalDe === void 0 ? void 0 : (_state50$additionalDe2 = _state50$additionalDe.propertyCategory) === null || _state50$additionalDe2 === void 0 ? void 0 : _state50$additionalDe2.name) || ((_state51 = state) === null || _state51 === void 0 ? void 0 : (_state51$additionalDe = _state51.additionalDetails) === null || _state51$additionalDe === void 0 ? void 0 : _state51$additionalDe.propertyCategory) || "").toUpperCase().includes("RESIDENTIAL") && /*#__PURE__*/React.createElement(Row, {
|
|
50362
50995
|
className: "border-none",
|
|
50363
50996
|
label: t("WS_NO_OF_DWELLING_UNITS"),
|
|
50364
|
-
text: ((
|
|
50997
|
+
text: ((_state52 = state) === null || _state52 === void 0 ? void 0 : (_state52$additionalDe = _state52.additionalDetails) === null || _state52$additionalDe === void 0 ? void 0 : _state52$additionalDe.NumberofDwellingUnits) || "NA"
|
|
50365
50998
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50366
50999
|
className: "border-none",
|
|
50367
51000
|
label: t("WS_LOCALITY"),
|
|
50368
|
-
text: ((
|
|
50369
|
-
}), (Array.isArray(((
|
|
51001
|
+
text: ((_state53 = state) === null || _state53 === void 0 ? void 0 : (_state53$additionalDe = _state53.additionalDetails) === null || _state53$additionalDe === void 0 ? void 0 : _state53$additionalDe.locality) || "NA"
|
|
51002
|
+
}), (Array.isArray(((_state54 = state) === null || _state54 === void 0 ? void 0 : (_state54$additionalDe = _state54.additionalDetails) === null || _state54$additionalDe === void 0 ? void 0 : _state54$additionalDe.questions) || ((_state55 = state) === null || _state55 === void 0 ? void 0 : (_state55$additionalDe = _state55.additionalDetails) === null || _state55$additionalDe === void 0 ? void 0 : _state55$additionalDe.questionAnswers)) ? ((_state56 = state) === null || _state56 === void 0 ? void 0 : (_state56$additionalDe = _state56.additionalDetails) === null || _state56$additionalDe === void 0 ? void 0 : _state56$additionalDe.questions) || ((_state57 = state) === null || _state57 === void 0 ? void 0 : (_state57$additionalDe = _state57.additionalDetails) === null || _state57$additionalDe === void 0 ? void 0 : _state57$additionalDe.questionAnswers) : []).map((q, idx) => {
|
|
50370
51003
|
var _q$answer, _q$answer2, _q$answer3;
|
|
50371
51004
|
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}`;
|
|
50372
51005
|
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;
|
|
@@ -50379,7 +51012,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50379
51012
|
text: `${t(checkForNA(aText))}`
|
|
50380
51013
|
});
|
|
50381
51014
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
50382
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(
|
|
51015
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.propertyId}&tenantId=${(_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.tenantId}`
|
|
50383
51016
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
50384
51017
|
style: {
|
|
50385
51018
|
textAlign: "left",
|
|
@@ -50391,10 +51024,10 @@ const ConnectionDetails$5 = () => {
|
|
|
50391
51024
|
styles: {
|
|
50392
51025
|
fontSize: "28px"
|
|
50393
51026
|
}
|
|
50394
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
51027
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state60 = state) !== null && _state60 !== void 0 && _state60.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
50395
51028
|
className: "border-none",
|
|
50396
51029
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
50397
|
-
text: (
|
|
51030
|
+
text: (_state61 = state) === null || _state61 === void 0 ? void 0 : (_state61$connectionHo = _state61.connectionHolders) === null || _state61$connectionHo === void 0 ? void 0 : (_state61$connectionHo2 = _state61$connectionHo[0]) === null || _state61$connectionHo2 === void 0 ? void 0 : _state61$connectionHo2.name,
|
|
50398
51031
|
textStyle: {
|
|
50399
51032
|
whiteSpace: "pre"
|
|
50400
51033
|
}
|
|
@@ -50513,15 +51146,15 @@ const ConnectionDetails$5 = () => {
|
|
|
50513
51146
|
isArray: false
|
|
50514
51147
|
}
|
|
50515
51148
|
}
|
|
50516
|
-
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((
|
|
50517
|
-
var _doc$documentType,
|
|
51149
|
+
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state62 = state) === null || _state62 === void 0 ? void 0 : _state62.documents) && ((_state63 = state) === null || _state63 === void 0 ? void 0 : _state63.documents.map((doc, index) => {
|
|
51150
|
+
var _doc$documentType, _state64, _state65;
|
|
50518
51151
|
return /*#__PURE__*/React.createElement("div", {
|
|
50519
51152
|
key: `doc-${index}`
|
|
50520
51153
|
}, /*#__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, {
|
|
50521
|
-
value: (
|
|
51154
|
+
value: (_state64 = state) === null || _state64 === void 0 ? void 0 : _state64.documents,
|
|
50522
51155
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
50523
51156
|
index: index
|
|
50524
|
-
}), ((
|
|
51157
|
+
}), ((_state65 = state) === null || _state65 === void 0 ? void 0 : _state65.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
50525
51158
|
style: {
|
|
50526
51159
|
color: "#cccccc",
|
|
50527
51160
|
backgroundColor: "#cccccc",
|
|
@@ -50530,7 +51163,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50530
51163
|
marginBottom: "20px"
|
|
50531
51164
|
}
|
|
50532
51165
|
}) : null)));
|
|
50533
|
-
})), ((
|
|
51166
|
+
})), ((_state66 = state) === null || _state66 === void 0 ? void 0 : (_state66$status = _state66.status) === null || _state66$status === void 0 ? void 0 : _state66$status.toLowerCase()) === "inactive" || ((_state67 = state) === null || _state67 === void 0 ? void 0 : (_state67$applicationS = _state67.applicationStatus) === null || _state67$applicationS === void 0 ? void 0 : _state67$applicationS.toLowerCase()) === "inactive" || ((_state68 = state) === null || _state68 === void 0 ? void 0 : _state68.applicationStatus) === "DISCONNECTION_EXECUTED" || isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
|
|
50534
51167
|
style: {
|
|
50535
51168
|
display: "flex",
|
|
50536
51169
|
justifyContent: "flex-end",
|
|
@@ -50567,8 +51200,8 @@ const ConnectionDetails$5 = () => {
|
|
|
50567
51200
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
50568
51201
|
hideSubmit: true,
|
|
50569
51202
|
actionSingleSubmit: () => {
|
|
50570
|
-
var
|
|
50571
|
-
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((
|
|
51203
|
+
var _state69, _state70;
|
|
51204
|
+
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state69 = state) === null || _state69 === void 0 ? void 0 : _state69.connectionNo)}/${tenantId}?consumerCode=${(_state70 = state) === null || _state70 === void 0 ? void 0 : _state70.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
|
|
50572
51205
|
setshowModal(false);
|
|
50573
51206
|
},
|
|
50574
51207
|
popupStyles: mobileView ? {
|
|
@@ -51966,7 +52599,7 @@ const EditApplication = _ref1 => {
|
|
|
51966
52599
|
});
|
|
51967
52600
|
const latestProperty = ptData === null || ptData === void 0 ? void 0 : (_ptData$Properties = ptData.Properties) === null || _ptData$Properties === void 0 ? void 0 : _ptData$Properties[0];
|
|
51968
52601
|
useEffect(() => {
|
|
51969
|
-
var _currentApp$additiona, _params$additionalDet, _params$additionalDet2, _currentApp$additiona2, _currentApp$auditDeta, _params$auditDetails, _params$auditDetails2, _currentApp$auditDeta2, _params$cpt3, _prevProp$auditDetail, _latestProperty$audit
|
|
52602
|
+
var _currentApp$additiona, _params$additionalDet, _params$additionalDet2, _currentApp$additiona2, _currentApp$auditDeta, _params$auditDetails, _params$auditDetails2, _currentApp$auditDeta2, _params$cpt3, _prevProp$auditDetail, _latestProperty$audit;
|
|
51970
52603
|
if (window.location.href.includes("/acknowledgement")) {
|
|
51971
52604
|
return;
|
|
51972
52605
|
}
|
|
@@ -51981,7 +52614,7 @@ const EditApplication = _ref1 => {
|
|
|
51981
52614
|
const isAuditChanged = (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$auditDeta = currentApp.auditDetails) === null || _currentApp$auditDeta === void 0 ? void 0 : _currentApp$auditDeta.lastModifiedTime) && (params === null || params === void 0 ? void 0 : (_params$auditDetails = params.auditDetails) === null || _params$auditDetails === void 0 ? void 0 : _params$auditDetails.lastModifiedTime) && (params === null || params === void 0 ? void 0 : (_params$auditDetails2 = params.auditDetails) === null || _params$auditDetails2 === void 0 ? void 0 : _params$auditDetails2.lastModifiedTime) !== (currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$auditDeta2 = currentApp.auditDetails) === null || _currentApp$auditDeta2 === void 0 ? void 0 : _currentApp$auditDeta2.lastModifiedTime);
|
|
51982
52615
|
const isStatusChanged = (currentApp === null || currentApp === void 0 ? void 0 : currentApp.applicationStatus) && (params === null || params === void 0 ? void 0 : params.applicationStatus) && (params === null || params === void 0 ? void 0 : params.applicationStatus) !== (currentApp === null || currentApp === void 0 ? void 0 : currentApp.applicationStatus);
|
|
51983
52616
|
const prevProp = (params === null || params === void 0 ? void 0 : (_params$cpt3 = params.cpt) === null || _params$cpt3 === void 0 ? void 0 : _params$cpt3.details) || (params === null || params === void 0 ? void 0 : params.property);
|
|
51984
|
-
const isPropertyUpdated = latestProperty && (!prevProp || prevProp.propertyId !== latestProperty.propertyId || ((_prevProp$auditDetail = prevProp.auditDetails) === null || _prevProp$auditDetail === void 0 ? void 0 : _prevProp$auditDetail.lastModifiedTime) !== ((_latestProperty$audit = latestProperty.auditDetails) === null || _latestProperty$audit === void 0 ? void 0 : _latestProperty$audit.lastModifiedTime) || JSON.stringify(prevProp) !== JSON.stringify(latestProperty)
|
|
52617
|
+
const isPropertyUpdated = latestProperty && (!prevProp || prevProp.propertyId !== latestProperty.propertyId || ((_prevProp$auditDetail = prevProp.auditDetails) === null || _prevProp$auditDetail === void 0 ? void 0 : _prevProp$auditDetail.lastModifiedTime) !== ((_latestProperty$audit = latestProperty.auditDetails) === null || _latestProperty$audit === void 0 ? void 0 : _latestProperty$audit.lastModifiedTime) || JSON.stringify(prevProp) !== JSON.stringify(latestProperty) && prevProp.propertyId === latestProperty.propertyId);
|
|
51985
52618
|
if (isAppLoaded && (isNotHydrated || isDifferentApp || isSatisfiedChanged || isAuditChanged || isStatusChanged)) {
|
|
51986
52619
|
if (window.location.href.includes("edit-application")) {
|
|
51987
52620
|
if (waterapplication) {
|
|
@@ -52189,7 +52822,7 @@ const EditApplication = _ref1 => {
|
|
|
52189
52822
|
}
|
|
52190
52823
|
const propToSubmit = latestProperty || (params === null || params === void 0 ? void 0 : (_params$cpt4 = params.cpt) === null || _params$cpt4 === void 0 ? void 0 : _params$cpt4.details) || (params === null || params === void 0 ? void 0 : params.property);
|
|
52191
52824
|
if (propToSubmit) {
|
|
52192
|
-
var _propMapped$waterConn0, _params$
|
|
52825
|
+
var _propMapped$waterConn0, _params$waterConnecti, _params$WaterConnecti4, _params$WaterConnecti5, _params$SewerageConne4, _params$SewerageConne5;
|
|
52193
52826
|
const propMapped = mapPropertyToFormFields(propToSubmit);
|
|
52194
52827
|
params.property = propToSubmit;
|
|
52195
52828
|
params.cpt = {
|
|
@@ -52206,7 +52839,7 @@ const EditApplication = _ref1 => {
|
|
|
52206
52839
|
...(params.waterConnection || {}),
|
|
52207
52840
|
useDetails: {
|
|
52208
52841
|
...(((_propMapped$waterConn0 = propMapped.waterConnection) === null || _propMapped$waterConn0 === void 0 ? void 0 : _propMapped$waterConn0.useDetails) || {}),
|
|
52209
|
-
...(((_params$
|
|
52842
|
+
...(((_params$waterConnecti = params.waterConnection) === null || _params$waterConnecti === void 0 ? void 0 : _params$waterConnecti.useDetails) || {})
|
|
52210
52843
|
}
|
|
52211
52844
|
};
|
|
52212
52845
|
if (params !== null && params !== void 0 && (_params$WaterConnecti4 = params.WaterConnectionResult) !== null && _params$WaterConnecti4 !== void 0 && (_params$WaterConnecti5 = _params$WaterConnecti4.WaterConnection) !== null && _params$WaterConnecti5 !== void 0 && _params$WaterConnecti5[0]) {
|
|
@@ -52801,7 +53434,15 @@ const CheckPage = _ref => {
|
|
|
52801
53434
|
},
|
|
52802
53435
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
52803
53436
|
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
52804
|
-
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("
|
|
53437
|
+
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
53438
|
+
style: {
|
|
53439
|
+
marginTop: "10px",
|
|
53440
|
+
marginBottom: "30px"
|
|
53441
|
+
}
|
|
53442
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
53443
|
+
label: t("Rain Water Harvesting Certificate"),
|
|
53444
|
+
text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
53445
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
52805
53446
|
style: {
|
|
52806
53447
|
marginTop: "10px",
|
|
52807
53448
|
marginBottom: "30px"
|
|
@@ -52821,14 +53462,6 @@ const CheckPage = _ref => {
|
|
|
52821
53462
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
52822
53463
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
52823
53464
|
text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
|
|
52824
|
-
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
52825
|
-
style: {
|
|
52826
|
-
marginTop: "10px",
|
|
52827
|
-
marginBottom: "30px"
|
|
52828
|
-
}
|
|
52829
|
-
}, /*#__PURE__*/React.createElement(Row, {
|
|
52830
|
-
label: t("Rain Water Harvesting Certificate"),
|
|
52831
|
-
text: `${rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
52832
53465
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
52833
53466
|
style: {
|
|
52834
53467
|
marginTop: "10px",
|
|
@@ -53620,6 +54253,7 @@ const CheckPage$1 = () => {
|
|
|
53620
54253
|
location.href = jumpTo;
|
|
53621
54254
|
}
|
|
53622
54255
|
const [isEnableLoader, setIsEnableLoader] = useState(false);
|
|
54256
|
+
const [error, setError] = useState(null);
|
|
53623
54257
|
const {
|
|
53624
54258
|
isLoading: creatingWaterApplicationLoading,
|
|
53625
54259
|
isError: createWaterApplicationError,
|
|
@@ -53649,14 +54283,16 @@ const CheckPage$1 = () => {
|
|
|
53649
54283
|
mutate: sewerageUpdateMutation
|
|
53650
54284
|
} = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
|
|
53651
54285
|
const closeToastOfError = () => {
|
|
53652
|
-
|
|
54286
|
+
setError(null);
|
|
53653
54287
|
};
|
|
53654
54288
|
const onSubmit = function (data) {
|
|
53655
54289
|
try {
|
|
53656
|
-
var
|
|
53657
|
-
const
|
|
54290
|
+
var _appData$service, _appData$connectionNo, _appData$applicationN, _value$connectionNo, _value$serviceType, _value$serviceType2, _appData$additionalDe, _appData$additionalDe2, _appData$connectionNo2;
|
|
54291
|
+
const appData = (value === null || value === void 0 ? void 0 : value.applicationData) || value || {};
|
|
54292
|
+
const isWater = (appData === null || appData === void 0 ? void 0 : appData.water) === true || (appData === null || appData === void 0 ? void 0 : (_appData$service = appData.service) === null || _appData$service === void 0 ? void 0 : _appData$service.toLowerCase()) === "water" || (appData === null || appData === void 0 ? void 0 : (_appData$connectionNo = appData.connectionNo) === null || _appData$connectionNo === void 0 ? void 0 : _appData$connectionNo.includes("WS")) || (appData === null || appData === void 0 ? void 0 : (_appData$applicationN = appData.applicationNo) === null || _appData$applicationN === void 0 ? void 0 : _appData$applicationN.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$connectionNo = value.connectionNo) === null || _value$connectionNo === void 0 ? void 0 : _value$connectionNo.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$serviceType = value.serviceType) === null || _value$serviceType === void 0 ? void 0 : _value$serviceType.toUpperCase()) === "WATER" || (value === null || value === void 0 ? void 0 : (_value$serviceType2 = value.serviceType) === null || _value$serviceType2 === void 0 ? void 0 : _value$serviceType2.toUpperCase()) === "WS" || (appData === null || appData === void 0 ? void 0 : (_appData$additionalDe = appData.additionalDetails) === null || _appData$additionalDe === void 0 ? void 0 : (_appData$additionalDe2 = _appData$additionalDe.serviceType) === null || _appData$additionalDe2 === void 0 ? void 0 : _appData$additionalDe2.code) === "WATER" || !(appData !== null && appData !== void 0 && (_appData$connectionNo2 = appData.connectionNo) !== null && _appData$connectionNo2 !== void 0 && _appData$connectionNo2.includes("SW"));
|
|
54293
|
+
const serviceType = isWater ? "WATER" : "SEWERAGE";
|
|
53658
54294
|
return Promise.resolve(createPayloadOfWSDisconnection(data, {
|
|
53659
|
-
applicationData:
|
|
54295
|
+
applicationData: appData
|
|
53660
54296
|
}, serviceType)).then(function (payload) {
|
|
53661
54297
|
const _temp4 = function (_payload$WaterConnect) {
|
|
53662
54298
|
if (payload !== null && payload !== void 0 && (_payload$WaterConnect = payload.WaterConnection) !== null && _payload$WaterConnect !== void 0 && _payload$WaterConnect.water) {
|
|
@@ -53839,7 +54475,11 @@ const CheckPage$1 = () => {
|
|
|
53839
54475
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
53840
54476
|
label: t("CS_COMMON_SUBMIT"),
|
|
53841
54477
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
53842
|
-
}))
|
|
54478
|
+
})), error && /*#__PURE__*/React.createElement(Toast, {
|
|
54479
|
+
error: (error === null || error === void 0 ? void 0 : error.key) === "error",
|
|
54480
|
+
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
54481
|
+
onClose: closeToastOfError
|
|
54482
|
+
})))));
|
|
53843
54483
|
};
|
|
53844
54484
|
|
|
53845
54485
|
const CheckPage$2 = () => {
|
|
@@ -53889,8 +54529,10 @@ const CheckPage$2 = () => {
|
|
|
53889
54529
|
};
|
|
53890
54530
|
const onSubmit = function (data) {
|
|
53891
54531
|
try {
|
|
53892
|
-
var
|
|
53893
|
-
const
|
|
54532
|
+
var _appData$service, _appData$connectionNo, _appData$applicationN, _value$connectionNo, _value$serviceType, _value$serviceType2, _appData$additionalDe, _appData$additionalDe2, _appData$connectionNo2;
|
|
54533
|
+
const appData = (value === null || value === void 0 ? void 0 : value.applicationData) || value || {};
|
|
54534
|
+
const isWater = (appData === null || appData === void 0 ? void 0 : appData.water) === true || (appData === null || appData === void 0 ? void 0 : (_appData$service = appData.service) === null || _appData$service === void 0 ? void 0 : _appData$service.toLowerCase()) === "water" || (appData === null || appData === void 0 ? void 0 : (_appData$connectionNo = appData.connectionNo) === null || _appData$connectionNo === void 0 ? void 0 : _appData$connectionNo.includes("WS")) || (appData === null || appData === void 0 ? void 0 : (_appData$applicationN = appData.applicationNo) === null || _appData$applicationN === void 0 ? void 0 : _appData$applicationN.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$connectionNo = value.connectionNo) === null || _value$connectionNo === void 0 ? void 0 : _value$connectionNo.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$serviceType = value.serviceType) === null || _value$serviceType === void 0 ? void 0 : _value$serviceType.toUpperCase()) === "WATER" || (value === null || value === void 0 ? void 0 : (_value$serviceType2 = value.serviceType) === null || _value$serviceType2 === void 0 ? void 0 : _value$serviceType2.toUpperCase()) === "WS" || (appData === null || appData === void 0 ? void 0 : (_appData$additionalDe = appData.additionalDetails) === null || _appData$additionalDe === void 0 ? void 0 : (_appData$additionalDe2 = _appData$additionalDe.serviceType) === null || _appData$additionalDe2 === void 0 ? void 0 : _appData$additionalDe2.code) === "WATER" || !(appData !== null && appData !== void 0 && (_appData$connectionNo2 = appData.connectionNo) !== null && _appData$connectionNo2 !== void 0 && _appData$connectionNo2.includes("SW"));
|
|
54535
|
+
const serviceType = isWater ? "WATER" : "SEWERAGE";
|
|
53894
54536
|
return Promise.resolve(createPayloadOfWSDisconnection(data, {
|
|
53895
54537
|
applicationData: value
|
|
53896
54538
|
}, serviceType)).then(function (payload) {
|
|
@@ -54101,7 +54743,7 @@ const CheckPage$2 = () => {
|
|
|
54101
54743
|
};
|
|
54102
54744
|
|
|
54103
54745
|
const CheckPage$3 = () => {
|
|
54104
|
-
var _value$
|
|
54746
|
+
var _value$applicationDat, _value$WSDisconnectio, _value$WSDisconnectio2, _value$WSDisconnectio3, _value$WSDisconnectio4, _value$WSDisconnectio5;
|
|
54105
54747
|
const {
|
|
54106
54748
|
t
|
|
54107
54749
|
} = useTranslation();
|
|
@@ -54133,8 +54775,10 @@ const CheckPage$3 = () => {
|
|
|
54133
54775
|
};
|
|
54134
54776
|
const onSubmit = function (data) {
|
|
54135
54777
|
try {
|
|
54136
|
-
var
|
|
54137
|
-
const
|
|
54778
|
+
var _appData$service, _appData$connectionNo, _appData$applicationN, _value$connectionNo, _value$serviceType, _value$serviceType2, _appData$additionalDe, _appData$additionalDe2, _appData$connectionNo2;
|
|
54779
|
+
const appData = (value === null || value === void 0 ? void 0 : value.applicationData) || value || {};
|
|
54780
|
+
const isWater = (appData === null || appData === void 0 ? void 0 : appData.water) === true || (appData === null || appData === void 0 ? void 0 : (_appData$service = appData.service) === null || _appData$service === void 0 ? void 0 : _appData$service.toLowerCase()) === "water" || (appData === null || appData === void 0 ? void 0 : (_appData$connectionNo = appData.connectionNo) === null || _appData$connectionNo === void 0 ? void 0 : _appData$connectionNo.includes("WS")) || (appData === null || appData === void 0 ? void 0 : (_appData$applicationN = appData.applicationNo) === null || _appData$applicationN === void 0 ? void 0 : _appData$applicationN.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$connectionNo = value.connectionNo) === null || _value$connectionNo === void 0 ? void 0 : _value$connectionNo.includes("WS")) || (value === null || value === void 0 ? void 0 : (_value$serviceType = value.serviceType) === null || _value$serviceType === void 0 ? void 0 : _value$serviceType.toUpperCase()) === "WATER" || (value === null || value === void 0 ? void 0 : (_value$serviceType2 = value.serviceType) === null || _value$serviceType2 === void 0 ? void 0 : _value$serviceType2.toUpperCase()) === "WS" || (appData === null || appData === void 0 ? void 0 : (_appData$additionalDe = appData.additionalDetails) === null || _appData$additionalDe === void 0 ? void 0 : (_appData$additionalDe2 = _appData$additionalDe.serviceType) === null || _appData$additionalDe2 === void 0 ? void 0 : _appData$additionalDe2.code) === "WATER" || !(appData !== null && appData !== void 0 && (_appData$connectionNo2 = appData.connectionNo) !== null && _appData$connectionNo2 !== void 0 && _appData$connectionNo2.includes("SW"));
|
|
54781
|
+
const serviceType = isWater ? "WATER" : "SEWERAGE";
|
|
54138
54782
|
return Promise.resolve(createPayloadOfWSReSubmitDisconnection(data, value, serviceType)).then(function (payload) {
|
|
54139
54783
|
const _temp4 = function (_payload$WaterConnect) {
|
|
54140
54784
|
if (payload !== null && payload !== void 0 && (_payload$WaterConnect = payload.WaterConnection) !== null && _payload$WaterConnect !== void 0 && _payload$WaterConnect.water) {
|
|
@@ -54258,7 +54902,7 @@ const CheckPage$3 = () => {
|
|
|
54258
54902
|
})), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
54259
54903
|
className: "border-none",
|
|
54260
54904
|
label: t("WS_DISCONNECTION_CONSUMER_NUMBER"),
|
|
54261
|
-
text: value.connectionNo || (value === null || value === void 0 ? void 0 : (_value$
|
|
54905
|
+
text: value.connectionNo || (value === null || value === void 0 ? void 0 : (_value$applicationDat = value.applicationData) === null || _value$applicationDat === void 0 ? void 0 : _value$applicationDat.connectionNo)
|
|
54262
54906
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
54263
54907
|
className: "border-none",
|
|
54264
54908
|
label: t("WS_DISCONNECTION_TYPE"),
|
|
@@ -56074,6 +56718,15 @@ const WSPropertyLocationDetails = props => {
|
|
|
56074
56718
|
};
|
|
56075
56719
|
const onSkip = () => onSelect();
|
|
56076
56720
|
const PropertyLocationDetails = Digit.ComponentRegistryService.getComponent("PropertyLocationDetails");
|
|
56721
|
+
const handleCitizenSelect = React.useCallback((key, details) => {
|
|
56722
|
+
setData(prev => {
|
|
56723
|
+
if (JSON.stringify(prev) === JSON.stringify(details)) return prev;
|
|
56724
|
+
return details;
|
|
56725
|
+
});
|
|
56726
|
+
if (typeof onSelect === "function") {
|
|
56727
|
+
onSelect(key, details);
|
|
56728
|
+
}
|
|
56729
|
+
}, [onSelect]);
|
|
56077
56730
|
if (userType === "citizen") {
|
|
56078
56731
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
|
|
56079
56732
|
currentStep: 2
|
|
@@ -56089,9 +56742,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
56089
56742
|
marginBottom: "-30px"
|
|
56090
56743
|
}
|
|
56091
56744
|
}, /*#__PURE__*/React.createElement(PropertyLocationDetails, _extends({}, props, {
|
|
56092
|
-
onSelect:
|
|
56093
|
-
setData(details);
|
|
56094
|
-
}
|
|
56745
|
+
onSelect: handleCitizenSelect
|
|
56095
56746
|
})))));
|
|
56096
56747
|
}
|
|
56097
56748
|
return /*#__PURE__*/React.createElement(PropertyLocationDetails, props);
|
|
@@ -58337,10 +58988,31 @@ const NewApplication = () => {
|
|
|
58337
58988
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
58338
58989
|
control: control,
|
|
58339
58990
|
name: "rainWaterHarvesting.hasCertificate",
|
|
58340
|
-
render: props => /*#__PURE__*/React.createElement(
|
|
58341
|
-
|
|
58342
|
-
|
|
58343
|
-
|
|
58991
|
+
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
58992
|
+
className: "form-field",
|
|
58993
|
+
style: {
|
|
58994
|
+
display: "flex",
|
|
58995
|
+
gap: "2rem",
|
|
58996
|
+
alignItems: "center"
|
|
58997
|
+
},
|
|
58998
|
+
name: "rainWaterHarvestingRadio",
|
|
58999
|
+
options: [{
|
|
59000
|
+
i18nKey: "CORE_COMMON_YES",
|
|
59001
|
+
code: true
|
|
59002
|
+
}, {
|
|
59003
|
+
i18nKey: "CORE_COMMON_NO",
|
|
59004
|
+
code: false
|
|
59005
|
+
}],
|
|
59006
|
+
optionsKey: "i18nKey",
|
|
59007
|
+
selectedOption: props.value ? {
|
|
59008
|
+
i18nKey: "CORE_COMMON_YES",
|
|
59009
|
+
code: true
|
|
59010
|
+
} : {
|
|
59011
|
+
i18nKey: "CORE_COMMON_NO",
|
|
59012
|
+
code: false
|
|
59013
|
+
},
|
|
59014
|
+
onSelect: e => props.onChange(e.code),
|
|
59015
|
+
t: t
|
|
58344
59016
|
})
|
|
58345
59017
|
}))), /*#__PURE__*/React.createElement(SectionCard, {
|
|
58346
59018
|
description: t("WS_PROPERTY_ADDRESS_DESC"),
|
|
@@ -59361,118 +60033,6 @@ const NewApplication = () => {
|
|
|
59361
60033
|
}));
|
|
59362
60034
|
};
|
|
59363
60035
|
|
|
59364
|
-
const CheckIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
59365
|
-
width: "14",
|
|
59366
|
-
height: "14",
|
|
59367
|
-
viewBox: "0 0 24 24",
|
|
59368
|
-
fill: "none",
|
|
59369
|
-
stroke: "currentColor",
|
|
59370
|
-
strokeWidth: "3",
|
|
59371
|
-
strokeLinecap: "round",
|
|
59372
|
-
strokeLinejoin: "round"
|
|
59373
|
-
}, /*#__PURE__*/React.createElement("polyline", {
|
|
59374
|
-
points: "20 6 9 17 4 12"
|
|
59375
|
-
}));
|
|
59376
|
-
const ClockIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
59377
|
-
width: "14",
|
|
59378
|
-
height: "14",
|
|
59379
|
-
viewBox: "0 0 24 24",
|
|
59380
|
-
fill: "none",
|
|
59381
|
-
stroke: "currentColor",
|
|
59382
|
-
strokeWidth: "2",
|
|
59383
|
-
strokeLinecap: "round",
|
|
59384
|
-
strokeLinejoin: "round"
|
|
59385
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
59386
|
-
cx: "12",
|
|
59387
|
-
cy: "12",
|
|
59388
|
-
r: "10"
|
|
59389
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
59390
|
-
className: "clock-hands2",
|
|
59391
|
-
points: "12 6 12 12 16 14"
|
|
59392
|
-
}));
|
|
59393
|
-
const WorkflowTimeline = _ref => {
|
|
59394
|
-
var _workflowDetails$data;
|
|
59395
|
-
let {
|
|
59396
|
-
workflowDetails,
|
|
59397
|
-
hideTimeline,
|
|
59398
|
-
setHideTimeline
|
|
59399
|
-
} = _ref;
|
|
59400
|
-
const {
|
|
59401
|
-
t
|
|
59402
|
-
} = useTranslation();
|
|
59403
|
-
const timeline = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances;
|
|
59404
|
-
if (!timeline || timeline.length === 0) {
|
|
59405
|
-
return null;
|
|
59406
|
-
}
|
|
59407
|
-
const getStatusClass = (index, checkpoint) => {
|
|
59408
|
-
var _checkpoint$state, _checkpoint$state2, _checkpoint$state3, _checkpoint$state4;
|
|
59409
|
-
const isTerminal = (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state = checkpoint.state) === null || _checkpoint$state === void 0 ? void 0 : _checkpoint$state.state) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state2 = checkpoint.state) === null || _checkpoint$state2 === void 0 ? void 0 : _checkpoint$state2.applicationStatus) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state3 = checkpoint.state) === null || _checkpoint$state3 === void 0 ? void 0 : _checkpoint$state3.status) === "ACTIVE" || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state4 = checkpoint.state) === null || _checkpoint$state4 === void 0 ? void 0 : _checkpoint$state4.isTerminateState);
|
|
59410
|
-
if (index === 0 && !isTerminal) return "current2";
|
|
59411
|
-
return "completed2";
|
|
59412
|
-
};
|
|
59413
|
-
const convertEpochToDateTime = epoch => {
|
|
59414
|
-
if (!epoch) return "N/A";
|
|
59415
|
-
const date = new Date(epoch);
|
|
59416
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
59417
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
59418
|
-
const year = date.getFullYear().toString().slice(-2);
|
|
59419
|
-
const hours = String(date.getHours()).padStart(2, "0");
|
|
59420
|
-
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
59421
|
-
return `${day}/${month}/${year} ${hours}:${minutes}`;
|
|
59422
|
-
};
|
|
59423
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
59424
|
-
className: "workflow-timeline-card2 digit-form-composer",
|
|
59425
|
-
style: {
|
|
59426
|
-
background: "#fff",
|
|
59427
|
-
padding: "16px",
|
|
59428
|
-
height: hideTimeline ? "100%" : ""
|
|
59429
|
-
}
|
|
59430
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59431
|
-
className: `timeline-header-wrapper ${hideTimeline ? "collapsed" : ""}`
|
|
59432
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
59433
|
-
style: {
|
|
59434
|
-
marginBottom: "0",
|
|
59435
|
-
fontSize: "16px",
|
|
59436
|
-
fontWeight: "700",
|
|
59437
|
-
color: "#374151"
|
|
59438
|
-
},
|
|
59439
|
-
className: hideTimeline ? "hidden-content" : ""
|
|
59440
|
-
}, t("WORKFLOW_TIMELINE"))), /*#__PURE__*/React.createElement("div", {
|
|
59441
|
-
className: hideTimeline ? "hidden-content" : "timeline-container2"
|
|
59442
|
-
}, timeline.map((checkpoint, index) => {
|
|
59443
|
-
var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$state5, _checkpoint$state6, _checkpoint$state7, _checkpoint$assigner, _checkpoint$assigner2;
|
|
59444
|
-
const statusClass = getStatusClass(index, checkpoint);
|
|
59445
|
-
const showLine = index !== timeline.length - 1 && timeline.length > 1;
|
|
59446
|
-
const epochTime = (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModifiedTime) || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.createdTime);
|
|
59447
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
59448
|
-
key: index,
|
|
59449
|
-
className: `timeline-item2 ${statusClass}`
|
|
59450
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59451
|
-
className: "timeline-marker2"
|
|
59452
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59453
|
-
className: "timeline-circle2"
|
|
59454
|
-
}, statusClass === "completed2" ? /*#__PURE__*/React.createElement(CheckIcon, null) : /*#__PURE__*/React.createElement(ClockIcon, null)), showLine && /*#__PURE__*/React.createElement("div", {
|
|
59455
|
-
className: "timeline-line2"
|
|
59456
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
59457
|
-
className: "timeline-content2"
|
|
59458
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59459
|
-
className: "timeline-header2"
|
|
59460
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59461
|
-
className: "timeline-title2"
|
|
59462
|
-
}, t(`WF_${checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state5 = checkpoint.state) === null || _checkpoint$state5 === void 0 ? void 0 : _checkpoint$state5.state}`)), /*#__PURE__*/React.createElement("span", {
|
|
59463
|
-
className: "timeline-date2"
|
|
59464
|
-
}, convertEpochToDateTime(epochTime))), /*#__PURE__*/React.createElement("div", {
|
|
59465
|
-
className: "timeline-body2"
|
|
59466
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
59467
|
-
className: `timeline-status-tag2 status-${statusClass}`
|
|
59468
|
-
}, t((checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state6 = checkpoint.state) === null || _checkpoint$state6 === void 0 ? void 0 : _checkpoint$state6.applicationStatus) || (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$state7 = checkpoint.state) === null || _checkpoint$state7 === void 0 ? void 0 : _checkpoint$state7.state))), (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment) && /*#__PURE__*/React.createElement("div", {
|
|
59469
|
-
className: "timeline-comment2"
|
|
59470
|
-
}, checkpoint.comment)), (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name) && /*#__PURE__*/React.createElement("div", {
|
|
59471
|
-
className: "timeline-footer2"
|
|
59472
|
-
}, /*#__PURE__*/React.createElement("span", null, t("ES_COMMON_ASSIGNED_TO"), ": ", /*#__PURE__*/React.createElement("strong", null, checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.name)))));
|
|
59473
|
-
})));
|
|
59474
|
-
};
|
|
59475
|
-
|
|
59476
60036
|
const ApplicationDetails$1 = () => {
|
|
59477
60037
|
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;
|
|
59478
60038
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
@@ -67953,7 +68513,18 @@ const CheckPage$4 = _ref2 => {
|
|
|
67953
68513
|
},
|
|
67954
68514
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
67955
68515
|
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
67956
|
-
})))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("
|
|
68516
|
+
})))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
68517
|
+
style: {
|
|
68518
|
+
marginTop: "10px",
|
|
68519
|
+
marginBottom: "30px"
|
|
68520
|
+
}
|
|
68521
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
68522
|
+
label: t("Rain Water Harvesting Certificate"),
|
|
68523
|
+
text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO"),
|
|
68524
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
68525
|
+
onClick: onEdit
|
|
68526
|
+
})
|
|
68527
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
67957
68528
|
style: {
|
|
67958
68529
|
marginTop: "10px",
|
|
67959
68530
|
marginBottom: "30px"
|
|
@@ -67973,17 +68544,6 @@ const CheckPage$4 = _ref2 => {
|
|
|
67973
68544
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
67974
68545
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
67975
68546
|
text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
|
|
67976
|
-
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
67977
|
-
style: {
|
|
67978
|
-
marginTop: "10px",
|
|
67979
|
-
marginBottom: "30px"
|
|
67980
|
-
}
|
|
67981
|
-
}, /*#__PURE__*/React.createElement(Row, {
|
|
67982
|
-
label: t("Rain Water Harvesting Certificate"),
|
|
67983
|
-
text: rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.hasCertificate || rainWaterHarvesting !== null && rainWaterHarvesting !== void 0 && rainWaterHarvesting.isRainwaterHarvesting ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO"),
|
|
67984
|
-
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
67985
|
-
onClick: onEdit
|
|
67986
|
-
})
|
|
67987
68547
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("PT_LOCATION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
67988
68548
|
style: {
|
|
67989
68549
|
marginTop: "10px",
|
|
@@ -68213,6 +68773,11 @@ const isRwhDoc = doc => {
|
|
|
68213
68773
|
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
68214
68774
|
return str.includes("RAIN") || str.includes("HARVEST");
|
|
68215
68775
|
};
|
|
68776
|
+
const isStpDoc = doc => {
|
|
68777
|
+
if (!doc) return false;
|
|
68778
|
+
const str = ((typeof doc === "string" ? doc : "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentType) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.code) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.i18nKey) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.name) || "") + " " + ((doc === null || doc === void 0 ? void 0 : doc.documentName) || "")).toUpperCase();
|
|
68779
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
68780
|
+
};
|
|
68216
68781
|
const OLDApplication = () => {
|
|
68217
68782
|
var _Digit$UserService$ge;
|
|
68218
68783
|
const {
|
|
@@ -68235,10 +68800,10 @@ const OLDApplication = () => {
|
|
|
68235
68800
|
label: "Are you a Divyangjan/Person with Disability?"
|
|
68236
68801
|
}, {
|
|
68237
68802
|
label: "WS_DJB_EMPLOYEE"
|
|
68238
|
-
}, {
|
|
68239
|
-
label: "WS_BANK_DETAILS"
|
|
68240
68803
|
}, {
|
|
68241
68804
|
label: "Rain Water Harvesting Certificate"
|
|
68805
|
+
}, {
|
|
68806
|
+
label: "WS_BANK_DETAILS"
|
|
68242
68807
|
}, {
|
|
68243
68808
|
label: "PT_LOCATION_DETAILS"
|
|
68244
68809
|
}, {
|
|
@@ -68312,7 +68877,7 @@ const OLDApplication = () => {
|
|
|
68312
68877
|
};
|
|
68313
68878
|
const configCopy = cloneDeep_1(foundConfig);
|
|
68314
68879
|
const allCreateSections = (configCopy === null || configCopy === void 0 ? void 0 : (_configCopy$body = configCopy.body) === null || _configCopy$body === void 0 ? void 0 : _configCopy$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
68315
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "
|
|
68880
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSRainWaterHarvesting", "WSBankDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
|
|
68316
68881
|
const reorderedBody = [];
|
|
68317
68882
|
desiredComponentOrder.forEach(compName => {
|
|
68318
68883
|
const section = allCreateSections.find(s => {
|
|
@@ -68656,7 +69221,7 @@ const OLDApplication = () => {
|
|
|
68656
69221
|
};
|
|
68657
69222
|
const processSubmission = function (data) {
|
|
68658
69223
|
try {
|
|
68659
|
-
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$djbEmployee, _data$djbEmployee$doc, _data$djbEmployee2, _data$djbEmployee3, _data$djbEmployee4, _data$DocumentsRequir2, _data$DocumentsRequir3, _data$DocumentsRequir4, _data$documents, _data$documents$docum, _data$documents$docum2, _data$cpt, _Digit$UserService$ge2, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$Prop9, _propertyDetails$Prop0, _propertyDetails$Prop1, _propertyDetails$Prop10, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2;
|
|
69224
|
+
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$djbEmployee, _data$djbEmployee$doc, _data$djbEmployee2, _data$djbEmployee3, _data$djbEmployee4, _data$DocumentsRequir2, _data$DocumentsRequir3, _data$DocumentsRequir4, _data$documents, _data$documents$docum, _data$documents$docum2, _data$DocumentsRequir5, _data$documents2, _generalDocWithVal$ad, _data$documents3, _rwhDocFromList$addit, _stpDocFromList$addit, _data$cpt, _Digit$UserService$ge2, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$Prop9, _propertyDetails$Prop0, _propertyDetails$Prop1, _propertyDetails$Prop10, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2;
|
|
68660
69225
|
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
68661
69226
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
68662
69227
|
data.useDetails = {
|
|
@@ -68697,6 +69262,7 @@ const OLDApplication = () => {
|
|
|
68697
69262
|
};
|
|
68698
69263
|
}
|
|
68699
69264
|
if (data !== null && data !== void 0 && (_data$DocumentsRequir = data.DocumentsRequired) !== null && _data$DocumentsRequir !== void 0 && _data$DocumentsRequir.documents) {
|
|
69265
|
+
var _docWithValidity$addi, _docWithValidity$addi2, _rwhDoc$additionalDet, _stpDoc$additionalDet;
|
|
68700
69266
|
const docs = data.DocumentsRequired.documents;
|
|
68701
69267
|
const identityDoc = docs.find(d => {
|
|
68702
69268
|
var _d$documentType8;
|
|
@@ -68710,11 +69276,25 @@ const OLDApplication = () => {
|
|
|
68710
69276
|
var _d$documentType1;
|
|
68711
69277
|
return d === null || d === void 0 ? void 0 : (_d$documentType1 = d.documentType) === null || _d$documentType1 === void 0 ? void 0 : _d$documentType1.includes("OTHERDOCUMENTS");
|
|
68712
69278
|
});
|
|
69279
|
+
const docWithValidity = docs.find(d => {
|
|
69280
|
+
var _d$additionalDetails, _d$additionalDetails2;
|
|
69281
|
+
return (d === null || d === void 0 ? void 0 : d.validityDate) || (d === null || d === void 0 ? void 0 : d.validityUpTo) || (d === null || d === void 0 ? void 0 : d.date) || (d === null || d === void 0 ? void 0 : (_d$additionalDetails = d.additionalDetails) === null || _d$additionalDetails === void 0 ? void 0 : _d$additionalDetails.validityDate) || (d === null || d === void 0 ? void 0 : (_d$additionalDetails2 = d.additionalDetails) === null || _d$additionalDetails2 === void 0 ? void 0 : _d$additionalDetails2.validityUpTo);
|
|
69282
|
+
});
|
|
69283
|
+
const valDate = (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.validityDate) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.validityUpTo) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : docWithValidity.date) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : (_docWithValidity$addi = docWithValidity.additionalDetails) === null || _docWithValidity$addi === void 0 ? void 0 : _docWithValidity$addi.validityDate) || (docWithValidity === null || docWithValidity === void 0 ? void 0 : (_docWithValidity$addi2 = docWithValidity.additionalDetails) === null || _docWithValidity$addi2 === void 0 ? void 0 : _docWithValidity$addi2.validityUpTo) || "";
|
|
69284
|
+
const rwhDoc = docs.find(d => isRwhDoc(d));
|
|
69285
|
+
const stpDoc = docs.find(d => isStpDoc(d));
|
|
69286
|
+
const rwhValDate = (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.validityDate) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.validityUpTo) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : rwhDoc.date) || (rwhDoc === null || rwhDoc === void 0 ? void 0 : (_rwhDoc$additionalDet = rwhDoc.additionalDetails) === null || _rwhDoc$additionalDet === void 0 ? void 0 : _rwhDoc$additionalDet.validityDate) || "";
|
|
69287
|
+
const stpValDate = (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.validityDate) || (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.validityUpTo) || (stpDoc === null || stpDoc === void 0 ? void 0 : stpDoc.date) || (stpDoc === null || stpDoc === void 0 ? void 0 : (_stpDoc$additionalDet = stpDoc.additionalDetails) === null || _stpDoc$additionalDet === void 0 ? void 0 : _stpDoc$additionalDet.validityDate) || "";
|
|
68713
69288
|
data.documents = {
|
|
68714
69289
|
documents: docs,
|
|
68715
69290
|
identityProofNumber: (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || "",
|
|
68716
69291
|
ownershipDocumentNumber: (ownershipDoc === null || ownershipDoc === void 0 ? void 0 : ownershipDoc.documentUid) || "",
|
|
68717
|
-
otherDocumentNumber: (otherDoc === null || otherDoc === void 0 ? void 0 : otherDoc.documentUid) || ""
|
|
69292
|
+
otherDocumentNumber: (otherDoc === null || otherDoc === void 0 ? void 0 : otherDoc.documentUid) || "",
|
|
69293
|
+
validityDate: valDate || undefined,
|
|
69294
|
+
validityUpTo: valDate || undefined,
|
|
69295
|
+
date: valDate || undefined,
|
|
69296
|
+
rwhValidityDate: rwhValDate || undefined,
|
|
69297
|
+
stpValidityDate: stpValDate || undefined
|
|
68718
69298
|
};
|
|
68719
69299
|
}
|
|
68720
69300
|
const djbDoc = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : (_data$djbEmployee$doc = _data$djbEmployee.document) === null || _data$djbEmployee$doc === void 0 ? void 0 : _data$djbEmployee$doc.fileStoreId) || typeof (data === null || data === void 0 ? void 0 : (_data$djbEmployee2 = data.djbEmployee) === null || _data$djbEmployee2 === void 0 ? void 0 : _data$djbEmployee2.document) === "string" && (data === null || data === void 0 ? void 0 : (_data$djbEmployee3 = data.djbEmployee) === null || _data$djbEmployee3 === void 0 ? void 0 : _data$djbEmployee3.document.trim()) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee4 = data.djbEmployee) === null || _data$djbEmployee4 === void 0 ? void 0 : _data$djbEmployee4.document) || (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir2 = data.DocumentsRequired) === null || _data$DocumentsRequir2 === void 0 ? void 0 : (_data$DocumentsRequir3 = _data$DocumentsRequir2.documents) === null || _data$DocumentsRequir3 === void 0 ? void 0 : (_data$DocumentsRequir4 = _data$DocumentsRequir3.find(d => {
|
|
@@ -68789,14 +69369,52 @@ const OLDApplication = () => {
|
|
|
68789
69369
|
};
|
|
68790
69370
|
}
|
|
68791
69371
|
}
|
|
69372
|
+
const docsList = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir5 = data.DocumentsRequired) === null || _data$DocumentsRequir5 === void 0 ? void 0 : _data$DocumentsRequir5.documents) || (data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.documents) || (data === null || data === void 0 ? void 0 : data.documents) || [];
|
|
69373
|
+
const rwhDocFromList = Array.isArray(docsList) ? docsList.find(d => isRwhDoc(d)) : null;
|
|
69374
|
+
const stpDocFromList = Array.isArray(docsList) ? docsList.find(d => isStpDoc(d)) : null;
|
|
69375
|
+
const generalDocWithVal = Array.isArray(docsList) ? docsList.find(d => {
|
|
69376
|
+
var _d$additionalDetails3;
|
|
69377
|
+
return (d === null || d === void 0 ? void 0 : d.validityDate) || (d === null || d === void 0 ? void 0 : d.validityUpTo) || (d === null || d === void 0 ? void 0 : d.date) || (d === null || d === void 0 ? void 0 : (_d$additionalDetails3 = d.additionalDetails) === null || _d$additionalDetails3 === void 0 ? void 0 : _d$additionalDetails3.validityDate);
|
|
69378
|
+
}) : null;
|
|
69379
|
+
const extractedValDate = (generalDocWithVal === null || generalDocWithVal === void 0 ? void 0 : generalDocWithVal.validityDate) || (generalDocWithVal === null || generalDocWithVal === void 0 ? void 0 : generalDocWithVal.validityUpTo) || (generalDocWithVal === null || generalDocWithVal === void 0 ? void 0 : generalDocWithVal.date) || (generalDocWithVal === null || generalDocWithVal === void 0 ? void 0 : (_generalDocWithVal$ad = generalDocWithVal.additionalDetails) === null || _generalDocWithVal$ad === void 0 ? void 0 : _generalDocWithVal$ad.validityDate) || (data === null || data === void 0 ? void 0 : (_data$documents3 = data.documents) === null || _data$documents3 === void 0 ? void 0 : _data$documents3.validityDate) || "";
|
|
69380
|
+
const extractedRwhDate = (rwhDocFromList === null || rwhDocFromList === void 0 ? void 0 : rwhDocFromList.validityDate) || (rwhDocFromList === null || rwhDocFromList === void 0 ? void 0 : rwhDocFromList.validityUpTo) || (rwhDocFromList === null || rwhDocFromList === void 0 ? void 0 : rwhDocFromList.date) || (rwhDocFromList === null || rwhDocFromList === void 0 ? void 0 : (_rwhDocFromList$addit = rwhDocFromList.additionalDetails) === null || _rwhDocFromList$addit === void 0 ? void 0 : _rwhDocFromList$addit.validityDate) || extractedValDate;
|
|
69381
|
+
const extractedStpDate = (stpDocFromList === null || stpDocFromList === void 0 ? void 0 : stpDocFromList.validityDate) || (stpDocFromList === null || stpDocFromList === void 0 ? void 0 : stpDocFromList.validityUpTo) || (stpDocFromList === null || stpDocFromList === void 0 ? void 0 : stpDocFromList.date) || (stpDocFromList === null || stpDocFromList === void 0 ? void 0 : (_stpDocFromList$addit = stpDocFromList.additionalDetails) === null || _stpDocFromList$addit === void 0 ? void 0 : _stpDocFromList$addit.validityDate) || extractedValDate;
|
|
68792
69382
|
if (data !== null && data !== void 0 && data.rainWaterHarvesting) {
|
|
68793
69383
|
var _data$rainWaterHarves, _data$rainWaterHarves2, _data$rainWaterHarves3, _data$rainWaterHarves4;
|
|
68794
69384
|
data.additionalDetails = {
|
|
68795
69385
|
...data.additionalDetails,
|
|
68796
69386
|
...data.rainWaterHarvesting,
|
|
68797
69387
|
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$rainWaterHarves = data.rainWaterHarvesting) !== null && _data$rainWaterHarves !== void 0 && _data$rainWaterHarves.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves2 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves2 !== void 0 && _data$rainWaterHarves2.isRainwaterHarvesting),
|
|
68798
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves3 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves3 !== void 0 && _data$rainWaterHarves3.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves4 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves4 !== void 0 && _data$rainWaterHarves4.isRainwaterHarvesting)
|
|
69388
|
+
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$rainWaterHarves3 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves3 !== void 0 && _data$rainWaterHarves3.hasCertificate || data !== null && data !== void 0 && (_data$rainWaterHarves4 = data.rainWaterHarvesting) !== null && _data$rainWaterHarves4 !== void 0 && _data$rainWaterHarves4.isRainwaterHarvesting),
|
|
69389
|
+
validityDate: extractedRwhDate || undefined,
|
|
69390
|
+
validityUpTo: extractedRwhDate || undefined,
|
|
69391
|
+
date: extractedRwhDate || undefined,
|
|
69392
|
+
rwhValidityDate: extractedRwhDate || undefined
|
|
68799
69393
|
};
|
|
69394
|
+
if (extractedRwhDate) {
|
|
69395
|
+
data.rainWaterHarvesting.validityDate = extractedRwhDate;
|
|
69396
|
+
data.rainWaterHarvesting.validityUpTo = extractedRwhDate;
|
|
69397
|
+
data.rainWaterHarvesting.date = extractedRwhDate;
|
|
69398
|
+
}
|
|
69399
|
+
}
|
|
69400
|
+
if (data !== null && data !== void 0 && data.sewerTreatmentPlant) {
|
|
69401
|
+
var _data$sewerTreatmentP, _data$sewerTreatmentP2, _data$sewerTreatmentP3, _data$sewerTreatmentP4, _data$sewerTreatmentP5, _data$sewerTreatmentP6, _data$sewerTreatmentP7, _data$sewerTreatmentP8, _data$sewerTreatmentP9;
|
|
69402
|
+
data.additionalDetails = {
|
|
69403
|
+
...data.additionalDetails,
|
|
69404
|
+
...data.sewerTreatmentPlant,
|
|
69405
|
+
hasSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP !== void 0 && _data$sewerTreatmentP.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP2 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP2 !== void 0 && _data$sewerTreatmentP2.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP3 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP3 !== void 0 && _data$sewerTreatmentP3.isSewerTreatmentPlant),
|
|
69406
|
+
isSewerTreatmentPlant: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP4 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP4 !== void 0 && _data$sewerTreatmentP4.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP5 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP5 !== void 0 && _data$sewerTreatmentP5.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP6 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP6 !== void 0 && _data$sewerTreatmentP6.isSewerTreatmentPlant),
|
|
69407
|
+
hasStp: !!(data !== null && data !== void 0 && (_data$sewerTreatmentP7 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP7 !== void 0 && _data$sewerTreatmentP7.hasCertificate || data !== null && data !== void 0 && (_data$sewerTreatmentP8 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP8 !== void 0 && _data$sewerTreatmentP8.hasStp || data !== null && data !== void 0 && (_data$sewerTreatmentP9 = data.sewerTreatmentPlant) !== null && _data$sewerTreatmentP9 !== void 0 && _data$sewerTreatmentP9.isSewerTreatmentPlant),
|
|
69408
|
+
validityDate: extractedStpDate || undefined,
|
|
69409
|
+
validityUpTo: extractedStpDate || undefined,
|
|
69410
|
+
date: extractedStpDate || undefined,
|
|
69411
|
+
stpValidityDate: extractedStpDate || undefined
|
|
69412
|
+
};
|
|
69413
|
+
if (extractedStpDate) {
|
|
69414
|
+
data.sewerTreatmentPlant.validityDate = extractedStpDate;
|
|
69415
|
+
data.sewerTreatmentPlant.validityUpTo = extractedStpDate;
|
|
69416
|
+
data.sewerTreatmentPlant.date = extractedStpDate;
|
|
69417
|
+
}
|
|
68800
69418
|
}
|
|
68801
69419
|
if (data !== null && data !== void 0 && data.bankDetails) {
|
|
68802
69420
|
const normalizedBank = getNormalizedBankDetails(data);
|
|
@@ -69746,6 +70364,7 @@ const componentsToRegister = {
|
|
|
69746
70364
|
WSOLDApplication: OLDApplication,
|
|
69747
70365
|
WSDivyangjan: WSDivyangjan,
|
|
69748
70366
|
WSRainWaterHarvesting: WSRainWaterHarvesting,
|
|
70367
|
+
WSSewerTreatmentPlant: WSSewerTreatmentPlant,
|
|
69749
70368
|
WSExecuteDisconnection: WSExecuteDisconnection,
|
|
69750
70369
|
WSFieldInspection: WSFieldInspection
|
|
69751
70370
|
};
|