@djb25/digit-ui-module-ws 1.0.92 → 1.0.94
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 +1027 -313
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1027 -313
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -938,7 +938,7 @@ const convertToSWUpdate = data => {
|
|
|
938
938
|
};
|
|
939
939
|
const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
940
940
|
try {
|
|
941
|
-
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$
|
|
941
|
+
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio50, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _plumberInfo2, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _storeData$applicatio68, _storeData$applicatio69, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
|
|
942
942
|
const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
|
|
943
943
|
let plumberInfo = [];
|
|
944
944
|
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
|
|
@@ -958,7 +958,7 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
958
958
|
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio28 = storeData.applicationData) === null || _storeData$applicatio28 === void 0 ? void 0 : _storeData$applicatio28.status,
|
|
959
959
|
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio29 = storeData.applicationData) === null || _storeData$applicatio29 === void 0 ? void 0 : _storeData$applicatio29.connectionNo,
|
|
960
960
|
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio30 = storeData.applicationData) === null || _storeData$applicatio30 === void 0 ? void 0 : _storeData$applicatio30.connectionHolders,
|
|
961
|
-
applicationType: "
|
|
961
|
+
applicationType: "DISCONNECT_WATER_CONNECTION",
|
|
962
962
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
963
963
|
isdisconnection: true,
|
|
964
964
|
isDisconnectionTemporary: (data === null || data === void 0 ? void 0 : (_data$type = data.type) === null || _data$type === void 0 ? void 0 : (_data$type$value = _data$type.value) === null || _data$type$value === void 0 ? void 0 : _data$type$value.code) === "Temporary" || (data === null || data === void 0 ? void 0 : (_data$type2 = data.type) === null || _data$type2 === void 0 ? void 0 : (_data$type2$value = _data$type2.value) === null || _data$type2$value === void 0 ? void 0 : _data$type2$value.code) === "TEMPORARY" ? true : false,
|
|
@@ -980,29 +980,31 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
980
980
|
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio41 = storeData.applicationData) === null || _storeData$applicatio41 === void 0 ? void 0 : _storeData$applicatio41.noOfTaps,
|
|
981
981
|
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio42 = storeData.applicationData) === null || _storeData$applicatio42 === void 0 ? void 0 : _storeData$applicatio42.additionalDetails,
|
|
982
982
|
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio43 = storeData.applicationData) === null || _storeData$applicatio43 === void 0 ? void 0 : _storeData$applicatio43.tenantId,
|
|
983
|
-
connectionType: storeData.applicationData.connectionType || null,
|
|
984
|
-
waterSource: storeData.applicationData.waterSource || null,
|
|
983
|
+
connectionType: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio44 = storeData.applicationData) === null || _storeData$applicatio44 === void 0 ? void 0 : _storeData$applicatio44.connectionType) || null,
|
|
984
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio45 = storeData.applicationData) === null || _storeData$applicatio45 === void 0 ? void 0 : _storeData$applicatio45.waterSource) || null,
|
|
985
985
|
processInstance: {
|
|
986
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
986
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio46 = storeData.applicationData) === null || _storeData$applicatio46 === void 0 ? void 0 : _storeData$applicatio46.processInstance),
|
|
987
|
+
businessService: "DisconnectWSConnection",
|
|
987
988
|
action: "INITIATE"
|
|
988
989
|
},
|
|
989
990
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
990
991
|
},
|
|
991
992
|
disconnectRequest: true
|
|
992
993
|
};
|
|
993
|
-
if (storeData.applicationData.connectionType) {
|
|
994
|
-
|
|
995
|
-
if (storeData.applicationData.
|
|
994
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio47 = storeData.applicationData) !== null && _storeData$applicatio47 !== void 0 && _storeData$applicatio47.connectionType) {
|
|
995
|
+
var _storeData$applicatio48, _storeData$applicatio49;
|
|
996
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio48 = storeData.applicationData) !== null && _storeData$applicatio48 !== void 0 && _storeData$applicatio48.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData.applicationData.meterInstallationDate;
|
|
997
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio49 = storeData.applicationData) !== null && _storeData$applicatio49 !== void 0 && _storeData$applicatio49.meterId) wsPayload.WaterConnection.meterId = storeData.applicationData.meterId;
|
|
996
998
|
}
|
|
997
999
|
let swPayload = {
|
|
998
1000
|
SewerageConnection: {
|
|
999
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1000
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1001
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1002
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1003
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1004
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1005
|
-
applicationType: "
|
|
1001
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio50 = storeData.applicationData) === null || _storeData$applicatio50 === void 0 ? void 0 : _storeData$applicatio50.id,
|
|
1002
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio51 = storeData.applicationData) === null || _storeData$applicatio51 === void 0 ? void 0 : _storeData$applicatio51.applicationNo,
|
|
1003
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio52 = storeData.applicationData) === null || _storeData$applicatio52 === void 0 ? void 0 : _storeData$applicatio52.applicationStatus,
|
|
1004
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio53 = storeData.applicationData) === null || _storeData$applicatio53 === void 0 ? void 0 : _storeData$applicatio53.status,
|
|
1005
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio54 = storeData.applicationData) === null || _storeData$applicatio54 === void 0 ? void 0 : _storeData$applicatio54.connectionNo,
|
|
1006
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio55 = storeData.applicationData) === null || _storeData$applicatio55 === void 0 ? void 0 : _storeData$applicatio55.connectionHolders,
|
|
1007
|
+
applicationType: "DISCONNECT_SEWERAGE_CONNECTION",
|
|
1006
1008
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1007
1009
|
isdisconnection: true,
|
|
1008
1010
|
isDisconnectionTemporary: (data === null || data === void 0 ? void 0 : (_data$type3 = data.type) === null || _data$type3 === void 0 ? void 0 : (_data$type3$value = _data$type3.value) === null || _data$type3$value === void 0 ? void 0 : _data$type3$value.code) === "Temporary" ? true : false,
|
|
@@ -1010,25 +1012,26 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1010
1012
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1011
1013
|
water: false,
|
|
1012
1014
|
sewerage: true,
|
|
1013
|
-
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1014
|
-
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1015
|
+
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio56 = storeData.applicationData) === null || _storeData$applicatio56 === void 0 ? void 0 : _storeData$applicatio56.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio57 = storeData.applicationData) === null || _storeData$applicatio57 === void 0 ? void 0 : _storeData$applicatio57.proposedWaterClosets),
|
|
1016
|
+
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio58 = storeData.applicationData) === null || _storeData$applicatio58 === void 0 ? void 0 : _storeData$applicatio58.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio59 = storeData.applicationData) === null || _storeData$applicatio59 === void 0 ? void 0 : _storeData$applicatio59.proposedToilets),
|
|
1015
1017
|
service: "Sewerage",
|
|
1016
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1017
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1018
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio60 = storeData.applicationData) === null || _storeData$applicatio60 === void 0 ? void 0 : _storeData$applicatio60.property,
|
|
1019
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio61 = storeData.applicationData) === null || _storeData$applicatio61 === void 0 ? void 0 : _storeData$applicatio61.propertyId,
|
|
1018
1020
|
oldConnectionNo: null,
|
|
1019
1021
|
plumberInfo: ((_plumberInfo2 = plumberInfo) === null || _plumberInfo2 === void 0 ? void 0 : _plumberInfo2.length) > 0 ? plumberInfo : null,
|
|
1020
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1022
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio62 = storeData.applicationData) === null || _storeData$applicatio62 === void 0 ? void 0 : _storeData$applicatio62.roadCuttingInfo,
|
|
1021
1023
|
roadCuttingArea: null,
|
|
1022
1024
|
roadType: null,
|
|
1023
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1024
|
-
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1025
|
-
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1026
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1027
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1025
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio63 = storeData.applicationData) === null || _storeData$applicatio63 === void 0 ? void 0 : _storeData$applicatio63.connectionExecutionDate,
|
|
1026
|
+
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio64 = storeData.applicationData) === null || _storeData$applicatio64 === void 0 ? void 0 : _storeData$applicatio64.noOfWaterClosets,
|
|
1027
|
+
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio65 = storeData.applicationData) === null || _storeData$applicatio65 === void 0 ? void 0 : _storeData$applicatio65.noOfToilets,
|
|
1028
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio66 = storeData.applicationData) === null || _storeData$applicatio66 === void 0 ? void 0 : _storeData$applicatio66.additionalDetails,
|
|
1029
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio67 = storeData.applicationData) === null || _storeData$applicatio67 === void 0 ? void 0 : _storeData$applicatio67.tenantId,
|
|
1028
1030
|
connectionType: "Non Metered",
|
|
1029
|
-
waterSource: storeData.applicationData.waterSource || null,
|
|
1031
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio68 = storeData.applicationData) === null || _storeData$applicatio68 === void 0 ? void 0 : _storeData$applicatio68.waterSource) || null,
|
|
1030
1032
|
processInstance: {
|
|
1031
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1033
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio69 = storeData.applicationData) === null || _storeData$applicatio69 === void 0 ? void 0 : _storeData$applicatio69.processInstance),
|
|
1034
|
+
businessService: "DisconnectSWConnection",
|
|
1032
1035
|
action: "INITIATE"
|
|
1033
1036
|
},
|
|
1034
1037
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
@@ -1044,26 +1047,26 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1044
1047
|
};
|
|
1045
1048
|
const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
1046
1049
|
try {
|
|
1047
|
-
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$
|
|
1050
|
+
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio102, _storeData$applicatio103, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _plumberInfo3, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _plumberInfo4, _storeData$applicatio128, _storeData$applicatio129, _storeData$applicatio130, _storeData$applicatio131, _storeData$applicatio132, _storeData$applicatio133, _storeData$applicatio134;
|
|
1048
1051
|
const user = (_Digit$UserService$ge0 = Digit.UserService.getUser()) === null || _Digit$UserService$ge0 === void 0 ? void 0 : (_Digit$UserService$ge1 = _Digit$UserService$ge0.info) === null || _Digit$UserService$ge1 === void 0 ? void 0 : _Digit$UserService$ge1.type;
|
|
1049
1052
|
let plumberInfo = [];
|
|
1050
|
-
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1051
|
-
var _storeData$
|
|
1053
|
+
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio70 = storeData.applicationData) === null || _storeData$applicatio70 === void 0 ? void 0 : (_storeData$applicatio71 = _storeData$applicatio70.plumberInfo) === null || _storeData$applicatio71 === void 0 ? void 0 : _storeData$applicatio71.length) > 0) {
|
|
1054
|
+
var _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _storeData$applicatio76, _storeData$applicatio77, _storeData$applicatio78, _storeData$applicatio79, _storeData$applicatio80, _storeData$applicatio81, _storeData$applicatio82, _storeData$applicatio83, _storeData$applicatio84, _storeData$applicatio85, _storeData$applicatio86, _storeData$applicatio87, _storeData$applicatio88, _storeData$applicatio89, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95;
|
|
1052
1055
|
let plumberInfoData = {};
|
|
1053
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1054
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1055
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1056
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1056
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio72 = storeData.applicationData) !== null && _storeData$applicatio72 !== void 0 && (_storeData$applicatio73 = _storeData$applicatio72.plumberInfo) !== null && _storeData$applicatio73 !== void 0 && (_storeData$applicatio74 = _storeData$applicatio73[0]) !== null && _storeData$applicatio74 !== void 0 && _storeData$applicatio74.licenseNo) plumberInfoData.licenseNo = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio75 = storeData.applicationData) === null || _storeData$applicatio75 === void 0 ? void 0 : (_storeData$applicatio76 = _storeData$applicatio75.plumberInfo) === null || _storeData$applicatio76 === void 0 ? void 0 : (_storeData$applicatio77 = _storeData$applicatio76[0]) === null || _storeData$applicatio77 === void 0 ? void 0 : _storeData$applicatio77.licenseNo;
|
|
1057
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio78 = storeData.applicationData) !== null && _storeData$applicatio78 !== void 0 && (_storeData$applicatio79 = _storeData$applicatio78.plumberInfo) !== null && _storeData$applicatio79 !== void 0 && (_storeData$applicatio80 = _storeData$applicatio79[0]) !== null && _storeData$applicatio80 !== void 0 && _storeData$applicatio80.mobileNumber) plumberInfoData.mobileNumber = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio81 = storeData.applicationData) === null || _storeData$applicatio81 === void 0 ? void 0 : (_storeData$applicatio82 = _storeData$applicatio81.plumberInfo) === null || _storeData$applicatio82 === void 0 ? void 0 : (_storeData$applicatio83 = _storeData$applicatio82[0]) === null || _storeData$applicatio83 === void 0 ? void 0 : _storeData$applicatio83.mobileNumber;
|
|
1058
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio84 = storeData.applicationData) !== null && _storeData$applicatio84 !== void 0 && (_storeData$applicatio85 = _storeData$applicatio84.plumberInfo) !== null && _storeData$applicatio85 !== void 0 && (_storeData$applicatio86 = _storeData$applicatio85[0]) !== null && _storeData$applicatio86 !== void 0 && _storeData$applicatio86.id) plumberInfoData.id = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio87 = storeData.applicationData) === null || _storeData$applicatio87 === void 0 ? void 0 : (_storeData$applicatio88 = _storeData$applicatio87.plumberInfo) === null || _storeData$applicatio88 === void 0 ? void 0 : (_storeData$applicatio89 = _storeData$applicatio88[0]) === null || _storeData$applicatio89 === void 0 ? void 0 : _storeData$applicatio89.id;
|
|
1059
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio90 = storeData.applicationData) !== null && _storeData$applicatio90 !== void 0 && (_storeData$applicatio91 = _storeData$applicatio90.plumberInfo) !== null && _storeData$applicatio91 !== void 0 && (_storeData$applicatio92 = _storeData$applicatio91[0]) !== null && _storeData$applicatio92 !== void 0 && _storeData$applicatio92.name) plumberInfoData.name = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio93 = storeData.applicationData) === null || _storeData$applicatio93 === void 0 ? void 0 : (_storeData$applicatio94 = _storeData$applicatio93.plumberInfo) === null || _storeData$applicatio94 === void 0 ? void 0 : (_storeData$applicatio95 = _storeData$applicatio94[0]) === null || _storeData$applicatio95 === void 0 ? void 0 : _storeData$applicatio95.name;
|
|
1057
1060
|
plumberInfo = [plumberInfoData];
|
|
1058
1061
|
}
|
|
1059
1062
|
let wsPayload = {
|
|
1060
1063
|
WaterConnection: {
|
|
1061
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1062
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1063
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1064
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1065
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1066
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1064
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio96 = storeData.applicationData) === null || _storeData$applicatio96 === void 0 ? void 0 : _storeData$applicatio96.id,
|
|
1065
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio97 = storeData.applicationData) === null || _storeData$applicatio97 === void 0 ? void 0 : _storeData$applicatio97.applicationNo,
|
|
1066
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio98 = storeData.applicationData) === null || _storeData$applicatio98 === void 0 ? void 0 : _storeData$applicatio98.applicationStatus,
|
|
1067
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio99 = storeData.applicationData) === null || _storeData$applicatio99 === void 0 ? void 0 : _storeData$applicatio99.status,
|
|
1068
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio100 = storeData.applicationData) === null || _storeData$applicatio100 === void 0 ? void 0 : _storeData$applicatio100.connectionNo,
|
|
1069
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio101 = storeData.applicationData) === null || _storeData$applicatio101 === void 0 ? void 0 : _storeData$applicatio101.connectionHolders,
|
|
1067
1070
|
applicationType: "WATER_RECONNECTION",
|
|
1068
1071
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1069
1072
|
isdisconnection: true,
|
|
@@ -1072,24 +1075,24 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1072
1075
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1073
1076
|
water: true,
|
|
1074
1077
|
sewerage: false,
|
|
1075
|
-
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1076
|
-
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1078
|
+
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio102 = storeData.applicationData) === null || _storeData$applicatio102 === void 0 ? void 0 : _storeData$applicatio102.proposedTaps) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio103 = storeData.applicationData) === null || _storeData$applicatio103 === void 0 ? void 0 : _storeData$applicatio103.proposedTaps),
|
|
1079
|
+
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio104 = storeData.applicationData) === null || _storeData$applicatio104 === void 0 ? void 0 : (_storeData$applicatio105 = _storeData$applicatio104.proposedPipeSize) === null || _storeData$applicatio105 === void 0 ? void 0 : _storeData$applicatio105.size) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio106 = storeData.applicationData) === null || _storeData$applicatio106 === void 0 ? void 0 : (_storeData$applicatio107 = _storeData$applicatio106.proposedPipeSize) === null || _storeData$applicatio107 === void 0 ? void 0 : _storeData$applicatio107.size),
|
|
1077
1080
|
service: "Water",
|
|
1078
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1079
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1081
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio108 = storeData.applicationData) === null || _storeData$applicatio108 === void 0 ? void 0 : _storeData$applicatio108.property,
|
|
1082
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio109 = storeData.applicationData) === null || _storeData$applicatio109 === void 0 ? void 0 : _storeData$applicatio109.propertyId,
|
|
1080
1083
|
oldConnectionNo: null,
|
|
1081
1084
|
plumberInfo: ((_plumberInfo3 = plumberInfo) === null || _plumberInfo3 === void 0 ? void 0 : _plumberInfo3.length) > 0 ? plumberInfo : null,
|
|
1082
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1085
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio110 = storeData.applicationData) === null || _storeData$applicatio110 === void 0 ? void 0 : _storeData$applicatio110.roadCuttingInfo,
|
|
1083
1086
|
roadCuttingArea: null,
|
|
1084
1087
|
roadType: null,
|
|
1085
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1086
|
-
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1087
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1088
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1088
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio111 = storeData.applicationData) === null || _storeData$applicatio111 === void 0 ? void 0 : _storeData$applicatio111.connectionExecutionDate,
|
|
1089
|
+
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio112 = storeData.applicationData) === null || _storeData$applicatio112 === void 0 ? void 0 : _storeData$applicatio112.noOfTaps,
|
|
1090
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio113 = storeData.applicationData) === null || _storeData$applicatio113 === void 0 ? void 0 : _storeData$applicatio113.additionalDetails,
|
|
1091
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio114 = storeData.applicationData) === null || _storeData$applicatio114 === void 0 ? void 0 : _storeData$applicatio114.tenantId,
|
|
1089
1092
|
connectionType: storeData.applicationData.connectionType || null,
|
|
1090
1093
|
waterSource: storeData.applicationData.waterSource || null,
|
|
1091
1094
|
processInstance: {
|
|
1092
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1095
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio115 = storeData.applicationData) === null || _storeData$applicatio115 === void 0 ? void 0 : _storeData$applicatio115.processInstance),
|
|
1093
1096
|
action: "INITIATE",
|
|
1094
1097
|
businessService: "WSReconnection"
|
|
1095
1098
|
},
|
|
@@ -1103,12 +1106,12 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1103
1106
|
}
|
|
1104
1107
|
let swPayload = {
|
|
1105
1108
|
SewerageConnection: {
|
|
1106
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1107
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1108
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1109
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1110
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1111
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1109
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio116 = storeData.applicationData) === null || _storeData$applicatio116 === void 0 ? void 0 : _storeData$applicatio116.id,
|
|
1110
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio117 = storeData.applicationData) === null || _storeData$applicatio117 === void 0 ? void 0 : _storeData$applicatio117.applicationNo,
|
|
1111
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio118 = storeData.applicationData) === null || _storeData$applicatio118 === void 0 ? void 0 : _storeData$applicatio118.applicationStatus,
|
|
1112
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio119 = storeData.applicationData) === null || _storeData$applicatio119 === void 0 ? void 0 : _storeData$applicatio119.status,
|
|
1113
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio120 = storeData.applicationData) === null || _storeData$applicatio120 === void 0 ? void 0 : _storeData$applicatio120.connectionNo,
|
|
1114
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio121 = storeData.applicationData) === null || _storeData$applicatio121 === void 0 ? void 0 : _storeData$applicatio121.connectionHolders,
|
|
1112
1115
|
applicationType: "WATER_RECONNECTION",
|
|
1113
1116
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1114
1117
|
isdisconnection: true,
|
|
@@ -1117,25 +1120,25 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1117
1120
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1118
1121
|
water: false,
|
|
1119
1122
|
sewerage: true,
|
|
1120
|
-
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1121
|
-
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1123
|
+
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio122 = storeData.applicationData) === null || _storeData$applicatio122 === void 0 ? void 0 : _storeData$applicatio122.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio123 = storeData.applicationData) === null || _storeData$applicatio123 === void 0 ? void 0 : _storeData$applicatio123.proposedWaterClosets),
|
|
1124
|
+
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio124 = storeData.applicationData) === null || _storeData$applicatio124 === void 0 ? void 0 : _storeData$applicatio124.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio125 = storeData.applicationData) === null || _storeData$applicatio125 === void 0 ? void 0 : _storeData$applicatio125.proposedToilets),
|
|
1122
1125
|
service: "Sewerage",
|
|
1123
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1124
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1126
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio126 = storeData.applicationData) === null || _storeData$applicatio126 === void 0 ? void 0 : _storeData$applicatio126.property,
|
|
1127
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio127 = storeData.applicationData) === null || _storeData$applicatio127 === void 0 ? void 0 : _storeData$applicatio127.propertyId,
|
|
1125
1128
|
oldConnectionNo: null,
|
|
1126
1129
|
plumberInfo: ((_plumberInfo4 = plumberInfo) === null || _plumberInfo4 === void 0 ? void 0 : _plumberInfo4.length) > 0 ? plumberInfo : null,
|
|
1127
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1130
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio128 = storeData.applicationData) === null || _storeData$applicatio128 === void 0 ? void 0 : _storeData$applicatio128.roadCuttingInfo,
|
|
1128
1131
|
roadCuttingArea: null,
|
|
1129
1132
|
roadType: null,
|
|
1130
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1131
|
-
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1132
|
-
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1133
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1134
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1133
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio129 = storeData.applicationData) === null || _storeData$applicatio129 === void 0 ? void 0 : _storeData$applicatio129.connectionExecutionDate,
|
|
1134
|
+
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio130 = storeData.applicationData) === null || _storeData$applicatio130 === void 0 ? void 0 : _storeData$applicatio130.noOfWaterClosets,
|
|
1135
|
+
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio131 = storeData.applicationData) === null || _storeData$applicatio131 === void 0 ? void 0 : _storeData$applicatio131.noOfToilets,
|
|
1136
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio132 = storeData.applicationData) === null || _storeData$applicatio132 === void 0 ? void 0 : _storeData$applicatio132.additionalDetails,
|
|
1137
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio133 = storeData.applicationData) === null || _storeData$applicatio133 === void 0 ? void 0 : _storeData$applicatio133.tenantId,
|
|
1135
1138
|
connectionType: "Non Metered",
|
|
1136
1139
|
waterSource: storeData.applicationData.waterSource || null,
|
|
1137
1140
|
processInstance: {
|
|
1138
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1141
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio134 = storeData.applicationData) === null || _storeData$applicatio134 === void 0 ? void 0 : _storeData$applicatio134.processInstance),
|
|
1139
1142
|
action: "INITIATE",
|
|
1140
1143
|
businessService: "SWReconnection"
|
|
1141
1144
|
},
|
|
@@ -1151,7 +1154,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1151
1154
|
};
|
|
1152
1155
|
const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
|
|
1153
1156
|
try {
|
|
1154
|
-
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$
|
|
1157
|
+
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio135, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio136, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
|
|
1155
1158
|
const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
|
|
1156
1159
|
let wsPayload = {
|
|
1157
1160
|
WaterConnection: {
|
|
@@ -1164,7 +1167,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1164
1167
|
sewerage: false,
|
|
1165
1168
|
service: "Water",
|
|
1166
1169
|
processInstance: {
|
|
1167
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1170
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio135 = storeData.applicationData) === null || _storeData$applicatio135 === void 0 ? void 0 : _storeData$applicatio135.processInstance),
|
|
1168
1171
|
action: "RESUBMIT_APPLICATION"
|
|
1169
1172
|
},
|
|
1170
1173
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
@@ -1187,7 +1190,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1187
1190
|
sewerage: true,
|
|
1188
1191
|
service: "Sewerage",
|
|
1189
1192
|
processInstance: {
|
|
1190
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1193
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio136 = storeData.applicationData) === null || _storeData$applicatio136 === void 0 ? void 0 : _storeData$applicatio136.processInstance),
|
|
1191
1194
|
action: "RESUBMIT_APPLICATION"
|
|
1192
1195
|
},
|
|
1193
1196
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
@@ -1460,11 +1463,14 @@ const checkForEmployee = roles => {
|
|
|
1460
1463
|
return rolesArray === null || rolesArray === void 0 ? void 0 : rolesArray.length;
|
|
1461
1464
|
};
|
|
1462
1465
|
const getBusinessService = (data, applicationDetails) => {
|
|
1463
|
-
var _applicationDetails$a, _data$serviceType;
|
|
1466
|
+
var _applicationDetails$a, _data$serviceType, _data$serviceType2;
|
|
1464
1467
|
const appType = (data === null || data === void 0 ? void 0 : data.applicationType) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.applicationType) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationType);
|
|
1465
1468
|
if (appType !== null && appType !== void 0 && appType.includes("MUTATION") || data !== null && data !== void 0 && (_data$serviceType = data.serviceType) !== null && _data$serviceType !== void 0 && _data$serviceType.includes("MUTATION") || (data === null || data === void 0 ? void 0 : data.businessService) === "WS.MUTATION") {
|
|
1466
1469
|
return (data === null || data === void 0 ? void 0 : data.service) === "SEWERAGE" || (data === null || data === void 0 ? void 0 : data.serviceType) === "SEWERAGE" ? "SW.MUTATION" : "WS.MUTATION";
|
|
1467
1470
|
}
|
|
1471
|
+
if (appType !== null && appType !== void 0 && appType.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$serviceType2 = data.serviceType) !== null && _data$serviceType2 !== void 0 && _data$serviceType2.includes("DISCONNECT") || (data === null || data === void 0 ? void 0 : data.businessService) === "WS.DISCONNECTION") {
|
|
1472
|
+
return (data === null || data === void 0 ? void 0 : data.service) === "SEWERAGE" || (data === null || data === void 0 ? void 0 : data.serviceType) === "SEWERAGE" ? "SW.DISCONNECTION" : "WS.DISCONNECTION";
|
|
1473
|
+
}
|
|
1468
1474
|
if ((data === null || data === void 0 ? void 0 : data.service) == "WATER") return "WS.ONE_TIME_FEE";else return "SW.ONE_TIME_FEE";
|
|
1469
1475
|
};
|
|
1470
1476
|
const convertApplicationData = function (data, serviceType, modify, editByConfig, t) {
|
|
@@ -7891,7 +7897,7 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
7891
7897
|
});
|
|
7892
7898
|
|
|
7893
7899
|
const WSApplication = _ref => {
|
|
7894
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$
|
|
7900
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
|
|
7895
7901
|
let {
|
|
7896
7902
|
application
|
|
7897
7903
|
} = _ref;
|
|
@@ -7934,10 +7940,7 @@ const WSApplication = _ref => {
|
|
|
7934
7940
|
privacy: Digit.Utils.getPrivacyObject()
|
|
7935
7941
|
});
|
|
7936
7942
|
const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("MUTATION");
|
|
7937
|
-
const businessService = application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("SW") ? application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
|
|
7938
|
-
const fetchBillParams = {
|
|
7939
|
-
consumerCode: application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
|
|
7940
|
-
};
|
|
7943
|
+
const businessService = application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("SW") ? application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "SW.DISCONNECTION" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? "WS.DISCONNECTION" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
|
|
7941
7944
|
if (isLoading) {
|
|
7942
7945
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
7943
7946
|
}
|
|
@@ -7996,10 +7999,10 @@ const WSApplication = _ref => {
|
|
|
7996
7999
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
7997
8000
|
label: t("MAKE_PAYMENT"),
|
|
7998
8001
|
onSubmit: () => {
|
|
7999
|
-
var _application$
|
|
8002
|
+
var _application$applicat6, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat7, _application$applicat8;
|
|
8000
8003
|
history.push({
|
|
8001
|
-
pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$
|
|
8002
|
-
search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$
|
|
8004
|
+
pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
|
|
8005
|
+
search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
|
|
8003
8006
|
state: {}
|
|
8004
8007
|
});
|
|
8005
8008
|
}
|
|
@@ -11633,6 +11636,16 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
11633
11636
|
path: `/digit-ui/employee/ws/new-disconnection/docsrequired`,
|
|
11634
11637
|
label: t("WS_NEW_DISCONNECTION_DOCS_REQUIRED"),
|
|
11635
11638
|
show: location.pathname.includes("/new-disconnection/docsrequired") ? true : false
|
|
11639
|
+
}, {
|
|
11640
|
+
path: `/digit-ui/employee/ws/new-disconnection/k-number`,
|
|
11641
|
+
label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / K Number Verification`,
|
|
11642
|
+
show: location.pathname.includes("/new-disconnection/k-number") ? true : false,
|
|
11643
|
+
isBack: true
|
|
11644
|
+
}, {
|
|
11645
|
+
path: `/digit-ui/employee/ws/new-disconnection/consumer-details`,
|
|
11646
|
+
label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / Consumer Details`,
|
|
11647
|
+
show: location.pathname.includes("/new-disconnection/consumer-details") ? true : false,
|
|
11648
|
+
isBack: true
|
|
11636
11649
|
}, {
|
|
11637
11650
|
path: `/digit-ui/employee/ws/new-disconnection/application-form`,
|
|
11638
11651
|
label: isMobile ? `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}` : `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}`,
|
|
@@ -11821,7 +11834,7 @@ const App$1 = _ref2 => {
|
|
|
11821
11834
|
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");
|
|
11822
11835
|
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");
|
|
11823
11836
|
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");
|
|
11824
|
-
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/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/water/bulk-bill");
|
|
11837
|
+
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/water/bulk-bill");
|
|
11825
11838
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
11826
11839
|
return /*#__PURE__*/React.createElement("div", {
|
|
11827
11840
|
className: "app-container"
|
|
@@ -20211,6 +20224,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20211
20224
|
t
|
|
20212
20225
|
} = useTranslation();
|
|
20213
20226
|
const history = useHistory();
|
|
20227
|
+
const location = useLocation();
|
|
20214
20228
|
const match = useRouteMatch();
|
|
20215
20229
|
const tenantId = Digit.ULBService.getStateId();
|
|
20216
20230
|
const {
|
|
@@ -20278,7 +20292,8 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20278
20292
|
})), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20279
20293
|
label: t(`CS_COMMON_NEXT`),
|
|
20280
20294
|
onSubmit: () => {
|
|
20281
|
-
history.push(match.path.replace("docsrequired", "application-form"));
|
|
20295
|
+
history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
|
|
20296
|
+
history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
|
|
20282
20297
|
}
|
|
20283
20298
|
})));
|
|
20284
20299
|
}
|
|
@@ -20327,7 +20342,8 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20327
20342
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20328
20343
|
label: t("ACTION_TEST_APPLY"),
|
|
20329
20344
|
onSubmit: () => {
|
|
20330
|
-
history.push(match.path.replace("docsrequired", "application-form"));
|
|
20345
|
+
history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
|
|
20346
|
+
history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
|
|
20331
20347
|
},
|
|
20332
20348
|
style: {
|
|
20333
20349
|
margin: "10px 10px 0px 0px"
|
|
@@ -20336,6 +20352,556 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20336
20352
|
}))));
|
|
20337
20353
|
};
|
|
20338
20354
|
|
|
20355
|
+
const WSDisconnectionKNumber = _ref => {
|
|
20356
|
+
const history = useHistory();
|
|
20357
|
+
const location = useLocation();
|
|
20358
|
+
const match = useRouteMatch();
|
|
20359
|
+
const stored = Digit.SessionStorage.get("WS_DISCONNECTION");
|
|
20360
|
+
const queryParams = new URLSearchParams(location.search);
|
|
20361
|
+
const isFromConnectionDetails = queryParams.get("from") === "connection-details";
|
|
20362
|
+
const connectionNumberFromQuery = queryParams.get("connectionNumber") || "";
|
|
20363
|
+
const [kNumber, setKNumber] = useState(() => {
|
|
20364
|
+
var _stored$applicationDa;
|
|
20365
|
+
return isFromConnectionDetails ? connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa = stored.applicationData) === null || _stored$applicationDa === void 0 ? void 0 : _stored$applicationDa.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "" : "";
|
|
20366
|
+
});
|
|
20367
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
20368
|
+
const [showToast, setShowToast] = useState(null);
|
|
20369
|
+
const isMobileView = window.innerWidth < 768;
|
|
20370
|
+
const handleProceed = function () {
|
|
20371
|
+
try {
|
|
20372
|
+
var _stored$applicationDa2;
|
|
20373
|
+
const connectionNumber = kNumber || connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa2 = stored.applicationData) === null || _stored$applicationDa2 === void 0 ? void 0 : _stored$applicationDa2.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "";
|
|
20374
|
+
const trimmed = connectionNumber.trim();
|
|
20375
|
+
if (!trimmed) {
|
|
20376
|
+
setShowToast({
|
|
20377
|
+
key: "warning",
|
|
20378
|
+
message: "Please enter K Number / Connection ID"
|
|
20379
|
+
});
|
|
20380
|
+
return Promise.resolve();
|
|
20381
|
+
}
|
|
20382
|
+
setIsLoading(true);
|
|
20383
|
+
return Promise.resolve(_catch(function () {
|
|
20384
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
|
|
20385
|
+
const params = {
|
|
20386
|
+
connectionNumber: trimmed,
|
|
20387
|
+
searchType: "CONNECTION",
|
|
20388
|
+
isConnectionSearch: true
|
|
20389
|
+
};
|
|
20390
|
+
let detectedServiceType = "WATER";
|
|
20391
|
+
return Promise.resolve(Digit.WSService.search({
|
|
20392
|
+
tenantId,
|
|
20393
|
+
filters: params,
|
|
20394
|
+
businessService: "WS"
|
|
20395
|
+
}).catch(() => null)).then(function (wsResponse) {
|
|
20396
|
+
var _waterResponse$WaterC;
|
|
20397
|
+
function _temp2() {
|
|
20398
|
+
var _connection, _connection$connectio, _connection$connectio2, _connection2;
|
|
20399
|
+
if (!connection) {
|
|
20400
|
+
setIsLoading(false);
|
|
20401
|
+
setShowToast({
|
|
20402
|
+
key: "error",
|
|
20403
|
+
message: "Active connection not found for the given K Number"
|
|
20404
|
+
});
|
|
20405
|
+
return;
|
|
20406
|
+
}
|
|
20407
|
+
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);
|
|
20408
|
+
if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
|
|
20409
|
+
setIsLoading(false);
|
|
20410
|
+
setShowToast({
|
|
20411
|
+
key: "error",
|
|
20412
|
+
message: "No valid registered mobile number found for this connection"
|
|
20413
|
+
});
|
|
20414
|
+
return;
|
|
20415
|
+
}
|
|
20416
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20417
|
+
const payload = {
|
|
20418
|
+
otp: {
|
|
20419
|
+
mobileNumber: fetchedMobileNumber,
|
|
20420
|
+
tenantId: "dl",
|
|
20421
|
+
type: "register",
|
|
20422
|
+
userType: userType
|
|
20423
|
+
}
|
|
20424
|
+
};
|
|
20425
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
20426
|
+
var _connection3;
|
|
20427
|
+
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
20428
|
+
connection.serviceType = detectedServiceType;
|
|
20429
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
20430
|
+
...existingData,
|
|
20431
|
+
kNumber: trimmed,
|
|
20432
|
+
serviceType: detectedServiceType,
|
|
20433
|
+
applicationData: connection,
|
|
20434
|
+
connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
|
|
20435
|
+
});
|
|
20436
|
+
setIsLoading(false);
|
|
20437
|
+
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
20438
|
+
connection
|
|
20439
|
+
});
|
|
20440
|
+
});
|
|
20441
|
+
}
|
|
20442
|
+
const waterResponse = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.data) || wsResponse;
|
|
20443
|
+
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");
|
|
20444
|
+
const _temp = function () {
|
|
20445
|
+
if (!connection) {
|
|
20446
|
+
return Promise.resolve(Digit.WSService.search({
|
|
20447
|
+
tenantId,
|
|
20448
|
+
filters: params,
|
|
20449
|
+
businessService: "SW"
|
|
20450
|
+
}).catch(() => null)).then(function (swResponse) {
|
|
20451
|
+
var _sewerageResponse$Sew;
|
|
20452
|
+
const sewerageResponse = (swResponse === null || swResponse === void 0 ? void 0 : swResponse.data) || swResponse;
|
|
20453
|
+
connection = sewerageResponse === null || sewerageResponse === void 0 ? void 0 : (_sewerageResponse$Sew = sewerageResponse.SewerageConnections) === null || _sewerageResponse$Sew === void 0 ? void 0 : _sewerageResponse$Sew.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
|
|
20454
|
+
if (connection) detectedServiceType = "SEWERAGE";
|
|
20455
|
+
});
|
|
20456
|
+
}
|
|
20457
|
+
}();
|
|
20458
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
20459
|
+
});
|
|
20460
|
+
}, function (err) {
|
|
20461
|
+
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
20462
|
+
setIsLoading(false);
|
|
20463
|
+
setShowToast({
|
|
20464
|
+
key: "error",
|
|
20465
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to search connection"
|
|
20466
|
+
});
|
|
20467
|
+
}));
|
|
20468
|
+
} catch (e) {
|
|
20469
|
+
return Promise.reject(e);
|
|
20470
|
+
}
|
|
20471
|
+
};
|
|
20472
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
|
|
20473
|
+
style: {
|
|
20474
|
+
marginBottom: "20px",
|
|
20475
|
+
padding: isMobileView ? "12px" : "24px"
|
|
20476
|
+
}
|
|
20477
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20478
|
+
style: {
|
|
20479
|
+
display: "flex",
|
|
20480
|
+
alignItems: "center",
|
|
20481
|
+
marginBottom: "8px",
|
|
20482
|
+
gap: "10px"
|
|
20483
|
+
}
|
|
20484
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20485
|
+
style: {
|
|
20486
|
+
width: "36px",
|
|
20487
|
+
height: "36px",
|
|
20488
|
+
borderRadius: "50%",
|
|
20489
|
+
backgroundColor: "#00497e",
|
|
20490
|
+
color: "#fff",
|
|
20491
|
+
display: "flex",
|
|
20492
|
+
alignItems: "center",
|
|
20493
|
+
justifyContent: "center",
|
|
20494
|
+
fontWeight: "bold",
|
|
20495
|
+
fontSize: "16px",
|
|
20496
|
+
flexShrink: 0
|
|
20497
|
+
}
|
|
20498
|
+
}, "1"), /*#__PURE__*/React.createElement("h2", {
|
|
20499
|
+
style: {
|
|
20500
|
+
fontSize: isMobileView ? "16px" : "20px",
|
|
20501
|
+
fontWeight: "700",
|
|
20502
|
+
margin: 0,
|
|
20503
|
+
color: "#0B0C0C"
|
|
20504
|
+
}
|
|
20505
|
+
}, "Connection Authentication")), /*#__PURE__*/React.createElement(CardText, {
|
|
20506
|
+
style: {
|
|
20507
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20508
|
+
marginBottom: "20px",
|
|
20509
|
+
color: "#6C6C6C"
|
|
20510
|
+
}
|
|
20511
|
+
}, "Please enter your K Number to verify and proceed with the disconnection application."), /*#__PURE__*/React.createElement("div", {
|
|
20512
|
+
style: {
|
|
20513
|
+
padding: isMobileView ? "14px" : "20px",
|
|
20514
|
+
backgroundColor: "#f9f9f9",
|
|
20515
|
+
borderRadius: "8px",
|
|
20516
|
+
borderLeft: "4px solid #00497e",
|
|
20517
|
+
marginBottom: "8px"
|
|
20518
|
+
}
|
|
20519
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20520
|
+
style: {
|
|
20521
|
+
marginBottom: "16px"
|
|
20522
|
+
}
|
|
20523
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20524
|
+
style: {
|
|
20525
|
+
fontWeight: "600",
|
|
20526
|
+
marginBottom: "8px",
|
|
20527
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20528
|
+
color: "#0B0C0C"
|
|
20529
|
+
}
|
|
20530
|
+
}, "K Number / Connection ID ", /*#__PURE__*/React.createElement("span", {
|
|
20531
|
+
style: {
|
|
20532
|
+
color: "#d4351c"
|
|
20533
|
+
}
|
|
20534
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
20535
|
+
value: kNumber,
|
|
20536
|
+
disabled: isFromConnectionDetails,
|
|
20537
|
+
onChange: e => setKNumber(e.target.value),
|
|
20538
|
+
placeholder: "Enter K Number (e.g. WS/105/2020/0001)",
|
|
20539
|
+
style: {
|
|
20540
|
+
width: "100%"
|
|
20541
|
+
}
|
|
20542
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
20543
|
+
style: {
|
|
20544
|
+
display: "flex",
|
|
20545
|
+
justifyContent: isMobileView ? "stretch" : "flex-end"
|
|
20546
|
+
}
|
|
20547
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
20548
|
+
onClick: handleProceed,
|
|
20549
|
+
disabled: isLoading,
|
|
20550
|
+
style: {
|
|
20551
|
+
padding: isMobileView ? "12px 16px" : "10px 28px",
|
|
20552
|
+
backgroundColor: isLoading ? "#6C6C6C" : "#00497e",
|
|
20553
|
+
color: "#fff",
|
|
20554
|
+
border: "none",
|
|
20555
|
+
borderRadius: "4px",
|
|
20556
|
+
cursor: isLoading ? "not-allowed" : "pointer",
|
|
20557
|
+
fontWeight: "bold",
|
|
20558
|
+
fontSize: isMobileView ? "14px" : "15px",
|
|
20559
|
+
width: isMobileView ? "100%" : "auto",
|
|
20560
|
+
transition: "background-color 0.2s"
|
|
20561
|
+
}
|
|
20562
|
+
}, isLoading ? "Searching..." : "Proceed \u2192")))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20563
|
+
error: showToast.key === "error",
|
|
20564
|
+
warning: showToast.key === "warning",
|
|
20565
|
+
label: showToast.message,
|
|
20566
|
+
onClose: () => setShowToast(null),
|
|
20567
|
+
isDleteBtn: true
|
|
20568
|
+
}));
|
|
20569
|
+
};
|
|
20570
|
+
|
|
20571
|
+
const WSDisconnectionConsumerDetails = _ref => {
|
|
20572
|
+
var _location$state, _connection$additiona, _connection$connectio, _connection$property, _propertyAddress$loca;
|
|
20573
|
+
const history = useHistory();
|
|
20574
|
+
const location = useLocation();
|
|
20575
|
+
const match = useRouteMatch();
|
|
20576
|
+
const [otp, setOtp] = useState("");
|
|
20577
|
+
const [showToast, setShowToast] = useState(null);
|
|
20578
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
20579
|
+
const applicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
20580
|
+
const connection = ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationData) || {};
|
|
20581
|
+
const isMobileView = window.innerWidth < 768;
|
|
20582
|
+
const getMaskedName = name => {
|
|
20583
|
+
if (!name) return "NA";
|
|
20584
|
+
return name.split("").map((char, i) => i % 2 === 1 && char !== " " ? "*" : char).join("");
|
|
20585
|
+
};
|
|
20586
|
+
const getMaskedPhone = phone => {
|
|
20587
|
+
if (!phone || phone.length < 4) return "NA";
|
|
20588
|
+
return `******${phone.slice(-4)}`;
|
|
20589
|
+
};
|
|
20590
|
+
const connectionNo = (connection === null || connection === void 0 ? void 0 : connection.connectionNo) || "NA";
|
|
20591
|
+
const meterId = (connection === null || connection === void 0 ? void 0 : connection.meterId) || (connection === null || connection === void 0 ? void 0 : (_connection$additiona = connection.additionalDetails) === null || _connection$additiona === void 0 ? void 0 : _connection$additiona.meterId) || "NA";
|
|
20592
|
+
const connectionStatus = (connection === null || connection === void 0 ? void 0 : connection.applicationStatus) || "NA";
|
|
20593
|
+
const holder = (connection === null || connection === void 0 ? void 0 : (_connection$connectio = connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : _connection$connectio[0]) || {};
|
|
20594
|
+
const registeredName = getMaskedName(holder === null || holder === void 0 ? void 0 : holder.name);
|
|
20595
|
+
const mobileNumber = (holder === null || holder === void 0 ? void 0 : holder.mobileNumber) || (connection === null || connection === void 0 ? void 0 : connection.mobileNumber) || "";
|
|
20596
|
+
const registeredPhone = getMaskedPhone(mobileNumber);
|
|
20597
|
+
const propertyAddress = (connection === null || connection === void 0 ? void 0 : (_connection$property = connection.property) === null || _connection$property === void 0 ? void 0 : _connection$property.address) || (connection === null || connection === void 0 ? void 0 : connection.address) || {};
|
|
20598
|
+
const formattedAddress = [(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo), propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.buildingName, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street, propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.name, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pincode].filter(Boolean).join(", ") || "NA";
|
|
20599
|
+
const handleResendOtp = function () {
|
|
20600
|
+
try {
|
|
20601
|
+
const _temp = _catch(function () {
|
|
20602
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20603
|
+
const payload = {
|
|
20604
|
+
otp: {
|
|
20605
|
+
mobileNumber: mobileNumber,
|
|
20606
|
+
tenantId: "dl",
|
|
20607
|
+
type: "register",
|
|
20608
|
+
userType: userType
|
|
20609
|
+
}
|
|
20610
|
+
};
|
|
20611
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
20612
|
+
setShowToast({
|
|
20613
|
+
key: "warning",
|
|
20614
|
+
message: "OTP resent to registered mobile number"
|
|
20615
|
+
});
|
|
20616
|
+
});
|
|
20617
|
+
}, function (err) {
|
|
20618
|
+
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
20619
|
+
setShowToast({
|
|
20620
|
+
key: "error",
|
|
20621
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to resend OTP"
|
|
20622
|
+
});
|
|
20623
|
+
});
|
|
20624
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
20625
|
+
} catch (e) {
|
|
20626
|
+
return Promise.reject(e);
|
|
20627
|
+
}
|
|
20628
|
+
};
|
|
20629
|
+
const handleVerify = function () {
|
|
20630
|
+
try {
|
|
20631
|
+
if (!otp || otp.length < 6) {
|
|
20632
|
+
setShowToast({
|
|
20633
|
+
key: "warning",
|
|
20634
|
+
message: "Please enter a valid 6-digit OTP"
|
|
20635
|
+
});
|
|
20636
|
+
return Promise.resolve();
|
|
20637
|
+
}
|
|
20638
|
+
setIsLoading(true);
|
|
20639
|
+
const _temp2 = _catch(function () {
|
|
20640
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20641
|
+
const payload = {
|
|
20642
|
+
otp: {
|
|
20643
|
+
otp: otp,
|
|
20644
|
+
mobileNumber: mobileNumber,
|
|
20645
|
+
tenantId: "dl",
|
|
20646
|
+
userType: userType
|
|
20647
|
+
}
|
|
20648
|
+
};
|
|
20649
|
+
return Promise.resolve(Digit.UserService.validateOtp(payload)).then(function () {
|
|
20650
|
+
var _connection$additiona2, _connection$additiona3;
|
|
20651
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
20652
|
+
...applicationData,
|
|
20653
|
+
applicationData: connection,
|
|
20654
|
+
connectionNo: connection === null || connection === void 0 ? void 0 : connection.connectionNo,
|
|
20655
|
+
serviceType: (connection === null || connection === void 0 ? void 0 : (_connection$additiona2 = connection.additionalDetails) === null || _connection$additiona2 === void 0 ? void 0 : (_connection$additiona3 = _connection$additiona2.serviceType) === null || _connection$additiona3 === void 0 ? void 0 : _connection$additiona3.code) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType)
|
|
20656
|
+
});
|
|
20657
|
+
setIsLoading(false);
|
|
20658
|
+
history.push(match.path.replace("consumer-details", "application-form"), {
|
|
20659
|
+
connection
|
|
20660
|
+
});
|
|
20661
|
+
});
|
|
20662
|
+
}, function (err) {
|
|
20663
|
+
var _err$response2, _err$response2$data, _err$response2$data$E, _err$response2$data$E2;
|
|
20664
|
+
setIsLoading(false);
|
|
20665
|
+
setShowToast({
|
|
20666
|
+
key: "error",
|
|
20667
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : (_err$response2$data$E = _err$response2$data.Errors) === null || _err$response2$data$E === void 0 ? void 0 : (_err$response2$data$E2 = _err$response2$data$E[0]) === null || _err$response2$data$E2 === void 0 ? void 0 : _err$response2$data$E2.message) || err.message || "Failed to verify OTP"
|
|
20668
|
+
});
|
|
20669
|
+
});
|
|
20670
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
20671
|
+
} catch (e) {
|
|
20672
|
+
return Promise.reject(e);
|
|
20673
|
+
}
|
|
20674
|
+
};
|
|
20675
|
+
const infoItem = {
|
|
20676
|
+
display: "flex",
|
|
20677
|
+
flexDirection: "column",
|
|
20678
|
+
minWidth: 0
|
|
20679
|
+
};
|
|
20680
|
+
const infoLabel = {
|
|
20681
|
+
color: "#6C6C6C",
|
|
20682
|
+
fontSize: isMobileView ? "11px" : "13px",
|
|
20683
|
+
marginBottom: "4px"
|
|
20684
|
+
};
|
|
20685
|
+
const infoValue = {
|
|
20686
|
+
fontWeight: "bold",
|
|
20687
|
+
wordBreak: "break-word",
|
|
20688
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20689
|
+
color: "#0B0C0C"
|
|
20690
|
+
};
|
|
20691
|
+
const statusColor = (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "connection_activated" ? "#28a745" : "#dc3545";
|
|
20692
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
|
|
20693
|
+
style: {
|
|
20694
|
+
marginBottom: "20px",
|
|
20695
|
+
padding: isMobileView ? "12px" : "24px"
|
|
20696
|
+
}
|
|
20697
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20698
|
+
style: {
|
|
20699
|
+
padding: isMobileView ? "10px 12px" : "12px 16px",
|
|
20700
|
+
backgroundColor: "#fff3cd",
|
|
20701
|
+
color: "#856404",
|
|
20702
|
+
borderRadius: "8px",
|
|
20703
|
+
border: "1px solid #ffeeba",
|
|
20704
|
+
marginBottom: "20px",
|
|
20705
|
+
display: "flex",
|
|
20706
|
+
alignItems: "flex-start",
|
|
20707
|
+
gap: "10px"
|
|
20708
|
+
}
|
|
20709
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20710
|
+
style: {
|
|
20711
|
+
fontSize: "18px",
|
|
20712
|
+
flexShrink: 0
|
|
20713
|
+
}
|
|
20714
|
+
}, "\u2139\uFE0F"), /*#__PURE__*/React.createElement("span", {
|
|
20715
|
+
style: {
|
|
20716
|
+
fontWeight: "500",
|
|
20717
|
+
fontSize: isMobileView ? "12px" : "13px",
|
|
20718
|
+
lineHeight: "1.5"
|
|
20719
|
+
}
|
|
20720
|
+
}, "Please verify the connection details below. The OTP has been sent to the registered mobile number on this connection.")), /*#__PURE__*/React.createElement("div", {
|
|
20721
|
+
style: {
|
|
20722
|
+
display: "flex",
|
|
20723
|
+
alignItems: "center",
|
|
20724
|
+
marginBottom: "20px",
|
|
20725
|
+
gap: "10px"
|
|
20726
|
+
}
|
|
20727
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20728
|
+
style: {
|
|
20729
|
+
width: "36px",
|
|
20730
|
+
height: "36px",
|
|
20731
|
+
borderRadius: "50%",
|
|
20732
|
+
backgroundColor: "#00497e",
|
|
20733
|
+
color: "#fff",
|
|
20734
|
+
display: "flex",
|
|
20735
|
+
alignItems: "center",
|
|
20736
|
+
justifyContent: "center",
|
|
20737
|
+
fontWeight: "bold",
|
|
20738
|
+
fontSize: "16px",
|
|
20739
|
+
flexShrink: 0
|
|
20740
|
+
}
|
|
20741
|
+
}, "2"), /*#__PURE__*/React.createElement("h2", {
|
|
20742
|
+
style: {
|
|
20743
|
+
fontSize: isMobileView ? "16px" : "20px",
|
|
20744
|
+
fontWeight: "700",
|
|
20745
|
+
margin: 0,
|
|
20746
|
+
color: "#0B0C0C"
|
|
20747
|
+
}
|
|
20748
|
+
}, "Connection Details")), /*#__PURE__*/React.createElement("div", {
|
|
20749
|
+
style: {
|
|
20750
|
+
padding: isMobileView ? "12px" : "20px",
|
|
20751
|
+
backgroundColor: "#f9f9f9",
|
|
20752
|
+
borderRadius: "8px",
|
|
20753
|
+
borderLeft: "4px solid #00497e",
|
|
20754
|
+
marginBottom: "24px"
|
|
20755
|
+
}
|
|
20756
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20757
|
+
style: {
|
|
20758
|
+
display: "grid",
|
|
20759
|
+
gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(180px, 1fr))",
|
|
20760
|
+
gap: isMobileView ? "14px" : "20px"
|
|
20761
|
+
}
|
|
20762
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20763
|
+
style: infoItem
|
|
20764
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20765
|
+
style: infoLabel
|
|
20766
|
+
}, "Connection Number"), /*#__PURE__*/React.createElement("div", {
|
|
20767
|
+
style: infoValue
|
|
20768
|
+
}, connectionNo)), /*#__PURE__*/React.createElement("div", {
|
|
20769
|
+
style: infoItem
|
|
20770
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20771
|
+
style: infoLabel
|
|
20772
|
+
}, "Current Owner Name"), /*#__PURE__*/React.createElement("div", {
|
|
20773
|
+
style: infoValue
|
|
20774
|
+
}, registeredName)), /*#__PURE__*/React.createElement("div", {
|
|
20775
|
+
style: {
|
|
20776
|
+
...infoItem,
|
|
20777
|
+
gridColumn: isMobileView ? "1 / -1" : undefined
|
|
20778
|
+
}
|
|
20779
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20780
|
+
style: infoLabel
|
|
20781
|
+
}, "Property Address"), /*#__PURE__*/React.createElement("div", {
|
|
20782
|
+
style: infoValue
|
|
20783
|
+
}, formattedAddress)), /*#__PURE__*/React.createElement("div", {
|
|
20784
|
+
style: infoItem
|
|
20785
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20786
|
+
style: infoLabel
|
|
20787
|
+
}, "Connection Status"), /*#__PURE__*/React.createElement("div", {
|
|
20788
|
+
style: {
|
|
20789
|
+
...infoValue,
|
|
20790
|
+
color: statusColor
|
|
20791
|
+
}
|
|
20792
|
+
}, connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.replace(/_/g, " "))), /*#__PURE__*/React.createElement("div", {
|
|
20793
|
+
style: infoItem
|
|
20794
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20795
|
+
style: infoLabel
|
|
20796
|
+
}, "Meter Number"), /*#__PURE__*/React.createElement("div", {
|
|
20797
|
+
style: infoValue
|
|
20798
|
+
}, meterId)), /*#__PURE__*/React.createElement("div", {
|
|
20799
|
+
style: infoItem
|
|
20800
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20801
|
+
style: infoLabel
|
|
20802
|
+
}, "Registered Mobile"), /*#__PURE__*/React.createElement("div", {
|
|
20803
|
+
style: infoValue
|
|
20804
|
+
}, registeredPhone)))), /*#__PURE__*/React.createElement("div", {
|
|
20805
|
+
style: {
|
|
20806
|
+
borderTop: "1px solid #e0e0e0",
|
|
20807
|
+
paddingTop: "20px"
|
|
20808
|
+
}
|
|
20809
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20810
|
+
style: {
|
|
20811
|
+
display: "flex",
|
|
20812
|
+
alignItems: "center",
|
|
20813
|
+
gap: "10px",
|
|
20814
|
+
marginBottom: "16px"
|
|
20815
|
+
}
|
|
20816
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20817
|
+
style: {
|
|
20818
|
+
width: "36px",
|
|
20819
|
+
height: "36px",
|
|
20820
|
+
borderRadius: "50%",
|
|
20821
|
+
backgroundColor: "#00497e",
|
|
20822
|
+
color: "#fff",
|
|
20823
|
+
display: "flex",
|
|
20824
|
+
alignItems: "center",
|
|
20825
|
+
justifyContent: "center",
|
|
20826
|
+
fontWeight: "bold",
|
|
20827
|
+
fontSize: "16px",
|
|
20828
|
+
flexShrink: 0
|
|
20829
|
+
}
|
|
20830
|
+
}, "3"), /*#__PURE__*/React.createElement("h3", {
|
|
20831
|
+
style: {
|
|
20832
|
+
fontSize: isMobileView ? "14px" : "16px",
|
|
20833
|
+
fontWeight: "700",
|
|
20834
|
+
margin: 0,
|
|
20835
|
+
color: "#0B0C0C"
|
|
20836
|
+
}
|
|
20837
|
+
}, "OTP Verification")), /*#__PURE__*/React.createElement("div", {
|
|
20838
|
+
style: {
|
|
20839
|
+
marginBottom: "16px"
|
|
20840
|
+
}
|
|
20841
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
20842
|
+
style: {
|
|
20843
|
+
display: "block",
|
|
20844
|
+
fontWeight: "500",
|
|
20845
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20846
|
+
marginBottom: "8px",
|
|
20847
|
+
color: "#0B0C0C"
|
|
20848
|
+
}
|
|
20849
|
+
}, "Enter OTP sent to +91 ", getMaskedPhone(mobileNumber), " ", /*#__PURE__*/React.createElement("span", {
|
|
20850
|
+
style: {
|
|
20851
|
+
color: "#d4351c"
|
|
20852
|
+
}
|
|
20853
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
20854
|
+
value: otp,
|
|
20855
|
+
onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
|
|
20856
|
+
placeholder: "Enter 6-digit OTP",
|
|
20857
|
+
maxLength: 6,
|
|
20858
|
+
style: {
|
|
20859
|
+
width: "100%"
|
|
20860
|
+
}
|
|
20861
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
20862
|
+
style: {
|
|
20863
|
+
fontSize: "12px",
|
|
20864
|
+
color: "#6C6C6C",
|
|
20865
|
+
marginTop: "6px"
|
|
20866
|
+
}
|
|
20867
|
+
}, "Didn't receive OTP?", " ", /*#__PURE__*/React.createElement("span", {
|
|
20868
|
+
style: {
|
|
20869
|
+
color: "#00497e",
|
|
20870
|
+
cursor: "pointer",
|
|
20871
|
+
fontWeight: "600",
|
|
20872
|
+
textDecoration: "underline"
|
|
20873
|
+
},
|
|
20874
|
+
onClick: handleResendOtp
|
|
20875
|
+
}, "Resend OTP"))), /*#__PURE__*/React.createElement("div", {
|
|
20876
|
+
style: {
|
|
20877
|
+
display: "flex",
|
|
20878
|
+
justifyContent: isMobileView ? "stretch" : "flex-end"
|
|
20879
|
+
}
|
|
20880
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
20881
|
+
onClick: handleVerify,
|
|
20882
|
+
disabled: isLoading || otp.length < 6,
|
|
20883
|
+
style: {
|
|
20884
|
+
padding: isMobileView ? "12px 16px" : "10px 28px",
|
|
20885
|
+
backgroundColor: isLoading || otp.length < 6 ? "#6c757d" : "#00497e",
|
|
20886
|
+
color: "#fff",
|
|
20887
|
+
border: "none",
|
|
20888
|
+
borderRadius: "4px",
|
|
20889
|
+
cursor: isLoading || otp.length < 6 ? "not-allowed" : "pointer",
|
|
20890
|
+
fontWeight: "bold",
|
|
20891
|
+
fontSize: isMobileView ? "14px" : "15px",
|
|
20892
|
+
width: isMobileView ? "100%" : "auto",
|
|
20893
|
+
transition: "background-color 0.2s",
|
|
20894
|
+
opacity: isLoading || otp.length < 6 ? 0.5 : 1
|
|
20895
|
+
}
|
|
20896
|
+
}, isLoading ? "Verifying..." : "Verify & Proceed \u2192")))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20897
|
+
error: showToast.key === "error",
|
|
20898
|
+
warning: showToast.key === "warning",
|
|
20899
|
+
label: showToast.message,
|
|
20900
|
+
onClose: () => setShowToast(null),
|
|
20901
|
+
isDleteBtn: true
|
|
20902
|
+
}));
|
|
20903
|
+
};
|
|
20904
|
+
|
|
20339
20905
|
let actions$1 = [];
|
|
20340
20906
|
const getAction$1 = flow => {
|
|
20341
20907
|
switch (flow) {
|
|
@@ -21863,7 +22429,7 @@ function cleanEscapedString(input) {
|
|
|
21863
22429
|
}
|
|
21864
22430
|
|
|
21865
22431
|
const WSDisconnectionForm = _ref => {
|
|
21866
|
-
var _applicationData$
|
|
22432
|
+
var _location$state, _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$appl5, _applicationData$WSDi, _applicationData$appl6, _disconnectionData$ty8, _disconnectionData$ty9, _disconnectionData$ty0, _disconnectionData$ty1, _disconnectionData$ty10, _disconnectionData$re6, _disconnectionData$re7, _disconnectionData$re8, _wsDocs$Disconnection, _disconnectionData$re9, _disconnectionData$re0, _disconnectionData$ty11, _disconnectionData$ty12, _disconnectionData$ty13, _disconnectionData$ty14;
|
|
21867
22433
|
let {
|
|
21868
22434
|
t,
|
|
21869
22435
|
config,
|
|
@@ -21873,7 +22439,13 @@ const WSDisconnectionForm = _ref => {
|
|
|
21873
22439
|
const stateCode = Digit.ULBService.getStateId();
|
|
21874
22440
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
21875
22441
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21876
|
-
const
|
|
22442
|
+
const storedApplicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
22443
|
+
const location = useLocation();
|
|
22444
|
+
const applicationData = {
|
|
22445
|
+
...storedApplicationData,
|
|
22446
|
+
applicationData: ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || storedApplicationData.applicationData || {}
|
|
22447
|
+
};
|
|
22448
|
+
const serviceType = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationData) === null || _applicationData$appl2 === void 0 ? void 0 : (_applicationData$appl3 = _applicationData$appl2.additionalDetails) === null || _applicationData$appl3 === void 0 ? void 0 : (_applicationData$appl4 = _applicationData$appl3.serviceType) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.code) || (applicationData !== null && applicationData !== void 0 && (_applicationData$appl5 = applicationData.applicationData) !== null && _applicationData$appl5 !== void 0 && _applicationData$appl5.sewerage ? "SEWERAGE" : "WATER");
|
|
21877
22449
|
const history = useHistory();
|
|
21878
22450
|
const match = useRouteMatch();
|
|
21879
22451
|
const [disconnectionData, setDisconnectionData] = useState({
|
|
@@ -21974,14 +22546,6 @@ const WSDisconnectionForm = _ref => {
|
|
|
21974
22546
|
const handleSubmit = () => onSelect(config.key, {
|
|
21975
22547
|
WSDisConnectionForm: disconnectionData
|
|
21976
22548
|
});
|
|
21977
|
-
const handleEmployeeSubmit = () => {
|
|
21978
|
-
onSelect(config.key, {
|
|
21979
|
-
WSDisConnectionForm: {
|
|
21980
|
-
...disconnectionData,
|
|
21981
|
-
documents: documents
|
|
21982
|
-
}
|
|
21983
|
-
});
|
|
21984
|
-
};
|
|
21985
22549
|
const onSkip = () => onSelect();
|
|
21986
22550
|
const filedChange = val => {
|
|
21987
22551
|
const oldData = {
|
|
@@ -22028,8 +22592,7 @@ const WSDisconnectionForm = _ref => {
|
|
|
22028
22592
|
setError(null);
|
|
22029
22593
|
}, 3000);
|
|
22030
22594
|
} else {
|
|
22031
|
-
|
|
22032
|
-
return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType)).then(function (payload) {
|
|
22595
|
+
return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, serviceType)).then(function (payload) {
|
|
22033
22596
|
const _temp4 = function (_payload$WaterConnect) {
|
|
22034
22597
|
if (payload !== null && payload !== void 0 && (_payload$WaterConnect = payload.WaterConnection) !== null && _payload$WaterConnect !== void 0 && _payload$WaterConnect.water) {
|
|
22035
22598
|
const _temp = function () {
|
|
@@ -22308,29 +22871,111 @@ const WSDisconnectionForm = _ref => {
|
|
|
22308
22871
|
onClose: () => setError(null)
|
|
22309
22872
|
}))));
|
|
22310
22873
|
}
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22874
|
+
const isMobileForm = window.Digit.Utils.browser.isMobile();
|
|
22875
|
+
const sectionStyle = {
|
|
22876
|
+
padding: isMobileForm ? "12px" : "20px",
|
|
22877
|
+
backgroundColor: "#f9f9f9",
|
|
22878
|
+
borderRadius: "8px",
|
|
22879
|
+
borderLeft: "4px solid #00497e",
|
|
22880
|
+
marginBottom: "24px",
|
|
22881
|
+
width: "100%"
|
|
22882
|
+
};
|
|
22883
|
+
const headerFlexStyle = {
|
|
22884
|
+
display: "flex",
|
|
22885
|
+
alignItems: "center",
|
|
22886
|
+
gap: "10px",
|
|
22887
|
+
marginBottom: "16px"
|
|
22888
|
+
};
|
|
22889
|
+
const numberBadgeStyle = {
|
|
22890
|
+
width: "32px",
|
|
22891
|
+
height: "32px",
|
|
22892
|
+
borderRadius: "50%",
|
|
22893
|
+
backgroundColor: "#00497e",
|
|
22894
|
+
color: "#fff",
|
|
22895
|
+
display: "flex",
|
|
22896
|
+
alignItems: "center",
|
|
22897
|
+
justifyContent: "center",
|
|
22898
|
+
fontWeight: "bold",
|
|
22899
|
+
fontSize: "14px",
|
|
22900
|
+
flexShrink: 0
|
|
22901
|
+
};
|
|
22902
|
+
const fieldStyle = {
|
|
22903
|
+
display: "flex",
|
|
22904
|
+
flexDirection: isMobileForm ? "column" : "row",
|
|
22905
|
+
alignItems: isMobileForm ? "flex-start" : "center",
|
|
22906
|
+
justifyContent: "space-between",
|
|
22907
|
+
gap: "10px",
|
|
22908
|
+
width: "100%",
|
|
22909
|
+
marginBottom: "16px"
|
|
22910
|
+
};
|
|
22911
|
+
const labelStyle = {
|
|
22912
|
+
fontWeight: "700",
|
|
22913
|
+
color: "#0B0C0C",
|
|
22914
|
+
fontSize: "16px",
|
|
22915
|
+
margin: 0,
|
|
22916
|
+
display: "flex",
|
|
22917
|
+
alignItems: "center",
|
|
22918
|
+
width: isMobileForm ? "100%" : "30%"
|
|
22919
|
+
};
|
|
22920
|
+
const inputWrapperStyle = {
|
|
22921
|
+
width: isMobileForm ? "100%" : "65%"
|
|
22922
|
+
};
|
|
22923
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22924
|
+
style: {
|
|
22925
|
+
width: "100%"
|
|
22926
|
+
}
|
|
22927
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
22928
|
+
style: {
|
|
22929
|
+
padding: isMobileForm ? "12px" : "24px"
|
|
22930
|
+
}
|
|
22931
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22932
|
+
style: sectionStyle
|
|
22933
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22934
|
+
style: headerFlexStyle
|
|
22935
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22936
|
+
style: numberBadgeStyle
|
|
22937
|
+
}, "1"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22938
|
+
style: {
|
|
22939
|
+
margin: 0
|
|
22940
|
+
}
|
|
22941
|
+
}, t("CS_TITLE_APPLICATION_DETAILS"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
22317
22942
|
key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
22318
|
-
label:
|
|
22319
|
-
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$
|
|
22943
|
+
label: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
22944
|
+
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl6 = applicationData.applicationData) === null || _applicationData$appl6 === void 0 ? void 0 : _applicationData$appl6.connectionNo,
|
|
22320
22945
|
className: "border-none"
|
|
22321
|
-
}))
|
|
22322
|
-
|
|
22946
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
22947
|
+
style: sectionStyle
|
|
22948
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22949
|
+
style: headerFlexStyle
|
|
22950
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22951
|
+
style: numberBadgeStyle
|
|
22952
|
+
}, "2"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22323
22953
|
style: {
|
|
22324
|
-
|
|
22954
|
+
margin: 0
|
|
22955
|
+
}
|
|
22956
|
+
}, t("WS_DISCONNECTION_TYPE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
22957
|
+
className: "tooltip",
|
|
22958
|
+
style: {
|
|
22959
|
+
marginLeft: "8px",
|
|
22960
|
+
position: "relative",
|
|
22961
|
+
top: "2px",
|
|
22962
|
+
display: "inline-block"
|
|
22325
22963
|
}
|
|
22326
22964
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22327
22965
|
className: "tooltiptext",
|
|
22328
22966
|
style: {
|
|
22329
|
-
whiteSpace:
|
|
22967
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
22330
22968
|
fontSize: "medium",
|
|
22331
|
-
width:
|
|
22969
|
+
width: isMobileForm ? "250px" : "400px"
|
|
22332
22970
|
}
|
|
22333
|
-
},
|
|
22971
|
+
}, t("WS_DISCONNECTION_PERMANENT_TOOLTIP"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), t("WS_DISCONNECTION_TEMPORARY_TOOLTIP"))))), /*#__PURE__*/React.createElement("div", {
|
|
22972
|
+
style: {
|
|
22973
|
+
display: "flex",
|
|
22974
|
+
flexWrap: "wrap",
|
|
22975
|
+
gap: "16px",
|
|
22976
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
22977
|
+
}
|
|
22978
|
+
}, /*#__PURE__*/React.createElement(RadioButtons, {
|
|
22334
22979
|
t: t,
|
|
22335
22980
|
options: disconnectionTypeList,
|
|
22336
22981
|
optionsKey: "i18nKey",
|
|
@@ -22344,78 +22989,99 @@ const WSDisconnectionForm = _ref => {
|
|
|
22344
22989
|
labelKey: "WS_DISCONNECTION_TYPE",
|
|
22345
22990
|
style: {
|
|
22346
22991
|
display: "flex",
|
|
22347
|
-
|
|
22992
|
+
flexWrap: "wrap",
|
|
22993
|
+
gap: "1rem",
|
|
22994
|
+
margin: 0
|
|
22348
22995
|
},
|
|
22349
|
-
inputStyle:
|
|
22996
|
+
inputStyle: isMobileForm ? {
|
|
22350
22997
|
marginLeft: "unset"
|
|
22351
22998
|
} : {}
|
|
22352
|
-
}), /*#__PURE__*/React.createElement(
|
|
22999
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
23000
|
+
style: sectionStyle
|
|
23001
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23002
|
+
style: headerFlexStyle
|
|
23003
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23004
|
+
style: numberBadgeStyle
|
|
23005
|
+
}, "3"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22353
23006
|
style: {
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
},
|
|
22358
|
-
className: "card-label-smaller"
|
|
22359
|
-
}, t("WS_DISCONNECTION_PROPOSED_DATE") + "*", /*#__PURE__*/React.createElement("div", {
|
|
22360
|
-
className: `tooltip`,
|
|
23007
|
+
margin: 0
|
|
23008
|
+
}
|
|
23009
|
+
}, t("WS_DISCONNECTION_PROPOSED_DATE"))), /*#__PURE__*/React.createElement("div", {
|
|
22361
23010
|
style: {
|
|
22362
|
-
|
|
22363
|
-
|
|
23011
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
23012
|
+
}
|
|
23013
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23014
|
+
style: fieldStyle
|
|
23015
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
23016
|
+
style: labelStyle
|
|
23017
|
+
}, t("WS_DISCONNECTION_PROPOSED_DATE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
23018
|
+
className: "tooltip",
|
|
23019
|
+
style: {
|
|
23020
|
+
marginLeft: "8px",
|
|
23021
|
+
position: "relative",
|
|
23022
|
+
top: "2px"
|
|
22364
23023
|
}
|
|
22365
23024
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22366
23025
|
className: "tooltiptext",
|
|
22367
23026
|
style: {
|
|
22368
|
-
whiteSpace:
|
|
22369
|
-
fontSize: "medium"
|
|
23027
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
23028
|
+
fontSize: "medium",
|
|
23029
|
+
width: isMobileForm ? "200px" : "300px"
|
|
22370
23030
|
}
|
|
22371
23031
|
}, t("SHOULD_BE_DATE") + " " + (slaData === null || slaData === void 0 ? void 0 : slaData.slaDays) + " " + t("DAYS_OF_APPLICATION_DATE")))), /*#__PURE__*/React.createElement("div", {
|
|
22372
|
-
|
|
23032
|
+
style: inputWrapperStyle
|
|
22373
23033
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
22374
23034
|
date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date,
|
|
22375
|
-
onChange: date => {
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
}
|
|
22382
|
-
style:
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
display: "inline"
|
|
22386
|
-
},
|
|
22387
|
-
className: "card-label-smaller"
|
|
22388
|
-
}, t("WS_DISCONNECTION_PROPOSED_END_DATE") + "*", /*#__PURE__*/React.createElement("div", {
|
|
22389
|
-
className: `tooltip`,
|
|
23035
|
+
onChange: date => setDisconnectionData({
|
|
23036
|
+
...disconnectionData,
|
|
23037
|
+
date: date
|
|
23038
|
+
})
|
|
23039
|
+
}))), ((_disconnectionData$ty1 = disconnectionData.type) === null || _disconnectionData$ty1 === void 0 ? void 0 : (_disconnectionData$ty10 = _disconnectionData$ty1.value) === null || _disconnectionData$ty10 === void 0 ? void 0 : _disconnectionData$ty10.code) === "Temporary" && /*#__PURE__*/React.createElement("div", {
|
|
23040
|
+
style: fieldStyle
|
|
23041
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
23042
|
+
style: labelStyle
|
|
23043
|
+
}, t("WS_DISCONNECTION_PROPOSED_END_DATE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
23044
|
+
className: "tooltip",
|
|
22390
23045
|
style: {
|
|
22391
|
-
|
|
22392
|
-
|
|
23046
|
+
marginLeft: "8px",
|
|
23047
|
+
position: "relative",
|
|
23048
|
+
top: "2px"
|
|
22393
23049
|
}
|
|
22394
23050
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22395
23051
|
className: "tooltiptext",
|
|
22396
23052
|
style: {
|
|
22397
|
-
whiteSpace:
|
|
22398
|
-
fontSize: "medium"
|
|
23053
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
23054
|
+
fontSize: "medium",
|
|
23055
|
+
width: isMobileForm ? "200px" : "300px"
|
|
22399
23056
|
}
|
|
22400
|
-
}, t("SHOULD_BE_DATE") + " " +
|
|
22401
|
-
|
|
23057
|
+
}, t("SHOULD_BE_DATE") + " " + t("DAYS_OF_APPLICATION_END_DATE")))), /*#__PURE__*/React.createElement("div", {
|
|
23058
|
+
style: inputWrapperStyle
|
|
22402
23059
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
22403
23060
|
date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.endDate,
|
|
22404
|
-
onChange: date => {
|
|
22405
|
-
|
|
22406
|
-
|
|
22407
|
-
|
|
22408
|
-
|
|
23061
|
+
onChange: date => setDisconnectionData({
|
|
23062
|
+
...disconnectionData,
|
|
23063
|
+
endDate: date
|
|
23064
|
+
})
|
|
23065
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
23066
|
+
style: sectionStyle
|
|
23067
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23068
|
+
style: headerFlexStyle
|
|
23069
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23070
|
+
style: numberBadgeStyle
|
|
23071
|
+
}, "4"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
23072
|
+
style: {
|
|
23073
|
+
margin: 0
|
|
22409
23074
|
}
|
|
22410
|
-
}
|
|
23075
|
+
}, t("WS_DISCONNECTION_REASON"), " *")), /*#__PURE__*/React.createElement("div", {
|
|
22411
23076
|
style: {
|
|
22412
|
-
|
|
22413
|
-
|
|
22414
|
-
|
|
22415
|
-
|
|
22416
|
-
|
|
22417
|
-
|
|
22418
|
-
|
|
23077
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
23078
|
+
}
|
|
23079
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23080
|
+
style: fieldStyle
|
|
23081
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
23082
|
+
style: labelStyle
|
|
23083
|
+
}, t("WS_DISCONNECTION_REASON"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
23084
|
+
style: inputWrapperStyle
|
|
22419
23085
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
22420
23086
|
option: disconnectionReasonList,
|
|
22421
23087
|
isMandatory: false,
|
|
@@ -22429,32 +23095,41 @@ const WSDisconnectionForm = _ref => {
|
|
|
22429
23095
|
value: e
|
|
22430
23096
|
}),
|
|
22431
23097
|
labelKey: "WS_DISCONNECTION_REASON"
|
|
22432
|
-
}))), /*#__PURE__*/React.createElement(
|
|
23098
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
23099
|
+
style: sectionStyle
|
|
23100
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23101
|
+
style: headerFlexStyle
|
|
23102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23103
|
+
style: numberBadgeStyle
|
|
23104
|
+
}, "5"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22433
23105
|
style: {
|
|
22434
|
-
|
|
23106
|
+
margin: 0
|
|
22435
23107
|
}
|
|
22436
|
-
}, t("WS_DISCONNECTION_DOCUMENTS")
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
23108
|
+
}, t("WS_DISCONNECTION_DOCUMENTS"), " *")), /*#__PURE__*/React.createElement("div", {
|
|
23109
|
+
style: {
|
|
23110
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
23111
|
+
}
|
|
23112
|
+
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => /*#__PURE__*/React.createElement(SelectDocument$1, {
|
|
23113
|
+
key: index,
|
|
23114
|
+
document: document,
|
|
23115
|
+
t: t,
|
|
23116
|
+
error: docError,
|
|
23117
|
+
setError: setDocError,
|
|
23118
|
+
setDocuments: setDocuments,
|
|
23119
|
+
documents: documents,
|
|
23120
|
+
setCheckRequiredFields: setCheckRequiredFields,
|
|
23121
|
+
isMobileForm: isMobileForm
|
|
23122
|
+
})))), docError && /*#__PURE__*/React.createElement(Toast, {
|
|
23123
|
+
error: (docError === null || docError === void 0 ? void 0 : docError.key) === "error",
|
|
22449
23124
|
label: t(docError === null || docError === void 0 ? void 0 : docError.message),
|
|
22450
23125
|
warning: docError === null || docError === void 0 ? void 0 : docError.warning,
|
|
22451
23126
|
onClose: () => setDocError(null)
|
|
22452
23127
|
}), error && /*#__PURE__*/React.createElement(Toast, {
|
|
22453
|
-
error: (error === null || error === void 0 ? void 0 : error.key) === "error"
|
|
23128
|
+
error: (error === null || error === void 0 ? void 0 : error.key) === "error",
|
|
22454
23129
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
22455
23130
|
warning: error === null || error === void 0 ? void 0 : error.warning,
|
|
22456
23131
|
onClose: () => setError(null)
|
|
22457
|
-
})
|
|
23132
|
+
}), /*#__PURE__*/React.createElement(ActionBar, {
|
|
22458
23133
|
style: {
|
|
22459
23134
|
display: "flex",
|
|
22460
23135
|
justifyContent: "flex-end",
|
|
@@ -22463,10 +23138,11 @@ const WSDisconnectionForm = _ref => {
|
|
|
22463
23138
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
22464
23139
|
label: t("ACTION_TEST_SUBMIT"),
|
|
22465
23140
|
onSubmit: () => onSubmit(disconnectionData),
|
|
23141
|
+
disabled: wsDocsLoading || documents.length < 2 || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$re9 = disconnectionData.reason) !== null && _disconnectionData$re9 !== void 0 && (_disconnectionData$re0 = _disconnectionData$re9.value) !== null && _disconnectionData$re0 !== void 0 && _disconnectionData$re0.code) || !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.date) || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$ty11 = disconnectionData.type) !== null && _disconnectionData$ty11 !== void 0 && (_disconnectionData$ty12 = _disconnectionData$ty11.value) !== null && _disconnectionData$ty12 !== void 0 && _disconnectionData$ty12.code) || (disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$ty13 = disconnectionData.type) === null || _disconnectionData$ty13 === void 0 ? void 0 : (_disconnectionData$ty14 = _disconnectionData$ty13.value) === null || _disconnectionData$ty14 === void 0 ? void 0 : _disconnectionData$ty14.code) === "Temporary" && !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.endDate),
|
|
22466
23142
|
style: {
|
|
22467
23143
|
margin: "10px 10px 0px 0px"
|
|
22468
23144
|
}
|
|
22469
|
-
})));
|
|
23145
|
+
}))));
|
|
22470
23146
|
};
|
|
22471
23147
|
function SelectDocument$1(_ref2) {
|
|
22472
23148
|
var _doc$dropdownData;
|
|
@@ -22478,7 +23154,8 @@ function SelectDocument$1(_ref2) {
|
|
|
22478
23154
|
error,
|
|
22479
23155
|
setError,
|
|
22480
23156
|
documents,
|
|
22481
|
-
setCheckRequiredFields
|
|
23157
|
+
setCheckRequiredFields,
|
|
23158
|
+
isMobileForm
|
|
22482
23159
|
} = _ref2;
|
|
22483
23160
|
const filteredDocument = documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
22484
23161
|
var _item$documentType;
|
|
@@ -22557,19 +23234,41 @@ function SelectDocument$1(_ref2) {
|
|
|
22557
23234
|
}
|
|
22558
23235
|
})();
|
|
22559
23236
|
}, [file]);
|
|
23237
|
+
const fieldStyle = {
|
|
23238
|
+
display: "flex",
|
|
23239
|
+
flexDirection: isMobileForm ? "column" : "row",
|
|
23240
|
+
alignItems: isMobileForm ? "flex-start" : "flex-start",
|
|
23241
|
+
justifyContent: "space-between",
|
|
23242
|
+
gap: "10px",
|
|
23243
|
+
width: "100%",
|
|
23244
|
+
marginBottom: "16px"
|
|
23245
|
+
};
|
|
23246
|
+
const labelStyle = {
|
|
23247
|
+
fontWeight: "700",
|
|
23248
|
+
color: "#0B0C0C",
|
|
23249
|
+
fontSize: "16px",
|
|
23250
|
+
margin: 0,
|
|
23251
|
+
display: "flex",
|
|
23252
|
+
alignItems: "center",
|
|
23253
|
+
width: isMobileForm ? "100%" : "30%"
|
|
23254
|
+
};
|
|
23255
|
+
const inputWrapperStyle = {
|
|
23256
|
+
width: isMobileForm ? "100%" : "65%"
|
|
23257
|
+
};
|
|
22560
23258
|
return /*#__PURE__*/React.createElement("div", {
|
|
22561
23259
|
style: {
|
|
22562
23260
|
marginBottom: "24px"
|
|
22563
23261
|
}
|
|
22564
|
-
}, /*#__PURE__*/React.createElement(
|
|
23262
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23263
|
+
style: fieldStyle
|
|
23264
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
23265
|
+
style: labelStyle
|
|
23266
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), " *"), /*#__PURE__*/React.createElement("div", {
|
|
23267
|
+
style: inputWrapperStyle
|
|
23268
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22565
23269
|
style: {
|
|
22566
|
-
|
|
22567
|
-
|
|
22568
|
-
display: "inline"
|
|
22569
|
-
},
|
|
22570
|
-
className: "card-label-smaller"
|
|
22571
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*"), /*#__PURE__*/React.createElement("div", {
|
|
22572
|
-
className: "field"
|
|
23270
|
+
marginBottom: "8px"
|
|
23271
|
+
}
|
|
22573
23272
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
22574
23273
|
t: t,
|
|
22575
23274
|
isMandatory: false,
|
|
@@ -22577,7 +23276,7 @@ function SelectDocument$1(_ref2) {
|
|
|
22577
23276
|
selected: selectedDocument,
|
|
22578
23277
|
optionKey: "i18nKey",
|
|
22579
23278
|
select: handleSelectDocument
|
|
22580
|
-
}), /*#__PURE__*/React.createElement(UploadFile, {
|
|
23279
|
+
})), /*#__PURE__*/React.createElement(UploadFile, {
|
|
22581
23280
|
id: `noc-doc-1-${key}`,
|
|
22582
23281
|
extraStyleName: "propertyCreate",
|
|
22583
23282
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
@@ -27870,6 +28569,7 @@ const WSCard = () => {
|
|
|
27870
28569
|
const [totalCount, setTotalCount] = useState(0);
|
|
27871
28570
|
sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
|
|
27872
28571
|
sessionStorage.removeItem("IsDetailsExists");
|
|
28572
|
+
sessionStorage.removeItem("Digit.WS_DISCONNECTION");
|
|
27873
28573
|
const filterFormDefaultValues = {
|
|
27874
28574
|
businessService: ["NewWS1", "ModifyWSConnection", "DisconnectWSConnection", "mutationWSConnection"],
|
|
27875
28575
|
moduleName: "ws-services",
|
|
@@ -27950,6 +28650,10 @@ const WSCard = () => {
|
|
|
27950
28650
|
label: t("WS_ZRO_VERIFICATION"),
|
|
27951
28651
|
link: `/digit-ui/employee/ws/zro-application`,
|
|
27952
28652
|
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
28653
|
+
}, {
|
|
28654
|
+
label: t("WS_DISCONNECTION"),
|
|
28655
|
+
link: `/digit-ui/employee/ws/new-disconnection`,
|
|
28656
|
+
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
27953
28657
|
}].filter(link => link.roles ? checkForEmployee(link.roles) : true)
|
|
27954
28658
|
};
|
|
27955
28659
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
@@ -29544,6 +30248,20 @@ const newConfig$1 = [{
|
|
|
29544
30248
|
key: "data",
|
|
29545
30249
|
type: "component",
|
|
29546
30250
|
withoutLabel: true,
|
|
30251
|
+
nextStep: "k-number"
|
|
30252
|
+
}, {
|
|
30253
|
+
route: "k-number",
|
|
30254
|
+
component: "WSDisconnectionKNumber",
|
|
30255
|
+
key: "WSDisconnectionKNumber",
|
|
30256
|
+
type: "component",
|
|
30257
|
+
withoutLabel: true,
|
|
30258
|
+
nextStep: "consumer-details"
|
|
30259
|
+
}, {
|
|
30260
|
+
route: "consumer-details",
|
|
30261
|
+
component: "WSDisconnectionConsumerDetails",
|
|
30262
|
+
key: "WSDisconnectionConsumerDetails",
|
|
30263
|
+
type: "component",
|
|
30264
|
+
withoutLabel: true,
|
|
29547
30265
|
nextStep: "application-form"
|
|
29548
30266
|
}, {
|
|
29549
30267
|
route: "application-form",
|
|
@@ -32844,33 +33562,33 @@ const checkForNA$1 = value => {
|
|
|
32844
33562
|
return value ? value : "CS_NA";
|
|
32845
33563
|
};
|
|
32846
33564
|
const WSApplicationDetails = () => {
|
|
32847
|
-
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$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _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$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _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$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _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$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _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, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
|
|
33565
|
+
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$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _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$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect127, _data$SewerageConnect128, _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$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _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, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$WaterConnection144, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect139, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184;
|
|
32848
33566
|
const getDisconnectionNoticeSearch = function () {
|
|
32849
33567
|
try {
|
|
32850
|
-
var _data$
|
|
33568
|
+
var _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181;
|
|
32851
33569
|
let key = "ws-waterdisconnectionnotice";
|
|
32852
33570
|
let details = {};
|
|
32853
33571
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
32854
|
-
var _data$
|
|
33572
|
+
var _data$WaterConnection185, _PTData$Properties11;
|
|
32855
33573
|
details = {
|
|
32856
33574
|
WaterConnection: [{
|
|
32857
|
-
...(data === null || data === void 0 ? void 0 : (_data$
|
|
33575
|
+
...(data === null || data === void 0 ? void 0 : (_data$WaterConnection185 = data.WaterConnection) === null || _data$WaterConnection185 === void 0 ? void 0 : _data$WaterConnection185[0]),
|
|
32858
33576
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
|
|
32859
33577
|
}]
|
|
32860
33578
|
};
|
|
32861
33579
|
} else {
|
|
32862
|
-
var _data$
|
|
33580
|
+
var _data$SewerageConnect179, _PTData$Properties12;
|
|
32863
33581
|
key = "ws-seweragedisconnectionnotice";
|
|
32864
33582
|
details = {
|
|
32865
33583
|
SewerageConnection: [{
|
|
32866
|
-
...(data === null || data === void 0 ? void 0 : (_data$
|
|
33584
|
+
...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect179 = data.SewerageConnections) === null || _data$SewerageConnect179 === void 0 ? void 0 : _data$SewerageConnect179[0]),
|
|
32867
33585
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
32868
33586
|
}]
|
|
32869
33587
|
};
|
|
32870
33588
|
}
|
|
32871
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
32872
|
-
var _data$
|
|
32873
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
33589
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection186 = data.WaterConnection) === null || _data$WaterConnection186 === void 0 ? void 0 : (_data$WaterConnection187 = _data$WaterConnection186[0]) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect180 = data.SewerageConnections) === null || _data$SewerageConnect180 === void 0 ? void 0 : (_data$SewerageConnect181 = _data$SewerageConnect180[0]) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181.tenantId), details, key)).then(function (response) {
|
|
33590
|
+
var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
33591
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection188 = data.WaterConnection) === null || _data$WaterConnection188 === void 0 ? void 0 : (_data$WaterConnection189 = _data$WaterConnection188[0]) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect182 = data.SewerageConnections) === null || _data$SewerageConnect182 === void 0 ? void 0 : (_data$SewerageConnect183 = _data$SewerageConnect182[0]) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183.tenantId), {
|
|
32874
33592
|
fileStoreIds: response.filestoreIds[0]
|
|
32875
33593
|
})).then(function (fileStore) {
|
|
32876
33594
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -32883,6 +33601,7 @@ const WSApplicationDetails = () => {
|
|
|
32883
33601
|
const {
|
|
32884
33602
|
t
|
|
32885
33603
|
} = useTranslation();
|
|
33604
|
+
const history = useHistory();
|
|
32886
33605
|
const menuRef = useRef();
|
|
32887
33606
|
const user = Digit.UserService.getUser();
|
|
32888
33607
|
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
@@ -32911,7 +33630,7 @@ const WSApplicationDetails = () => {
|
|
|
32911
33630
|
};
|
|
32912
33631
|
Digit.Hooks.useClickOutside(menuRef, closeModal, showOptions);
|
|
32913
33632
|
const fetchBillParams = {
|
|
32914
|
-
consumerCode:
|
|
33633
|
+
consumerCode: (data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection[0]) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect[0]) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2.applicationNo)
|
|
32915
33634
|
};
|
|
32916
33635
|
const {
|
|
32917
33636
|
data: generatePdfKey
|
|
@@ -32927,17 +33646,17 @@ const WSApplicationDetails = () => {
|
|
|
32927
33646
|
})[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
32928
33647
|
}
|
|
32929
33648
|
});
|
|
32930
|
-
const isMutation = (data === null || data === void 0 ? void 0 : (_data$
|
|
33649
|
+
const isMutation = (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$WaterConnection5 = _data$WaterConnection4.applicationType) === null || _data$WaterConnection5 === void 0 ? void 0 : _data$WaterConnection5.includes("MUTATION")) || (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$SewerageConnect5 = _data$SewerageConnect4.applicationType) === null || _data$SewerageConnect5 === void 0 ? void 0 : _data$SewerageConnect5.includes("MUTATION"));
|
|
32931
33650
|
const paymentDetails = Digit.Hooks.useFetchBillsForBuissnessService({
|
|
32932
|
-
businessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE",
|
|
33651
|
+
businessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "SW.DISCONNECTION" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "WS.DISCONNECTION" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE",
|
|
32933
33652
|
...fetchBillParams,
|
|
32934
33653
|
tenantId: tenantId
|
|
32935
33654
|
}, {
|
|
32936
|
-
enabled: data !== null && data !== void 0 && (_data$
|
|
33655
|
+
enabled: data !== null && data !== void 0 && (_data$WaterConnection6 = data.WaterConnection) !== null && _data$WaterConnection6 !== void 0 && (_data$WaterConnection7 = _data$WaterConnection6[0]) !== null && _data$WaterConnection7 !== void 0 && _data$WaterConnection7.applicationNo || data !== null && data !== void 0 && (_data$SewerageConnect6 = data.SewerageConnections) !== null && _data$SewerageConnect6 !== void 0 && (_data$SewerageConnect7 = _data$SewerageConnect6[0]) !== null && _data$SewerageConnect7 !== void 0 && _data$SewerageConnect7.applicationNo ? true : false,
|
|
32937
33656
|
retry: false
|
|
32938
33657
|
});
|
|
32939
|
-
const propertyId = (data === null || data === void 0 ? void 0 : (_data$
|
|
32940
|
-
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$
|
|
33658
|
+
const propertyId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection8 = data.WaterConnection) === null || _data$WaterConnection8 === void 0 ? void 0 : (_data$WaterConnection9 = _data$WaterConnection8[0]) === null || _data$WaterConnection9 === void 0 ? void 0 : _data$WaterConnection9.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect8 = data.SewerageConnections) === null || _data$SewerageConnect8 === void 0 ? void 0 : (_data$SewerageConnect9 = _data$SewerageConnect8[0]) === null || _data$SewerageConnect9 === void 0 ? void 0 : _data$SewerageConnect9.propertyId);
|
|
33659
|
+
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection0 = data.WaterConnection) === null || _data$WaterConnection0 === void 0 ? void 0 : (_data$WaterConnection1 = _data$WaterConnection0[0]) === null || _data$WaterConnection1 === void 0 ? void 0 : _data$WaterConnection1.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect0 = data.SewerageConnections) === null || _data$SewerageConnect0 === void 0 ? void 0 : (_data$SewerageConnect1 = _data$SewerageConnect0[0]) === null || _data$SewerageConnect1 === void 0 ? void 0 : _data$SewerageConnect1.tenantId) || tenantId;
|
|
32941
33660
|
const {
|
|
32942
33661
|
isLoading: isPTLoading,
|
|
32943
33662
|
isError: isPTError,
|
|
@@ -32956,7 +33675,7 @@ const WSApplicationDetails = () => {
|
|
|
32956
33675
|
enabled: !!propertyId,
|
|
32957
33676
|
privacy: Digit.Utils.getPrivacyObject()
|
|
32958
33677
|
});
|
|
32959
|
-
const applicationData = (data === null || data === void 0 ? void 0 : (_data$
|
|
33678
|
+
const applicationData = (data === null || data === void 0 ? void 0 : (_data$WaterConnection10 = data.WaterConnection) === null || _data$WaterConnection10 === void 0 ? void 0 : _data$WaterConnection10[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect10 = data.SewerageConnections) === null || _data$SewerageConnect10 === void 0 ? void 0 : _data$SewerageConnect10[0]);
|
|
32960
33679
|
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
32961
33680
|
const connectionDetails = additionalDetails;
|
|
32962
33681
|
const useDetails = additionalDetails;
|
|
@@ -32965,13 +33684,13 @@ const WSApplicationDetails = () => {
|
|
|
32965
33684
|
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
|
|
32966
33685
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
32967
33686
|
privacy: {
|
|
32968
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33687
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection11 = data.WaterConnection) === null || _data$WaterConnection11 === void 0 ? void 0 : (_data$WaterConnection12 = _data$WaterConnection11[0]) === null || _data$WaterConnection12 === void 0 ? void 0 : (_data$WaterConnection13 = _data$WaterConnection12.connectionHolders) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : _data$WaterConnection14.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect11 = data.SewerageConnections) === null || _data$SewerageConnect11 === void 0 ? void 0 : (_data$SewerageConnect12 = _data$SewerageConnect11[0]) === null || _data$SewerageConnect12 === void 0 ? void 0 : (_data$SewerageConnect13 = _data$SewerageConnect12.connectionHolders) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13[0]) === null || _data$SewerageConnect14 === void 0 ? void 0 : _data$SewerageConnect14.uuid,
|
|
32969
33688
|
fieldName: "connectionHoldersMobileNumber",
|
|
32970
33689
|
model: "WnSConnectionOwner"
|
|
32971
33690
|
}
|
|
32972
33691
|
}) || false;
|
|
32973
|
-
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$
|
|
32974
|
-
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT"
|
|
33692
|
+
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection15 = data.WaterConnection) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect15 = data.SewerageConnections) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15[0]) === null || _data$SewerageConnect16 === void 0 ? void 0 : _data$SewerageConnect16.applicationStatus);
|
|
33693
|
+
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
|
|
32975
33694
|
const {
|
|
32976
33695
|
isLoading: isAppDetailsLoading,
|
|
32977
33696
|
data: appDetailsData
|
|
@@ -32985,9 +33704,9 @@ const WSApplicationDetails = () => {
|
|
|
32985
33704
|
}
|
|
32986
33705
|
const handleDownloadPdf = function () {
|
|
32987
33706
|
try {
|
|
32988
|
-
var _data$
|
|
32989
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
32990
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
33707
|
+
var _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _data$WaterConnection19, _data$SewerageConnect19, _PTData$Properties3;
|
|
33708
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection17 = data.WaterConnection) === null || _data$WaterConnection17 === void 0 ? void 0 : (_data$WaterConnection18 = _data$WaterConnection17[0]) === null || _data$WaterConnection18 === void 0 ? void 0 : _data$WaterConnection18.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect17 = data.SewerageConnections) === null || _data$SewerageConnect17 === void 0 ? void 0 : (_data$SewerageConnect18 = _data$SewerageConnect17[0]) === null || _data$SewerageConnect18 === void 0 ? void 0 : _data$SewerageConnect18.tenantId);
|
|
33709
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : _data$WaterConnection19[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : _data$SewerageConnect19[0]);
|
|
32991
33710
|
const PDFdata = getWSAcknowledgementData({
|
|
32992
33711
|
...res
|
|
32993
33712
|
}, {
|
|
@@ -33002,9 +33721,9 @@ const WSApplicationDetails = () => {
|
|
|
33002
33721
|
};
|
|
33003
33722
|
const handleDownloadDisconnectPdf = function () {
|
|
33004
33723
|
try {
|
|
33005
|
-
var _data$
|
|
33006
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
33007
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
33724
|
+
var _data$WaterConnection20, _data$WaterConnection21, _data$SewerageConnect20, _data$SewerageConnect21, _data$WaterConnection22, _data$SewerageConnect22, _PTData$Properties4;
|
|
33725
|
+
const tenantInfo = (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$WaterConnection21.tenantId) || (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$SewerageConnect21.tenantId);
|
|
33726
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection22 = data.WaterConnection) === null || _data$WaterConnection22 === void 0 ? void 0 : _data$WaterConnection22[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : _data$SewerageConnect22[0]);
|
|
33008
33727
|
const PDFdata = getWSDisconnectionApplicationForm({
|
|
33009
33728
|
...res
|
|
33010
33729
|
}, {
|
|
@@ -33019,12 +33738,12 @@ const WSApplicationDetails = () => {
|
|
|
33019
33738
|
};
|
|
33020
33739
|
const printApplicationReceipts = function () {
|
|
33021
33740
|
try {
|
|
33022
|
-
var _data$
|
|
33741
|
+
var _data$WaterConnection23, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$SewerageConnect23, _data$SewerageConnect24;
|
|
33023
33742
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
33024
33743
|
const state = Digit.ULBService.getStateId();
|
|
33025
|
-
let key = data !== null && data !== void 0 && (_data$
|
|
33744
|
+
let key = data !== null && data !== void 0 && (_data$WaterConnection23 = data.WaterConnection) !== null && _data$WaterConnection23 !== void 0 && _data$WaterConnection23[0] ? isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE";
|
|
33026
33745
|
return Promise.resolve(Digit.PaymentService.getReciept(tenantId, key, {
|
|
33027
|
-
consumerCodes: data !== null && data !== void 0 && (_data$
|
|
33746
|
+
consumerCodes: data !== null && data !== void 0 && (_data$WaterConnection24 = data.WaterConnection) !== null && _data$WaterConnection24 !== void 0 && _data$WaterConnection24[0] ? data === null || data === void 0 ? void 0 : (_data$WaterConnection25 = data.WaterConnection) === null || _data$WaterConnection25 === void 0 ? void 0 : (_data$WaterConnection26 = _data$WaterConnection25[0]) === null || _data$WaterConnection26 === void 0 ? void 0 : _data$WaterConnection26.applicationNo : data === null || data === void 0 ? void 0 : (_data$SewerageConnect23 = data.SewerageConnections) === null || _data$SewerageConnect23 === void 0 ? void 0 : (_data$SewerageConnect24 = _data$SewerageConnect23[0]) === null || _data$SewerageConnect24 === void 0 ? void 0 : _data$SewerageConnect24.applicationNo
|
|
33028
33747
|
})).then(function (payments) {
|
|
33029
33748
|
var _payments$Payments$;
|
|
33030
33749
|
function _temp2() {
|
|
@@ -33057,16 +33776,16 @@ const WSApplicationDetails = () => {
|
|
|
33057
33776
|
order: 1,
|
|
33058
33777
|
label: t("WS_ESTIMATION_NOTICE"),
|
|
33059
33778
|
onClick: () => {
|
|
33060
|
-
var _data$
|
|
33061
|
-
return data !== null && data !== void 0 && (_data$
|
|
33779
|
+
var _data$WaterConnection27, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27;
|
|
33780
|
+
return data !== null && data !== void 0 && (_data$WaterConnection27 = data.WaterConnection) !== null && _data$WaterConnection27 !== void 0 && _data$WaterConnection27[0] ? getFiles([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.additionalDetails) === null || _data$WaterConnection30 === void 0 ? void 0 : _data$WaterConnection30.estimationFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect25 = data.SewerageConnections) === null || _data$SewerageConnect25 === void 0 ? void 0 : (_data$SewerageConnect26 = _data$SewerageConnect25[0]) === null || _data$SewerageConnect26 === void 0 ? void 0 : (_data$SewerageConnect27 = _data$SewerageConnect26.additionalDetails) === null || _data$SewerageConnect27 === void 0 ? void 0 : _data$SewerageConnect27.estimationFileStoreId], tenantId);
|
|
33062
33781
|
}
|
|
33063
33782
|
};
|
|
33064
33783
|
const sanctionDownloadObject = {
|
|
33065
33784
|
order: 2,
|
|
33066
33785
|
label: t("WS_SANCTION_LETTER"),
|
|
33067
33786
|
onClick: () => {
|
|
33068
|
-
var _data$
|
|
33069
|
-
return data !== null && data !== void 0 && (_data$
|
|
33787
|
+
var _data$WaterConnection31, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30;
|
|
33788
|
+
return data !== null && data !== void 0 && (_data$WaterConnection31 = data.WaterConnection) !== null && _data$WaterConnection31 !== void 0 && _data$WaterConnection31[0] ? getFiles([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.additionalDetails) === null || _data$WaterConnection34 === void 0 ? void 0 : _data$WaterConnection34.sanctionFileStoreId], tenantId) : getFiles([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.additionalDetails) === null || _data$SewerageConnect30 === void 0 ? void 0 : _data$SewerageConnect30.sanctionFileStoreId], tenantId);
|
|
33070
33789
|
}
|
|
33071
33790
|
};
|
|
33072
33791
|
const applicationDownloadObject = {
|
|
@@ -33088,11 +33807,11 @@ const WSApplicationDetails = () => {
|
|
|
33088
33807
|
label: t("WS_DISCONNECTION_NOTICE_LABEL"),
|
|
33089
33808
|
onClick: () => getDisconnectionNoticeSearch()
|
|
33090
33809
|
}];
|
|
33091
|
-
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$
|
|
33092
|
-
const appStatus = (data === null || data === void 0 ? void 0 : (_data$
|
|
33810
|
+
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$WaterConnection35 = data.WaterConnection) === null || _data$WaterConnection35 === void 0 ? void 0 : (_data$WaterConnection36 = _data$WaterConnection35[0].applicationType) === null || _data$WaterConnection36 === void 0 ? void 0 : _data$WaterConnection36.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect31 = data.SewerageConnections) === null || _data$SewerageConnect31 === void 0 ? void 0 : (_data$SewerageConnect32 = _data$SewerageConnect31[0].applicationType) === null || _data$SewerageConnect32 === void 0 ? void 0 : _data$SewerageConnect32.includes("DISCONNECT"));
|
|
33811
|
+
const appStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection37 = data.WaterConnection) === null || _data$WaterConnection37 === void 0 ? void 0 : (_data$WaterConnection38 = _data$WaterConnection37[0]) === null || _data$WaterConnection38 === void 0 ? void 0 : _data$WaterConnection38.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect33 = data.SewerageConnections) === null || _data$SewerageConnect33 === void 0 ? void 0 : (_data$SewerageConnect34 = _data$SewerageConnect33[0]) === null || _data$SewerageConnect34 === void 0 ? void 0 : _data$SewerageConnect34.applicationStatus);
|
|
33093
33812
|
switch (appStatus) {
|
|
33094
33813
|
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
33095
|
-
if (data !== null && data !== void 0 && (_data$
|
|
33814
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection39 = data.WaterConnection) !== null && _data$WaterConnection39 !== void 0 && (_data$WaterConnection40 = _data$WaterConnection39[0].applicationType) !== null && _data$WaterConnection40 !== void 0 && _data$WaterConnection40.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect35 = data.SewerageConnections) !== null && _data$SewerageConnect35 !== void 0 && (_data$SewerageConnect36 = _data$SewerageConnect35[0].applicationType) !== null && _data$SewerageConnect36 !== void 0 && _data$SewerageConnect36.includes("DISCONNECT")) {
|
|
33096
33815
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
33097
33816
|
} else {
|
|
33098
33817
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -33116,7 +33835,7 @@ const WSApplicationDetails = () => {
|
|
|
33116
33835
|
case "PENDING_FOR_DISCONNECTION_EXECUTION":
|
|
33117
33836
|
case "DISCONNECTION_EXECUTED":
|
|
33118
33837
|
case "PENDING_FOR_PAYMENT":
|
|
33119
|
-
if (data !== null && data !== void 0 && (_data$
|
|
33838
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection41 = data.WaterConnection) !== null && _data$WaterConnection41 !== void 0 && (_data$WaterConnection42 = _data$WaterConnection41[0].applicationType) !== null && _data$WaterConnection42 !== void 0 && _data$WaterConnection42.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect37 = data.SewerageConnections) !== null && _data$SewerageConnect37 !== void 0 && (_data$SewerageConnect38 = _data$SewerageConnect37[0].applicationType) !== null && _data$SewerageConnect38 !== void 0 && _data$SewerageConnect38.includes("DISCONNECT")) {
|
|
33120
33839
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
33121
33840
|
} else {
|
|
33122
33841
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -33129,7 +33848,7 @@ const WSApplicationDetails = () => {
|
|
|
33129
33848
|
downloadOptions.sort(function (a, b) {
|
|
33130
33849
|
return a.order - b.order;
|
|
33131
33850
|
});
|
|
33132
|
-
let serviceType = data && data !== null && data !== void 0 && (_data$
|
|
33851
|
+
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection43 = data.WaterConnection) !== null && _data$WaterConnection43 !== void 0 && _data$WaterConnection43[0] ? "WATER" : "SEWERAGE";
|
|
33133
33852
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
33134
33853
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
33135
33854
|
className: "employee-main-application-details"
|
|
@@ -33143,8 +33862,8 @@ const WSApplicationDetails = () => {
|
|
|
33143
33862
|
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
33144
33863
|
id: "timeline"
|
|
33145
33864
|
}, /*#__PURE__*/React.createElement(WSWFApplicationTimeline, {
|
|
33146
|
-
application: (data === null || data === void 0 ? void 0 : (_data$
|
|
33147
|
-
id: (data === null || data === void 0 ? void 0 : (_data$
|
|
33865
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection44 = data.WaterConnection) === null || _data$WaterConnection44 === void 0 ? void 0 : _data$WaterConnection44[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect39 = data.SewerageConnections) === null || _data$SewerageConnect39 === void 0 ? void 0 : _data$SewerageConnect39[0]),
|
|
33866
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection45 = data.WaterConnection) === null || _data$WaterConnection45 === void 0 ? void 0 : (_data$WaterConnection46 = _data$WaterConnection45[0]) === null || _data$WaterConnection46 === void 0 ? void 0 : _data$WaterConnection46.applicationNo) || (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$SewerageConnect41.applicationNo),
|
|
33148
33867
|
paymentbuttonenabled: false
|
|
33149
33868
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
33150
33869
|
style: {
|
|
@@ -33178,35 +33897,35 @@ const WSApplicationDetails = () => {
|
|
|
33178
33897
|
className: "hide-seperator"
|
|
33179
33898
|
}, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33180
33899
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
33181
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33900
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection47 = data.WaterConnection) === null || _data$WaterConnection47 === void 0 ? void 0 : (_data$WaterConnection48 = _data$WaterConnection47[0]) === null || _data$WaterConnection48 === void 0 ? void 0 : _data$WaterConnection48.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect42 = data.SewerageConnections) === null || _data$SewerageConnect42 === void 0 ? void 0 : (_data$SewerageConnect43 = _data$SewerageConnect42[0]) === null || _data$SewerageConnect43 === void 0 ? void 0 : _data$SewerageConnect43.applicationNo),
|
|
33182
33901
|
textStyle: {}
|
|
33183
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
33902
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection49 = data.WaterConnection) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49[0].applicationType) === null || _data$WaterConnection50 === void 0 ? void 0 : _data$WaterConnection50.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0].applicationType) === null || _data$SewerageConnect45 === void 0 ? void 0 : _data$SewerageConnect45.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
33184
33903
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
33185
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33904
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection51 = data.WaterConnection) === null || _data$WaterConnection51 === void 0 ? void 0 : (_data$WaterConnection52 = _data$WaterConnection51[0]) === null || _data$WaterConnection52 === void 0 ? void 0 : _data$WaterConnection52.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect46 = data.SewerageConnections) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0]) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.connectionNo),
|
|
33186
33905
|
textStyle: {
|
|
33187
33906
|
wordBreak: "break-word"
|
|
33188
33907
|
}
|
|
33189
33908
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33190
33909
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
33191
|
-
text: t(`WS_APPLICATION_TYPE_${(data === null || data === void 0 ? void 0 : (_data$
|
|
33910
|
+
text: t(`WS_APPLICATION_TYPE_${(data === null || data === void 0 ? void 0 : (_data$WaterConnection53 = data.WaterConnection) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53[0]) === null || _data$WaterConnection54 === void 0 ? void 0 : _data$WaterConnection54.applicationType) || (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$SewerageConnect49.applicationType)}`),
|
|
33192
33911
|
textStyle: {
|
|
33193
33912
|
wordBreak: "break-word"
|
|
33194
33913
|
}
|
|
33195
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
33914
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection55 = data.WaterConnection) === null || _data$WaterConnection55 === void 0 ? void 0 : (_data$WaterConnection56 = _data$WaterConnection55[0].applicationType) === null || _data$WaterConnection56 === void 0 ? void 0 : _data$WaterConnection56.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect50 = data.SewerageConnections) === null || _data$SewerageConnect50 === void 0 ? void 0 : (_data$SewerageConnect51 = _data$SewerageConnect50[0].applicationType) === null || _data$SewerageConnect51 === void 0 ? void 0 : _data$SewerageConnect51.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
33196
33915
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
33197
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
33916
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection57 = data.WaterConnection) === null || _data$WaterConnection57 === void 0 ? void 0 : (_data$WaterConnection58 = _data$WaterConnection57[0]) === null || _data$WaterConnection58 === void 0 ? void 0 : _data$WaterConnection58.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect52 = data.SewerageConnections) === null || _data$SewerageConnect52 === void 0 ? void 0 : (_data$SewerageConnect53 = _data$SewerageConnect52[0]) === null || _data$SewerageConnect53 === void 0 ? void 0 : _data$SewerageConnect53.dateEffectiveFrom),
|
|
33198
33917
|
textStyle: {
|
|
33199
33918
|
wordBreak: "break-word"
|
|
33200
33919
|
}
|
|
33201
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
33920
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection59 = data.WaterConnection) === null || _data$WaterConnection59 === void 0 ? void 0 : (_data$WaterConnection60 = _data$WaterConnection59[0].applicationType) === null || _data$WaterConnection60 === void 0 ? void 0 : _data$WaterConnection60.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect54 = data.SewerageConnections) === null || _data$SewerageConnect54 === void 0 ? void 0 : (_data$SewerageConnect55 = _data$SewerageConnect54[0].applicationType) === null || _data$SewerageConnect55 === void 0 ? void 0 : _data$SewerageConnect55.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
33202
33921
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
33203
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
33922
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection61 = data.WaterConnection) === null || _data$WaterConnection61 === void 0 ? void 0 : (_data$WaterConnection62 = _data$WaterConnection61[0]) === null || _data$WaterConnection62 === void 0 ? void 0 : _data$WaterConnection62.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect56 = data.SewerageConnections) === null || _data$SewerageConnect56 === void 0 ? void 0 : (_data$SewerageConnect57 = _data$SewerageConnect56[0]) === null || _data$SewerageConnect57 === void 0 ? void 0 : _data$SewerageConnect57.disconnectionExecutionDate),
|
|
33204
33923
|
textStyle: {
|
|
33205
33924
|
wordBreak: "break-word"
|
|
33206
33925
|
}
|
|
33207
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
33926
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection63 = data.WaterConnection) === null || _data$WaterConnection63 === void 0 ? void 0 : (_data$WaterConnection64 = _data$WaterConnection63[0].applicationType) === null || _data$WaterConnection64 === void 0 ? void 0 : _data$WaterConnection64.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect58 = data.SewerageConnections) === null || _data$SewerageConnect58 === void 0 ? void 0 : (_data$SewerageConnect59 = _data$SewerageConnect58[0].applicationType) === null || _data$SewerageConnect59 === void 0 ? void 0 : _data$SewerageConnect59.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
33208
33927
|
label: t("WS_DISCONNECTION_REASON"),
|
|
33209
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33928
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection65 = data.WaterConnection) === null || _data$WaterConnection65 === void 0 ? void 0 : (_data$WaterConnection66 = _data$WaterConnection65[0]) === null || _data$WaterConnection66 === void 0 ? void 0 : _data$WaterConnection66.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection67 = data.WaterConnection) === null || _data$WaterConnection67 === void 0 ? void 0 : (_data$WaterConnection68 = _data$WaterConnection67[0]) === null || _data$WaterConnection68 === void 0 ? void 0 : _data$WaterConnection68.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect60 = data.SewerageConnections) === null || _data$SewerageConnect60 === void 0 ? void 0 : (_data$SewerageConnect61 = _data$SewerageConnect60[0]) === null || _data$SewerageConnect61 === void 0 ? void 0 : _data$SewerageConnect61.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect62 = data.SewerageConnections) === null || _data$SewerageConnect62 === void 0 ? void 0 : (_data$SewerageConnect63 = _data$SewerageConnect62[0]) === null || _data$SewerageConnect63 === void 0 ? void 0 : _data$SewerageConnect63.disconnectionReason : t("NA"),
|
|
33210
33929
|
textStyle: {
|
|
33211
33930
|
wordBreak: "break-word"
|
|
33212
33931
|
}
|
|
@@ -33258,18 +33977,18 @@ const WSApplicationDetails = () => {
|
|
|
33258
33977
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33259
33978
|
label: t("WS_NATURE_OF_WORK"),
|
|
33260
33979
|
text: `${t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))}`
|
|
33261
|
-
}))), (data === null || data === void 0 ? void 0 : (_data$
|
|
33980
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection69 = data.WaterConnection) === null || _data$WaterConnection69 === void 0 ? void 0 : (_data$WaterConnection70 = _data$WaterConnection69[0]) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70.connectionHolders) === null || _data$WaterConnection71 === void 0 ? void 0 : _data$WaterConnection71.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect64 = data.SewerageConnections) === null || _data$SewerageConnect64 === void 0 ? void 0 : (_data$SewerageConnect65 = _data$SewerageConnect64[0]) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65.connectionHolders) === null || _data$SewerageConnect66 === void 0 ? void 0 : _data$SewerageConnect66.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
33262
33981
|
styles: {
|
|
33263
33982
|
fontSize: "28px"
|
|
33264
33983
|
}
|
|
33265
33984
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33266
33985
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
33267
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33986
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection72 = data.WaterConnection) === null || _data$WaterConnection72 === void 0 ? void 0 : (_data$WaterConnection73 = _data$WaterConnection72[0]) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73.connectionHolders) === null || _data$WaterConnection74 === void 0 ? void 0 : (_data$WaterConnection75 = _data$WaterConnection74[0]) === null || _data$WaterConnection75 === void 0 ? void 0 : _data$WaterConnection75.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect67 = data.SewerageConnections) === null || _data$SewerageConnect67 === void 0 ? void 0 : (_data$SewerageConnect68 = _data$SewerageConnect67[0]) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68.connectionHolders) === null || _data$SewerageConnect69 === void 0 ? void 0 : (_data$SewerageConnect70 = _data$SewerageConnect69[0]) === null || _data$SewerageConnect70 === void 0 ? void 0 : _data$SewerageConnect70.mobileNumber),
|
|
33268
33987
|
textStyle: {
|
|
33269
33988
|
whiteSpace: "pre"
|
|
33270
33989
|
},
|
|
33271
33990
|
privacy: {
|
|
33272
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33991
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection76 = data.WaterConnection) === null || _data$WaterConnection76 === void 0 ? void 0 : (_data$WaterConnection77 = _data$WaterConnection76[0]) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77.connectionHolders) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78[0]) === null || _data$WaterConnection79 === void 0 ? void 0 : _data$WaterConnection79.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect71 = data.SewerageConnections) === null || _data$SewerageConnect71 === void 0 ? void 0 : (_data$SewerageConnect72 = _data$SewerageConnect71[0]) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72.connectionHolders) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73[0]) === null || _data$SewerageConnect74 === void 0 ? void 0 : _data$SewerageConnect74.uuid,
|
|
33273
33992
|
fieldName: "connectionHoldersMobileNumber",
|
|
33274
33993
|
model: "WnSConnectionOwner",
|
|
33275
33994
|
showValue: false,
|
|
@@ -33286,30 +34005,30 @@ const WSApplicationDetails = () => {
|
|
|
33286
34005
|
}
|
|
33287
34006
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33288
34007
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
33289
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34008
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection80 = data.WaterConnection) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80[0]) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81.connectionHolders) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82[0]) === null || _data$WaterConnection83 === void 0 ? void 0 : _data$WaterConnection83.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect75 = data.SewerageConnections) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75[0]) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76.connectionHolders) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77[0]) === null || _data$SewerageConnect78 === void 0 ? void 0 : _data$SewerageConnect78.name),
|
|
33290
34009
|
textStyle: {
|
|
33291
34010
|
whiteSpace: "pre"
|
|
33292
34011
|
}
|
|
33293
34012
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33294
34013
|
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
33295
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34014
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection84 = data.WaterConnection) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84[0]) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85.connectionHolders) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : _data$WaterConnection87.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect79 = data.SewerageConnections) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79[0]) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80.connectionHolders) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : _data$SewerageConnect82.middleName),
|
|
33296
34015
|
textStyle: {
|
|
33297
34016
|
whiteSpace: "pre"
|
|
33298
34017
|
}
|
|
33299
34018
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33300
34019
|
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
33301
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34020
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection88 = data.WaterConnection) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89.connectionHolders) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : _data$WaterConnection91.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect83 = data.SewerageConnections) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84.connectionHolders) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : _data$SewerageConnect86.lastName),
|
|
33302
34021
|
textStyle: {
|
|
33303
34022
|
whiteSpace: "pre"
|
|
33304
34023
|
}
|
|
33305
34024
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33306
34025
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
33307
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
34026
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection92 = data.WaterConnection) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93.connectionHolders) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : _data$WaterConnection95.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect87 = data.SewerageConnections) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88.connectionHolders) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : _data$SewerageConnect90.gender)),
|
|
33308
34027
|
textStyle: {
|
|
33309
34028
|
whiteSpace: "pre"
|
|
33310
34029
|
},
|
|
33311
34030
|
privacy: {
|
|
33312
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
34031
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection96 = data.WaterConnection) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97.connectionHolders) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : _data$WaterConnection99.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect91 = data.SewerageConnections) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92.connectionHolders) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : _data$SewerageConnect94.uuid,
|
|
33313
34032
|
fieldName: "gender",
|
|
33314
34033
|
model: "WnSConnectionOwner",
|
|
33315
34034
|
showValue: false,
|
|
@@ -33326,12 +34045,12 @@ const WSApplicationDetails = () => {
|
|
|
33326
34045
|
}
|
|
33327
34046
|
}), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
33328
34047
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
33329
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34048
|
+
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"),
|
|
33330
34049
|
textStyle: {
|
|
33331
34050
|
whiteSpace: "pre"
|
|
33332
34051
|
},
|
|
33333
34052
|
privacy: {
|
|
33334
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
34053
|
+
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,
|
|
33335
34054
|
fieldName: "fatherOrHusbandName",
|
|
33336
34055
|
model: "WnSConnectionOwner",
|
|
33337
34056
|
showValue: false,
|
|
@@ -33348,12 +34067,12 @@ const WSApplicationDetails = () => {
|
|
|
33348
34067
|
}
|
|
33349
34068
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33350
34069
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
33351
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34070
|
+
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"),
|
|
33352
34071
|
textStyle: {
|
|
33353
34072
|
whiteSpace: "pre"
|
|
33354
34073
|
},
|
|
33355
34074
|
privacy: {
|
|
33356
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
34075
|
+
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,
|
|
33357
34076
|
fieldName: "relationship",
|
|
33358
34077
|
model: "WnSConnection",
|
|
33359
34078
|
showValue: false,
|
|
@@ -33370,9 +34089,9 @@ const WSApplicationDetails = () => {
|
|
|
33370
34089
|
}
|
|
33371
34090
|
})), /*#__PURE__*/React.createElement(Row, {
|
|
33372
34091
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
33373
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34092
|
+
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"),
|
|
33374
34093
|
privacy: {
|
|
33375
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
34094
|
+
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,
|
|
33376
34095
|
fieldName: "correspondenceAddress",
|
|
33377
34096
|
model: "WnSConnectionOwner",
|
|
33378
34097
|
showValue: false,
|
|
@@ -33389,12 +34108,12 @@ const WSApplicationDetails = () => {
|
|
|
33389
34108
|
}
|
|
33390
34109
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33391
34110
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
33392
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34111
|
+
text: (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$WaterConnection126 = _data$WaterConnection125.connectionHolders) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : _data$WaterConnection127.emailId) || (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$SewerageConnect121 = _data$SewerageConnect120.connectionHolders) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : _data$SewerageConnect122.emailId) || "NA",
|
|
33393
34112
|
textStyle: {
|
|
33394
34113
|
whiteSpace: "pre"
|
|
33395
34114
|
},
|
|
33396
34115
|
privacy: {
|
|
33397
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
34116
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? 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$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : _data$WaterConnection131.uuid : 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$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : _data$SewerageConnect126.uuid,
|
|
33398
34117
|
fieldName: "connectionHoldersEmailId",
|
|
33399
34118
|
model: "WnSConnectionOwner",
|
|
33400
34119
|
showValue: false,
|
|
@@ -33415,7 +34134,7 @@ const WSApplicationDetails = () => {
|
|
|
33415
34134
|
}
|
|
33416
34135
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33417
34136
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
33418
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
34137
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection132 = data.WaterConnection) === null || _data$WaterConnection132 === void 0 ? void 0 : (_data$WaterConnection133 = _data$WaterConnection132[0]) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect127 = data.SewerageConnections) === null || _data$SewerageConnect127 === void 0 ? void 0 : (_data$SewerageConnect128 = _data$SewerageConnect127[0]) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128.propertyId),
|
|
33419
34138
|
textStyle: {
|
|
33420
34139
|
wordBreak: "break-word"
|
|
33421
34140
|
}
|
|
@@ -33456,7 +34175,7 @@ const WSApplicationDetails = () => {
|
|
|
33456
34175
|
}
|
|
33457
34176
|
}
|
|
33458
34177
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
33459
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
34178
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134[0]) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129[0]) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130.propertyId)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.tenantId)}`
|
|
33460
34179
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
33461
34180
|
style: {
|
|
33462
34181
|
textAlign: "left"
|
|
@@ -33595,7 +34314,7 @@ const WSApplicationDetails = () => {
|
|
|
33595
34314
|
styles: {
|
|
33596
34315
|
fontSize: "28px"
|
|
33597
34316
|
}
|
|
33598
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
34317
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : (_data$WaterConnection141 = _data$WaterConnection140[0]) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141.documents.reduce((acc, current) => {
|
|
33599
34318
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33600
34319
|
if (!x) {
|
|
33601
34320
|
return acc.concat([current]);
|
|
@@ -33603,11 +34322,11 @@ const WSApplicationDetails = () => {
|
|
|
33603
34322
|
return acc;
|
|
33604
34323
|
}
|
|
33605
34324
|
}, []).map((doc, index, array) => {
|
|
33606
|
-
var _doc$documentType, _data$
|
|
34325
|
+
var _doc$documentType, _data$WaterConnection142, _data$WaterConnection143;
|
|
33607
34326
|
return /*#__PURE__*/React.createElement("div", {
|
|
33608
34327
|
key: `doc-${index}`
|
|
33609
34328
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
33610
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34329
|
+
value: 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.documents,
|
|
33611
34330
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33612
34331
|
index: index
|
|
33613
34332
|
}), array.length != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
@@ -33619,7 +34338,7 @@ const WSApplicationDetails = () => {
|
|
|
33619
34338
|
marginBottom: "20px"
|
|
33620
34339
|
}
|
|
33621
34340
|
}) : null)));
|
|
33622
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
34341
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : (_data$SewerageConnect136 = _data$SewerageConnect135[0]) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136.documents.reduce((acc, current) => {
|
|
33623
34342
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33624
34343
|
if (!x) {
|
|
33625
34344
|
return acc.concat([current]);
|
|
@@ -33627,11 +34346,11 @@ const WSApplicationDetails = () => {
|
|
|
33627
34346
|
return acc;
|
|
33628
34347
|
}
|
|
33629
34348
|
}, []).map((doc, index, array) => {
|
|
33630
|
-
var _doc$documentType2, _data$
|
|
34349
|
+
var _doc$documentType2, _data$SewerageConnect137, _data$SewerageConnect138;
|
|
33631
34350
|
return /*#__PURE__*/React.createElement("div", {
|
|
33632
34351
|
key: `doc-${index}`
|
|
33633
34352
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(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.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
33634
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34353
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137[0]) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138.documents,
|
|
33635
34354
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33636
34355
|
index: index
|
|
33637
34356
|
}), array.length != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
@@ -33643,46 +34362,46 @@ const WSApplicationDetails = () => {
|
|
|
33643
34362
|
marginBottom: "20px"
|
|
33644
34363
|
}
|
|
33645
34364
|
}) : null)));
|
|
33646
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
34365
|
+
})), (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.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : (_data$SewerageConnect140 = _data$SewerageConnect139[0]) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
|
|
33647
34366
|
style: {
|
|
33648
34367
|
marginTop: "10px"
|
|
33649
34368
|
}
|
|
33650
34369
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33651
34370
|
label: t("MAKE_PAYMENT"),
|
|
33652
34371
|
onSubmit: () => {
|
|
33653
|
-
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$
|
|
34372
|
+
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
|
|
33654
34373
|
history.push({
|
|
33655
34374
|
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, "/", "+")}`,
|
|
33656
|
-
search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
34375
|
+
search: `?workflow=WNS&tenantId=${(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.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : (_data$WaterConnection154 = _data$WaterConnection153.connectionHolders) === null || _data$WaterConnection154 === void 0 ? void 0 : _data$WaterConnection154.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : (_data$SewerageConnect149 = _data$SewerageConnect148.connectionHolders) === null || _data$SewerageConnect149 === void 0 ? void 0 : _data$SewerageConnect149.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}`,
|
|
33657
34376
|
state: {
|
|
33658
34377
|
fromApplicationDetails: true
|
|
33659
34378
|
}
|
|
33660
34379
|
});
|
|
33661
34380
|
}
|
|
33662
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
34381
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection155 = data.WaterConnection) !== null && _data$WaterConnection155 !== void 0 && (_data$WaterConnection156 = _data$WaterConnection155[0]) !== null && _data$WaterConnection156 !== void 0 && _data$WaterConnection156.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect150 = data.SewerageConnections) !== null && _data$SewerageConnect150 !== void 0 && (_data$SewerageConnect151 = _data$SewerageConnect150[0]) !== null && _data$SewerageConnect151 !== void 0 && _data$SewerageConnect151.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
33663
34382
|
to: {
|
|
33664
|
-
pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$
|
|
33665
|
-
search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$
|
|
34383
|
+
pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(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.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect154 = data.SewerageConnections) === null || _data$SewerageConnect154 === void 0 ? void 0 : (_data$SewerageConnect155 = _data$SewerageConnect154[0]) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155.tenantId)}`,
|
|
34384
|
+
search: isMutation ? `?applicationNumber=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.applicationNo) || (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.applicationNo)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.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)}&service=${data !== null && data !== void 0 && (_data$WaterConnection165 = data.WaterConnection) !== null && _data$WaterConnection165 !== void 0 && _data$WaterConnection165[0] ? "WATER" : "SEWERAGE"}&propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection166 = data.WaterConnection) === null || _data$WaterConnection166 === void 0 ? void 0 : (_data$WaterConnection167 = _data$WaterConnection166[0]) === null || _data$WaterConnection167 === void 0 ? void 0 : _data$WaterConnection167.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.propertyId)}` : "",
|
|
33666
34385
|
state: {
|
|
33667
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
34386
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.applicationNo)}`
|
|
33668
34387
|
}
|
|
33669
34388
|
}
|
|
33670
34389
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33671
34390
|
label: t("COMMON_EDIT")
|
|
33672
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
34391
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection170 = data.WaterConnection) !== null && _data$WaterConnection170 !== void 0 && (_data$WaterConnection171 = _data$WaterConnection170[0]) !== null && _data$WaterConnection171 !== void 0 && _data$WaterConnection171.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection172 = data.WaterConnection) !== null && _data$WaterConnection172 !== void 0 && (_data$WaterConnection173 = _data$WaterConnection172[0]) !== null && _data$WaterConnection173 !== void 0 && _data$WaterConnection173.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect164 = data.SewerageConnections) !== null && _data$SewerageConnect164 !== void 0 && (_data$SewerageConnect165 = _data$SewerageConnect164[0]) !== null && _data$SewerageConnect165 !== void 0 && _data$SewerageConnect165.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect166 = data.SewerageConnections) !== null && _data$SewerageConnect166 !== void 0 && (_data$SewerageConnect167 = _data$SewerageConnect166[0]) !== null && _data$SewerageConnect167 !== void 0 && _data$SewerageConnect167.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
33673
34392
|
to: {
|
|
33674
34393
|
pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
|
|
33675
34394
|
state: {
|
|
33676
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
34395
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : (_data$WaterConnection175 = _data$WaterConnection174[0]) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : (_data$SewerageConnect169 = _data$SewerageConnect168[0]) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169.applicationNo)}`
|
|
33677
34396
|
}
|
|
33678
34397
|
}
|
|
33679
34398
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33680
34399
|
label: t("RESUBMIT_APPLICATION"),
|
|
33681
34400
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
33682
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
34401
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170[0],
|
|
33683
34402
|
serviceType: "SEWERAGE",
|
|
33684
34403
|
WSDisconnectionForm: {
|
|
33685
|
-
type: data !== null && data !== void 0 && (_data$
|
|
34404
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect171 = data.SewerageConnections) !== null && _data$SewerageConnect171 !== void 0 && (_data$SewerageConnect172 = _data$SewerageConnect171[0]) !== null && _data$SewerageConnect172 !== void 0 && _data$SewerageConnect172.isDisconnectionTemporary ? {
|
|
33686
34405
|
code: "type",
|
|
33687
34406
|
value: {
|
|
33688
34407
|
name: "Temporary",
|
|
@@ -33699,18 +34418,18 @@ const WSApplicationDetails = () => {
|
|
|
33699
34418
|
code: "Permanent"
|
|
33700
34419
|
}
|
|
33701
34420
|
},
|
|
33702
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
34421
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect173 = data.SewerageConnections) === null || _data$SewerageConnect173 === void 0 ? void 0 : (_data$SewerageConnect174 = _data$SewerageConnect173[0]) === null || _data$SewerageConnect174 === void 0 ? void 0 : _data$SewerageConnect174.dateEffectiveFrom, true),
|
|
33703
34422
|
reason: {
|
|
33704
34423
|
code: "reason",
|
|
33705
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34424
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : (_data$SewerageConnect176 = _data$SewerageConnect175[0]) === null || _data$SewerageConnect176 === void 0 ? void 0 : _data$SewerageConnect176.disconnectionReason
|
|
33706
34425
|
},
|
|
33707
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
34426
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect177 = data.SewerageConnections) === null || _data$SewerageConnect177 === void 0 ? void 0 : (_data$SewerageConnect178 = _data$SewerageConnect177[0]) === null || _data$SewerageConnect178 === void 0 ? void 0 : _data$SewerageConnect178.documents
|
|
33708
34427
|
}
|
|
33709
34428
|
} : {
|
|
33710
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
34429
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : _data$WaterConnection176[0],
|
|
33711
34430
|
serviceType: "WATER",
|
|
33712
34431
|
WSDisconnectionForm: {
|
|
33713
|
-
type: data !== null && data !== void 0 && (_data$
|
|
34432
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection177 = data.WaterConnection) !== null && _data$WaterConnection177 !== void 0 && (_data$WaterConnection178 = _data$WaterConnection177[0]) !== null && _data$WaterConnection178 !== void 0 && _data$WaterConnection178.isDisconnectionTemporary ? {
|
|
33714
34433
|
code: "type",
|
|
33715
34434
|
value: {
|
|
33716
34435
|
name: "Temporary",
|
|
@@ -33727,12 +34446,12 @@ const WSApplicationDetails = () => {
|
|
|
33727
34446
|
code: "Permanent"
|
|
33728
34447
|
}
|
|
33729
34448
|
},
|
|
33730
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
34449
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection179 = data.WaterConnection) === null || _data$WaterConnection179 === void 0 ? void 0 : (_data$WaterConnection180 = _data$WaterConnection179[0]) === null || _data$WaterConnection180 === void 0 ? void 0 : _data$WaterConnection180.dateEffectiveFrom, true),
|
|
33731
34450
|
reason: {
|
|
33732
34451
|
code: "reason",
|
|
33733
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
34452
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : (_data$WaterConnection182 = _data$WaterConnection181[0]) === null || _data$WaterConnection182 === void 0 ? void 0 : _data$WaterConnection182.disconnectionReason
|
|
33734
34453
|
},
|
|
33735
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
34454
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection183 = data.WaterConnection) === null || _data$WaterConnection183 === void 0 ? void 0 : (_data$WaterConnection184 = _data$WaterConnection183[0]) === null || _data$WaterConnection184 === void 0 ? void 0 : _data$WaterConnection184.documents
|
|
33736
34455
|
}
|
|
33737
34456
|
})
|
|
33738
34457
|
})) : null)))));
|
|
@@ -50703,16 +51422,16 @@ const ApplicationDetails$1 = () => {
|
|
|
50703
51422
|
};
|
|
50704
51423
|
|
|
50705
51424
|
const GetConnectionDetails = () => {
|
|
50706
|
-
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$
|
|
51425
|
+
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a18, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$a21, _applicationDetails$f6, _applicationDetails$f7;
|
|
50707
51426
|
const getBillSearch = function () {
|
|
50708
51427
|
try {
|
|
50709
51428
|
const _temp = function (_applicationDetails$f8) {
|
|
50710
51429
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : _applicationDetails$f8.length) > 0) {
|
|
50711
|
-
var _applicationDetails$
|
|
51430
|
+
var _applicationDetails$a22;
|
|
50712
51431
|
const service = serviceType === "WATER" ? "WS" : "SW";
|
|
50713
51432
|
let wsSearchFilters = {
|
|
50714
51433
|
isConnectionSearch: true,
|
|
50715
|
-
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
51434
|
+
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo
|
|
50716
51435
|
};
|
|
50717
51436
|
return Promise.resolve(Digit.WSService.search({
|
|
50718
51437
|
tenantId,
|
|
@@ -50725,8 +51444,8 @@ const GetConnectionDetails = () => {
|
|
|
50725
51444
|
bussinessService: service
|
|
50726
51445
|
};
|
|
50727
51446
|
if ((wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$5 = wsConnectionDetails.WaterConnection) === null || _wsConnectionDetails$5 === void 0 ? void 0 : _wsConnectionDetails$5.length) > 0 || (wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$6 = wsConnectionDetails.SewerageConnections) === null || _wsConnectionDetails$6 === void 0 ? void 0 : _wsConnectionDetails$6.length) > 0) {
|
|
50728
|
-
var _applicationDetails$
|
|
50729
|
-
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
51447
|
+
var _applicationDetails$a23;
|
|
51448
|
+
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a23 = applicationDetails.applicationData) === null || _applicationDetails$a23 === void 0 ? void 0 : _applicationDetails$a23.connectionNo, filters);
|
|
50730
51449
|
}
|
|
50731
51450
|
});
|
|
50732
51451
|
}
|
|
@@ -50903,8 +51622,10 @@ const GetConnectionDetails = () => {
|
|
|
50903
51622
|
var _billData$, _applicationDetails$f3;
|
|
50904
51623
|
console.log("due", due, applicationDetails);
|
|
50905
51624
|
if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : _applicationDetails$f3.length) <= 0 || due == "0" || due < 0) {
|
|
51625
|
+
var _applicationDetails$a17;
|
|
50906
51626
|
Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
|
|
50907
|
-
|
|
51627
|
+
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.connectionNo) || applicationNumber;
|
|
51628
|
+
history.push(`${pathname}?from=connection-details&connectionNumber=${encodeURIComponent(connectionNumber)}`);
|
|
50908
51629
|
} else {
|
|
50909
51630
|
setshowModal(true);
|
|
50910
51631
|
}
|
|
@@ -50938,7 +51659,7 @@ const GetConnectionDetails = () => {
|
|
|
50938
51659
|
getRestorationButton();
|
|
50939
51660
|
}
|
|
50940
51661
|
}
|
|
50941
|
-
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
51662
|
+
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.status) === "Active" ? true : false;
|
|
50942
51663
|
const showAction = checkApplicationStatusForDisconnection ? actionConfig : actionConfig.filter(item => item !== "DISCONNECTION_BUTTON");
|
|
50943
51664
|
const showActionRestoration = ["RESTORATION_BUTTON"];
|
|
50944
51665
|
let dowloadOptions = [];
|
|
@@ -51022,7 +51743,7 @@ const GetConnectionDetails = () => {
|
|
|
51022
51743
|
ref: actionMenuRef,
|
|
51023
51744
|
label: t("WF_TAKE_ACTION"),
|
|
51024
51745
|
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
51025
|
-
})) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
51746
|
+
})) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a19 = applicationDetails.applicationData) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
|
|
51026
51747
|
options: showActionRestoration,
|
|
51027
51748
|
localeKeyPrefix: "WS",
|
|
51028
51749
|
t: t,
|
|
@@ -56414,20 +57135,12 @@ const DisconnectionApplication = () => {
|
|
|
56414
57135
|
t
|
|
56415
57136
|
} = useTranslation();
|
|
56416
57137
|
const match = useRouteMatch();
|
|
56417
|
-
const
|
|
56418
|
-
let {
|
|
56419
|
-
data: newConfig,
|
|
56420
|
-
isLoading
|
|
56421
|
-
} = Digit.Hooks.ws.useWSConfigMDMS.WSDisconnectionConfig(stateId, {});
|
|
57138
|
+
const location = useLocation();
|
|
56422
57139
|
let config = [];
|
|
56423
|
-
|
|
56424
|
-
|
|
56425
|
-
|
|
56426
|
-
|
|
56427
|
-
config.indexRoute = "docsrequired";
|
|
56428
|
-
} else {
|
|
56429
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
56430
|
-
}
|
|
57140
|
+
newConfig$1.filter(e => e.head === "NEW_DISCONNECTION").forEach(obj => {
|
|
57141
|
+
config = config.concat(obj.body.filter(a => !a.hideInEmployee));
|
|
57142
|
+
});
|
|
57143
|
+
config.indexRoute = "docsrequired";
|
|
56431
57144
|
return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
|
|
56432
57145
|
const {
|
|
56433
57146
|
component,
|
|
@@ -56451,7 +57164,7 @@ const DisconnectionApplication = () => {
|
|
|
56451
57164
|
userType: "employee"
|
|
56452
57165
|
}));
|
|
56453
57166
|
}), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
|
|
56454
|
-
to: `${getPath$5(match.path, match.params)}/${config.indexRoute}`
|
|
57167
|
+
to: `${getPath$5(match.path, match.params)}/${config.indexRoute}${location.search}`
|
|
56455
57168
|
})));
|
|
56456
57169
|
};
|
|
56457
57170
|
|
|
@@ -56793,10 +57506,10 @@ const WSEditApplicationByConfig = () => {
|
|
|
56793
57506
|
};
|
|
56794
57507
|
|
|
56795
57508
|
const GetDisconnectionDetails = () => {
|
|
56796
|
-
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$a2, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$p8, _applicationDetails$p9, _applicationDetails$p0;
|
|
57509
|
+
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$a2, _applicationDetails$a3, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$p8, _applicationDetails$p9, _applicationDetails$p0;
|
|
56797
57510
|
const getDisconnectionNoticeSearch = function () {
|
|
56798
57511
|
try {
|
|
56799
|
-
var _applicationDetails$
|
|
57512
|
+
var _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7;
|
|
56800
57513
|
let key = "ws-waterdisconnectionnotice";
|
|
56801
57514
|
let details = {
|
|
56802
57515
|
WaterConnection: [{
|
|
@@ -56804,7 +57517,7 @@ const GetDisconnectionDetails = () => {
|
|
|
56804
57517
|
property: applicationDetails.propertyDetails
|
|
56805
57518
|
}]
|
|
56806
57519
|
};
|
|
56807
|
-
if (!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
57520
|
+
if (!(applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a5 = applicationDetails.applicationData) !== null && _applicationDetails$a5 !== void 0 && (_applicationDetails$a6 = _applicationDetails$a5.applicationType) !== null && _applicationDetails$a6 !== void 0 && _applicationDetails$a6.includes("WATER"))) {
|
|
56808
57521
|
key = "ws-seweragedisconnectionnotice";
|
|
56809
57522
|
details = {
|
|
56810
57523
|
SewerageConnection: [{
|
|
@@ -56813,9 +57526,9 @@ const GetDisconnectionDetails = () => {
|
|
|
56813
57526
|
}]
|
|
56814
57527
|
};
|
|
56815
57528
|
}
|
|
56816
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
56817
|
-
var _applicationDetails$
|
|
56818
|
-
return Promise.resolve(Digit.PaymentService.printReciept(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57529
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.tenantId, details, key)).then(function (response) {
|
|
57530
|
+
var _applicationDetails$a8;
|
|
57531
|
+
return Promise.resolve(Digit.PaymentService.printReciept(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.tenantId, {
|
|
56819
57532
|
fileStoreIds: response.filestoreIds[0]
|
|
56820
57533
|
})).then(function (fileStore) {
|
|
56821
57534
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -56888,21 +57601,20 @@ const GetDisconnectionDetails = () => {
|
|
|
56888
57601
|
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 = [];
|
|
56889
57602
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data23 = workflowDetails.data) !== null && _workflowDetails$data23 !== void 0 && _workflowDetails$data23.nextActions) workflowDetails.data.nextActions = [];
|
|
56890
57603
|
}
|
|
57604
|
+
const applicationNo = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.applicationNo) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) || applicationNumber;
|
|
56891
57605
|
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 => {
|
|
56892
57606
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
56893
|
-
var _applicationDetails$a3, _applicationDetails$a4;
|
|
56894
57607
|
action.redirectionUrll = {
|
|
56895
|
-
pathname: `${serviceType == "WATER" ? "WS" : "SW"}/${applicationDetails === null || applicationDetails === void 0 ? void 0 :
|
|
56896
|
-
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
57608
|
+
pathname: `${serviceType == "WATER" ? "WS.DISCONNECTION" : "SW.DISCONNECTION"}/${applicationNo}/${(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId}?tenantId=${(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId}&ISWSAPP&applicationNumber=${applicationNo}&IsDisconnectionFlow=${true}`,
|
|
57609
|
+
state: (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId
|
|
56897
57610
|
};
|
|
56898
57611
|
}
|
|
56899
57612
|
});
|
|
56900
57613
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data26 = workflowDetails.data) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26.actionState) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.nextActions) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.forEach(action => {
|
|
56901
57614
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
56902
|
-
var _applicationDetails$a5, _applicationDetails$a6;
|
|
56903
57615
|
action.redirectionUrll = {
|
|
56904
|
-
pathname: `${serviceType == "WATER" ? "WS" : "SW"}/${applicationDetails === null || applicationDetails === void 0 ? void 0 :
|
|
56905
|
-
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
57616
|
+
pathname: `${serviceType == "WATER" ? "WS.DISCONNECTION" : "SW.DISCONNECTION"}/${applicationNo}/${(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId}?tenantId=${(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId}&ISWSAPP&applicationNumber=${applicationNo}&IsDisconnectionFlow=${true}`,
|
|
57617
|
+
state: (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) || tenantId
|
|
56906
57618
|
};
|
|
56907
57619
|
}
|
|
56908
57620
|
});
|
|
@@ -56944,8 +57656,8 @@ const GetDisconnectionDetails = () => {
|
|
|
56944
57656
|
});
|
|
56945
57657
|
const handleDownloadPdf = function () {
|
|
56946
57658
|
try {
|
|
56947
|
-
var _applicationDetails$
|
|
56948
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
57659
|
+
var _applicationDetails$a4;
|
|
57660
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.tenantId;
|
|
56949
57661
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
56950
57662
|
const PDFdata = getWSDisconnectionApplicationForm({
|
|
56951
57663
|
...result
|
|
@@ -59405,6 +60117,8 @@ const componentsToRegister = {
|
|
|
59405
60117
|
WSDocumentsEmployee,
|
|
59406
60118
|
WSEditConnectionDetails,
|
|
59407
60119
|
WSDisconnectionDocsRequired,
|
|
60120
|
+
WSDisconnectionKNumber,
|
|
60121
|
+
WSDisconnectionConsumerDetails,
|
|
59408
60122
|
WSDisconnectionForm,
|
|
59409
60123
|
WSRestorationForm,
|
|
59410
60124
|
WSDisconnectionDocumentsForm,
|