@djb25/digit-ui-module-ws 1.0.95 → 1.0.96
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 +1066 -257
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1066 -257
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,6 +509,31 @@ const getFiles = function (filesArray, tenant) {
|
|
|
509
509
|
return Promise.resolve(Digit.UploadServices.Filefetch(filesArray, tenant)).then(function (response) {
|
|
510
510
|
var _response$data, _response$data$fileSt, _response$data$fileSt2, _response$data2, _response$data2$fileS, _response$data2$fileS2;
|
|
511
511
|
response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$fileSt = _response$data.fileStoreIds) !== null && _response$data$fileSt !== void 0 && (_response$data$fileSt2 = _response$data$fileSt[0]) !== null && _response$data$fileSt2 !== void 0 && _response$data$fileSt2.url ? window.open(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$fileS = _response$data2.fileStoreIds) === null || _response$data2$fileS === void 0 ? void 0 : (_response$data2$fileS2 = _response$data2$fileS[0]) === null || _response$data2$fileS2 === void 0 ? void 0 : _response$data2$fileS2.url) : null;
|
|
512
|
+
const _temp3 = _catch(function () {
|
|
513
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(filesArray, tenant)).then(function (response) {
|
|
514
|
+
var _response$data3, _response$data3$fileS, _response$data3$fileS2, _response$data4;
|
|
515
|
+
if (response !== null && response !== void 0 && (_response$data3 = response.data) !== null && _response$data3 !== void 0 && (_response$data3$fileS = _response$data3.fileStoreIds) !== null && _response$data3$fileS !== void 0 && (_response$data3$fileS2 = _response$data3$fileS[0]) !== null && _response$data3$fileS2 !== void 0 && _response$data3$fileS2.url) {
|
|
516
|
+
window.open(response.data.fileStoreIds[0].url);
|
|
517
|
+
} else if (response !== null && response !== void 0 && (_response$data4 = response.data) !== null && _response$data4 !== void 0 && _response$data4[filesArray === null || filesArray === void 0 ? void 0 : filesArray[0]]) {
|
|
518
|
+
let linkText = response.data[filesArray[0]];
|
|
519
|
+
let fileURL = "";
|
|
520
|
+
if (linkText && typeof linkText == "string") {
|
|
521
|
+
const linkList = linkText.split(",");
|
|
522
|
+
linkList.forEach(link => {
|
|
523
|
+
if (!link.includes("large") && !link.includes("medium") && !link.includes("small")) {
|
|
524
|
+
fileURL = link;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
if (fileURL) {
|
|
529
|
+
window.open(fileURL);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
}, function (error) {
|
|
534
|
+
console.error("Error fetching file URL", error);
|
|
535
|
+
});
|
|
536
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
512
537
|
});
|
|
513
538
|
} catch (e) {
|
|
514
539
|
return Promise.reject(e);
|
|
@@ -876,6 +901,7 @@ const convertToEditWSUpdate = data => {
|
|
|
876
901
|
} : {
|
|
877
902
|
...(waterResult === null || waterResult === void 0 ? void 0 : waterResult.property)
|
|
878
903
|
},
|
|
904
|
+
dueVerification: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.dueVerification : waterResult === null || waterResult === void 0 ? void 0 : waterResult.dueVerification,
|
|
879
905
|
water: data !== null && data !== void 0 && (_data$applicationType = data.applicationType) !== null && _data$applicationType !== void 0 && _data$applicationType.includes("WATER") ? true : false,
|
|
880
906
|
sewerage: data !== null && data !== void 0 && (_data$applicationType2 = data.applicationType) !== null && _data$applicationType2 !== void 0 && _data$applicationType2.includes("WATER") ? true : false,
|
|
881
907
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName = data.serviceName) === null || _data$serviceName === void 0 ? void 0 : _data$serviceName.code : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$serviceN = waterResult.serviceName) === null || _waterResult$serviceN === void 0 ? void 0 : _waterResult$serviceN.code,
|
|
@@ -958,6 +984,7 @@ const convertToEditSWUpdate = data => {
|
|
|
958
984
|
} : {
|
|
959
985
|
...(SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.property)
|
|
960
986
|
},
|
|
987
|
+
dueVerification: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.dueVerification : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.dueVerification,
|
|
961
988
|
water: data !== null && data !== void 0 && (_data$applicationType3 = data.applicationType) !== null && _data$applicationType3 !== void 0 && _data$applicationType3.includes("WATER") ? true : false,
|
|
962
989
|
sewerage: data !== null && data !== void 0 && (_data$applicationType4 = data.applicationType) !== null && _data$applicationType4 !== void 0 && _data$applicationType4.includes("WATER") ? true : false,
|
|
963
990
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName2 = data.serviceName) === null || _data$serviceName2 === void 0 ? void 0 : _data$serviceName2.code : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$servi = SewerageResult.serviceName) === null || _SewerageResult$servi === void 0 ? void 0 : _SewerageResult$servi.code,
|
|
@@ -1912,16 +1939,16 @@ const convertDisonnectEditApplicationDetails = function (data, appData, actionDa
|
|
|
1912
1939
|
name: data === null || data === void 0 ? void 0 : (_data$plumberDetails1 = data.plumberDetails) === null || _data$plumberDetails1 === void 0 ? void 0 : (_data$plumberDetails10 = _data$plumberDetails1[0]) === null || _data$plumberDetails10 === void 0 ? void 0 : _data$plumberDetails10.plumberName,
|
|
1913
1940
|
id: appData === null || appData === void 0 ? void 0 : (_appData$applicationD6 = appData.applicationData) === null || _appData$applicationD6 === void 0 ? void 0 : (_appData$applicationD7 = _appData$applicationD6.plumberInfo) === null || _appData$applicationD7 === void 0 ? void 0 : (_appData$applicationD8 = _appData$applicationD7[0]) === null || _appData$applicationD8 === void 0 ? void 0 : _appData$applicationD8.id
|
|
1914
1941
|
}];
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1917
|
-
|
|
1942
|
+
const _temp6 = (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) || "",
|
|
1943
|
+
_temp5 = (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,
|
|
1944
|
+
_temp4 = (documentsData === null || documentsData === void 0 ? void 0 : documentsData.length) > 0 ? documentsData : data === null || data === void 0 ? void 0 : (_data$DocumentsRequir2 = data.DocumentsRequired) === null || _data$DocumentsRequir2 === void 0 ? void 0 : _data$DocumentsRequir2.documents;
|
|
1918
1945
|
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) {
|
|
1919
1946
|
var _data$plumberDetails11, _data$plumberDetails12, _data$plumberDetails13;
|
|
1920
1947
|
let payload = {
|
|
1921
1948
|
...appData.applicationData,
|
|
1922
|
-
documents:
|
|
1923
|
-
isDisconnectionTemporary:
|
|
1924
|
-
disconnectionReason:
|
|
1949
|
+
documents: _temp4,
|
|
1950
|
+
isDisconnectionTemporary: _temp5,
|
|
1951
|
+
disconnectionReason: _temp6,
|
|
1925
1952
|
dateEffectiveFrom: _getConvertedDate,
|
|
1926
1953
|
processInstance: {
|
|
1927
1954
|
action: actionData ? actionData : "RESUBMIT_APPLICATION"
|
|
@@ -1964,10 +1991,10 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
1964
1991
|
}
|
|
1965
1992
|
try {
|
|
1966
1993
|
var _data$cpt34, _data$cpt34$details, _data$cpt34$details$o, _data$cpt35, _data$cpt35$details, _data$cpt36, _data$cpt36$details, _data$connectionDetai, _data$connectionDetai2, _data$connectionDetai3, _data$connectionDetai4, _data$connectionDetai5, _data$connectionDetai6, _data$connectionDetai7, _data$connectionDetai8, _data$connectionDetai9, _data$connectionDetai0, _data$connectionDetai1, _data$connectionDetai10, _data$connectionDetai11, _data$connectionDetai12, _data$connectionDetai13, _data$connectionDetai14, _data$connectionDetai15, _data$connectionDetai16, _data$connectionDetai17, _data$connectionDetai18, _data$connectionDetai19, _data$connectionDetai20, _data$connectionDetai21, _data$connectionDetai22, _data$connectionDetai23, _data$connectionDetai24, _data$connectionDetai25, _data$connectionDetai26, _data$connectionDetai27, _data$connectionDetai28, _data$activationDetai11, _data$activationDetai12, _data$activationDetai13, _data$activationDetai14;
|
|
1967
|
-
function
|
|
1994
|
+
function _temp10() {
|
|
1968
1995
|
var _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8;
|
|
1969
|
-
function
|
|
1970
|
-
function
|
|
1996
|
+
function _temp0() {
|
|
1997
|
+
function _temp8() {
|
|
1971
1998
|
var _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _appData$applicationD9, _data$ConnectionHolde87, _data$ConnectionHolde88, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir6, _data$cpt33;
|
|
1972
1999
|
if (data !== null && data !== void 0 && (_data$DocumentsRequir3 = data.DocumentsRequired) !== null && _data$DocumentsRequir3 !== void 0 && (_data$DocumentsRequir4 = _data$DocumentsRequir3.documents) !== null && _data$DocumentsRequir4 !== void 0 && _data$DocumentsRequir4.length) formData.documents = data === null || data === void 0 ? void 0 : (_data$DocumentsRequir5 = data.DocumentsRequired) === null || _data$DocumentsRequir5 === void 0 ? void 0 : _data$DocumentsRequir5.documents;else formData.documents = null;
|
|
1973
2000
|
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) || [];
|
|
@@ -2001,20 +2028,20 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2001
2028
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify(data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : _data$cpt33.details));
|
|
2002
2029
|
return formData;
|
|
2003
2030
|
}
|
|
2004
|
-
const
|
|
2031
|
+
const _temp7 = function (_data$activationDetai, _data$activationDetai2, _data$activationDetai3, _data$activationDetai4) {
|
|
2005
2032
|
if (data !== null && data !== void 0 && (_data$activationDetai = data.activationDetails) !== null && _data$activationDetai !== void 0 && (_data$activationDetai2 = _data$activationDetai[0]) !== null && _data$activationDetai2 !== void 0 && _data$activationDetai2.dateEffectiveFrom) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai3 = data.activationDetails) === null || _data$activationDetai3 === void 0 ? void 0 : (_data$activationDetai4 = _data$activationDetai3[0]) === null || _data$activationDetai4 === void 0 ? void 0 : _data$activationDetai4.dateEffectiveFrom)).then(function (_getConvertedDate4) {
|
|
2006
2033
|
formData.dateEffectiveFrom = _getConvertedDate4;
|
|
2007
2034
|
});
|
|
2008
2035
|
}();
|
|
2009
|
-
return
|
|
2036
|
+
return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
|
|
2010
2037
|
}
|
|
2011
2038
|
if (data !== null && data !== void 0 && (_data$activationDetai5 = data.activationDetails) !== null && _data$activationDetai5 !== void 0 && (_data$activationDetai6 = _data$activationDetai5[0]) !== null && _data$activationDetai6 !== void 0 && _data$activationDetai6.meterInitialReading) formData.additionalDetails.initialMeterReading = data === null || data === void 0 ? void 0 : (_data$activationDetai7 = data.activationDetails) === null || _data$activationDetai7 === void 0 ? void 0 : (_data$activationDetai8 = _data$activationDetai7[0]) === null || _data$activationDetai8 === void 0 ? void 0 : _data$activationDetai8.meterInitialReading;
|
|
2012
|
-
const
|
|
2039
|
+
const _temp9 = function (_data$activationDetai9, _data$activationDetai0, _data$activationDetai1, _data$activationDetai10) {
|
|
2013
2040
|
if (data !== null && data !== void 0 && (_data$activationDetai9 = data.activationDetails) !== null && _data$activationDetai9 !== void 0 && (_data$activationDetai0 = _data$activationDetai9[0]) !== null && _data$activationDetai0 !== void 0 && _data$activationDetai0.connectionExecutionDate) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai1 = data.activationDetails) === null || _data$activationDetai1 === void 0 ? void 0 : (_data$activationDetai10 = _data$activationDetai1[0]) === null || _data$activationDetai10 === void 0 ? void 0 : _data$activationDetai10.connectionExecutionDate)).then(function (_getConvertedDate3) {
|
|
2014
2041
|
formData.connectionExecutionDate = _getConvertedDate3;
|
|
2015
2042
|
});
|
|
2016
2043
|
}();
|
|
2017
|
-
return
|
|
2044
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
|
|
2018
2045
|
}
|
|
2019
2046
|
data === null || data === void 0 ? void 0 : (_data$cpt34 = data.cpt) === null || _data$cpt34 === void 0 ? void 0 : (_data$cpt34$details = _data$cpt34.details) === null || _data$cpt34$details === void 0 ? void 0 : (_data$cpt34$details$o = _data$cpt34$details.owners) === null || _data$cpt34$details$o === void 0 ? void 0 : _data$cpt34$details$o.forEach(owner => {
|
|
2020
2047
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
@@ -2030,12 +2057,12 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
|
|
|
2030
2057
|
if (data !== null && data !== void 0 && (_data$connectionDetai21 = data.connectionDetails) !== null && _data$connectionDetai21 !== void 0 && (_data$connectionDetai22 = _data$connectionDetai21[0]) !== null && _data$connectionDetai22 !== void 0 && _data$connectionDetai22.noOfWaterClosets) formData.noOfWaterClosets = data === null || data === void 0 ? void 0 : (_data$connectionDetai23 = data.connectionDetails) === null || _data$connectionDetai23 === void 0 ? void 0 : (_data$connectionDetai24 = _data$connectionDetai23[0]) === null || _data$connectionDetai24 === void 0 ? void 0 : _data$connectionDetai24.noOfWaterClosets;
|
|
2031
2058
|
if (data !== null && data !== void 0 && (_data$connectionDetai25 = data.connectionDetails) !== null && _data$connectionDetai25 !== void 0 && (_data$connectionDetai26 = _data$connectionDetai25[0]) !== null && _data$connectionDetai26 !== void 0 && _data$connectionDetai26.noOfToilets) formData.noOfToilets = data === null || data === void 0 ? void 0 : (_data$connectionDetai27 = data.connectionDetails) === null || _data$connectionDetai27 === void 0 ? void 0 : (_data$connectionDetai28 = _data$connectionDetai27[0]) === null || _data$connectionDetai28 === void 0 ? void 0 : _data$connectionDetai28.noOfToilets;
|
|
2032
2059
|
if (data !== null && data !== void 0 && (_data$activationDetai11 = data.activationDetails) !== null && _data$activationDetai11 !== void 0 && (_data$activationDetai12 = _data$activationDetai11[0]) !== null && _data$activationDetai12 !== void 0 && _data$activationDetai12.meterId) formData.meterId = data === null || data === void 0 ? void 0 : (_data$activationDetai13 = data.activationDetails) === null || _data$activationDetai13 === void 0 ? void 0 : (_data$activationDetai14 = _data$activationDetai13[0]) === null || _data$activationDetai14 === void 0 ? void 0 : _data$activationDetai14.meterId;
|
|
2033
|
-
const
|
|
2060
|
+
const _temp1 = function (_data$activationDetai15, _data$activationDetai16, _data$activationDetai17, _data$activationDetai18) {
|
|
2034
2061
|
if (data !== null && data !== void 0 && (_data$activationDetai15 = data.activationDetails) !== null && _data$activationDetai15 !== void 0 && (_data$activationDetai16 = _data$activationDetai15[0]) !== null && _data$activationDetai16 !== void 0 && _data$activationDetai16.meterInstallationDate) return Promise.resolve(getConvertedDate(data === null || data === void 0 ? void 0 : (_data$activationDetai17 = data.activationDetails) === null || _data$activationDetai17 === void 0 ? void 0 : (_data$activationDetai18 = _data$activationDetai17[0]) === null || _data$activationDetai18 === void 0 ? void 0 : _data$activationDetai18.meterInstallationDate)).then(function (_getConvertedDate2) {
|
|
2035
2062
|
formData.meterInstallationDate = _getConvertedDate2;
|
|
2036
2063
|
});
|
|
2037
2064
|
}();
|
|
2038
|
-
return Promise.resolve(
|
|
2065
|
+
return Promise.resolve(_temp1 && _temp1.then ? _temp1.then(_temp10) : _temp10(_temp1));
|
|
2039
2066
|
} catch (e) {
|
|
2040
2067
|
return Promise.reject(e);
|
|
2041
2068
|
}
|
|
@@ -8263,12 +8290,23 @@ const WSMyApplications = () => {
|
|
|
8263
8290
|
return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
|
|
8264
8291
|
}
|
|
8265
8292
|
}, {
|
|
8266
|
-
Header: t("
|
|
8293
|
+
Header: t("dueAmount"),
|
|
8267
8294
|
disableSortBy: true,
|
|
8268
8295
|
Cell: _ref7 => {
|
|
8296
|
+
var _row$original9;
|
|
8269
8297
|
let {
|
|
8270
8298
|
row
|
|
8271
8299
|
} = _ref7;
|
|
8300
|
+
const dueAmounts = (((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
|
|
8301
|
+
return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
|
|
8302
|
+
}
|
|
8303
|
+
}, {
|
|
8304
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
8305
|
+
disableSortBy: true,
|
|
8306
|
+
Cell: _ref8 => {
|
|
8307
|
+
let {
|
|
8308
|
+
row
|
|
8309
|
+
} = _ref8;
|
|
8272
8310
|
const application = row.original;
|
|
8273
8311
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
8274
8312
|
className: "link"
|
|
@@ -8279,11 +8317,11 @@ const WSMyApplications = () => {
|
|
|
8279
8317
|
}, {
|
|
8280
8318
|
Header: t("MAKE_PAYMENT"),
|
|
8281
8319
|
disableSortBy: true,
|
|
8282
|
-
Cell:
|
|
8320
|
+
Cell: _ref9 => {
|
|
8283
8321
|
var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$connecti, _application$property, _application$property2, _application$applicat6, _application$applicat7;
|
|
8284
8322
|
let {
|
|
8285
8323
|
row
|
|
8286
|
-
} =
|
|
8324
|
+
} = _ref9;
|
|
8287
8325
|
const application = row.original;
|
|
8288
8326
|
const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
|
|
8289
8327
|
const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
|
|
@@ -8331,14 +8369,14 @@ const WSMyApplications = () => {
|
|
|
8331
8369
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
8332
8370
|
return {
|
|
8333
8371
|
...ob,
|
|
8334
|
-
|
|
8372
|
+
sla: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.filter(pi => pi.businessId == ob.applicationNo)[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.businesssServiceSla
|
|
8335
8373
|
};
|
|
8336
8374
|
})) || [];
|
|
8337
8375
|
SWapplicationsList = ((_SWapplicationsList = SWapplicationsList) === null || _SWapplicationsList === void 0 ? void 0 : _SWapplicationsList.map(ob => {
|
|
8338
8376
|
var _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
|
|
8339
8377
|
return {
|
|
8340
8378
|
...ob,
|
|
8341
|
-
|
|
8379
|
+
sla: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.processInstances) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.filter(pi => pi.businessId == ob.applicationNo)[0]) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.businesssServiceSla
|
|
8342
8380
|
};
|
|
8343
8381
|
})) || [];
|
|
8344
8382
|
WSapplicationsList = ((_WSapplicationsList2 = WSapplicationsList) === null || _WSapplicationsList2 === void 0 ? void 0 : _WSapplicationsList2.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_WATER_CONNECTION")) || [];
|
|
@@ -8415,8 +8453,8 @@ const WSMyApplications = () => {
|
|
|
8415
8453
|
label: "SEWERAGE",
|
|
8416
8454
|
count: sewerageCount,
|
|
8417
8455
|
color: "#F59E0B"
|
|
8418
|
-
}, ...Object.entries(statusCounts).map((
|
|
8419
|
-
let [status, count] =
|
|
8456
|
+
}, ...Object.entries(statusCounts).map((_ref0, idx) => {
|
|
8457
|
+
let [status, count] = _ref0;
|
|
8420
8458
|
const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
|
|
8421
8459
|
return {
|
|
8422
8460
|
label: status === "UNKNOWN" ? "UNKNOWN" : `CS_${status}`,
|
|
@@ -9800,7 +9838,7 @@ const getWSDisconectionAcknowledgementData = function (application, property, te
|
|
|
9800
9838
|
};
|
|
9801
9839
|
|
|
9802
9840
|
const WSDisconnectionResponse = props => {
|
|
9803
|
-
var _filters$
|
|
9841
|
+
var _filters$applicationN2;
|
|
9804
9842
|
const {
|
|
9805
9843
|
t
|
|
9806
9844
|
} = reactI18next.useTranslation();
|
|
@@ -9813,13 +9851,19 @@ const WSDisconnectionResponse = props => {
|
|
|
9813
9851
|
const PDFdata = getWSDisconectionAcknowledgementData(disconnectionRes, disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.propertyDetails, disconnectionRes === null || disconnectionRes === void 0 ? void 0 : disconnectionRes.tenantId, t);
|
|
9814
9852
|
PDFdata.then(res => Digit.Utils.pdf.generatev1(res));
|
|
9815
9853
|
};
|
|
9854
|
+
const onMakePayment = () => {
|
|
9855
|
+
var _filters$applicationN;
|
|
9856
|
+
const isWater = filters === null || filters === void 0 ? void 0 : (_filters$applicationN = filters.applicationNumber) === null || _filters$applicationN === void 0 ? void 0 : _filters$applicationN.includes("WS");
|
|
9857
|
+
const businessService = isWater ? "WS.DISCONNECTION" : "SW.DISCONNECTION";
|
|
9858
|
+
history.push(`/digit-ui/employee/payment/collect/${businessService}/${filters === null || filters === void 0 ? void 0 : filters.applicationNumber}/${tenantId}?tenantId=${tenantId}&ISWSAPP&applicationNumber=${filters === null || filters === void 0 ? void 0 : filters.applicationNumber}&IsDisconnectionFlow=true`);
|
|
9859
|
+
};
|
|
9816
9860
|
const onSubmit = () => {
|
|
9817
9861
|
history.push(`/digit-ui/employee`);
|
|
9818
9862
|
};
|
|
9819
9863
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
|
|
9820
9864
|
message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
|
|
9821
9865
|
applicationNumber: filters === null || filters === void 0 ? void 0 : filters.applicationNumber,
|
|
9822
|
-
info: filters !== null && filters !== void 0 && (_filters$
|
|
9866
|
+
info: filters !== null && filters !== void 0 && (_filters$applicationN2 = filters.applicationNumber) !== null && _filters$applicationN2 !== void 0 && _filters$applicationN2.includes("WS") ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL"),
|
|
9823
9867
|
successful: true,
|
|
9824
9868
|
style: {
|
|
9825
9869
|
padding: "10px"
|
|
@@ -9863,6 +9907,12 @@ const WSDisconnectionResponse = props => {
|
|
|
9863
9907
|
alignItems: "baseline"
|
|
9864
9908
|
}
|
|
9865
9909
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
9910
|
+
label: t("COMMON_MAKE_PAYMENT"),
|
|
9911
|
+
onSubmit: onMakePayment,
|
|
9912
|
+
style: {
|
|
9913
|
+
margin: "10px 10px 0px 0px"
|
|
9914
|
+
}
|
|
9915
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
9866
9916
|
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
9867
9917
|
onSubmit: onSubmit,
|
|
9868
9918
|
style: {
|
|
@@ -11809,7 +11859,7 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
11809
11859
|
}));
|
|
11810
11860
|
};
|
|
11811
11861
|
const App$1 = _ref2 => {
|
|
11812
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg, _Digit29, _Digit29$ComponentReg, _Digit30, _Digit30$ComponentReg;
|
|
11862
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg, _Digit29, _Digit29$ComponentReg, _Digit30, _Digit30$ComponentReg, _Digit31, _Digit31$ComponentReg;
|
|
11813
11863
|
let {
|
|
11814
11864
|
path
|
|
11815
11865
|
} = _ref2;
|
|
@@ -11887,7 +11937,8 @@ const App$1 = _ref2 => {
|
|
|
11887
11937
|
const CPTCreateProperty = (_Digit28 = Digit) === null || _Digit28 === void 0 ? void 0 : (_Digit28$ComponentReg = _Digit28.ComponentRegistryService) === null || _Digit28$ComponentReg === void 0 ? void 0 : _Digit28$ComponentReg.getComponent("CPTCreateProperty");
|
|
11888
11938
|
const CPTAcknowledgement = (_Digit29 = Digit) === null || _Digit29 === void 0 ? void 0 : (_Digit29$ComponentReg = _Digit29.ComponentRegistryService) === null || _Digit29$ComponentReg === void 0 ? void 0 : _Digit29$ComponentReg.getComponent("CPTAcknowledgement");
|
|
11889
11939
|
const WSInfoPage = (_Digit30 = Digit) === null || _Digit30 === void 0 ? void 0 : (_Digit30$ComponentReg = _Digit30.ComponentRegistryService) === null || _Digit30$ComponentReg === void 0 ? void 0 : _Digit30$ComponentReg.getComponent("WSInfoPage");
|
|
11890
|
-
const
|
|
11940
|
+
const WSExecuteDisconnection = (_Digit31 = Digit) === null || _Digit31 === void 0 ? void 0 : (_Digit31$ComponentReg = _Digit31.ComponentRegistryService) === null || _Digit31$ComponentReg === void 0 ? void 0 : _Digit31$ComponentReg.getComponent("WSExecuteDisconnection");
|
|
11941
|
+
const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/mutation-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/new-disconnection/k-number") || window.location.href.includes("/employee/ws/new-disconnection/consumer-details") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/execute-disconnection") || window.location.href.includes("/employee/ws/water/bulk-bill");
|
|
11891
11942
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
11892
11943
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11893
11944
|
className: "app-container"
|
|
@@ -12102,6 +12153,9 @@ const App$1 = _ref2 => {
|
|
|
12102
12153
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
12103
12154
|
path: `${path}/zro-verification-details`,
|
|
12104
12155
|
component: () => /*#__PURE__*/React__default.createElement(WSZROVerificationDetails, null)
|
|
12156
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
12157
|
+
path: `${path}/execute-disconnection`,
|
|
12158
|
+
component: WSExecuteDisconnection
|
|
12105
12159
|
}))))));
|
|
12106
12160
|
};
|
|
12107
12161
|
|
|
@@ -18826,7 +18880,7 @@ function SelectDocument(_ref2) {
|
|
|
18826
18880
|
}
|
|
18827
18881
|
};
|
|
18828
18882
|
React.useEffect(() => {
|
|
18829
|
-
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
18883
|
+
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !isOther) {
|
|
18830
18884
|
setDocuments(prev => {
|
|
18831
18885
|
const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18832
18886
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
@@ -19162,6 +19216,21 @@ function SelectDocument(_ref2) {
|
|
|
19162
19216
|
setError(docNumberError);
|
|
19163
19217
|
return;
|
|
19164
19218
|
}
|
|
19219
|
+
setDocuments(prev => {
|
|
19220
|
+
const data = [...(prev || []), {
|
|
19221
|
+
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19222
|
+
fileStoreId: uploadedFile,
|
|
19223
|
+
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
|
|
19224
|
+
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
19225
|
+
documentUid: documentUid,
|
|
19226
|
+
documentNumber: documentUid,
|
|
19227
|
+
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19228
|
+
id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
|
|
19229
|
+
status: "ACTIVE"
|
|
19230
|
+
}];
|
|
19231
|
+
sessionStorage.setItem("DISCONNECTION_EDIT_DOCS", JSON.stringify(data));
|
|
19232
|
+
return data;
|
|
19233
|
+
});
|
|
19165
19234
|
setUploadedFile(null);
|
|
19166
19235
|
setFile(null);
|
|
19167
19236
|
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
@@ -19915,54 +19984,70 @@ const WSDisconnectionKNumber = _ref => {
|
|
|
19915
19984
|
businessService: "WS"
|
|
19916
19985
|
}).catch(() => null)).then(function (wsResponse) {
|
|
19917
19986
|
var _waterResponse$WaterC;
|
|
19918
|
-
function
|
|
19919
|
-
var
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19987
|
+
function _temp3() {
|
|
19988
|
+
var _connection4, _connection5;
|
|
19989
|
+
function _temp(propertyResponse) {
|
|
19990
|
+
var _propertyResponse$Pro, _connection, _connection$connectio, _connection$connectio2, _connection2;
|
|
19991
|
+
const property = propertyResponse === null || propertyResponse === void 0 ? void 0 : (_propertyResponse$Pro = propertyResponse.Properties) === null || _propertyResponse$Pro === void 0 ? void 0 : _propertyResponse$Pro[0];
|
|
19992
|
+
if (property) connection = {
|
|
19993
|
+
...connection,
|
|
19994
|
+
property
|
|
19995
|
+
};
|
|
19996
|
+
const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
|
|
19997
|
+
if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
|
|
19998
|
+
setIsLoading(false);
|
|
19999
|
+
setShowToast({
|
|
20000
|
+
key: "error",
|
|
20001
|
+
message: "No valid registered mobile number found for this connection"
|
|
20002
|
+
});
|
|
20003
|
+
return;
|
|
20004
|
+
}
|
|
20005
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20006
|
+
const payload = {
|
|
20007
|
+
otp: {
|
|
20008
|
+
mobileNumber: fetchedMobileNumber,
|
|
20009
|
+
tenantId: "dl",
|
|
20010
|
+
type: "register",
|
|
20011
|
+
userType: "EMPLOYEE"
|
|
20012
|
+
}
|
|
20013
|
+
};
|
|
20014
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
20015
|
+
var _connection3;
|
|
20016
|
+
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
20017
|
+
connection.serviceType = detectedServiceType;
|
|
20018
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
20019
|
+
...existingData,
|
|
20020
|
+
kNumber: trimmed,
|
|
20021
|
+
serviceType: detectedServiceType,
|
|
20022
|
+
applicationData: connection,
|
|
20023
|
+
connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
|
|
20024
|
+
});
|
|
20025
|
+
setIsLoading(false);
|
|
20026
|
+
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
20027
|
+
connection
|
|
20028
|
+
});
|
|
19925
20029
|
});
|
|
19926
|
-
return;
|
|
19927
20030
|
}
|
|
19928
|
-
|
|
19929
|
-
if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
|
|
20031
|
+
if (!connection) {
|
|
19930
20032
|
setIsLoading(false);
|
|
19931
20033
|
setShowToast({
|
|
19932
20034
|
key: "error",
|
|
19933
|
-
message: "
|
|
20035
|
+
message: "Active connection not found for the given K Number"
|
|
19934
20036
|
});
|
|
19935
20037
|
return;
|
|
19936
20038
|
}
|
|
19937
|
-
const
|
|
19938
|
-
|
|
19939
|
-
|
|
19940
|
-
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
};
|
|
19946
|
-
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
19947
|
-
var _connection3;
|
|
19948
|
-
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
19949
|
-
connection.serviceType = detectedServiceType;
|
|
19950
|
-
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
19951
|
-
...existingData,
|
|
19952
|
-
kNumber: trimmed,
|
|
19953
|
-
serviceType: detectedServiceType,
|
|
19954
|
-
applicationData: connection,
|
|
19955
|
-
connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
|
|
19956
|
-
});
|
|
19957
|
-
setIsLoading(false);
|
|
19958
|
-
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
19959
|
-
connection
|
|
19960
|
-
});
|
|
19961
|
-
});
|
|
20039
|
+
const _connection$propertyI = (_connection4 = connection) === null || _connection4 === void 0 ? void 0 : _connection4.propertyId;
|
|
20040
|
+
return _connection$propertyI ? Promise.resolve(Digit.PTService.search({
|
|
20041
|
+
tenantId: ((_connection5 = connection) === null || _connection5 === void 0 ? void 0 : _connection5.tenantId) || tenantId,
|
|
20042
|
+
filters: {
|
|
20043
|
+
propertyIds: connection.propertyId
|
|
20044
|
+
},
|
|
20045
|
+
auth: true
|
|
20046
|
+
}).catch(() => null)).then(_temp) : _temp(null);
|
|
19962
20047
|
}
|
|
19963
20048
|
const waterResponse = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.data) || wsResponse;
|
|
19964
20049
|
let connection = waterResponse === null || waterResponse === void 0 ? void 0 : (_waterResponse$WaterC = waterResponse.WaterConnection) === null || _waterResponse$WaterC === void 0 ? void 0 : _waterResponse$WaterC.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
|
|
19965
|
-
const
|
|
20050
|
+
const _temp2 = function () {
|
|
19966
20051
|
if (!connection) {
|
|
19967
20052
|
return Promise.resolve(Digit.WSService.search({
|
|
19968
20053
|
tenantId,
|
|
@@ -19976,7 +20061,7 @@ const WSDisconnectionKNumber = _ref => {
|
|
|
19976
20061
|
});
|
|
19977
20062
|
}
|
|
19978
20063
|
}();
|
|
19979
|
-
return
|
|
20064
|
+
return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2);
|
|
19980
20065
|
});
|
|
19981
20066
|
}, function (err) {
|
|
19982
20067
|
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
@@ -23593,7 +23678,7 @@ const BannerPicker = props => {
|
|
|
23593
23678
|
});
|
|
23594
23679
|
};
|
|
23595
23680
|
const WSDisconnectAcknowledgement = () => {
|
|
23596
|
-
var _disconnectionData$
|
|
23681
|
+
var _disconnectionData$Di4;
|
|
23597
23682
|
const {
|
|
23598
23683
|
t
|
|
23599
23684
|
} = reactI18next.useTranslation();
|
|
@@ -23603,6 +23688,17 @@ const WSDisconnectAcknowledgement = () => {
|
|
|
23603
23688
|
const PDFdata = getWSDisconectionAcknowledgementData(disconnectionRes, disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.property, disconnectionRes === null || disconnectionRes === void 0 ? void 0 : disconnectionRes.tenantId, t);
|
|
23604
23689
|
PDFdata.then(res => Digit.Utils.pdf.generatev1(res));
|
|
23605
23690
|
};
|
|
23691
|
+
const getPaymentUrl = () => {
|
|
23692
|
+
var _disconnectionData$Di, _disconnectionData$Di2, _disconnectionData$Di3, _disconnectionData$pr, _disconnectionData$pr2;
|
|
23693
|
+
const appNo = disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$Di = disconnectionData.DisconnectionResponse) === null || _disconnectionData$Di === void 0 ? void 0 : _disconnectionData$Di.applicationNo;
|
|
23694
|
+
const connNo = disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$Di2 = disconnectionData.DisconnectionResponse) === null || _disconnectionData$Di2 === void 0 ? void 0 : _disconnectionData$Di2.connectionNo;
|
|
23695
|
+
const isWater = appNo === null || appNo === void 0 ? void 0 : appNo.includes("WS");
|
|
23696
|
+
const businessService = isWater ? "WS.DISCONNECTION" : "SW.DISCONNECTION";
|
|
23697
|
+
const formattedConnNo = connNo ? connNo.split("/").join("+") : "";
|
|
23698
|
+
const tenantId = disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$Di3 = disconnectionData.DisconnectionResponse) === null || _disconnectionData$Di3 === void 0 ? void 0 : _disconnectionData$Di3.tenantId;
|
|
23699
|
+
const ownerName = disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$pr = disconnectionData.property) === null || _disconnectionData$pr === void 0 ? void 0 : (_disconnectionData$pr2 = _disconnectionData$pr.owners) === null || _disconnectionData$pr2 === void 0 ? void 0 : _disconnectionData$pr2.map(o => o.name).join(",");
|
|
23700
|
+
return `/digit-ui/citizen/payment/my-bills/${businessService}/${formattedConnNo}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${ownerName}&isDisoconnectFlow=true&consumerCode=${appNo}`;
|
|
23701
|
+
};
|
|
23606
23702
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
23607
23703
|
style: {
|
|
23608
23704
|
padding: "10px"
|
|
@@ -23610,11 +23706,19 @@ const WSDisconnectAcknowledgement = () => {
|
|
|
23610
23706
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, /*#__PURE__*/React__default.createElement(BannerPicker, {
|
|
23611
23707
|
isSuccess: true,
|
|
23612
23708
|
message: t("WS_APPLICATION_COMPLETED_SUCCESSFULLY_LABEL"),
|
|
23613
|
-
applicationNumber: disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$
|
|
23709
|
+
applicationNumber: disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$Di4 = disconnectionData.DisconnectionResponse) === null || _disconnectionData$Di4 === void 0 ? void 0 : _disconnectionData$Di4.applicationNo
|
|
23614
23710
|
}), " ", /*#__PURE__*/React__default.createElement("successSvg", null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t('WS_DISCONNECTION_APPLICATION_SUCC_MSG')), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
23615
23711
|
label: t("WS_DOWNLOAD_ACK_FORM"),
|
|
23616
23712
|
onSubmit: handleDownloadPdf
|
|
23617
23713
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
23714
|
+
to: getPaymentUrl()
|
|
23715
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
23716
|
+
label: t("COMMON_MAKE_PAYMENT"),
|
|
23717
|
+
style: {
|
|
23718
|
+
marginTop: "10px",
|
|
23719
|
+
marginBottom: "10px"
|
|
23720
|
+
}
|
|
23721
|
+
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
23618
23722
|
to: `/digit-ui/citizen`
|
|
23619
23723
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
23620
23724
|
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
@@ -24333,7 +24437,7 @@ const WSDeclaration = _ref => {
|
|
|
24333
24437
|
};
|
|
24334
24438
|
|
|
24335
24439
|
const WSDjbEmployee = _ref => {
|
|
24336
|
-
var _formData$djbEmployee, _formData$additionalD, _formData$djbEmployee2, _formData$additionalD2, _formData$djbEmployee3, _formData$additionalD3, _formData$djbEmployee4, _formData$additionalD4, _formData$djbEmployee5, _formData$additionalD5;
|
|
24440
|
+
var _formData$djbEmployee, _formData$additionalD, _formData$djbEmployee2, _formData$additionalD2, _formData$djbEmployee3, _formData$additionalD3, _formData$djbEmployee4, _formData$additionalD4, _formData$djbEmployee5, _formData$additionalD5, _formData$dueVerifica;
|
|
24337
24441
|
let {
|
|
24338
24442
|
config,
|
|
24339
24443
|
onSelect,
|
|
@@ -24615,6 +24719,115 @@ const WSDjbEmployee = _ref => {
|
|
|
24615
24719
|
fontSize: "18px"
|
|
24616
24720
|
}
|
|
24617
24721
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null)))))))));
|
|
24722
|
+
const DueVerificationContent = (formData === null || formData === void 0 ? void 0 : (_formData$dueVerifica = formData.dueVerification) === null || _formData$dueVerifica === void 0 ? void 0 : _formData$dueVerifica.length) > 0 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
24723
|
+
title: t("WS_DUE_VERIFICATION_DETAILS"),
|
|
24724
|
+
defaultOpen: true
|
|
24725
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24726
|
+
style: {
|
|
24727
|
+
overflowX: "auto",
|
|
24728
|
+
marginTop: "10px",
|
|
24729
|
+
marginBottom: "30px",
|
|
24730
|
+
width: "100%"
|
|
24731
|
+
}
|
|
24732
|
+
}, /*#__PURE__*/React__default.createElement("table", {
|
|
24733
|
+
style: {
|
|
24734
|
+
width: "100%",
|
|
24735
|
+
textAlign: "left",
|
|
24736
|
+
borderCollapse: "collapse",
|
|
24737
|
+
border: "1px solid #e0e0e0"
|
|
24738
|
+
}
|
|
24739
|
+
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
24740
|
+
style: {
|
|
24741
|
+
backgroundColor: "#f4f7fb",
|
|
24742
|
+
borderBottom: "2px solid #e0e0e0"
|
|
24743
|
+
}
|
|
24744
|
+
}, /*#__PURE__*/React__default.createElement("th", {
|
|
24745
|
+
style: {
|
|
24746
|
+
padding: "12px 8px",
|
|
24747
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24748
|
+
}
|
|
24749
|
+
}, t("K No.")), /*#__PURE__*/React__default.createElement("th", {
|
|
24750
|
+
style: {
|
|
24751
|
+
padding: "12px 8px",
|
|
24752
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24753
|
+
}
|
|
24754
|
+
}, t("Full Name")), /*#__PURE__*/React__default.createElement("th", {
|
|
24755
|
+
style: {
|
|
24756
|
+
padding: "12px 8px",
|
|
24757
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24758
|
+
}
|
|
24759
|
+
}, t("Full Address")), /*#__PURE__*/React__default.createElement("th", {
|
|
24760
|
+
style: {
|
|
24761
|
+
padding: "12px 8px",
|
|
24762
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24763
|
+
}
|
|
24764
|
+
}, t("Due Amount")), /*#__PURE__*/React__default.createElement("th", {
|
|
24765
|
+
style: {
|
|
24766
|
+
padding: "12px 8px",
|
|
24767
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24768
|
+
}
|
|
24769
|
+
}, t("Total Amount")), /*#__PURE__*/React__default.createElement("th", {
|
|
24770
|
+
style: {
|
|
24771
|
+
padding: "12px 8px",
|
|
24772
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24773
|
+
}
|
|
24774
|
+
}, t("Remarks")), /*#__PURE__*/React__default.createElement("th", {
|
|
24775
|
+
style: {
|
|
24776
|
+
padding: "12px 8px",
|
|
24777
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24778
|
+
}
|
|
24779
|
+
}, t("ABG_COMMON_TABLE_COL_ACTION")))), /*#__PURE__*/React__default.createElement("tbody", null, formData.dueVerification.map((dueItem, index) => {
|
|
24780
|
+
var _formData$serviceName, _formData$application, _dueItem$kno;
|
|
24781
|
+
return /*#__PURE__*/React__default.createElement("tr", {
|
|
24782
|
+
key: `due-${index}`,
|
|
24783
|
+
style: {
|
|
24784
|
+
borderBottom: "1px solid #e0e0e0"
|
|
24785
|
+
}
|
|
24786
|
+
}, /*#__PURE__*/React__default.createElement("td", {
|
|
24787
|
+
style: {
|
|
24788
|
+
padding: "12px 8px"
|
|
24789
|
+
}
|
|
24790
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.kno) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24791
|
+
style: {
|
|
24792
|
+
padding: "12px 8px"
|
|
24793
|
+
}
|
|
24794
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullName) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24795
|
+
style: {
|
|
24796
|
+
padding: "12px 8px"
|
|
24797
|
+
}
|
|
24798
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullAddress) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24799
|
+
style: {
|
|
24800
|
+
padding: "12px 8px"
|
|
24801
|
+
}
|
|
24802
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.dueAmount) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24803
|
+
style: {
|
|
24804
|
+
padding: "12px 8px"
|
|
24805
|
+
}
|
|
24806
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.totalAmount) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24807
|
+
style: {
|
|
24808
|
+
padding: "12px 8px"
|
|
24809
|
+
}
|
|
24810
|
+
}, (dueItem === null || dueItem === void 0 ? void 0 : dueItem.remarks) || t("CS_NA")), /*#__PURE__*/React__default.createElement("td", {
|
|
24811
|
+
style: {
|
|
24812
|
+
padding: "12px 8px"
|
|
24813
|
+
}
|
|
24814
|
+
}, Number(dueItem === null || dueItem === void 0 ? void 0 : dueItem.dueAmount) > 0 || Number(dueItem === null || dueItem === void 0 ? void 0 : dueItem.totalAmount) > 0 ? /*#__PURE__*/React__default.createElement("span", {
|
|
24815
|
+
className: "link"
|
|
24816
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
24817
|
+
to: {
|
|
24818
|
+
pathname: `/digit-ui/citizen/payment/my-bills/${(formData === null || formData === void 0 ? void 0 : (_formData$serviceName = formData.serviceName) === null || _formData$serviceName === void 0 ? void 0 : _formData$serviceName.code) === "WATER" || formData !== null && formData !== void 0 && (_formData$application = formData.applicationType) !== null && _formData$application !== void 0 && _formData$application.includes("WATER") ? "WS" : "SW"}/${dueItem === null || dueItem === void 0 ? void 0 : (_dueItem$kno = dueItem.kno) === null || _dueItem$kno === void 0 ? void 0 : _dueItem$kno.replaceAll("/", "+")}`,
|
|
24819
|
+
search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullName}&consumerCode=${dueItem === null || dueItem === void 0 ? void 0 : dueItem.kno}`,
|
|
24820
|
+
state: {
|
|
24821
|
+
fromApplicationDetails: true
|
|
24822
|
+
}
|
|
24823
|
+
}
|
|
24824
|
+
}, t("MAKE_PAYMENT"))) : /*#__PURE__*/React__default.createElement("span", {
|
|
24825
|
+
style: {
|
|
24826
|
+
color: "green",
|
|
24827
|
+
fontWeight: "bold"
|
|
24828
|
+
}
|
|
24829
|
+
}, t("BILL_ALREADY_PAID"))));
|
|
24830
|
+
}))))) : null;
|
|
24618
24831
|
if (userType === "citizen") {
|
|
24619
24832
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
|
|
24620
24833
|
currentStep: 2
|
|
@@ -24629,9 +24842,22 @@ const WSDjbEmployee = _ref => {
|
|
|
24629
24842
|
marginTop: "-30px",
|
|
24630
24843
|
marginBottom: "-30px"
|
|
24631
24844
|
}
|
|
24845
|
+
}, FormContent, DueVerificationContent ? /*#__PURE__*/React__default.createElement("div", {
|
|
24846
|
+
style: {
|
|
24847
|
+
marginTop: "24px"
|
|
24848
|
+
}
|
|
24849
|
+
}, DueVerificationContent) : null), /*#__PURE__*/React__default.createElement("div", {
|
|
24850
|
+
style: {
|
|
24851
|
+
marginTop: "-30px",
|
|
24852
|
+
marginBottom: "-30px"
|
|
24853
|
+
}
|
|
24632
24854
|
}, FormContent)));
|
|
24633
24855
|
}
|
|
24634
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, FormContent
|
|
24856
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, FormContent, DueVerificationContent ? /*#__PURE__*/React__default.createElement("div", {
|
|
24857
|
+
style: {
|
|
24858
|
+
marginTop: "24px"
|
|
24859
|
+
}
|
|
24860
|
+
}, DueVerificationContent) : null);
|
|
24635
24861
|
};
|
|
24636
24862
|
|
|
24637
24863
|
const WSDivyangjan = _ref => {
|
|
@@ -28076,11 +28302,6 @@ const WSCard = () => {
|
|
|
28076
28302
|
label: t("WATER_INBOX"),
|
|
28077
28303
|
link: `/digit-ui/employee/ws/water/inbox`,
|
|
28078
28304
|
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"]
|
|
28079
|
-
}, {
|
|
28080
|
-
count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
|
|
28081
|
-
label: t("SEWERAGE_INBOX"),
|
|
28082
|
-
link: `/digit-ui/employee/ws/sewerage/inbox`,
|
|
28083
|
-
roles: ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
28084
28305
|
}, ...links, {
|
|
28085
28306
|
label: t("WS_WATER_CONNECTION_SEARCH_LABEL"),
|
|
28086
28307
|
link: `/digit-ui/employee/ws/water/search-connection`,
|
|
@@ -31601,7 +31822,7 @@ const TOKEN$1 = {
|
|
|
31601
31822
|
const StatusPill = _ref => {
|
|
31602
31823
|
let {
|
|
31603
31824
|
label,
|
|
31604
|
-
|
|
31825
|
+
isGreen
|
|
31605
31826
|
} = _ref;
|
|
31606
31827
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
31607
31828
|
style: {
|
|
@@ -31612,9 +31833,9 @@ const StatusPill = _ref => {
|
|
|
31612
31833
|
textTransform: "uppercase",
|
|
31613
31834
|
padding: "2px 10px",
|
|
31614
31835
|
borderRadius: "999px",
|
|
31615
|
-
background:
|
|
31616
|
-
color:
|
|
31617
|
-
border: `1px solid ${
|
|
31836
|
+
background: !isGreen ? "rgba(0,195,255,0.15)" : "rgba(0,230,118,0.12)",
|
|
31837
|
+
color: !isGreen ? TOKEN$1.active : TOKEN$1.done,
|
|
31838
|
+
border: `1px solid ${!isGreen ? TOKEN$1.active : TOKEN$1.done}`,
|
|
31618
31839
|
lineHeight: "18px"
|
|
31619
31840
|
}
|
|
31620
31841
|
}, label);
|
|
@@ -31630,8 +31851,10 @@ const StepCard = _ref2 => {
|
|
|
31630
31851
|
} = _ref2;
|
|
31631
31852
|
const [expanded, setExpanded] = React.useState(isActive);
|
|
31632
31853
|
const stateLabel = checkpoint.state ? t(`CS_${checkpoint.state}`) : "NA";
|
|
31633
|
-
const
|
|
31634
|
-
const
|
|
31854
|
+
const isTerminal = (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.state) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.applicationStatus) === "CONNECTION_ACTIVATED" || (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.status) === "ACTIVE" || (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.isTerminateState);
|
|
31855
|
+
const isGreen = !isActive || isTerminal;
|
|
31856
|
+
const dotColor = !isGreen ? TOKEN$1.active : TOKEN$1.done;
|
|
31857
|
+
const glowColor = !isGreen ? "0 0 14px rgba(0,195,255,0.5)" : "0 0 10px rgba(0,230,118,0.35)";
|
|
31635
31858
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
31636
31859
|
style: {
|
|
31637
31860
|
display: "flex",
|
|
@@ -31657,9 +31880,23 @@ const StepCard = _ref2 => {
|
|
|
31657
31880
|
border: `2px solid ${dotColor}`,
|
|
31658
31881
|
zIndex: 1,
|
|
31659
31882
|
flexShrink: 0,
|
|
31660
|
-
marginTop: "16px"
|
|
31883
|
+
marginTop: "16px",
|
|
31884
|
+
display: "flex",
|
|
31885
|
+
alignItems: "center",
|
|
31886
|
+
justifyContent: "center"
|
|
31661
31887
|
}
|
|
31662
|
-
}
|
|
31888
|
+
}, isGreen && /*#__PURE__*/React__default.createElement("svg", {
|
|
31889
|
+
width: "10",
|
|
31890
|
+
height: "10",
|
|
31891
|
+
viewBox: "0 0 24 24",
|
|
31892
|
+
fill: "none",
|
|
31893
|
+
stroke: "white",
|
|
31894
|
+
strokeWidth: "4",
|
|
31895
|
+
strokeLinecap: "round",
|
|
31896
|
+
strokeLinejoin: "round"
|
|
31897
|
+
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
31898
|
+
points: "20 6 9 17 4 12"
|
|
31899
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
31663
31900
|
style: {
|
|
31664
31901
|
width: "2px",
|
|
31665
31902
|
flex: 1,
|
|
@@ -31715,8 +31952,8 @@ const StepCard = _ref2 => {
|
|
|
31715
31952
|
flexShrink: 0
|
|
31716
31953
|
}
|
|
31717
31954
|
}, /*#__PURE__*/React__default.createElement(StatusPill, {
|
|
31718
|
-
label: isActive ? "
|
|
31719
|
-
|
|
31955
|
+
label: isActive ? "ACTIVE" : "DONE",
|
|
31956
|
+
isGreen: isGreen
|
|
31720
31957
|
}), /*#__PURE__*/React__default.createElement("span", {
|
|
31721
31958
|
style: {
|
|
31722
31959
|
color: TOKEN$1.textMut,
|
|
@@ -33005,33 +33242,33 @@ const checkForNA$1 = value => {
|
|
|
33005
33242
|
return value ? value : "CS_NA";
|
|
33006
33243
|
};
|
|
33007
33244
|
const WSApplicationDetails = () => {
|
|
33008
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$
|
|
33245
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect103, _data$SewerageConnect104, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect107, _data$SewerageConnect108, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _applicationData$dueV, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection135, _data$WaterConnection136, _data$SewerageConnect130, _data$SewerageConnect131, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect132, _data$SewerageConnect133, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160;
|
|
33009
33246
|
const getDisconnectionNoticeSearch = function () {
|
|
33010
33247
|
try {
|
|
33011
|
-
var _data$
|
|
33248
|
+
var _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157;
|
|
33012
33249
|
let key = "ws-waterdisconnectionnotice";
|
|
33013
33250
|
let details = {};
|
|
33014
33251
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
33015
|
-
var _data$
|
|
33252
|
+
var _data$WaterConnection161, _PTData$Properties11;
|
|
33016
33253
|
details = {
|
|
33017
33254
|
WaterConnection: [{
|
|
33018
|
-
...(data === null || data === void 0 ? void 0 : (_data$
|
|
33255
|
+
...(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : _data$WaterConnection161[0]),
|
|
33019
33256
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
|
|
33020
33257
|
}]
|
|
33021
33258
|
};
|
|
33022
33259
|
} else {
|
|
33023
|
-
var _data$
|
|
33260
|
+
var _data$SewerageConnect155, _PTData$Properties12;
|
|
33024
33261
|
key = "ws-seweragedisconnectionnotice";
|
|
33025
33262
|
details = {
|
|
33026
33263
|
SewerageConnection: [{
|
|
33027
|
-
...(data === null || data === void 0 ? void 0 : (_data$
|
|
33264
|
+
...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect155 = data.SewerageConnections) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155[0]),
|
|
33028
33265
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
33029
33266
|
}]
|
|
33030
33267
|
};
|
|
33031
33268
|
}
|
|
33032
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
33033
|
-
var _data$
|
|
33034
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
33269
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : (_data$WaterConnection163 = _data$WaterConnection162[0]) === null || _data$WaterConnection163 === void 0 ? void 0 : _data$WaterConnection163.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId), details, key)).then(function (response) {
|
|
33270
|
+
var _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159;
|
|
33271
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : (_data$WaterConnection165 = _data$WaterConnection164[0]) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.tenantId), {
|
|
33035
33272
|
fileStoreIds: response.filestoreIds[0]
|
|
33036
33273
|
})).then(function (fileStore) {
|
|
33037
33274
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -33477,77 +33714,14 @@ const WSApplicationDetails = () => {
|
|
|
33477
33714
|
isArray: false
|
|
33478
33715
|
}
|
|
33479
33716
|
}
|
|
33480
|
-
}), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33481
|
-
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
33482
|
-
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection100 = data.WaterConnection) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101.connectionHolders) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : _data$WaterConnection103.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect95 = data.SewerageConnections) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96.connectionHolders) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : _data$SewerageConnect98.fatherOrHusbandName) || t("CS_NA"),
|
|
33483
|
-
textStyle: {
|
|
33484
|
-
whiteSpace: "pre"
|
|
33485
|
-
},
|
|
33486
|
-
privacy: {
|
|
33487
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection104 = data.WaterConnection) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105.connectionHolders) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : _data$WaterConnection107.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect99 = data.SewerageConnections) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100.connectionHolders) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : _data$SewerageConnect102.uuid,
|
|
33488
|
-
fieldName: "fatherOrHusbandName",
|
|
33489
|
-
model: "WnSConnectionOwner",
|
|
33490
|
-
showValue: false,
|
|
33491
|
-
loadData: {
|
|
33492
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
33493
|
-
requestBody: {},
|
|
33494
|
-
requestParam: {
|
|
33495
|
-
tenantId,
|
|
33496
|
-
applicationNumber: applicationNobyData
|
|
33497
|
-
},
|
|
33498
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].fatherOrHusbandName" : "SewerageConnections[0].connectionHolders[0].fatherOrHusbandName",
|
|
33499
|
-
isArray: false
|
|
33500
|
-
}
|
|
33501
|
-
}
|
|
33502
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33503
|
-
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
33504
|
-
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection108 = data.WaterConnection) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109.connectionHolders) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : _data$WaterConnection111.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect103 = data.SewerageConnections) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104.connectionHolders) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : _data$SewerageConnect106.relationship) || t("CS_NA"),
|
|
33505
|
-
textStyle: {
|
|
33506
|
-
whiteSpace: "pre"
|
|
33507
|
-
},
|
|
33508
|
-
privacy: {
|
|
33509
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection112 = data.WaterConnection) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113.connectionHolders) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : _data$WaterConnection115.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect107 = data.SewerageConnections) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108.connectionHolders) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : _data$SewerageConnect110.uuid,
|
|
33510
|
-
fieldName: "relationship",
|
|
33511
|
-
model: "WnSConnection",
|
|
33512
|
-
showValue: false,
|
|
33513
|
-
loadData: {
|
|
33514
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
33515
|
-
requestBody: {},
|
|
33516
|
-
requestParam: {
|
|
33517
|
-
tenantId,
|
|
33518
|
-
applicationNumber: applicationNobyData
|
|
33519
|
-
},
|
|
33520
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].relationship" : "SewerageConnections[0].connectionHolders[0].relationship",
|
|
33521
|
-
isArray: false
|
|
33522
|
-
}
|
|
33523
|
-
}
|
|
33524
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33525
|
-
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
33526
|
-
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection116 = data.WaterConnection) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : (_data$WaterConnection118 = _data$WaterConnection117.connectionHolders) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : _data$WaterConnection119.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect111 = data.SewerageConnections) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : (_data$SewerageConnect113 = _data$SewerageConnect112.connectionHolders) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : _data$SewerageConnect114.correspondenceAddress) || t("CS_NA"),
|
|
33527
|
-
privacy: {
|
|
33528
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection120 = data.WaterConnection) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121.connectionHolders) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : _data$WaterConnection123.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect115 = data.SewerageConnections) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116.connectionHolders) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : _data$SewerageConnect118.uuid,
|
|
33529
|
-
fieldName: "correspondenceAddress",
|
|
33530
|
-
model: "WnSConnectionOwner",
|
|
33531
|
-
showValue: false,
|
|
33532
|
-
loadData: {
|
|
33533
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
33534
|
-
requestBody: {},
|
|
33535
|
-
requestParam: {
|
|
33536
|
-
tenantId,
|
|
33537
|
-
applicationNumber: applicationNobyData
|
|
33538
|
-
},
|
|
33539
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].correspondenceAddress" : "SewerageConnections[0].connectionHolders[0].correspondenceAddress",
|
|
33540
|
-
isArray: false
|
|
33541
|
-
}
|
|
33542
|
-
}
|
|
33543
33717
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33544
33718
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
33545
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33719
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection100 = data.WaterConnection) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101.connectionHolders) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : _data$WaterConnection103.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect95 = data.SewerageConnections) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96.connectionHolders) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : _data$SewerageConnect98.emailId) || "NA",
|
|
33546
33720
|
textStyle: {
|
|
33547
33721
|
whiteSpace: "pre"
|
|
33548
33722
|
},
|
|
33549
33723
|
privacy: {
|
|
33550
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33724
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection104 = data.WaterConnection) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105.connectionHolders) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : _data$WaterConnection107.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect99 = data.SewerageConnections) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100.connectionHolders) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : _data$SewerageConnect102.uuid,
|
|
33551
33725
|
fieldName: "connectionHoldersEmailId",
|
|
33552
33726
|
model: "WnSConnectionOwner",
|
|
33553
33727
|
showValue: false,
|
|
@@ -33568,7 +33742,7 @@ const WSApplicationDetails = () => {
|
|
|
33568
33742
|
}
|
|
33569
33743
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33570
33744
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
33571
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33745
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection108 = data.WaterConnection) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect103 = data.SewerageConnections) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.propertyId),
|
|
33572
33746
|
textStyle: {
|
|
33573
33747
|
wordBreak: "break-word"
|
|
33574
33748
|
}
|
|
@@ -33609,7 +33783,7 @@ const WSApplicationDetails = () => {
|
|
|
33609
33783
|
}
|
|
33610
33784
|
}
|
|
33611
33785
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33612
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
33786
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : _data$WaterConnection111.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : _data$SewerageConnect106.propertyId)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection112 = data.WaterConnection) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect107 = data.SewerageConnections) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.tenantId)}`
|
|
33613
33787
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
33614
33788
|
style: {
|
|
33615
33789
|
textAlign: "left"
|
|
@@ -33742,13 +33916,121 @@ const WSApplicationDetails = () => {
|
|
|
33742
33916
|
cursor: "pointer",
|
|
33743
33917
|
color: "#f47738"
|
|
33744
33918
|
},
|
|
33745
|
-
onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId)
|
|
33919
|
+
onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0])
|
|
33746
33920
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
33747
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
33921
|
+
}))), (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$dueV = applicationData.dueVerification) === null || _applicationData$dueV === void 0 ? void 0 : _applicationData$dueV.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
33922
|
+
styles: {
|
|
33923
|
+
fontSize: "28px"
|
|
33924
|
+
}
|
|
33925
|
+
}, t("WS_DUE_VERIFICATION_DETAILS")), /*#__PURE__*/React__default.createElement("div", {
|
|
33926
|
+
style: {
|
|
33927
|
+
overflowX: "auto",
|
|
33928
|
+
marginTop: "10px",
|
|
33929
|
+
marginBottom: "30px"
|
|
33930
|
+
}
|
|
33931
|
+
}, /*#__PURE__*/React__default.createElement("table", {
|
|
33932
|
+
style: {
|
|
33933
|
+
width: "100%",
|
|
33934
|
+
textAlign: "left",
|
|
33935
|
+
borderCollapse: "collapse",
|
|
33936
|
+
border: "1px solid #e0e0e0"
|
|
33937
|
+
}
|
|
33938
|
+
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
33939
|
+
style: {
|
|
33940
|
+
backgroundColor: "#f4f7fb",
|
|
33941
|
+
borderBottom: "2px solid #e0e0e0"
|
|
33942
|
+
}
|
|
33943
|
+
}, /*#__PURE__*/React__default.createElement("th", {
|
|
33944
|
+
style: {
|
|
33945
|
+
padding: "12px 8px",
|
|
33946
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33947
|
+
}
|
|
33948
|
+
}, t("K No.")), /*#__PURE__*/React__default.createElement("th", {
|
|
33949
|
+
style: {
|
|
33950
|
+
padding: "12px 8px",
|
|
33951
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33952
|
+
}
|
|
33953
|
+
}, t("Full Name")), /*#__PURE__*/React__default.createElement("th", {
|
|
33954
|
+
style: {
|
|
33955
|
+
padding: "12px 8px",
|
|
33956
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33957
|
+
}
|
|
33958
|
+
}, t("Full Address")), /*#__PURE__*/React__default.createElement("th", {
|
|
33959
|
+
style: {
|
|
33960
|
+
padding: "12px 8px",
|
|
33961
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33962
|
+
}
|
|
33963
|
+
}, t("Due Amount")), /*#__PURE__*/React__default.createElement("th", {
|
|
33964
|
+
style: {
|
|
33965
|
+
padding: "12px 8px",
|
|
33966
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33967
|
+
}
|
|
33968
|
+
}, t("Total Amount")), /*#__PURE__*/React__default.createElement("th", {
|
|
33969
|
+
style: {
|
|
33970
|
+
padding: "12px 8px",
|
|
33971
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33972
|
+
}
|
|
33973
|
+
}, t("Remarks")), /*#__PURE__*/React__default.createElement("th", {
|
|
33974
|
+
style: {
|
|
33975
|
+
padding: "12px 8px",
|
|
33976
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33977
|
+
}
|
|
33978
|
+
}, t("ABG_COMMON_TABLE_COL_ACTION")))), /*#__PURE__*/React__default.createElement("tbody", null, applicationData.dueVerification.map((dueItem, index) => {
|
|
33979
|
+
var _applicationData$appl, _dueItem$kno;
|
|
33980
|
+
return /*#__PURE__*/React__default.createElement("tr", {
|
|
33981
|
+
key: `due-${index}`,
|
|
33982
|
+
style: {
|
|
33983
|
+
borderBottom: "1px solid #e0e0e0"
|
|
33984
|
+
}
|
|
33985
|
+
}, /*#__PURE__*/React__default.createElement("td", {
|
|
33986
|
+
style: {
|
|
33987
|
+
padding: "12px 8px"
|
|
33988
|
+
}
|
|
33989
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.kno)), /*#__PURE__*/React__default.createElement("td", {
|
|
33990
|
+
style: {
|
|
33991
|
+
padding: "12px 8px"
|
|
33992
|
+
}
|
|
33993
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullName)), /*#__PURE__*/React__default.createElement("td", {
|
|
33994
|
+
style: {
|
|
33995
|
+
padding: "12px 8px"
|
|
33996
|
+
}
|
|
33997
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullAddress)), /*#__PURE__*/React__default.createElement("td", {
|
|
33998
|
+
style: {
|
|
33999
|
+
padding: "12px 8px"
|
|
34000
|
+
}
|
|
34001
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.dueAmount)), /*#__PURE__*/React__default.createElement("td", {
|
|
34002
|
+
style: {
|
|
34003
|
+
padding: "12px 8px"
|
|
34004
|
+
}
|
|
34005
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.totalAmount)), /*#__PURE__*/React__default.createElement("td", {
|
|
34006
|
+
style: {
|
|
34007
|
+
padding: "12px 8px"
|
|
34008
|
+
}
|
|
34009
|
+
}, checkForNA$1(dueItem === null || dueItem === void 0 ? void 0 : dueItem.remarks)), /*#__PURE__*/React__default.createElement("td", {
|
|
34010
|
+
style: {
|
|
34011
|
+
padding: "12px 8px"
|
|
34012
|
+
}
|
|
34013
|
+
}, Number(dueItem === null || dueItem === void 0 ? void 0 : dueItem.dueAmount) > 0 || Number(dueItem === null || dueItem === void 0 ? void 0 : dueItem.totalAmount) > 0 ? /*#__PURE__*/React__default.createElement("span", {
|
|
34014
|
+
className: "link"
|
|
34015
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
34016
|
+
to: {
|
|
34017
|
+
pathname: `/digit-ui/citizen/payment/my-bills/${(applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) === "WATER" || applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("WATER") ? "WS" : "SW"}/${dueItem === null || dueItem === void 0 ? void 0 : (_dueItem$kno = dueItem.kno) === null || _dueItem$kno === void 0 ? void 0 : _dueItem$kno.replaceAll("/", "+")}`,
|
|
34018
|
+
search: `?workflow=WNS&tenantId=${applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId}&ConsumerName=${dueItem === null || dueItem === void 0 ? void 0 : dueItem.fullName}&consumerCode=${dueItem === null || dueItem === void 0 ? void 0 : dueItem.kno}`,
|
|
34019
|
+
state: {
|
|
34020
|
+
fromApplicationDetails: true
|
|
34021
|
+
}
|
|
34022
|
+
}
|
|
34023
|
+
}, t("MAKE_PAYMENT"))) : /*#__PURE__*/React__default.createElement("span", {
|
|
34024
|
+
style: {
|
|
34025
|
+
color: "green",
|
|
34026
|
+
fontWeight: "bold"
|
|
34027
|
+
}
|
|
34028
|
+
}, t("BILL_ALREADY_PAID"))));
|
|
34029
|
+
}))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
33748
34030
|
styles: {
|
|
33749
34031
|
fontSize: "28px"
|
|
33750
34032
|
}
|
|
33751
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
34033
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : _data$WaterConnection115.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection116 = data.WaterConnection) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.documents.reduce((acc, current) => {
|
|
33752
34034
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33753
34035
|
if (!x) {
|
|
33754
34036
|
return acc.concat([current]);
|
|
@@ -33756,11 +34038,11 @@ const WSApplicationDetails = () => {
|
|
|
33756
34038
|
return acc;
|
|
33757
34039
|
}
|
|
33758
34040
|
}, []).map((doc, index, array) => {
|
|
33759
|
-
var _doc$documentType, _data$
|
|
34041
|
+
var _doc$documentType, _data$WaterConnection118, _data$WaterConnection119;
|
|
33760
34042
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33761
34043
|
key: `doc-${index}`
|
|
33762
34044
|
}, /*#__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, {
|
|
33763
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34045
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : _data$WaterConnection119.documents,
|
|
33764
34046
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33765
34047
|
index: index
|
|
33766
34048
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33772,7 +34054,7 @@ const WSApplicationDetails = () => {
|
|
|
33772
34054
|
marginBottom: "20px"
|
|
33773
34055
|
}
|
|
33774
34056
|
}) : null)));
|
|
33775
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
34057
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : _data$SewerageConnect110.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect111 = data.SewerageConnections) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.documents.reduce((acc, current) => {
|
|
33776
34058
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33777
34059
|
if (!x) {
|
|
33778
34060
|
return acc.concat([current]);
|
|
@@ -33780,11 +34062,11 @@ const WSApplicationDetails = () => {
|
|
|
33780
34062
|
return acc;
|
|
33781
34063
|
}
|
|
33782
34064
|
}, []).map((doc, index, array) => {
|
|
33783
|
-
var _doc$documentType2, _data$
|
|
34065
|
+
var _doc$documentType2, _data$SewerageConnect113, _data$SewerageConnect114;
|
|
33784
34066
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33785
34067
|
key: `doc-${index}`
|
|
33786
34068
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33787
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34069
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : _data$SewerageConnect114.documents,
|
|
33788
34070
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33789
34071
|
index: index
|
|
33790
34072
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33796,46 +34078,46 @@ const WSApplicationDetails = () => {
|
|
|
33796
34078
|
marginBottom: "20px"
|
|
33797
34079
|
}
|
|
33798
34080
|
}) : null)));
|
|
33799
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
34081
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection120 = data.WaterConnection) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : _data$WaterConnection123.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection124 = data.WaterConnection) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect115 = data.SewerageConnections) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : _data$SewerageConnect118.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect119 = data.SewerageConnections) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
|
|
33800
34082
|
style: {
|
|
33801
34083
|
marginTop: "10px"
|
|
33802
34084
|
}
|
|
33803
34085
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33804
34086
|
label: t("MAKE_PAYMENT"),
|
|
33805
34087
|
onSubmit: () => {
|
|
33806
|
-
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$
|
|
34088
|
+
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
|
|
33807
34089
|
history.push({
|
|
33808
34090
|
pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
|
|
33809
|
-
search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
34091
|
+
search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : _data$WaterConnection127.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : _data$SewerageConnect122.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection128 = data.WaterConnection) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129.connectionHolders) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect123 = data.SewerageConnections) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124.connectionHolders) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
|
|
33810
34092
|
state: {
|
|
33811
34093
|
fromApplicationDetails: true
|
|
33812
34094
|
}
|
|
33813
34095
|
});
|
|
33814
34096
|
}
|
|
33815
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
34097
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection131 = data.WaterConnection) !== null && _data$WaterConnection131 !== void 0 && (_data$WaterConnection132 = _data$WaterConnection131[0]) !== null && _data$WaterConnection132 !== void 0 && _data$WaterConnection132.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection133 = data.WaterConnection) !== null && _data$WaterConnection133 !== void 0 && (_data$WaterConnection134 = _data$WaterConnection133[0]) !== null && _data$WaterConnection134 !== void 0 && _data$WaterConnection134.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect126 = data.SewerageConnections) !== null && _data$SewerageConnect126 !== void 0 && (_data$SewerageConnect127 = _data$SewerageConnect126[0]) !== null && _data$SewerageConnect127 !== void 0 && _data$SewerageConnect127.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect128 = data.SewerageConnections) !== null && _data$SewerageConnect128 !== void 0 && (_data$SewerageConnect129 = _data$SewerageConnect128[0]) !== null && _data$SewerageConnect129 !== void 0 && _data$SewerageConnect129.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33816
34098
|
to: {
|
|
33817
|
-
pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$
|
|
33818
|
-
search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$
|
|
34099
|
+
pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : (_data$WaterConnection136 = _data$WaterConnection135[0]) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : (_data$SewerageConnect131 = _data$SewerageConnect130[0]) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131.tenantId)}`,
|
|
34100
|
+
search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.applicationNo)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.tenantId)}&service=${data !== null && data !== void 0 && (_data$WaterConnection141 = data.WaterConnection) !== null && _data$WaterConnection141 !== void 0 && _data$WaterConnection141[0] ? "WATER" : "SEWERAGE"}&propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142[0]) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.propertyId)}` : "",
|
|
33819
34101
|
state: {
|
|
33820
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
34102
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : (_data$WaterConnection145 = _data$WaterConnection144[0]) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo)}`
|
|
33821
34103
|
}
|
|
33822
34104
|
}
|
|
33823
34105
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33824
34106
|
label: t("COMMON_EDIT")
|
|
33825
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
34107
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection146 = data.WaterConnection) !== null && _data$WaterConnection146 !== void 0 && (_data$WaterConnection147 = _data$WaterConnection146[0]) !== null && _data$WaterConnection147 !== void 0 && _data$WaterConnection147.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection148 = data.WaterConnection) !== null && _data$WaterConnection148 !== void 0 && (_data$WaterConnection149 = _data$WaterConnection148[0]) !== null && _data$WaterConnection149 !== void 0 && _data$WaterConnection149.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect140 = data.SewerageConnections) !== null && _data$SewerageConnect140 !== void 0 && (_data$SewerageConnect141 = _data$SewerageConnect140[0]) !== null && _data$SewerageConnect141 !== void 0 && _data$SewerageConnect141.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect142 = data.SewerageConnections) !== null && _data$SewerageConnect142 !== void 0 && (_data$SewerageConnect143 = _data$SewerageConnect142[0]) !== null && _data$SewerageConnect143 !== void 0 && _data$SewerageConnect143.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33826
34108
|
to: {
|
|
33827
34109
|
pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
|
|
33828
34110
|
state: {
|
|
33829
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
34111
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect144 = data.SewerageConnections) === null || _data$SewerageConnect144 === void 0 ? void 0 : (_data$SewerageConnect145 = _data$SewerageConnect144[0]) === null || _data$SewerageConnect145 === void 0 ? void 0 : _data$SewerageConnect145.applicationNo)}`
|
|
33830
34112
|
}
|
|
33831
34113
|
}
|
|
33832
34114
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33833
34115
|
label: t("RESUBMIT_APPLICATION"),
|
|
33834
34116
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
33835
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
34117
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect146 = data.SewerageConnections) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146[0],
|
|
33836
34118
|
serviceType: "SEWERAGE",
|
|
33837
34119
|
WSDisconnectionForm: {
|
|
33838
|
-
type: data !== null && data !== void 0 && (_data$
|
|
34120
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect147 = data.SewerageConnections) !== null && _data$SewerageConnect147 !== void 0 && (_data$SewerageConnect148 = _data$SewerageConnect147[0]) !== null && _data$SewerageConnect148 !== void 0 && _data$SewerageConnect148.isDisconnectionTemporary ? {
|
|
33839
34121
|
code: "type",
|
|
33840
34122
|
value: {
|
|
33841
34123
|
name: "Temporary",
|
|
@@ -33852,18 +34134,18 @@ const WSApplicationDetails = () => {
|
|
|
33852
34134
|
code: "Permanent"
|
|
33853
34135
|
}
|
|
33854
34136
|
},
|
|
33855
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
34137
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.dateEffectiveFrom, true),
|
|
33856
34138
|
reason: {
|
|
33857
34139
|
code: "reason",
|
|
33858
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34140
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.disconnectionReason
|
|
33859
34141
|
},
|
|
33860
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
34142
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect153 = data.SewerageConnections) === null || _data$SewerageConnect153 === void 0 ? void 0 : (_data$SewerageConnect154 = _data$SewerageConnect153[0]) === null || _data$SewerageConnect154 === void 0 ? void 0 : _data$SewerageConnect154.documents
|
|
33861
34143
|
}
|
|
33862
34144
|
} : {
|
|
33863
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
34145
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : _data$WaterConnection152[0],
|
|
33864
34146
|
serviceType: "WATER",
|
|
33865
34147
|
WSDisconnectionForm: {
|
|
33866
|
-
type: data !== null && data !== void 0 && (_data$
|
|
34148
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection153 = data.WaterConnection) !== null && _data$WaterConnection153 !== void 0 && (_data$WaterConnection154 = _data$WaterConnection153[0]) !== null && _data$WaterConnection154 !== void 0 && _data$WaterConnection154.isDisconnectionTemporary ? {
|
|
33867
34149
|
code: "type",
|
|
33868
34150
|
value: {
|
|
33869
34151
|
name: "Temporary",
|
|
@@ -33880,12 +34162,12 @@ const WSApplicationDetails = () => {
|
|
|
33880
34162
|
code: "Permanent"
|
|
33881
34163
|
}
|
|
33882
34164
|
},
|
|
33883
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
34165
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.dateEffectiveFrom, true),
|
|
33884
34166
|
reason: {
|
|
33885
34167
|
code: "reason",
|
|
33886
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34168
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.disconnectionReason
|
|
33887
34169
|
},
|
|
33888
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
34170
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection159 = data.WaterConnection) === null || _data$WaterConnection159 === void 0 ? void 0 : (_data$WaterConnection160 = _data$WaterConnection159[0]) === null || _data$WaterConnection160 === void 0 ? void 0 : _data$WaterConnection160.documents
|
|
33889
34171
|
}
|
|
33890
34172
|
})
|
|
33891
34173
|
})) : null)))));
|
|
@@ -34251,7 +34533,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
|
|
|
34251
34533
|
};
|
|
34252
34534
|
|
|
34253
34535
|
const ConnectionDetails$5 = () => {
|
|
34254
|
-
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$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$
|
|
34536
|
+
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$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, _state45, _state46, _state49, _state50, _state51, _state52, _state53, _state54, _paymentDetails$data17, _paymentDetails$data18;
|
|
34255
34537
|
const {
|
|
34256
34538
|
t
|
|
34257
34539
|
} = reactI18next.useTranslation();
|
|
@@ -34307,6 +34589,8 @@ const ConnectionDetails$5 = () => {
|
|
|
34307
34589
|
setShowOptions(false);
|
|
34308
34590
|
};
|
|
34309
34591
|
Digit.Hooks.useClickOutside(menuRef, closeModal, showOptions);
|
|
34592
|
+
const propertyId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.propertyId);
|
|
34593
|
+
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection5 = data.WaterConnection) === null || _data$WaterConnection5 === void 0 ? void 0 : (_data$WaterConnection6 = _data$WaterConnection5[0]) === null || _data$WaterConnection6 === void 0 ? void 0 : _data$WaterConnection6.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect5 = data.SewerageConnections) === null || _data$SewerageConnect5 === void 0 ? void 0 : (_data$SewerageConnect6 = _data$SewerageConnect5[0]) === null || _data$SewerageConnect6 === void 0 ? void 0 : _data$SewerageConnect6.tenantId) || tenantId;
|
|
34310
34594
|
const {
|
|
34311
34595
|
isLoading: isPTLoading,
|
|
34312
34596
|
isError: isPTError,
|
|
@@ -34314,17 +34598,20 @@ const ConnectionDetails$5 = () => {
|
|
|
34314
34598
|
data: PTData
|
|
34315
34599
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
34316
34600
|
filters: {
|
|
34317
|
-
propertyIds:
|
|
34318
|
-
}
|
|
34601
|
+
propertyIds: propertyId
|
|
34602
|
+
},
|
|
34603
|
+
tenantId: propertyTenantId
|
|
34319
34604
|
}, {
|
|
34320
34605
|
filters: {
|
|
34321
|
-
propertyIds:
|
|
34606
|
+
propertyIds: propertyId
|
|
34322
34607
|
},
|
|
34608
|
+
tenantId: propertyTenantId,
|
|
34609
|
+
enabled: !!propertyId,
|
|
34323
34610
|
privacy: Digit.Utils.getPrivacyObject()
|
|
34324
34611
|
});
|
|
34325
34612
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
34326
34613
|
privacy: {
|
|
34327
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection7 = data.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : (_data$WaterConnection8 = _data$WaterConnection7[0]) === null || _data$WaterConnection8 === void 0 ? void 0 : (_data$WaterConnection9 = _data$WaterConnection8.connectionHolders) === null || _data$WaterConnection9 === void 0 ? void 0 : (_data$WaterConnection0 = _data$WaterConnection9[0]) === null || _data$WaterConnection0 === void 0 ? void 0 : _data$WaterConnection0.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
34614
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection7 = data.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : (_data$WaterConnection8 = _data$WaterConnection7[0]) === null || _data$WaterConnection8 === void 0 ? void 0 : (_data$WaterConnection9 = _data$WaterConnection8.connectionHolders) === null || _data$WaterConnection9 === void 0 ? void 0 : (_data$WaterConnection0 = _data$WaterConnection9[0]) === null || _data$WaterConnection0 === void 0 ? void 0 : _data$WaterConnection0.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect7 = data.SewerageConnections) === null || _data$SewerageConnect7 === void 0 ? void 0 : (_data$SewerageConnect8 = _data$SewerageConnect7[0]) === null || _data$SewerageConnect8 === void 0 ? void 0 : (_data$SewerageConnect9 = _data$SewerageConnect8.connectionHolders) === null || _data$SewerageConnect9 === void 0 ? void 0 : (_data$SewerageConnect0 = _data$SewerageConnect9[0]) === null || _data$SewerageConnect0 === void 0 ? void 0 : _data$SewerageConnect0.uuid,
|
|
34328
34615
|
fieldName: "connectionHoldersMobileNumber",
|
|
34329
34616
|
model: "WnSConnectionOwner"
|
|
34330
34617
|
}
|
|
@@ -34354,9 +34641,9 @@ const ConnectionDetails$5 = () => {
|
|
|
34354
34641
|
});
|
|
34355
34642
|
const handleDownloadPdf = function () {
|
|
34356
34643
|
try {
|
|
34357
|
-
var _data$WaterConnection1, _data$WaterConnection10, _data$
|
|
34358
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection1 = data.WaterConnection) === null || _data$WaterConnection1 === void 0 ? void 0 : (_data$WaterConnection10 = _data$WaterConnection1[0]) === null || _data$WaterConnection10 === void 0 ? void 0 : _data$WaterConnection10.tenantId) || (data === null || data === void 0 ? void 0 : (_data$
|
|
34359
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection11 = data.WaterConnection) === null || _data$WaterConnection11 === void 0 ? void 0 : _data$WaterConnection11[0]) || (data === null || data === void 0 ? void 0 : (_data$
|
|
34644
|
+
var _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$SewerageConnect11, _PTData$Properties;
|
|
34645
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection1 = data.WaterConnection) === null || _data$WaterConnection1 === void 0 ? void 0 : (_data$WaterConnection10 = _data$WaterConnection1[0]) === null || _data$WaterConnection10 === void 0 ? void 0 : _data$WaterConnection10.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect1 = data.SewerageConnections) === null || _data$SewerageConnect1 === void 0 ? void 0 : (_data$SewerageConnect10 = _data$SewerageConnect1[0]) === null || _data$SewerageConnect10 === void 0 ? void 0 : _data$SewerageConnect10.tenantId);
|
|
34646
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection11 = data.WaterConnection) === null || _data$WaterConnection11 === void 0 ? void 0 : _data$WaterConnection11[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect11 = data.SewerageConnections) === null || _data$SewerageConnect11 === void 0 ? void 0 : _data$SewerageConnect11[0]);
|
|
34360
34647
|
const PDFdata = getConnectionDetailsPDF({
|
|
34361
34648
|
...res
|
|
34362
34649
|
}, {
|
|
@@ -34802,12 +35089,12 @@ const ConnectionDetails$5 = () => {
|
|
|
34802
35089
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34803
35090
|
className: "border-none",
|
|
34804
35091
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
34805
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection16 = data.WaterConnection) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : (_data$WaterConnection18 = _data$WaterConnection17.connectionHolders) === null || _data$WaterConnection18 === void 0 ? void 0 : (_data$WaterConnection19 = _data$WaterConnection18[0]) === null || _data$WaterConnection19 === void 0 ? void 0 : _data$WaterConnection19.gender : data === null || data === void 0 ? void 0 : (_data$
|
|
35092
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection16 = data.WaterConnection) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : (_data$WaterConnection18 = _data$WaterConnection17.connectionHolders) === null || _data$WaterConnection18 === void 0 ? void 0 : (_data$WaterConnection19 = _data$WaterConnection18[0]) === null || _data$WaterConnection19 === void 0 ? void 0 : _data$WaterConnection19.gender : data === null || data === void 0 ? void 0 : (_data$SewerageConnect12 = data.SewerageConnections) === null || _data$SewerageConnect12 === void 0 ? void 0 : (_data$SewerageConnect13 = _data$SewerageConnect12[0]) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13.connectionHolders) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : _data$SewerageConnect15.gender,
|
|
34806
35093
|
textStyle: {
|
|
34807
35094
|
whiteSpace: "pre"
|
|
34808
35095
|
},
|
|
34809
35096
|
privacy: {
|
|
34810
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection20 = data.WaterConnection) === null || _data$WaterConnection20 === void 0 ? void 0 : (_data$WaterConnection21 = _data$WaterConnection20[0]) === null || _data$WaterConnection21 === void 0 ? void 0 : (_data$WaterConnection22 = _data$WaterConnection21.connectionHolders) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
35097
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection20 = data.WaterConnection) === null || _data$WaterConnection20 === void 0 ? void 0 : (_data$WaterConnection21 = _data$WaterConnection20[0]) === null || _data$WaterConnection21 === void 0 ? void 0 : (_data$WaterConnection22 = _data$WaterConnection21.connectionHolders) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect16 = data.SewerageConnections) === null || _data$SewerageConnect16 === void 0 ? void 0 : (_data$SewerageConnect17 = _data$SewerageConnect16[0]) === null || _data$SewerageConnect17 === void 0 ? void 0 : (_data$SewerageConnect18 = _data$SewerageConnect17.connectionHolders) === null || _data$SewerageConnect18 === void 0 ? void 0 : (_data$SewerageConnect19 = _data$SewerageConnect18[0]) === null || _data$SewerageConnect19 === void 0 ? void 0 : _data$SewerageConnect19.uuid,
|
|
34811
35098
|
fieldName: "gender",
|
|
34812
35099
|
model: "WnSConnectionOwner",
|
|
34813
35100
|
showValue: false,
|
|
@@ -34825,12 +35112,12 @@ const ConnectionDetails$5 = () => {
|
|
|
34825
35112
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34826
35113
|
className: "border-none",
|
|
34827
35114
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
34828
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : (_data$WaterConnection25 = _data$WaterConnection24[0]) === null || _data$WaterConnection25 === void 0 ? void 0 : (_data$WaterConnection26 = _data$WaterConnection25.connectionHolders) === null || _data$WaterConnection26 === void 0 ? void 0 : (_data$WaterConnection27 = _data$WaterConnection26[0]) === null || _data$WaterConnection27 === void 0 ? void 0 : _data$WaterConnection27.mobileNumber : data === null || data === void 0 ? void 0 : (_data$
|
|
35115
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : (_data$WaterConnection25 = _data$WaterConnection24[0]) === null || _data$WaterConnection25 === void 0 ? void 0 : (_data$WaterConnection26 = _data$WaterConnection25.connectionHolders) === null || _data$WaterConnection26 === void 0 ? void 0 : (_data$WaterConnection27 = _data$WaterConnection26[0]) === null || _data$WaterConnection27 === void 0 ? void 0 : _data$WaterConnection27.mobileNumber : data === null || data === void 0 ? void 0 : (_data$SewerageConnect20 = data.SewerageConnections) === null || _data$SewerageConnect20 === void 0 ? void 0 : (_data$SewerageConnect21 = _data$SewerageConnect20[0]) === null || _data$SewerageConnect21 === void 0 ? void 0 : (_data$SewerageConnect22 = _data$SewerageConnect21.connectionHolders) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.mobileNumber,
|
|
34829
35116
|
textStyle: {
|
|
34830
35117
|
whiteSpace: "pre"
|
|
34831
35118
|
},
|
|
34832
35119
|
privacy: {
|
|
34833
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection28 = data.WaterConnection) === null || _data$WaterConnection28 === void 0 ? void 0 : (_data$WaterConnection29 = _data$WaterConnection28[0]) === null || _data$WaterConnection29 === void 0 ? void 0 : (_data$WaterConnection30 = _data$WaterConnection29.connectionHolders) === null || _data$WaterConnection30 === void 0 ? void 0 : (_data$WaterConnection31 = _data$WaterConnection30[0]) === null || _data$WaterConnection31 === void 0 ? void 0 : _data$WaterConnection31.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
35120
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection28 = data.WaterConnection) === null || _data$WaterConnection28 === void 0 ? void 0 : (_data$WaterConnection29 = _data$WaterConnection28[0]) === null || _data$WaterConnection29 === void 0 ? void 0 : (_data$WaterConnection30 = _data$WaterConnection29.connectionHolders) === null || _data$WaterConnection30 === void 0 ? void 0 : (_data$WaterConnection31 = _data$WaterConnection30[0]) === null || _data$WaterConnection31 === void 0 ? void 0 : _data$WaterConnection31.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : (_data$SewerageConnect25 = _data$SewerageConnect24[0]) === null || _data$SewerageConnect25 === void 0 ? void 0 : (_data$SewerageConnect26 = _data$SewerageConnect25.connectionHolders) === null || _data$SewerageConnect26 === void 0 ? void 0 : (_data$SewerageConnect27 = _data$SewerageConnect26[0]) === null || _data$SewerageConnect27 === void 0 ? void 0 : _data$SewerageConnect27.uuid,
|
|
34834
35121
|
fieldName: "connectionHoldersMobileNumber",
|
|
34835
35122
|
model: "WnSConnectionOwner",
|
|
34836
35123
|
showValue: false,
|
|
@@ -34848,12 +35135,12 @@ const ConnectionDetails$5 = () => {
|
|
|
34848
35135
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34849
35136
|
className: "border-none",
|
|
34850
35137
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
34851
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection32 = data.WaterConnection) === null || _data$WaterConnection32 === void 0 ? void 0 : (_data$WaterConnection33 = _data$WaterConnection32[0]) === null || _data$WaterConnection33 === void 0 ? void 0 : (_data$WaterConnection34 = _data$WaterConnection33.connectionHolders) === null || _data$WaterConnection34 === void 0 ? void 0 : (_data$WaterConnection35 = _data$WaterConnection34[0]) === null || _data$WaterConnection35 === void 0 ? void 0 : _data$WaterConnection35.fatherOrHusbandName : data === null || data === void 0 ? void 0 : (_data$
|
|
35138
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection32 = data.WaterConnection) === null || _data$WaterConnection32 === void 0 ? void 0 : (_data$WaterConnection33 = _data$WaterConnection32[0]) === null || _data$WaterConnection33 === void 0 ? void 0 : (_data$WaterConnection34 = _data$WaterConnection33.connectionHolders) === null || _data$WaterConnection34 === void 0 ? void 0 : (_data$WaterConnection35 = _data$WaterConnection34[0]) === null || _data$WaterConnection35 === void 0 ? void 0 : _data$WaterConnection35.fatherOrHusbandName : data === null || data === void 0 ? void 0 : (_data$SewerageConnect28 = data.SewerageConnections) === null || _data$SewerageConnect28 === void 0 ? void 0 : (_data$SewerageConnect29 = _data$SewerageConnect28[0]) === null || _data$SewerageConnect29 === void 0 ? void 0 : (_data$SewerageConnect30 = _data$SewerageConnect29.connectionHolders) === null || _data$SewerageConnect30 === void 0 ? void 0 : (_data$SewerageConnect31 = _data$SewerageConnect30[0]) === null || _data$SewerageConnect31 === void 0 ? void 0 : _data$SewerageConnect31.fatherOrHusbandName,
|
|
34852
35139
|
textStyle: {
|
|
34853
35140
|
whiteSpace: "pre"
|
|
34854
35141
|
},
|
|
34855
35142
|
privacy: {
|
|
34856
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection36 = data.WaterConnection) === null || _data$WaterConnection36 === void 0 ? void 0 : (_data$WaterConnection37 = _data$WaterConnection36[0]) === null || _data$WaterConnection37 === void 0 ? void 0 : (_data$WaterConnection38 = _data$WaterConnection37.connectionHolders) === null || _data$WaterConnection38 === void 0 ? void 0 : (_data$WaterConnection39 = _data$WaterConnection38[0]) === null || _data$WaterConnection39 === void 0 ? void 0 : _data$WaterConnection39.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
35143
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection36 = data.WaterConnection) === null || _data$WaterConnection36 === void 0 ? void 0 : (_data$WaterConnection37 = _data$WaterConnection36[0]) === null || _data$WaterConnection37 === void 0 ? void 0 : (_data$WaterConnection38 = _data$WaterConnection37.connectionHolders) === null || _data$WaterConnection38 === void 0 ? void 0 : (_data$WaterConnection39 = _data$WaterConnection38[0]) === null || _data$WaterConnection39 === void 0 ? void 0 : _data$WaterConnection39.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect32 = data.SewerageConnections) === null || _data$SewerageConnect32 === void 0 ? void 0 : (_data$SewerageConnect33 = _data$SewerageConnect32[0]) === null || _data$SewerageConnect33 === void 0 ? void 0 : (_data$SewerageConnect34 = _data$SewerageConnect33.connectionHolders) === null || _data$SewerageConnect34 === void 0 ? void 0 : (_data$SewerageConnect35 = _data$SewerageConnect34[0]) === null || _data$SewerageConnect35 === void 0 ? void 0 : _data$SewerageConnect35.uuid,
|
|
34857
35144
|
fieldName: "fatherOrHusbandName",
|
|
34858
35145
|
model: "WnSConnectionOwner",
|
|
34859
35146
|
showValue: false,
|
|
@@ -34871,12 +35158,12 @@ const ConnectionDetails$5 = () => {
|
|
|
34871
35158
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34872
35159
|
className: "border-none",
|
|
34873
35160
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
34874
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection40 = data.WaterConnection) === null || _data$WaterConnection40 === void 0 ? void 0 : (_data$WaterConnection41 = _data$WaterConnection40[0]) === null || _data$WaterConnection41 === void 0 ? void 0 : (_data$WaterConnection42 = _data$WaterConnection41.connectionHolders) === null || _data$WaterConnection42 === void 0 ? void 0 : (_data$WaterConnection43 = _data$WaterConnection42[0]) === null || _data$WaterConnection43 === void 0 ? void 0 : _data$WaterConnection43.relationship : data === null || data === void 0 ? void 0 : (_data$
|
|
35161
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection40 = data.WaterConnection) === null || _data$WaterConnection40 === void 0 ? void 0 : (_data$WaterConnection41 = _data$WaterConnection40[0]) === null || _data$WaterConnection41 === void 0 ? void 0 : (_data$WaterConnection42 = _data$WaterConnection41.connectionHolders) === null || _data$WaterConnection42 === void 0 ? void 0 : (_data$WaterConnection43 = _data$WaterConnection42[0]) === null || _data$WaterConnection43 === void 0 ? void 0 : _data$WaterConnection43.relationship : data === null || data === void 0 ? void 0 : (_data$SewerageConnect36 = data.SewerageConnections) === null || _data$SewerageConnect36 === void 0 ? void 0 : (_data$SewerageConnect37 = _data$SewerageConnect36[0]) === null || _data$SewerageConnect37 === void 0 ? void 0 : (_data$SewerageConnect38 = _data$SewerageConnect37.connectionHolders) === null || _data$SewerageConnect38 === void 0 ? void 0 : (_data$SewerageConnect39 = _data$SewerageConnect38[0]) === null || _data$SewerageConnect39 === void 0 ? void 0 : _data$SewerageConnect39.relationship,
|
|
34875
35162
|
textStyle: {
|
|
34876
35163
|
whiteSpace: "pre"
|
|
34877
35164
|
},
|
|
34878
35165
|
privacy: {
|
|
34879
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection44 = data.WaterConnection) === null || _data$WaterConnection44 === void 0 ? void 0 : (_data$WaterConnection45 = _data$WaterConnection44[0]) === null || _data$WaterConnection45 === void 0 ? void 0 : (_data$WaterConnection46 = _data$WaterConnection45.connectionHolders) === null || _data$WaterConnection46 === void 0 ? void 0 : (_data$WaterConnection47 = _data$WaterConnection46[0]) === null || _data$WaterConnection47 === void 0 ? void 0 : _data$WaterConnection47.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
35166
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection44 = data.WaterConnection) === null || _data$WaterConnection44 === void 0 ? void 0 : (_data$WaterConnection45 = _data$WaterConnection44[0]) === null || _data$WaterConnection45 === void 0 ? void 0 : (_data$WaterConnection46 = _data$WaterConnection45.connectionHolders) === null || _data$WaterConnection46 === void 0 ? void 0 : (_data$WaterConnection47 = _data$WaterConnection46[0]) === null || _data$WaterConnection47 === void 0 ? void 0 : _data$WaterConnection47.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : (_data$SewerageConnect41 = _data$SewerageConnect40[0]) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41.connectionHolders) === null || _data$SewerageConnect42 === void 0 ? void 0 : (_data$SewerageConnect43 = _data$SewerageConnect42[0]) === null || _data$SewerageConnect43 === void 0 ? void 0 : _data$SewerageConnect43.uuid,
|
|
34880
35167
|
fieldName: "relationship",
|
|
34881
35168
|
model: "WnSConnection",
|
|
34882
35169
|
showValue: false,
|
|
@@ -34894,12 +35181,12 @@ const ConnectionDetails$5 = () => {
|
|
|
34894
35181
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34895
35182
|
className: "border-none",
|
|
34896
35183
|
label: t("WS_OWN_EMAIL_IDNO_LABEL"),
|
|
34897
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49.connectionHolders) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0]) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.emailId : data === null || data === void 0 ? void 0 : (_data$
|
|
35184
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49.connectionHolders) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0]) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.emailId : data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0]) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45.connectionHolders) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0]) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.emailId,
|
|
34898
35185
|
textStyle: {
|
|
34899
35186
|
whiteSpace: "pre"
|
|
34900
35187
|
},
|
|
34901
35188
|
privacy: {
|
|
34902
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53.connectionHolders) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.uuid : data === null || data === void 0 ? void 0 : (_data$
|
|
35189
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53.connectionHolders) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect48 = data.SewerageConnections) === null || _data$SewerageConnect48 === void 0 ? void 0 : (_data$SewerageConnect49 = _data$SewerageConnect48[0]) === null || _data$SewerageConnect49 === void 0 ? void 0 : (_data$SewerageConnect50 = _data$SewerageConnect49.connectionHolders) === null || _data$SewerageConnect50 === void 0 ? void 0 : (_data$SewerageConnect51 = _data$SewerageConnect50[0]) === null || _data$SewerageConnect51 === void 0 ? void 0 : _data$SewerageConnect51.uuid,
|
|
34903
35190
|
fieldName: "connectionHoldersEmailId",
|
|
34904
35191
|
model: "WnSConnectionOwner",
|
|
34905
35192
|
showValue: false,
|
|
@@ -36206,6 +36493,14 @@ const EditApplication = _ref => {
|
|
|
36206
36493
|
...params,
|
|
36207
36494
|
...EditDetails
|
|
36208
36495
|
});
|
|
36496
|
+
} else if (Object.keys(params).length > 0 && (Waterresult || Sewarageresult)) {
|
|
36497
|
+
let currentApp = Waterresult || Sewarageresult;
|
|
36498
|
+
if (currentApp && currentApp.dueVerification && JSON.stringify(currentApp.dueVerification) !== JSON.stringify(params.dueVerification)) {
|
|
36499
|
+
setParams({
|
|
36500
|
+
...params,
|
|
36501
|
+
dueVerification: currentApp.dueVerification
|
|
36502
|
+
});
|
|
36503
|
+
}
|
|
36209
36504
|
}
|
|
36210
36505
|
}, [Waterresult, Sewarageresult]);
|
|
36211
36506
|
const onSuccess = () => {
|
|
@@ -36250,6 +36545,20 @@ const EditApplication = _ref => {
|
|
|
36250
36545
|
config = config.slice(startIndex);
|
|
36251
36546
|
}
|
|
36252
36547
|
config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
|
|
36548
|
+
const desiredOrder = ["connection-details", "connection-holder", "djb-employee-details", "disability-details", "property-location-details", "property-water-details", "due-verification-details", "document-details"];
|
|
36549
|
+
let sortedConfig = [];
|
|
36550
|
+
desiredOrder.forEach(route => {
|
|
36551
|
+
const found = config.find(c => c.route === route);
|
|
36552
|
+
if (found) {
|
|
36553
|
+
sortedConfig.push(found);
|
|
36554
|
+
}
|
|
36555
|
+
});
|
|
36556
|
+
config.forEach(c => {
|
|
36557
|
+
if (!sortedConfig.find(sc => sc.route === c.route)) {
|
|
36558
|
+
sortedConfig.push(c);
|
|
36559
|
+
}
|
|
36560
|
+
});
|
|
36561
|
+
config = sortedConfig;
|
|
36253
36562
|
config.forEach(c => {
|
|
36254
36563
|
if (c.component === "WSDocumentDetails") {
|
|
36255
36564
|
c.component = "WSDocumentsEmployee";
|
|
@@ -43454,22 +43763,7 @@ const configWSApproverApplication = _ref => {
|
|
|
43454
43763
|
cancel: "CS_COMMON_CANCEL"
|
|
43455
43764
|
},
|
|
43456
43765
|
form: [{
|
|
43457
|
-
body: [...commentsField
|
|
43458
|
-
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
43459
|
-
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
43460
|
-
id: "workflow-doc",
|
|
43461
|
-
accept: ".jpg,.pdf,.png,.jpeg",
|
|
43462
|
-
onUpload: selectFile,
|
|
43463
|
-
onDelete: () => {
|
|
43464
|
-
setUploadedFile(null);
|
|
43465
|
-
},
|
|
43466
|
-
message: uploadedFile ? `1 ${t(`ES_PT_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
|
|
43467
|
-
error: error,
|
|
43468
|
-
iserror: error,
|
|
43469
|
-
showHintBelow: true,
|
|
43470
|
-
hintText: "WS_HINT_TEXT_LABEL"
|
|
43471
|
-
})
|
|
43472
|
-
}]
|
|
43766
|
+
body: [...commentsField]
|
|
43473
43767
|
}]
|
|
43474
43768
|
};
|
|
43475
43769
|
};
|
|
@@ -43520,21 +43814,6 @@ const configWSDisConnectApplication = _ref => {
|
|
|
43520
43814
|
populators: {
|
|
43521
43815
|
name: "comments"
|
|
43522
43816
|
}
|
|
43523
|
-
}, {
|
|
43524
|
-
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
43525
|
-
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
43526
|
-
id: "workflow-doc",
|
|
43527
|
-
accept: ".jpg,.pdf,.png,.jpeg",
|
|
43528
|
-
onUpload: selectFile,
|
|
43529
|
-
onDelete: () => {
|
|
43530
|
-
setUploadedFile(null);
|
|
43531
|
-
},
|
|
43532
|
-
message: uploadedFile ? `1 ${t(`ES_PT_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
|
|
43533
|
-
error: error,
|
|
43534
|
-
iserror: error,
|
|
43535
|
-
showHintBelow: true,
|
|
43536
|
-
hintText: "WS_HINT_TEXT_LABEL"
|
|
43537
|
-
})
|
|
43538
43817
|
}]
|
|
43539
43818
|
}]
|
|
43540
43819
|
};
|
|
@@ -48431,7 +48710,7 @@ const styles = {
|
|
|
48431
48710
|
boxShadow: "none"
|
|
48432
48711
|
},
|
|
48433
48712
|
table: {
|
|
48434
|
-
|
|
48713
|
+
width: "100%",
|
|
48435
48714
|
backgroundColor: "rgba(250, 250, 250, var(--bg-opacity))"
|
|
48436
48715
|
},
|
|
48437
48716
|
cell: {
|
|
@@ -56919,29 +57198,29 @@ const WSEditApplicationByConfig = () => {
|
|
|
56919
57198
|
};
|
|
56920
57199
|
|
|
56921
57200
|
const GetDisconnectionDetails = () => {
|
|
56922
|
-
var _location, _applicationDetails$a, _applicationDetails$p, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$p4, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _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$data17, _workflowDetails$data18, _applicationDetails$
|
|
57201
|
+
var _location, _applicationDetails$a, _applicationDetails$a2, _propertySearchData$P, _propertySearchData$P2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$p, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$p4, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _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$data17, _workflowDetails$data18, _applicationDetails$a5, _applicationDetails$a6, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$p8, _applicationDetails$p9, _applicationDetails$p0;
|
|
56923
57202
|
const getDisconnectionNoticeSearch = function () {
|
|
56924
57203
|
try {
|
|
56925
|
-
var _applicationDetails$
|
|
57204
|
+
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0;
|
|
56926
57205
|
let key = "ws-waterdisconnectionnotice";
|
|
56927
57206
|
let details = {
|
|
56928
57207
|
WaterConnection: [{
|
|
56929
57208
|
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData),
|
|
56930
|
-
property:
|
|
57209
|
+
property: propertyDetails
|
|
56931
57210
|
}]
|
|
56932
57211
|
};
|
|
56933
|
-
if (!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
57212
|
+
if (!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a8 = applicationDetails.applicationData) !== null && _applicationDetails$a8 !== void 0 && (_applicationDetails$a9 = _applicationDetails$a8.applicationType) !== null && _applicationDetails$a9 !== void 0 && _applicationDetails$a9.includes("WATER"))) {
|
|
56934
57213
|
key = "ws-seweragedisconnectionnotice";
|
|
56935
57214
|
details = {
|
|
56936
57215
|
SewerageConnection: [{
|
|
56937
57216
|
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData),
|
|
56938
|
-
property:
|
|
57217
|
+
property: propertyDetails
|
|
56939
57218
|
}]
|
|
56940
57219
|
};
|
|
56941
57220
|
}
|
|
56942
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
56943
|
-
var _applicationDetails$
|
|
56944
|
-
return Promise.resolve(Digit.PaymentService.printReciept(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57221
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.tenantId, details, key)).then(function (response) {
|
|
57222
|
+
var _applicationDetails$a1;
|
|
57223
|
+
return Promise.resolve(Digit.PaymentService.printReciept(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a1 = applicationDetails.applicationData) === null || _applicationDetails$a1 === void 0 ? void 0 : _applicationDetails$a1.tenantId, {
|
|
56945
57224
|
fileStoreIds: response.filestoreIds[0]
|
|
56946
57225
|
})).then(function (fileStore) {
|
|
56947
57226
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -56976,11 +57255,44 @@ const GetDisconnectionDetails = () => {
|
|
|
56976
57255
|
} = Digit.Hooks.ws.useDisConnectionDetails(t, tenantId, applicationNumber, serviceType, {
|
|
56977
57256
|
privacy: Digit.Utils.getPrivacyObject()
|
|
56978
57257
|
});
|
|
57258
|
+
const propertyId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.propertyId;
|
|
57259
|
+
const propertyTenantId = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.tenantId) || tenantId;
|
|
57260
|
+
const {
|
|
57261
|
+
data: propertySearchData,
|
|
57262
|
+
isLoading: isPropertyLoading
|
|
57263
|
+
} = Digit.Hooks.pt.usePropertySearch({
|
|
57264
|
+
filters: {
|
|
57265
|
+
propertyIds: propertyId
|
|
57266
|
+
},
|
|
57267
|
+
tenantId: propertyTenantId
|
|
57268
|
+
}, {
|
|
57269
|
+
filters: {
|
|
57270
|
+
propertyIds: propertyId
|
|
57271
|
+
},
|
|
57272
|
+
tenantId: propertyTenantId,
|
|
57273
|
+
enabled: !!propertyId,
|
|
57274
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
57275
|
+
});
|
|
57276
|
+
const propertyDetails = (propertySearchData === null || propertySearchData === void 0 ? void 0 : (_propertySearchData$P = propertySearchData.Properties) === null || _propertySearchData$P === void 0 ? void 0 : _propertySearchData$P[0]) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails);
|
|
57277
|
+
const detailsWithPropertyAddress = propertySearchData !== null && propertySearchData !== void 0 && (_propertySearchData$P2 = propertySearchData.Properties) !== null && _propertySearchData$P2 !== void 0 && _propertySearchData$P2[0] ? {
|
|
57278
|
+
...applicationDetails,
|
|
57279
|
+
propertyDetails,
|
|
57280
|
+
applicationDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.map(section => {
|
|
57281
|
+
var _section$values;
|
|
57282
|
+
return (section === null || section === void 0 ? void 0 : section.title) === "WS_COMMON_PROPERTY_DETAILS" ? {
|
|
57283
|
+
...section,
|
|
57284
|
+
values: (_section$values = section.values) === null || _section$values === void 0 ? void 0 : _section$values.map(value => (value === null || value === void 0 ? void 0 : value.title) === "WS_PROPERTY_ADDRESS_LABEL" ? {
|
|
57285
|
+
...value,
|
|
57286
|
+
value: getAddress(propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address, t) || t("CS_NA")
|
|
57287
|
+
} : value)
|
|
57288
|
+
} : section;
|
|
57289
|
+
})
|
|
57290
|
+
} : applicationDetails;
|
|
56979
57291
|
const {
|
|
56980
57292
|
isServicesMasterLoading,
|
|
56981
57293
|
data: servicesMasterData
|
|
56982
57294
|
} = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-masters", ["WSEditApplicationByConfigUser"]);
|
|
56983
|
-
const appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57295
|
+
const appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.applicationStatus) || "";
|
|
56984
57296
|
let workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
56985
57297
|
tenantId: tenantId,
|
|
56986
57298
|
id: applicationNumber,
|
|
@@ -57009,12 +57321,12 @@ const GetDisconnectionDetails = () => {
|
|
|
57009
57321
|
if (data.action == "EDIT") workflowDetails.data.actionState.nextActions.push(data);
|
|
57010
57322
|
});
|
|
57011
57323
|
}
|
|
57012
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57324
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.applicationStatus) == "DISCONNECTION_EXECUTED") {
|
|
57013
57325
|
var _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23;
|
|
57014
57326
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data21 = workflowDetails.data) !== null && _workflowDetails$data21 !== void 0 && (_workflowDetails$data22 = _workflowDetails$data21.actionState) !== null && _workflowDetails$data22 !== void 0 && _workflowDetails$data22.nextActions) workflowDetails.data.actionState.nextActions = [];
|
|
57015
57327
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data23 = workflowDetails.data) !== null && _workflowDetails$data23 !== void 0 && _workflowDetails$data23.nextActions) workflowDetails.data.nextActions = [];
|
|
57016
57328
|
}
|
|
57017
|
-
const applicationNo = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57329
|
+
const applicationNo = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.applicationNo) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) || applicationNumber;
|
|
57018
57330
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.nextActions) === null || _workflowDetails$data25 === void 0 ? void 0 : _workflowDetails$data25.forEach(action => {
|
|
57019
57331
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
57020
57332
|
action.redirectionUrll = {
|
|
@@ -57067,15 +57379,41 @@ const GetDisconnectionDetails = () => {
|
|
|
57067
57379
|
};
|
|
57068
57380
|
}
|
|
57069
57381
|
});
|
|
57382
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data32 = workflowDetails.data) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32.actionState) === null || _workflowDetails$data33 === void 0 ? void 0 : (_workflowDetails$data34 = _workflowDetails$data33.nextActions) === null || _workflowDetails$data34 === void 0 ? void 0 : _workflowDetails$data34.forEach(action => {
|
|
57383
|
+
if ((action === null || action === void 0 ? void 0 : action.action) === "EXECUTE_DISCONNECTION") {
|
|
57384
|
+
action.redirectionUrl = {
|
|
57385
|
+
action: "EXECUTE_DISCONNECTION",
|
|
57386
|
+
pathname: `/digit-ui/employee/ws/execute-disconnection`,
|
|
57387
|
+
state: {
|
|
57388
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
57389
|
+
action: action,
|
|
57390
|
+
serviceType: serviceType
|
|
57391
|
+
}
|
|
57392
|
+
};
|
|
57393
|
+
}
|
|
57394
|
+
});
|
|
57395
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data35 = workflowDetails.data) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35.nextActions) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.forEach(action => {
|
|
57396
|
+
if ((action === null || action === void 0 ? void 0 : action.action) === "EXECUTE_DISCONNECTION") {
|
|
57397
|
+
action.redirectionUrl = {
|
|
57398
|
+
action: "EXECUTE_DISCONNECTION",
|
|
57399
|
+
pathname: `/digit-ui/employee/ws/execute-disconnection`,
|
|
57400
|
+
state: {
|
|
57401
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
57402
|
+
action: action,
|
|
57403
|
+
serviceType: serviceType
|
|
57404
|
+
}
|
|
57405
|
+
};
|
|
57406
|
+
}
|
|
57407
|
+
});
|
|
57070
57408
|
const handleDownloadPdf = function () {
|
|
57071
57409
|
try {
|
|
57072
|
-
var _applicationDetails$
|
|
57073
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57410
|
+
var _applicationDetails$a7;
|
|
57411
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.tenantId;
|
|
57074
57412
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
57075
57413
|
const PDFdata = getWSDisconnectionApplicationForm({
|
|
57076
57414
|
...result
|
|
57077
57415
|
}, {
|
|
57078
|
-
...
|
|
57416
|
+
...propertyDetails
|
|
57079
57417
|
}, tenantInfo, t);
|
|
57080
57418
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
57081
57419
|
return Promise.resolve();
|
|
@@ -57145,9 +57483,9 @@ const GetDisconnectionDetails = () => {
|
|
|
57145
57483
|
optionsClassName: "employee-options-btn-className",
|
|
57146
57484
|
ref: menuRef
|
|
57147
57485
|
})), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
|
|
57148
|
-
applicationDetails:
|
|
57149
|
-
isLoading: isLoading || isServicesMasterLoading,
|
|
57150
|
-
isDataLoading: isLoading || isServicesMasterLoading,
|
|
57486
|
+
applicationDetails: detailsWithPropertyAddress,
|
|
57487
|
+
isLoading: isLoading || isPropertyLoading || isServicesMasterLoading,
|
|
57488
|
+
isDataLoading: isLoading || isPropertyLoading || isServicesMasterLoading,
|
|
57151
57489
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
57152
57490
|
mutate: mutate,
|
|
57153
57491
|
workflowDetails: workflowDetails,
|
|
@@ -58733,12 +59071,12 @@ const OLDApplication = () => {
|
|
|
58733
59071
|
label: "WS_COMMON_CONNECTION_DETAIL"
|
|
58734
59072
|
}, {
|
|
58735
59073
|
label: "WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER"
|
|
59074
|
+
}, {
|
|
59075
|
+
label: "WS_DJB_EMPLOYEE"
|
|
58736
59076
|
}, {
|
|
58737
59077
|
label: "PT_LOCATION_DETAILS"
|
|
58738
59078
|
}, {
|
|
58739
59079
|
label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
|
|
58740
|
-
}, {
|
|
58741
|
-
label: "WS_DJB_EMPLOYEE"
|
|
58742
59080
|
}, {
|
|
58743
59081
|
label: "WS_DOCUMENTS"
|
|
58744
59082
|
}, {
|
|
@@ -59334,6 +59672,473 @@ const OLDApplication = () => {
|
|
|
59334
59672
|
})));
|
|
59335
59673
|
};
|
|
59336
59674
|
|
|
59675
|
+
const FitterSandbox = _ref => {
|
|
59676
|
+
var _applicationData$addi;
|
|
59677
|
+
let {
|
|
59678
|
+
t,
|
|
59679
|
+
action,
|
|
59680
|
+
applicationData,
|
|
59681
|
+
submitAction,
|
|
59682
|
+
closeModal
|
|
59683
|
+
} = _ref;
|
|
59684
|
+
const [beforeImage, setBeforeImage] = React.useState(null);
|
|
59685
|
+
const [afterImage, setAfterImage] = React.useState(null);
|
|
59686
|
+
const [meterReading, setMeterReading] = React.useState("");
|
|
59687
|
+
const [gpsLocation, setGpsLocation] = React.useState("Fetching GPS...");
|
|
59688
|
+
const [timestamp, setTimestamp] = React.useState("");
|
|
59689
|
+
const [error, setError] = React.useState(null);
|
|
59690
|
+
const handleUpload = function (e, setFileId) {
|
|
59691
|
+
try {
|
|
59692
|
+
const file = e.target.files[0];
|
|
59693
|
+
if (!file) return Promise.resolve();
|
|
59694
|
+
const _temp = _catch(function () {
|
|
59695
|
+
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
59696
|
+
var _response$data, _response$data$files;
|
|
59697
|
+
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
59698
|
+
setFileId(response.data.files[0].fileStoreId);
|
|
59699
|
+
}
|
|
59700
|
+
});
|
|
59701
|
+
}, function () {
|
|
59702
|
+
setError("File upload failed.");
|
|
59703
|
+
});
|
|
59704
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
59705
|
+
} catch (e) {
|
|
59706
|
+
return Promise.reject(e);
|
|
59707
|
+
}
|
|
59708
|
+
};
|
|
59709
|
+
React.useEffect(() => {
|
|
59710
|
+
if (navigator.geolocation) {
|
|
59711
|
+
navigator.geolocation.getCurrentPosition(position => {
|
|
59712
|
+
setGpsLocation(`<b>${position.coords.latitude.toFixed(4)}° N, ${position.coords.longitude.toFixed(4)}° E</b>`);
|
|
59713
|
+
}, error => {
|
|
59714
|
+
setGpsLocation("<b>Location access denied</b>");
|
|
59715
|
+
});
|
|
59716
|
+
} else {
|
|
59717
|
+
setGpsLocation("<b>Geolocation not supported</b>");
|
|
59718
|
+
}
|
|
59719
|
+
const now = new Date();
|
|
59720
|
+
setTimestamp(`<b>${now.toLocaleDateString('en-US')}, ${now.toLocaleTimeString('en-US')}</b>`);
|
|
59721
|
+
}, []);
|
|
59722
|
+
const handleSubmit = () => {
|
|
59723
|
+
if (!beforeImage || !afterImage || !meterReading) {
|
|
59724
|
+
setError("Please provide Before Photograph, Final Meter Index Reading, and After Photograph.");
|
|
59725
|
+
return;
|
|
59726
|
+
}
|
|
59727
|
+
const payload = {
|
|
59728
|
+
...applicationData
|
|
59729
|
+
};
|
|
59730
|
+
const docArray = [{
|
|
59731
|
+
documentType: "BEFORE_PHOTOGRAPH",
|
|
59732
|
+
fileStoreId: beforeImage,
|
|
59733
|
+
id: null,
|
|
59734
|
+
documentUid: beforeImage,
|
|
59735
|
+
documentNumber: null,
|
|
59736
|
+
auditDetails: null,
|
|
59737
|
+
status: "ACTIVE",
|
|
59738
|
+
isVerified: false
|
|
59739
|
+
}, {
|
|
59740
|
+
documentType: "AFTER_PHOTOGRAPH",
|
|
59741
|
+
fileStoreId: afterImage,
|
|
59742
|
+
id: null,
|
|
59743
|
+
documentUid: afterImage,
|
|
59744
|
+
documentNumber: null,
|
|
59745
|
+
auditDetails: null,
|
|
59746
|
+
status: "ACTIVE",
|
|
59747
|
+
isVerified: false
|
|
59748
|
+
}];
|
|
59749
|
+
payload.connectionExecutionDate = Date.now();
|
|
59750
|
+
payload.disconnectionExecutionDate = Date.now();
|
|
59751
|
+
payload.wfDocuments = docArray;
|
|
59752
|
+
payload.documents = [...(payload.documents || []), ...docArray];
|
|
59753
|
+
payload.additionalDetails = {
|
|
59754
|
+
...payload.additionalDetails,
|
|
59755
|
+
finalMeterReading: meterReading,
|
|
59756
|
+
disconnectionGpsLocation: gpsLocation.replace(/<[^>]*>?/gm, ""),
|
|
59757
|
+
disconnectionTimestamp: timestamp.replace(/<[^>]*>?/gm, "")
|
|
59758
|
+
};
|
|
59759
|
+
payload.processInstance = {
|
|
59760
|
+
...payload.processInstance,
|
|
59761
|
+
action: action === null || action === void 0 ? void 0 : action.action,
|
|
59762
|
+
comment: `Meter Reading: ${meterReading} m3`,
|
|
59763
|
+
documents: docArray
|
|
59764
|
+
};
|
|
59765
|
+
if ((payload === null || payload === void 0 ? void 0 : payload.serviceType) === "WATER") {
|
|
59766
|
+
submitAction({
|
|
59767
|
+
WaterConnection: payload,
|
|
59768
|
+
disconnectRequest: true
|
|
59769
|
+
});
|
|
59770
|
+
} else {
|
|
59771
|
+
submitAction({
|
|
59772
|
+
SewerageConnection: payload,
|
|
59773
|
+
disconnectRequest: true
|
|
59774
|
+
});
|
|
59775
|
+
}
|
|
59776
|
+
};
|
|
59777
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
59778
|
+
style: {
|
|
59779
|
+
backgroundColor: "#fff9f9",
|
|
59780
|
+
padding: "24px",
|
|
59781
|
+
borderRadius: "8px",
|
|
59782
|
+
border: "1px solid #ffebeb"
|
|
59783
|
+
}
|
|
59784
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59785
|
+
style: {
|
|
59786
|
+
display: "flex",
|
|
59787
|
+
justifyContent: "space-between",
|
|
59788
|
+
alignItems: "flex-start",
|
|
59789
|
+
marginBottom: "24px"
|
|
59790
|
+
}
|
|
59791
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59792
|
+
style: {
|
|
59793
|
+
display: "flex",
|
|
59794
|
+
alignItems: "flex-start",
|
|
59795
|
+
gap: "12px"
|
|
59796
|
+
}
|
|
59797
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59798
|
+
style: {
|
|
59799
|
+
color: "#d4351c",
|
|
59800
|
+
marginTop: "4px"
|
|
59801
|
+
}
|
|
59802
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
59803
|
+
width: "24",
|
|
59804
|
+
height: "24",
|
|
59805
|
+
viewBox: "0 0 24 24",
|
|
59806
|
+
fill: "none",
|
|
59807
|
+
stroke: "currentColor",
|
|
59808
|
+
strokeWidth: "2",
|
|
59809
|
+
strokeLinecap: "round",
|
|
59810
|
+
strokeLinejoin: "round"
|
|
59811
|
+
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
59812
|
+
points: "22 12 18 12 15 21 9 3 6 12 2 12"
|
|
59813
|
+
}))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h2", {
|
|
59814
|
+
style: {
|
|
59815
|
+
fontSize: "16px",
|
|
59816
|
+
fontWeight: "700",
|
|
59817
|
+
color: "#3b1c1c",
|
|
59818
|
+
margin: 0,
|
|
59819
|
+
textTransform: "uppercase"
|
|
59820
|
+
}
|
|
59821
|
+
}, "FITTER SANDBOX MOBILE TERMINAL (DIGITAL VERIFICATION)"), /*#__PURE__*/React__default.createElement("p", {
|
|
59822
|
+
style: {
|
|
59823
|
+
fontSize: "14px",
|
|
59824
|
+
color: "#6e5e5e",
|
|
59825
|
+
margin: "4px 0 0 0"
|
|
59826
|
+
}
|
|
59827
|
+
}, "Simulate the physical field actions of Delhi Jal Board fitter ", (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.ownerName) || "Amit Kumar", "."))), /*#__PURE__*/React__default.createElement("div", {
|
|
59828
|
+
style: {
|
|
59829
|
+
backgroundColor: "#ffeded",
|
|
59830
|
+
color: "#d4351c",
|
|
59831
|
+
padding: "4px 12px",
|
|
59832
|
+
borderRadius: "4px",
|
|
59833
|
+
fontSize: "12px",
|
|
59834
|
+
fontWeight: "700"
|
|
59835
|
+
}
|
|
59836
|
+
}, "FIELD SIMULATOR")), /*#__PURE__*/React__default.createElement("div", {
|
|
59837
|
+
style: {
|
|
59838
|
+
display: "flex",
|
|
59839
|
+
gap: "16px",
|
|
59840
|
+
marginBottom: "24px"
|
|
59841
|
+
}
|
|
59842
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59843
|
+
style: {
|
|
59844
|
+
flex: 1,
|
|
59845
|
+
backgroundColor: "#ffffff",
|
|
59846
|
+
padding: "20px",
|
|
59847
|
+
borderRadius: "8px",
|
|
59848
|
+
border: "1px solid #eaebec",
|
|
59849
|
+
textAlign: "center"
|
|
59850
|
+
}
|
|
59851
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59852
|
+
style: {
|
|
59853
|
+
color: "#6a7b8c",
|
|
59854
|
+
marginBottom: "12px"
|
|
59855
|
+
}
|
|
59856
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
59857
|
+
width: "24",
|
|
59858
|
+
height: "24",
|
|
59859
|
+
viewBox: "0 0 24 24",
|
|
59860
|
+
fill: "none",
|
|
59861
|
+
stroke: "currentColor",
|
|
59862
|
+
strokeWidth: "2"
|
|
59863
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
59864
|
+
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
59865
|
+
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
59866
|
+
points: "17 8 12 3 7 8"
|
|
59867
|
+
}), /*#__PURE__*/React__default.createElement("line", {
|
|
59868
|
+
x1: "12",
|
|
59869
|
+
y1: "3",
|
|
59870
|
+
x2: "12",
|
|
59871
|
+
y2: "15"
|
|
59872
|
+
}))), /*#__PURE__*/React__default.createElement("h3", {
|
|
59873
|
+
style: {
|
|
59874
|
+
fontSize: "16px",
|
|
59875
|
+
fontWeight: "700",
|
|
59876
|
+
margin: "0 0 8px 0"
|
|
59877
|
+
}
|
|
59878
|
+
}, "Before Photograph"), /*#__PURE__*/React__default.createElement("p", {
|
|
59879
|
+
style: {
|
|
59880
|
+
fontSize: "12px",
|
|
59881
|
+
color: "#8a96a3",
|
|
59882
|
+
margin: "0 0 16px 0"
|
|
59883
|
+
}
|
|
59884
|
+
}, "Upload Pre-Disconnection site"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
59885
|
+
id: "before-photo",
|
|
59886
|
+
accept: ".jpg,.png,.jpeg",
|
|
59887
|
+
onUpload: e => handleUpload(e, setBeforeImage),
|
|
59888
|
+
onDelete: () => setBeforeImage(null),
|
|
59889
|
+
message: beforeImage ? `1 File Uploaded` : `Upload`,
|
|
59890
|
+
showHintBelow: false
|
|
59891
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
59892
|
+
style: {
|
|
59893
|
+
flex: 1,
|
|
59894
|
+
backgroundColor: "#ffffff",
|
|
59895
|
+
padding: "20px",
|
|
59896
|
+
borderRadius: "8px",
|
|
59897
|
+
border: "1px solid #eaebec"
|
|
59898
|
+
}
|
|
59899
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
59900
|
+
style: {
|
|
59901
|
+
fontSize: "12px",
|
|
59902
|
+
fontWeight: "700",
|
|
59903
|
+
color: "#8a96a3",
|
|
59904
|
+
margin: "0 0 8px 0",
|
|
59905
|
+
textTransform: "uppercase"
|
|
59906
|
+
}
|
|
59907
|
+
}, "FINAL METER INDEX READING"), /*#__PURE__*/React__default.createElement("div", {
|
|
59908
|
+
style: {
|
|
59909
|
+
display: "flex",
|
|
59910
|
+
alignItems: "center",
|
|
59911
|
+
gap: "8px",
|
|
59912
|
+
marginBottom: "8px"
|
|
59913
|
+
}
|
|
59914
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
59915
|
+
style: {
|
|
59916
|
+
margin: 0,
|
|
59917
|
+
flex: 1,
|
|
59918
|
+
fontSize: "18px",
|
|
59919
|
+
fontWeight: "600"
|
|
59920
|
+
},
|
|
59921
|
+
value: meterReading,
|
|
59922
|
+
onChange: e => setMeterReading(e.target.value),
|
|
59923
|
+
placeholder: "e.g. 1402.5"
|
|
59924
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
59925
|
+
style: {
|
|
59926
|
+
fontSize: "14px",
|
|
59927
|
+
fontWeight: "600",
|
|
59928
|
+
color: "#6a7b8c"
|
|
59929
|
+
}
|
|
59930
|
+
}, "m\xB3")), /*#__PURE__*/React__default.createElement("p", {
|
|
59931
|
+
style: {
|
|
59932
|
+
fontSize: "12px",
|
|
59933
|
+
color: "#8a96a3",
|
|
59934
|
+
margin: 0
|
|
59935
|
+
}
|
|
59936
|
+
}, "Locks absolute consumption meter index.")), /*#__PURE__*/React__default.createElement("div", {
|
|
59937
|
+
style: {
|
|
59938
|
+
flex: 1,
|
|
59939
|
+
backgroundColor: "#ffffff",
|
|
59940
|
+
padding: "20px",
|
|
59941
|
+
borderRadius: "8px",
|
|
59942
|
+
border: "1px solid #eaebec",
|
|
59943
|
+
textAlign: "center"
|
|
59944
|
+
}
|
|
59945
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
59946
|
+
style: {
|
|
59947
|
+
color: "#6a7b8c",
|
|
59948
|
+
marginBottom: "12px"
|
|
59949
|
+
}
|
|
59950
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
59951
|
+
width: "24",
|
|
59952
|
+
height: "24",
|
|
59953
|
+
viewBox: "0 0 24 24",
|
|
59954
|
+
fill: "none",
|
|
59955
|
+
stroke: "currentColor",
|
|
59956
|
+
strokeWidth: "2"
|
|
59957
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
59958
|
+
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
59959
|
+
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
59960
|
+
points: "17 8 12 3 7 8"
|
|
59961
|
+
}), /*#__PURE__*/React__default.createElement("line", {
|
|
59962
|
+
x1: "12",
|
|
59963
|
+
y1: "3",
|
|
59964
|
+
x2: "12",
|
|
59965
|
+
y2: "15"
|
|
59966
|
+
}))), /*#__PURE__*/React__default.createElement("h3", {
|
|
59967
|
+
style: {
|
|
59968
|
+
fontSize: "16px",
|
|
59969
|
+
fontWeight: "700",
|
|
59970
|
+
margin: "0 0 8px 0"
|
|
59971
|
+
}
|
|
59972
|
+
}, "After Photograph"), /*#__PURE__*/React__default.createElement("p", {
|
|
59973
|
+
style: {
|
|
59974
|
+
fontSize: "12px",
|
|
59975
|
+
color: "#8a96a3",
|
|
59976
|
+
margin: "0 0 16px 0"
|
|
59977
|
+
}
|
|
59978
|
+
}, "Upload Capped Line proof"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
59979
|
+
id: "after-photo",
|
|
59980
|
+
accept: ".jpg,.png,.jpeg",
|
|
59981
|
+
onUpload: e => handleUpload(e, setAfterImage),
|
|
59982
|
+
onDelete: () => setAfterImage(null),
|
|
59983
|
+
message: afterImage ? `1 File Uploaded` : `Upload`,
|
|
59984
|
+
showHintBelow: false
|
|
59985
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
59986
|
+
style: {
|
|
59987
|
+
backgroundColor: "#ffffff",
|
|
59988
|
+
padding: "16px",
|
|
59989
|
+
borderRadius: "8px",
|
|
59990
|
+
border: "1px solid #eaebec",
|
|
59991
|
+
display: "flex",
|
|
59992
|
+
justifyContent: "space-between",
|
|
59993
|
+
marginBottom: "24px",
|
|
59994
|
+
fontFamily: "monospace",
|
|
59995
|
+
fontSize: "14px",
|
|
59996
|
+
color: "#6a7b8c"
|
|
59997
|
+
}
|
|
59998
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "GPS Location: ", /*#__PURE__*/React__default.createElement("span", {
|
|
59999
|
+
dangerouslySetInnerHTML: {
|
|
60000
|
+
__html: gpsLocation
|
|
60001
|
+
}
|
|
60002
|
+
})), /*#__PURE__*/React__default.createElement("div", null, "Timestamp: ", /*#__PURE__*/React__default.createElement("span", {
|
|
60003
|
+
dangerouslySetInnerHTML: {
|
|
60004
|
+
__html: timestamp
|
|
60005
|
+
}
|
|
60006
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ButtonSelector, {
|
|
60007
|
+
label: /*#__PURE__*/React__default.createElement("div", {
|
|
60008
|
+
style: {
|
|
60009
|
+
display: "flex",
|
|
60010
|
+
alignItems: "center",
|
|
60011
|
+
justifyContent: "center",
|
|
60012
|
+
gap: "8px"
|
|
60013
|
+
}
|
|
60014
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
60015
|
+
width: "18",
|
|
60016
|
+
height: "18",
|
|
60017
|
+
viewBox: "0 0 24 24",
|
|
60018
|
+
fill: "none",
|
|
60019
|
+
stroke: "#28a745",
|
|
60020
|
+
strokeWidth: "2"
|
|
60021
|
+
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
60022
|
+
points: "20 6 9 17 4 12"
|
|
60023
|
+
})), /*#__PURE__*/React__default.createElement("span", {
|
|
60024
|
+
style: {
|
|
60025
|
+
color: "#6a7b8c"
|
|
60026
|
+
}
|
|
60027
|
+
}, "Submit")),
|
|
60028
|
+
onSubmit: handleSubmit,
|
|
60029
|
+
style: {
|
|
60030
|
+
width: "100%",
|
|
60031
|
+
backgroundColor: "#e9ecef",
|
|
60032
|
+
border: "none",
|
|
60033
|
+
borderRadius: "8px",
|
|
60034
|
+
fontWeight: "700"
|
|
60035
|
+
},
|
|
60036
|
+
textStyles: {
|
|
60037
|
+
width: "100%"
|
|
60038
|
+
}
|
|
60039
|
+
}), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
60040
|
+
error: true,
|
|
60041
|
+
label: error,
|
|
60042
|
+
onClose: () => setError(null)
|
|
60043
|
+
}));
|
|
60044
|
+
};
|
|
60045
|
+
|
|
60046
|
+
const WSExecuteDisconnection = () => {
|
|
60047
|
+
var _applicationData$appl;
|
|
60048
|
+
const {
|
|
60049
|
+
t
|
|
60050
|
+
} = reactI18next.useTranslation();
|
|
60051
|
+
let {
|
|
60052
|
+
state
|
|
60053
|
+
} = reactRouterDom.useLocation();
|
|
60054
|
+
const applicationData = state === null || state === void 0 ? void 0 : state.applicationData;
|
|
60055
|
+
const action = state === null || state === void 0 ? void 0 : state.action;
|
|
60056
|
+
const serviceType = (state === null || state === void 0 ? void 0 : state.serviceType) || (applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationNo) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("WS") ? "WATER" : "SEWERAGE");
|
|
60057
|
+
const history = reactRouterDom.useHistory();
|
|
60058
|
+
const [showConfirmation, setShowConfirmation] = React.useState(false);
|
|
60059
|
+
const [payload, setPayload] = React.useState(null);
|
|
60060
|
+
const [isEnableLoader, setIsEnableLoader] = React.useState(false);
|
|
60061
|
+
const [showToast, setShowToast] = React.useState(null);
|
|
60062
|
+
const {
|
|
60063
|
+
isLoading: updatingApplication,
|
|
60064
|
+
isError: updateApplicationError,
|
|
60065
|
+
data: updateResponse,
|
|
60066
|
+
error: updateError,
|
|
60067
|
+
mutate
|
|
60068
|
+
} = Digit.Hooks.ws.useWSApplicationActions(serviceType);
|
|
60069
|
+
const onSubmitAction = data => {
|
|
60070
|
+
setPayload(data);
|
|
60071
|
+
setShowConfirmation(true);
|
|
60072
|
+
};
|
|
60073
|
+
const executeAction = () => {
|
|
60074
|
+
setShowConfirmation(false);
|
|
60075
|
+
setIsEnableLoader(true);
|
|
60076
|
+
if (mutate) {
|
|
60077
|
+
mutate(payload, {
|
|
60078
|
+
onError: (error, variables) => {
|
|
60079
|
+
setIsEnableLoader(false);
|
|
60080
|
+
setShowToast({
|
|
60081
|
+
key: "error",
|
|
60082
|
+
message: error !== null && error !== void 0 && error.message ? error.message : error
|
|
60083
|
+
});
|
|
60084
|
+
},
|
|
60085
|
+
onSuccess: (data, variables) => {
|
|
60086
|
+
setIsEnableLoader(false);
|
|
60087
|
+
setShowToast({
|
|
60088
|
+
key: false,
|
|
60089
|
+
message: "Disconnection Executed Successfully"
|
|
60090
|
+
});
|
|
60091
|
+
setTimeout(() => {
|
|
60092
|
+
history.push(`/digit-ui/employee/ws/application-details?applicationNumber=${applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo}&service=${serviceType}`);
|
|
60093
|
+
}, 3000);
|
|
60094
|
+
}
|
|
60095
|
+
});
|
|
60096
|
+
}
|
|
60097
|
+
};
|
|
60098
|
+
if (isEnableLoader || updatingApplication) {
|
|
60099
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
60100
|
+
}
|
|
60101
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
60102
|
+
style: {
|
|
60103
|
+
padding: "20px"
|
|
60104
|
+
}
|
|
60105
|
+
}, /*#__PURE__*/React__default.createElement(FitterSandbox, {
|
|
60106
|
+
t: t,
|
|
60107
|
+
action: action,
|
|
60108
|
+
applicationData: applicationData,
|
|
60109
|
+
submitAction: onSubmitAction,
|
|
60110
|
+
closeModal: () => history.goBack()
|
|
60111
|
+
}), showConfirmation && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
60112
|
+
headerBarMain: /*#__PURE__*/React__default.createElement("h1", {
|
|
60113
|
+
className: "heading-m"
|
|
60114
|
+
}, "Confirmation"),
|
|
60115
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
|
|
60116
|
+
onClick: () => setShowConfirmation(false),
|
|
60117
|
+
style: {
|
|
60118
|
+
cursor: "pointer",
|
|
60119
|
+
fontSize: "16px",
|
|
60120
|
+
padding: "10px"
|
|
60121
|
+
}
|
|
60122
|
+
}, "\u2715"),
|
|
60123
|
+
actionCancelLabel: "Cancel",
|
|
60124
|
+
actionCancelOnSubmit: () => setShowConfirmation(false),
|
|
60125
|
+
actionSaveLabel: "Yes",
|
|
60126
|
+
actionSaveOnSubmit: executeAction
|
|
60127
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
60128
|
+
style: {
|
|
60129
|
+
padding: "16px"
|
|
60130
|
+
}
|
|
60131
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
60132
|
+
style: {
|
|
60133
|
+
fontSize: "16px"
|
|
60134
|
+
}
|
|
60135
|
+
}, "Are you sure you want to execute disconnection?"))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
60136
|
+
error: showToast.key === "error",
|
|
60137
|
+
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
60138
|
+
onClose: () => setShowToast(null)
|
|
60139
|
+
}));
|
|
60140
|
+
};
|
|
60141
|
+
|
|
59337
60142
|
const WSModule = _ref => {
|
|
59338
60143
|
var _Digit$SessionStorage;
|
|
59339
60144
|
let {
|
|
@@ -59391,6 +60196,9 @@ const WSLinks = _ref2 => {
|
|
|
59391
60196
|
}, {
|
|
59392
60197
|
link: `${matchPath}/mutation-application`,
|
|
59393
60198
|
i18nKey: t("WS_APPLY_MUTATION")
|
|
60199
|
+
}, {
|
|
60200
|
+
link: `${matchPath}/disconnect-application`,
|
|
60201
|
+
i18nKey: t("WS_DISCONNECTION")
|
|
59394
60202
|
}];
|
|
59395
60203
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenHomeCard, {
|
|
59396
60204
|
header: t("ACTION_TEST_WATER_AND_SEWERAGE"),
|
|
@@ -59497,7 +60305,8 @@ const componentsToRegister = {
|
|
|
59497
60305
|
WSSearchWaterConnectionViewIntegrated: SearchWaterConnectionViewIntegrated,
|
|
59498
60306
|
WSBulkBillGeneration: BulkBillGeneration,
|
|
59499
60307
|
WSOLDApplication: OLDApplication,
|
|
59500
|
-
WSDivyangjan: WSDivyangjan
|
|
60308
|
+
WSDivyangjan: WSDivyangjan,
|
|
60309
|
+
WSExecuteDisconnection: WSExecuteDisconnection
|
|
59501
60310
|
};
|
|
59502
60311
|
const initWSComponents = () => {
|
|
59503
60312
|
Object.entries(componentsToRegister).forEach(_ref3 => {
|