@djb25/digit-ui-module-ws 1.0.120 → 1.0.121
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 +969 -318
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +969 -318
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -279,6 +279,16 @@ const TestAcknowledgment = () => {
|
|
|
279
279
|
}, "Print"));
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
+
const isRwhDocType = doc => {
|
|
283
|
+
if (!doc) return false;
|
|
284
|
+
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();
|
|
285
|
+
return str.includes("RAIN") || str.includes("HARVEST");
|
|
286
|
+
};
|
|
287
|
+
const isStpDocType = doc => {
|
|
288
|
+
if (!doc) return false;
|
|
289
|
+
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();
|
|
290
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
291
|
+
};
|
|
282
292
|
const stringReplaceAll = function (str, searcher, replaceWith) {
|
|
283
293
|
if (str === void 0) {
|
|
284
294
|
str = "";
|
|
@@ -682,7 +692,7 @@ const getNormalizedBankDetails = data => {
|
|
|
682
692
|
};
|
|
683
693
|
const createPayloadOfWS = function (data) {
|
|
684
694
|
try {
|
|
685
|
-
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$
|
|
695
|
+
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;
|
|
686
696
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
687
697
|
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"));
|
|
688
698
|
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 => {
|
|
@@ -697,7 +707,7 @@ const createPayloadOfWS = function (data) {
|
|
|
697
707
|
const connectionDetailsObject = connectionDetail;
|
|
698
708
|
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 || {};
|
|
699
709
|
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);
|
|
700
|
-
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] : [];
|
|
710
|
+
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] : [];
|
|
701
711
|
const {
|
|
702
712
|
signatureFileStoreId,
|
|
703
713
|
signatureFileName
|
|
@@ -762,6 +772,47 @@ const createPayloadOfWS = function (data) {
|
|
|
762
772
|
status: "ACTIVE"
|
|
763
773
|
});
|
|
764
774
|
}
|
|
775
|
+
allDocuments = allDocuments.map(doc => {
|
|
776
|
+
var _doc$additionalDetail, _doc$additionalDetail2, _doc$additionalDetail3;
|
|
777
|
+
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);
|
|
778
|
+
const vEpoch = vDate ? convertDateToEpoch(vDate) : undefined;
|
|
779
|
+
return {
|
|
780
|
+
...doc,
|
|
781
|
+
...(vDate ? {
|
|
782
|
+
validityDate: vDate,
|
|
783
|
+
validityUpTo: vDate,
|
|
784
|
+
date: vDate
|
|
785
|
+
} : {}),
|
|
786
|
+
...(typeof vEpoch === "number" ? {
|
|
787
|
+
validityDateEpoch: vEpoch,
|
|
788
|
+
validityUpToEpoch: vEpoch
|
|
789
|
+
} : {}),
|
|
790
|
+
additionalDetails: {
|
|
791
|
+
...((doc === null || doc === void 0 ? void 0 : doc.additionalDetails) || {}),
|
|
792
|
+
...(vDate ? {
|
|
793
|
+
validityDate: vDate,
|
|
794
|
+
validityUpTo: vDate,
|
|
795
|
+
date: vDate
|
|
796
|
+
} : {}),
|
|
797
|
+
...(typeof vEpoch === "number" ? {
|
|
798
|
+
validityDateEpoch: vEpoch,
|
|
799
|
+
validityUpToEpoch: vEpoch
|
|
800
|
+
} : {})
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
});
|
|
804
|
+
const rwhDoc = allDocuments.find(d => isRwhDocType(d));
|
|
805
|
+
const stpDoc = allDocuments.find(d => isStpDocType(d));
|
|
806
|
+
const docWithValidity = allDocuments.find(d => {
|
|
807
|
+
var _d$additionalDetails, _d$additionalDetails2;
|
|
808
|
+
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);
|
|
809
|
+
});
|
|
810
|
+
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) || "";
|
|
811
|
+
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) || "";
|
|
812
|
+
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) || "";
|
|
813
|
+
const overallValidityEpoch = overallValidityDate ? convertDateToEpoch(overallValidityDate) : undefined;
|
|
814
|
+
const rwhValidityEpoch = rwhValidityDate ? convertDateToEpoch(rwhValidityDate) : undefined;
|
|
815
|
+
const stpValidityEpoch = stpValidityDate ? convertDateToEpoch(stpValidityDate) : undefined;
|
|
765
816
|
let payload = {
|
|
766
817
|
water: !!isWater,
|
|
767
818
|
sewerage: !!isSewerage,
|
|
@@ -847,9 +898,13 @@ const createPayloadOfWS = function (data) {
|
|
|
847
898
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
848
899
|
...(data === null || data === void 0 ? void 0 : data.disability),
|
|
849
900
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
901
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
850
902
|
isDivyangjan: !!(data !== null && data !== void 0 && (_data$disability = data.disability) !== null && _data$disability !== void 0 && _data$disability.isDivyangjan),
|
|
851
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
852
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
903
|
+
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),
|
|
904
|
+
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),
|
|
905
|
+
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),
|
|
906
|
+
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),
|
|
907
|
+
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),
|
|
853
908
|
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 => {
|
|
854
909
|
var _d$documentType5;
|
|
855
910
|
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"));
|
|
@@ -900,16 +955,43 @@ const createPayloadOfWS = function (data) {
|
|
|
900
955
|
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,
|
|
901
956
|
governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
|
|
902
957
|
whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
|
|
903
|
-
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
904
|
-
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
905
|
-
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
906
|
-
otherDocumentRemark: (data === null || data === void 0 ? void 0 : (_data$
|
|
958
|
+
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents6 = data.documents) === null || _data$documents6 === void 0 ? void 0 : _data$documents6.identityProofNumber,
|
|
959
|
+
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents7 = data.documents) === null || _data$documents7 === void 0 ? void 0 : _data$documents7.ownershipDocumentNumber,
|
|
960
|
+
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents8 = data.documents) === null || _data$documents8 === void 0 ? void 0 : _data$documents8.otherDocumentNumber,
|
|
961
|
+
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 => {
|
|
907
962
|
var _d$documentType6, _d$documentType7;
|
|
908
963
|
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"));
|
|
909
964
|
})) === null || _allDocuments$find2 === void 0 ? void 0 : _allDocuments$find2.documentUid) || ((_allDocuments$find3 = allDocuments.find(d => {
|
|
910
965
|
var _d$documentType8, _d$documentType9;
|
|
911
966
|
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"));
|
|
912
967
|
})) === null || _allDocuments$find3 === void 0 ? void 0 : _allDocuments$find3.remarks),
|
|
968
|
+
validityDate: overallValidityDate || undefined,
|
|
969
|
+
validityUpTo: overallValidityDate || undefined,
|
|
970
|
+
date: overallValidityDate || undefined,
|
|
971
|
+
...(typeof overallValidityEpoch === "number" ? {
|
|
972
|
+
validityDateEpoch: overallValidityEpoch,
|
|
973
|
+
validityUpToEpoch: overallValidityEpoch
|
|
974
|
+
} : {}),
|
|
975
|
+
...(rwhValidityDate ? {
|
|
976
|
+
rwhValidityDate: rwhValidityDate,
|
|
977
|
+
rwhValidityUpTo: rwhValidityDate,
|
|
978
|
+
rainWaterHarvestingValidityDate: rwhValidityDate,
|
|
979
|
+
rainWaterHarvestingValidityUpTo: rwhValidityDate,
|
|
980
|
+
...(typeof rwhValidityEpoch === "number" ? {
|
|
981
|
+
rwhValidityDateEpoch: rwhValidityEpoch,
|
|
982
|
+
rwhValidityUpToEpoch: rwhValidityEpoch
|
|
983
|
+
} : {})
|
|
984
|
+
} : {}),
|
|
985
|
+
...(stpValidityDate ? {
|
|
986
|
+
stpValidityDate: stpValidityDate,
|
|
987
|
+
stpValidityUpTo: stpValidityDate,
|
|
988
|
+
sewerTreatmentPlantValidityDate: stpValidityDate,
|
|
989
|
+
sewerTreatmentPlantValidityUpTo: stpValidityDate,
|
|
990
|
+
...(typeof stpValidityEpoch === "number" ? {
|
|
991
|
+
stpValidityDateEpoch: stpValidityEpoch,
|
|
992
|
+
stpValidityUpToEpoch: stpValidityEpoch
|
|
993
|
+
} : {})
|
|
994
|
+
} : {}),
|
|
913
995
|
...(getNormalizedBankDetails(data) ? {
|
|
914
996
|
...getNormalizedBankDetails(data),
|
|
915
997
|
bankDetails: getNormalizedBankDetails(data)
|
|
@@ -938,7 +1020,7 @@ const createPayloadOfWS = function (data) {
|
|
|
938
1020
|
};
|
|
939
1021
|
const updatePayloadOfWS = function (data, type) {
|
|
940
1022
|
try {
|
|
941
|
-
var _data$
|
|
1023
|
+
var _data$additionalDetai12, _data$additionalDetai13, _Digit8, _Digit8$Customization, _Digit8$Customization2, _Digit9, _Digit9$Customization, _Digit9$Customization2;
|
|
942
1024
|
const {
|
|
943
1025
|
signatureFileStoreId,
|
|
944
1026
|
signatureFileName
|
|
@@ -980,8 +1062,8 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
980
1062
|
fileName: signatureFileName
|
|
981
1063
|
}
|
|
982
1064
|
} : {}),
|
|
983
|
-
connectionType: (data === null || data === void 0 ? void 0 : (_data$
|
|
984
|
-
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$
|
|
1065
|
+
connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai12 = data.additionalDetails) === null || _data$additionalDetai12 === void 0 ? void 0 : _data$additionalDetai12.connectionType) || "Permanent",
|
|
1066
|
+
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai13 = data.additionalDetails) === null || _data$additionalDetai13 === void 0 ? void 0 : _data$additionalDetai13.waterDemandType) || {
|
|
985
1067
|
code: "NON_BULK",
|
|
986
1068
|
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
987
1069
|
}
|
|
@@ -994,8 +1076,8 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
994
1076
|
}
|
|
995
1077
|
};
|
|
996
1078
|
const getAllDocumentsForUpdate = data => {
|
|
997
|
-
var _data$
|
|
998
|
-
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$
|
|
1079
|
+
var _data$documents0, _data$governmentEmplo5;
|
|
1080
|
+
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] : [];
|
|
999
1081
|
const {
|
|
1000
1082
|
signatureFileStoreId,
|
|
1001
1083
|
signatureFileName
|
|
@@ -1097,7 +1179,7 @@ const getAllDocumentsForUpdate = data => {
|
|
|
1097
1179
|
return allDocuments;
|
|
1098
1180
|
};
|
|
1099
1181
|
const convertToWSUpdate = data => {
|
|
1100
|
-
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$
|
|
1182
|
+
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;
|
|
1101
1183
|
const {
|
|
1102
1184
|
signatureFileStoreId,
|
|
1103
1185
|
signatureFileName
|
|
@@ -1137,8 +1219,14 @@ const convertToWSUpdate = data => {
|
|
|
1137
1219
|
} : {}),
|
|
1138
1220
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1139
1221
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1140
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1141
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1222
|
+
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),
|
|
1223
|
+
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)
|
|
1224
|
+
} : {}),
|
|
1225
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1226
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1227
|
+
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),
|
|
1228
|
+
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),
|
|
1229
|
+
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)
|
|
1142
1230
|
} : {}),
|
|
1143
1231
|
...(getNormalizedBankDetails(data) ? {
|
|
1144
1232
|
...getNormalizedBankDetails(data),
|
|
@@ -1154,7 +1242,7 @@ const convertToWSUpdate = data => {
|
|
|
1154
1242
|
return formdata;
|
|
1155
1243
|
};
|
|
1156
1244
|
const convertToEditWSUpdate = data => {
|
|
1157
|
-
var _data$WaterConnection9, _data$WaterConnection0, _data$property, _data$property$auditD, _waterResult$property, _waterResult$property2, _data$property2, _data$property2$audit, _waterResult$auditDet, _data$
|
|
1245
|
+
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$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2;
|
|
1158
1246
|
const {
|
|
1159
1247
|
signatureFileStoreId,
|
|
1160
1248
|
signatureFileName
|
|
@@ -1192,9 +1280,9 @@ const convertToEditWSUpdate = data => {
|
|
|
1192
1280
|
fileName: signatureFileName
|
|
1193
1281
|
}
|
|
1194
1282
|
} : {}),
|
|
1195
|
-
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$
|
|
1196
|
-
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$
|
|
1197
|
-
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$
|
|
1283
|
+
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,
|
|
1284
|
+
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) || "",
|
|
1285
|
+
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) || "",
|
|
1198
1286
|
...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
|
|
1199
1287
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
1200
1288
|
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,
|
|
@@ -1209,23 +1297,29 @@ const convertToEditWSUpdate = data => {
|
|
|
1209
1297
|
} : {}),
|
|
1210
1298
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1211
1299
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1212
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1213
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1300
|
+
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),
|
|
1301
|
+
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)
|
|
1302
|
+
} : {}),
|
|
1303
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1304
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1305
|
+
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),
|
|
1306
|
+
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),
|
|
1307
|
+
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)
|
|
1214
1308
|
} : {}),
|
|
1215
1309
|
...(getNormalizedBankDetails(data) ? {
|
|
1216
1310
|
...getNormalizedBankDetails(data),
|
|
1217
1311
|
bankDetails: getNormalizedBankDetails(data)
|
|
1218
1312
|
} : {}),
|
|
1219
1313
|
...(data !== null && data !== void 0 && (_data$waterConnection2 = data.waterConnection) !== null && _data$waterConnection2 !== void 0 && _data$waterConnection2.useDetails ? {
|
|
1220
|
-
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1221
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1222
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1223
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
1224
|
-
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$
|
|
1225
|
-
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$
|
|
1226
|
-
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$
|
|
1227
|
-
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$
|
|
1228
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
1314
|
+
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),
|
|
1315
|
+
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),
|
|
1316
|
+
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),
|
|
1317
|
+
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),
|
|
1318
|
+
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),
|
|
1319
|
+
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),
|
|
1320
|
+
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),
|
|
1321
|
+
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),
|
|
1322
|
+
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) || ""
|
|
1229
1323
|
} : {})
|
|
1230
1324
|
},
|
|
1231
1325
|
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,
|
|
@@ -1327,7 +1421,7 @@ const convertToEditWSUpdate = data => {
|
|
|
1327
1421
|
return formdata;
|
|
1328
1422
|
};
|
|
1329
1423
|
const convertToEditSWUpdate = data => {
|
|
1330
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _data$
|
|
1424
|
+
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$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2;
|
|
1331
1425
|
const {
|
|
1332
1426
|
signatureFileStoreId,
|
|
1333
1427
|
signatureFileName
|
|
@@ -1364,9 +1458,9 @@ const convertToEditSWUpdate = data => {
|
|
|
1364
1458
|
fileName: signatureFileName
|
|
1365
1459
|
}
|
|
1366
1460
|
} : {}),
|
|
1367
|
-
CompletelySatisfied: (data === null || data === void 0 ? void 0 : (_data$
|
|
1368
|
-
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$
|
|
1369
|
-
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$
|
|
1461
|
+
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,
|
|
1462
|
+
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) || "",
|
|
1463
|
+
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) || "",
|
|
1370
1464
|
...((data === null || data === void 0 ? void 0 : data.djbEmployee) !== undefined ? {
|
|
1371
1465
|
...(data === null || data === void 0 ? void 0 : data.djbEmployee),
|
|
1372
1466
|
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,
|
|
@@ -1381,23 +1475,29 @@ const convertToEditSWUpdate = data => {
|
|
|
1381
1475
|
} : {}),
|
|
1382
1476
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1383
1477
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1384
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1385
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1478
|
+
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),
|
|
1479
|
+
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)
|
|
1480
|
+
} : {}),
|
|
1481
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1482
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1483
|
+
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),
|
|
1484
|
+
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),
|
|
1485
|
+
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)
|
|
1386
1486
|
} : {}),
|
|
1387
1487
|
...(getNormalizedBankDetails(data) ? {
|
|
1388
1488
|
...getNormalizedBankDetails(data),
|
|
1389
1489
|
bankDetails: getNormalizedBankDetails(data)
|
|
1390
1490
|
} : {}),
|
|
1391
1491
|
...(data !== null && data !== void 0 && (_data$waterConnection8 = data.waterConnection) !== null && _data$waterConnection8 !== void 0 && _data$waterConnection8.useDetails ? {
|
|
1392
|
-
plotArea: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1393
|
-
plotSize: data.waterConnection.useDetails.plotArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1394
|
-
builtUpArea: data.waterConnection.useDetails.builtUpArea || (data === null || data === void 0 ? void 0 : (_data$
|
|
1395
|
-
heightOfTheBuilding: data.waterConnection.useDetails.heightOfTheBuilding || (data === null || data === void 0 ? void 0 : (_data$
|
|
1396
|
-
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$
|
|
1397
|
-
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$
|
|
1398
|
-
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$
|
|
1399
|
-
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$
|
|
1400
|
-
numberOfDwellingUnits: data.waterConnection.useDetails.NumberofDwellingUnits || (data === null || data === void 0 ? void 0 : (_data$
|
|
1492
|
+
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),
|
|
1493
|
+
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),
|
|
1494
|
+
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),
|
|
1495
|
+
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),
|
|
1496
|
+
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),
|
|
1497
|
+
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),
|
|
1498
|
+
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),
|
|
1499
|
+
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),
|
|
1500
|
+
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) || ""
|
|
1401
1501
|
} : {})
|
|
1402
1502
|
},
|
|
1403
1503
|
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,
|
|
@@ -1499,7 +1599,7 @@ const convertToEditSWUpdate = data => {
|
|
|
1499
1599
|
return formdata;
|
|
1500
1600
|
};
|
|
1501
1601
|
const convertToSWUpdate = data => {
|
|
1502
|
-
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$
|
|
1602
|
+
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;
|
|
1503
1603
|
const {
|
|
1504
1604
|
signatureFileStoreId,
|
|
1505
1605
|
signatureFileName
|
|
@@ -1540,8 +1640,14 @@ const convertToSWUpdate = data => {
|
|
|
1540
1640
|
} : {}),
|
|
1541
1641
|
...((data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) !== undefined ? {
|
|
1542
1642
|
...(data === null || data === void 0 ? void 0 : data.rainWaterHarvesting),
|
|
1543
|
-
hasRainWaterHarvestingCertificate: !!(data !== null && data !== void 0 && (_data$
|
|
1544
|
-
isRainwaterHarvesting: !!(data !== null && data !== void 0 && (_data$
|
|
1643
|
+
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),
|
|
1644
|
+
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)
|
|
1645
|
+
} : {}),
|
|
1646
|
+
...((data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) !== undefined ? {
|
|
1647
|
+
...(data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant),
|
|
1648
|
+
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),
|
|
1649
|
+
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),
|
|
1650
|
+
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)
|
|
1545
1651
|
} : {}),
|
|
1546
1652
|
...(getNormalizedBankDetails(data) ? {
|
|
1547
1653
|
...getNormalizedBankDetails(data),
|
|
@@ -2359,12 +2465,12 @@ const mapExistingDocIdsToPayload = function (uploadingDocs, existingDocs) {
|
|
|
2359
2465
|
};
|
|
2360
2466
|
const convertEditApplicationDetails = function (data, appData, actionData) {
|
|
2361
2467
|
try {
|
|
2362
|
-
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;
|
|
2363
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 => {
|
|
2364
2470
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
2365
2471
|
});
|
|
2366
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) || [];
|
|
2367
|
-
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) || [];
|
|
2368
2474
|
if (docs && docs.length > 0 && existingDocs && existingDocs.length > 0) {
|
|
2369
2475
|
docs = mapExistingDocIdsToPayload(docs, existingDocs);
|
|
2370
2476
|
}
|
|
@@ -2458,7 +2564,7 @@ const convertDisonnectApplicationData = function (data, serviceType, editByConfi
|
|
|
2458
2564
|
};
|
|
2459
2565
|
const convertDisonnectEditApplicationDetails = function (data, appData, actionData) {
|
|
2460
2566
|
try {
|
|
2461
|
-
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;
|
|
2462
2568
|
const docs = sessionStorage.getItem("DISCONNECTION_EDIT_DOCS");
|
|
2463
2569
|
const docsData = docs ? JSON.parse(docs) : "";
|
|
2464
2570
|
const documentsData = [];
|
|
@@ -2486,7 +2592,7 @@ const convertDisonnectEditApplicationDetails = function (data, appData, actionDa
|
|
|
2486
2592
|
}];
|
|
2487
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) || "",
|
|
2488
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,
|
|
2489
|
-
_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;
|
|
2490
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) {
|
|
2491
2597
|
var _data$plumberDetails11, _data$plumberDetails12, _data$plumberDetails13;
|
|
2492
2598
|
let payload = {
|
|
@@ -2540,8 +2646,8 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2540
2646
|
var _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8;
|
|
2541
2647
|
function _temp9() {
|
|
2542
2648
|
function _temp7() {
|
|
2543
|
-
var _data$
|
|
2544
|
-
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;
|
|
2545
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) || [];
|
|
2546
2652
|
if (formData.documents && formData.documents.length > 0 && existingDocs && existingDocs.length > 0) {
|
|
2547
2653
|
formData.documents = mapExistingDocIdsToPayload(formData.documents, existingDocs);
|
|
@@ -2569,7 +2675,7 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2569
2675
|
};
|
|
2570
2676
|
formData.action = actionData;
|
|
2571
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";
|
|
2572
|
-
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) || []));
|
|
2573
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));
|
|
2574
2680
|
return formData;
|
|
2575
2681
|
}
|
|
@@ -11378,7 +11484,7 @@ const configNOCApproverApplication = _ref => {
|
|
|
11378
11484
|
};
|
|
11379
11485
|
|
|
11380
11486
|
const configWSApproverApplication = _ref => {
|
|
11381
|
-
var _action$action;
|
|
11487
|
+
var _action$action, _businessService$toUp;
|
|
11382
11488
|
let {
|
|
11383
11489
|
t,
|
|
11384
11490
|
action,
|
|
@@ -11444,12 +11550,16 @@ const configWSApproverApplication = _ref => {
|
|
|
11444
11550
|
}
|
|
11445
11551
|
}];
|
|
11446
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");
|
|
11447
11554
|
const getHeadingLabel = () => {
|
|
11448
11555
|
if (isActivate) {
|
|
11449
11556
|
const translated = t("WF_APPROVE_APPLICATION");
|
|
11450
11557
|
if (translated && translated !== "WF_APPROVE_APPLICATION") return translated;
|
|
11451
11558
|
return "Approve Application";
|
|
11452
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
|
+
}
|
|
11453
11563
|
return `WF_${action === null || action === void 0 ? void 0 : action.action}_APPLICATION`;
|
|
11454
11564
|
};
|
|
11455
11565
|
const getSubmitLabel = () => {
|
|
@@ -11462,6 +11572,9 @@ const configWSApproverApplication = _ref => {
|
|
|
11462
11572
|
}
|
|
11463
11573
|
return "Approve Connection";
|
|
11464
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
|
+
}
|
|
11465
11578
|
return `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_${action === null || action === void 0 ? void 0 : action.action}`;
|
|
11466
11579
|
};
|
|
11467
11580
|
return {
|
|
@@ -20864,6 +20977,118 @@ const ApplicationDetails = props => {
|
|
|
20864
20977
|
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null));
|
|
20865
20978
|
};
|
|
20866
20979
|
|
|
20980
|
+
const CheckIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
20981
|
+
width: "14",
|
|
20982
|
+
height: "14",
|
|
20983
|
+
viewBox: "0 0 24 24",
|
|
20984
|
+
fill: "none",
|
|
20985
|
+
stroke: "currentColor",
|
|
20986
|
+
strokeWidth: "3",
|
|
20987
|
+
strokeLinecap: "round",
|
|
20988
|
+
strokeLinejoin: "round"
|
|
20989
|
+
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
20990
|
+
points: "20 6 9 17 4 12"
|
|
20991
|
+
}));
|
|
20992
|
+
const ClockIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
20993
|
+
width: "14",
|
|
20994
|
+
height: "14",
|
|
20995
|
+
viewBox: "0 0 24 24",
|
|
20996
|
+
fill: "none",
|
|
20997
|
+
stroke: "currentColor",
|
|
20998
|
+
strokeWidth: "2",
|
|
20999
|
+
strokeLinecap: "round",
|
|
21000
|
+
strokeLinejoin: "round"
|
|
21001
|
+
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
21002
|
+
cx: "12",
|
|
21003
|
+
cy: "12",
|
|
21004
|
+
r: "10"
|
|
21005
|
+
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
21006
|
+
className: "clock-hands2",
|
|
21007
|
+
points: "12 6 12 12 16 14"
|
|
21008
|
+
}));
|
|
21009
|
+
const WorkflowTimeline = _ref => {
|
|
21010
|
+
var _workflowDetails$data;
|
|
21011
|
+
let {
|
|
21012
|
+
workflowDetails,
|
|
21013
|
+
hideTimeline,
|
|
21014
|
+
setHideTimeline
|
|
21015
|
+
} = _ref;
|
|
21016
|
+
const {
|
|
21017
|
+
t
|
|
21018
|
+
} = reactI18next.useTranslation();
|
|
21019
|
+
const timeline = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances;
|
|
21020
|
+
if (!timeline || timeline.length === 0) {
|
|
21021
|
+
return null;
|
|
21022
|
+
}
|
|
21023
|
+
const getStatusClass = (index, checkpoint) => {
|
|
21024
|
+
var _checkpoint$state, _checkpoint$state2, _checkpoint$state3, _checkpoint$state4;
|
|
21025
|
+
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);
|
|
21026
|
+
if (index === 0 && !isTerminal) return "current2";
|
|
21027
|
+
return "completed2";
|
|
21028
|
+
};
|
|
21029
|
+
const convertEpochToDateTime = epoch => {
|
|
21030
|
+
if (!epoch) return "N/A";
|
|
21031
|
+
const date = new Date(epoch);
|
|
21032
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
21033
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
21034
|
+
const year = date.getFullYear().toString().slice(-2);
|
|
21035
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
|
21036
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
21037
|
+
return `${day}/${month}/${year} ${hours}:${minutes}`;
|
|
21038
|
+
};
|
|
21039
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
21040
|
+
className: "workflow-timeline-card2 digit-form-composer",
|
|
21041
|
+
style: {
|
|
21042
|
+
background: "#fff",
|
|
21043
|
+
padding: "16px",
|
|
21044
|
+
height: hideTimeline ? "100%" : ""
|
|
21045
|
+
}
|
|
21046
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21047
|
+
className: `timeline-header-wrapper ${hideTimeline ? "collapsed" : ""}`
|
|
21048
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
21049
|
+
style: {
|
|
21050
|
+
marginBottom: "0",
|
|
21051
|
+
fontSize: "16px",
|
|
21052
|
+
fontWeight: "700",
|
|
21053
|
+
color: "#374151"
|
|
21054
|
+
},
|
|
21055
|
+
className: hideTimeline ? "hidden-content" : ""
|
|
21056
|
+
}, t("WORKFLOW_TIMELINE"))), /*#__PURE__*/React__default.createElement("div", {
|
|
21057
|
+
className: hideTimeline ? "hidden-content" : "timeline-container2"
|
|
21058
|
+
}, timeline.map((checkpoint, index) => {
|
|
21059
|
+
var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$state5, _checkpoint$state6, _checkpoint$state7, _checkpoint$assigner, _checkpoint$assigner2;
|
|
21060
|
+
const statusClass = getStatusClass(index, checkpoint);
|
|
21061
|
+
const showLine = index !== timeline.length - 1 && timeline.length > 1;
|
|
21062
|
+
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);
|
|
21063
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
21064
|
+
key: index,
|
|
21065
|
+
className: `timeline-item2 ${statusClass}`
|
|
21066
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21067
|
+
className: "timeline-marker2"
|
|
21068
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21069
|
+
className: "timeline-circle2"
|
|
21070
|
+
}, statusClass === "completed2" ? /*#__PURE__*/React__default.createElement(CheckIcon, null) : /*#__PURE__*/React__default.createElement(ClockIcon, null)), showLine && /*#__PURE__*/React__default.createElement("div", {
|
|
21071
|
+
className: "timeline-line2"
|
|
21072
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
21073
|
+
className: "timeline-content2"
|
|
21074
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21075
|
+
className: "timeline-header2"
|
|
21076
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21077
|
+
className: "timeline-title2"
|
|
21078
|
+
}, 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__default.createElement("span", {
|
|
21079
|
+
className: "timeline-date2"
|
|
21080
|
+
}, convertEpochToDateTime(epochTime))), /*#__PURE__*/React__default.createElement("div", {
|
|
21081
|
+
className: "timeline-body2"
|
|
21082
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21083
|
+
className: `timeline-status-tag2 status-${statusClass}`
|
|
21084
|
+
}, 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__default.createElement("div", {
|
|
21085
|
+
className: "timeline-comment2"
|
|
21086
|
+
}, 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__default.createElement("div", {
|
|
21087
|
+
className: "timeline-footer2"
|
|
21088
|
+
}, /*#__PURE__*/React__default.createElement("span", null, t("ES_COMMON_ASSIGNED_TO"), ": ", /*#__PURE__*/React__default.createElement("strong", null, checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.name)))));
|
|
21089
|
+
})));
|
|
21090
|
+
};
|
|
21091
|
+
|
|
20867
21092
|
const ApplicationDetailsBillAmendment = () => {
|
|
20868
21093
|
var _applicationDetails$p, _applicationDetails$p2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$a3;
|
|
20869
21094
|
const queryParams = Digit.Hooks.useQueryParams();
|
|
@@ -20876,6 +21101,8 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20876
21101
|
let serviceType = "WATER";
|
|
20877
21102
|
if (applicationNumber !== null && applicationNumber !== void 0 && applicationNumber.includes("SW")) serviceType = "SEWERAGE";
|
|
20878
21103
|
const [showToast, setShowToast] = React.useState(false);
|
|
21104
|
+
const [hideTimeline, setHideTimeline] = React__default.useState(typeof window !== "undefined" ? window.innerWidth < 768 : false);
|
|
21105
|
+
const menuRef = React.useRef();
|
|
20879
21106
|
const {
|
|
20880
21107
|
isLoading,
|
|
20881
21108
|
isError,
|
|
@@ -20922,6 +21149,10 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20922
21149
|
}
|
|
20923
21150
|
}, [showToast]);
|
|
20924
21151
|
const [showOptions, setShowOptions] = React.useState(false);
|
|
21152
|
+
const closeMenu = () => {
|
|
21153
|
+
setShowOptions(false);
|
|
21154
|
+
};
|
|
21155
|
+
Digit.Hooks.useClickOutside(menuRef, closeMenu, showOptions);
|
|
20925
21156
|
const getAckPdf = function (amendment, tenantId, t, tableData, app) {
|
|
20926
21157
|
try {
|
|
20927
21158
|
const PDFdata = getWSAcknowledgementData$2(amendment, tenantId, t, tableData, app);
|
|
@@ -20941,25 +21172,42 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20941
21172
|
onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
|
|
20942
21173
|
}];
|
|
20943
21174
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
20944
|
-
className: "employee-main-application-details"
|
|
20945
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20946
|
-
className: "employee-application-details",
|
|
21175
|
+
className: "employee-main-application-details",
|
|
20947
21176
|
style: {
|
|
20948
|
-
|
|
21177
|
+
display: "flex",
|
|
21178
|
+
gap: "20px"
|
|
20949
21179
|
}
|
|
20950
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
21180
|
+
}, isEmployee && /*#__PURE__*/React__default.createElement("div", {
|
|
21181
|
+
className: `workflow-timeline-wrapper no-scrollbar ${hideTimeline ? "hide-workflow" : ""}`,
|
|
21182
|
+
style: {
|
|
21183
|
+
flex: "1 1 300px",
|
|
21184
|
+
maxWidth: hideTimeline ? "fit-content" : "400px",
|
|
21185
|
+
transition: "max-width 0.3s"
|
|
20955
21186
|
}
|
|
20956
|
-
},
|
|
20957
|
-
|
|
21187
|
+
}, /*#__PURE__*/React__default.createElement(WorkflowTimeline, {
|
|
21188
|
+
workflowDetails: workflowDetails,
|
|
21189
|
+
hideTimeline: hideTimeline,
|
|
21190
|
+
setHideTimeline: setHideTimeline
|
|
21191
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
21192
|
+
style: {
|
|
21193
|
+
flex: "2 1 500px",
|
|
21194
|
+
minWidth: "300px",
|
|
21195
|
+
position: "relative"
|
|
21196
|
+
}
|
|
21197
|
+
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
21198
|
+
style: {
|
|
21199
|
+
position: "absolute",
|
|
21200
|
+
right: "24px",
|
|
21201
|
+
zIndex: 11
|
|
21202
|
+
}
|
|
21203
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MultiLink, {
|
|
21204
|
+
className: "multilinkWrapper employee-mulitlink-main-divNew",
|
|
20958
21205
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
20959
21206
|
displayOptions: showOptions,
|
|
20960
21207
|
options: dowloadOptions,
|
|
20961
21208
|
downloadBtnClassName: "employee-download-btn-className",
|
|
20962
|
-
optionsClassName: "employee-options-btn-className"
|
|
21209
|
+
optionsClassName: "employee-options-btn-className",
|
|
21210
|
+
ref: menuRef
|
|
20963
21211
|
})), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
|
|
20964
21212
|
applicationDetails: applicationDetails,
|
|
20965
21213
|
isLoading: isLoading,
|
|
@@ -20972,8 +21220,9 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
20972
21220
|
showToast: showToast,
|
|
20973
21221
|
setShowToast: setShowToast,
|
|
20974
21222
|
closeToast: () => setShowToast(null),
|
|
20975
|
-
timelineStatusPrefix: `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_
|
|
20976
|
-
|
|
21223
|
+
timelineStatusPrefix: `WF_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_`,
|
|
21224
|
+
showTimeLine: !isEmployee
|
|
21225
|
+
}))), showToast ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
20977
21226
|
isDleteBtn: true,
|
|
20978
21227
|
error: updateApplicationError ? "WS_APPLICATION_UPDATE_ERROR" : null,
|
|
20979
21228
|
label: isSuccess ? showToast === null || showToast === void 0 ? void 0 : showToast.label : updateError === null || updateError === void 0 ? void 0 : updateError.Error
|
|
@@ -25470,8 +25719,9 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
25470
25719
|
isclickable: false
|
|
25471
25720
|
}, {
|
|
25472
25721
|
path: "/digit-ui/employee/ws/generate-note-bill-amendment",
|
|
25473
|
-
label: t("
|
|
25474
|
-
show: location.pathname.includes("/generate-note-bill-amendment") ? true : false
|
|
25722
|
+
label: fromScreen ? `${t(fromScreen)} / ${t("WS_APPLICATION_DETAILS_HEADER")}` : t("WS_APPLICATION_DETAILS_HEADER"),
|
|
25723
|
+
show: location.pathname.includes("/generate-note-bill-amendment") ? true : false,
|
|
25724
|
+
isBack: fromScreen && true
|
|
25475
25725
|
}, {
|
|
25476
25726
|
path: "/digit-ui/employee/ws/water/bulk-bil",
|
|
25477
25727
|
label: t("CS_TITLE_BULK_BILL"),
|
|
@@ -25700,9 +25950,11 @@ const App$1 = _ref2 => {
|
|
|
25700
25950
|
})
|
|
25701
25951
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
25702
25952
|
path: `${path}/generate-note-bill-amendment`,
|
|
25703
|
-
component: () => /*#__PURE__*/React__default.createElement(
|
|
25953
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
25954
|
+
layoutClass: "action"
|
|
25955
|
+
}, /*#__PURE__*/React__default.createElement(WSApplicationDetailsBillAmendment, {
|
|
25704
25956
|
path
|
|
25705
|
-
})
|
|
25957
|
+
}))
|
|
25706
25958
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
25707
25959
|
path: `${path}/response`,
|
|
25708
25960
|
component: () => /*#__PURE__*/React__default.createElement(Response, {
|
|
@@ -31628,11 +31880,16 @@ const isOtherDocument = function (code) {
|
|
|
31628
31880
|
}
|
|
31629
31881
|
return code.toUpperCase().includes("OTHER");
|
|
31630
31882
|
};
|
|
31631
|
-
const isRwhDocType = doc => {
|
|
31883
|
+
const isRwhDocType$1 = doc => {
|
|
31632
31884
|
if (!doc) return false;
|
|
31633
31885
|
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();
|
|
31634
31886
|
return str.includes("RAIN") || str.includes("HARVEST");
|
|
31635
31887
|
};
|
|
31888
|
+
const isStpDocType$1 = doc => {
|
|
31889
|
+
if (!doc) return false;
|
|
31890
|
+
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();
|
|
31891
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
31892
|
+
};
|
|
31636
31893
|
const removeDuplicateOtherDocuments = function (documentList) {
|
|
31637
31894
|
if (documentList === void 0) {
|
|
31638
31895
|
documentList = [];
|
|
@@ -31689,7 +31946,7 @@ const getDocUploadSpecs = (doc, isApplicantPhoto) => {
|
|
|
31689
31946
|
};
|
|
31690
31947
|
};
|
|
31691
31948
|
const WSDocumentsEmployee = _ref => {
|
|
31692
|
-
var _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3, _formData$application, _formData$application2, _formData$application3, _formData$connectionH, _formData$connectionH2, _formData$ConnectionH, _formData$ConnectionH2, _formData$additionalD, _formData$rainWaterHa, _formData$rainWaterHa2, _formData$rainWaterHa3, _formData$rainWaterHa4, _formData$additionalD2, _formData$additionalD3, _Digit$SessionStorage, _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3;
|
|
31949
|
+
var _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3, _formData$application, _formData$application2, _formData$application3, _formData$connectionH, _formData$connectionH2, _formData$ConnectionH, _formData$ConnectionH2, _formData$additionalD, _formData$rainWaterHa, _formData$rainWaterHa2, _formData$rainWaterHa3, _formData$rainWaterHa4, _formData$additionalD2, _formData$additionalD3, _formData$sewerTreatm, _formData$sewerTreatm2, _formData$sewerTreatm3, _formData$sewerTreatm4, _formData$sewerTreatm5, _formData$sewerTreatm6, _formData$additionalD4, _formData$additionalD5, _formData$additionalD6, _Digit$SessionStorage, _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3;
|
|
31693
31950
|
let {
|
|
31694
31951
|
t,
|
|
31695
31952
|
config,
|
|
@@ -31709,6 +31966,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31709
31966
|
};
|
|
31710
31967
|
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);
|
|
31711
31968
|
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);
|
|
31969
|
+
const isStpMandatory = !!((formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm === void 0 ? void 0 : _formData$sewerTreatm.hasCertificate) === true || String(formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm2 = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm2 === void 0 ? void 0 : _formData$sewerTreatm2.hasCertificate) === "true" || (formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm3 = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm3 === void 0 ? void 0 : _formData$sewerTreatm3.hasStp) === true || String(formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm4 = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm4 === void 0 ? void 0 : _formData$sewerTreatm4.hasStp) === "true" || (formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm5 = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm5 === void 0 ? void 0 : _formData$sewerTreatm5.isSewerTreatmentPlant) === true || String(formData === null || formData === void 0 ? void 0 : (_formData$sewerTreatm6 = formData.sewerTreatmentPlant) === null || _formData$sewerTreatm6 === void 0 ? void 0 : _formData$sewerTreatm6.isSewerTreatmentPlant) === "true" || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD4 = formData.additionalDetails) === null || _formData$additionalD4 === void 0 ? void 0 : _formData$additionalD4.hasSewerTreatmentPlant) === true || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD5 = formData.additionalDetails) === null || _formData$additionalD5 === void 0 ? void 0 : _formData$additionalD5.hasStp) === true || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD6 = formData.additionalDetails) === null || _formData$additionalD6 === void 0 ? void 0 : _formData$additionalD6.isSewerTreatmentPlant) === true);
|
|
31712
31970
|
const sessionDjb = (_Digit$SessionStorage = Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.djbEmployee;
|
|
31713
31971
|
const djbData = (formData === null || formData === void 0 ? void 0 : formData.djbEmployee) || sessionDjb || (formData === null || formData === void 0 ? void 0 : formData.additionalDetails);
|
|
31714
31972
|
const isDjbEmployee = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
@@ -31735,7 +31993,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31735
31993
|
});
|
|
31736
31994
|
const [enableSubmit, setEnableSubmit] = React.useState(true);
|
|
31737
31995
|
const [error, setError] = React.useState(null);
|
|
31738
|
-
const hasRwhUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isRwhDocType(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
31996
|
+
const hasRwhUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isRwhDocType$1(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
31997
|
+
const hasStpUploaded = documents === null || documents === void 0 ? void 0 : documents.some(item => isStpDocType$1(item) && (item === null || item === void 0 ? void 0 : item.fileStoreId));
|
|
31739
31998
|
const wsDocsData = window.location.href.includes("modify") ? "ModifyConnectionDocuments" : window.location.href.includes("disconnection") ? "DisconnectionDocuments" : "NewWSDocuments";
|
|
31740
31999
|
let action = "create";
|
|
31741
32000
|
const {
|
|
@@ -31962,6 +32221,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31962
32221
|
isOtherDocument: isOther,
|
|
31963
32222
|
isRwhMandatory: isRwhMandatory,
|
|
31964
32223
|
hasRwhUploaded: hasRwhUploaded,
|
|
32224
|
+
isStpMandatory: isStpMandatory,
|
|
32225
|
+
hasStpUploaded: hasStpUploaded,
|
|
31965
32226
|
isTenant: isTenant
|
|
31966
32227
|
});
|
|
31967
32228
|
}), isDjbEmployee && /*#__PURE__*/React__default.createElement(EmployeeIdDocumentUpload, {
|
|
@@ -31990,6 +32251,24 @@ const WSDocumentsEmployee = _ref => {
|
|
|
31990
32251
|
fontWeight: "600"
|
|
31991
32252
|
}
|
|
31992
32253
|
}, "\u26A0\uFE0F", " ", t("WS_RWH_CERTIFICATE_MANDATORY_INSTRUCTION") || "Rain Water Harvesting Certificate is mandatory to upload. Please upload it under Other Documents.")) : null;
|
|
32254
|
+
const stpAlertBanner = !isTenant && isStpMandatory && !hasStpUploaded ? /*#__PURE__*/React__default.createElement("div", {
|
|
32255
|
+
style: {
|
|
32256
|
+
display: "flex",
|
|
32257
|
+
alignItems: "center",
|
|
32258
|
+
gap: "10px",
|
|
32259
|
+
marginBottom: "16px",
|
|
32260
|
+
padding: "10px 14px",
|
|
32261
|
+
backgroundColor: "#fff2f0",
|
|
32262
|
+
borderLeft: "4px solid #ff4d4f",
|
|
32263
|
+
borderRadius: "4px"
|
|
32264
|
+
}
|
|
32265
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
32266
|
+
style: {
|
|
32267
|
+
fontSize: "14px",
|
|
32268
|
+
color: "#d32f2f",
|
|
32269
|
+
fontWeight: "600"
|
|
32270
|
+
}
|
|
32271
|
+
}, "\u26A0\uFE0F", " ", t("WS_STP_CERTIFICATE_MANDATORY_INSTRUCTION") || "Sewer Treatment Plant (STP) Certificate is mandatory to upload. Please upload it under Other Documents.")) : null;
|
|
31993
32272
|
const nocDownloadSection = isTenant ? /*#__PURE__*/React__default.createElement("div", {
|
|
31994
32273
|
style: {
|
|
31995
32274
|
marginBottom: "20px",
|
|
@@ -32032,7 +32311,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
32032
32311
|
onSelect: goNext,
|
|
32033
32312
|
onSkip: () => onSelect(),
|
|
32034
32313
|
isDisabled: enableSubmit
|
|
32035
|
-
}, rwhAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
32314
|
+
}, rwhAlertBanner, stpAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
32036
32315
|
label: error,
|
|
32037
32316
|
onClose: () => setError(null),
|
|
32038
32317
|
error: true,
|
|
@@ -32043,7 +32322,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
32043
32322
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
32044
32323
|
title: t("WS_DOCUMENTS"),
|
|
32045
32324
|
defaultOpen: true
|
|
32046
|
-
}, rwhAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
32325
|
+
}, rwhAlertBanner, stpAlertBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
32047
32326
|
label: error,
|
|
32048
32327
|
onClose: () => setError(null),
|
|
32049
32328
|
error: true,
|
|
@@ -32328,7 +32607,7 @@ function EmployeeIdDocumentUpload(_ref2) {
|
|
|
32328
32607
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null)))));
|
|
32329
32608
|
}
|
|
32330
32609
|
function SelectDocument$2(_ref3) {
|
|
32331
|
-
var _doc$code4, _doc$code5, _doc$code6, _doc$code7, _selectedDocument$cod, _selectedDocument$cod2, _selectedDocument$nam, _selectedDocument$nam2, _selectedDocument$i, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$application4, _formData$application5, _formData$application6, _formData$connectionH3, _formData$connectionH4, _formData$ConnectionH3, _formData$ConnectionH4, _formData$
|
|
32610
|
+
var _doc$code4, _doc$code5, _doc$code6, _doc$code7, _selectedDocument$cod, _selectedDocument$cod2, _selectedDocument$nam, _selectedDocument$nam2, _selectedDocument$i, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$application4, _formData$application5, _formData$application6, _formData$connectionH3, _formData$connectionH4, _formData$ConnectionH3, _formData$ConnectionH4, _formData$additionalD7, _formData$ConnectionD7, _doc$i18nKey, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _selectedDocument$cod16, _selectedDocument$cod17, _doc$i18nKey2;
|
|
32332
32611
|
let {
|
|
32333
32612
|
t,
|
|
32334
32613
|
document: doc,
|
|
@@ -32347,6 +32626,8 @@ function SelectDocument$2(_ref3) {
|
|
|
32347
32626
|
isOtherDocument: isOther = false,
|
|
32348
32627
|
isRwhMandatory = false,
|
|
32349
32628
|
hasRwhUploaded = false,
|
|
32629
|
+
isStpMandatory = false,
|
|
32630
|
+
hasStpUploaded = false,
|
|
32350
32631
|
isTenant: isTenantProp
|
|
32351
32632
|
} = _ref3;
|
|
32352
32633
|
const fileRef = React.useRef();
|
|
@@ -32366,7 +32647,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32366
32647
|
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"));
|
|
32367
32648
|
const isDocNumberMandatory = isIdentityProof || isOwnershipProof;
|
|
32368
32649
|
const [selectedDocument, setSelectedDocument] = React.useState(() => {
|
|
32369
|
-
var _filteredDocument$doc, _doc$
|
|
32650
|
+
var _filteredDocument$doc, _doc$dropdownData4, _doc$dropdownData5;
|
|
32370
32651
|
if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32371
32652
|
var _doc$dropdownData;
|
|
32372
32653
|
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);
|
|
@@ -32377,12 +32658,20 @@ function SelectDocument$2(_ref3) {
|
|
|
32377
32658
|
}
|
|
32378
32659
|
if (isOther && isRwhMandatory && !hasRwhUploaded && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32379
32660
|
var _doc$dropdownData2, _rwhMatch$code;
|
|
32380
|
-
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));
|
|
32661
|
+
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));
|
|
32381
32662
|
if (rwhMatch) return {
|
|
32382
32663
|
...rwhMatch,
|
|
32383
32664
|
i18nKey: (_rwhMatch$code = rwhMatch.code) === null || _rwhMatch$code === void 0 ? void 0 : _rwhMatch$code.replaceAll(".", "_")
|
|
32384
32665
|
};
|
|
32385
32666
|
}
|
|
32667
|
+
if (isOther && isStpMandatory && !hasStpUploaded && doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32668
|
+
var _doc$dropdownData3, _stpMatch$code;
|
|
32669
|
+
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));
|
|
32670
|
+
if (stpMatch) return {
|
|
32671
|
+
...stpMatch,
|
|
32672
|
+
i18nKey: (_stpMatch$code = stpMatch.code) === null || _stpMatch$code === void 0 ? void 0 : _stpMatch$code.replaceAll(".", "_")
|
|
32673
|
+
};
|
|
32674
|
+
}
|
|
32386
32675
|
if (isApplicantPhoto) {
|
|
32387
32676
|
return filteredDocument ? {
|
|
32388
32677
|
...filteredDocument,
|
|
@@ -32398,10 +32687,14 @@ function SelectDocument$2(_ref3) {
|
|
|
32398
32687
|
...filteredDocument,
|
|
32399
32688
|
code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType,
|
|
32400
32689
|
i18nKey: filteredDocument === null || filteredDocument === void 0 ? void 0 : (_filteredDocument$doc = filteredDocument.documentType) === null || _filteredDocument$doc === void 0 ? void 0 : _filteredDocument$doc.replaceAll(".", "_")
|
|
32401
|
-
} : 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$
|
|
32690
|
+
} : 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;
|
|
32402
32691
|
});
|
|
32403
32692
|
const [file, setFile] = React.useState(null);
|
|
32404
32693
|
const [uploadedFile, setUploadedFile] = React.useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null);
|
|
32694
|
+
const [validityDate, setValidityDate] = React.useState(() => {
|
|
32695
|
+
var _filteredDocument$add;
|
|
32696
|
+
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) || "";
|
|
32697
|
+
});
|
|
32405
32698
|
const [documentUid, setDocumentUid] = React.useState(() => {
|
|
32406
32699
|
if (isOther) return "";
|
|
32407
32700
|
const num = (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || "";
|
|
@@ -32420,6 +32713,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32420
32713
|
const [docFileType, setDocFileType] = React.useState("");
|
|
32421
32714
|
const [digiLockerUpload, setDigilockerUpload] = React.useState(false);
|
|
32422
32715
|
const [docNumberError, setDocNumberError] = React.useState(null);
|
|
32716
|
+
const isSelectedRwh = isRwhDocType$1(selectedDocument);
|
|
32717
|
+
const isSelectedStp = isStpDocType$1(selectedDocument);
|
|
32718
|
+
const showValidityDate = isOther && (isSelectedRwh || isSelectedStp || isRwhMandatory && !hasRwhUploaded || isStpMandatory && !hasStpUploaded);
|
|
32423
32719
|
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"))));
|
|
32424
32720
|
const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
|
|
32425
32721
|
const trimmed = (value || "").trim();
|
|
@@ -32473,6 +32769,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32473
32769
|
setUploadedFile(null);
|
|
32474
32770
|
setFile(null);
|
|
32475
32771
|
setDocumentUid("");
|
|
32772
|
+
setValidityDate("");
|
|
32476
32773
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
32477
32774
|
setSelectedDocument({});
|
|
32478
32775
|
}
|
|
@@ -32514,11 +32811,11 @@ function SelectDocument$2(_ref3) {
|
|
|
32514
32811
|
};
|
|
32515
32812
|
React.useEffect(() => {
|
|
32516
32813
|
if (filteredDocument) {
|
|
32517
|
-
var _filteredDocument$doc2, _doc$
|
|
32814
|
+
var _filteredDocument$doc2, _doc$dropdownData7, _doc$dropdownData8;
|
|
32518
32815
|
let match = null;
|
|
32519
32816
|
if (doc !== null && doc !== void 0 && doc.dropdownData) {
|
|
32520
|
-
var _doc$
|
|
32521
|
-
match = doc === null || doc === void 0 ? void 0 : (_doc$
|
|
32817
|
+
var _doc$dropdownData6;
|
|
32818
|
+
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);
|
|
32522
32819
|
}
|
|
32523
32820
|
setSelectedDocument(match ? {
|
|
32524
32821
|
...filteredDocument,
|
|
@@ -32531,7 +32828,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32531
32828
|
...doc,
|
|
32532
32829
|
code: (doc === null || doc === void 0 ? void 0 : doc.code) || "OWNER.APPLICANTPHOTO",
|
|
32533
32830
|
i18nKey: "OWNER_APPLICANTPHOTO"
|
|
32534
|
-
} : 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$
|
|
32831
|
+
} : 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);
|
|
32535
32832
|
}
|
|
32536
32833
|
}, []);
|
|
32537
32834
|
function selectfile(e, newFile) {
|
|
@@ -32569,7 +32866,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32569
32866
|
const code = typeof val === "object" ? (val === null || val === void 0 ? void 0 : val.code) || (val === null || val === void 0 ? void 0 : val.name) || (val === null || val === void 0 ? void 0 : val.value) : val;
|
|
32570
32867
|
return String(code).toUpperCase() === "TENANT";
|
|
32571
32868
|
};
|
|
32572
|
-
const isTenant = isTenantProp !== undefined ? isTenantProp : checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD4 = formData.ConnectionDetails) === null || _formData$ConnectionD4 === void 0 ? void 0 : (_formData$ConnectionD5 = _formData$ConnectionD4[0]) === null || _formData$ConnectionD5 === void 0 ? void 0 : _formData$ConnectionD5.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD6 = formData.ConnectionDetails) === null || _formData$ConnectionD6 === void 0 ? void 0 : _formData$ConnectionD6.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application4 = formData.applicationSelection) === null || _formData$application4 === void 0 ? void 0 : _formData$application4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application5 = formData.applicationSelection) === null || _formData$application5 === void 0 ? void 0 : (_formData$application6 = _formData$application5[0]) === null || _formData$application6 === void 0 ? void 0 : _formData$application6.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$connectionH3 = formData.connectionHolders) === null || _formData$connectionH3 === void 0 ? void 0 : (_formData$connectionH4 = _formData$connectionH3[0]) === null || _formData$connectionH4 === void 0 ? void 0 : _formData$connectionH4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH3 = formData.ConnectionHolderDetails) === null || _formData$ConnectionH3 === void 0 ? void 0 : (_formData$ConnectionH4 = _formData$ConnectionH3[0]) === null || _formData$ConnectionH4 === void 0 ? void 0 : _formData$ConnectionH4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$
|
|
32869
|
+
const isTenant = isTenantProp !== undefined ? isTenantProp : checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD4 = formData.ConnectionDetails) === null || _formData$ConnectionD4 === void 0 ? void 0 : (_formData$ConnectionD5 = _formData$ConnectionD4[0]) === null || _formData$ConnectionD5 === void 0 ? void 0 : _formData$ConnectionD5.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD6 = formData.ConnectionDetails) === null || _formData$ConnectionD6 === void 0 ? void 0 : _formData$ConnectionD6.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application4 = formData.applicationSelection) === null || _formData$application4 === void 0 ? void 0 : _formData$application4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$application5 = formData.applicationSelection) === null || _formData$application5 === void 0 ? void 0 : (_formData$application6 = _formData$application5[0]) === null || _formData$application6 === void 0 ? void 0 : _formData$application6.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$connectionH3 = formData.connectionHolders) === null || _formData$connectionH3 === void 0 ? void 0 : (_formData$connectionH4 = _formData$connectionH3[0]) === null || _formData$connectionH4 === void 0 ? void 0 : _formData$connectionH4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH3 = formData.ConnectionHolderDetails) === null || _formData$ConnectionH3 === void 0 ? void 0 : (_formData$ConnectionH4 = _formData$ConnectionH3[0]) === null || _formData$ConnectionH4 === void 0 ? void 0 : _formData$ConnectionH4.applicantType) || checkIsTenant(formData === null || formData === void 0 ? void 0 : (_formData$additionalD7 = formData.additionalDetails) === null || _formData$additionalD7 === void 0 ? void 0 : _formData$additionalD7.applicantType);
|
|
32573
32870
|
if (isOther) {
|
|
32574
32871
|
if (isTenant) {
|
|
32575
32872
|
var _dropDownData;
|
|
@@ -32593,7 +32890,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32593
32890
|
const name = d.name || "";
|
|
32594
32891
|
return !(code.includes("NOC_FROM_OWNER") || code === "NOC from Owner" || name.includes("NOC from Owner"));
|
|
32595
32892
|
});
|
|
32596
|
-
if (dropDownData && !dropDownData.some(d => isRwhDocType(d))) {
|
|
32893
|
+
if (dropDownData && !dropDownData.some(d => isRwhDocType$1(d))) {
|
|
32597
32894
|
dropDownData = [...dropDownData, {
|
|
32598
32895
|
code: "OWNER.OTHERDOCUMENTS.RAINWATER_HARVESTING",
|
|
32599
32896
|
i18nKey: "OWNER_OTHERDOCUMENTS_RAINWATER_HARVESTING",
|
|
@@ -32626,9 +32923,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32626
32923
|
setFile(null);
|
|
32627
32924
|
} else if (isRwhMandatory && !hasRwhUploaded) {
|
|
32628
32925
|
var _dropDownData4;
|
|
32629
|
-
const isCurrentRwh = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isRwhDocType(selectedDocument);
|
|
32926
|
+
const isCurrentRwh = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isRwhDocType$1(selectedDocument);
|
|
32630
32927
|
if (!isCurrentRwh && ((_dropDownData4 = dropDownData) === null || _dropDownData4 === void 0 ? void 0 : _dropDownData4.length) > 0) {
|
|
32631
|
-
const rwhMatch = dropDownData.find(d => isRwhDocType(d));
|
|
32928
|
+
const rwhMatch = dropDownData.find(d => isRwhDocType$1(d));
|
|
32632
32929
|
if (rwhMatch && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code))) {
|
|
32633
32930
|
var _rwhMatch$code2;
|
|
32634
32931
|
setSelectedDocument({
|
|
@@ -32637,10 +32934,23 @@ function SelectDocument$2(_ref3) {
|
|
|
32637
32934
|
});
|
|
32638
32935
|
}
|
|
32639
32936
|
}
|
|
32937
|
+
} else if (isStpMandatory && !hasStpUploaded) {
|
|
32938
|
+
var _dropDownData5;
|
|
32939
|
+
const isCurrentStp = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) && isStpDocType$1(selectedDocument);
|
|
32940
|
+
if (!isCurrentStp && ((_dropDownData5 = dropDownData) === null || _dropDownData5 === void 0 ? void 0 : _dropDownData5.length) > 0) {
|
|
32941
|
+
const stpMatch = dropDownData.find(d => isStpDocType$1(d));
|
|
32942
|
+
if (stpMatch && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code))) {
|
|
32943
|
+
var _stpMatch$code2;
|
|
32944
|
+
setSelectedDocument({
|
|
32945
|
+
...stpMatch,
|
|
32946
|
+
i18nKey: (_stpMatch$code2 = stpMatch.code) === null || _stpMatch$code2 === void 0 ? void 0 : _stpMatch$code2.replaceAll(".", "_")
|
|
32947
|
+
});
|
|
32948
|
+
}
|
|
32949
|
+
}
|
|
32640
32950
|
}
|
|
32641
32951
|
}
|
|
32642
32952
|
}
|
|
32643
|
-
}, [isTenant, isOther, isRwhMandatory, hasRwhUploaded, dropDownData]);
|
|
32953
|
+
}, [isTenant, isOther, isRwhMandatory, hasRwhUploaded, isStpMandatory, hasStpUploaded, dropDownData]);
|
|
32644
32954
|
const [isHidden, setHidden] = React.useState(false);
|
|
32645
32955
|
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);
|
|
32646
32956
|
const addError = () => {
|
|
@@ -32698,10 +33008,20 @@ function SelectDocument$2(_ref3) {
|
|
|
32698
33008
|
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
32699
33009
|
documentUid: documentUid,
|
|
32700
33010
|
documentNumber: documentUid,
|
|
33011
|
+
validityDate: validityDate || undefined,
|
|
33012
|
+
validityUpTo: validityDate || undefined,
|
|
33013
|
+
date: validityDate || undefined,
|
|
32701
33014
|
remarks: isOtherDocumentsRemark ? documentUid : undefined,
|
|
32702
|
-
additionalDetails:
|
|
32703
|
-
|
|
32704
|
-
|
|
33015
|
+
additionalDetails: {
|
|
33016
|
+
...(isOtherDocumentsRemark ? {
|
|
33017
|
+
remark: documentUid
|
|
33018
|
+
} : {}),
|
|
33019
|
+
...(validityDate ? {
|
|
33020
|
+
validityDate,
|
|
33021
|
+
validityUpTo: validityDate,
|
|
33022
|
+
date: validityDate
|
|
33023
|
+
} : {})
|
|
33024
|
+
},
|
|
32705
33025
|
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
32706
33026
|
id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
|
|
32707
33027
|
status: "ACTIVE",
|
|
@@ -32712,8 +33032,11 @@ function SelectDocument$2(_ref3) {
|
|
|
32712
33032
|
});
|
|
32713
33033
|
}
|
|
32714
33034
|
const isRwhRequired = isOther && isRwhMandatory;
|
|
32715
|
-
const isRwhSatisfied = hasRwhUploaded || uploadedFile && isRwhDocType(selectedDocument);
|
|
33035
|
+
const isRwhSatisfied = hasRwhUploaded || uploadedFile && isRwhDocType$1(selectedDocument);
|
|
32716
33036
|
const rwhMissing = isRwhRequired && !isRwhSatisfied;
|
|
33037
|
+
const isStpRequired = isOther && isStpMandatory;
|
|
33038
|
+
const isStpSatisfied = hasStpUploaded || uploadedFile && isStpDocType$1(selectedDocument);
|
|
33039
|
+
const stpMissing = isStpRequired && !isStpSatisfied;
|
|
32717
33040
|
const hasOtherUploaded = isOther && (documents === null || documents === void 0 ? void 0 : documents.some(item => {
|
|
32718
33041
|
var _item$documentType4;
|
|
32719
33042
|
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);
|
|
@@ -32722,8 +33045,9 @@ function SelectDocument$2(_ref3) {
|
|
|
32722
33045
|
const isDocNumberMissing = isDocNumberMandatory && (!documentUid || !documentUid.trim());
|
|
32723
33046
|
const isDocMissing = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded && (!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code));
|
|
32724
33047
|
const isPartiallyFilled = isApplicantPhoto ? false : isDocNumberMandatory ? !uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || isDocNumberMissing : !isCompletelyEmpty && !(uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code);
|
|
32725
|
-
const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isDocNumberMandatory;
|
|
33048
|
+
const effectiveRequired = (doc === null || doc === void 0 ? void 0 : doc.required) && !hasOtherUploaded || isPartiallyFilled || isOther && isRwhMandatory && !hasRwhUploaded || isOther && isStpMandatory && !hasStpUploaded || isDocNumberMandatory;
|
|
32726
33049
|
const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, isDocNumberMandatory || effectiveRequired, !!uploadedFile);
|
|
33050
|
+
const validityMissing = showValidityDate && (isRwhMandatory || isStpMandatory) && uploadedFile && !validityDate;
|
|
32727
33051
|
if (!isHidden) {
|
|
32728
33052
|
if (err) {
|
|
32729
33053
|
addError();
|
|
@@ -32733,13 +33057,17 @@ function SelectDocument$2(_ref3) {
|
|
|
32733
33057
|
addError();
|
|
32734
33058
|
} else if (rwhMissing) {
|
|
32735
33059
|
addError();
|
|
33060
|
+
} else if (stpMissing) {
|
|
33061
|
+
addError();
|
|
33062
|
+
} else if (validityMissing) {
|
|
33063
|
+
addError();
|
|
32736
33064
|
} else {
|
|
32737
33065
|
removeError();
|
|
32738
33066
|
}
|
|
32739
33067
|
} else if (isHidden) {
|
|
32740
33068
|
removeError();
|
|
32741
33069
|
}
|
|
32742
|
-
}, [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]);
|
|
32743
33071
|
React.useEffect(() => {
|
|
32744
33072
|
(function () {
|
|
32745
33073
|
try {
|
|
@@ -32830,15 +33158,21 @@ function SelectDocument$2(_ref3) {
|
|
|
32830
33158
|
style: {
|
|
32831
33159
|
margin: 0
|
|
32832
33160
|
}
|
|
32833
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), ((doc === null || doc === void 0 ? void 0 : doc.required) || !isTenant && isOther && isRwhMandatory) && /*#__PURE__*/React__default.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__default.createElement("span", {
|
|
32834
33162
|
className: "check-page-link-button"
|
|
32835
|
-
}, "*")), " ", !isTenant && isOther && isRwhMandatory && !hasRwhUploaded && !(uploadedFile && isRwhDocType(selectedDocument)) && /*#__PURE__*/React__default.createElement("div", {
|
|
33163
|
+
}, "*")), " ", !isTenant && isOther && isRwhMandatory && !hasRwhUploaded && !(uploadedFile && isRwhDocType$1(selectedDocument)) && /*#__PURE__*/React__default.createElement("div", {
|
|
33164
|
+
style: {
|
|
33165
|
+
fontSize: "12px",
|
|
33166
|
+
color: "#d32f2f",
|
|
33167
|
+
marginTop: "-4px"
|
|
33168
|
+
}
|
|
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__default.createElement("div", {
|
|
32836
33170
|
style: {
|
|
32837
33171
|
fontSize: "12px",
|
|
32838
33172
|
color: "#d32f2f",
|
|
32839
33173
|
marginTop: "-4px"
|
|
32840
33174
|
}
|
|
32841
|
-
}, "* ", t("
|
|
33175
|
+
}, "* ", t("WS_STP_CERTIFICATE_MANDATORY_MSG") || "Sewer Treatment Plant (STP) Certificate is mandatory to upload."), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
32842
33176
|
id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
32843
33177
|
key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
32844
33178
|
className: "form-field",
|
|
@@ -32854,7 +33188,36 @@ function SelectDocument$2(_ref3) {
|
|
|
32854
33188
|
optionKey: "i18nKey",
|
|
32855
33189
|
t: t,
|
|
32856
33190
|
placeholder: t("PT_MUTATION_SELECT_DOC_LABEL")
|
|
32857
|
-
})) : null,
|
|
33191
|
+
})) : null, showValidityDate && /*#__PURE__*/React__default.createElement("div", {
|
|
33192
|
+
style: {
|
|
33193
|
+
display: "flex",
|
|
33194
|
+
flexDirection: "column",
|
|
33195
|
+
gap: "8px"
|
|
33196
|
+
}
|
|
33197
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
33198
|
+
style: {
|
|
33199
|
+
margin: 0
|
|
33200
|
+
}
|
|
33201
|
+
}, t("WS_VALIDITY_UP_TO") || "Validity up to", ((doc === null || doc === void 0 ? void 0 : doc.required) || isRwhMandatory || isStpMandatory) && /*#__PURE__*/React__default.createElement("span", {
|
|
33202
|
+
className: "check-page-link-button"
|
|
33203
|
+
}, "*")), /*#__PURE__*/React__default.createElement("div", {
|
|
33204
|
+
className: "field",
|
|
33205
|
+
style: {
|
|
33206
|
+
width: "100%"
|
|
33207
|
+
}
|
|
33208
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
33209
|
+
date: validityDate,
|
|
33210
|
+
onChange: date => setValidityDate(date),
|
|
33211
|
+
style: {
|
|
33212
|
+
width: "100%"
|
|
33213
|
+
}
|
|
33214
|
+
})), uploadedFile && (isRwhMandatory || isStpMandatory) && !validityDate && /*#__PURE__*/React__default.createElement("div", {
|
|
33215
|
+
style: {
|
|
33216
|
+
fontSize: "12px",
|
|
33217
|
+
color: "#d32f2f",
|
|
33218
|
+
marginTop: "-4px"
|
|
33219
|
+
}
|
|
33220
|
+
}, "* ", t("CORE_COMMON_REQUIRED_ERRMSG") || "This field is required")), (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
|
|
32858
33221
|
style: {
|
|
32859
33222
|
display: "flex",
|
|
32860
33223
|
flexDirection: "column",
|
|
@@ -32984,6 +33347,7 @@ function SelectDocument$2(_ref3) {
|
|
|
32984
33347
|
setIsCameraFile(false);
|
|
32985
33348
|
setIsDocumentUidLocked(false);
|
|
32986
33349
|
setDocumentUid("");
|
|
33350
|
+
setValidityDate("");
|
|
32987
33351
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
32988
33352
|
setSelectedDocument({});
|
|
32989
33353
|
}
|
|
@@ -33016,6 +33380,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33016
33380
|
setIsCameraFile(false);
|
|
33017
33381
|
setIsDocumentUidLocked(false);
|
|
33018
33382
|
setDocumentUid("");
|
|
33383
|
+
setValidityDate("");
|
|
33019
33384
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33020
33385
|
setSelectedDocument({});
|
|
33021
33386
|
}
|
|
@@ -33035,6 +33400,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33035
33400
|
setIsCameraFile(false);
|
|
33036
33401
|
setIsDocumentUidLocked(false);
|
|
33037
33402
|
setDocumentUid("");
|
|
33403
|
+
setValidityDate("");
|
|
33038
33404
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33039
33405
|
setSelectedDocument({});
|
|
33040
33406
|
}
|
|
@@ -33060,6 +33426,7 @@ function SelectDocument$2(_ref3) {
|
|
|
33060
33426
|
setIsCameraFile(false);
|
|
33061
33427
|
setIsDocumentUidLocked(false);
|
|
33062
33428
|
setDocumentUid("");
|
|
33429
|
+
setValidityDate("");
|
|
33063
33430
|
if (isOther && doc !== null && doc !== void 0 && doc.hasDropdown) {
|
|
33064
33431
|
setSelectedDocument({});
|
|
33065
33432
|
}
|
|
@@ -33080,12 +33447,17 @@ function SelectDocument$2(_ref3) {
|
|
|
33080
33447
|
setError(docNumberError);
|
|
33081
33448
|
return;
|
|
33082
33449
|
}
|
|
33450
|
+
if (showValidityDate && (isRwhMandatory || isStpMandatory) && !validityDate) {
|
|
33451
|
+
setError(t("WS_PLEASE_SELECT_VALIDITY_DATE") || "Please select validity up to date.");
|
|
33452
|
+
return;
|
|
33453
|
+
}
|
|
33083
33454
|
pendingId.current = Date.now();
|
|
33084
33455
|
setUploadedFile(null);
|
|
33085
33456
|
setFile(null);
|
|
33086
33457
|
setFileError(null);
|
|
33087
33458
|
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
33088
33459
|
setDocumentUid("");
|
|
33460
|
+
setValidityDate("");
|
|
33089
33461
|
setDocNumberError(null);
|
|
33090
33462
|
setIsDocumentUidLocked(false);
|
|
33091
33463
|
},
|
|
@@ -33108,7 +33480,8 @@ function SelectDocument$2(_ref3) {
|
|
|
33108
33480
|
}, fileError), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
33109
33481
|
fileStoreId: uploadedFile,
|
|
33110
33482
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
33111
|
-
documentNumber: documentUid
|
|
33483
|
+
documentNumber: documentUid,
|
|
33484
|
+
validityDate: validityDate
|
|
33112
33485
|
}] : []).map((uploadedDocument, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
33113
33486
|
key: uploadedDocument.fileStoreId || index,
|
|
33114
33487
|
style: {
|
|
@@ -33122,7 +33495,12 @@ function SelectDocument$2(_ref3) {
|
|
|
33122
33495
|
style: {
|
|
33123
33496
|
fontWeight: "bold"
|
|
33124
33497
|
}
|
|
33125
|
-
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll(".", "_")) : t("CS_COMMON_DOCUMENT"), uploadedDocument.fileName ? ` - ${uploadedDocument.fileName}` : ""), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("
|
|
33498
|
+
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll(".", "_")) : t("CS_COMMON_DOCUMENT"), uploadedDocument.fileName ? ` - ${uploadedDocument.fileName}` : ""), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), (uploadedDocument.validityDate || uploadedDocument.validityUpTo) && /*#__PURE__*/React__default.createElement("span", {
|
|
33499
|
+
style: {
|
|
33500
|
+
fontSize: "13px",
|
|
33501
|
+
color: "#333"
|
|
33502
|
+
}
|
|
33503
|
+
}, "(", t("WS_VALIDITY_UP_TO") || "Validity up to", ": ", uploadedDocument.validityDate || uploadedDocument.validityUpTo, ")"), /*#__PURE__*/React__default.createElement("button", {
|
|
33126
33504
|
type: "button",
|
|
33127
33505
|
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
33128
33506
|
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
@@ -39908,7 +40286,7 @@ const WSDivyangjan = _ref => {
|
|
|
39908
40286
|
};
|
|
39909
40287
|
|
|
39910
40288
|
const WSRainWaterHarvesting = _ref => {
|
|
39911
|
-
var _formData$
|
|
40289
|
+
var _formData$additionalD, _formData$configKey2;
|
|
39912
40290
|
let {
|
|
39913
40291
|
config,
|
|
39914
40292
|
onSelect,
|
|
@@ -39918,17 +40296,36 @@ const WSRainWaterHarvesting = _ref => {
|
|
|
39918
40296
|
const {
|
|
39919
40297
|
t
|
|
39920
40298
|
} = reactI18next.useTranslation();
|
|
40299
|
+
const getInitialValue = () => {
|
|
40300
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting";
|
|
40301
|
+
const rwh = formData === null || formData === void 0 ? void 0 : formData[configKey];
|
|
40302
|
+
const add = formData === null || formData === void 0 ? void 0 : formData.additionalDetails;
|
|
40303
|
+
if ((rwh === null || rwh === void 0 ? void 0 : rwh.hasCertificate) !== undefined) {
|
|
40304
|
+
return String(rwh.hasCertificate) === "true" || rwh.hasCertificate === true;
|
|
40305
|
+
}
|
|
40306
|
+
if ((rwh === null || rwh === void 0 ? void 0 : rwh.isRainwaterHarvesting) !== undefined) {
|
|
40307
|
+
return String(rwh.isRainwaterHarvesting) === "true" || rwh.isRainwaterHarvesting === true;
|
|
40308
|
+
}
|
|
40309
|
+
if ((add === null || add === void 0 ? void 0 : add.hasRainWaterHarvestingCertificate) !== undefined) {
|
|
40310
|
+
return String(add.hasRainWaterHarvestingCertificate) === "true" || add.hasRainWaterHarvestingCertificate === true;
|
|
40311
|
+
}
|
|
40312
|
+
if ((add === null || add === void 0 ? void 0 : add.isRainwaterHarvesting) !== undefined) {
|
|
40313
|
+
return String(add.isRainwaterHarvesting) === "true" || add.isRainwaterHarvesting === true;
|
|
40314
|
+
}
|
|
40315
|
+
return false;
|
|
40316
|
+
};
|
|
39921
40317
|
const {
|
|
39922
40318
|
control,
|
|
39923
|
-
watch
|
|
40319
|
+
watch,
|
|
40320
|
+
setValue
|
|
39924
40321
|
} = reactHookForm.useForm({
|
|
39925
40322
|
defaultValues: {
|
|
39926
|
-
hasCertificate:
|
|
40323
|
+
hasCertificate: getInitialValue()
|
|
39927
40324
|
}
|
|
39928
40325
|
});
|
|
39929
40326
|
const formValue = watch();
|
|
39930
40327
|
const onSelectRef = React.useRef(onSelect);
|
|
39931
|
-
const goNext = () => onSelect(config.key, {
|
|
40328
|
+
const goNext = () => onSelect((config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting", {
|
|
39932
40329
|
hasCertificate: !!formValue.hasCertificate,
|
|
39933
40330
|
isRainwaterHarvesting: !!formValue.hasCertificate
|
|
39934
40331
|
});
|
|
@@ -39936,33 +40333,193 @@ const WSRainWaterHarvesting = _ref => {
|
|
|
39936
40333
|
React.useEffect(() => {
|
|
39937
40334
|
onSelectRef.current = onSelect;
|
|
39938
40335
|
}, [onSelect]);
|
|
40336
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "rainWaterHarvesting";
|
|
40337
|
+
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);
|
|
40338
|
+
const isInitializedRef = React.useRef(hasData);
|
|
39939
40339
|
React.useEffect(() => {
|
|
39940
|
-
|
|
39941
|
-
|
|
39942
|
-
|
|
40340
|
+
var _formData$additionalD2;
|
|
40341
|
+
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)) {
|
|
40342
|
+
setValue("hasCertificate", getInitialValue());
|
|
40343
|
+
isInitializedRef.current = true;
|
|
40344
|
+
}
|
|
40345
|
+
}, [formData === null || formData === void 0 ? void 0 : formData[configKey], formData === null || formData === void 0 ? void 0 : formData.additionalDetails]);
|
|
40346
|
+
React.useEffect(() => {
|
|
40347
|
+
const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
|
|
40348
|
+
if (isEmployeeMode) {
|
|
40349
|
+
var _formData$configKey;
|
|
40350
|
+
const currentVal = formData === null || formData === void 0 ? void 0 : (_formData$configKey = formData[configKey]) === null || _formData$configKey === void 0 ? void 0 : _formData$configKey.hasCertificate;
|
|
39943
40351
|
const newVal = !!formValue.hasCertificate;
|
|
39944
40352
|
if (currentVal !== newVal) {
|
|
39945
|
-
onSelectRef.current(
|
|
40353
|
+
onSelectRef.current(configKey, {
|
|
39946
40354
|
hasCertificate: newVal,
|
|
39947
40355
|
isRainwaterHarvesting: newVal
|
|
39948
40356
|
});
|
|
39949
40357
|
}
|
|
39950
40358
|
}
|
|
39951
|
-
}, [
|
|
40359
|
+
}, [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]);
|
|
39952
40360
|
const content = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
39953
40361
|
title: t("Rain Water Harvesting Certificate"),
|
|
39954
40362
|
defaultOpen: true
|
|
39955
40363
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
39956
40364
|
className: "formcomposer-section-grid"
|
|
39957
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement("div", {
|
|
40365
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Rain Water Harvesting Certificate")), /*#__PURE__*/React__default.createElement("div", {
|
|
39958
40366
|
className: "field"
|
|
39959
40367
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
39960
40368
|
control: control,
|
|
39961
40369
|
name: "hasCertificate",
|
|
39962
|
-
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
39963
|
-
|
|
39964
|
-
|
|
39965
|
-
|
|
40370
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
|
|
40371
|
+
className: "form-field",
|
|
40372
|
+
style: {
|
|
40373
|
+
display: "flex",
|
|
40374
|
+
gap: "2rem",
|
|
40375
|
+
alignItems: "center"
|
|
40376
|
+
},
|
|
40377
|
+
name: "hasRainWaterHarvestingCertificateRadio",
|
|
40378
|
+
options: [{
|
|
40379
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40380
|
+
code: true
|
|
40381
|
+
}, {
|
|
40382
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40383
|
+
code: false
|
|
40384
|
+
}],
|
|
40385
|
+
optionsKey: "i18nKey",
|
|
40386
|
+
selectedOption: props.value ? {
|
|
40387
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40388
|
+
code: true
|
|
40389
|
+
} : {
|
|
40390
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40391
|
+
code: false
|
|
40392
|
+
},
|
|
40393
|
+
onSelect: e => props.onChange(e.code),
|
|
40394
|
+
t: t
|
|
40395
|
+
})
|
|
40396
|
+
})))));
|
|
40397
|
+
return userType === "citizen" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
40398
|
+
t: t,
|
|
40399
|
+
config: config,
|
|
40400
|
+
onSelect: goNext,
|
|
40401
|
+
onSkip: onSkip
|
|
40402
|
+
}, content) : content;
|
|
40403
|
+
};
|
|
40404
|
+
|
|
40405
|
+
const WSSewerTreatmentPlant = _ref => {
|
|
40406
|
+
var _formData$additionalD, _formData$additionalD2, _formData$configKey3, _formData$configKey4;
|
|
40407
|
+
let {
|
|
40408
|
+
config,
|
|
40409
|
+
onSelect,
|
|
40410
|
+
userType,
|
|
40411
|
+
formData
|
|
40412
|
+
} = _ref;
|
|
40413
|
+
const {
|
|
40414
|
+
t
|
|
40415
|
+
} = reactI18next.useTranslation();
|
|
40416
|
+
const getInitialValue = () => {
|
|
40417
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant";
|
|
40418
|
+
const stp = (formData === null || formData === void 0 ? void 0 : formData[configKey]) || (formData === null || formData === void 0 ? void 0 : formData.sewageTreatmentPlant);
|
|
40419
|
+
const add = formData === null || formData === void 0 ? void 0 : formData.additionalDetails;
|
|
40420
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.hasCertificate) !== undefined) {
|
|
40421
|
+
return String(stp.hasCertificate) === "true" || stp.hasCertificate === true;
|
|
40422
|
+
}
|
|
40423
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.hasStp) !== undefined) {
|
|
40424
|
+
return String(stp.hasStp) === "true" || stp.hasStp === true;
|
|
40425
|
+
}
|
|
40426
|
+
if ((stp === null || stp === void 0 ? void 0 : stp.isSewerTreatmentPlant) !== undefined) {
|
|
40427
|
+
return String(stp.isSewerTreatmentPlant) === "true" || stp.isSewerTreatmentPlant === true;
|
|
40428
|
+
}
|
|
40429
|
+
if ((add === null || add === void 0 ? void 0 : add.hasSewerTreatmentPlant) !== undefined) {
|
|
40430
|
+
return String(add.hasSewerTreatmentPlant) === "true" || add.hasSewerTreatmentPlant === true;
|
|
40431
|
+
}
|
|
40432
|
+
if ((add === null || add === void 0 ? void 0 : add.hasSewageTreatmentPlant) !== undefined) {
|
|
40433
|
+
return String(add.hasSewageTreatmentPlant) === "true" || add.hasSewageTreatmentPlant === true;
|
|
40434
|
+
}
|
|
40435
|
+
if ((add === null || add === void 0 ? void 0 : add.hasStp) !== undefined) {
|
|
40436
|
+
return String(add.hasStp) === "true" || add.hasStp === true;
|
|
40437
|
+
}
|
|
40438
|
+
if ((add === null || add === void 0 ? void 0 : add.isSewerTreatmentPlant) !== undefined) {
|
|
40439
|
+
return String(add.isSewerTreatmentPlant) === "true" || add.isSewerTreatmentPlant === true;
|
|
40440
|
+
}
|
|
40441
|
+
return false;
|
|
40442
|
+
};
|
|
40443
|
+
const {
|
|
40444
|
+
control,
|
|
40445
|
+
watch,
|
|
40446
|
+
setValue
|
|
40447
|
+
} = reactHookForm.useForm({
|
|
40448
|
+
defaultValues: {
|
|
40449
|
+
hasCertificate: getInitialValue()
|
|
40450
|
+
}
|
|
40451
|
+
});
|
|
40452
|
+
const formValue = watch();
|
|
40453
|
+
const onSelectRef = React.useRef(onSelect);
|
|
40454
|
+
const goNext = () => onSelect((config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant", {
|
|
40455
|
+
hasCertificate: !!formValue.hasCertificate,
|
|
40456
|
+
hasStp: !!formValue.hasCertificate,
|
|
40457
|
+
isSewerTreatmentPlant: !!formValue.hasCertificate
|
|
40458
|
+
});
|
|
40459
|
+
const onSkip = () => onSelect();
|
|
40460
|
+
React.useEffect(() => {
|
|
40461
|
+
onSelectRef.current = onSelect;
|
|
40462
|
+
}, [onSelect]);
|
|
40463
|
+
const configKey = (config === null || config === void 0 ? void 0 : config.key) || "sewerTreatmentPlant";
|
|
40464
|
+
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);
|
|
40465
|
+
const isInitializedRef = React.useRef(hasData);
|
|
40466
|
+
React.useEffect(() => {
|
|
40467
|
+
var _formData$additionalD3, _formData$additionalD4;
|
|
40468
|
+
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)) {
|
|
40469
|
+
setValue("hasCertificate", getInitialValue());
|
|
40470
|
+
isInitializedRef.current = true;
|
|
40471
|
+
}
|
|
40472
|
+
}, [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]);
|
|
40473
|
+
React.useEffect(() => {
|
|
40474
|
+
const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
|
|
40475
|
+
if (isEmployeeMode) {
|
|
40476
|
+
var _formData$configKey, _formData$configKey2;
|
|
40477
|
+
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);
|
|
40478
|
+
const newVal = !!formValue.hasCertificate;
|
|
40479
|
+
if (currentVal !== newVal) {
|
|
40480
|
+
onSelectRef.current(configKey, {
|
|
40481
|
+
hasCertificate: newVal,
|
|
40482
|
+
hasStp: newVal,
|
|
40483
|
+
isSewerTreatmentPlant: newVal
|
|
40484
|
+
});
|
|
40485
|
+
}
|
|
40486
|
+
}
|
|
40487
|
+
}, [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]);
|
|
40488
|
+
const content = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
40489
|
+
title: t("Sewer Treatment Plant (STP)"),
|
|
40490
|
+
defaultOpen: true
|
|
40491
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
40492
|
+
className: "formcomposer-section-grid"
|
|
40493
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Sewer Treatment Plant (STP)")), /*#__PURE__*/React__default.createElement("div", {
|
|
40494
|
+
className: "field"
|
|
40495
|
+
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
40496
|
+
control: control,
|
|
40497
|
+
name: "hasCertificate",
|
|
40498
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
|
|
40499
|
+
className: "form-field",
|
|
40500
|
+
style: {
|
|
40501
|
+
display: "flex",
|
|
40502
|
+
gap: "2rem",
|
|
40503
|
+
alignItems: "center"
|
|
40504
|
+
},
|
|
40505
|
+
name: "hasSewerTreatmentPlantRadio",
|
|
40506
|
+
options: [{
|
|
40507
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40508
|
+
code: true
|
|
40509
|
+
}, {
|
|
40510
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40511
|
+
code: false
|
|
40512
|
+
}],
|
|
40513
|
+
optionsKey: "i18nKey",
|
|
40514
|
+
selectedOption: props.value ? {
|
|
40515
|
+
i18nKey: "CORE_COMMON_YES",
|
|
40516
|
+
code: true
|
|
40517
|
+
} : {
|
|
40518
|
+
i18nKey: "CORE_COMMON_NO",
|
|
40519
|
+
code: false
|
|
40520
|
+
},
|
|
40521
|
+
onSelect: e => props.onChange(e.code),
|
|
40522
|
+
t: t
|
|
39966
40523
|
})
|
|
39967
40524
|
})))));
|
|
39968
40525
|
return userType === "citizen" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
@@ -44085,22 +44642,26 @@ const useInboxTableConfig$1 = _ref => {
|
|
|
44085
44642
|
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
44086
44643
|
disableSortBy: true,
|
|
44087
44644
|
Cell: _ref3 => {
|
|
44088
|
-
var _row$original2;
|
|
44645
|
+
var _row$original2, _row$original2$servic, _row$original3, _row$original4;
|
|
44089
44646
|
let {
|
|
44090
44647
|
row
|
|
44091
44648
|
} = _ref3;
|
|
44649
|
+
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";
|
|
44650
|
+
const fromScreen = service === "WATER" ? "ES_COMMON_BILL_AMEND_WATER_INBOX_LABEL" : "ES_COMMON_BILL_AMEND_SEWERAGE_INBOX_LABEL";
|
|
44651
|
+
const applicationNo = row === null || row === void 0 ? void 0 : (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3["applicationNo"];
|
|
44652
|
+
const linkUrl = `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${applicationNo}&tenantId=${tenantId}&service=${service}&from=${fromScreen}`;
|
|
44092
44653
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
44093
44654
|
style: {
|
|
44094
44655
|
display: "flex",
|
|
44095
44656
|
flexDirection: "column"
|
|
44096
44657
|
}
|
|
44097
44658
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
44098
|
-
to:
|
|
44659
|
+
to: linkUrl
|
|
44099
44660
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
44100
44661
|
className: "link"
|
|
44101
|
-
},
|
|
44662
|
+
}, 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`)));
|
|
44102
44663
|
}
|
|
44103
|
-
}
|
|
44664
|
+
}, {
|
|
44104
44665
|
Header: t("CORE_COMMON_NAME"),
|
|
44105
44666
|
disableSortBy: true,
|
|
44106
44667
|
accessor: "owner"
|
|
@@ -44196,14 +44757,17 @@ const useInboxMobileCardsData$1 = _ref => {
|
|
|
44196
44757
|
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
44197
44758
|
className: "cell-text styled-cell"
|
|
44198
44759
|
}, value);
|
|
44199
|
-
const getApplicationNumberCell = (value, amendmentReason) => {
|
|
44760
|
+
const getApplicationNumberCell = (value, amendmentReason, tenantId, service) => {
|
|
44761
|
+
const serviceType = service !== null && service !== void 0 && service.includes("SW") ? "SEWERAGE" : "WATER";
|
|
44762
|
+
const fromScreen = serviceType === "WATER" ? "ES_COMMON_BILL_AMEND_WATER_INBOX_LABEL" : "ES_COMMON_BILL_AMEND_SEWERAGE_INBOX_LABEL";
|
|
44763
|
+
const linkUrl = `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${value}&tenantId=${tenantId}&service=${serviceType}&from=${fromScreen}`;
|
|
44200
44764
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
44201
44765
|
style: {
|
|
44202
44766
|
display: "flex",
|
|
44203
44767
|
flexDirection: "column"
|
|
44204
44768
|
}
|
|
44205
44769
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
44206
|
-
to:
|
|
44770
|
+
to: linkUrl
|
|
44207
44771
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
44208
44772
|
className: "link"
|
|
44209
44773
|
}, value)), GetCell(t(`BILLAMENDMENT_${amendmentReason}_HEADING`)));
|
|
@@ -44221,7 +44785,7 @@ const useInboxMobileCardsData$1 = _ref => {
|
|
|
44221
44785
|
} = _ref2;
|
|
44222
44786
|
return {
|
|
44223
44787
|
[t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`ACTION_TEST_${service}`),
|
|
44224
|
-
[t("WS_MYCONNECTIONS_APPLICATION_NO")]: getApplicationNumberCell(applicationNo, amendmentReason),
|
|
44788
|
+
[t("WS_MYCONNECTIONS_APPLICATION_NO")]: getApplicationNumberCell(applicationNo, amendmentReason, tenantId, service),
|
|
44225
44789
|
[t("CORE_COMMON_NAME")]: owner,
|
|
44226
44790
|
[t("WS_COMMON_TABLE_COL_ADDRESS")]: t(Digit.Utils.locale.getRevenueLocalityCode(address, tenantId)),
|
|
44227
44791
|
[t("WS_COMMON_TABLE_COL_APPLICATION_STATUS")]: t(status),
|
|
@@ -44639,13 +45203,15 @@ const SearchBillAmendment = () => {
|
|
|
44639
45203
|
Header: t("WS_ACK_COMMON_APP_NO_LABEL", "Application No"),
|
|
44640
45204
|
accessor: "amendmentId",
|
|
44641
45205
|
Cell: _ref => {
|
|
45206
|
+
var _row$original, _row$original$busines;
|
|
44642
45207
|
let {
|
|
44643
45208
|
row
|
|
44644
45209
|
} = _ref;
|
|
45210
|
+
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";
|
|
44645
45211
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
44646
45212
|
className: "link"
|
|
44647
45213
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
44648
|
-
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}`
|
|
45214
|
+
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}&tenantId=${tenantId}&service=${service}&from=WS_BILL_AMENDMENT_SEARCH_APPLICATION`
|
|
44649
45215
|
}, row.original.amendmentId));
|
|
44650
45216
|
}
|
|
44651
45217
|
}, {
|
|
@@ -44676,13 +45242,15 @@ const SearchBillAmendment = () => {
|
|
|
44676
45242
|
}, {
|
|
44677
45243
|
Header: t("WS_COMMON_TABLE_COL_ACTION", "Action"),
|
|
44678
45244
|
Cell: _ref3 => {
|
|
45245
|
+
var _row$original2, _row$original2$busine;
|
|
44679
45246
|
let {
|
|
44680
45247
|
row
|
|
44681
45248
|
} = _ref3;
|
|
45249
|
+
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";
|
|
44682
45250
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
44683
45251
|
className: "link"
|
|
44684
45252
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
44685
|
-
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}`
|
|
45253
|
+
to: `/digit-ui/employee/ws/generate-note-bill-amendment?applicationNumber=${row.original.amendmentId}&tenantId=${tenantId}&service=${service}&from=WS_BILL_AMENDMENT_SEARCH_APPLICATION`
|
|
44686
45254
|
}, t("ES_COMMON_VIEW", "View")));
|
|
44687
45255
|
}
|
|
44688
45256
|
}], [t, tenantId]);
|
|
@@ -44926,12 +45494,25 @@ const newConfig = [{
|
|
|
44926
45494
|
route: "rain-water-harvesting",
|
|
44927
45495
|
component: "WSRainWaterHarvesting",
|
|
44928
45496
|
key: "rainWaterHarvesting",
|
|
45497
|
+
nextStep: "sewer-treatment-plant",
|
|
45498
|
+
WATER: "sewer-treatment-plant",
|
|
45499
|
+
hideInEmployee: true,
|
|
45500
|
+
texts: {
|
|
45501
|
+
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
45502
|
+
header: "Rain Water Harvesting Certificate",
|
|
45503
|
+
cardText: "",
|
|
45504
|
+
submitBarLabel: "CS_COMMON_NEXT"
|
|
45505
|
+
}
|
|
45506
|
+
}, {
|
|
45507
|
+
route: "sewer-treatment-plant",
|
|
45508
|
+
component: "WSSewerTreatmentPlant",
|
|
45509
|
+
key: "sewerTreatmentPlant",
|
|
44929
45510
|
nextStep: "document-details",
|
|
44930
45511
|
WATER: "document-details",
|
|
44931
45512
|
hideInEmployee: true,
|
|
44932
45513
|
texts: {
|
|
44933
45514
|
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
44934
|
-
header: "
|
|
45515
|
+
header: "Sewer Treatment Plant (STP)",
|
|
44935
45516
|
cardText: "",
|
|
44936
45517
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
44937
45518
|
}
|
|
@@ -49800,7 +50381,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
|
|
|
49800
50381
|
};
|
|
49801
50382
|
|
|
49802
50383
|
const ConnectionDetails$5 = () => {
|
|
49803
|
-
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,
|
|
50384
|
+
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$applicationTy, _state3, _state6, _state9, _state0, _state1, _state10, _state11, _state11$applicationT, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state17, _state18, _state19, _state20, _state20$applicationT, _state21, _state21$waterSource, _state21$waterSource$, _state22, _state23, _state23$waterSource, _state23$waterSource$, _state24, _state25, _state26, _state27, _state27$additionalDe, _state28, _state28$applicationT, _state29, _state29$additionalDe, _state29$additionalDe2, _state30, _state30$additionalDe, _state30$additionalDe2, _state31, _state31$additionalDe, _state32, _state32$additionalDe, _state33, _state33$additionalDe, _state33$additionalDe2, _state34, _state34$additionalDe, _state35, _state36, _state37, _state37$property, _state37$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, _state38, _state38$additionalDe, _state38$additionalDe2, _state39, _state39$additionalDe, _state39$additionalDe2, _state40, _state40$additionalDe, _state41, _state41$additionalDe, _state42, _state42$additionalDe, _state43, _state43$additionalDe, _state43$additionalDe2, _state44, _state44$additionalDe, _state44$additionalDe2, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state50$additionalDe, _state51, _state51$additionalDe, _state52, _state53, _state54, _state55, _state55$connectionHo, _state55$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, _state56, _state57, _state60, _state60$status, _state61, _state61$applicationS, _state62, _paymentDetails$data17, _paymentDetails$data18;
|
|
49804
50385
|
const {
|
|
49805
50386
|
t
|
|
49806
50387
|
} = reactI18next.useTranslation();
|
|
@@ -49815,6 +50396,7 @@ const ConnectionDetails$5 = () => {
|
|
|
49815
50396
|
} = reactRouterDom.useLocation();
|
|
49816
50397
|
const [showModal, setshowModal] = React.useState(false);
|
|
49817
50398
|
const [showActionToast, setshowActionToast] = React.useState(null);
|
|
50399
|
+
const [activeAmendment, setActiveAmendment] = React.useState(null);
|
|
49818
50400
|
const mobileView = Digit.Utils.browser.isMobile();
|
|
49819
50401
|
const getAddress = address => {
|
|
49820
50402
|
var _address$locality, _address$locality2, _address$city;
|
|
@@ -49976,9 +50558,10 @@ const ConnectionDetails$5 = () => {
|
|
|
49976
50558
|
downloadOptions.sort(function (a, b) {
|
|
49977
50559
|
return a.order - b.order;
|
|
49978
50560
|
});
|
|
49979
|
-
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");
|
|
50561
|
+
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"));
|
|
50562
|
+
const serviceType = (_state2 = state) !== null && _state2 !== void 0 && (_state2$applicationTy = _state2.applicationType) !== null && _state2$applicationTy !== void 0 && _state2$applicationTy.includes("WATER") || applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? "WATER" : "SEWERAGE";
|
|
49980
50563
|
const fetchBillParams = {
|
|
49981
|
-
consumerCode: (
|
|
50564
|
+
consumerCode: (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.connectionNo
|
|
49982
50565
|
};
|
|
49983
50566
|
const paymentDetails = Digit.Hooks.useFetchBillsForBuissnessService({
|
|
49984
50567
|
businessService: isSW ? "SW" : "WS",
|
|
@@ -50054,11 +50637,45 @@ const ConnectionDetails$5 = () => {
|
|
|
50054
50637
|
}
|
|
50055
50638
|
}
|
|
50056
50639
|
};
|
|
50640
|
+
React.useEffect(() => {
|
|
50641
|
+
let isMounted = true;
|
|
50642
|
+
const checkActiveAmendment = function () {
|
|
50643
|
+
try {
|
|
50644
|
+
var _state4, _state5;
|
|
50645
|
+
const connNo = (_state4 = state) === null || _state4 === void 0 ? void 0 : _state4.connectionNo;
|
|
50646
|
+
if (!connNo) return Promise.resolve();
|
|
50647
|
+
const finalTenantId = tenantId || ((_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.tenantId) || "dl.djb";
|
|
50648
|
+
const finalServiceType = serviceType || (connNo !== null && connNo !== void 0 && connNo.includes("SW") ? "SEWERAGE" : "WATER");
|
|
50649
|
+
const businessService = finalServiceType === "WATER" ? "WS" : "SW";
|
|
50650
|
+
const _temp3 = _catch(function () {
|
|
50651
|
+
return Promise.resolve(Digit.PaymentService.searchAmendment(finalTenantId, {
|
|
50652
|
+
consumerCode: connNo,
|
|
50653
|
+
businessService
|
|
50654
|
+
})).then(function (res) {
|
|
50655
|
+
var _res$Amendments;
|
|
50656
|
+
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");
|
|
50657
|
+
if (isMounted && inWorkflow) {
|
|
50658
|
+
setActiveAmendment(inWorkflow);
|
|
50659
|
+
}
|
|
50660
|
+
});
|
|
50661
|
+
}, function (e) {
|
|
50662
|
+
console.warn("Could not check active amendment in connection details", e);
|
|
50663
|
+
});
|
|
50664
|
+
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
50665
|
+
} catch (e) {
|
|
50666
|
+
return Promise.reject(e);
|
|
50667
|
+
}
|
|
50668
|
+
};
|
|
50669
|
+
checkActiveAmendment();
|
|
50670
|
+
return () => {
|
|
50671
|
+
isMounted = false;
|
|
50672
|
+
};
|
|
50673
|
+
}, [(_state6 = state) === null || _state6 === void 0 ? void 0 : _state6.connectionNo, applicationNobyData, serviceType, tenantId]);
|
|
50057
50674
|
const getBillAmendmentButton = function () {
|
|
50058
50675
|
try {
|
|
50059
|
-
var
|
|
50676
|
+
var _state7, _state8;
|
|
50060
50677
|
let _exit = false;
|
|
50061
|
-
function
|
|
50678
|
+
function _temp5(_result) {
|
|
50062
50679
|
if (_exit) return _result;
|
|
50063
50680
|
history.push(`/digit-ui/citizen/ws/bill-amendment?connectionNumber=${connNo}&tenantId=${finalTenantId}&service=${finalServiceType}`, JSON.stringify({
|
|
50064
50681
|
data: {
|
|
@@ -50067,32 +50684,26 @@ const ConnectionDetails$5 = () => {
|
|
|
50067
50684
|
}
|
|
50068
50685
|
}));
|
|
50069
50686
|
}
|
|
50070
|
-
const connNo = ((
|
|
50071
|
-
const finalTenantId = tenantId || ((
|
|
50687
|
+
const connNo = ((_state7 = state) === null || _state7 === void 0 ? void 0 : _state7.connectionNo) || applicationNobyData;
|
|
50688
|
+
const finalTenantId = tenantId || ((_state8 = state) === null || _state8 === void 0 ? void 0 : _state8.tenantId) || "dl.djb";
|
|
50072
50689
|
const finalServiceType = serviceType || (connNo !== null && connNo !== void 0 && connNo.includes("SW") ? "SEWERAGE" : "WATER");
|
|
50073
50690
|
const businessService = finalServiceType === "WATER" ? "WS" : "SW";
|
|
50074
|
-
const
|
|
50691
|
+
const _temp4 = _catch(function () {
|
|
50075
50692
|
return Promise.resolve(Digit.PaymentService.searchAmendment(finalTenantId, {
|
|
50076
50693
|
consumerCode: connNo,
|
|
50077
50694
|
businessService
|
|
50078
50695
|
})).then(function (res) {
|
|
50079
|
-
var _res$
|
|
50080
|
-
const inWorkflow = res === null || res === void 0 ? void 0 : (_res$
|
|
50696
|
+
var _res$Amendments2;
|
|
50697
|
+
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");
|
|
50081
50698
|
if (inWorkflow) {
|
|
50082
|
-
|
|
50083
|
-
key: "error",
|
|
50084
|
-
label: "WORKFLOW_IN_PROGRESS"
|
|
50085
|
-
});
|
|
50086
|
-
setTimeout(() => {
|
|
50087
|
-
closeBillToast();
|
|
50088
|
-
}, 5000);
|
|
50699
|
+
history.push(`/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${inWorkflow.amendmentId}`);
|
|
50089
50700
|
_exit = true;
|
|
50090
50701
|
}
|
|
50091
50702
|
});
|
|
50092
50703
|
}, function (e) {
|
|
50093
50704
|
console.error("Error searching amendment", e);
|
|
50094
50705
|
});
|
|
50095
|
-
return Promise.resolve(
|
|
50706
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4));
|
|
50096
50707
|
} catch (e) {
|
|
50097
50708
|
return Promise.reject(e);
|
|
50098
50709
|
}
|
|
@@ -50130,8 +50741,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50130
50741
|
if (isLoading || isPTLoading) {
|
|
50131
50742
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
50132
50743
|
}
|
|
50133
|
-
sessionStorage.setItem("ApplicationNoState", (
|
|
50134
|
-
let serviceType = (_state6 = state) !== null && _state6 !== void 0 && (_state6$applicationTy = _state6.applicationType) !== null && _state6$applicationTy !== void 0 && _state6$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
50744
|
+
sessionStorage.setItem("ApplicationNoState", (_state9 = state) === null || _state9 === void 0 ? void 0 : _state9.applicationNo);
|
|
50135
50745
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
50136
50746
|
t: t
|
|
50137
50747
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -50152,21 +50762,64 @@ const ConnectionDetails$5 = () => {
|
|
|
50152
50762
|
options: downloadOptions,
|
|
50153
50763
|
downloadBtnClassName: "employee-download-btn-className",
|
|
50154
50764
|
optionsClassName: "employee-options-btn-className"
|
|
50155
|
-
}))),
|
|
50765
|
+
}))), activeAmendment && /*#__PURE__*/React__default.createElement("div", {
|
|
50766
|
+
style: {
|
|
50767
|
+
padding: "14px 16px",
|
|
50768
|
+
backgroundColor: "#EFF6FF",
|
|
50769
|
+
border: "1px solid #BFDBFE",
|
|
50770
|
+
borderRadius: "8px",
|
|
50771
|
+
marginBottom: "20px"
|
|
50772
|
+
}
|
|
50773
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
50774
|
+
style: {
|
|
50775
|
+
display: "flex",
|
|
50776
|
+
justifyContent: "space-between",
|
|
50777
|
+
alignItems: "center",
|
|
50778
|
+
flexWrap: "wrap",
|
|
50779
|
+
gap: "10px"
|
|
50780
|
+
}
|
|
50781
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
50782
|
+
style: {
|
|
50783
|
+
fontWeight: "700",
|
|
50784
|
+
color: "#1E40AF",
|
|
50785
|
+
fontSize: "16px"
|
|
50786
|
+
}
|
|
50787
|
+
}, t("WS_ACTIVE_BILL_AMENDMENT_LABEL", "Active Bill Correction / Amendment Request")), /*#__PURE__*/React__default.createElement("div", {
|
|
50788
|
+
style: {
|
|
50789
|
+
color: "#1E3A8A",
|
|
50790
|
+
fontSize: "14px",
|
|
50791
|
+
marginTop: "4px"
|
|
50792
|
+
}
|
|
50793
|
+
}, t("WS_APPLICATION_NO_LABEL", "Application No:"), " ", /*#__PURE__*/React__default.createElement("strong", null, activeAmendment.amendmentId), " | ", t("WS_STATUS_LABEL", "Status:"), " ", /*#__PURE__*/React__default.createElement("span", {
|
|
50794
|
+
style: {
|
|
50795
|
+
fontWeight: "600",
|
|
50796
|
+
color: "#B45309"
|
|
50797
|
+
}
|
|
50798
|
+
}, t(`CS_${activeAmendment.status}`, activeAmendment.status)))), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
50799
|
+
to: `/digit-ui/citizen/ws/bill-amendment/application-details?applicationNumber=${activeAmendment.amendmentId}`
|
|
50800
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
50801
|
+
className: "selector-button-border",
|
|
50802
|
+
style: {
|
|
50803
|
+
height: "36px",
|
|
50804
|
+
padding: "0 16px",
|
|
50805
|
+
margin: 0,
|
|
50806
|
+
cursor: "pointer"
|
|
50807
|
+
}
|
|
50808
|
+
}, t("WS_TRACK_OR_RESUBMIT_LABEL", "View Details & Track / Re-Submit"))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50156
50809
|
className: "border-none",
|
|
50157
50810
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
50158
|
-
text: (
|
|
50811
|
+
text: (_state0 = state) === null || _state0 === void 0 ? void 0 : _state0.connectionNo
|
|
50159
50812
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50160
50813
|
className: "border-none",
|
|
50161
50814
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
50162
|
-
text: t(`WS_APPLICATION_TYPE_${(
|
|
50815
|
+
text: t(`WS_APPLICATION_TYPE_${(_state1 = state) === null || _state1 === void 0 ? void 0 : _state1.applicationType}`),
|
|
50163
50816
|
textStyle: {
|
|
50164
50817
|
wordBreak: "break-word"
|
|
50165
50818
|
}
|
|
50166
50819
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50167
50820
|
className: "border-none",
|
|
50168
50821
|
label: t("WS_STATUS"),
|
|
50169
|
-
text: ((
|
|
50822
|
+
text: ((_state10 = state) === null || _state10 === void 0 ? void 0 : _state10.status) || "NA",
|
|
50170
50823
|
textStyle: {
|
|
50171
50824
|
whiteSpace: "pre"
|
|
50172
50825
|
}
|
|
@@ -50174,127 +50827,127 @@ const ConnectionDetails$5 = () => {
|
|
|
50174
50827
|
styles: {
|
|
50175
50828
|
fontSize: "28px"
|
|
50176
50829
|
}
|
|
50177
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, ((
|
|
50830
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, ((_state11 = state) === null || _state11 === void 0 ? void 0 : (_state11$applicationT = _state11.applicationType) === null || _state11$applicationT === void 0 ? void 0 : _state11$applicationT.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50178
50831
|
className: "border-none",
|
|
50179
50832
|
label: t("WS_COMMON_TABLE_COL_CONNECTIONTYPE_LABEL"),
|
|
50180
|
-
text: ((
|
|
50833
|
+
text: ((_state12 = state) === null || _state12 === void 0 ? void 0 : _state12.connectionType) || t("NA"),
|
|
50181
50834
|
textStyle: {
|
|
50182
50835
|
whiteSpace: "pre"
|
|
50183
50836
|
}
|
|
50184
50837
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50185
50838
|
className: "border-none",
|
|
50186
50839
|
label: t("WS_SERV_DETAIL_NO_OF_TAPS"),
|
|
50187
|
-
text: (
|
|
50840
|
+
text: (_state13 = state) === null || _state13 === void 0 ? void 0 : _state13.noOfTaps,
|
|
50188
50841
|
textStyle: {
|
|
50189
50842
|
whiteSpace: "pre"
|
|
50190
50843
|
}
|
|
50191
50844
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50192
50845
|
className: "border-none",
|
|
50193
50846
|
label: t("WS_PIPE_SIZE_IN_INCHES_LABEL"),
|
|
50194
|
-
text: ((
|
|
50847
|
+
text: ((_state14 = state) === null || _state14 === void 0 ? void 0 : _state14.pipeSize) || "NA",
|
|
50195
50848
|
textStyle: {
|
|
50196
50849
|
whiteSpace: "pre"
|
|
50197
50850
|
}
|
|
50198
|
-
})), ((
|
|
50851
|
+
})), ((_state15 = state) === null || _state15 === void 0 ? void 0 : (_state15$applicationT = _state15.applicationType) === null || _state15$applicationT === void 0 ? void 0 : _state15$applicationT.includes("SEWERAGE")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50199
50852
|
className: "border-none",
|
|
50200
50853
|
label: t("WS_CONN_DETAIL_WATER_CLOSETS"),
|
|
50201
|
-
text: (
|
|
50854
|
+
text: (_state16 = state) === null || _state16 === void 0 ? void 0 : _state16.proposedWaterClosets,
|
|
50202
50855
|
textStyle: {
|
|
50203
50856
|
whiteSpace: "pre"
|
|
50204
50857
|
}
|
|
50205
50858
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50206
50859
|
className: "border-none",
|
|
50207
50860
|
label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
|
|
50208
|
-
text: ((
|
|
50861
|
+
text: ((_state17 = state) === null || _state17 === void 0 ? void 0 : _state17.proposedToilets) || t("CS_NA"),
|
|
50209
50862
|
textStyle: {
|
|
50210
50863
|
whiteSpace: "pre"
|
|
50211
50864
|
}
|
|
50212
50865
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50213
50866
|
className: "border-none",
|
|
50214
50867
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
50215
|
-
text: (
|
|
50868
|
+
text: (_state18 = state) !== null && _state18 !== void 0 && _state18.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate((_state19 = state) === null || _state19 === void 0 ? void 0 : _state19.connectionExecutionDate) : t("CS_NA"),
|
|
50216
50869
|
textStyle: {
|
|
50217
50870
|
whiteSpace: "pre"
|
|
50218
50871
|
}
|
|
50219
|
-
})), ((
|
|
50872
|
+
})), ((_state20 = state) === null || _state20 === void 0 ? void 0 : (_state20$applicationT = _state20.applicationType) === null || _state20$applicationT === void 0 ? void 0 : _state20$applicationT.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50220
50873
|
className: "border-none",
|
|
50221
50874
|
label: t("WS_SERV_DETAIL_WATER_SOURCE"),
|
|
50222
|
-
text: t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((
|
|
50875
|
+
text: t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((_state21 = state) === null || _state21 === void 0 ? void 0 : (_state21$waterSource = _state21.waterSource) === null || _state21$waterSource === void 0 ? void 0 : (_state21$waterSource$ = _state21$waterSource.split(".")) === null || _state21$waterSource$ === void 0 ? void 0 : _state21$waterSource$[0], ".", "_")}`) || t(`WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((_state22 = state) === null || _state22 === void 0 ? void 0 : _state22.waterSource, ".", "_")}`) || t("CS_NA"),
|
|
50223
50876
|
textStyle: {
|
|
50224
50877
|
whiteSpace: "pre"
|
|
50225
50878
|
}
|
|
50226
50879
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50227
50880
|
className: "border-none",
|
|
50228
50881
|
label: t("WS_SERV_DETAIL_WATER_SUB_SOURCE"),
|
|
50229
|
-
text: t((
|
|
50882
|
+
text: t((_state23 = state) === null || _state23 === void 0 ? void 0 : (_state23$waterSource = _state23.waterSource) === null || _state23$waterSource === void 0 ? void 0 : (_state23$waterSource$ = _state23$waterSource.split(".")) === null || _state23$waterSource$ === void 0 ? void 0 : _state23$waterSource$[1]) || t("CS_NA"),
|
|
50230
50883
|
textStyle: {
|
|
50231
50884
|
whiteSpace: "pre"
|
|
50232
50885
|
}
|
|
50233
50886
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50234
50887
|
className: "border-none",
|
|
50235
50888
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
50236
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
50889
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state24 = state) === null || _state24 === void 0 ? void 0 : _state24.connectionExecutionDate) || t("NA"),
|
|
50237
50890
|
textStyle: {
|
|
50238
50891
|
whiteSpace: "pre"
|
|
50239
50892
|
}
|
|
50240
50893
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50241
50894
|
className: "border-none",
|
|
50242
50895
|
label: t("WS_SERV_DETAIL_METER_ID"),
|
|
50243
|
-
text: (
|
|
50896
|
+
text: (_state25 = state) === null || _state25 === void 0 ? void 0 : _state25.meterId,
|
|
50244
50897
|
textStyle: {
|
|
50245
50898
|
whiteSpace: "pre"
|
|
50246
50899
|
}
|
|
50247
50900
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50248
50901
|
className: "border-none",
|
|
50249
50902
|
label: t("WS_ADDN_DETAIL_METER_INSTALL_DATE"),
|
|
50250
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
50903
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state26 = state) === null || _state26 === void 0 ? void 0 : _state26.meterInstallationDate) || "NA",
|
|
50251
50904
|
textStyle: {
|
|
50252
50905
|
whiteSpace: "pre"
|
|
50253
50906
|
}
|
|
50254
50907
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50255
50908
|
className: "border-none",
|
|
50256
50909
|
label: t("WS_ADDN_DETAILS_INITIAL_METER_READING"),
|
|
50257
|
-
text: ((
|
|
50910
|
+
text: ((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$additionalDe = _state27.additionalDetails) === null || _state27$additionalDe === void 0 ? void 0 : _state27$additionalDe.initialMeterReading) || "NA",
|
|
50258
50911
|
textStyle: {
|
|
50259
50912
|
whiteSpace: "pre"
|
|
50260
50913
|
}
|
|
50261
|
-
})), ((
|
|
50914
|
+
})), ((_state28 = state) === null || _state28 === void 0 ? void 0 : (_state28$applicationT = _state28.applicationType) === null || _state28$applicationT === void 0 ? void 0 : _state28$applicationT.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50262
50915
|
className: "border-none",
|
|
50263
50916
|
label: t("WS_WATER_DEMAND_TYPE"),
|
|
50264
|
-
text: (
|
|
50917
|
+
text: (_state29 = state) !== null && _state29 !== void 0 && (_state29$additionalDe = _state29.additionalDetails) !== null && _state29$additionalDe !== void 0 && (_state29$additionalDe2 = _state29$additionalDe.waterDemandType) !== null && _state29$additionalDe2 !== void 0 && _state29$additionalDe2.i18nKey ? t((_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$additionalDe = _state30.additionalDetails) === null || _state30$additionalDe === void 0 ? void 0 : (_state30$additionalDe2 = _state30$additionalDe.waterDemandType) === null || _state30$additionalDe2 === void 0 ? void 0 : _state30$additionalDe2.i18nKey) : "NA",
|
|
50265
50918
|
textStyle: {
|
|
50266
50919
|
whiteSpace: "pre"
|
|
50267
50920
|
}
|
|
50268
50921
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50269
50922
|
className: "border-none",
|
|
50270
50923
|
label: t("WS_CATEGORY_TYPE"),
|
|
50271
|
-
text: ((
|
|
50924
|
+
text: ((_state31 = state) === null || _state31 === void 0 ? void 0 : (_state31$additionalDe = _state31.additionalDetails) === null || _state31$additionalDe === void 0 ? void 0 : _state31$additionalDe.categoryType) || "NA",
|
|
50272
50925
|
textStyle: {
|
|
50273
50926
|
whiteSpace: "pre"
|
|
50274
50927
|
}
|
|
50275
50928
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50276
50929
|
className: "border-none",
|
|
50277
50930
|
label: t("WS_ZRO_NAME"),
|
|
50278
|
-
text: ((
|
|
50931
|
+
text: ((_state32 = state) === null || _state32 === void 0 ? void 0 : (_state32$additionalDe = _state32.additionalDetails) === null || _state32$additionalDe === void 0 ? void 0 : _state32$additionalDe.zro) || "NA",
|
|
50279
50932
|
textStyle: {
|
|
50280
50933
|
whiteSpace: "pre"
|
|
50281
50934
|
}
|
|
50282
50935
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50283
50936
|
className: "border-none",
|
|
50284
50937
|
label: t("WS_CONNECTION_USAGE_TYPE"),
|
|
50285
|
-
text: ((
|
|
50938
|
+
text: ((_state33 = state) === null || _state33 === void 0 ? void 0 : (_state33$additionalDe = _state33.additionalDetails) === null || _state33$additionalDe === void 0 ? void 0 : (_state33$additionalDe2 = _state33$additionalDe.WaterConnectionUsageType) === null || _state33$additionalDe2 === void 0 ? void 0 : _state33$additionalDe2.name) || "NA",
|
|
50286
50939
|
textStyle: {
|
|
50287
50940
|
whiteSpace: "pre"
|
|
50288
50941
|
}
|
|
50289
50942
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50290
50943
|
className: "border-none",
|
|
50291
50944
|
label: t("WS_TEMPORARY_CONNECTION"),
|
|
50292
|
-
text: ((
|
|
50945
|
+
text: ((_state34 = state) === null || _state34 === void 0 ? void 0 : (_state34$additionalDe = _state34.additionalDetails) === null || _state34$additionalDe === void 0 ? void 0 : _state34$additionalDe.temporaryConnection) || "NA",
|
|
50293
50946
|
textStyle: {
|
|
50294
50947
|
whiteSpace: "pre"
|
|
50295
50948
|
}
|
|
50296
|
-
})), ((
|
|
50297
|
-
to: `/digit-ui/citizen/ws/consumption/details?applicationNo=${(
|
|
50949
|
+
})), ((_state35 = state) === null || _state35 === void 0 ? void 0 : _state35.connectionType) === "Metered" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
50950
|
+
to: `/digit-ui/citizen/ws/consumption/details?applicationNo=${(_state36 = state) === null || _state36 === void 0 ? void 0 : _state36.connectionNo}`
|
|
50298
50951
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
50299
50952
|
style: {
|
|
50300
50953
|
textAlign: "left",
|
|
@@ -50309,7 +50962,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50309
50962
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50310
50963
|
className: "border-none",
|
|
50311
50964
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
50312
|
-
text: (
|
|
50965
|
+
text: (_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$property = _state37.property) === null || _state37$property === void 0 ? void 0 : (_state37$property$own = _state37$property.owners) === null || _state37$property$own === void 0 ? void 0 : _state37$property$own.map(owner => owner.name).join(","),
|
|
50313
50966
|
textStyle: {
|
|
50314
50967
|
whiteSpace: "pre"
|
|
50315
50968
|
}
|
|
@@ -50344,32 +50997,32 @@ const ConnectionDetails$5 = () => {
|
|
|
50344
50997
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50345
50998
|
className: "border-none",
|
|
50346
50999
|
label: t("WS_PROPERTY_TYPE"),
|
|
50347
|
-
text: ((
|
|
51000
|
+
text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : (_state38$additionalDe2 = _state38$additionalDe.propertyType) === null || _state38$additionalDe2 === void 0 ? void 0 : _state38$additionalDe2.name) || "NA"
|
|
50348
51001
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50349
51002
|
className: "border-none",
|
|
50350
51003
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
50351
|
-
text: ((
|
|
51004
|
+
text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : (_state39$additionalDe2 = _state39$additionalDe.propertyCategory) === null || _state39$additionalDe2 === void 0 ? void 0 : _state39$additionalDe2.name) || "NA"
|
|
50352
51005
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50353
51006
|
className: "border-none",
|
|
50354
51007
|
label: t("WS_PLOT_AREA"),
|
|
50355
|
-
text: ((
|
|
51008
|
+
text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.plotArea) || "NA"
|
|
50356
51009
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50357
51010
|
className: "border-none",
|
|
50358
51011
|
label: t("WS_BUILT_UP_AREA"),
|
|
50359
|
-
text: ((
|
|
51012
|
+
text: ((_state41 = state) === null || _state41 === void 0 ? void 0 : (_state41$additionalDe = _state41.additionalDetails) === null || _state41$additionalDe === void 0 ? void 0 : _state41$additionalDe.builtUpArea) || "NA"
|
|
50360
51013
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50361
51014
|
className: "border-none",
|
|
50362
51015
|
label: t("WS_NO_OF_FLOORS"),
|
|
50363
|
-
text: ((
|
|
50364
|
-
}), String(((
|
|
51016
|
+
text: ((_state42 = state) === null || _state42 === void 0 ? void 0 : (_state42$additionalDe = _state42.additionalDetails) === null || _state42$additionalDe === void 0 ? void 0 : _state42$additionalDe.noOfFloors) || "NA"
|
|
51017
|
+
}), String(((_state43 = state) === null || _state43 === void 0 ? void 0 : (_state43$additionalDe = _state43.additionalDetails) === null || _state43$additionalDe === void 0 ? void 0 : (_state43$additionalDe2 = _state43$additionalDe.propertyCategory) === null || _state43$additionalDe2 === void 0 ? void 0 : _state43$additionalDe2.code) || ((_state44 = state) === null || _state44 === void 0 ? void 0 : (_state44$additionalDe = _state44.additionalDetails) === null || _state44$additionalDe === void 0 ? void 0 : (_state44$additionalDe2 = _state44$additionalDe.propertyCategory) === null || _state44$additionalDe2 === void 0 ? void 0 : _state44$additionalDe2.name) || ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.propertyCategory) || "").toUpperCase().includes("RESIDENTIAL") && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50365
51018
|
className: "border-none",
|
|
50366
51019
|
label: t("WS_NO_OF_DWELLING_UNITS"),
|
|
50367
|
-
text: ((
|
|
51020
|
+
text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.NumberofDwellingUnits) || "NA"
|
|
50368
51021
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50369
51022
|
className: "border-none",
|
|
50370
51023
|
label: t("WS_LOCALITY"),
|
|
50371
|
-
text: ((
|
|
50372
|
-
}), (Array.isArray(((
|
|
51024
|
+
text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.locality) || "NA"
|
|
51025
|
+
}), (Array.isArray(((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.questions) || ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.questionAnswers)) ? ((_state50 = state) === null || _state50 === void 0 ? void 0 : (_state50$additionalDe = _state50.additionalDetails) === null || _state50$additionalDe === void 0 ? void 0 : _state50$additionalDe.questions) || ((_state51 = state) === null || _state51 === void 0 ? void 0 : (_state51$additionalDe = _state51.additionalDetails) === null || _state51$additionalDe === void 0 ? void 0 : _state51$additionalDe.questionAnswers) : []).map((q, idx) => {
|
|
50373
51026
|
var _q$answer, _q$answer2, _q$answer3;
|
|
50374
51027
|
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}`;
|
|
50375
51028
|
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;
|
|
@@ -50382,7 +51035,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50382
51035
|
text: `${t(checkForNA(aText))}`
|
|
50383
51036
|
});
|
|
50384
51037
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
50385
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(
|
|
51038
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.propertyId}&tenantId=${(_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.tenantId}`
|
|
50386
51039
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
50387
51040
|
style: {
|
|
50388
51041
|
textAlign: "left",
|
|
@@ -50394,10 +51047,10 @@ const ConnectionDetails$5 = () => {
|
|
|
50394
51047
|
styles: {
|
|
50395
51048
|
fontSize: "28px"
|
|
50396
51049
|
}
|
|
50397
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
51050
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state54 = state) !== null && _state54 !== void 0 && _state54.connectionHolders ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50398
51051
|
className: "border-none",
|
|
50399
51052
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
50400
|
-
text: (
|
|
51053
|
+
text: (_state55 = state) === null || _state55 === void 0 ? void 0 : (_state55$connectionHo = _state55.connectionHolders) === null || _state55$connectionHo === void 0 ? void 0 : (_state55$connectionHo2 = _state55$connectionHo[0]) === null || _state55$connectionHo2 === void 0 ? void 0 : _state55$connectionHo2.name,
|
|
50401
51054
|
textStyle: {
|
|
50402
51055
|
whiteSpace: "pre"
|
|
50403
51056
|
}
|
|
@@ -50516,15 +51169,15 @@ const ConnectionDetails$5 = () => {
|
|
|
50516
51169
|
isArray: false
|
|
50517
51170
|
}
|
|
50518
51171
|
}
|
|
50519
|
-
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((
|
|
50520
|
-
var _doc$documentType,
|
|
51172
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.documents) && ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.documents.map((doc, index) => {
|
|
51173
|
+
var _doc$documentType, _state58, _state59;
|
|
50521
51174
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
50522
51175
|
key: `doc-${index}`
|
|
50523
51176
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.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__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
50524
|
-
value: (
|
|
51177
|
+
value: (_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.documents,
|
|
50525
51178
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
50526
51179
|
index: index
|
|
50527
|
-
}), ((
|
|
51180
|
+
}), ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
50528
51181
|
style: {
|
|
50529
51182
|
color: "#cccccc",
|
|
50530
51183
|
backgroundColor: "#cccccc",
|
|
@@ -50533,7 +51186,7 @@ const ConnectionDetails$5 = () => {
|
|
|
50533
51186
|
marginBottom: "20px"
|
|
50534
51187
|
}
|
|
50535
51188
|
}) : null)));
|
|
50536
|
-
})), ((
|
|
51189
|
+
})), ((_state60 = state) === null || _state60 === void 0 ? void 0 : (_state60$status = _state60.status) === null || _state60$status === void 0 ? void 0 : _state60$status.toLowerCase()) === "inactive" || ((_state61 = state) === null || _state61 === void 0 ? void 0 : (_state61$applicationS = _state61.applicationStatus) === null || _state61$applicationS === void 0 ? void 0 : _state61$applicationS.toLowerCase()) === "inactive" || ((_state62 = state) === null || _state62 === void 0 ? void 0 : _state62.applicationStatus) === "DISCONNECTION_EXECUTED" || isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
|
|
50537
51190
|
style: {
|
|
50538
51191
|
display: "flex",
|
|
50539
51192
|
justifyContent: "flex-end",
|
|
@@ -50570,8 +51223,8 @@ const ConnectionDetails$5 = () => {
|
|
|
50570
51223
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
50571
51224
|
hideSubmit: true,
|
|
50572
51225
|
actionSingleSubmit: () => {
|
|
50573
|
-
var
|
|
50574
|
-
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((
|
|
51226
|
+
var _state63, _state64;
|
|
51227
|
+
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state63 = state) === null || _state63 === void 0 ? void 0 : _state63.connectionNo)}/${tenantId}?consumerCode=${(_state64 = state) === null || _state64 === void 0 ? void 0 : _state64.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
|
|
50575
51228
|
setshowModal(false);
|
|
50576
51229
|
},
|
|
50577
51230
|
popupStyles: mobileView ? {
|
|
@@ -58340,10 +58993,31 @@ const NewApplication = () => {
|
|
|
58340
58993
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
58341
58994
|
control: control,
|
|
58342
58995
|
name: "rainWaterHarvesting.hasCertificate",
|
|
58343
|
-
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
58344
|
-
|
|
58345
|
-
|
|
58346
|
-
|
|
58996
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
|
|
58997
|
+
className: "form-field",
|
|
58998
|
+
style: {
|
|
58999
|
+
display: "flex",
|
|
59000
|
+
gap: "2rem",
|
|
59001
|
+
alignItems: "center"
|
|
59002
|
+
},
|
|
59003
|
+
name: "rainWaterHarvestingRadio",
|
|
59004
|
+
options: [{
|
|
59005
|
+
i18nKey: "CORE_COMMON_YES",
|
|
59006
|
+
code: true
|
|
59007
|
+
}, {
|
|
59008
|
+
i18nKey: "CORE_COMMON_NO",
|
|
59009
|
+
code: false
|
|
59010
|
+
}],
|
|
59011
|
+
optionsKey: "i18nKey",
|
|
59012
|
+
selectedOption: props.value ? {
|
|
59013
|
+
i18nKey: "CORE_COMMON_YES",
|
|
59014
|
+
code: true
|
|
59015
|
+
} : {
|
|
59016
|
+
i18nKey: "CORE_COMMON_NO",
|
|
59017
|
+
code: false
|
|
59018
|
+
},
|
|
59019
|
+
onSelect: e => props.onChange(e.code),
|
|
59020
|
+
t: t
|
|
58347
59021
|
})
|
|
58348
59022
|
}))), /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
58349
59023
|
description: t("WS_PROPERTY_ADDRESS_DESC"),
|
|
@@ -59364,118 +60038,6 @@ const NewApplication = () => {
|
|
|
59364
60038
|
}));
|
|
59365
60039
|
};
|
|
59366
60040
|
|
|
59367
|
-
const CheckIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
59368
|
-
width: "14",
|
|
59369
|
-
height: "14",
|
|
59370
|
-
viewBox: "0 0 24 24",
|
|
59371
|
-
fill: "none",
|
|
59372
|
-
stroke: "currentColor",
|
|
59373
|
-
strokeWidth: "3",
|
|
59374
|
-
strokeLinecap: "round",
|
|
59375
|
-
strokeLinejoin: "round"
|
|
59376
|
-
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
59377
|
-
points: "20 6 9 17 4 12"
|
|
59378
|
-
}));
|
|
59379
|
-
const ClockIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
59380
|
-
width: "14",
|
|
59381
|
-
height: "14",
|
|
59382
|
-
viewBox: "0 0 24 24",
|
|
59383
|
-
fill: "none",
|
|
59384
|
-
stroke: "currentColor",
|
|
59385
|
-
strokeWidth: "2",
|
|
59386
|
-
strokeLinecap: "round",
|
|
59387
|
-
strokeLinejoin: "round"
|
|
59388
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
59389
|
-
cx: "12",
|
|
59390
|
-
cy: "12",
|
|
59391
|
-
r: "10"
|
|
59392
|
-
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
59393
|
-
className: "clock-hands2",
|
|
59394
|
-
points: "12 6 12 12 16 14"
|
|
59395
|
-
}));
|
|
59396
|
-
const WorkflowTimeline = _ref => {
|
|
59397
|
-
var _workflowDetails$data;
|
|
59398
|
-
let {
|
|
59399
|
-
workflowDetails,
|
|
59400
|
-
hideTimeline,
|
|
59401
|
-
setHideTimeline
|
|
59402
|
-
} = _ref;
|
|
59403
|
-
const {
|
|
59404
|
-
t
|
|
59405
|
-
} = reactI18next.useTranslation();
|
|
59406
|
-
const timeline = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances;
|
|
59407
|
-
if (!timeline || timeline.length === 0) {
|
|
59408
|
-
return null;
|
|
59409
|
-
}
|
|
59410
|
-
const getStatusClass = (index, checkpoint) => {
|
|
59411
|
-
var _checkpoint$state, _checkpoint$state2, _checkpoint$state3, _checkpoint$state4;
|
|
59412
|
-
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);
|
|
59413
|
-
if (index === 0 && !isTerminal) return "current2";
|
|
59414
|
-
return "completed2";
|
|
59415
|
-
};
|
|
59416
|
-
const convertEpochToDateTime = epoch => {
|
|
59417
|
-
if (!epoch) return "N/A";
|
|
59418
|
-
const date = new Date(epoch);
|
|
59419
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
59420
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
59421
|
-
const year = date.getFullYear().toString().slice(-2);
|
|
59422
|
-
const hours = String(date.getHours()).padStart(2, "0");
|
|
59423
|
-
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
59424
|
-
return `${day}/${month}/${year} ${hours}:${minutes}`;
|
|
59425
|
-
};
|
|
59426
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
59427
|
-
className: "workflow-timeline-card2 digit-form-composer",
|
|
59428
|
-
style: {
|
|
59429
|
-
background: "#fff",
|
|
59430
|
-
padding: "16px",
|
|
59431
|
-
height: hideTimeline ? "100%" : ""
|
|
59432
|
-
}
|
|
59433
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59434
|
-
className: `timeline-header-wrapper ${hideTimeline ? "collapsed" : ""}`
|
|
59435
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
59436
|
-
style: {
|
|
59437
|
-
marginBottom: "0",
|
|
59438
|
-
fontSize: "16px",
|
|
59439
|
-
fontWeight: "700",
|
|
59440
|
-
color: "#374151"
|
|
59441
|
-
},
|
|
59442
|
-
className: hideTimeline ? "hidden-content" : ""
|
|
59443
|
-
}, t("WORKFLOW_TIMELINE"))), /*#__PURE__*/React__default.createElement("div", {
|
|
59444
|
-
className: hideTimeline ? "hidden-content" : "timeline-container2"
|
|
59445
|
-
}, timeline.map((checkpoint, index) => {
|
|
59446
|
-
var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$state5, _checkpoint$state6, _checkpoint$state7, _checkpoint$assigner, _checkpoint$assigner2;
|
|
59447
|
-
const statusClass = getStatusClass(index, checkpoint);
|
|
59448
|
-
const showLine = index !== timeline.length - 1 && timeline.length > 1;
|
|
59449
|
-
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);
|
|
59450
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
59451
|
-
key: index,
|
|
59452
|
-
className: `timeline-item2 ${statusClass}`
|
|
59453
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59454
|
-
className: "timeline-marker2"
|
|
59455
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59456
|
-
className: "timeline-circle2"
|
|
59457
|
-
}, statusClass === "completed2" ? /*#__PURE__*/React__default.createElement(CheckIcon, null) : /*#__PURE__*/React__default.createElement(ClockIcon, null)), showLine && /*#__PURE__*/React__default.createElement("div", {
|
|
59458
|
-
className: "timeline-line2"
|
|
59459
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
59460
|
-
className: "timeline-content2"
|
|
59461
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59462
|
-
className: "timeline-header2"
|
|
59463
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59464
|
-
className: "timeline-title2"
|
|
59465
|
-
}, 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__default.createElement("span", {
|
|
59466
|
-
className: "timeline-date2"
|
|
59467
|
-
}, convertEpochToDateTime(epochTime))), /*#__PURE__*/React__default.createElement("div", {
|
|
59468
|
-
className: "timeline-body2"
|
|
59469
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59470
|
-
className: `timeline-status-tag2 status-${statusClass}`
|
|
59471
|
-
}, 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__default.createElement("div", {
|
|
59472
|
-
className: "timeline-comment2"
|
|
59473
|
-
}, 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__default.createElement("div", {
|
|
59474
|
-
className: "timeline-footer2"
|
|
59475
|
-
}, /*#__PURE__*/React__default.createElement("span", null, t("ES_COMMON_ASSIGNED_TO"), ": ", /*#__PURE__*/React__default.createElement("strong", null, checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.name)))));
|
|
59476
|
-
})));
|
|
59477
|
-
};
|
|
59478
|
-
|
|
59479
60041
|
const ApplicationDetails$1 = () => {
|
|
59480
60042
|
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;
|
|
59481
60043
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
@@ -67763,7 +68325,7 @@ const openFilePDF = fileId => {
|
|
|
67763
68325
|
}).catch(error => console.error("Error fetching file:", error));
|
|
67764
68326
|
};
|
|
67765
68327
|
const CheckPage$4 = _ref2 => {
|
|
67766
|
-
var _Digit$UserService$ge, _data$cpt, _propertyAddress, _propertyAddress$asse, _propertyAddress2, _propertyAddress2$ass, _propertyAddress3, _cpt$address, _cpt$details, _cpt$details$address, _propertyAddress4, _propertyAddress4$blo, _propertyAddress5, _propertyAddress5$blo, _propertyAddress6, _propertyAddress7, _propertyAddress7$war, _propertyAddress8, _propertyAddress8$war, _propertyAddress9, _cpt$address2, _cpt$address3, _cpt$details2, _cpt$details2$address, _cpt$details3, _cpt$details3$address, _propertyAddress0, _propertyAddress0$zon, _propertyAddress1, _propertyAddress1$zon, _propertyAddress10, _cpt$address4, _cpt$details4, _cpt$details4$address, _propertyAddress11, _propertyAddress12, _propertyAddress13, _propertyAddress14, _propertyAddress15, _cpt$additionalDetail, _cpt$additionalDetail2, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ad, _data$cpt3, _data$cpt3$details, _data$cpt3$details$ad, _data$cpt4, _data$cpt4$details, _propertyAddress16, _propertyAddress17, _cpt$additionalDetail3, _cpt$additionalDetail4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$additionalDetai, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _data$rainWaterHarves, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails10$, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _data$additionalDetai5, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress18, _propertyAddress18$ad, _propertyAddress19, _propertyAddress19$ad, _propertyAddress20, _propertyAddress21, _propertyAddress21$ci, _propertyAddress22, _propertyAddress22$ci, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$lo, _propertyAddress27, _propertyAddress27$lo, _propertyAddress28, _propertyAddress29, _propertyAddress29$su, _propertyAddress30, _propertyAddress30$su, _propertyAddress31, _propertyAddress32, _propertyAddress33, _propertyAddress34, _propertyAddress35, _propertyAddress36, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _propertyAddress42, _propertyAddress42$as, _propertyAddress43, _propertyAddress43$as, _propertyAddress44, _cpt$address5, _propertyAddress45, _propertyAddress45$bl, _propertyAddress46, _propertyAddress46$bl, _propertyAddress47, _propertyAddress48, _propertyAddress48$wa, _propertyAddress49, _propertyAddress49$wa, _propertyAddress50, _cpt$address6, _cpt$address7, _propertyAddress51, _propertyAddress51$zo, _propertyAddress52, _propertyAddress52$zo, _propertyAddress53, _cpt$address8, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail5, _cpt$additionalDetail6, _cpt$additionalDetail7, _cpt$propertyType, _cpt$additionalDetail8, _cpt$additionalDetail9;
|
|
68328
|
+
var _Digit$UserService$ge, _data$cpt, _propertyAddress, _propertyAddress$asse, _propertyAddress2, _propertyAddress2$ass, _propertyAddress3, _cpt$address, _cpt$details, _cpt$details$address, _propertyAddress4, _propertyAddress4$blo, _propertyAddress5, _propertyAddress5$blo, _propertyAddress6, _propertyAddress7, _propertyAddress7$war, _propertyAddress8, _propertyAddress8$war, _propertyAddress9, _cpt$address2, _cpt$address3, _cpt$details2, _cpt$details2$address, _cpt$details3, _cpt$details3$address, _propertyAddress0, _propertyAddress0$zon, _propertyAddress1, _propertyAddress1$zon, _propertyAddress10, _cpt$address4, _cpt$details4, _cpt$details4$address, _propertyAddress11, _propertyAddress12, _propertyAddress13, _propertyAddress14, _propertyAddress15, _cpt$additionalDetail, _cpt$additionalDetail2, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ad, _data$cpt3, _data$cpt3$details, _data$cpt3$details$ad, _data$cpt4, _data$cpt4$details, _propertyAddress16, _propertyAddress17, _cpt$additionalDetail3, _cpt$additionalDetail4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$additionalDetai, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _data$rainWaterHarves, _data$sewerTreatmentP, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails10$, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _data$additionalDetai5, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress18, _propertyAddress18$ad, _propertyAddress19, _propertyAddress19$ad, _propertyAddress20, _propertyAddress21, _propertyAddress21$ci, _propertyAddress22, _propertyAddress22$ci, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$lo, _propertyAddress27, _propertyAddress27$lo, _propertyAddress28, _propertyAddress29, _propertyAddress29$su, _propertyAddress30, _propertyAddress30$su, _propertyAddress31, _propertyAddress32, _propertyAddress33, _propertyAddress34, _propertyAddress35, _propertyAddress36, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _propertyAddress42, _propertyAddress42$as, _propertyAddress43, _propertyAddress43$as, _propertyAddress44, _cpt$address5, _propertyAddress45, _propertyAddress45$bl, _propertyAddress46, _propertyAddress46$bl, _propertyAddress47, _propertyAddress48, _propertyAddress48$wa, _propertyAddress49, _propertyAddress49$wa, _propertyAddress50, _cpt$address6, _cpt$address7, _propertyAddress51, _propertyAddress51$zo, _propertyAddress52, _propertyAddress52$zo, _propertyAddress53, _cpt$address8, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _cpt$additionalDetail5, _cpt$additionalDetail6, _cpt$additionalDetail7, _cpt$propertyType, _cpt$additionalDetail8, _cpt$additionalDetail9;
|
|
67767
68329
|
let {
|
|
67768
68330
|
data,
|
|
67769
68331
|
onSubmit,
|
|
@@ -67840,6 +68402,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
67840
68402
|
const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
|
|
67841
68403
|
const disability = (data === null || data === void 0 ? void 0 : (_data$disability = data.disability) === null || _data$disability === void 0 ? void 0 : _data$disability.disability) || (data === null || data === void 0 ? void 0 : data.disability) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
|
|
67842
68404
|
const rainWaterHarvesting = (data === null || data === void 0 ? void 0 : (_data$rainWaterHarves = data.rainWaterHarvesting) === null || _data$rainWaterHarves === void 0 ? void 0 : _data$rainWaterHarves.rainWaterHarvesting) || (data === null || data === void 0 ? void 0 : data.rainWaterHarvesting) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
|
|
68405
|
+
const sewerTreatmentPlant = (data === null || data === void 0 ? void 0 : (_data$sewerTreatmentP = data.sewerTreatmentPlant) === null || _data$sewerTreatmentP === void 0 ? void 0 : _data$sewerTreatmentP.sewerTreatmentPlant) || (data === null || data === void 0 ? void 0 : data.sewerTreatmentPlant) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
|
|
67843
68406
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
67844
68407
|
className: "overflow-y-scroll"
|
|
67845
68408
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
@@ -67987,6 +68550,17 @@ const CheckPage$4 = _ref2 => {
|
|
|
67987
68550
|
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
67988
68551
|
onClick: onEdit
|
|
67989
68552
|
})
|
|
68553
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("Sewer Treatment Plant (STP)")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
68554
|
+
style: {
|
|
68555
|
+
marginTop: "10px",
|
|
68556
|
+
marginBottom: "30px"
|
|
68557
|
+
}
|
|
68558
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
68559
|
+
label: t("Sewer Treatment Plant (STP)"),
|
|
68560
|
+
text: sewerTreatmentPlant !== null && sewerTreatmentPlant !== void 0 && sewerTreatmentPlant.hasCertificate || sewerTreatmentPlant !== null && sewerTreatmentPlant !== void 0 && sewerTreatmentPlant.hasStp || sewerTreatmentPlant !== null && sewerTreatmentPlant !== void 0 && sewerTreatmentPlant.isSewerTreatmentPlant ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO"),
|
|
68561
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
68562
|
+
onClick: onEdit
|
|
68563
|
+
})
|
|
67990
68564
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("PT_LOCATION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
67991
68565
|
style: {
|
|
67992
68566
|
marginTop: "10px",
|
|
@@ -68107,7 +68681,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
68107
68681
|
marginBottom: "30px"
|
|
68108
68682
|
}
|
|
68109
68683
|
}, documents === null || documents === void 0 ? void 0 : documents.map((doc, index) => {
|
|
68110
|
-
var _doc$documentType, _doc$documentType2;
|
|
68684
|
+
var _doc$documentType, _doc$documentType2, _doc$additionalDetail, _doc$additionalDetail2;
|
|
68111
68685
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
68112
68686
|
key: index
|
|
68113
68687
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -68116,6 +68690,9 @@ const CheckPage$4 = _ref2 => {
|
|
|
68116
68690
|
actionButton: index === 0 ? /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
68117
68691
|
onClick: onEdit
|
|
68118
68692
|
}) : null
|
|
68693
|
+
}), ((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$additionalDetail = doc.additionalDetails) === null || _doc$additionalDetail === void 0 ? void 0 : _doc$additionalDetail.validityDate)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
68694
|
+
label: t("WS_VALIDITY_UP_TO") || "Validity up to",
|
|
68695
|
+
text: checkForNA$1((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$additionalDetail2 = doc.additionalDetails) === null || _doc$additionalDetail2 === void 0 ? void 0 : _doc$additionalDetail2.validityDate))
|
|
68119
68696
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
68120
68697
|
text: /*#__PURE__*/React__default.createElement("span", {
|
|
68121
68698
|
style: {
|
|
@@ -68216,6 +68793,11 @@ const isRwhDoc = doc => {
|
|
|
68216
68793
|
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();
|
|
68217
68794
|
return str.includes("RAIN") || str.includes("HARVEST");
|
|
68218
68795
|
};
|
|
68796
|
+
const isStpDoc = doc => {
|
|
68797
|
+
if (!doc) return false;
|
|
68798
|
+
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();
|
|
68799
|
+
return str.includes("SEWER") || str.includes("SEWAGE") || str.includes("STP") || str.includes("TREATMENT");
|
|
68800
|
+
};
|
|
68219
68801
|
const OLDApplication = () => {
|
|
68220
68802
|
var _Digit$UserService$ge;
|
|
68221
68803
|
const {
|
|
@@ -68242,6 +68824,8 @@ const OLDApplication = () => {
|
|
|
68242
68824
|
label: "WS_BANK_DETAILS"
|
|
68243
68825
|
}, {
|
|
68244
68826
|
label: "Rain Water Harvesting Certificate"
|
|
68827
|
+
}, {
|
|
68828
|
+
label: "Sewer Treatment Plant (STP)"
|
|
68245
68829
|
}, {
|
|
68246
68830
|
label: "PT_LOCATION_DETAILS"
|
|
68247
68831
|
}, {
|
|
@@ -68315,7 +68899,7 @@ const OLDApplication = () => {
|
|
|
68315
68899
|
};
|
|
68316
68900
|
const configCopy = cloneDeep_1(foundConfig);
|
|
68317
68901
|
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)) || [];
|
|
68318
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSBankDetails", "WSRainWaterHarvesting", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
|
|
68902
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSBankDetails", "WSRainWaterHarvesting", "WSSewerTreatmentPlant", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
|
|
68319
68903
|
const reorderedBody = [];
|
|
68320
68904
|
desiredComponentOrder.forEach(compName => {
|
|
68321
68905
|
const section = allCreateSections.find(s => {
|
|
@@ -68397,6 +68981,19 @@ const OLDApplication = () => {
|
|
|
68397
68981
|
}
|
|
68398
68982
|
}]
|
|
68399
68983
|
});
|
|
68984
|
+
} else if (compName === "WSSewerTreatmentPlant") {
|
|
68985
|
+
reorderedBody.push({
|
|
68986
|
+
isCreateConnection: true,
|
|
68987
|
+
body: [{
|
|
68988
|
+
type: "component",
|
|
68989
|
+
key: "sewerTreatmentPlant",
|
|
68990
|
+
component: "WSSewerTreatmentPlant",
|
|
68991
|
+
withoutLabel: true,
|
|
68992
|
+
texts: {
|
|
68993
|
+
header: "Sewer Treatment Plant (STP)"
|
|
68994
|
+
}
|
|
68995
|
+
}]
|
|
68996
|
+
});
|
|
68400
68997
|
} else if (compName === "WSBankDetails") {
|
|
68401
68998
|
reorderedBody.push({
|
|
68402
68999
|
isCreateConnection: true,
|
|
@@ -68659,7 +69256,7 @@ const OLDApplication = () => {
|
|
|
68659
69256
|
};
|
|
68660
69257
|
const processSubmission = function (data) {
|
|
68661
69258
|
try {
|
|
68662
|
-
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;
|
|
69259
|
+
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;
|
|
68663
69260
|
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
68664
69261
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
68665
69262
|
data.useDetails = {
|
|
@@ -68700,6 +69297,7 @@ const OLDApplication = () => {
|
|
|
68700
69297
|
};
|
|
68701
69298
|
}
|
|
68702
69299
|
if (data !== null && data !== void 0 && (_data$DocumentsRequir = data.DocumentsRequired) !== null && _data$DocumentsRequir !== void 0 && _data$DocumentsRequir.documents) {
|
|
69300
|
+
var _docWithValidity$addi, _docWithValidity$addi2, _rwhDoc$additionalDet, _stpDoc$additionalDet;
|
|
68703
69301
|
const docs = data.DocumentsRequired.documents;
|
|
68704
69302
|
const identityDoc = docs.find(d => {
|
|
68705
69303
|
var _d$documentType8;
|
|
@@ -68713,11 +69311,25 @@ const OLDApplication = () => {
|
|
|
68713
69311
|
var _d$documentType1;
|
|
68714
69312
|
return d === null || d === void 0 ? void 0 : (_d$documentType1 = d.documentType) === null || _d$documentType1 === void 0 ? void 0 : _d$documentType1.includes("OTHERDOCUMENTS");
|
|
68715
69313
|
});
|
|
69314
|
+
const docWithValidity = docs.find(d => {
|
|
69315
|
+
var _d$additionalDetails, _d$additionalDetails2;
|
|
69316
|
+
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);
|
|
69317
|
+
});
|
|
69318
|
+
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) || "";
|
|
69319
|
+
const rwhDoc = docs.find(d => isRwhDoc(d));
|
|
69320
|
+
const stpDoc = docs.find(d => isStpDoc(d));
|
|
69321
|
+
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) || "";
|
|
69322
|
+
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) || "";
|
|
68716
69323
|
data.documents = {
|
|
68717
69324
|
documents: docs,
|
|
68718
69325
|
identityProofNumber: (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || "",
|
|
68719
69326
|
ownershipDocumentNumber: (ownershipDoc === null || ownershipDoc === void 0 ? void 0 : ownershipDoc.documentUid) || "",
|
|
68720
|
-
otherDocumentNumber: (otherDoc === null || otherDoc === void 0 ? void 0 : otherDoc.documentUid) || ""
|
|
69327
|
+
otherDocumentNumber: (otherDoc === null || otherDoc === void 0 ? void 0 : otherDoc.documentUid) || "",
|
|
69328
|
+
validityDate: valDate || undefined,
|
|
69329
|
+
validityUpTo: valDate || undefined,
|
|
69330
|
+
date: valDate || undefined,
|
|
69331
|
+
rwhValidityDate: rwhValDate || undefined,
|
|
69332
|
+
stpValidityDate: stpValDate || undefined
|
|
68721
69333
|
};
|
|
68722
69334
|
}
|
|
68723
69335
|
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 => {
|
|
@@ -68792,14 +69404,52 @@ const OLDApplication = () => {
|
|
|
68792
69404
|
};
|
|
68793
69405
|
}
|
|
68794
69406
|
}
|
|
69407
|
+
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) || [];
|
|
69408
|
+
const rwhDocFromList = Array.isArray(docsList) ? docsList.find(d => isRwhDoc(d)) : null;
|
|
69409
|
+
const stpDocFromList = Array.isArray(docsList) ? docsList.find(d => isStpDoc(d)) : null;
|
|
69410
|
+
const generalDocWithVal = Array.isArray(docsList) ? docsList.find(d => {
|
|
69411
|
+
var _d$additionalDetails3;
|
|
69412
|
+
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);
|
|
69413
|
+
}) : null;
|
|
69414
|
+
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) || "";
|
|
69415
|
+
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;
|
|
69416
|
+
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;
|
|
68795
69417
|
if (data !== null && data !== void 0 && data.rainWaterHarvesting) {
|
|
68796
69418
|
var _data$rainWaterHarves, _data$rainWaterHarves2, _data$rainWaterHarves3, _data$rainWaterHarves4;
|
|
68797
69419
|
data.additionalDetails = {
|
|
68798
69420
|
...data.additionalDetails,
|
|
68799
69421
|
...data.rainWaterHarvesting,
|
|
68800
69422
|
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),
|
|
68801
|
-
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)
|
|
69423
|
+
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),
|
|
69424
|
+
validityDate: extractedRwhDate || undefined,
|
|
69425
|
+
validityUpTo: extractedRwhDate || undefined,
|
|
69426
|
+
date: extractedRwhDate || undefined,
|
|
69427
|
+
rwhValidityDate: extractedRwhDate || undefined
|
|
68802
69428
|
};
|
|
69429
|
+
if (extractedRwhDate) {
|
|
69430
|
+
data.rainWaterHarvesting.validityDate = extractedRwhDate;
|
|
69431
|
+
data.rainWaterHarvesting.validityUpTo = extractedRwhDate;
|
|
69432
|
+
data.rainWaterHarvesting.date = extractedRwhDate;
|
|
69433
|
+
}
|
|
69434
|
+
}
|
|
69435
|
+
if (data !== null && data !== void 0 && data.sewerTreatmentPlant) {
|
|
69436
|
+
var _data$sewerTreatmentP, _data$sewerTreatmentP2, _data$sewerTreatmentP3, _data$sewerTreatmentP4, _data$sewerTreatmentP5, _data$sewerTreatmentP6, _data$sewerTreatmentP7, _data$sewerTreatmentP8, _data$sewerTreatmentP9;
|
|
69437
|
+
data.additionalDetails = {
|
|
69438
|
+
...data.additionalDetails,
|
|
69439
|
+
...data.sewerTreatmentPlant,
|
|
69440
|
+
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),
|
|
69441
|
+
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),
|
|
69442
|
+
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),
|
|
69443
|
+
validityDate: extractedStpDate || undefined,
|
|
69444
|
+
validityUpTo: extractedStpDate || undefined,
|
|
69445
|
+
date: extractedStpDate || undefined,
|
|
69446
|
+
stpValidityDate: extractedStpDate || undefined
|
|
69447
|
+
};
|
|
69448
|
+
if (extractedStpDate) {
|
|
69449
|
+
data.sewerTreatmentPlant.validityDate = extractedStpDate;
|
|
69450
|
+
data.sewerTreatmentPlant.validityUpTo = extractedStpDate;
|
|
69451
|
+
data.sewerTreatmentPlant.date = extractedStpDate;
|
|
69452
|
+
}
|
|
68803
69453
|
}
|
|
68804
69454
|
if (data !== null && data !== void 0 && data.bankDetails) {
|
|
68805
69455
|
const normalizedBank = getNormalizedBankDetails(data);
|
|
@@ -69749,6 +70399,7 @@ const componentsToRegister = {
|
|
|
69749
70399
|
WSOLDApplication: OLDApplication,
|
|
69750
70400
|
WSDivyangjan: WSDivyangjan,
|
|
69751
70401
|
WSRainWaterHarvesting: WSRainWaterHarvesting,
|
|
70402
|
+
WSSewerTreatmentPlant: WSSewerTreatmentPlant,
|
|
69752
70403
|
WSExecuteDisconnection: WSExecuteDisconnection,
|
|
69753
70404
|
WSFieldInspection: WSFieldInspection
|
|
69754
70405
|
};
|